Assembling four Open Web Search Components: TU Dresden at WOWS 2024

Linda Erben, Maria Hampel, Malte-Christian Kuns, Vincent Melisch, Per Natzschka, Wilhelm Pertsch, Lina Razouk, Reiner Stolle, Robert Thomas Thoss, Tuan Giang Trinh, Julius Gonsior, Anja ReuschWOWS@ECIR 2024

Introduction

Modern web search is often a "black box" dominated by a few large entities. The Open Web Search initiative aims to create a transparent, modular alternative. However, building a search engine from scratch requires numerous specialized components. Researchers from TU Dresden recently showcased four modular "building blocks" for an open web search ecosystem, developed during an intensive one-week student hackathon. Their work demonstrates how combining traditional Information Retrieval (IR) techniques with modern Large Language Models (LLMs) can significantly improve document classification, snippet extraction, and query expansion.

Problem Statement

This research addresses four specific challenges in the IR pipeline:

  1. Genre Classification: Identifying the intent of a page (e.g., shop vs. forum) to improve result filtering.
  2. Truncation Bias in Ranking: Sophisticated "cross-encoder" models have small input limits, often ignoring the end of long documents.
  3. Query Recall: Users often provide short, vague queries that miss relevant documents.
  4. Content Accessibility: Search engines rarely account for the readability level of a page relative to the user's needs.

Methodology

The authors developed four distinct components:

Genre Classification

They compared a Rule-Based Classifier (using Snorkel AI to match vocabulary lists) against a Multi-Layer Perceptron (MLP) neural network using tf-idf features. The rule-based approach was tested with both standard and manually curated vocabulary lists to optimize for precision.

Text Snippet Extraction (TF-SP)

To solve the truncation problem, they implemented a five-step pipeline. Instead of just taking the first 250 tokens of a document, they break the document into snippets, pre-rank those snippets using simple models (like BM25), and then feed only the most relevant snippets into a heavy-duty Cross-Encoder (CE) for final ranking.

LLM-based Query Expansion

They used GPT-3.5, Llama 2, and FLAN-UL2 to expand user queries. They tested three prompting strategies: Chain of Thought (CoT), Zero-Shot (Q2E/ZS), and Few-Shot (Q2E/FS).

Text Features

They integrated libraries like textstat and spaCy to calculate eight different readability metrics (such as Flesch Reading Ease) to quantify the complexity of web content and its relationship to retrieval relevance.

Experimental Results

Genre Classification Performance

The rule-based approach for genre classification achieved much higher precision (up to 0.92) when allowed to "abstain" from uncertain cases, making it ideal for high-confidence filtering. In contrast, the MLP was better suited for general-purpose classification where recall is more critical.

Precision and recall comparison for genre classification models.

Snippet Extraction and Ranking

On the ClueWeb12 dataset, which features very long documents, the snippet-based re-ranking (TF-SP) significantly outperformed "naive" cross-encoders that only look at the beginning of the text. Selecting the top-k snippets based on relevance before re-ranking ensures that relevant information buried deep in a long article isn't lost to the model's input limits.

Performance comparison on ClueWeb09 and ClueWeb12 datasets showing the impact of snippet-based re-ranking (TF-SP).

Query Expansion and Readability

The combination of GPT-3.5 and Chain-of-Thought (CoT) prompting was the clear winner for query expansion, improving recall scores by up to 15% over the baseline. However, LLMs struggled with domain-specific datasets (e.g., medical or legal), where traditional baselines sometimes performed better.

Interestingly, the authors found that high-performing retrieval models like SBERT and MonoT5 tend to surface more readable documents in their top results compared to older models like BM25, suggesting readability may be an implicit signal in modern neural rankers.

Conclusion and Future Work

While developed during a one-week hackathon, these components provide viable building blocks for the research community. Future work will focus on optimizing the efficiency of text feature extraction (currently using spaCy), reducing LLM hallucinations in expanded queries, and implementing more advanced semantic chunking for snippet generation. The code for these components has been made open-source to support the broader Open Web Search initiative.

Summary updated

BibTeX
@inproceedings{erben2024assembling,
  author = {Linda Erben and Maria Hampel and Malte-Christian Kuns and Vincent Melisch and Per Natzschka and Wilhelm Pertsch and Lina Razouk and Reiner Stolle and Robert Thomas Thoss and Tuan Giang Trinh and Julius Gonsior and Anja Reusch},
  title = {{Assembling four Open Web Search Components: TU Dresden at WOWS 2024}},
  booktitle = {WOWS@ECIR},
  year = {2024},
  url = {https://openreview.net/forum?id=8w2RDON1Bs},
}
Figure