---
title: Calibration Retention Rate in Semantic Caching
url: https://www.emergentmind.com/topics/calibration-retention-rate-crr
type: topic
---

# Calibration Retention Rate in Semantic Caching

Searching arXiv for recent papers defining or discussing Calibration Retention Rate and closely related calibration-retention notions.
Calibration Retention Rate (CRR) is a scalar metric introduced for semantic caching to quantify how much offline ranking quality survives when a model is deployed with a global threshold to drive cache decisions. In its formal definition, $\text{CRR} = \frac{\text{P-CHR AUC}}{\text{PR-AUC}}$, where the numerator measures deployment quality through the Precision–Cache Hit Ratio tradeoff and the denominator measures offline ranking quality through precision–recall analysis [2606.19719]. In adjacent literatures, closely related retention notions appear without the same name: trimming-based conformal prediction analyzes what fraction of calibration points survive trimming and how that retained law governs coverage [2605.06204]; continual fine-tuning of LLMs studies how much conformal coverage is preserved over task sequences [2604.23987]; and language-model fine-tuning studies before/after preservation of probabilistic calibration capabilities without defining CRR explicitly [2605.11845]. The term is therefore most precise when used in the semantic-caching sense, but it also functions as a broader label for calibration preservation under operational constraints.

## 1. Formal definition and semantic-caching setting

In semantic caching, each query $q$ is matched against candidate cached responses, and a model assigns a score $s(q,c)$ to each query–candidate pair. Deployment uses the top-1 candidate $\hat c(q)$ with score $\hat s(q)$ and fires the cache when $\hat s(q)\ge \tau$ for some global threshold $\tau$ [2606.19719]. The key distinction is between offline ranking evaluation and deployed thresholded behavior.

The paper "Closing the Calibration Gap in Semantic Caching" defines CRR as
$$
\text{CRR} = \frac{\text{P-CHR AUC}}{\text{PR-AUC}}, \qquad \text{PR-AUC} \in (0,1]
$$
and interprets it as the fraction of offline ranking performance that survives in deployment [2606.19719]. High CRR means that a model’s scores are not only good at ranking positives above negatives, but are placed in a way that allows a threshold to trade precision against cache utilization efficiently. Low CRR means that much of the ranking quality is lost operationally because the scores are miscalibrated, for example through compression or poor placement near the decision boundary.

The semantic-caching framework uses the following deployment quantities:
$$
\text{CHR}(\tau) = \frac{|\{q : \hat{s}(q)\ge \tau\}|}{N},
$$
$$
\text{VCHR}(\tau) = \frac{1}{N}\Big|\{q : \hat{s}(q)\ge \tau,\ \hat{c}(q)=c^*,\ y_q=1\}\Big|,
$$
$$
\text{Precision}(\tau) = \frac{\text{VCHR}(\tau)}{\text{CHR}(\tau)}.
$$
Here CHR is the Cache Hit Ratio, VCHR is the Valid Cache Hit Ratio, and deployment precision is the fraction of cache fires that are correct. CRR summarizes how well these deployed decisions preserve the quality implied by offline ranking scores.

A central claim of the paper is that model selection for semantic caching is fundamentally a calibration problem, not a ranking problem [2606.19719]. This is the context in which CRR was introduced.

## 2. Relationship to PR-AUC, P-CHR AUC, and the operational gap

CRR is built from two areas under curves with different operational meanings. PR-AUC measures how well $s(q,c^*)$ ranks positives above negatives and is invariant to monotone transformations of scores. P-CHR AUC instead measures precision across cache utilization levels and depends on the numerical placement and spread of deployed scores $\hat s(q)$ [2606.19719].

The Precision–CHR curve plots
$$
(\text{CHR}(\tau),\, \text{Precision}(\tau))
$$
as the threshold varies, and the associated area is
$$
\text{P-CHR AUC} = \int_{0}^{1} \text{Precision}\!\bigl(\text{CHR}^{-1}(c)\bigr)\,dc.
$$
The paper defines the operational gap as
$$
\Delta_{\text{op}} = \text{PR-AUC} - \text{P-CHR AUC}.
$$
This gap measures the loss between how good a model looks in offline ranking terms and how good it is when used with a threshold in the actual cache.

The paper further decomposes this operational gap into an irreducible structural component and a recoverable calibration component. With dataset positive rate
$$
p = \frac{|\{q : y_q = 1\}|}{N},
$$
the structural gap is
$$
\Delta_{\text{str}} = 1 - p(1 - \ln p),
$$
and the calibration gap is
$$
\Delta_{\text{cal}} = \max\!\bigl(0,\; \Delta_{\text{op}} - \Delta_{\text{str}}\bigr).
$$
The interpretation is that $\Delta_{\text{str}}$ is fixed by the label distribution, whereas $\Delta_{\text{cal}}$ is the extra loss due to score miscalibration and is therefore recoverable in principle [2606.19719].

