Conformal Prediction Sets with Limited False Positives
Paper · 2022 · Adam Fisch, Tal Schuster, Tommi Jaakkola et al.
Summary
A list of plausible answers can be more useful than a single guess, especially when several answers may be correct. Its value depends on what happens to the list next. In computational screening, for instance, each proposed compound may have to be checked experimentally. A list that recovers nearly every promising compound can also consume the budget for checking them. “Conformal Prediction Sets with Limited False Positives” changes the guarantee attached to such a list. It limits how many incorrect candidates the system returns and tries to recover as many correct candidates as that limit allows.
The paper gives users two ways to express the limit. One bounds the average number of false positives across new predictions. The other bounds the probability that a prediction exceeds a chosen false-positive count. Both guarantees average over the calibration and test examples. A query can have several correct answers or none at all, and the procedure can return an empty set. Its measure of recovery averages the share of correct answers found for each query, with a score of zero for queries that have no correct answers.
The procedure starts with a ranking of individual candidates. It builds a series of lists by adding candidates in rank order and scores each growing list for its estimated false-positive burden. On separate labeled data, it checks how many mistakes the lists actually contain and calibrates a cutoff for their scores. For a new query, it returns the largest list whose score passes that cutoff. Every shorter list in the same sequence is contained in the larger one, so choosing the largest eligible list preserves every correct candidate that an eligible smaller list would have recovered.
The authors test the method on molecular screening, object detection, and the extraction of entities from sentences. On the ChEMBL screening task, with an average false-positive limit of 5, their learned set scorer recovers 36.1% on the paper’s true positive rate metric, compared with 29.8% for a rule that returns a fixed number of top-ranked candidates. At a looser operating point, a conformal baseline designed to cover the correct answers reaches 97.2% true positive rate and returns 63.6 false positives on average. The proposed method reaches 97.0% true positive rate when its average false-positive tolerance is set to 63.6. These results illustrate how a guarantee expressed in errors can match the decision facing someone who has to act on the output.
Deep dive: Conformal Prediction Sets with Limited False Positives
Conformal prediction can limit how many wrong answers a prediction set contains while still recovering many of the correct ones. · about 38 minutes to read
The problem and its context
When a prediction becomes a list of things to check
A prediction set can express uncertainty by giving several possibilities room to survive. In ordinary classification, a set might stand in for a single answer because the available evidence leaves several candidates plausible. In multi-label classification, the list has a second purpose. Several labels may all be correct for the same input. An image can contain several objects, a sentence can contain several entities, and several compounds can satisfy the same screening criterion. A useful set must accommodate uncertainty about individual candidates as well as variation in how many correct candidates exist.
The paper starts from the cost of using such a set. In its screening example, a computational procedure proposes compounds for experimental validation. Finding a viable candidate can serve the immediate purpose even if other viable candidates remain undiscovered. Conversely, every unsuccessful check can use time, materials, or funding that could have gone toward another candidate. A query for which no compound satisfies the requirements makes the distinction particularly clear. Any candidate returned for that query adds a check and gives the user nothing to recover.
The output therefore serves two purposes that pull in different directions. Adding candidates can improve the chance of recovering correct answers. It also creates more opportunities to include incorrect ones. The paper treats that tradeoff as a choice about the guarantee itself. If a user can specify the number of errors the application can tolerate, the useful question becomes how much recovery the predictor can deliver under that constraint. The resulting list is allowed to omit viable candidates, including candidates that another procedure would retain to protect coverage.
The count of wrong answers is also distinct from the size of the output. A large list can be worthwhile when it contains many correct candidates. A short list can still use up a small error allowance when nearly everything on it is wrong. A fixed limit on list length treats those situations alike. A false-positive limit permits the size to vary with the evidence, subject to a single calibrated rule. That distinction matters in applications where the natural number of correct labels differs sharply from one input to another.
What conventional conformal coverage controls
Standard conformal classification starts from a labeled calibration sample and an ordering of candidate answers by how poorly they fit an input. The paper calls the quantity used for that ordering a nonconformity score. On the calibration sample, the correct answer is known, so the procedure can observe scores for correct input–answer pairs. It uses their distribution to decide how unusual a candidate can look on a new input before the procedure excludes it. The resulting guarantee concerns whether the set contains the correct answer.
A candidate survives that test whenever the calibration comparison supplies too little reason to rule it out. If several wrong candidates look similar to the correct ones, many can survive together. The procedure can satisfy coverage while returning a list that is costly to use. Much of the earlier conformal work described in the paper seeks smaller sets at a fixed coverage level. Smaller sets can remove incorrect candidates while preserving coverage, but a coverage level by itself leaves the resulting false-positive count unspecified.
An earlier multi-label method takes a related approach by creating an inner set and an outer set. With the stipulated probability, the inner set is entirely correct and the outer set contains all correct labels. The inner set is attractive when even one erroneous item carries a substantial cost. A user willing to tolerate some incorrect candidates has a different operating point in mind. Relaxing the probability with which the entire inner set must be correct still leaves a distinction between lists that contain a small number of mistakes and lists that contain many. An allowance expressed directly as a count captures that distinction.
Another strand of prior work calibrates the expected loss of a set predictor. The paper draws on results for losses that vary monotonically as the predictor moves through nested sets. A false-positive count fits that setting because adding labels can leave the count unchanged or increase it. That elementary observation opens a route to a guarantee on incorrect inclusions. The authors also describe earlier work that can control losses without this monotonicity, including the false discovery rate.
Counts, fractions, and decisions to abstain
The false discovery rate concerns the fraction of the selected candidates that are incorrect. A fraction can express how clean a list is, especially when the domain offers many correct candidates. A count expresses the volume of unsuccessful work. Two lists can have the same fraction of errors and require very different amounts of checking. Conversely, a list with few correct answers can have a high error fraction even when its absolute number of errors is acceptable for the application.
The paper illustrates this distinction with a ranked list whose only correct item is 10th. A prefix that reaches that item contains 9 wrong answers, and the fraction of wrong answers at that point is 0.9. A count-based rule can express the willingness to check that list. A fraction-based rule seeking a stricter cutoff would have to reject every nonempty prefix in the example. Choosing a more permissive fraction, meanwhile, can allow much larger counts of wrong answers on other inputs. The authors’ choice of a count reflects the combination of sparse correct answers and a tangible cost for each failed check.
The guarantees have precedents in multiple testing. The average number of errors in a family of decisions corresponds to the per-family error rate. A probability bound on exceeding an error count is closely related to generalized familywise error control. The paper’s setting supplies a different source of calibration information from the classical procedures it discusses. Candidates for the same query may have an unknown dependence structure. Instead of imposing a particular dependence pattern within the query, the authors use exchangeability across whole queries. In this setting, exchangeability means that permuting the calibration and test examples leaves their joint distribution unchanged.
The paper also relates its goal to selective classification, where a predictor can decline to answer when it is uncertain. Here, declining to answer takes the form of an empty set. A very tight false-positive tolerance can make that outcome common, especially when the available candidates are difficult to rank. More permissive tolerances leave room to return useful candidates even when a perfectly clean set is unlikely. The size of the resulting answer is thus part of how the procedure responds to uncertainty.
Why scores alone are insufficient
A separate line of earlier work seeks reliable probabilities for individual answers. If a system assigns a certain probability to a group of predictions, calibration in that sense asks whether the predictions succeed at the corresponding frequency. The paper also discusses Bayesian predictive distributions, whose quality can depend on the prior and on approximation. Its concern is that estimated probabilities can be imperfect, including in molecular property prediction. Uncertainty Quantification Using Neural Networks for Molecular Property Prediction
Even a useful ranking can come with inaccurate probability values. Moreover, the chance that a list contains more than an allowed number of errors depends on which errors occur together. The method uses estimated probabilities to rank candidates and to help score whole sets. It then uses observed false-positive counts on labeled examples to decide which set scores are acceptable. This division gives estimated probabilities a role in finding promising lists and gives exchangeable calibration examples the role of supporting the guarantee.
The method, step by step
From candidate scores to a returned set
The method separates three decisions. First, it chooses which candidate lists are worth looking at. Second, it determines which of those lists a calibrated rule will permit. Third, it selects a list among the permitted ones. The first decision makes the search tractable, the second supplies false-positive validity, and the third determines how much of the available recall the procedure gets.
Suppose an input arrives with a collection of candidate answers and a score for each candidate. The paper orders the answers from most to least likely to be correct. It considers the list containing just the leading candidate, then the list containing the leading candidates up through the next rank, and so on to a fixed search limit. As a result, every list in the sequence is contained in all the later lists. The paper calls this a nested construction. It replaces a search over arbitrary subsets with a search along one ranking.
A second scoring function looks at each list as a whole. Its output reflects how many false positives the list is likely to contain or how likely the count is to exceed the user’s limit. During calibration, the authors evaluate the lists on labeled inputs and record their actual errors. This produces a relationship between a possible score cutoff and the worst false-positive count that cutoff would admit on each calibration example. The cutoff is chosen from these observed relationships, with a finite-sample adjustment.
At prediction time, the ranking and scoring steps run again on the new input. The procedure keeps the lists with scores strictly below the calibrated cutoff, then returns the largest one. It can return the empty set when no nonempty candidate list qualifies. The actual answers for the new input are needed to evaluate the result later, while the prediction itself needs only the candidate scores and the calibrated cutoff.
From labeled training examples to a prediction set
The steps in order.
What the guarantees measure
The mathematical setup treats a query and its correct answers as a pair. The input space is 𝒳, and 𝒴 is the space of possible labels. The notation 2^𝒴 denotes all subsets of 𝒴, including the empty set. An example indexed by i consists of a random input Xᵢ and its random set of correct labels Zᵢ. The first n examples are available for calibration, and the example with index n+1 is the test query. Lower-case x and z refer to particular realizations of an input and its correct labels.
The authors measure successful recovery with the true positive proportion.
TPP(z, C(x)) = |C(x) ∩ z| / max(|z|, 1)
Here C(x) is the set returned for x, z is the correct label set, and ∩ takes their intersection. Vertical bars count the elements of a set. The function max chooses the larger of the two quantities, so the denominator is 1 when z is empty. TPP is then zero for an input with an empty correct label set, including when the procedure appropriately returns an empty output. The true positive rate, or TPR, is the expectation of TPP. Each query contributes its own recovery fraction before those fractions are averaged.
The false-positive count treats each returned label outside the correct set as one mistake.
FP(z, C(x)) = |C(x) ∖ z|
FP denotes the false-positive count, and ∖ denotes set difference. The labels counted here belong to C(x) and lie outside z. A correct label omitted from C(x) affects TPP. It contributes no false positive. When z is empty, every element of C(x) is a false positive.
In the expectation version, the desired predictor solves the following constrained problem.
Maximize E[TPP(Zₙ₊₁, Cₖ(Xₙ₊₁))] subject to E[FP(Zₙ₊₁, Cₖ(Xₙ₊₁))] ≤ k
Cₖ denotes the predictor constructed for the expected-count tolerance k, a positive real number. E denotes expectation and averages over the choice of calibration data and the new test example. Xₙ₊₁ is the test input and Zₙ₊₁ its correct answer set. The inequality is the definition of k-FP validity. A particular list can contain more than k errors while the predictor still meets the expected-count requirement.
The probability version uses an additional tolerance δ.
Maximize E[TPP(Zₙ₊₁, Cₖ,δ(Xₙ₊₁))] subject to P(FP(Zₙ₊₁, Cₖ,δ(Xₙ₊₁)) ≤ k) ≥ 1 − δ
Cₖ,δ is the predictor for the count k and the probability tolerance δ. P denotes probability, again over calibration and test examples, and δ lies strictly between 0 and 1. The event inside P is that the new set contains at most k false positives. Its probability must be at least 1 − δ. This is the paper’s (k, δ)-FP validity. The target concerns how frequently the count exceeds k. The expected-count and probability objectives describe different properties of the same error distribution.
How the calibration differs from an ordinary coverage rule
The paper uses split conformal classification as a point of comparison. In that setup, there is a single correct label Yᵢ for each Xᵢ, and a fixed nonconformity function M assigns a score to an input paired with a label. Define Vᵢ as M(Xᵢ, Yᵢ), the score obtained by pairing each calibration input with its actual label. The following rule constructs the ordinary coverage set.
Cε(x) = {y ∈ 𝒴 : M(x, y) ≤ Quantile(1 − ε; V₁:ₙ ∪ {∞})}
Cε(x) is the coverage set for the input x and error tolerance ε, which lies between 0 and 1. A candidate y is a member of the label space 𝒴, as indicated by ∈. M(x, y) is its nonconformity score. V₁:ₙ denotes the calibration scores from the first through the nth example. Quantile takes the indicated fraction of those scores with an additional value of positive infinity, ∞. The union symbol ∪ here represents adding that value to the score collection. The colon inside the enclosing braces means that a label is included when it satisfies the stated condition.
P(Yₙ₊₁ ∈ Cε(Xₙ₊₁)) ≥ 1 − ε
Yₙ₊₁ is the true single label of the new exchangeable example. The event is membership of that label in the returned set. Using a score learned on separate training data allows the scores of the correct input–label pairs to inherit the exchangeability of the examples. The rank of the test score among those scores supplies the coverage bound. In the new method, the objects being calibrated are error counts for candidate sets. The working score for a set is still learned in advance, but its threshold is chosen to control a different event or expectation.
The ideal decision and the tractable search
The paper motivates its design with an oracle that knows the conditional distribution of the correct label set Z given a particular input x. Such an oracle can calculate both the expected count of wrong answers in any proposed set and the chance that the count exceeds a specified limit. For the expectation version, the idealized choice is as follows.
Cₖᵒʳᵃᶜˡᵉ(x) = arg max over S ∈ 2^𝒴 with E[FP(Z, S) | X = x] ≤ k of E[TPP(Z, S) | X = x]
S ranges over subsets of the label space, and Cₖᵒʳᵃᶜˡᵉ(x) is the subset chosen by the oracle. The expression arg max selects a set attaining the largest objective value. The vertical bar before X = x means that the expectation is taken conditional on the particular input x. The oracle constrains the expected false-positive count for that input and maximizes its expected recovery fraction. The authors favor the smaller set when sets tie.
Cₖ,δᵒʳᵃᶜˡᵉ(x) = arg max over S ∈ 2^𝒴 with P(FP(Z, S) > k | X = x) < δ of E[TPP(Z, S) | X = x]
Cₖ,δᵒʳᵃᶜˡᵉ(x) denotes the corresponding oracle set for an exceedance constraint. The probability inside the restriction measures, for the specified input x, how frequently S would contain more than k wrong labels. The objective continues to use the expected recovery fraction. These oracle expressions motivate the search for useful sets. The guarantees the authors establish for their implemented procedure are marginal over queries and calibration data.
The oracle faces two obstacles in practice. The conditional distribution of the correct labels is unknown, and considering every possible subset is expensive when there are many candidates. The practical method replaces the distribution with a learned estimate of false-positive behavior and replaces the subset search with ranked prefixes. The estimates determine how the candidate sets compare. Labeled calibration observations then determine which score cutoff can support the desired bound.
The top B candidates define the part of the ranking the method can use. B is a finite upper bound on the number of items in any candidate output. Write Sⱼ for the prefix ending at rank j, for j from 1 through B. For a fixed truth set z, nesting gives the following relation.
j ≤ j′ ⇒ FP(z, Sⱼ) ≤ FP(z, Sⱼ′)
The index j′ denotes another prefix length, and ⇒ means that the relation on the left implies the one on the right. Every incorrect label in the smaller prefix is present in the larger prefix. The same containment preserves correct labels too. This is the reason the largest eligible prefix can maximize recovery among the prefixes that pass.
Scoring the whole set
The paper uses DeepSets to estimate the distribution of false-positive counts. Its input for a candidate label is a feature vector φ(x, y꜀), where y꜀ is an item in the candidate set S. In the experiments, the feature is a single score, written pθ(y꜀ ∈ Z | x). This is the estimated marginal probability that y꜀ is correct for x. The parameter symbol θ stands for the fitted parameters of the individual candidate scorer. The authors reuse the same estimate for ordering the candidates and representing them inside the set scorer.
Ψ(x, S) = softmax(dec(Σ over y꜀ ∈ S of enc(φ(x, y꜀))))
Ψ(x, S) is the predicted probability distribution for the number of wrong labels in S given x. The encoder enc transforms the feature φ(x, y꜀) of each label y꜀. The sum Σ pools the encoded items, and the decoder dec turns that pooled representation into scores for the possible counts. The softmax operation converts those scores into probabilities over the counts from 0 through |S|. Since the combination is a sum, permuting the labels in S leaves the representation unchanged.
The training data are separated before the set scorer learns. One part is used to fit the predictor that supplies the individual label scores. A different part supplies labeled examples from which candidate sets can be sampled. On that part, the authors can count the incorrect labels in each sampled set. They train DeepSets with cross-entropy, which gives the scorer an incentive to assign higher probability to the observed count. This produces a distribution from which either of the paper’s risk scores can be obtained. The calibration data used to choose the cutoff are separate from the data used to fit both scorers.
For expected-count control, the score is a weighted average over possible counts.
Fₖ(x, S) = Σ from η = 0 to |S| of η · Ψ(x, S)η
Fₖ(x, S) denotes the nonconformity score used for the expectation version. The variable η is a possible false-positive count. The notation Ψ(x, S)η means the probability assigned to count η by the softmax distribution. Multiplication by η weights that probability by the number of errors it represents. The resulting sum is the estimated number of false positives.
For probability control, the score is the estimated mass above the allowed count.
Fₖ,δ(x, S) = 1 − Σ from η = 0 to min(k, |S|) of Ψ(x, S)η
Fₖ,δ(x, S) denotes the score used for the probability version. The function min takes the smaller upper limit, and the sum includes the integer counts η up to that limit. The sum is the estimated probability that the count is at most k. Subtracting from 1 gives the estimated probability of more than k false positives. The score is named for the probability-control procedure, where δ enters the choice of the calibrated threshold.
An accurate estimate gives the search useful information about which lists are likely to be safe. A set scorer can make errors even when it orders many lists sensibly. For that reason, the method uses its outputs as scores to be calibrated. In the expectation version, simply accepting all lists whose estimated count is within the user’s budget would make the budget depend on how accurately the scores predict actual errors. The calibration step addresses that gap.
Turning scored candidates into calibration data
The procedure builds candidate prefixes for each calibration example and assigns a finite score to each prefix.
vⱼ = F(x, Sⱼ)
Here F stands for the chosen set scoring function, x is the input, and vⱼ is the score of the prefix Sⱼ. The calibrated rule will admit a prefix if vⱼ is strictly below a threshold t. Scores need not rise in prefix order. The calculation considers the scores of all candidate prefixes, so a longer prefix can pass the threshold even if a shorter one fails.
With the correct labels z available during calibration, the paper records the worst count among the candidate lists that any trial threshold would admit.
FPₘₐₓ(x, z, t) = max{FP(z, Sⱼ) : vⱼ < t}
FPₘₐₓ(x, z, t) denotes the maximum actual false-positive count over the prefixes Sⱼ whose score vⱼ is below t. When no prefix qualifies, its value is 0. For nested sets the largest qualifying prefix has this maximum count, since every other qualifying prefix is contained inside it. The function of t can be computed from the candidate scores and error counts for that calibration example.
t ≤ t′ ⇒ FPₘₐₓ(x, z, t) ≤ FPₘₐₓ(x, z, t′)
Here t′ is another possible threshold. Raising the threshold keeps all previously admitted sets and may admit additional sets. Taking a maximum over a larger collection can only preserve or increase the maximum. This argument also works for a collection of candidate sets without nesting. For such a collection, the set with the most items and the set with the most errors can differ.
For expected-count validity, the threshold is chosen by a corrected average.
Tₖ = sup{t ∈ ℝ : (B + Σ from i = 1 to n of FPₘₐₓ(Xᵢ, Zᵢ, t)) / (n + 1) ≤ k}
Tₖ is the threshold learned from the first n random examples for the expected-count tolerance k. The symbol sup means the least upper bound of the eligible thresholds, and ℝ denotes the real numbers. The sum ranges over the n calibration inputs Xᵢ and their true label sets Zᵢ. The additive term B is the largest possible false-positive count of a candidate set. The denominator n + 1 includes a slot for the new example. That slot contributes its worst possible count when testing the calibration inequality.
For probability validity, the adjustment gives the unknown example no credit toward the required success frequency.
Tₖ,δ = sup{t ∈ ℝ : (Σ from i = 1 to n of 𝟙{FPₘₐₓ(Xᵢ, Zᵢ, t) ≤ k}) / (n + 1) ≥ 1 − δ}
Tₖ,δ is the threshold learned for the count limit k and the exceedance tolerance δ. The indicator 𝟙 is 1 when the condition in braces holds and 0 otherwise. The numerator counts calibration examples whose worst admitted set has at most k false positives. The denominator includes the new example, while the numerator counts only the observed successes. Both threshold rules seek the most permissive cutoff supported by their respective finite-sample adjustments.
A useful way to read the proof is to imagine the threshold that could be chosen if all examples, including the test one, had labels. A rule using the complete collection symmetrically gives every example the same role. Under exchangeability, the expected performance of the designated test example at that symmetric threshold can be related to the average performance of all examples. The correction in the actual rule makes its threshold conservative relative to the full-data construction. The false-positive maximum rises as the threshold is relaxed, so the more conservative threshold preserves the desired direction of the bound. The strict test vⱼ < t matters at an observed score. A candidate enters only once the threshold rises past its score, so taking a supremum respects the endpoint convention used in the proof.
E[FPₘₐₓ(Xₙ₊₁, Zₙ₊₁, Tₖ)] ≤ k
The expectation E covers the random calibration threshold Tₖ and the new exchangeable pair Xₙ₊₁, Zₙ₊₁. The inequality controls the worst eligible set’s false-positive count in expectation. A selected candidate set has a count bounded by that maximum.
P(FPₘₐₓ(Xₙ₊₁, Zₙ₊₁, Tₖ,δ) ≤ k) ≥ 1 − δ
The probability P covers the random threshold Tₖ,δ and the new exchangeable pair. Whenever this maximum is at most k, every eligible set for that input has at most k false positives. The theorem therefore supports the final choice among candidates without a second calibration for that choice.
Why the largest eligible prefix is selected
Let t★ denote the realized threshold from either calibration rule. The procedure first identifies the qualifying indices, then returns the prefix with the largest qualifying index.
J = {j ∈ {1, …, B} : vₙ₊₁,ⱼ < t★}
J is the set of admissible prefix indices j. The score vₙ₊₁,ⱼ is the nonconformity of prefix j for the new input. B still caps the search, and t★ is the cutoff fitted on calibration examples.
C(xₙ₊₁) = Sₙ₊₁,ₘₐₓ J
C(xₙ₊₁) is the output for the realized test input xₙ₊₁. Sₙ₊₁,ₘₐₓ J denotes its prefix with the largest index in J. If J is empty, the procedure returns the empty set. Every correct label in a smaller eligible prefix is present in the largest eligible prefix. Because all these lists share the same denominator in TPP, the largest eligible one has at least as high a recovery fraction as any other eligible prefix for every realization of the truth. The authors thus obtain a simple selection rule with a precise scope of optimality. The ranking and calibrated cutoff define the candidates over which that optimality holds.
Experiments and results
Three kinds of candidate lists
The authors evaluate the same calibration strategy on tasks that differ in what counts as a candidate, what makes it correct, and how many correct answers tend to occur together. Each experiment uses B = 100 as the maximum number of ranked candidates considered for a query. This puts a common bound on the search and on the error count used in the expected-count correction. The upstream predictors and the definitions of correctness vary with the task.
For molecular screening, a query specifies a combination of property requirements and the candidate labels are compounds. The authors build the task from ChEMBL. They split molecules into a 60-20-20 partition, with 60% for training, 20% for validation, and 20% for testing. They also separate the property combinations, so the test queries combine familiar properties in configurations held out from training and use a pool of held-out molecules. Either separation by itself would give a different test. Together they require the procedure to use its learned scoring on fresh combinations and fresh candidates.
ChEMBL contains missing property labels. The authors start with properties having at least 50 positive and negative examples and retain combinations with at least 100 molecules labeled for every property in the combination. They set the number of combined properties to 2. They sample whether each property must be active or inactive in a given combination, then reject that combination if the resulting constraint is met by over 90% of labeled molecules. The split contains 4375 training combinations, 767 validation combinations, and 5000 test combinations. Candidates for each combination come from its corresponding molecule split.
The screening scores come from an ensemble of 5 directed message-passing neural networks trained with different random seeds. The paper identifies chemprop as the implementation. The input represents molecular structure, and the learned representation is shared across property predictions. Separate classifier heads score the individual properties. For a combined query, the ranking score uses a product of estimated probabilities.
pθ(Z₁ = z₁, …, Zₖ = zₖ) = ∏ over i of pθ(Zᵢ = zᵢ)
Here the subscripted Zᵢ denotes the value of property i for a molecule, and zᵢ is the requested value of that property. In this formula, the last index k refers to the number of property requirements, distinct from the false-positive tolerance elsewhere in the paper. The symbol ∏ multiplies the individual estimated probabilities, and θ denotes the fitted predictor parameters. This is the paper’s independence approximation for the ranking score. Calibration evaluates the set’s actual errors on labeled examples without requiring this approximation to describe the joint distribution correctly.
For object detection, each candidate couples a bounding box with a proposed class. The underlying images include everyday scenes drawn from 80 object categories. The detector is EfficientDet, with non-maximum suppression to remove highly overlapping proposals based on their scores. The authors collect the resulting class–box pairs in a common candidate list. This representation supports boxes for several objects of the same class and proposed class alternatives for a box. A candidate is credited as correct when its class matches a reference annotation and its intersection over union with the annotated box is greater than 0.5. Intersection over union is the shared area of the boxes divided by the area covered by either one. The image data come from Microsoft COCO.
The COCO test annotations are hidden, so the authors work from the 5k development examples. Their dataset description gives partitions of 1k for calibration, 1k for validation, and 3k for testing. The implementation identifies the EfficientDet variant as tf_efficientdet_d2. The false-positive metric counts incorrect class–box candidates according to the paper’s matching rule. This makes the reported risk about the quality of a returned set of proposals under that definition of correctness.
For text, the task is to find spans in a tokenized sentence that name entities and to assign each span an entity category. An otherwise plausible prediction counts as an error if it gets the span boundaries or the category wrong. The paper uses named entity recognition to obtain a setting where some sentences contain several correct labels and many contain none. The benchmark is CoNLL-2003.
The candidate scorer is the entity extraction component of PURE. It scores spans using contextual representations for their first and last tokens and a learned feature for the width of the span. The contextual representations come from ALBERT. The paper describes training on CoNLL’s training set using the official PURE code and a context window of 100. Its dataset details list 1k calibration examples drawn from the 3.3k development set and a 3.5k test set. The dataset statistics give the more precise test count of 3,453. For the false-positive calibration procedure itself, the authors name the conformal-fp repository and describe its release as forthcoming.
The test data help explain why one tolerance value can mean different things across tasks. Looking at the highest-ranked B = 100 candidates for each example yields median positive counts of 15 in screening, 4 in detection, and 1 in entity extraction. The corresponding median numbers of negatives are 85, 96, and 99. The reported percentages with empty label sets in those test statistics are 0.0 for screening, 1.1 for detection, and 20.2 for entity extraction. These figures describe the authors’ candidate setup. A typical ranked list in entity extraction has far fewer positives to recover than a typical screening list. That also changes what a large absolute false-positive tolerance can buy.
Evaluation and comparison methods
The reported evaluation trains on the training data, uses validation for selection, and averages final test results over 1000 random trials. For these trials the paper describes splitting the test data into 80% calibration points and 20% prediction points. This is the repeated evaluation protocol given alongside the dataset descriptions, which also give the dataset-specific calibration and testing partitions. The curves vary k up to B, and the paper uses the area under each curve to summarize behavior over that range. Shading on the curves represents the 16-84th percentiles across trials.
TPR is the main recovery measure. The expected-count experiments also report the average number of false positives. In the probability experiments, the corresponding marginal measure is the percentage of outputs with at most k false positives. The authors additionally check size-stratified false-positive violation, abbreviated SSFP. They group predicted sets by size and examine the worst excess over the target within a group. This addresses a practical concern with a marginal average. An overall result may look satisfactory even while one region of output sizes systematically carries more errors than the target suggests.
For the count objective, the group-level diagnostic is based on the following quantity.
SSFPₖ = sup over s of max(Ê[FP(Zₙ₊₁, Cₖ(Xₙ₊₁)) | |Cₖ(Xₙ₊₁)| ∈ Aₛ] − k, 0)
SSFPₖ is the worst empirical excess in average false-positive count across the groups indexed by s. Aₛ is the range of set sizes for group s, and Ê denotes the empirical average over the predictions in that group. The conditioning bar limits the average to outputs whose size belongs to Aₛ. The function max compares the excess with 0, so a group below the tolerance contributes zero violation. Taking the supremum over s retains the worst group result.
SSFPₖ,δ = sup over s of max(Ê[𝟙{FP(Zₙ₊₁, Cₖ,δ(Xₙ₊₁)) > k} | |Cₖ,δ(Xₙ₊₁)| ∈ Aₛ] − δ, 0)
SSFPₖ,δ is the corresponding worst group excess for the probability objective. The indicator marks a prediction whose error count exceeds k, so its empirical average within a group is the observed exceedance frequency. The function subtracts the allowed probability δ and again ignores negative excesses by comparing with 0. The authors show that validity conditional on each input entails validity within groups defined by output size for the predictor. The empirical scores check a consequence of conditional validity using a grouping the experiment can observe.
The fixed-length Top-k baseline always returns the same number of ranked predictions. That number, denoted k′ in the paper, is chosen using calibration performance and can differ from the tolerance k. It uses uncorrected empirical performance to pick its length. This baseline tests whether a simple rank cutoff chosen for the whole task captures the benefit of adapting the output to each input.
The multi-label conformal baselines use the inner and outer constructions. Outer Sets @ 90 seeks to contain the full correct label set with marginal probability at least 0.90. It gives a reference point for a predictor built around coverage. Inner Sets seeks to return only correct labels with a specified probability. The paper sets the inner-set error tolerance to k divided by B for expected-count control. Since the false-positive count can be at most B, that choice bounds the expected count even if every item in a failed set is wrong. For probability control it sets the inner-set error tolerance to δ. Exceeding the allowed count requires a failure of the condition that the output is entirely correct, so controlling that broader event suffices. Both constructions can use much less of the permitted error budget than a procedure calibrated directly for the desired objective.
Two other baselines keep the proposed calibration procedure and substitute simpler ways to score a set. The first uses the largest estimated uncertainty of any individual item.
Fₘₐₓ(x, S) = max{1 − pθ(y꜀ ∈ Z | x) : y꜀ ∈ S}
Fₘₐₓ is the independent scoring baseline. The term subtracted from 1 is the estimated probability that y꜀ is correct for the input x, so the difference estimates its probability of being wrong. The maximum takes the least confident item in the set S as the score. A set passes a score threshold when its individual members satisfy the corresponding confidence requirement.
The second sums the estimated uncertainties across the set.
Fₛᵤₘ(x, S) = Σ over y꜀ ∈ S of (1 − pθ(y꜀ ∈ Z | x))
Fₛᵤₘ is the cumulative scoring baseline, and the sum adds the estimated error probability of every candidate y꜀ in S. The paper applies Platt scaling to the individual probabilities for this baseline. Summing error probabilities is the natural form of an expected count when the individual probabilities are accurate, because expectation distributes over the indicators for each error. An exceedance probability also depends on how those errors occur together. Using the same FP-CP calibration for both scoring baselines and DeepSets lets the comparison examine the effect of changing the set scores while retaining the same calibration rule.
Recovery at a small false-positive allowance
The ChEMBL results give concrete operating points for the recovery and error metrics. With k = 5 for expected-count control, FP-CP with DeepSets reaches 36.1% TPR. The sum scorer reaches 34.1, the max scorer reaches 27.5, and the fixed-length Top-k baseline reaches 29.8, all on the same TPR percentage scale. The Inner Sets baseline reaches 2.5. Its low recall accompanies an average false-positive count of 0.14. DeepSets and the max scorer each average 4.98, while the sum scorer averages 4.99 and Top-k averages 4.59.
ChEMBL test true positive rate with expected false-positive tolerance k = 5
DeepSets recovers the most correct labels at this operating point.
The numbers
| System or setting | TPR % |
|---|---|
| Inner Sets | 2.5 |
| FP-CP with max scoring | 27.5 |
| Top-k | 29.8 |
| FP-CP with sum scoring | 34.1 |
| FP-CP with DeepSets (this paper) | 36.1 |
The same test task illustrates the probability objective at k = 5 and a target success probability of 0.9. Here the learned scorer reaches a TPR of 31.6 on the percentage scale, with 90.0 percent of prediction sets meeting the count limit. Sum scoring gives 27.2 TPR, and max scoring gives 15.8, with each also reporting 90.0 percent of sets at or below the limit. Top-k gives a TPR of 20.5, and Inner Sets gives 6.36. The comparison is tied to the stated probability constraint. Its recovery rates describe a different operating condition from those in the expected-count chart.
ChEMBL test true positive rate with k = 5 and target success probability 0.9
DeepSets leads the recovery comparison under the exceedance constraint.
The numbers
| System or setting | TPR % |
|---|---|
| Inner Sets | 6.36 |
| FP-CP with max scoring | 15.8 |
| Top-k | 20.5 |
| FP-CP with sum scoring | 27.2 |
| FP-CP with DeepSets (this paper) | 31.6 |
The ChEMBL table shows how this comparison changes as the error allowance grows. At k = 15 in the expected-count experiment, the TPR values for DeepSets and sum scoring are 59.9 and 58.8, respectively, and both average 14.99 false positives. At k = 35 their TPR values are 82.5 and 82.6, with 34.99 average false positives for each. In the probability experiment at k = 35 with target success probability 0.9, DeepSets attains 79.0 TPR and sum scoring attains 74.0, with both recording 90.0 percent of sets within the bound. This is one reason to read the recovery results at specific tolerances and for the specific form of risk that matters.
Across the three tasks, the curves generally show strong recovery for the FP-CP variants as the budget grows, with DeepSets achieving the best or close to the best area under the TPR curve in the probability experiment. The paper highlights stronger differences among scorers on screening, where the candidate lists have more correct labels to recover. In entity extraction the TPR curve approaches the natural rate of inputs with an answer. The metric assigns zero TPP to an example with no correct labels, even when the predictor handles it appropriately by returning nothing. The curve’s ceiling therefore reflects the data and the metric as well as the quality of the ranking.
Coverage as a reference point
The coverage-seeking Outer Sets baseline gives a direct view of how many errors a reassuring coverage target can allow. On the ChEMBL test task its true positive rate is 97.2% at the stated coverage level of 0.90. Its average number of false positives is 63.6 and its average output size is 86.6. The authors report a TPR of 97.0% for FP-CP when the expected-count control is set at 63.6. This comparison uses the observed mean error count of the coverage baseline as the requested tolerance for FP-CP. It aligns the comparison around a false-positive budget while leaving each method’s guarantee in its original form.
ChEMBL test true positive rate at comparable average false-positive budgets
FP-CP retains nearly the same recovery while explicitly controlling the average error count.
The numbers
| System or setting | TPR % |
|---|---|
| Outer Sets at coverage level 0.90 | 97.2 |
| FP-CP at expected-count tolerance 63.6 (this paper) | 97.0 |
On object detection, Outer Sets reports 96.1 TPR on the percentage scale, 32.4 average false positives, and an average output size of 38.2. On entity extraction it reports 75.0 TPR, 0.77 average false positives, and an average size of 2.31. These are all results for the same nominal coverage level of 0.90. The difference in counts shows why a coverage level cannot by itself tell the user how many candidates will needlessly be checked. It also shows why the practical size of the problem depends on the application. The coverage reference set has a much smaller absolute error count for entity extraction than for screening.
What the ablations show
How much the set scorer contributes
The main component comparison replaces DeepSets with max or sum scoring and keeps FP-CP calibration. All three variants use ranks from the individual candidate scorer, construct prefixes, and calibrate a score cutoff against actual mistakes. What changes is the signal that helps the calibration find which prefixes to retain. This makes the comparison a test of the set score within the paper’s search and calibration procedure.
The max scorer gives more weight to the weakest candidate than to the rest of the list. It treats a new item primarily as a test of whether that item meets the individual confidence cutoff. The sum scorer captures accumulation. Several individually plausible answers can together have an appreciable expected error count, and the sum changes as each such candidate is added. DeepSets can learn a mapping from the collection of individual scores to a distribution over set-level errors. For instance, two sets with the same cumulative uncertainty could contain differently distributed levels of candidate confidence. The learned scorer has access to that pattern through its pooled representation.
On ChEMBL, at the reported expected-count tolerance of 5, DeepSets achieves the highest TPR among the three calibrated scorers, with essentially the same observed false-positive count as the alternatives. This ties the recovery gain to which lists the scorer makes available at the budget, rather than to a larger permitted count. The sum scorer is close at some settings and gives a slightly higher reported TPR at the expected-count tolerance of 35. Under the probability objective at the reported tolerance of 35, DeepSets has a clearer recovery advantage over sum scoring while both record the same percentage of sets within the bound. Taken together, the comparisons support the value of the learned distribution in the authors’ setup, with the size of the gain depending on the objective and the tolerance.
The paper also compares how uniformly the calibration behaves across output sizes. DeepSets generally gives lower worst group violations than max or sum scoring over the tolerance curves, though violations can change considerably with k. This is additional evidence that the learned score helps allocate the allowed mistakes across queries. Since all the FP-CP variants receive the same type of marginal guarantee, a contrast in size-stratified performance is evidence about the behavior within those groups. It says more about how the score distinguishes candidate sets than another check of the overall validity bound would.
Why error control and recovery have to be read together
Top-k uses a length calibrated for the whole task. The FP-CP variants choose a length for each input by filtering prefixes through the score threshold. At a tight expected-count tolerance on screening, fixed-length selection recovers more than max scoring, while sum scoring and DeepSets each recover more than Top-k. The different orderings show that adapting length creates an opportunity to improve recovery, and the set score determines how well the method uses that opportunity. The simpler calibrated variants can still be useful, and the improvement from using calibration with a given score depends on how informative the score is for the available candidates.
Inner Sets illustrates a different source of apparent performance. A rule that returns only very safe candidates can have low average false positives and low size-stratified violations. It can also recover very little. In the limiting case, empty outputs carry no false positives. The authors therefore read violation curves together with recovery curves. At tight budgets in the screening experiment, the inner construction operates well inside the allowed average error count and recovers relatively few positives. The FP-CP variants are calibrated to use the permitted count directly and generally achieve higher TPR. The comparison distinguishes satisfying a constraint from making productive use of the room that constraint leaves.
The Outer Sets comparison exposes the opposite behavior. The coverage baseline protects inclusion of the correct set and returns many incorrect candidates on screening and detection. Its target answers a question about omissions. FP-CP answers a question about erroneous inclusions. The ChEMBL comparison at the baseline’s observed average cost shows that explicit control can preserve high recall at that operating point. The comparison uses a relatively loose count budget, so the tight-budget comparisons are still needed to evaluate how the method behaves when the user has little room for errors.
What the task comparisons can support
The authors observe a more pronounced advantage for DeepSets on the screening task, which has a higher median number of positives among the ranked candidates. A set scorer has more opportunity to distinguish among lists when there are many correct candidates to recover and many possible points at which to stop. In the text task, empty answers and short correct sets constrain the possible TPR gains, and enough error tolerance eventually lets several scores approach the same recovery ceiling.
These are comparisons across different tasks, with different upstream scoring systems and different definitions of correctness. The strongest component comparison is the substitution of scorers within the same task. The cross-task pattern suggests where a learned set score may matter more, while the experiments leave the contributions of label cardinality, base ranking quality, and task structure entangled. Likewise, the authors mention preliminary tests of dynamic quantiles for the earlier conformal baseline, with little change in marginal results. The main comparison uses the direct inner and outer constructions.
Limitations
Limits identified by the authors
The method takes the user’s tolerances as inputs. The authors relate the expected-count tolerance to an approximate budget and the cost of a failed check, but selecting that tolerance depends on the application. A cost per incorrect proposal can make the error count a useful proxy. Applications in which different mistakes have very different costs require a decision about how well a uniform count represents the burden. The probability version additionally requires the user to decide how frequently exceeding the chosen count is acceptable.
The bound B involves a tradeoff that matters most for control in expectation. It makes the search efficient, and it supplies the maximum count used in the correction. If the full label space is very large, using its size for B can make the correction so conservative that every nonempty output is excluded. The paper gives the condition that this occurs when B exceeds k(n + 1). Here n is the calibration sample size and k is the expected-count tolerance. A smaller B can make calibration feasible and reduce computation, at the expense of excluding any correct candidates beyond the truncation point. The authors hold B fixed in the experiments, so their results characterize the chosen search limit.
The learned set score uses only scalar candidate features in the experiments. This makes the scorer easy to attach to an existing ranking system and keeps its training relatively lightweight. It also discards potentially useful relations among labels and information about the input. The paper gives the example of mutually exclusive candidates. A set containing both must contain at least one error, but a scorer that receives only their individual probabilities may have no feature expressing their mutual exclusion. The authors propose richer candidate features as a direction for further work. The validity theorem can accommodate a different scorer under the same calibration assumptions.
The authors also identify limits of prefix search. A ranking based on estimated marginal correctness can put an incorrect label ahead of a correct one. Retaining the lower-ranked correct candidate then also retains its higher-ranked predecessors. A different search could use whole-set evidence to consider a proposal that omits the problematic candidate. The paper’s monotonic maximum construction can calibrate non-nested proposals as well. Searching for such sets efficiently and choosing among them are separate problems. With non-nested candidates, the largest admissible set need not have the best recall, since a smaller admissible set can contain correct labels absent from the larger one.
What follows from the design and evidence
The guarantees apply to exchangeable calibration and test examples. A deployment population with a different mix of queries, candidate scores, or error behavior can change the performance of the calibrated cutoff. The proof averages over the calibration and test draws, so it does not give a separate budget promise for a selected query or for every realized calibration dataset. Under expected-count control, some predictions can exceed the allowed average. Under probability control, the permitted exceedances can still be large because the constraint governs their frequency. These are consequences of the forms of the guarantees, even when the assumptions hold.
The size-stratified analysis detects some ways a marginal guarantee can mask variation. Groups of output sizes can mix queries whose errors have very different patterns. An acceptable empirical result for each size group therefore supports a narrower conclusion than validity for every input. The diagnostic is strongest as evidence of a problem when a group visibly exceeds the tolerance. Small observed group violations remain compatible with differences inside the groups and with sampling variation across trials.
Recall has a similarly precise scope. The final selection has the largest TPP available among the eligible nested prefixes, even though the true labels are unknown at prediction time. That follows from containment. A different ranking, a different set of proposals, or a different division of the marginal error budget across queries could achieve higher expected recall. The experiments show what these scorers and this search procedure recover at the tested tolerances. The optimization expressions motivate the method, while the false-positive constraints and the restricted selection result are the formal guarantees.
TPR measures the fraction of labeled positives recovered, averaged across queries, with empty correct sets scoring zero. The practical motivation for screening includes finding at least one useful compound, a goal that can be fulfilled even when the recovery fraction is small. For entity extraction, the same TPR convention means an appropriate empty answer adds no recovery credit. Interpretations involving how frequently users receive at least one useful result, or how successfully the system decides to abstain, require separate quantities. The ChEMBL experiment also evaluates correctness against recorded properties and held-out combinations. The reported error counts refer to that benchmark setup, whereas the practical cost of experimental follow-up motivates the choice of guarantee.
The results compare a learned whole-set scorer with simpler alternatives over several tasks, but the scalar features, fixed search cap, and chosen candidate generators define the comparison. The paper reports little gain from learning the set score at some operating points and clearer gains at others. The evidence supports the distinction between statistical validity and predictive efficiency. The calibration can make an elementary score valid, while the ranking and scoring quality determine how many useful labels remain available at that valid threshold.
What came after
A later paper takes up uncertainty in a setting where several destinations can be relevant to one input. Its subject is routing clinical text to surveillance pathways, with the routing framed as a multi-label decision. The connection is that a returned label can carry a downstream action. In the original paper’s screening example, that action is checking a proposed candidate. In a routing problem, the corresponding decision is whether to direct an item towards a particular pathway. Uncertainty-Aware Multi-Label Routing of Clinical Text to Surveillance Pathways
The later work cites the false-positive-limited approach. Its title establishes the application and its attention to uncertainty. The citation establishes the connection to this line of work, while the particular calibration rule, error tolerance, and empirical effects in clinical routing remain unspecified. The conceptual link is the decision about which uncertain labels merit inclusion when an input may warrant several outputs. In the original paper, that decision is expressed as a calibrated constraint on incorrect inclusions and a separate objective for recovering correct ones.
Cite
Cite as Adam Fisch, Tal Schuster, Tommi Jaakkola and Regina Barzilay. 2022. Conformal Prediction Sets with Limited False Positives. arXiv (Cornell University).
@misc{adam2022conformal,
title = {{Conformal Prediction Sets with Limited False Positives}},
author = {Adam Fisch, Tal Schuster, Tommi Jaakkola and Regina Barzilay},
year = {2022},
doi = {10.48550/arxiv.2202.07650},
eprint = {2202.07650},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2202.07650}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/adam-2022-conformal-prediction-sets-limited-false/