Efficient and Interpretable Information Retrieval for Product Question Answering with Heterogeneous Data

Biplob Biswas, Rajiv Ramnath · DOI

Introduction

Product question answering (PQA) presents a unique challenge for information retrieval (IR) systems. Unlike standard document retrieval, PQA must navigate heterogeneous data sources—ranging from structured JSON attributes and bulleted specifications to unstructured, often noisy user reviews. Traditional IR methods typically struggle to balance the semantic understanding required for complex queries with the computational efficiency needed for real-time production environments.

The Retrieval Landscape

Information retrieval has historically been divided into two paradigms: sparse lexical matching and dense semantic retrieval.

  • Sparse Models: Methods like BM25 rely on exact keyword matches. While fast and interpretable, they suffer from "vocabulary mismatch"—failing when a user asks for a "television" but the document only mentions a "TV."
  • Dense Models: BERT-based retrievers map queries and documents into a shared vector space to capture meaning. However, these "black box" models are computationally expensive and offer little transparency into why a specific result was chosen.

Many systems employ a two-stage pipeline: a fast sparse retriever selects candidates, followed by a slow dense re-ranker. This approach is prone to "pruning errors," where relevant documents are discarded in the first stage because they lack exact keyword overlap.

Comparison of common retrieval architectures: (a) Independent Dense Encoders, (b) Late Interaction, and (c) Cross Encoders.

Proposed Hybrid Information Ranker

To address these limitations, this research introduces a Hybrid Information Ranker. This model utilizes a dual-encoder architecture that simultaneously produces both dense and sparse representations from a single transformer backbone.

Dual Hybrid Encoding

The core innovation lies in the simultaneous extraction of two distinct feature sets from a pre-trained Masked Language Model (MLM):

  1. Dense Representation: The model uses the [CLS] token embedding to capture the global semantic context of the input.
  2. Sparse Representation: Instead of discarding the MLM head after pre-training, the authors repurpose it to map text to a sparse distribution over the entire vocabulary. This process includes term expansion, where the model learns to activate semantically related tokens (e.g., "fast" might activate "speed"), effectively solving the vocabulary mismatch problem while maintaining lexical interpretability.
The proposed Hybrid Information Ranker architecture, showing the parallel generation of dense and sparse representations from query and information encoders.

Joint Learning and Efficiency

The model is trained using a contrastive loss function that optimizes both representation types concurrently. A "FLOPS loss" is incorporated to encourage sparsity in the lexical head, ensuring the model remains computationally lightweight. The final relevance score is a linear interpolation of the dense and sparse match scores, controlled by a weighting parameter $\alpha$.

Experimental Evaluation

The model was evaluated on hetPQA, a large-scale benchmark specifically designed for product QA. This dataset is notable for its inclusion of diverse evidence sources, including product attributes, descriptions, community Q&A, and user reviews.

Key Results

  • Performance: The hybrid approach achieved a 10.95% improvement in MRR@5 over independent sparse retrievers and a 2.7% improvement over dense-only models.
  • Efficiency: Compared to state-of-the-art cross-encoders, the hybrid model reduced latency by 30% and computational load (FLOPs) by approximately 38%.
  • Interpretability: By analyzing the expanded tokens in the sparse representation, the model provides a clear "audit trail" for its retrieval decisions. For instance, a query about a "television" might show activations for "power" and "plug," indicating the model's contextual understanding of electronics.

Conclusion

This work demonstrates that the MLM head, often overlooked in retrieval tasks, is a powerful tool for creating efficient, expansion-aware sparse representations. By combining these with dense embeddings in a single-stage hybrid architecture, the authors provide a solution that is both more accurate than traditional dual encoders and significantly faster than cross-encoders, making it ideal for large-scale product information retrieval.

Summary updated

BibTeX
@misc{biswas2024efficient,
  author = {Biplob Biswas and Rajiv Ramnath},
  title = {{Efficient and Interpretable Information Retrieval for Product Question Answering with Heterogeneous Data}},
  year = {2024},
  eprint = {2405.13173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.13173},
}
Figure