SDR: Efficient Neural Re-ranking using Succinct Document Representation

Nachshon Cohen, Amit Portnoy, Besnik Fetahu, Amir Ingber

Introduction

Modern Information Retrieval (IR) systems typically employ a two-stage pipeline: an initial fast retrieval step to identify candidate documents, followed by a high-precision re-ranking step using powerful neural models like BERT. While BERT-based rankers offer state-of-the-art accuracy, their computational intensity and latency pose significant challenges for real-time applications.

To address these bottlenecks, "late-interaction" architectures such as ColBERT have been developed. These models pre-compute and store contextualized embeddings for every token in a document corpus. During query time, the system only needs to compute query embeddings and perform efficient interaction operations with the stored document vectors. However, this approach introduces a massive storage overhead. For instance, storing high-dimensional vectors for the 8.8 million passages in the MSMARCO dataset can require terabytes of storage, leading to prohibitive infrastructure costs and increased network latency when fetching vectors for ranking.

Succinct Document Representation (SDR)

The authors introduce SDR, a novel compression framework designed to mitigate the storage and latency issues of late-interaction models. SDR achieves up to 121x compression while maintaining BERT-level ranking quality through a two-stage pipeline: AutoEncoder with Side Information (AESI) and EDEN Quantization.

AutoEncoder with Side Information (AESI)

Standard autoencoders attempt to compress and reconstruct vectors in isolation. SDR's key innovation, AESI, leverages the fact that the raw text of a document is already available to the ranker. By using static token embeddings (the base meaning of words without context) as "side information" for both the encoder and decoder, the model avoids redundantly storing basic semantic information. Instead, it focuses on compressing the "distilled context" provided by the upper layers of the BERT model.

The AESI architecture utilizes side information (static token embeddings) to reduce the amount of contextual information that needs to be stored.

EDEN Quantization

Following dimensional reduction via AESI, SDR employs EDEN quantization to further compress the resulting vectors from 32-bit floats to as few as 6 bits. This process utilizes a randomized Hadamard transform to distribute information uniformly across all coordinates. This "pre-conditioning" step transforms the data into a predictable Gaussian distribution, enabling significantly more accurate and efficient quantization compared to standard methods that are often sensitive to outliers.

Experimental Evaluation

The effectiveness of SDR was evaluated on three major benchmarks: MSMARCO Passage Re-ranking (8.8 million passages), TREC 2019 DL Track (fine-grained evaluation), and TREC CAR (30 million passages).

Key Results

SDR demonstrates remarkable efficiency gains. On the MSMARCO dataset, it achieved a 121x compression ratio with no significant degradation in ranking performance (MRR@10). Compared to previous state-of-the-art compression techniques, SDR is 4x to 11.6x more efficient for a given quality level. In a production context, SDR can shrink a terabyte-scale index down to approximately 8.6 GB, allowing the entire index to reside in the RAM of a single server. This reduction in index size directly translates to lower network fetching latency and improved end-to-end system performance.

Comparison of ranking quality (MRR@10) versus document corpus size (MB) for SDR and baseline models. SDR achieves high quality at significantly smaller storage footprints.

Discussion and Insights

The success of SDR stems from the insight that "context is the only thing worth storing." By leveraging side information, the system avoids the "storage tax" of basic word meanings. Analysis reveals that AESI is particularly effective at preserving the nuances of infrequent but high-importance tokens, such as nouns and verbs, which are critical for accurate search.

Despite its advantages, SDR introduces some implementation complexity due to the multi-stage pipeline (Autoencoder, Hadamard transform, and Quantization). Additionally, block-wise quantization can introduce a "padding tax" of 10-20% for very short documents. Future research may explore deeper integration between internal model representations and raw text to achieve even more succinct document representations.

Conclusion

SDR represents a significant step forward in making high-performance neural search engines practical for large-scale production environments. By drastically reducing storage requirements and latency without sacrificing accuracy, it enables the deployment of sophisticated ranking models on commodity hardware.

Summary updated

BibTeX
@inproceedings{cohen2022sdr,
  author = {Nachshon Cohen and Amit Portnoy and Besnik Fetahu and Amir Ingber},
  title = {{SDR: Efficient Neural Re-ranking using Succinct Document Representation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.457},
}
Figure