Omniprediction with the Minimum Number of Linear Scores

MohammadHossein Bateni, Zahra Hadizadeh, MohammadTaghi Hajiaghayi, Mahdi JafariRaviz, Shayan TaherijamarXiv 2026

It’s late, you’ve spent all day tuning hyperparameters for a specific loss function, only to have your boss tell you the business requirements changed and you need to optimize for a completely different metric. We’ve all been there.

What if you could train a model once and have it be "omnipredictive"—meaning its forecasts are competitive for any downstream loss function you might encounter later? This paper, "Omniprediction with the Minimum Number of Linear Scores," shows that this isn't just a dream; it’s mathematically possible with surprisingly simple models.

TL;DR

Omniprediction allows a single model to be "good enough" for an entire family of tasks, even if you don't know which task you'll be doing at training time. This paper proves that for binary classification, you only need a single linear score to achieve this, and for $K$-class problems, you only need $K-1$ scores—regardless of how many thousands of features your data has.

What Problem Does This Paper Address?

In standard machine learning, we pick a loss function (like cross-entropy) and minimize it. But in the real world, the "true" loss might be complex or subject to change. Omniprediction is a framework where you learn a forecast first, and then, once a specific loss is chosen, you apply a simple "Bayes decision rule" to get an action.

The challenge is that different losses usually prefer different linear predictors. To be competitive against the best linear predictor for every possible loss, you’d think you’d need a massive, complex model. Previous research suggested you might need a huge number of linear "heads" to get close to the optimal performance. The authors of this paper set out to find the absolute minimum number of linear scores required to pull this off.

Methods

The authors focus on Single-Index Models (SIMs). A SIM is a simple architecture: it takes your features $x$, multiplies them by a weight vector $w$ to get a single number (the "linear score"), and then passes that score through a non-decreasing "link" function $\rho$ to get a probability.

To prove that a small number of scores is enough, the authors use:

  • Fixed-Point Theorems: They use Brouwer’s fixed-point theorem to show that there exists a weight matrix $W$ where no "competitor" can significantly outperform the model's residual.
  • Least-Squares Fitting: They demonstrate that fitting a Lipschitz-continuous probability link using simple least squares provides a "certificate" of optimality that holds across a whole family of "matching losses" (a broad category that includes things like squared loss and logistic loss).
  • Dirichlet Dictionaries: For the parts of the paper dealing with how much data you need (sample complexity), they introduce a geometric condition on features that makes learning particularly efficient.

Key Insights and Ideas

  • The Power of One: For binary classification, a single linear score is sufficient for exact omniprediction in the "population model" (i.e., if you had infinite data). You don't need a committee of models; one well-chosen score captures all the necessary information.
  • Dimension Independence: One of the most "aha!" moments is that for 2 or 3 classes, the number of samples you need to reach a certain accuracy $\varepsilon$ doesn't depend on the dimension of your features $d$. You can have a million features, but the sample complexity stays roughly $O(1/\varepsilon^2)$.
  • The Score-Slope Tradeoff: There is a fundamental limit. If you try to use fewer than $K-1$ scores, or if you force your link function to be too "flat" (low Lipschitz constant), you will inevitably suffer "regret"—a gap between your model and the best possible linear predictor.
  • Joint Links are Essential: For multiclass problems, you can't just treat each class independently with its own score. The probabilities must be calculated jointly from the scores to maintain the omniprediction guarantee.

Key Results

The paper provides a definitive map of what is possible in different settings, summarized in their main table:

Summary of representation and sample guarantees for different settings.
  • Binary Case: 1 score is necessary and sufficient.
  • Multiclass Case: $\min\{d, K-1\}$ scores are necessary and sufficient.
  • Sample Complexity: They achieve $\varepsilon$-omniprediction using $\widetilde{O}(1/\varepsilon^2)$ samples for $K=2,3$. This matches the known lower bounds, meaning their approach is essentially as efficient as any algorithm could possibly be.

Limitations and Future Work

While the paper is a tour de force in existence proofs and sample complexity, it leaves some practical doors open:

  • Computational Efficiency: The authors prove these models exist and can be found via a "finite search." However, that search might be computationally expensive (potentially exponential in some parameters). Finding a guaranteed polynomial-time algorithm for any feature distribution remains an open challenge.
  • The $K \ge 4$ Gap: For problems with 4 or more classes, the exact optimal exponent for sample complexity is still a bit of a mystery.
  • Convexity: In the most general "global-action" model, it’s not yet clear if the joint link function can always be represented as the gradient of a convex function, which would have nice implications for optimization.

In short, the next time you're worried about your loss function changing, take heart: math says you probably only need a few linear scores to stay ahead of the game.

Summary updated

Abstract

An $\varepsilon$-omnipredictor uses one forecast for an entire family of downstream losses. After postprocessing for each loss, its expected loss must be at most $\varepsilon$ above that of the best comparator for that loss. A binary single-index model (SIM) learns a norm-bounded weight vector $w$ and a nondecreasing link $ρ$. It reduces the features $x$ to one linear score $w^\top x$, then maps that score to a probability $p(x)=ρ(w^\top x)$. Hu, Tian, and Yang (STOC 2025) achieved $\varepsilon$-omniprediction for binary matching losses using $O(1/\varepsilon^2)$ SIMs and asked whether one SIM suffices. In the population model, we prove that one SIM suffices for exact omniprediction in their bounded-action setting. The result holds for any compact family of continuous nondecreasing target links. With unrestricted actions and matching losses generated by $1/β$-strongly convex entropies, the SIM's link can also be $β$-Lipschitz. For $K$ classes and $d$-dimensional features with finite first moment, $\min\{d,K-1\}$ linear scores are necessary and sufficient in the worst case. A joint link maps these scores to class probabilities, and its Lipschitz bound $β$ is also sharp under the comparator's coefficient norm bound. For bounded features and smooth entropies, we achieve $\varepsilon$-omniprediction for two or three classes using $\widetilde O(1/\varepsilon^2)$ samples at fixed confidence and regularity. This bound is independent of $d$ and tight up to logarithmic factors. For any fixed number of classes $K \ge 2$, the tight worst-case sample complexity for $\varepsilon$-omniprediction under the Dirichlet condition on the features is $Θ_K(1/\varepsilon^2)$.
BibTeX
@misc{bateni2026omniprediction,
  author = {MohammadHossein Bateni and Zahra Hadizadeh and MohammadTaghi Hajiaghayi and Mahdi JafariRaviz and Shayan Taherijam},
  title = {{Omniprediction with the Minimum Number of Linear Scores}},
  year = {2026},
  eprint = {2611.30625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30625},
}
Figure