Relevance-Guided Residual Calibration for Spectral Compression of Dense Retrieval Embeddings

Yongkang Li, Panagiotis Eustratiadis, Evangelos KanoulasarXiv 2026 · arXiv

TL;DR

Dense retrieval models are producing increasingly massive embeddings, leading to high storage and compute costs. Relevance-Guided Residual Calibration (RRC) is a new, closed-form method that "tunes" standard spectral compression techniques (like PCA) using a small amount of relevance data, significantly boosting retrieval accuracy without the need for expensive iterative model training or extra inference overhead.

What Problem Does This Paper Address?

Modern dense retrieval systems represent queries and documents as high-dimensional vectors (embeddings). As we move toward larger LLM-based encoders, these vectors are ballooning to 4,000+ dimensions. To make these systems practical for web-scale search, we use spectral compression (like PCA or Whitening) to project them into smaller subspaces.

The problem is that standard spectral methods rely solely on corpus statistics—they assume that directions with high variance are the most important. However, variance across a corpus doesn't always equal relevance for a specific search task. A specific dimension might vary a lot but contribute nothing to distinguishing a relevant document from a "hard negative." Conversely, a low-variance dimension might be the "smoking gun" for relevance.

Existing supervised alternatives often involve training complex "adaptor" models using gradient descent, which introduces new hyperparameters (learning rates, epochs) and risks overfitting when relevance labels are scarce.

Methods

The authors introduce RRC, a method that bridges the gap between simple unsupervised compression and heavy supervised learning.

  1. Margin-Based Weighting: Instead of just looking at variance, RRC looks at how much each spectral direction contributes to the "score margin" between a known relevant document and a negative one.
  2. Trend-Residual Decomposition: This is the clever part. Spectral weights usually follow a "power-law" trend (where weights are a function of eigenvalues). RRC fits a power law to the relevance-derived weights and extracts the residual—the part that the general trend doesn't explain.
  3. Calibration: It then takes this residual and adds it to the log-weights of an existing compressor (like PCA, Whitening, or SpecTemp). This allows the model to "nudge" specific directions up or down based on relevance evidence while keeping the overall spectral "shape" of the original compressor.

Crucially, RRC is closed-form. It involves simple matrix math and moment estimation, meaning it’s fast to compute and doesn't require a GPU-heavy training loop.

Datasets

The researchers evaluated RRC across three different LLM encoders (Qwen3-8B, GTE-7B, and DIVER-4B) on two major groups of datasets:

  • BEIR Group: Conventional retrieval tasks including MS MARCO (web search), Natural Questions (NQ), HotpotQA (multi-hop), and FiQA (finance).
  • BRIGHT: A newer, more challenging benchmark focused on reasoning-intensive retrieval (e.g., StackExchange, LeetCode, and TheoremQA-T).

Key Insights and Ideas

  • The "Aha!" Moment: Calibration helps most when the relevance-based weights don't follow a simple power law. As shown in the figure below, there is a clear negative correlation between how well a power law fits the data ($R^2_{fit}$) and the gain achieved by RRC. If the relevance signal is "messy" compared to corpus variance, RRC has more work to do and provides bigger wins.
Fit quality vs. gain: RRC provides the biggest boosts when the standard power-law trend fails to capture relevance contributions.
  • Task-Specific Nuance: Standard PCA is "blind" to the task. RRC allows the compression to adapt to whether you are doing simple keyword-adjacent search or complex mathematical reasoning.
  • Compatibility: Because RRC just modifies the weights of a linear transformation, it can be "folded" into the existing projection matrix. This means zero extra cost during the actual search (inference) phase.

Key Results

  • Top Performer: SpecTemp + RRC achieved the highest mean effectiveness across all tested compressors on both BEIR and BRIGHT at every target dimension (768, 512, 256, 128).
  • Reasoning Wins: The gains were particularly impressive on the reasoning-heavy BRIGHT datasets, where SpecTemp + RRC improved over the uncalibrated version by an average of 2.34 nDCG@10 points at 768 dimensions.
  • Quantization Friendly: The benefits of RRC persist even when vectors are further compressed using scalar or product quantization (PQ). In fact, SpecTemp + RRC with 8-bit quantization often outperformed the original full-dimensional embeddings while using significantly less storage.
Storage-effectiveness trade-offs: RRC (red line) consistently pushes the Pareto frontier further than standard methods.

Limitations and Future Work

  • Label Dependency: While RRC is efficient, it still requires some relevance judgments (triples) for the target task. It cannot be used in a purely zero-shot, unsupervised setting.
  • Fixed Subspace: RRC calibrates the weights of the dimensions within a fixed spectral basis (like the PCA basis). It doesn't currently learn a new projection subspace from scratch, which might limit its potential compared to fully learned adaptors in very high-data regimes.
  • Future Directions: The authors suggest investigating alternatives to standard corpus-mean centering and exploring ways to use relevance evidence to learn the projection subspace itself, rather than just weighting it.

Summary updated

Abstract

Spectral compression reduces the storage and scoring costs of dense retrieval by projecting embeddings onto a smaller principal subspace. However, its corpus-derived weighting rules tie all retained directions to a shared spectral trend, without directly accounting for their individual contributions to relevance. To address this, we propose Relevance-Guided Residual Calibration (RRC), a closed-form method for refining spectral weights using relevance judgments. RRC estimates margin-based weights from the means and variances of positive--negative score contributions along each retained direction. It retains directions with positive estimated weights, decomposes their log weights into a fitted power-law trend and a residual, and adds the residual to the compressor's log weights on this support. This allows relevance judgments to adjust individual directions while preserving the compressor's overall spectral trend. RRC applies to PCA, Whitening, and SpecTemp, and incorporates the corrections into the existing transformation shared by documents and queries, without iterative model training or an additional inference stage. Experiments with three encoders on nine datasets covering conventional and reasoning-intensive retrieval show that SpecTemp + RRC achieves the highest mean effectiveness among tested compressors on the BEIR group and BRIGHT at every target dimension. On the five evaluated BRIGHT datasets, it improves over SpecTemp by an average of 2.34 nDCG@10 points at 768 dimensions. The gains also persist under scalar and product quantization, improving the trade-off between per-document storage and retrieval effectiveness. Our code is available at: https://anonymous.4open.science/r/rrc-spectral-compression-B5CE/
BibTeX
@misc{li2026relevance,
  author = {Yongkang Li and Panagiotis Eustratiadis and Evangelos Kanoulas},
  title = {{Relevance-Guided Residual Calibration for Spectral Compression of Dense Retrieval Embeddings}},
  year = {2026},
  eprint = {2610.37707},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.37707},
}
Figure