Online Maximization of Non-Decomposable Test and Population Utilities

Wojciech Kotlowski, Marek Wydmuch, Krzysztof DembczynskiNeurIPS 2026

TL;DR

Standard accuracy is easy to optimize on the fly because every prediction is scored in isolation, whereas crucial real-world metrics like $F_1$ or Intersection-over-Union (Jaccard) depend on the entire pool of predictions at once. This paper shows how to make optimal, irrevocable decisions one instance at a time for these coupled metrics—and proves that the exact same process leaves you with a ready-to-deploy classifier for future data.

What Problem Does This Paper Address?

Imagine grading a classifier using the $F_1$-score or the Jaccard index. Unlike simple accuracy, these metrics are non-decomposable: you cannot calculate the score of a single prediction in a vacuum. Whether predicting "positive" right now helps or hurts your final $F_1$-score depends on how many positives and false alarms you accumulate across the entire dataset.

Now, put this in an online, streaming setting. Instances arrive one by one. You must make an irrevocable prediction immediately, yet you are only graded at the very end when all decisions are pooled into a final confusion matrix.

Historically, theorists have viewed non-decomposable metrics through two separate lenses:

  1. Expected Test Utility (ETU): Optimizing decisions specifically for a finite, realized batch of test examples.
  2. Population Utility (PU): Building a static classifier that performs well in expectation on infinite future data.

At finite sample sizes, ETU and PU can demand very different strategies. The authors ask: can a single sequential algorithm achieve low online regret on the current stream (ETU) and simultaneously yield a strong classifier for future deployment (PU)?

Methods

Rather than learning a model from scratch, the authors focus on the metric-optimization decision layer. They assume access to a Conditional Probability Estimator (CPE)—like a pre-trained or online logistic regression model—that outputs label probabilities $\hat{\eta}(x)$ for each incoming instance. The algorithm's job is to convert those probabilities into optimal discrete predictions on the fly.

The authors tackle two families of confusion-matrix metrics, offering both label-adaptive (uses true labels as they arrive) and label-oblivious (uses only probability estimates, useful when true labels are delayed) updates:

  • Smooth Concave Metrics (Extending OMMA): Building on an existing algorithm called OMMA—which linearizes the metric around the current empirical confusion matrix to create a cost-sensitive decision rule—the authors introduce a randomized online-to-batch conversion. By simply picking one of the historical decision rules from the trajectory uniformly at random, OMMA gains formal PU guarantees.
  • Linear-Fractional Metrics (Introducing SOLO): Many popular metrics (precision, recall, $F_\beta$, Jaccard) are ratios of linear functions of the confusion matrix and are not concave. The authors propose SOLO (Stochastic Online Linear-fractional Optimization). Using the classical Dinkelbach transform from fractional programming, SOLO reframes maximizing a ratio into finding the root of a 1D equation. As data streams in, SOLO tracks this optimal ratio threshold using a lightweight, 1D Robbins–Monro stochastic approximation step.

Datasets

No new benchmarks are introduced; the authors evaluate their algorithms on six established datasets split into 70% CPE training, 15% online streaming evaluation, and 15% held-out PU testing:

  • Multi-label classification: YouTube, Flickr (with DeepWalk features), Mediamill, and RCV1X.
  • Multi-class classification: Caltech-256 (with VGG16 features) and LEDGAR (legal text from LexGLUE with TF-IDF features).

Key Insights and Ideas

  • Hindsight inputs don't beat population optima (for concave metrics): Even though an ETU benchmark is allowed to tailor its predictions to the exact sequence of test inputs $x^n$ while a PU classifier cannot, the authors prove that for concave utilities, the expected ETU benchmark is mathematically upper-bounded by the optimal PU value.
  • 1D root-tracking beats matrix tracking for ratios: Instead of maintaining and regularizing a full confusion matrix, SOLO tracks a single scalar (the Dinkelbach root) per ratio. Crucially, unlike OMMA—which requires randomly sampling a past state for future PU guarantees—SOLO's very last iterate can be deployed directly as the final classifier.
  • The speed limit is fundamental: Both OMMA and SOLO achieve regret bounds scaling at $\tilde{O}(n^{-1/2})$ (plus CPE estimation error). The authors prove a matching $\Omega(n^{-1/2})$ minimax lower bound for returned PU classifiers—even if the algorithm is handed exact true probabilities $\eta(x)$!

Key Results

Because this is primarily a theoretical paper closing gaps in online learning, empirical tests were designed to verify that these principled methods match strong heuristics and offline baselines:

  • Strong online and transfer performance: Across multi-label datasets, SOLO and OMMA dramatically outperform standard $\hat{\eta} > 0.5$ thresholding (e.g., jumping from 15.67% to 25.77% online Macro-$F_1$ on RCV1X) and closely match optimistic batch threshold-tuning baselines in a single pass.
  • Zero-drop deployment: Transferring SOLO's final online state to the held-out PU test set shows virtually no performance degradation (e.g., 36.56% online vs. 36.54% PU Macro-$F_1$ on YouTube).
  • Multi-class imbalanced $F_{0.25}$: On Caltech-256 (optimizing class-weighted $F_{0.25}$), SOLO reaches 91.47% online and 92.00% PU utility, outperforming standard Top-1 prediction (78.34% / 80.47%) and OMMA (89.49% / 91.26%), nearly matching an in-sample batch plug-in oracle (92.34%).
  • Robustness: Sensitivity analyses show SOLO is far less sensitive to artificial confusion-matrix smoothing/regularization than matrix-tracking methods.

Limitations and Future Work

  • Garbage-in, garbage-out probabilities: Both methods rely explicitly on the accuracy of the underlying CPE. On severely imbalanced datasets, getting well-calibrated probabilities is notoriously hard and directly bottlenecks achievable regret.
  • Sub-optimal deployment for concave metrics: While SOLO lets you deploy its final state, OMMA’s theoretical PU guarantee still requires picking a random historical rule from its trajectory, which is awkward in practice.
  • Denominator assumptions: SOLO's global theory assumes the metric's denominator is bounded away from zero ($\gamma > 0$), requiring minor regularization in practice.
  • Open theoretical gap: While the authors proved $O(n^{-1/2})$ is unimprovable for a returned PU classifier, proving a matching unrestricted lower bound for adaptive online ETU regret remains an open problem.

Summary updated

Abstract

We study sequential learning for classification metrics that are non-decomposable across instances and are general functions of the confusion matrix, such as the Jaccard index and the $F$-measure. The learner observes instances sequentially, makes irrevocable predictions, and is evaluated by the final empirical performance metric, leading to an online-regret objective. After observing the sequence, the learner also returns a classifier for future population use, leading to a population-regret objective. This single protocol connects two central frameworks for optimizing non-decomposable metrics: Expected Test Utility (ETU) and Population Utility (PU). For smooth concave utilities of the confusion matrix, we show that the ETU benchmark is controlled, in expectation, by the population PU comparator, and that an algorithm with small online regret also yields PU guarantees by an online-to-batch conversion. We then turn to non-concave linear-fractional metrics. We devise a general stochastic Dinkelbach-root method that tracks the relevant metric parameter online and gives online and population regret of order $n^{-1/2}$, up to logarithmic factors, with explicit dependence on conditional-probability estimation error. Our empirical studies evaluate these methods on benchmark datasets.
BibTeX
@inproceedings{kotlowski2026online,
  author = {Wojciech Kotlowski and Marek Wydmuch and Krzysztof Dembczynski},
  title = {{Online Maximization of Non-Decomposable Test and Population Utilities}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=IT4rHivVsd},
}
Figure