OmniInput: An Evaluation Framework for Deep Learning Models on Internet-Scale Data

Weitang Liu, Yuelei Li, Ying Wai Li, Zihan Wang, Yi-Zhuang You, Jingbo ShangTMLR 2025

Abstract

Evaluating machine learning models is important yet challenging in many real-world scenarios. Traditional analysis is dataset-driven, that is, models are evaluated on predefined benchmark datasets. However, these datasets can only cover a limited scope, leaving unanticipated inputs untested and weaknesses of the model unrevealed. To overcome this problem, we propose OmniInput, a novel approach to evaluate models comprehensively using an input space (i.e. internet-scale data). Our method entails efficient sampling of the inputs from the model and estimation of its corresponding output distribution, and an innovative way to calculate the model’s precision and recall curve from the output distribution with only modest human annotation effort. In our experiments, we first validate the correctness of OmniInput within a small input space where brute-force enumeration is still possible. We then show that OmniInput can quantitatively evaluate more complex models such as language models (various versions of GPT2, OLMo, and DistilBERT) and computer vision models, and analyze interesting patterns in an input space.

Introduction

In the current machine learning landscape, models are typically evaluated using static benchmark datasets. While these benchmarks provide a standardized metric for comparison, they represent a tiny fraction of the potential "Internet-scale" input space. A model achieving near-perfect accuracy on a curated test set may still exhibit unpredictable behavior or overconfidence when faced with out-of-distribution (OOD) prompts.

This dataset-driven paradigm creates significant blind spots. We only observe model performance on expected inputs, failing to account for the vast space of unanticipated data. As Large Language Models (LLMs) and complex vision models become integrated into critical systems, a more comprehensive, "dataset-free" evaluation is necessary. OmniInput addresses this by measuring how a model maps its entire possible input space to outputs, ensuring that performance metrics reflect true generalization rather than distribution-specific memorization.

Methodology

The OmniInput framework utilizes a four-step pipeline to estimate a model's Precision-Recall (PR) curve across an astronomical input space without requiring exhaustive testing.

The OmniInput pipeline: (a) Sampling inputs to estimate the output distribution \rho(z), (b) Human annotation of representative samples, (c) Weighting annotations by the distribution, and (d) Constructing the final Precision-Recall curve.
  1. Efficient Sampling: To explore the vast input space, the framework employs Parallel Tempering (PT) and Histogram Reweighting (HR). These Markov Chain Monte Carlo (MCMC) techniques allow for sampling across the model's entire output range, capturing both high-confidence and low-confidence predictions.
  2. Output Distribution Estimation: The sampler estimates \rho(z), which represents the proportion of all possible inputs that yield a specific output value z (e.g., logits or Negative Log-Likelihood).
  3. Selective Human Annotation: Instead of labeling a massive dataset, human annotators score a small, representative subset of inputs discovered by the sampler. They evaluate whether the model's high-confidence predictions are actually correct or human-understandable.
  4. PR Curve Construction: By weighting human scores according to the estimated output distribution \rho(z), the framework calculates precision and recall for the entire input space.

Experimental Validation

The authors validated OmniInput across multiple domains:

  • Language Modeling: Evaluated various versions of GPT-2 and OLMo (including Instruct and SFT versions). A toy GPT-2 model with 8-token sequences was used to verify the sampling accuracy against brute-force enumeration.
  • Computer Vision: Tested binary classifiers and generative models on a reduced MNIST set, comparing results against OOD benchmarks like Fashion MNIST and EMNIST.
  • Sentiment Analysis: Analyzed a DistilBERT model fine-tuned on the SST2 dataset.

Key Insights and Results

OmniInput revealed several critical weaknesses that traditional benchmarks missed:

  • The Overconfidence Trap: High-accuracy MNIST classifiers were found to have nearly zero precision on the broader input space, often assigning high confidence to random noise.
  • LLM Scaling and Tuning: GPT-2 Medium demonstrated significantly higher precision than GPT-2 Small on longer sequences. Furthermore, instruction tuning for OLMo models substantially increased the Area Under the Precision-Recall curve (AUPR), indicating better alignment with human judgment.
  • Classifier Fragility: A DistilBERT sentiment classifier with 91% benchmark accuracy showed near-zero precision on the full input space, revealing a reliance on specific keywords rather than linguistic structure.
  • Efficiency: The evaluation process was found to converge with as few as 40-50 human annotations per distribution bin, making it a scalable alternative to massive dataset labeling.

Conclusion and Future Work

OmniInput provides a robust framework for stress-testing AI models against the infinite variety of real-world data. While effective, challenges remain regarding the computational cost of sampling from extremely large models and extending the method to continuous input spaces. Future research will explore faster sampling algorithms and the potential for "model-as-a-judge" approaches to further reduce human annotation requirements.

Summary updated

BibTeX
@article{liu2025omniinput,
  author = {Weitang Liu and Yuelei Li and Ying Wai Li and Zihan Wang and Yi-Zhuang You and Jingbo Shang},
  title = {{OmniInput: An Evaluation Framework for Deep Learning Models on Internet-Scale Data}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=SvOYlVa3VK},
}
Figure