Closed-Box Calibration for Compositional Zero-Shot Learning

Compositional zero-shot learning asks an image classifier to recognize attribute–object pairs it never saw together in training, such as "sliced tomato" when it has only seen "sliced bread" and "whole tomato." These models share one known weakness. They are overconfident on the pairs they were trained on, so they push genuinely new pairs into familiar classes. Every method corrects this with a small set of calibration knobs, and those knobs are set using labeled examples of the very unseen pairs the model is supposed to know nothing about. Examples include a score offset added to unseen classes, a seen/unseen gate threshold, and fusion weights. A deployed system would never have such labels.

Experimental particle physics faced the same problem decades ago and solved it procedurally. Analysts tune their selection cuts only on "sidebands," which are regions of the data known to contain no signal. They freeze the pipeline and then open the box once. We propose to bring this closed-box discipline to compositional zero-shot learning. We will build a sideband made of pseudo-unseen pairs carved out of the training data. Every calibration choice will be locked on that sideband. We will then measure how much of the field's reported progress survives, and whether method rankings change.

Core Claim

Our claim is that headline numbers in generalized compositional zero-shot learning mix two things: compositional ability, and calibration information leaked from labeled unseen compositions. The two can be separated by a closed-box protocol. Under that protocol, the held-out unseen pairs of the validation and test sets are sealed. Calibration is fit only on a compositional sideband, meaning training pairs withheld so that each of their primitives is still seen elsewhere. The frozen rule is then applied once.

We expect three results. First, a measurable "blinding gap" between oracle-calibrated and blind operating points. Second, the gap should be largest for methods with more calibration knobs. Third, a calibrator fit on the sideband and stated in a transferable form should recover most of the gap.

What Exists and Where This Sits

The blinding techniques come from physics. The E949 kaon search (New Measurement of the K+ -> pi+ nu nu Bar Branching Ratio) and the PandaX-4T double-beta search (Searching for neutrinoless double-beta decay of 136Xe with PandaX-4T) hide the signal region until background models, which are fit on sidebands, are frozen. PIENU (Improved Measurement of the pi -> e nu Branching Ratio) hides the answer behind a secret offset. Daya Bay (Spectral Measurement of Electron Antineutrino Oscillation Amplitude and Frequency at Daya Bay) withholds the physical parameters needed to infer the result. DESI (DESI 2024 V: Full-Shape galaxy clustering from galaxies and quasars) distorts catalogs during pipeline development. We borrow two of these mechanisms: sideband tuning, and a hidden offset that keeps developers from reading the true metric.

On the compositional side, three methods motivate the work because they depend on calibration knobs.

CAILA (CAILA: Concept-Aware Intra-Layer Adapters for Compositional Zero-Shot Learning) and CPF (A Conditional Probability Framework for Compositional Zero-shot Learning) add architecture on top of CLIP. All of these choose operating points with labeled unseen pairs visible. None of them proposes a way to calibrate without those labels.

Orthotopic evaluation (Scalable Evaluation and Neural Models for Compositional Generalization) supplies part of our method. It ranks unseen splits by how similar they are to training compositions, and we use that similarity to match the sideband's difficulty to the sealed box. Its protocol is fully open to the analyst, however, which is the part we change.

The survey (Compositional Zero-Shot Learning: A Survey) raises two concerns that constrain our claims. The first is contamination from CLIP pre-training. The second is that benchmark progress is driven by backbones and tuning. Our protocol addresses leakage from benchmark labels. It does not address leakage from web pre-training, and we will say so explicitly.

The research file lists no prior work that connects blind analysis to compositional generalization. The closest item, evaluator anonymization in CellAgent, hides tool names from an LLM judge. We reuse that idea only for bookkeeping, as described below.

Research Program

Sealing the box

The box contains the labels of all benchmark unseen pairs, plus any metric computed on them, for both validation and test. An evaluation service holds the box. It returns a metric only after the submitted calibration rule and its code hash are committed, and it returns it once. During development, analysts see sideband metrics shifted by a secret offset, following PIENU. This stops them from reverse-engineering box performance from how the sideband behaves. Method identities in the audit tables are anonymized, following CellAgent, until all rules are frozen.

