Mutual Indexing in Document Retrieval
- Mutual Indexing is a framework that formalizes document indexing as a trade-off between compressing representations and preserving information for accurate query prediction.
- It leverages mutual information measures and rate-distortion theory to derive information-optimal codes that support generative document retrieval.
- The approach extends to various applications including cross-lingual, multi-modal, and recommendation systems by ensuring compact yet informative document codes.
Mutual Indexing is a methodological framework for generative document retrieval (GDR) grounded in information theory. It formalizes the construction of document indexes as an explicit trade-off between compressing document representations and retaining information necessary for accurate answer prediction. By leveraging mutual information measures and rate-distortion theory, Mutual Indexing recasts indexing as a well-posed bottleneck problem, enabling the derivation of information-optimal indexing strategies. This approach generalizes beyond traditional retrieval to scenarios such as cross-lingual, multi-modal, and recommendation systems (Du et al., 2024).
1. Formal Setup and Markov Structure
Let denote the document space, the index-code space (where each is a compact ID string), and the query space. The generative model for the process is
expressing that for each document , the index is stochastically generated as and queries are sampled from , yielding the Markov chain .
This setup accommodates the GDR process: documents are indexed via codes 0 assigned according to 1, and downstream retrieval (or generation) is modeled as mapping queries 2 to these codes.
2. Mutual Information Quantities and Rate-Distortion Trade-offs
Two mutual-information terms govern the indexing objective:
- Compression cost: 3, quantifying the information retained about documents 4 by their codes 5.
- Predictive power: 6, quantifying how much the codes 7 reveal about queries 8.
Classical rate-distortion theory seeks a mapping 9 to minimize 0 (compression rate) under a bounded expected distortion 1, i.e.,
2
In the context of Mutual Indexing, the "distortion" is formalized by how much information about 3 is lost, i.e., how well 4 supports downstream retrieval.
3. Information Bottleneck Reformulation
The core objective is to make 5 as compressed as possible, i.e., minimize 6, while ensuring that 7 retains sufficient information to predict 8, i.e., 9. This is formalized by
0
Via the method of Lagrange multipliers, this yields the Information Bottleneck (IB) objective:
1
with the scalar 2 regulating the trade-off.
This recasts indexing as role of the "bottleneck": 3 must capture sufficient mutual information with 4 (predictive sufficiency) while remaining a compressed representation of 5 (compactness).
4. Practical Estimation and Optimization
Operationalizing Mutual Indexing involves estimating 6 with a neural sequence-to-sequence (seq2seq) model (e.g., T5 encoder + PAWA decoder). For each query 7, the model outputs a distribution 8; supervised maximum likelihood training is used:
9
After training, 0 approximates the true 1, enabling estimation of 2 as 3 using cross-entropy computations over sampled queries and their predicted indexes.
4 is more involved, given 5 and 6 is usually one-hot. To study compression, a truncated code (e.g., the first 7 symbols of 8) is used, collapsing multiple 9 to the same code prefix.
5. Bottleneck-Minimal Indexing (BMI) Algorithm
The construction of bottleneck-minimal codes proceeds in three stages:
- Query-Based Document Embedding: For each document 0, aggregate a query set 1 comprising real user queries (RealQ), synthetic queries generated via docT5query (GenQ), and random document passages (DocSeg). Each 2 is embedded using a fixed BERT encoder, and their mean 3 is taken as the document's "query center" in 4.
- Hierarchical k-means Clustering: The set 5 is recursively clustered via 6-way k-means at each of 7 levels, assigning each 8 an 9-digit code 0. For Gaussian assumptions, the induced 1 is IB-optimal.
- Autoregressive Indexer Training: The seq2seq indexer is fine-tuned on 2 pairs, training it to predict the index code from queries, thus realizing the bottleneck 3 imposed by clustering.
6. Empirical Results and Comparative Evaluation
Empirical evaluation was conducted on NQ320K (Natural Questions subset) and MS MARCO Lite datasets, using Rec@1/10/100 and MRR as metrics. Baselines include hierarchical random, locality-sensitive hashing (LSH), and hierarchical k-means on document embeddings (HKmI).
Key findings include:
- BMI plots in 4 vs. 5 trace a bottleneck curve, outperforming all baselines by achieving closer proximity to the lower-left (low 6 and low distortion).
- BMI improves upon HKmI by 1–7 points in absolute Rec@1, with larger relative gains for smaller seq2seq models (up to +7 points for T5-mini).
- Combining GenQ, RealQ, and DocSeg queries yields superior document representations (7), as shown by ablation.
| Method | Rec@1 Improvement (BMI over HKmI) | Model Sensitivity |
|---|---|---|
| HKmI Baseline | 0 | Baseline comparison |
| BMI (T5-mini) | +7 pts | Greater gain on small models |
| BMI (Other) | 1–7 pts | Consistent-moderate gain |
7. Generalization and Scope
Mutual Indexing provides a unified perspective wherein index design is an explicit Pareto optimization between compression (8) and predictive sufficiency (9 or, in general, 0 for downstream task variable 1). Unlike previous GDR approaches that largely controlled only distortion relative to 2, Bottleneck-Minimal Indexing achieves direct IB objective satisfaction by clustering in query space.
This framework generalizes naturally: any application requiring compact-yet-informative codes (e.g., cross-lingual retrieval, multi-modal search, recommendation) can learn or select 3 so as to trace the Pareto frontier in the 4 plane, supporting principled trade-offs among competing system objectives (Du et al., 2024).