Summary
- PREDICATELONGBENCH is a new synthetic long-context benchmark designed to systematically evaluate LLMs on tasks requiring retrieval of contiguous word subsequences satisfying specified predicates.
- The benchmark introduces multiple axes of difficulty: predicate arity (unary vs. binary), quantifier complexity (existential vs. universal), adversarial decoys (near-miss and multi-list), search space size, and context structure.
- Evaluations show that frontier models perform well on baselines but crash dramatically when difficulty increases along any axis—even when the correct answer remains unchanged.
- Key findings: binary predicates are harder than unary ones, universal quantifiers degrade performance despite identical answers, scattered decoys cause near-total failure, and structured context restores performance.
- The tasks are algorithmically simple and do not require LLM-based generation or judging, making them reproducible and scalable.
Introduction and Theoretical Foundation
Long-context evaluation has evolved from simple Needle-in-a-Haystack (NIAH) tests to more complex benchmarks. However, existing benchmarks often scale difficulty by adding complexity (e.g., multi-hop reasoning, graph traversal) rather than systematically varying well-defined axes. This makes it difficult to isolate why models fail.
The authors identify three key limitations of prior work:
- Saturation – many benchmarks have become too easy for frontier models
- Lack of robustness – performance varies unpredictably
- No systematic difficulty scaling – difficulty is added ad hoc rather than along principled dimensions
PREDICATELONGBENCH addresses these by defining a clean task family: given a long list of words and a set of predicates, find the longest contiguous subsequence satisfying all predicates. The predicates are drawn from a class .
The theoretical foundation rests on formal logic concepts:
- Existential quantifier (∃): "find a sequence satisfying constraints"
- Universal quantifier (∀): "find all sequences satisfying constraints" or "find the longest sequence"
This allows precise control over computational difficulty while keeping tasks conceptually simple.
Methodology
Task Setup
A task is defined by predicates . Given a word list, the model must find the largest such that there exists a contiguous subsequence with for all .
Predicate Classes
Unary predicates (depend on single words):
- iff string is a prefix of
- iff string is a suffix of
- iff string is contained in
Binary predicates (depend on pairs of words):
- Lexicographic ordering: iff , decomposed as:
Axes of Difficulty
- Computation – predicate arity (1 vs. 2)
- Adversarial Decoys – near-miss sequences (single swapped pair) and multi-list structural decoys
- Search Space Size – more words with same token count (shorter words)
- Quantifier Complexity – ∃-query vs. ∀-query (find all / find longest)
- Context Structure – clustered vs. scattered decoys
Generation
- Synthetic: random 8-character (lex) or 12-character (unary) strings over lowercase English alphabet, ~128K tokens, 100 examples per variant
- Real-world: filtered LongBench v2 documents, up to 365K tokens (93 examples for open-source models with <170K token contexts)
Empirical Validation / Results
Models Evaluated
GPT-5.4 (high/none reasoning), Gemini 3.1 Pro (high/low), Opus 4.6 (high/none), MiniMax 2.7, GLM 5.1, Qwen 3.5 397B
Key Results (Table 2 summary)
| Variant | Opus 4.6 (high) | GPT-5.4 (high) | Gemini 3.1 (high) | GLM 5.1 |
|---|---|---|---|---|
| Unary, ∃-query | 87% | 95% | 93% | 76% |
| Lex. locate, synthetic | 97% | 62% | 43% | 8% |
| Unary, ∀-query | 99% | 93% | 59% | 73% |
| Lex. longest, synthetic | 23% | 12% | 2% | 0% |
| Unary ∀ + decoys | 7% | 5% | 1% | 2% |
| Lex. + near-sorted decoys | 1% | 0% | 2% | 0% |
| Lex. + clustered decoys | 98% | 70% | 64% | 2% |
Major Findings
-
Binary predicates are significantly harder – even the lexicographic baseline (97% for Opus) is far below the unary baseline (87-96% for closed models)
-
Universal quantifier degrades performance – despite identical answers, most models drop substantially. Opus's apparent improvement is an artifact of refusals on the baseline.
-
Decoys cause catastrophic failure – near-sorted decoys drop Opus from 97% to 1%; multi-list decoys keep all models below 10%
-
Search space matters beyond token count – GPT-5.4 drops from 92% to 10% when going from 26K to 60K words at the same 128K token count
-
Structured context restores performance – clustering decoys near the target recovers baseline-level accuracy (Opus: 98%, GPT: 70%)
-
Inference compute is critical – low/no reasoning effort causes severe degradation; larger output token budgets help but never close the gap
-
Models fail at location, not reproduction – first-word accuracy is 0% on incorrect outputs
-
Open-source models largely fail – near-zero accuracy on all binary predicate tasks
Theoretical and Practical Implications
Theoretical Insights
- Predicate arity is a principled difficulty lever – binary predicates require pairwise representations that models handle inconsistently
- Quantifier complexity affects retrieval even without answer changes – universal quantifiers force exhaustive verification that models cannot sustain over long contexts
- Decoy construction reveals search limitations – models cannot reliably distinguish valid sequences from near-misses when scattered across 128K+ tokens
Practical Implications
- Benchmark design: difficulty should be controlled along identifiable axes, not just context length
- Model development: improvements needed in (a) pairwise relationship tracking, (b) exhaustive verification, (c) robust search under adversarial conditions
- Evaluation methodology: token budget and reasoning effort must be reported; refusal rates can mask true capability
Conclusion
PREDICATELONGBENCH demonstrates that frontier LLMs struggle with algorithmically simple retrieval tasks in long contexts when difficulty is systematically increased. The benchmark's key contribution is isolating specific failure modes: binary predicates, universal quantifiers, adversarial decoys, and search space size all independently degrade performance.
Future directions include:
- Higher-arity predicates ()
- Multiple satisfying sequences (larger answer sets)
- More diverse decoy variants and arrangements
- Using these insights to improve long-context architectures
The authors hope that understanding these precise failure modes will guide development of more robust long-context models.
Related papers
- Auditing Reward Hackability in Code RL Training Environments
Docker-verified test-suite audits reveal 28.5% of SWE-bench Verified tasks accept incorrect patches, inflating Pass@1 by +14.14 percentage points across 134 frontier models.
- The Announcement Carries the Cue: Markup, Boundaries, and the Notation of Pre-Training Corpora
Pre-training corpus markup is an unmeasured variable that affects model behavior: deleting structural announcements harms prediction, while swapping notation alone has zero effect.
- Scaling Domain Data Repetition in LLM Pretraining
Optimal data repetition in LLM pretraining is primarily determined by domain validation loss, increasing with model size under fixed tokens-per-parameter scaling.