TL;DR
Ragnarök is an open-source, end-to-end framework designed to standardize the development and evaluation of Retrieval-Augmented Generation (RAG) systems. By providing deduplicated datasets, modular retrieval/generation pipelines, and a "battle arena" for pairwise human evaluation, it serves as the foundational baseline for the TREC 2024 RAG Track.
What Problem Does This Paper Address?
While RAG has become the backbone of modern AI search (powering features like Google AI Overviews and Bing Search), the research community lacks a unified, reproducible "arena" for testing these systems. Existing frameworks are often proprietary "black boxes" or general-purpose libraries that lack the rigor needed for systematic academic benchmarking.
Furthermore, many RAG benchmarks rely on Wikipedia, which LLMs may have already "memorized" during training. This makes it hard to tell if a model is actually using the retrieved context or just reciting its internal weights. Ragnarök addresses this by standardizing the I/O, providing a non-Wikipedia document collection, and establishing a clear protocol for evaluating long-form, complex answers.
Methods
Ragnarök decomposes the RAG pipeline into two primary modules:
- Retrieval (R): This module uses a two-stage approach. It first performs lexical retrieval (BM25 via Anserini) to find the top 100 segments. These are then passed to a state-of-the-art listwise reranker, RankZephyr, which filters the results down to the most relevant top-20 segments.
- Augmented Generation (AG): This module takes the user query and the top-20 segments, using a prompting strategy to generate a response. The framework is designed to be LLM-agnostic, providing baselines for industrial models like OpenAI’s GPT-4o and Cohere’s Command R+.
Key Innovations:
* Standardized I/O: The framework enforces a JSON schema that requires sentence-level citations, ensuring every part of an answer is grounded in a specific retrieved document.
* Ragnarök System Arena: A WebUI (built on Gradio) that allows for "blind" pairwise battles. Users see two different RAG outputs side-by-side and vote on which is better without knowing which models produced them.
* Modular Design: The framework is accessible via REST APIs and a Python package (pip install pyragnarok), making it easy to swap out retrievers or LLMs.
Datasets
The paper introduces several refined datasets for the TREC 2024 RAG Track:
- MS MARCO V2.1: A deduplicated version of the massive MS MARCO V2 collection. The authors used Locality Sensitive Hashing (LSH) to remove near-duplicate documents, reducing the collection size by 8.35% to improve retrieval diversity.
- Segment Collection: A "chunked" version of the corpus created using a sliding window (10 sentences per chunk, 5-sentence stride) to optimize context for LLMs.
- TREC-RAGgy 2024: 120 complex topics filtered from previous TREC Deep Learning tracks that require information aggregation.
- TREC-Researchy 2024: A subset of "Researchy Questions" sampled to maximize diversity across attributes like "multi-facetedness" and "knowledge-intensity."
Key Insights and Ideas
- Deduplication is Critical: In large-scale web crawls, near-duplicate documents can "crowd out" relevant information in the top-k results. Deduplicating the corpus ensures the LLM sees a more diverse set of perspectives.
- The Detail vs. Citation Trade-off: Qualitative analysis revealed a stylistic split between top models. GPT-4o tends to provide longer, more detailed answers but cites fewer segments. In contrast, Command R+ produces shorter, more concise answers but provides more frequent, granular citations.
- Moving Beyond Factoids: The authors argue that RAG evaluation must move toward "non-factoid" queries. If a question can be answered in one sentence, RAG is overkill; the real challenge lies in "aggregation" topics where the answer must be synthesized from multiple sources.
Key Results
- Corpus Refinement: The deduplication process successfully pruned the MS MARCO V2 collection from ~12 million documents to ~11 million, and the segment collection from ~124 million to ~113 million.
- Baseline Performance: The authors established that a pipeline of BM25 → RankZephyr → GPT-4o currently serves as a high-water mark for answer detail on the development topics.
- Accessibility: By open-sourcing the framework and providing a "one-click" installation via PyPI, the authors have significantly lowered the barrier to entry for researchers wanting to participate in the TREC 2024 RAG track.
Limitations and Future Work
The authors acknowledge that human evaluation (via the Battle Arena) is slow and expensive. Their next phase focuses on finalizing an automatic nugget-based evaluation methodology to provide faster, scalable feedback. They also plan to incorporate more diverse retrieval models (like Artic-Embed) and advanced RAG techniques (like Self-RAG or CRAG) into the framework. Finally, to prevent data leakage, the test topics for the official track will be based on a fresh scrape of search logs closer to the submission deadline.
Summary updated