Probably Approximately Precision and Recall Learning

Lee Cohen, Yishay Mansour, Shay Moran, Han Shao

Precision and Recall are fundamental metrics in machine learning tasks where both accurate predictions and comprehensive coverage are essential. Examples include multi-label learning, language generation, medical studies, and recommender systems. A key challenge in these settings is the prevalence of one-sided feedback, where only positive examples are observed during training.

This paper introduces a new theoretical framework for learning models that optimize Precision and Recall under this one-sided feedback constraint. The authors prove that standard machine learning approaches like Empirical Risk Minimization (ERM) fail in this setting and provide new algorithms that achieve optimal sample complexity and robust approximation guarantees.

The Challenge of One-Sided Feedback

In many real-world applications, such as tagging people in photos, we care about two things: Precision (how many of our predictions are correct?) and Recall (how many of the actual correct items did we find?).

The difficulty arises because we often only observe partial, positive feedback. For example, in a group photo, we might see tags for three people, but we lack negative examples—we don't know who is explicitly not in the photo. Without negative examples, it becomes impossible to directly estimate precision loss. If a model simply predicts "everyone in the world is in this photo," it will have perfect recall and appear perfectly consistent with the training data, even though its precision is effectively zero.

The trade-off between precision and recall losses forms a Pareto frontier. The "empty set" function has zero precision loss but poor recall, while the "complete set" function has zero recall loss but poor precision.

The authors formalize this as a Probably Approximately Correct (PAC) learning problem where hypotheses are "set functions"—models that map an input to a set of labels rather than just a single label.

Why Standard Methods Fail

The "Empirical Risk Minimization" (ERM) principle, the bedrock of most machine learning, fundamentally breaks down here. A model that predicts every possible label will always have zero empirical loss on positive-only data, making it indistinguishable from the correct model to a standard ERM algorithm.

Furthermore, in standard PAC learning, the goal is typically an "additive" error (e.g., the error is the best possible plus some small $\epsilon$). This paper proves that for precision and recall with partial feedback, additive error is mathematically impossible. Instead, algorithms must settle for "multiplicative" guarantees (e.g., the error is at most a constant factor times the best possible loss).

Theoretical Constructions and Set Size

Because this is a theoretical paper, it relies on mathematical constructions and synthetic "worlds" rather than standard empirical datasets to prove its theorems. The authors construct specific scenarios with large label spaces to demonstrate why precision is fundamentally harder to estimate than recall when only one positive label is observed per training example.

An example where two hypotheses have identical recall but vastly different precision. Because the ground-truth set is huge, it's nearly impossible to distinguish them using only a single random positive sample.

A crucial insight from these constructions is the power of set size. The size of the predicted set acts as a vital signal. By penalizing models that over-predict (output large sets), algorithms can indirectly optimize for precision even without seeing negative examples.

Proposed Algorithmic Strategies

To move beyond standard ERM, the paper introduces novel algorithmic strategies designed specifically for positive-only data:

  1. Maximum Likelihood (ML) Approach: Instead of merely looking for a model consistent with observed labels, this algorithm prioritizes models that output smaller sets. Intuitively, if two models both contain the observed label, the one predicting fewer additional labels is more likely to be the true target.
  2. Surrogate Loss Minimization: The authors develop a new metric ($d_H$) that acts as a proxy for the combined precision and recall losses. This surrogate can be estimated from positive data alone and bounds the true losses within a constant multiplicative factor.

In the agnostic setting (where no hypothesis in the class is perfectly accurate), the authors use a modified ML approach incorporating "truncation." This prevents a single input with a very large ground-truth set from skewing the entire learning process.

Key Results

  • Realizable Case: In the ideal scenario where the true model exists within the hypothesis class, the provided algorithm achieves $\epsilon$-precision and $\epsilon$-recall with optimal sample complexity $O(\frac{\log|\mathcal{H}|}{\epsilon})$.
  • Agnostic Case: The authors prove a lower bound on the approximation factor (at least 1.05x the best possible loss) for any algorithm. They then provide a practical algorithm achieving a 5x multiplicative guarantee for the "scalar loss" (the average of precision and recall losses).
  • Semi-Realizable Case: If the true model has zero precision loss and a bounded output set size, it is possible to find it exactly, even if perfect recall cannot be achieved.

Limitations and Future Work

  • The Approximation Gap: A gap remains between the proven lower bound (1.05x) and the achieved upper bound (5x) for the agnostic case. Finding the optimal multiplicative factor is an open question.
  • Infinite Hypothesis Classes: This work focuses on finite hypothesis classes. Extending these results to infinite classes (e.g., using concepts akin to VC dimension) presents a significant theoretical hurdle, as recent research suggests such a dimension might not exist for this specific setting.
  • Beyond Counting: The current model uses a simple "counting measure" for precision and recall. Future work could explore more nuanced measures that account for label similarity or hierarchical structures.

Summary updated

BibTeX
@inproceedings{cohen2025probably,
  author = {Lee Cohen and Yishay Mansour and Shay Moran and Han Shao},
  title = {{Probably Approximately Precision and Recall Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=fCCzufIJHu},
}
Figure