Building the sideband

From the seen training pairs $\mathcal{C}_{seen}$, we draw $K$ disjoint folds of pseudo-unseen pairs $S_k$. Each fold must satisfy two conditions:

  • Every attribute and every object in $S_k$ still appears in $\mathcal{C}_{seen}\setminus S_k$.
  • The fold's compositional-similarity profile, measured with the Orthotopic index, matches that of the benchmark's unseen pairs.

For each fold, the model is retrained on the reduced set. The sideband calibration problem is then to classify images of $S_k$ against the reduced seen set, which mimics the sealed setting.

Stating calibration in a transferable form

A raw score offset does not carry over from the sideband to the box, because the number of unseen candidate classes differs (1,662 in closed-world MIT-States versus 28,175 in open-world). We therefore express the calibration offset $b$ as a quantile rule. Let $m(x)$ be an image's margin, defined as its top seen-class score minus its top unseen-class score, and let $F_k$ be the distribution of $m(x)$ over sideband images. We choose $b$ so that

$$b = F^{-1}(q), \qquad q^\star = \arg\max_q \frac{1}{K}\sum_{k=1}^{K} \mathrm{HM}_k(q),$$

Here $\mathrm{HM}_k$ is the harmonic mean of seen and unseen accuracy on fold $k$. The number that gets frozen is $q^\star$, not $b$. At unblinding, $b$ is recomputed from the margin distribution of the unlabeled box images. This uses the images' scores but not their labels.

Method-specific knobs, such as COMO's $\lambda_s$, $\lambda_u$ and gate threshold, or CompCos's feasibility cutoff, are fit on the sideband in the same way.

Baselines

Oracle calibration. The naive upper reference is standard practice: the offset is chosen to maximize harmonic mean using labeled unseen pairs, whether through a visible validation split or through the test sweep that the file notes is standard. Every method is run with its released training recipe on the same backbone. The only thing that differs from the blind condition is the calibration information. This is the number the blind protocol tries to approach. It does not need to be "beaten."

No calibration. The "do nothing" reference sets the offset to zero, with default gate and fusion values. It shows how bad the seen bias is, and any blind calibrator must clearly exceed it.

Prior-ratio calibration. This is the simplest blind competitor and the most serious one. It sets the offset so that the predicted fraction of unseen classes equals an assumed prior, for example the class-count ratio. It uses no sideband and costs nothing. If it matches the sideband calibrator, the method contribution collapses to the audit, and we will report that.

Strongest existing methods. These are COMO and CSP, calibrated in each of the ways above. On MIT-States, COMO reports AUC 22.4 and on UT-Zappos AUC 43.7 (Seeing the Unseen: Composing Outliers for Compositional Zero-Shot Learning). CSP reports an average AUC gain of 10.9 points over CLIP across MIT-States, UT-Zappos and C-GQA (Learning to Compose Soft Prompts for Compositional Zero-Shot Learning). CPF reports gains relative to prior methods, not absolute values, and CAILA's text gives no scalar value. We will therefore reproduce all of them rather than quote them.

Ablation. To isolate the key ingredient, we transfer a raw offset $b$ from the sideband instead of the quantile $q^\star$, and we drop the difficulty matching.

What counts as a win. The blind rule succeeds if it closes more than half the gap between no calibration and oracle calibration on harmonic mean. It must also beat prior-ratio calibration by more than seed variance on at least two of the three benchmarks.

Why not just…?

Why not just tune on the standard validation split, as everyone does? That split holds out labeled unseen pairs. Using it assumes the deployer has labels for new compositions, which contradicts the zero-shot premise, even though it avoids touching the test set. The experiments below measure directly how far validation-calibrated operating points sit from oracle and from blind ones. If validation calibration turns out to cost nothing relative to sideband calibration, then the "leak" is harmless, and we would report that as a negative result.

