# CCD: Context-Calibrated Open-Entity Out-of-Distribution Detection in In-Context Tabular Foundation Models

CCD calibrates out-of-distribution scores using held-out groups of entities

Zhangkai Wu, Xu Zhang, Zhihao Hao, Zhihong Cui, Yongmin Yoo, Xianxun Zhu and 1 more · arXiv · 2026-11-1

- **Problem** Detectors built on in-context tabular foundation models fail when test rows come from new entities. Known-class rows of new entities look more out-of-distribution than unknown classes, because every score reflects how unfamiliar a row is to the context.
- **Method** CCD holds groups of entities out of the context and scores them with the remaining context. It uses these held-out values as references to calibrate three distances and the model's confidence, then combines them with weights, keeping the model frozen.
- **Results** On 14 new-entity tables with TabPFN v2, CCD reaches a mean AUROC of 81.8, against 74.4 for kNN†, the best of the 17 detectors compared.

## Why new entities look like unknown classes

A detector built on an in-context tabular foundation model inherits whatever the labelled context contains, and nothing more. Web services use these models for merchants and users whom the context has never seen, so the detector must accept their known-class rows. It must still reject rows of an unknown class, and the authors name this task open-entity OOD detection.

Confidence scores such as MSP assume that in-distribution rows are predicted confidently. Distance scores such as Mahalanobis and kNN assume that in-distribution rows lie near the training data. Random splits hide this break, because they also place the test entities in the context. Swapping only the ID test rows of familiar entities for rows of new entities lowers the AUROC of all eight detectors by 5 to 16 points on six tasks.

That swap also changes the ranking of the detectors, so a random-split benchmark can mislead the choice of detector.

The failure goes further, because known-class rows of new entities can look more OOD than rows of an unknown class. On gesture phase, TabPFN v2's median confidence is 0.98 on familiar-entity rows. That confidence falls to 0.51 on new-entity rows, below the 0.76 the model gives the unknown class. Feature distance detects the unknown class with AUROC 86.7, against 17.7 for confidence.

That same distance also flags new entities as outliers, which the authors call an entity–class trade-off. The authors trace this pattern to in-context prediction, where every score is set by the context.

## Using held-out groups as a yardstick

Holding groups out of the context gives a yardstick because an in-context model treats any entity absent from its context as new. So the held-out rows of known classes behave like new entities, and their scores show how such rows should score. Proposition 1 states that, under exchangeable groups, the group-out values are samples from the score distribution of new entities.

The reference uses only ID data and needs neither OOD rows nor test rows. Each group-out value is computed by running the frozen model on the context minus the held-out fold, which costs forward passes only.

The authors explain why familiar rows make a poor yardstick with a simple kernel-weighted in-context predictor. In that model the confidence reverts toward the class prior as a test row moves away from the context, whatever its class. Proposition 2 bounds the difference between mean confidences of a new ID entity and an OOD class at distance at least δ0, by ψ(δ0) minus 1/K.

Because the confidence of a new entity and an unknown class can look alike, calibrating against familiar rows would mislead the detector. So the authors calibrate each score against new-entity references rather than against familiar rows.

Confidence misses an unknown class when the label-oriented output drops the features that separate it. Distances, by contrast, flag every new entity far from the context as an outlier. The group-out reference lets CCD calibrate both kinds of evidence on the same footing before combining them.

## How NEO-Tab isolates new entities

NEO-Tab starts from the 142 BeyondArena tasks, and the authors apply five selection rules to them. R1 asks for a multiclass target with at least 3 classes. Applying R1 to R4 to the metadata leaves 25 multiclass tasks, and only 8 of them have an official grouped or temporal split.

R3 keeps a table within the TabPFN v2 limits of 500 features and 10 known classes, so micro\_mass drops out with its 1,082 features. Seven public tables outside BeyondArena pass R1 to R5 on their metadata and join the set, while N-BaIoT stays out because it has about seven million rows. Applying the size rule, which requires at least 10 new-group ID and OOD test rows per trial, leaves 14 tables for NEO-Tab.

Official test splits supply the ID test rows, so they hold new entities or rows from a later period. On the six BeyondArena tasks, 62 to 92% of the OOD rows came from training-split entities, so the ID–OOD contrast mixed class and entity shift. Each trial has a random-split twin built on identical OOD rows, so only the ID rows change between the two.

## How CCD builds its score