For a perfect ranker, the theoretical maximum deployment quality is not $1$ but
$$
\text{P-CHR AUC}_{\max} = p(1 - \ln p).
$$
Accordingly, for a model with $\text{PR-AUC}=1$, the maximum possible CRR is also $p(1-\ln p)$. On the paper’s test set with $p \approx 0.45$, this ceiling is approximately $0.809$ [2606.19719]. This establishes that CRR is structurally bounded away from $1$ in semantic caching, even under ideal ranking.

## 3. Why CRR differs from ordinary ranking quality

The motivation for CRR is that PR-AUC can be operationally misleading. Because PR-AUC is threshold-independent and invariant to monotone transformations, it can rate a model highly even when no global threshold yields a good precision–utilization tradeoff in deployment [2606.19719]. CRR corrects for this mismatch by asking how much of the ranking quality can actually be realized after top-1 selection and thresholding.

The paper presents several concrete examples. BCE-trained rerankers achieve strong PR-AUC, around $0.816$–$0.824$, but extremely low P-CHR AUC, $0.173$–$0.199$, which yields CRR around $0.23$–$0.24$. By contrast, ColBERTv2.0 has PR-AUC near $0.515$, close to the positive rate $0.45$, but P-CHR AUC of $0.402$ and CRR of $0.781$, close to the theoretical ceiling $0.809$ [2606.19719]. In deployment terms, the latter scores are far more usable.

This inversion of ranking shows why CRR is not merely a rescaled PR-AUC. PR-AUC measures ranking separability. P-CHR AUC measures precision retention across cache utilization. CRR measures the efficiency with which a model converts ranking quality into deployed cache quality [2606.19719].

A related implication appears in other calibration literatures. In continual LLM fine-tuning, conformal coverage can deteriorate earlier and more sharply than top-1 accuracy, with coverage loss exceeding accuracy loss by roughly $3.4\times \pm 0.5\times$ on average across seeds [2604.23987]. This suggests that retention-style calibration metrics are valuable precisely because operational reliability and headline accuracy can diverge substantially. In conformal trimming, similarly, the relevant object is not contamination alone but the retained law induced by trimming, which is governed by which calibration points survive the trimming rule [2605.06204].

## 4. Computation and interpretation

To compute CRR on a labeled test set, the semantic-caching paper requires three ingredients: offline scores $s(q,c^*)$ for PR-AUC, deployed top-1 scores $\hat s(q)$ and predictions $\hat c(q)$ for P-CHR AUC, and labels $y_q$ [2606.19719]. The computation proceeds by threshold sweeps over the score range.

First, PR-AUC is obtained from thresholding $s(q,c^*)$ and integrating precision as a function of recall:
$$
\text{PR-AUC} = \int_0^1 \text{Precision}\bigl(\text{Recall}^{-1}(r)\bigr)\,dr.
$$
Second, P-CHR AUC is obtained from the deployed pipeline by thresholding $\hat s(q)$, computing CHR and deployment precision, and integrating precision as a function of CHR:
$$
\text{P-CHR AUC} = \int_0^1 \text{Precision}\bigl(\text{CHR}^{-1}(c)\bigr)\,dc.
$$
Finally,
$$
\text{CRR} = \frac{\text{P-CHR AUC}}{\text{PR-AUC}}.
$$

The same evaluation can be accompanied by
$$
\Delta_{\text{op}} = \text{PR-AUC} - \text{P-CHR AUC},
$$
$$
\Delta_{\text{str}} = 1 - p(1 - \ln p),
$$
$$
\Delta_{\text{cal}} = \max(0, \Delta_{\text{op}} - \Delta_{\text{str}}).
$$
In this diagnostic view, CRR is the relative retention summary, while the gap decomposition provides an absolute explanation of why retention is limited [2606.19719].

This suggests a useful interpretive rule. If $\Delta_{\text{cal}}=0$, the model is already as operationally efficient as possible for its ranking quality and the dataset’s positive rate; further gains must come from better ranking or a different data regime. If $\Delta_{\text{cal}}>0$, then low CRR reflects recoverable calibration inefficiency rather than purely structural limitations.

## 5. Empirical behavior and practical model selection

The semantic-caching experiments report that across nine retrievers, PR-AUC lies in $[0.620, 0.833]$, P-CHR AUC in $[0.355, 0.437]$, CRR in $[0.525, 0.599]$, and $\Delta_{\text{cal}}$ in $[0.07, 0.21]$ [2606.19719]. This indicates that all tested retrievers have positive calibration gaps, even when their raw ranking quality differs substantially.

Across rerankers, the contrast is sharper. BCE rerankers have the largest calibration gaps and the lowest CRR; MNRL rerankers improve P-CHR AUC and roughly double CRR relative to BCE; general cross-encoders occupy an intermediate position; and ColBERT-family models achieve the highest CRR, with $\Delta_{\text{cal}} = 0$ for all ColBERT-family models reported [2606.19719]. In that sense, ColBERT scores are nearly optimally calibrated for threshold-based cache operation, even though their PR-AUC is relatively low.