Why not just report AUC, which sweeps over all offsets? AUC does summarize the seen/unseen trade-off without committing to one offset. A deployed classifier, however, runs at a single operating point, and AUC says nothing about whether that point can be found blind. AUC also still absorbs gate and fusion choices that were tuned with box labels, as in COMO. We will report AUC alongside the blind operating-point harmonic mean, and we will measure how often the two metrics rank methods differently.

Why not just use a hidden test server? A server stops repeated peeking at the test set, and we use one. By itself, though, it still allows calibration on the labeled unseen validation pairs. The part of our protocol that goes beyond a server is the sideband, and the validation-calibration condition tests that part directly.

Why not just calibrate to a prior ratio? This alternative is a real threat, so it is a main baseline rather than a footnote. Its weakness is that the correct ratio differs between the closed-world and open-world settings and between datasets. Whether that weakness matters in practice is exactly what the cross-benchmark results will settle.

Proposed Experiments

We will audit five methods: CompCos, CSP, COMO, CAILA and CPF. They will be run on MIT-States, UT-Zappos and C-GQA in both the closed-world and open-world settings, and on AAO-MIT-States to test transfer to attribute–attribute–object triples. Each method is run with three seeds and a fixed tuning budget per condition. The per-condition calibration choices are oracle, validation split, no calibration, prior ratio, sideband raw offset, and sideband quantile.

Blinding gap. The first check is the gap between oracle and sideband-quantile harmonic mean, reported per method. We predict it grows with the number of calibration knobs, so COMO's gap should exceed CSP's.

Ranking stability. The second check is Kendall's tau between method rankings under oracle and under blind calibration. A reversal among the top methods would mean current leaderboards partly rank calibration access rather than compositional ability. That is the headline result either way.

Sideband fidelity. The third check correlates each method's sideband harmonic mean with its box harmonic mean. If the correlation is poor even with difficulty matching, the pseudo-unseen construction does not represent the true unseen pairs, and the calibrator claim fails.

Contamination control. Because CLIP may already have seen the test pairs on the web, we report the gap separately for a non-CLIP backbone, as in CompCos. On that backbone, pre-training contamination cannot explain any residual gap.

References

  1. New Measurement of the<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msup><mml:mi>K</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:mo>→</mml:mo><mml:msup><mml:mi>π</mml:mi><mml:mo>+</mml:mo></mml:msup><mml:mi>ν</mml:mi><mml:mover accent="true"><mml:mi>ν</mml:mi><mml:mo>¯</mml:mo></mml:mover></mml:math>Branching Ratio
  2. Searching for neutrinoless double-beta decay of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si67.svg"> <mml:mrow> <mml:msup> <mml:mrow/> <mml:mrow> <mml:mn>136</mml:mn> </mml:mrow> </mml:msup> <mml:mtext>Xe</mml:mtext> </mml:mrow> </mml:math> with PandaX-4T
  3. Improved Measurement of the<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:mi>π</mml:mi><mml:mo stretchy="false">→</mml:mo><mml:mi mathvariant="normal">e</mml:mi><mml:mi>ν</mml:mi></mml:mrow></mml:math>Branching Ratio
  4. Spectral Measurement of Electron Antineutrino Oscillation Amplitude and Frequency at Daya Bay
  5. DESI 2024 V: Full-Shape galaxy clustering from galaxies and quasars
  6. Open World Compositional Zero-Shot Learning
  7. Seeing the Unseen: Composing Outliers for Compositional Zero-Shot Learning
  8. Learning to Compose Soft Prompts for Compositional Zero-Shot Learning
  9. CAILA: Concept-Aware Intra-Layer Adapters for Compositional Zero-Shot Learning
  10. A Conditional Probability Framework for Compositional Zero-shot Learning
  11. Scalable Evaluation and Neural Models for Compositional Generalization
  12. Compositional Zero-Shot Learning: A Survey
  13. CellAgent: LLM-Driven Multi-Agent Framework for Natural Language-Based Single-Cell Analysis