CCD runs six steps around one frozen TFM, and every step needs only forward passes. Step 1 splits the context into at most five folds by group and scores each fold with the rest of the context to get group-out values. Random folds give random-out values, which stand in for familiar rows. Figure 3 lays out the three modules: the swaps, the calibration and weighting of the distances and confidence, and the fusion.

![Figure 3: The CCD framework: (1) group-out swaps give a new-entity reference, (2) distances and confidence are calibrated against it and weighted, and (3) the…](https://refivu.com/papers/f210f016-d5d2-4236-9b2c-df304d93acc5/figures/figure-ac0acf4997af33bae1965175dcc85e26.png?thumb=512)

**Figure 3** : The CCD framework: (1) group-out swaps give a new-entity reference, (2) distances and confidence are calibrated against it and weighted, and (3) the confidence is added with sharpnessa.

[Original paper](https://arxiv.org/abs/2611.01489v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zhangkai Wu, Xu Zhang, Zhihao Hao, Zhihong Cui, Yongmin Yoo, Xianxun Zhu, Kaize Shi · CCD: Context-Calibrated Open-Entity Out-of-Distribution Detection in In-Context Tabular Foundation Models · Original paper figure · Extracted the figure area from page 5 of the original PDF.

Step 2 turns the group-out values of each score into an empirical distribution, smoothed so that the normal scores stay finite. Each raw value is then mapped to a normal score by applying the inverse normal CDF to its empirical value. The swaps also give a sensitivity, \\\[ \\hat S\_t = \\Pr(\\tilde t\_i \> \\bar t\_j) \\\], the probability that a group-out value exceeds a random-out value.

The sensitivity is a Mann–Whitney statistic of group-out against random-out values, so it needs no test rows.

The distribution branch uses three distances, each standardised on the context. The feature-space distance d1 is the mean distance to the k = 10 nearest context rows, d2 does the same in a label subspace, and d3 is the Mahalanobis distance in the TFM embedding. The label subspace is spanned by at most K−1 discriminant directions of the context classes, estimated with a shrunk within-class covariance.

The distribution score is \\\[ v(x)=\\frac{1}{\\hat\\sigma}\\sum\_{b=1}^{3}\\tau\_b\\,u\_{d\_b}(x) \\\], where σ̂ rescales it to unit variance under the new-group null.

The label branch takes the maximum class probability c(x) and converts it to a normal score u\_c(x) with the sign flipped, so that high means OOD. Its weight is the sharpness \\(a=\\frac{1}{n}\\sum\_{i=1}^{n}\\mathbf{1}\[\\tilde c\_i\>\\theta\]\\) with \\(\\theta=0.9\\), the share of context rows that stay confident once their own group is removed. The final score is \\\[ s(x)=\\frac{v(x)+a\\,u\_c(x)}{1+a} \\\], where a higher value means more OOD.

Dividing by 1 + a only rescales the sum, so relative to the distance branch the confidence enters with weight a, which lies in \[0, 1\]. The score is a fixed function of the row given the context, so no test batch is normalised.

## Why fusion keeps the distance

Fusion can lower the AUROC of the distance branch, but only by a bounded amount, and it never drops the distance itself. To analyse this, the authors model the two branch scores as jointly normal, with equal covariance under new entities and under the unknown classes. Under that model, the confidence branch has AUROC Φ(µ\_U/√2) and the distance branch has AUROC Φ(µ\_V/√2).

The fused score is s\_w = wU + (1 − w)V with w = a/(1 + a), so the sharpness weight a sets how much the confidence counts. The correlation r between the two branches is assumed to satisfy \|r\| \< 1.

Theorem 1(i) says the fused AUROC is at least the distance AUROC exactly when µ\_U is at least κ(w, r) times µ\_V, under µ\_V ≥ 0. The threshold κ increases in w, so a larger sharpness weight asks more of the confidence before fusion helps. The branch needs µ\_U to reach that threshold, which is why the confidence must still separate new entities from unknown classes.

Part (ii) bounds the loss when the confidence is blind, and the bound scales with a/(1 + a) under its stated conditions. Part (iii) shows that for µ\_U ≥ 0 the fused AUROC stays at least Φ(µ\_V/(2√2)) for every a in \[0, 1\]. The convex mix instead ends at the confidence AUROC when a = 1, however large µ\_V is.

These statements are population results under the stated Gaussian model, and the authors omit the proofs from the preprint. The convex variant's loss matches part (iii), and in the ablation convex fusion cost 2.4 AUROC points.

## Does CCD lead on NEO-Tab?

On the 14 tables with TabPFN v2, CCD scored a mean AUROC of 81.8, compared to 74.4 for kNN†, the highest mean among the 17 detectors. CCD also had the highest mean AUPR, at 52.4, and the lowest FPR95, at 50.3, where lower is better for FPR95. Its gain over kNN† was 7.4 AUROC points, with CCD winning on 12 of the 14 tables.

![Table 1: Detection on the 14 benchmark tables (TabPFN v2, held-out trials 35–39). Rank: average rank among 17 detectors; Worst: lowest per-table AUROC; Random…](https://refivu.com/papers/f210f016-d5d2-4236-9b2c-df304d93acc5/figures/figure-05706a211c337a3e0275760e488eb297.png?thumb=512)

**Table 1** : Detection on the 14 benchmark tables (TabPFN v2, held-out trials 35–39). Rank: average rank among 17 detectors; Worst: lowest per-table AUROC; Random: random-split protocol; 40–44: resampling check; Best: tables won; last two columns: CCD minus the detector in AUROC with tables won, and Holm-corrected Wilcoxon p. The top three values per column are shaded.

[Original paper](https://arxiv.org/abs/2611.01489v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The text gives p = 0.0012 for this comparison, but Table 1 shows a Holm-corrected p of 0.012 for kNN†. The primary test is a two-sided Wilcoxon signed-rank test over tables, and the gain is significant after Holm correction over 14 of the 16 baselines. The gain is measured on held-out trials 35–39, while trials 40–44 redraw rows and seeds as a resampling check.

In the resampling check CCD scored 81.1 mean AUROC. With TabICLv2 and TabDPT as backbones, the text gives 81.2 and 81.0, which the authors report as gains of +6.8 and +6.6 over kNN†. Table 2 pools trials 35–44 and gives 80.8 and 80.5 for those two backbones, so these numbers come from different trial sets.

With 500 or 1,000 context rows, CCD scored 80.2 and 81.3, and the text reports that the gain over kNN† persists, quoted as +8.3 points.

## Which parts of CCD carry the gain

The ablation in Table 3 removes one part of CCD at a time from the full method, which scored 81.8 mean AUROC on the 14 tables. Removing the label branch cost the most, lowering the mean AUROC by 3.3 points to 78.4. Removing the label-subspace distance cost 2.4 points, and removing the embedding distance cost 1.4 points.

![Table 3: Ablation on the held-out trials: mean AUROC (%) and difference to the full method over the 14 tables](https://refivu.com/papers/f210f016-d5d2-4236-9b2c-df304d93acc5/figures/figure-a4af7d331020a486ce6a4f2994e586d3.png?thumb=512)

**Table 3** : Ablation on the held-out trials: mean AUROC (%) and difference to the full method over the 14 tables.

[Original paper](https://arxiv.org/abs/2611.01489v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The label-subspace distance and the label branch both carry the gain, so the authors keep them in the design. Dropping the feature-space kNN left the mean at 81.7, a change of 0.0 points. Changing the fusion to a convex mix, as in CCD-AW, cost 2.4 points, the same drop as removing the label-subspace distance. The authors tie that convex-fusion loss to Thm.

1(iii), which says the distance is never discarded under the sharpness-weighted sum.

The authors also repeated the removals on the other two backbones, where removing the label-subspace distance cost 2.4 to 3.1 points. On those backbones, removing the label branch cost 2.5 to 3.3 points. The authors read this as each branch's contribution not depending on which TFM supplies the confidence and the embedding. The same section checks three predictions from Sec.

4.2 on the development trials. The label-subspace distance has \|S−50\| of 12.9, below the 15.3 of the feature-space kNN, which the authors link to the invariance of d2.

## Entity-over-class bias across backbones

The in-context backbones lose more AUROC than trained models when test rows move from a random ID split to new entities. Under the controlled protocol, the authors measured the change in MSP AUROC from the random ID split to the official ID split on each backbone. TabPFN v2, TabICLv2 and TabDPT lose 8.5, 8.6 and 9.2 points of MSP AUROC. CatBoost loses 5.1 points and TabM loses 2.1 points on the same protocol.

The ID confidence of the three in-context backbones falls by 5.6, 4.9 and 5.1 points on new groups. The MSP sensitivity \|S−50\| is 14.0 for TabPFN v2, 17.1 for TabICLv2 and 17.3 for TabDPT. The MSP sensitivity is 10.3 for CatBoost and 9.4 for TabM, so the trained models move less with new entities.

![Figure 6: Entity-over-class bias per backbone under the controlled protocol: change of the MSP AUROC from the random to the official ID split, and covariate-sh…](https://refivu.com/papers/f210f016-d5d2-4236-9b2c-df304d93acc5/figures/figure-ea3f62a64c290ad147817f4425a05257.png?thumb=512)

**Figure 6** : Entity-over-class bias per backbone under the controlled protocol: change of the MSP AUROC from the random to the official ID split, and covariate-shift sensitivity\|S−50\| of the MSP.

[Original paper](https://arxiv.org/abs/2611.01489v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

On gesture phase, TabPFN v2's confidence drops sharply when rows come from new entities. Its median confidence is 0.98 on known-class rows of familiar entities. On known-class rows of new entities, the median falls to 0.51, below the 0.76 the model gives the unknown class. The output scores don't stay useful on this table because the confidence has already lost its sharpness.

The slope is −0.21 for TabPFN, while trees or RealMLP reach at most −0.09. The authors read this decline as confidence encoding familiarity to the context, which a new entity lacks.

## Limitations of the evidence behind CCD

The confidence analysis rests on a kernel-weighted in-context predictor, which the authors present as an idealisation of in-context prediction. That model doesn't establish how any particular TFM behaves, so its conclusions stay tied to the idealised predictor. The proofs are omitted from this preprint, so the guarantees in Sec. 4.2 come without their derivations.

The three testable predictions of Sec. 4.2 hold only on the development trials 0 to 4, and the held-out trials 35 to 39 weren't used to check them.

The main evaluation uses TabPFN v2, so the other backbones appear only in the pooled runs of Table 2. Table 2 pools trials 35 to 44, while the headline comparison uses held-out trials 35 to 39. The per-backbone bias analysis uses MSP as the confidence score, so other confidence scores aren't part of that comparison. N-BaIoT passes the selection rules but is left out because of its size of about seven million rows.

The selection rules cap tables at 500 features and 10 known classes, so larger tables fall outside the benchmark. CCD beats kNN† on 12 of 14 tables, so its mean gain of +7.4 AUROC points doesn't hold on every table. The gain over kNN† has p = 0.0012 under a two-sided Wilcoxon signed-rank test over tables, which rests on only 14 tables. The authors didn't evaluate tables that break these selection rules, so the reported lead doesn't extend to them.

## Paper info

- **Authors**: Zhangkai Wu, Xu Zhang, Zhihao Hao, Zhihong Cui, Yongmin Yoo, Xianxun Zhu, Kaize Shi
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-1
- **Added**: 2026-11-3
- **Updated**: 2026-11-1
- **Version**: v1
- **arXiv**: 2611.01489
- **Category**: cs.IR
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.01489v1) · [PDF ↗](https://arxiv.org/pdf/2611.01489v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

In-context tabular foundation models (TFMs), such as TabPFN, predict from a labelled context without updating their parameters and are increasingly used for out-of-distribution (OOD) detection in Web applications, whose test rows come from entities absent from that context. Such applications need open-entity OOD detection: a new entity must not be mistaken for an unknown class, and an unknown class must still be caught. Existing detectors fail in this setting, and an entity-split gap hides the failure: random splits also place the test entities in the context. The failure arises because every TFM score reflects how unfamiliar a row is to the context. This produces an entity-over-class bias: known-class rows of new entities look more OOD than familiar ones, sometimes more than unknown classes. Specifically, the two OOD scores most widely used with in-context TFMs face an entity-class trade-off: the TFM's predictive confidence misses unknown classes, whereas the distance of a test row to the context flags new entities. To address this problem, we hold a group of entities out of the context and score them with the remaining context, which turns them into new entities of known classes and tells us how such rows should score. To measure detection on new entities, we build NEO-Tab (New-Entity OOD detection on Tables), 14 grouped and temporal tables on which all test rows come from new entities. We then propose Context-Calibrated Detection (CCD), which uses these group-out swaps on in-distribution data to calibrate three distances and the confidence against new-entity references. CCD weights them by their sensitivity and sharpness, keeps the model frozen and uses no OOD data. On NEO-Tab, CCD outperforms 16 existing detectors on every metric we report, and its lead holds on three TFM backbones.

## Quote from the paper

Zhangkai Wu, Xu Zhang, Zhihao Hao, Zhihong Cui, Yongmin Yoo, Xianxun Zhu, Kaize Shi (2026). CCD: Context-Calibrated Open-Entity Out-of-Distribution Detection in In-Context Tabular Foundation Models. arXiv:2611.01489v1. https://arxiv.org/abs/2611.01489v1

**BibTeX**

```
@misc{wu2026context,
  title = {{CCD: Context-Calibrated Open-Entity Out-of-Distribution Detection in In-Context Tabular Foundation Models}},
  author = {Zhangkai Wu and Xu Zhang and Zhihao Hao and Zhihong Cui and Yongmin Yoo and Xianxun Zhu and Kaize Shi},
  year = {2026},
  eprint = {2611.01489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.01489v1}
}
```

## Other paper commentary

- [Selecting or Solving? What Best-of-N Verification Delivers in Video Reasoning](https://refivu.com/en/papers/eec8257c-82f3-4c14-b29a-f1b35c3d51f9-selecting-or-solving-what-best-of-n-verification.md)
- [LF-VideoQA: Evaluating Long-Video Understanding with Long-Form Theory-of-Mind Questions](https://refivu.com/en/papers/c160e0fc-42a1-48b6-9df8-cc1b3ad609d6-lf-videoqa-evaluating-long-video-understanding-with-long.md)
- [Proving and Improving the Platonic Representation Hypothesis with JEPAs](https://refivu.com/en/papers/3fcdfe3a-873e-4c25-abd3-5515a78e14df-proving-and-improving-the-platonic-representation-hypothesis.md)
- [History-Guided Video Diffusion](https://refivu.com/en/papers/6108fb68-ef01-4b85-84db-35036f8a36f4-history-guided-video-diffusion.md)
- [EQ-VAE: Equivariance Regularized Latent Space for Improved Generative Image Modeling](https://refivu.com/en/papers/fab7b7ee-5523-498a-a636-595696465569-eq-vae-equivariance-regularized-latent-space-for-improved.md)
- [Image-to-Image Translation with Conditional Adversarial Networks](https://refivu.com/en/papers/92d09be2-7a1b-4f53-9d24-569d7cc94149-image-to-image-translation-with-conditional-adversarial.md)
- [An auditable agentic pipeline for variant-to-gene prioritisation, validated against orthogonal functional evidence](https://refivu.com/en/papers/dcd9a89b-b7a7-4b56-92d6-b201873d3bea-an-auditable-agentic-pipeline-for-variant-to-gene.md)
- [Who Asks, Who Answers: Linear Attention Builds the Query in Hybrid Language Models](https://refivu.com/en/papers/9550022a-ad1c-4740-b9d0-0f19e5a9c614-who-asks-who-answers-linear-attention-builds-the.md)
- [Bernoulli On-Policy Distillation: Don't Ignore High-Confidence Student Tokens](https://refivu.com/en/papers/8b8b436f-cb22-42ff-ae0e-fa85467e47b5-bernoulli-on-policy-distillation-don-t-ignore-high.md)
- [Precedent Labels and Facts Shift LLM Approval Decisions in Opposite Directions](https://refivu.com/en/papers/2be7501f-3661-46f2-9181-80fc53b03b68-precedent-labels-and-facts-shift-llm-approval-decisions.md)
- [WAR-CRAFT: Refining Web API Recommendations through Requirement Auditing](https://refivu.com/en/papers/55f50616-1dd4-415c-b847-5176baf35714-war-craft-refining-web-api-recommendations-through.md)
- [Robustness Starts with the Objective: Designing and Certifying Robust LLM-Generated Heuristics](https://refivu.com/en/papers/c5ef476a-8e13-4a8d-9bf3-f756d8e0931c-robustness-starts-with-the-objective-designing-and.md)

## Terms in this paper

- [covariate shift](https://refivu.com/en/terms/999984d6d515-covariate-shift)
- [sensitivity](https://refivu.com/en/terms/74e665f56f15-sensitivity)
- [Mahalanobis distance](https://refivu.com/en/terms/56d44d3d60ed-mahalanobis-distance)
- [sharpness](https://refivu.com/en/terms/5eab0d046f0d-sharpness)
- [TabDPT](https://refivu.com/en/terms/3ac9cf54454a-tabdpt)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/f210f016-d5d2-4236-9b2c-df304d93acc5-ccd-context-calibrated-open-entity-out-of-distribution)