The experiments also show that the calibration gap is governed by the training objective rather than data scale. Scaling reranker training data from roughly $1$M to roughly $40$M pairs does not materially improve CRR [2606.19719]. Post-hoc temperature scaling modestly improves BCE models’ P-CHR AUC and therefore their CRR, but it does not close the gap; Platt scaling can even degrade deployment quality for some models. The paper therefore recommends P-CHR AUC and CRR, rather than PR-AUC alone, as primary model-selection metrics for semantic caching.

A broader implication is that retention metrics are especially informative when deployment imposes a hard operating threshold. In language-model calibration fine-tuning, the before/after comparisons of normalized Wasserstein-$1$, trie-target KL, valid rate, TinyBenchmarks gp-IRT, PALOMA perplexity, and stochastic-generation metrics provide the ingredients for CRR-like ratios, even though the paper does not define a CRR formula explicitly [2605.11845]. This suggests that CRR-style thinking generalizes whenever one wants to quantify how much calibration or capability survives an intervention.

## 6. Broader uses, adjacent notions, and ambiguity of the term

Although CRR is formally defined in semantic caching, nearby arXiv papers use closely related retention concepts under different mathematical objects.

In trimming under contaminated conformal calibration, the key retained quantity is the probability that a calibration point survives trimming. The paper distinguishes clean retention probability
$$
p_c := P(S(Z)\le t^\star)
$$
and dirty retention probability
$$
p_d := Q(S(Z)\le t^\star),
$$
with overall expected retention
$$
\mu_{\rm keep} := (1-\varepsilon)p_c + \varepsilon p_d.
$$
These are described as the natural “Calibration Retention Rates” for clean vs dirty points, and they determine the retained mixture coefficient
$$
\tilde\varepsilon_\star = \frac{\varepsilon p_d}{(1-\varepsilon)p_c + \varepsilon p_d}.
$$
The paper’s central message is that trimming helps when the anomaly score separates retention probabilities while remaining score-neutral on the clean population; otherwise it cannot substantially reduce contamination through the retained mixture coefficient [2605.06204]. In this literature, CRR is not a formal named metric, but the retention probability of calibration points is the mathematically relevant analogue.

In continual LLM fine-tuning, the paper on continual calibration does not define CRR explicitly, but it provides the components for a calibration-retention measure based on conformal coverage over task sequences. Coverage loss can exceed accuracy loss by a factor of roughly $3.4\times \pm 0.5\times$, and calibration replay with task-specific held-out buffers typically restores coverage to within two points of nominal at buffer size $m = 200$ [2604.23987]. This suggests a task-indexed retention notion based on current coverage relative to baseline coverage, especially when stale thresholds no longer satisfy exchangeability after model updates.

In probabilistic calibration for language models, the paper explicitly states that probabilistic calibration is a trainable capability, measured through trie-target KL, normalized Wasserstein-$1$, and valid rate. It does not define CRR, but it notes that before/after comparisons are precisely the inputs one would use to define a CRR-like quantity, including structured-sampling fidelity, downstream capability retention, and language-model fit retention [2605.11845].

The term is also ambiguous outside calibration-retention usage. In "The Curvature Rate $\lambda$: A Scalar Measure of Input-Space Sharpness in Neural Networks," CRR means Curvature Rate Regularization, not Calibration Retention Rate [2511.01438]. That paper is relevant to calibration because it reports improved confidence calibration under derivative-based regularization, but its acronym refers to a different concept entirely.

## 7. Limitations and correct usage

CRR in the semantic-caching sense depends on labeled test data, because both PR-AUC and P-CHR AUC require ground-truth labels for representative queries [2606.19719]. Continuous monitoring can therefore be difficult in production environments where labels are sparse. CRR is also evaluated on a particular test distribution: the structural ceiling depends on the positive rate $p$, and changes in query distribution or duplicate rate alter the achievable P-CHR AUC.

The semantic-caching results are reported for English sentence-pair paraphrase detection with fixed top-$K=50$ retrieval pools, so calibration behavior may differ in multilingual settings or at other retrieval depths [2606.19719]. The paper also notes that CRR behavior is less straightforward when PR-AUC is very low, near the positive rate.

In broader usage, retention-style calibration metrics inherit the limitations of their base calibration notion. The regression-calibration benchmark emphasizes that many calibration metrics disagree, sometimes producing contradictory conclusions about the same recalibration result, and identifies ENCE and CWC as the most dependable metrics in its tests [2508.17761]. This suggests that any generalized CRR outside semantic caching should be defined explicitly relative to a chosen base metric, rather than treated as a universal standalone quantity.

Taken together, these results establish a precise encyclopedic meaning for Calibration Retention Rate in semantic caching—$\text{P-CHR AUC}/\text{PR-AUC}$—while also showing that the broader idea of calibration retention recurs across conformal prediction, continual fine-tuning, and probabilistic calibration of language models. The common principle is that calibration must be evaluated in the operational regime in which decisions are actually made, not inferred from ranking quality, contamination level, or top-1 accuracy alone [2606.19719].

Source: https://www.emergentmind.com/topics/calibration-retention-rate-crr