Abstract
LIBRA (Long Input Benchmark for Russian Analysis) is the first comprehensive evaluation suite designed to assess the long-context capabilities of Large Language Models (LLMs) specifically for the Russian language. Comprising 21 tasks across four complexity levels and context lengths up to 128k tokens, LIBRA provides a standardized framework for measuring document understanding beyond simple retrieval. Our findings indicate that while top-tier models like GPT-4o maintain performance across long contexts, most open-source models experience a significant decline in reasoning ability as input length increases.
Introduction
As Large Language Models (LLMs) evolve, their context windows—the amount of text they can process in a single pass—have expanded from a few thousand tokens to over a million. This growth enables transformative applications, such as summarizing entire books or analyzing massive codebases. However, evaluating these abilities has historically been restricted to English and Chinese through benchmarks like LongBench or L-Eval.
The Russian NLP community has lacked a standardized, transparent tool to measure long-context understanding. Without such a benchmark, it is difficult to verify if a model claiming a 128k context window can actually reason over that data in Russian or if it is merely "hallucinating" based on local context. LIBRA addresses this gap by providing a rigorous evaluation framework.
Methodology: Context Length and Fertility
A key technical challenge in cross-model evaluation is that different models use different tokenizers. A single Russian word might be represented by two tokens in one model and five in another. To ensure fair comparison, the authors introduced the concept of "fertility"—the average number of tokens per word. By adopting a standard fertility of 3, the benchmark ensures that a "32k token" context represents a consistent amount of semantic information across all tested models.
For reproducibility, the evaluation utilizes greedy decoding (temperature = 1.0, no sampling). Most tasks are conducted in a zero-shot setting, requiring models to perform tasks without prior examples in the prompt.
The LIBRA Benchmark Suite
LIBRA consists of 21 datasets categorized into four complexity groups, designed to test a range of cognitive skills from simple retrieval to complex multi-step reasoning.
Analysis of Task Complexity
The tasks are structured to progressively challenge the model's ability to maintain coherence over long distances:
- Group I (Simple Retrieval): Focuses on basic information recovery, such as the "Passkey" task.
- Group II (Single-hop QA): Requires answering questions based on a single relevant piece of context (e.g.,
ruTREC,ruQuALITY). - Group III (Multi-hop QA): Demands linking multiple pieces of information scattered throughout the text (e.g.,
ruBABILong,LibrusecMHQA). - Group IV (Complex Reasoning): Involves math problems or domain-specific QA requiring a holistic understanding of the entire context (e.g.,
ruGSM100,ruQasper).
Key Findings and Model Performance
The benchmark reveals several critical insights into the current state of long-context LLMs for Russian:
- The "Context Tax": Performance for nearly all models is inversely proportional to context length. A model's ability to reason over 128k tokens is significantly lower than its performance at 4k tokens, even if it technically supports the longer window.
- Retrieval vs. Reasoning: Success in Group I (Passkey) does not guarantee success in higher groups. Many models achieve 100% in retrieval but score below 10% in multi-hop reasoning (Group III), proving that "finding a needle in a haystack" is an insufficient proxy for true document understanding.
- Model Leaderboard: GPT-4o leads the benchmark with an overall score of 70.2, demonstrating remarkable stability up to 128k tokens. Among open-source models, GLM4-9B-Chat is the top performer (score: 52.3), outperforming larger LLaMA-3 and Mistral variants.
- The 32k Performance Cliff: Most open-source models (e.g., Mistral-7B, LLaMA-3-8B) show a dramatic performance drop-off after 16k or 32k tokens, often reaching near-zero scores on complex tasks at maximum lengths.
Limitations and Future Directions
While LIBRA provides a vital baseline, the authors note several limitations. The current datasets are drawn from specific domains like literature and science, which may not capture the full linguistic diversity of Russian. Additionally, some datasets use synthetic padding which may not perfectly replicate natural document flow. Future work will focus on expanding the benchmark to include code generation, analysis tasks, and specific evaluations for AI safety and ethics within long contexts.
Summary updated