LYRA icon

Long-context relevance alignment

The Sirens' Song

When Proximal Background Context Overshadows Distant Evidence

Long-context models may locate distant evidence yet still fail to use it. LYRA reshapes attention competition so relevant evidence remains distinguishable from abundant nearby background.

LongBench-v2 accuracy improves as nearby tokens are masked
Accuracy as an increasing number of nearby context tokens are masked.
01

Abstract

Long-context language models are commonly evaluated by whether they can retrieve evidence over long distances. We identify a complementary failure mode: distant evidence can be found, yet its signal is diluted by the cumulative competition of abundant, task-irrelevant context close to the query. We call this phenomenon the Proximity Trap.

We introduce LYRA, a t-distributed directional matching mechanism that reshapes query-key score differences before softmax normalization. LYRA preserves relevant evidence according to directional agreement rather than position. Experiments on LongBench-v2, RULER, LongBench, and the controlled ProxBench benchmark show consistent gains across context lengths, task categories, and increasingly confusable proximal interference.

02

The Proximity Trap

The challenge is not only finding evidence at a distance. It is keeping that evidence visible while nearby tokens compete for the same finite attention mass.

Finding 1

Evidence can be identified and still be overshadowed.

In later layers, the model selectively concentrates on the distant evidence while ordinary tokens in the same neighborhood remain below uniform attention. However, proximal background also receives substantial attention. Its lower per-token weight accumulates across many tokens and dilutes the evidence signal.

Selective retrieval does not guarantee effective utilization.
Layer-wise attention density for distant evidence, evidence neighborhood, and proximal background
Distant evidence is selectively retrieved, but cumulative proximal background remains competitive.
Paired changes from moving evidence closer and attenuating proximal background
Attenuating proximal background more consistently restores evidence attention than moving evidence closer.
Finding 2

Distance alone does not explain the failure.

Moving evidence closer produces mixed changes in evidence attention and answer confidence. In contrast, attenuating nearby background while keeping the evidence and token positions fixed shifts more examples toward higher evidence attention and often higher confidence.

What evidence competes with matters as much as how far away it is.
The Proximity Trap

Distant evidence can be underused because many individually weak proximal tokens collectively dominate attention competition.

03

LYRA

Long-context heavY-tailed Relevance Alignment preserves distant yet relevant evidence without rewarding distance itself.

1

Directional relevance

Normalize queries and keys, then measure their directional agreement.

3

Attention allocation

Apply the usual mask, softmax, and value aggregation to the reshaped scores.

Relevance, not position

LYRA does not indiscriminately promote distant tokens. It favors evidence that remains directionally aligned with the query.

Drop-in scoring change

Only the query-key scoring stage changes; the rest of the attention pipeline remains intact.

Negligible overhead

The analytical additional computation stays below 0.04% from 8K to 128K context.

04

ProxBench

A controlled benchmark that fixes distant evidence while making nearby, irrelevant context progressively more confusable.

L1

Style-matched

Similar syntax, but a different entity, topic, and answer relation.

L2

Crossed bindings

Familiar entity and relation cues, with the value bound to another entity.

L3

Mixed entity-relation

The same relation for other entities mixed with target-entity attributes.

L4

Fine-grained

Confusable subtypes, attributes, semantic roles, and value formats.

05

Results

LYRA remains strong across controlled context lengths and under increasingly difficult proximal interference.

Table 2

Length robustness on RULER

89.32 average accuracy
MethodVenue8K16K32K64K128KAvg.
FlexPrefillICLR '2571.6573.8975.3872.6568.5172.42
XAttentionICML '2585.6382.2581.6073.1869.9178.51
ProxyAttnICLR '2692.0789.7586.6883.5777.0985.83
S2OACL '2685.8082.7380.3473.9569.9778.56
PBS-AttnICML '2685.5679.3480.9570.7067.9076.89
LYRA-96.3394.1993.1485.3977.5689.32

LYRA achieves the highest accuracy at every evaluated length. It improves the average over the strongest comparator by 3.49 points, with the largest gain at 32K (+6.46).

Figure 4

Robustness on ProxBench

85.5% average accuracy
Accuracy comparison on four ProxBench difficulty levels and average
LYRA leads on Levels 2-4 and obtains the strongest average result.

Although Llama3.1-8B is slightly stronger at Level 1, LYRA leads at every harder level. At Level 4, LYRA reaches 78% accuracy - 16 points above the strongest evaluated base model - and exceeds the strongest average baseline by 7.1 points.