Introduction
When users query search engines with comparative intents—such as "MySQL vs. PostgreSQL"—they are not merely seeking general information. They require a side-by-side analysis of features, performance, and trade-offs to support informed decision-making. Traditional Information Retrieval (IR) systems often fail to distinguish between documents that simply mention both entities and those that provide a structured comparative argument.
This research addresses the challenge of "Comparative Argument Retrieval" by ranking documents based on both topical relevance and their argumentative utility.
Methodology
The proposed system utilizes a multi-stage re-ranking pipeline. Initial candidate documents are retrieved using the ChatNoir search engine, which employs an inverted index and BM25 scoring. These candidates are then processed through a similarity computation layer.
The re-ranking process integrates several sophisticated components:
- Deep Pre-trained Models: ULMFiT (AWD-LSTM) and BERT generate vector representations to calculate semantic closeness between queries and documents.
- Transformer Attention Analysis: The researchers analyzed 12 attention heads in a Transformer model, identifying specific heads (4, 10, and 11) that correlate strongly with query-response relevance.
- NLU-based Feature Extraction: To detect comparative structures, the team developed an XGBoost-based Comparative Sentence Detector and a custom LSTM Sequence Labeler to identify objects, predicates, and aspects.
- Additive Scoring: These NLU features act as a multiplier, boosting documents that contain specific comparison objects and high densities of comparative language.
Experimental Setup and Datasets
The system was evaluated using massive web corpora, including ClueWeb12 and Common Crawl. Models were pre-trained on Wikitext-103 and fine-tuned on specialized datasets:
- Comparative Sentences Corpus 2019: ~7,200 sentences for training the comparative classifier.
- Custom Comparative Dataset: 3,967 labeled sentences for object and aspect extraction.
Results and Analysis
Performance was evaluated using NDCG@5, prioritizing the accuracy of the top five retrieved results.
| Method | Running Tag | NDCG@5 |
|---|---|---|
| Baseline (BM25 + Cleaning) | MyBaselineFilterResponse | 0.564 |
| Baseline + Comparative Features | Baseline_CAM_OBJ | 0.553 |
| ULMFiT + Comparative Features | ULMFIT_LSTM_CAM_OBJ | 0.464 |
| BERT Similarity | myBertSimilarity | 0.404 |
| Transformer Attention | MethodAttentionFilterResponse | 0.223 |
| ULMFiT (Raw) | ULMFIT_LSTM | 0.200 |
The results indicate that while a well-tuned traditional BM25 baseline remains highly effective, the integration of NLU features significantly enhances neural models. For instance, ULMFiT's performance jumped from 0.200 to 0.464 when comparative features were added, demonstrating the necessity of explicit linguistic modeling in argument retrieval.
Conclusion
This study highlights that semantic relevance alone is insufficient for comparative retrieval. While deep learning models like BERT and ULMFiT provide a strong foundation, they require specialized NLU features to bridge the gap between general similarity and argumentative structure. Future work will focus on optimizing the weighting of these features and incorporating comparative sentiment analysis to better capture the nuances of "pros and cons" in web documents.
Summary updated