学会何时不听:语言模型的选择性抗干扰预训练

arXiv cs.CL 论文

摘要

SPAR 是一种预训练目标,采用门控KL散度损失来稳定语言模型预测,对抗无关前缀文本,从而提升在长上下文场景中的鲁棒性,并在多个基准测试中得到验证。

arXiv:2609.27925v1 Announce Type: new Abstract: Language models can over-condition on irrelevant preceding text: predictions already supported by local context may still change when distant, unrelated prefix tokens are perturbed. This interference is especially consequential in long, packed, or distractor-heavy contexts, where useful evidence and irrelevant spans coexist. We propose Selective Prefix Anti-Interference Regularization (SPAR), a pretraining objective for selective anti-interference. SPAR runs the original sequence and a corrupt-prefix input in which only the far prefix is changed, then uses a short-context sufficiency gate and a gated KL objective to stabilize locally supported suffix predictions. The gate operationalizes a model-based estimate of whether the far prefix supplies additional information about the target token. Mechanism analyses show that the gate identifies locally sufficient tokens and sharply reduces prefix sensitivity on gate-selected suffix tokens. In continued training on pretrained base models, SPAR improves RULER across Qwen2.5-0.5B, Qwen2.5-3B, Llama-3.2-1B, Llama-3.1-8B, and GPT2-XL under equal counted training compute; pretraining experiments further show gains on both RULER and NoLiMa. These results show that selective anti-interference is an effective objective-level signal for robust context use.
查看原文
查看缓存全文

缓存时间: 2026/09/24 09:30

# Learning When Not to Listen: Selective Anti-Interference Pretraining for Language Models
Source: [https://arxiv.org/html/2609.27925](https://arxiv.org/html/2609.27925)
Haowei HeYi DingRong FuNie XiaojianShuangyong SongZhongjiang He\\correspondingMenglin Yang\\corresponding

###### Abstract

Language models can over\-condition on irrelevant preceding text: predictions already supported by local context may still change when distant, unrelated prefix tokens are perturbed\. This interference is especially consequential in long, packed, or distractor\-heavy contexts, where useful evidence and irrelevant spans coexist\. We propose Selective Prefix Anti\-Interference Regularization \(SPAR\), a pretraining objective for selective anti\-interference\. SPAR runs the original sequence and a corrupt\-prefix input in which only the far prefix is changed, then uses a short\-context sufficiency gate and a gated KL objective to stabilize locally supported suffix predictions\. The gate operationalizes a model\-based estimate of whether the far prefix supplies additional information about the target token\. Mechanism analyses show that the gate identifies locally sufficient tokens and sharply reduces prefix sensitivity on gate\-selected suffix tokens\. In continued training on pretrained base models, SPAR improves RULER across Qwen2\.5\-0\.5B, Qwen2\.5\-3B, Llama\-3\.2\-1B, Llama\-3\.1\-8B, and GPT2\-XL under equal counted training compute; pretraining experiments further show gains on both RULER and NoLiMa\. These results show that selective anti\-interference is an effective objective\-level signal for robust context use\.

## Introduction

Language models are trained to condition on previous tokens\. Robust context use requires selecting the relevant evidence while resisting irrelevant preceding text\. This anti\-interference problem becomes especially visible in long, packed, or distractor\-heavy contexts, where useful evidence and distractors coexist in the same window\. Long\-context evaluations repeatedly expose this selection challenge: models use long inputs unevenly\([18](https://arxiv.org/html/2609.27925#bib.bib1)\), lose accuracy as synthetic long\-context tasks become more structured\([13](https://arxiv.org/html/2609.27925#bib.bib2)\), and struggle when retrieval requires latent association beyond literal overlap\([20](https://arxiv.org/html/2609.27925#bib.bib4)\)\.

The training objective behind this behavior is under\-specified\. Standard causal language modeling maximizes next\-token likelihood under the observed full prefix, so all preceding tokens enter through a single likelihood target\. This signal teaches the model to exploit context when it helps prediction, while the separation between useful evidence and irrelevant far\-prefix variation is left implicit\. If a token is already predictable from its local suffix, perturbing distant unrelated text should leave the model’s prediction nearly unchanged\. Ordinary CLM lacks an explicit invariance term for this stability\.

We introduce Selective Prefix Anti\-Interference Regularization \(SPAR\), a pretraining objective that teaches this selective stability\. Given a training sequence, SPAR preserves the local suffix and corrupts only the far prefix in a second input\. The model performs an original\-sequence forward pass and a corrupt\-prefix forward pass\. A short\-context sufficiency gate selects suffix tokens that are already locally predictable, and a gated KL loss stabilizes the predictions for those selected tokens under far\-prefix corruption\. The objective gives the model an explicit anti\-interference signal alongside ordinary CLM\.

The central idea is simple: CLM teaches models to use context; SPAR teaches them which context should matter less for locally sufficient targets\. The ordinary CLM objective remains responsible for learning predictive evidence from the observed prefix\. The gated invariance term adds a second behavior at positions where the recent suffix already supports the target and the far prefix contributes little additional likelihood\. This design lets long\-range evidence remain useful at high\-gap positions while giving locally determined predictions a direct stability target\.

![Refer to caption](https://arxiv.org/html/2609.27925v1/spar_framework_v3_fully_editable.png)Figure 1:SPAR forms a corrupt\-prefix view by shuffling chunks only in the far prefix while preserving the local suffix token for token\. The short\-context gate selects suffix tokens with high short\-context likelihood and a small full–short likelihood gain; the resulting mask restricts clean\-to\-corrupt\-prefix KL matching while CLM remains active throughout\.The key requirement is selectivity\. An anti\-interference objective should stabilize predictions under nuisance changes when the local suffix is sufficient\. SPAR implements this with a full–short likelihood gate that separates locally sufficient targets from positions with far\-prefix evidence\. A fixed\-reference gate analysis measures how accurately this criterion selects local\-sufficient answer tokens, and prompt\-level probes measure whether robustness gains concentrate in the intended regime\.

The evidence follows this selectivity claim from mechanism to benchmark behavior\. Mechanism analyses show that the fixed\-reference gate identifies locally sufficient targets and that SPAR reduces corrupt\-prefix sensitivity where this gate applies\. Continued training improves RULER and HELMET across five pretrained base models, and pretraining experiments improve both RULER and NoLiMa across 0\.3B–1B scales\. Together, these results support the main claim: robust context use benefits from an explicit training signal that separates nuisance prefixes from decisive distant evidence\.

Our contributions are:

- •We formulate far\-prefix interference as selective conditional dependence: locally sufficient predictions should resist nuisance prefixes, and the full–short gap identifies where this invariance signal applies\.
- •We propose SPAR, a pretraining objective that corrupts only the far prefix, preserves the local suffix, and applies gated distribution matching to locally sufficient suffix tokens\.
- •We show that the learned behavior is selective: the gate identifies locally sufficient targets, and prefix sensitivity decreases sharply on the selected region\.
- •We validate SPAR across both from\-scratch pretraining and continued training on pretrained base models, improving RULER across five pretrained base models and improving both RULER and NoLiMa in the pretraining study\.

Table 1:Pretraining results averaged over three seeds\. Context columns report gains \(SPAR minus CE\); final columns give absolute average scores\. CE denotes ordinary CLM training\.Table 2:Continued training on pretrained base models averaged over three seeds\. Context columns report RULER gains \(SPAR minus CE\); final columns give absolute average scores\. CE denotes ordinary CLM training\.
## Related Work

#### Making longer context computable\.

A large part of long\-context research expands the sequence length that a Transformer can process\. Early work addressed the fixed\-window limitation through recurrence or sparse attention, as in Transformer\-XL, Reformer, Longformer, and BigBird\([8](https://arxiv.org/html/2609.27925#bib.bib12);[14](https://arxiv.org/html/2609.27925#bib.bib13);[5](https://arxiv.org/html/2609.27925#bib.bib14);[34](https://arxiv.org/html/2609.27925#bib.bib15)\)\. Systems and kernel work, represented by FlashAttention, made exact attention substantially more practical at longer lengths\([9](https://arxiv.org/html/2609.27925#bib.bib16)\)\. Another line extends or modifies positional behavior: RoPE became a standard positional mechanism for decoder\-only LMs\([26](https://arxiv.org/html/2609.27925#bib.bib17)\); ALiBi enables input\-length extrapolation through linear attention biases\([22](https://arxiv.org/html/2609.27925#bib.bib18)\); Position Interpolation, YaRN, LongRoPE, and PoSE adapt position handling so pretrained models can operate beyond their original windows\([6](https://arxiv.org/html/2609.27925#bib.bib19);[21](https://arxiv.org/html/2609.27925#bib.bib6);[10](https://arxiv.org/html/2609.27925#bib.bib7);[37](https://arxiv.org/html/2609.27925#bib.bib20)\)\. Efficient adaptation and deployment methods such as LongLoRA and StreamingLLM further reduce the cost of long\-context use\([7](https://arxiv.org/html/2609.27925#bib.bib8);[31](https://arxiv.org/html/2609.27925#bib.bib21)\)\. Alignment and data recipes including LongAlign, SkipAlign, LongWriter, and LongCite show that context behavior also depends on the length patterns and supervision formats seen during instruction tuning or continued training\([1](https://arxiv.org/html/2609.27925#bib.bib22);[30](https://arxiv.org/html/2609.27925#bib.bib23);[4](https://arxiv.org/html/2609.27925#bib.bib24);[35](https://arxiv.org/html/2609.27925#bib.bib25)\)\. This literature establishes the infrastructure for longer inputs\. SPAR adds an objective\-level training signal for deciding when visible distant tokens should leave a locally supported prediction stable\.

#### Long\-context benchmarks reveal selective context\-use challenges\.

Benchmark work has steadily sharpened the distinction between nominal context length and effective context use\. SCROLLS and ZeroSCROLLS moved evaluation toward naturally long texts and zero\-shot long\-text understanding\([24](https://arxiv.org/html/2609.27925#bib.bib26);[23](https://arxiv.org/html/2609.27925#bib.bib27)\)\. LongBench broadened long\-context evaluation across bilingual, multitask settings\([2](https://arxiv.org/html/2609.27925#bib.bib3)\)\. LooGLE and BAMBOO emphasized long\-dependency QA, hallucination detection, text sorting, language modeling, and code completion over newer and longer documents\([15](https://arxiv.org/html/2609.27925#bib.bib28);[11](https://arxiv.org/html/2609.27925#bib.bib29)\)\. InfiniteBench pushed evaluation beyond 100K\-token contexts\([36](https://arxiv.org/html/2609.27925#bib.bib30)\)\. NeedleBench, LongICLBench, Loong, and LongBench v2 further stress retrieval, reasoning chains, extreme\-label in\-context learning, extended multi\-document QA, and deeper reasoning\([16](https://arxiv.org/html/2609.27925#bib.bib31);[17](https://arxiv.org/html/2609.27925#bib.bib32);[28](https://arxiv.org/html/2609.27925#bib.bib33);[3](https://arxiv.org/html/2609.27925#bib.bib34)\)\. RULER provides structured 13\-task stress tests that expose degradation across retrieval, multi\-hop, aggregation, and QA\-like settings\([13](https://arxiv.org/html/2609.27925#bib.bib2)\)\. HELMET argues for holistic long\-context evaluation because synthetic tasks and application tasks can produce different rankings\([33](https://arxiv.org/html/2609.27925#bib.bib35)\)\. NoLiMa removes literal lexical matching between question and evidence, making the benchmark closer to association\-based retrieval\([20](https://arxiv.org/html/2609.27925#bib.bib4)\)\. Lost\-in\-the\-middle results show that models use long inputs unevenly even when the answer is present\([18](https://arxiv.org/html/2609.27925#bib.bib1)\)\. Taken together, these benchmarks show a recurring pattern: models can accept more tokens while remaining fragile about which distant evidence they use, where that evidence appears, and how much irrelevant material surrounds it\.

#### Training objectives for useful context dependence\.

Several recent methods improve behavior in long, packed, or distractor\-heavy contexts by changing the training signal\. LongAlign constructs long instruction\-following data and batching strategies for long\-context alignment\([1](https://arxiv.org/html/2609.27925#bib.bib22)\); SkipAlign synthesizes position gaps to expose models to long\-range dependencies without full\-length training examples\([30](https://arxiv.org/html/2609.27925#bib.bib23)\); LongWriter and LongCite show that output length and citation faithfulness depend strongly on the supervision distribution\([4](https://arxiv.org/html/2609.27925#bib.bib24);[35](https://arxiv.org/html/2609.27925#bib.bib25)\)\. LongPPL and LongCE are especially close to the objective\-level question\. They argue that standard perplexity averages away the tokens that actually benefit from long context, then use long\-short contrast to identify and upweight key tokens\([12](https://arxiv.org/html/2609.27925#bib.bib5)\)\. SPAR uses the long–short signal to identify locally sufficient tokens whose predictions should remain stable under irrelevant far\-prefix changes, turning the contrast into an anti\-interference target\.

#### Irrelevant context, distractibility, and far\-prefix interference\.

The motivation for SPAR is also connected to work on distractors and irrelevant context\. Large language models can be distracted by irrelevant information in reasoning problems\([25](https://arxiv.org/html/2609.27925#bib.bib9)\)\. Position sensitivity in long inputs\([18](https://arxiv.org/html/2609.27925#bib.bib1)\), association\-based retrieval in NoLiMa\([20](https://arxiv.org/html/2609.27925#bib.bib4)\), and benchmark disagreements documented by HELMET\([33](https://arxiv.org/html/2609.27925#bib.bib35)\)all point to the same underlying issue: context utilization is a selection problem\. A model must preserve useful long\-range dependencies while preventing irrelevant spans from steering predictions that are already locally determined\. Existing benchmarks diagnose this behavior at evaluation time\. SPAR turns it into a pretraining\-time objective by constructing clean and far\-prefix\-corrupted views and optimizing local\-suffix predictions to remain stable only when the gate indicates local sufficiency\.

#### Consistency and invariance training\.

SPAR is related in form to consistency regularization, where models are trained to produce stable predictions under perturbations\. Virtual Adversarial Training enforces smoothness around inputs\([19](https://arxiv.org/html/2609.27925#bib.bib36)\); Mean Teacher uses weight\-averaged teachers to form consistency targets\([27](https://arxiv.org/html/2609.27925#bib.bib37)\); UDA improves semi\-supervised learning by enforcing invariance under strong data augmentations\([32](https://arxiv.org/html/2609.27925#bib.bib10)\); R\-Drop regularizes dropout\-induced subnetworks through bidirectional KL matching\([29](https://arxiv.org/html/2609.27925#bib.bib11)\)\. SPAR adapts this idea to a structured far\-prefix threat model\. The perturbation changes the far prefix while preserving the local suffix, and the target is the subset selected by a short\-context sufficiency gate\. This selectivity ties the consistency loss to anti\-interference in long, packed, or distractor\-heavy contexts\.

Table 3:HELMET long\-context evaluation averaged over three seeds on NQ, TriviaQA, HotpotQA, PopQA, NIAH multikey\-2/3, NIAH multivalue, JSON\-KV, and MS MARCO reranking\. Context columns report macro gains \(SPAR minus CE\); final columns give absolute average scores\. CE denotes ordinary CLM training\.Table 4:Zero\-shot public benchmark accuracy \(%\) for from\-scratch pretrained decoder\-only Transformer base models\.

## Selective Prefix Anti\-Interference Regularization

### Far\-Prefix Interference and Conditional Dependence

Letx=\(x1,…,xT\)x=\(x\_\{1\},\\ldots,x\_\{T\}\)be a training sequence\. We split it into a far prefixx1:ax\_\{1:a\}and a local suffixxa\+1:Tx\_\{a\+1:T\}\. For a suffix positiont\>at\>a, a decoder\-only language model predictsxtx\_\{t\}fromx<tx\_\{<t\}\. Far\-prefix interference occurs when modifyingx1:ax\_\{1:a\}substantially changes the prediction forxtx\_\{t\}even though the recent local context already supports that prediction\.

This definition isolates prefix\-induced instability from irrelevant distant context and gives a direct training target\. LetF=x1:aF=x\_\{1:a\}denote the far prefix,L=xa\+1:t−1L=x\_\{a\+1:t\-1\}the local suffix, andY=xtY=x\_\{t\}the target\. For the observed target token, the model\-based quantity

ιt​\(Y;F∣L\)=log⁡pθ​\(Y∣F,L\)−log⁡pθ​\(Y∣L\)\\iota\_\{t\}\(Y;F\\mid L\)=\\log p\_\{\\theta\}\(Y\\mid F,L\)\-\\log p\_\{\\theta\}\(Y\\mid L\)\(1\)is a pointwise estimate of the additional predictive information supplied byFF; its expectation parallels conditional mutual information\. Largeιt\\iota\_\{t\}indicates predictive evidence in the far prefix\. Smallιt\\iota\_\{t\}together with high local predictability identifies an invariance region in which nuisance changes toFFshould leave the prediction stable\. SPAR targets this low\-conditional\-information region\.

### Clean and Corrupt\-Prefix Views

SPAR constructs a corrupt\-prefix input for a subset of training examples\. The clean input is the original sequencexx\. The corrupt\-prefix input is

x~=\[c\(x1:a\),xa\+1:T\],\\tilde\{x\}=\[c\(x\_\{1:a\}\),x\_\{a\+1:T\}\],\(2\)wherec⁡\(⋅\)c\(\\cdot\)corrupts the far prefix by perturbing its chunk order while preserving the local suffix\. The clean and corrupt\-prefix inputs therefore predict the same suffix tokens\.

This construction fixes the target suffix and its immediate evidence while changing only the distant prefix\. Because both views predict identical suffix tokens, the KL term compares two distributions over the same next\-token labels and recent suffix evidence\. The paired comparison converts far\-prefix interference into a direct training signal at locally sufficient positions\.

The model computes clean logitsztz\_\{t\}and corrupt\-prefix logitsz~t\\tilde\{z\}\_\{t\}for suffix positions\. The ordinary CLM loss remains the primary training objective:

ℒCLM=−∑tlogpθ\(xt∣x<t\)\.\\mathcal\{L\}\_\{\\mathrm\{CLM\}\}=\-\\sum\_\{t\}\\log p\_\{\\theta\}\(x\_\{t\}\\mid x\_\{<t\}\)\.\(3\)

### Short\-Context Sufficiency Gate

The invariance loss is applied on positions where local context is sufficient\. For each suffix tokenxtx\_\{t\}, we evaluate a short\-context view containing the most recentKKtokens beforett\. Letpshort​\(xt\)p\_\{\\mathrm\{short\}\}\(x\_\{t\}\)be the gold\-token probability under this short view, and letpfull​\(xt\)p\_\{\\mathrm\{full\}\}\(x\_\{t\}\)be the gold\-token probability under the full clean context\. The gate is

gt=𝟏\[\\displaystyle g\_\{t\}=\\mathbf\{1\}\[pshort​\(xt\)≥τabs∧\\displaystyle p\_\{\\mathrm\{short\}\}\(x\_\{t\}\)\\geq\\tau\_\{\\mathrm\{abs\}\}\\;\\wedge\(4\)logpfull\(xt\)−logpshort\(xt\)≤τgap\]\.\\displaystyle\\log p\_\{\\mathrm\{full\}\}\(x\_\{t\}\)\-\\log p\_\{\\mathrm\{short\}\}\(x\_\{t\}\)\\leq\\tau\_\{\\mathrm\{gap\}\}\]\.The first condition selects locally predictable tokens\. The second condition filters positions where the full context provides substantial additional evidence\. The gate is the key selectivity mechanism: tokens that genuinely depend on long\-range context remain governed by ordinary CLM\.

The two gate conditions play different roles\. High short\-context likelihood prevents the objective from regularizing uncertain suffix positions, where instability may reflect weak local evidence\. The full–short gap then separates local sufficiency from genuine long\-range dependence: a token can be predictable under the short view while still gaining decisive evidence from the far prefix\. Applying invariance only when both conditions hold makes the loss asymmetric with respect to context use\. It suppresses nuisance dependence where the local suffix already determines the target, while leaving high\-gap positions to ordinary CLM\.

### Gated Invariance Loss

SPAR matches clean and corrupt\-prefix distributions on gated positions:

ℒinv=∑t\>agtKL\(sg\(pθ\(⋅∣x<t\)\)∥pθ\(⋅∣x~<t\)\)max⁡\(∑t\>agt,1\)\.\\mathcal\{L\}\_\{\\mathrm\{inv\}\}=\\frac\{\\sum\_\{t\>a\}g\_\{t\}\\,\\mathrm\{KL\}\\left\(\\mathrm\{sg\}\(p\_\{\\theta\}\(\\cdot\\mid x\_\{<t\}\)\)\\,\\\|\\,p\_\{\\theta\}\(\\cdot\\mid\\tilde\{x\}\_\{<t\}\)\\right\)\}\{\\max\(\\sum\_\{t\>a\}g\_\{t\},1\)\}\.\(5\)The invariance term uses a directional anchor\. The clean\-view distribution is evaluated with stop\-gradient and serves as the reference distribution; the corrupt\-prefix branch receives the consistency gradient\. This directs the auxiliary update toward removing prefix\-induced drift while keeping the ordinary clean\-context CLM loss as the source of token likelihood learning\. Since the two branches share parameters, gradients through the corrupt branch still update the same model used at clean\-context inference time\. For top\-kkmatching, the support is selected from the clean anchor, both distributions are renormalized over this support, and the anchor temperature controls the sharpness of the reference before truncation\.

The final objective is

ℒ=ℒCLM\+λinv​ℒinv\.\\mathcal\{L\}=\\mathcal\{L\}\_\{\\mathrm\{CLM\}\}\+\\lambda\_\{\\mathrm\{inv\}\}\\mathcal\{L\}\_\{\\mathrm\{inv\}\}\.\(6\)Experiments use top\-k=32k=32and anchor temperature0\.70\.7, with corrupt\-prefix CLM disabled\. The SPAR batch fraction controls the fraction of batches that carry the additional corrupt\-prefix computation\.

### Evaluating Selective Context Dependence

The prefix\-sensitivity analysis uses the same clean/corrupt\-prefix geometry\. For validation sequences, we compute gold\-token log likelihood under the clean view and under the corrupt\-prefix view\. The sensitivity drop is

Δsens=𝔼t​\[log⁡pθ​\(xt∣x<t\)−log⁡pθ​\(xt∣x~<t\)\]\.\\Delta\_\{\\mathrm\{sens\}\}=\\mathbb\{E\}\_\{t\}\\left\[\\log p\_\{\\theta\}\(x\_\{t\}\\mid x\_\{<t\}\)\-\\log p\_\{\\theta\}\(x\_\{t\}\\mid\\tilde\{x\}\_\{<t\}\)\\right\]\.\(7\)Lower sensitivity drop means far\-prefix corruption harms the gold\-token probability less\. The gate\-selected version restricts the same measurement to positions selected by the local\-sufficiency criterion:

Δgated=∑tgt​\[log⁡pθ​\(xt∣x<t\)−log⁡pθ​\(xt∣x~<t\)\]max⁡\(∑tgt,1\)\.\\Delta\_\{\\mathrm\{gated\}\}=\\frac\{\\sum\_\{t\}g\_\{t\}\\left\[\\log p\_\{\\theta\}\(x\_\{t\}\\mid x\_\{<t\}\)\-\\log p\_\{\\theta\}\(x\_\{t\}\\mid\\tilde\{x\}\_\{<t\}\)\\right\]\}\{\\max\(\\sum\_\{t\}g\_\{t\},1\)\}\.\(8\)We report both all\-token sensitivity and gated sensitivity\. Gated sensitivity is the closer mechanism check because it measures the positions selected by the same local\-sufficiency criterion used in training\. To evaluate the gate without model\-dependent subset shift, the gate\-region analysis computes token bins and the evaluation mask once with a frozen CE reference model, then applies the same tokens, bins, and mask to CE and SPAR\.

## Experimental Setup

#### Continued training on pretrained base models\.

The main experiments compare SPAR against a CE baseline \(ordinary CLM training\) for continued training on pretrained base models with equal counted training compute\. We evaluate Qwen2\.5\-0\.5B, Qwen2\.5\-3B, Llama\-3\.2\-1B, Llama\-3\.1\-8B, and GPT2\-XL\. Qwen and Llama models use a 16K training window, and GPT2\-XL uses a 32K training window\. The main RULER evaluation is run directly on the resulting base models\.

#### Pretraining\.

We evaluate 0\.3B, 0\.6B, and 1B pretraining experiments on both RULER and NoLiMa\. These experiments test the same anti\-interference objective before continued training on pretrained base models\.

#### Benchmarks and metrics\.

RULER is the primary benchmark for continued training on pretrained base models\. It contains 13 long\-context tasks spanning retrieval, multi\-hop tracing, aggregation, and QA\-style synthetic evaluation\([13](https://arxiv.org/html/2609.27925#bib.bib2)\)\. We report task macro averages at each context length and macro deltas between SPAR and the corresponding baseline\. HELMET provides a secondary long\-context evaluation on application\-oriented QA, retrieval, key\-value lookup, and reranking tasks at 8K–32K\([33](https://arxiv.org/html/2609.27925#bib.bib35)\)\. NoLiMa is used in the pretraining experiments to test retrieval beyond literal matching\([20](https://arxiv.org/html/2609.27925#bib.bib4)\)\. The prefix\-sensitivity analysis measures the gold\-token likelihood drop caused by far\-prefix corruption\.

#### Mechanism analyses\.

We compare CE and SPAR at a 4K context length, with 3K tokens assigned to the far prefix\. The per\-prompt selectivity analysis uses 256 entity–value examples\. Its local\-sufficient condition changes nuisance prefix content while preserving a decisive local update; its far\-dependent condition switches the only answer\-bearing evidence in the far prefix\. All candidates are scored by sequence log probability\.

The gate\-region analysis uses 256 held\-out pretraining sequences and averages document replacement and chunk\-shuffle corruption\. Short NLL and the full–short log\-probability gap are computed with the frozen CE model; this reference also defines a single evaluation gate shared by both target models\. The fixed mask keeps CE and SPAR on the same selected token subset\.

#### Evaluation windows\.

For Qwen and Llama models trained to 16K, evaluations at 24K and 32K are extrapolation measurements\. For GPT2\-XL, all reported RULER lengths use the 32K\-trained model\. The main trained\-window claim uses lengths up to the training window, while full reported deltas include all completed lengths when stated\.

Table 5:Qwen2\.5\-0\.5B SPAR batch fraction sensitivity at fixedλinv=0\.004\\lambda\_\{\\mathrm\{inv\}\}=0\.004\. Values are RULER macro deltas against the corresponding CE baseline at each context length\. CE denotes ordinary CLM training\.![Refer to caption](https://arxiv.org/html/2609.27925v1/figures/spar_per_prompt_selectivity.png)Figure 2:Per\-prompt selectivity gains\. Each point is one entity–value prompt\. The horizontal axis measures robustness gain under nuisance prefix changes; the vertical axis measures gain in following changed answer evidence\. The upper\-right region marks prompts where SPAR improves both nuisance invariance and evidence following\.![Refer to caption](https://arxiv.org/html/2609.27925v1/spar_gate_region_analysis.png)Figure 3:Gate\-region analysis using an evaluation mask fixed by the frozen CE reference\. Panels show \(a\) validation\-token density, \(b\) SPAR minus CE prefix\-distribution JS, \(c\) clean NLL, and \(d\) corrupt NLL\. Blue denotes a reduction\. Threshold lines mark the short\-NLL and full–short\-gap cutoffs\. On the balanced answer\-token set, the gate reaches 0\.988 precision, 0\.613 recall, 0\.008 far\-dependent false\-positive rate, and 0\.933 AUROC\.

## Results

The results test whether an anti\-interference objective improves long\-context behavior through a selective training signal\. We first evaluate the external effect in from\-scratch pretraining and continued training on pretrained base models\. We then localize the effect at the token and prompt levels, followed by sensitivity sweeps that characterize the useful strength range of the invariance signal\.

### Pretraining Improves RULER and NoLiMa

Table[1](https://arxiv.org/html/2609.27925#Sx1.T1)reports pretraining gains by context length and average absolute scores across 0\.3B, 0\.6B, and 1B scales\. SPAR improves both RULER and NoLiMa at every scale, covering structured long\-context retrieval as well as evidence selection without direct lexical matching\.

### Continued Training Improves RULER Across Pretrained Base Models

Table[2](https://arxiv.org/html/2609.27925#Sx1.T2)reports RULER gains by context length and average absolute scores for continued training on pretrained base models\. SPAR improves RULER in every family\. Table[3](https://arxiv.org/html/2609.27925#Sx2.T3)extends the comparison to HELMET at 8K–32K, where average gains remain positive for all five base models\. The gains are small but consistent for Qwen2\.5\-3B, larger for Qwen2\.5\-0\.5B and Llama\-3\.2\-1B, positive but smaller on Llama\-3\.1\-8B, and strongest for GPT2\-XL at the 32K window\. The shared pattern across Qwen2\.5, Llama, and GPT\-2 XL links from\-scratch pretraining and continued training on pretrained base models to the same selective anti\-interference signal\.

Table 6:RULER ablation of the selection rule\. Values are average gains over CE for each model, using the same evaluated context lengths as Table[2](https://arxiv.org/html/2609.27925#Sx1.T2)\. CE denotes ordinary CLM training\.
### Gate Selection Matters

Table[6](https://arxiv.org/html/2609.27925#Sx5.T6)separates the value of the gate from the value of adding an auxiliary consistency loss\. Random gating keeps the same selection budget but assigns positions independently of local sufficiency; ungated KL keeps clean–corrupt matching but applies it to every suffix position\. The SPAR gate selects targets by the short\-context likelihood and the full–short likelihood gap, so the agreement loss is concentrated where the suffix already contains enough evidence for prediction and avoids positions whose prediction can legitimately depend on the far prefix\.

This selection rule gives the largest average RULER gain for every model\. The ordering is strongest on Qwen2\.5\-0\.5B, Llama\-3\.2\-1B, and GPT2\-XL: SPAR reaches \+2\.15, \+3\.38, and \+3\.43 average gain, compared with \+0\.98, \+1\.56, and \+1\.55 for random gating\. Ungated KL is weaker across the same models\. The consistent ordering supports the main training mechanism: the useful anti\-interference signal comes from matching clean and corrupt\-prefix predictions at locally sufficient suffix positions\.

### Public Benchmark Transfer

Table[4](https://arxiv.org/html/2609.27925#Sx2.T4)evaluates from\-scratch pretrained decoder\-only Transformer base models on public zero\-shot benchmarks before instruction or QA fine\-tuning\. Multiple\-choice tasks use log\-probability scoring; Lambada uses final\-word exact accuracy\. SPAR improves the average score at all three scales, with gains concentrated on PIQA, HellaSwag, ARC, OpenBookQA, Lambada, and MMLU\.

### Evidence for Selective Context Dependence

The token\- and prompt\-level analyses localize the training effect behind the benchmark gains\. Gate\-region measurements identify the answer\-token region selected by the objective, and prompt\-level probes measure whether robustness improves in the intended local\-sufficiency regime\.

#### Where the objective acts\.

The frozen\-reference gate is conservative and concentrates on local\-sufficient answer positions \(Figure[3](https://arxiv.org/html/2609.27925#Sx4.F3)\)\. Table[7](https://arxiv.org/html/2609.27925#Sx5.T7)aggregates the same mask into selected and unselected regions\.

Table 7:Gate\-region aggregate for Figure[3](https://arxiv.org/html/2609.27925#Sx4.F3)\. Values are SPAR minus CE under the fixed\-reference mask;Δ\\DeltaSens\. is the change in corrupt–clean NLL gap\. CE denotes ordinary CLM training\.The selected region shows a much larger per\-token reduction than the unselected region: prefix JS falls by 0\.0049 versus 0\.0005, and sensitivity falls by 0\.0820 versus 0\.0040; the small clean\-view NLL increase \(\+0\.0186\) is paired with a larger corrupt\-view NLL decrease \(\-0\.0634\), matching the directional anchor in the invariance loss\. Because this mask is fixed by the CE reference before comparing models, CE and SPAR are evaluated on the same selected tokens\.

Figure[2](https://arxiv.org/html/2609.27925#Sx4.F2)lifts the same question from tokens to prompts\. Points in the right half indicate prompts where SPAR is less sensitive to irrelevant prefix changes than CE; points in the upper half indicate prompts where it better follows a changed answer\-bearing fact\. Gains concentrate in the upper\-right region, and evidence\-switch fixes substantially outnumber losses\. The prompt\-level pattern matches the gate\-region evidence: the training signal improves nuisance invariance while retaining responsiveness to answer\-changing evidence\.

### SPAR Strength Sensitivity

Qwen2\.5\-0\.5B varies the fraction of batches that carry SPAR supervision at fixedλinv=0\.004\\lambda\_\{\\mathrm\{inv\}\}=0\.004\. Table[5](https://arxiv.org/html/2609.27925#Sx4.T5)shows small gains at 10%–30%, followed by a broad high\-gain region at 50%–90%\. The largest gains appear at 8K–16K, matching the anti\-interference motivation\.

The auxiliary invariance signal has a useful moderate\-strength range\. Figure[4](https://arxiv.org/html/2609.27925#Sx5.F4)sweeps the invariance weight on Llama\-3\.2\-1B while holding the SPAR batch fraction fixed at 10%\. The gain rises asλinv\\lambda\_\{\\mathrm\{inv\}\}increases from 0\.008 to 0\.016, remains high near 0\.020, and then declines at larger weights\. The peak marks the useful strength range for the selective regularizer\.

![Refer to caption](https://arxiv.org/html/2609.27925v1/figures/llama1b_lambda_sweep.png)Figure 4:Llama\-3\.2\-1B invariance\-weight sweep at a fixed 10% SPAR batch fraction\. The macro RULER gain peaks at moderate strength\.

## Discussion

#### Selective anti\-interference\.

SPAR adds an explicit anti\-interference bias to pretraining: predictions that are locally supported should stay stable when irrelevant distant text changes\. The full–short log\-probability gap gives this principle a conditional\-dependence interpretation\. Low\-gap, locally predictable targets define the region in which invariance is desirable; high\-gap targets identify positions where the far prefix supplies predictive evidence\. The mechanism analyses connect this token\-level criterion to behavior: the gate identifies local sufficiency, and corrupt\-prefix sensitivity drops in the selected region\.

#### Why the gate matters\.

The local\-sufficiency gate makes the objective selective\. Its 0\.988 precision and 0\.008 far\-dependent false\-positive rate on the balanced answer\-token set indicate conservative selection\. The mechanism analyses show fewer target flips in the local\-sufficient regime, stronger selected\-region stability, and a broad reduction in gate\-targeted prefix sensitivity\. Together, these results support the intended behavior: lower irrelevant\-prefix dependence where the local suffix already supports the prediction\.

#### Relation to key\-token objectives\.

Key\-token objectives such as LongCE emphasize positions whose likelihood improves from long context\. SPAR acts on the complementary region identified by the full–short gap: locally sufficient targets where stable prediction under far\-prefix changes is the desired behavior\. This places anti\-interference training on a distinct axis from long\-context token upweighting\.

#### Objective\-level view\.

CLM supplies the pressure to exploit predictive context\. SPAR adds a selective pressure to damp irrelevant far\-prefix variation when the suffix already carries enough evidence\. The resulting training signal is local in where it acts and global in what it discourages: it does not suppress long\-range dependence uniformly, but only reduces sensitivity to far\-prefix changes at positions whose short\-context evidence is already sufficient\. This distinction matters for long\-context learning because useful evidence and nuisance text often occupy the same sequence\. This objective\-level signal explains the selected\-region sensitivity drop and the gains across pretraining and continued training on pretrained base models\.

## Conclusion

We presented Selective Prefix Anti\-Interference Regularization, a selective anti\-interference objective for causal LM pretraining\. A short\-context gate identifies locally sufficient targets and stabilizes them under far\-prefix corruption\. Mechanism analyses show conservative gate selection and lower selected\-region prefix sensitivity; benchmark results show gains across continued training on pretrained base models and from\-scratch pretraining\. Selective anti\-interference pretraining provides a direct objective\-level signal for robust context use\.

Robust context use depends on what a model learns to ignore as well as what it learns to retrieve\. SPAR adds this complementary signal without changing the model architecture or requiring task\-specific supervision\.

## References

- Baiet al\.\(2024\)Y\. Bai, X\. Lv, J\. Zhang, Y\. He, J\. Qi, L\. Hou, J\. Tang, Y\. Dong, and J\. LiLongalign: a recipe for long context alignment of large language models\.InFindings of the Association for Computational Linguistics: EMNLP 2024,pp\. 1376–1395\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1),[Training objectives for useful context dependence\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px3.p1.1)\.
- Baiet al\.\(2023\)Y\. Bai, X\. Lv, J\. Zhang, H\. Lyu, J\. Tang, Z\. Huang, Z\. Du, X\. Liu, A\. Zeng, L\. Hou,et al\.Longbench: a bilingual, multitask benchmark for long context understanding\.arXiv preprint arXiv:2308\.14508\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Baiet al\.\(2025a\)Y\. Bai, S\. Tu, J\. Zhang, H\. Peng, X\. Wang, X\. Lv, S\. Cao, J\. Xu, L\. Hou, Y\. Dong,et al\.Longbench v2: towards deeper understanding and reasoning on realistic long\-context multitasks\.InProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 3639–3664\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Baiet al\.\(2025b\)Y\. Bai, J\. Zhang, X\. Lv, L\. Zheng, S\. Zhu, L\. Hou, Y\. Dong, J\. Tang, and J\. LiLongwriter: unleashing 10,000\+ word generation from long context llms\.InInternational Conference on Learning Representations,Vol\.2025,pp\. 36528–36546\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1),[Training objectives for useful context dependence\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px3.p1.1)\.
- Beltagyet al\.\(2020\)I\. Beltagy, M\. E\. Peters, and A\. CohanLongformer: the long\-document transformer\.arXiv preprint arXiv:2004\.05150\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Chenet al\.\(2023a\)S\. Chen, S\. Wong, L\. Chen, and Y\. TianExtending context window of large language models via positional interpolation\.arXiv preprint arXiv:2306\.15595\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Chenet al\.\(2023b\)Y\. Chen, S\. Qian, H\. Tang, X\. Lai, Z\. Liu, S\. Han, and J\. JiaLonglora: efficient fine\-tuning of long\-context large language models\.arXiv preprint arXiv:2309\.12307\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Daiet al\.\(2019\)Z\. Dai, Z\. Yang, Y\. Yang, J\. Carbonell, Q\. V\. Le, and R\. SalakhutdinovTransformer\-xl: attentive language models beyond a fixed\-length context\.arXiv preprint arXiv:1901\.02860\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Daoet al\.\(2022\)T\. Dao, D\. Y\. Fu, S\. Ermon, A\. Rudra, and C\. RéFlashattention: fast and memory\-efficient exact attention with io\-awareness\.InAdvances in neural information processing systems,Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Dinget al\.\(2024\)Y\. Ding, L\. L\. Zhang, C\. Zhang, Y\. Xu, N\. Shang, J\. Xu, F\. Yang, and M\. YangLongrope: extending llm context window beyond 2 million tokens\.arXiv preprint arXiv:2402\.13753\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Donget al\.\(2024\)Z\. Dong, T\. Tang, J\. Li, W\. X\. Zhao, and J\. WenBamboo: a comprehensive benchmark for evaluating long text modeling capacities of large language models\.InProceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation \(LREC\-COLING 2024\),pp\. 2086–2099\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Fanget al\.\(2024\)L\. Fang, Y\. Wang, Z\. Liu, C\. Zhang, S\. Jegelka, J\. Gao, B\. Ding, and Y\. WangWhat is wrong with perplexity for long\-context language modeling?\.arXiv preprint arXiv:2410\.23771\.Cited by:[Training objectives for useful context dependence\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px3.p1.1)\.
- Hsiehet al\.\(2024\)C\. Hsieh, S\. Sun, S\. Kriman, S\. Acharya, D\. Rekesh, F\. Jia, Y\. Zhang, and B\. GinsburgRULER: what’s the real context size of your long\-context language models?\.arXiv preprint arXiv:2404\.06654\.Cited by:[Introduction](https://arxiv.org/html/2609.27925#Sx1.p1.1),[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1),[Benchmarks and metrics\.](https://arxiv.org/html/2609.27925#Sx4.SSx5.SSS0.Px3.p1.1)\.
- Kitaevet al\.\(2020\)N\. Kitaev, Ł\. Kaiser, and A\. LevskayaReformer: the efficient transformer\.arXiv preprint arXiv:2001\.04451\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Liet al\.\(2023\)J\. Li, M\. Wang, Z\. Zheng, and M\. ZhangLoogle: can long\-context language models understand long contexts?\.arXiv preprint arXiv:2311\.04939\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Liet al\.\(2024a\)M\. Li, S\. Zhang, T\. Zhang, H\. Duan, Y\. Liu, and K\. ChenNeedleBench: evaluating llm retrieval and reasoning across varying information densities\.arXiv preprint arXiv:2407\.11963\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Liet al\.\(2024b\)T\. Li, G\. Zhang, Q\. D\. Do, X\. Yue, and W\. ChenLong\-context llms struggle with long in\-context learning\.arXiv preprint arXiv:2404\.02060\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Liuet al\.\(2023\)N\. F\. Liu, K\. Lin, J\. Hewitt, A\. Paranjape, M\. Bevilacqua, F\. Petroni, and P\. LiangLost in the middle: how language models use long contexts\.arXiv preprint arXiv:2307\.03172\.Cited by:[Introduction](https://arxiv.org/html/2609.27925#Sx1.p1.1),[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1),[Irrelevant context, distractibility, and far\-prefix interference\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px4.p1.1)\.
- Miyatoet al\.\(2018\)T\. Miyato, S\. Maeda, M\. Koyama, and S\. IshiiVirtual adversarial training: a regularization method for supervised and semi\-supervised learning\.IEEE transactions on pattern analysis and machine intelligence41\(8\),pp\. 1979–1993\.Cited by:[Consistency and invariance training\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px5.p1.1)\.
- Modarressiet al\.\(2025\)A\. Modarressi, H\. Deilamsalehy, F\. Dernoncourt, T\. Bui, R\. A\. Rossi, S\. Yoon, and H\. SchützeNolima: long\-context evaluation beyond literal matching\.arXiv preprint arXiv:2502\.05167\.Cited by:[Introduction](https://arxiv.org/html/2609.27925#Sx1.p1.1),[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1),[Irrelevant context, distractibility, and far\-prefix interference\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px4.p1.1),[Benchmarks and metrics\.](https://arxiv.org/html/2609.27925#Sx4.SSx5.SSS0.Px3.p1.1)\.
- Penget al\.\(2023\)B\. Peng, J\. Quesnelle, H\. Fan, and E\. ShippoleYarn: efficient context window extension of large language models\.arXiv preprint arXiv:2309\.00071\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Presset al\.\(2021\)O\. Press, N\. A\. Smith, and M\. LewisTrain short, test long: attention with linear biases enables input length extrapolation\.arXiv preprint arXiv:2108\.12409\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Shahamet al\.\(2023\)U\. Shaham, M\. Ivgi, A\. Efrat, J\. Berant, and O\. LevyZeroSCROLLS: a zero\-shot benchmark for long text understanding\.InFindings of the Association for Computational Linguistics: EMNLP 2023,pp\. 7977–7989\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Shahamet al\.\(2022\)U\. Shaham, E\. Segal, M\. Ivgi, A\. Efrat, O\. Yoran, A\. Haviv, A\. Gupta, W\. Xiong, M\. Geva, J\. Berant,et al\.Scrolls: standardized comparison over long language sequences\.InProceedings of the 2022 Conference on Empirical Methods in Natural Language Processing,pp\. 12007–12021\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Shiet al\.\(2023\)F\. Shi, X\. Chen, K\. Misra, N\. Scales, D\. Dohan, E\. H\. Chi, N\. Schärli, and D\. ZhouLarge language models can be easily distracted by irrelevant context\.InInternational Conference on Machine Learning,pp\. 31210–31227\.Cited by:[Irrelevant context, distractibility, and far\-prefix interference\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px4.p1.1)\.
- Suet al\.\(2021\)J\. Su, Y\. Lu, S\. Pan, A\. Murtadha, B\. Wen, and Y\. LiuRoformer: enhanced transformer with rotary position embedding\.arXiv preprint arXiv:2104\.09864\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Tarvainen and Valpola \(2017\)A\. Tarvainen and H\. ValpolaMean teachers are better role models: weight\-averaged consistency targets improve semi\-supervised deep learning results\.Advances in neural information processing systems30\.Cited by:[Consistency and invariance training\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px5.p1.1)\.
- Wanget al\.\(2024\)M\. Wang, L\. Chen, F\. Cheng, S\. Liao, X\. Zhang, B\. Wu, H\. Yu, N\. Xu, L\. Zhang, R\. Luo,et al\.Leave no document behind: benchmarking long\-context llms with extended multi\-doc qa\.InProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing,pp\. 5627–5646\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Wuet al\.\(2021\)L\. Wu, J\. Li, Y\. Wang, Q\. Meng, T\. Qin, W\. Chen, M\. Zhang, T\. Liu,et al\.R\-drop: regularized dropout for neural networks\.Advances in neural information processing systems34,pp\. 10890–10905\.Cited by:[Consistency and invariance training\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px5.p1.1)\.
- Wuet al\.\(2024\)W\. Wu, Y\. Wang, Y\. Fu, X\. Yue, D\. Zhu, and S\. LiLong context alignment with short instructions and synthesized positions\.arXiv preprint arXiv:2405\.03939\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1),[Training objectives for useful context dependence\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px3.p1.1)\.
- Xiaoet al\.\(2024\)G\. Xiao, Y\. Tian, B\. Chen, S\. Han, and M\. LewisEfficient streaming language models with attention sinks\.InInternational Conference on Learning Representations,Vol\.2024,pp\. 21875–21895\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Xieet al\.\(2020\)Q\. Xie, Z\. Dai, E\. Hovy, T\. Luong, and Q\. LeUnsupervised data augmentation for consistency training\.Advances in neural information processing systems33,pp\. 6256–6268\.Cited by:[Consistency and invariance training\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px5.p1.1)\.
- Yenet al\.\(2024\)H\. Yen, T\. Gao, M\. Hou, K\. Ding, D\. Fleischer, P\. Izsak, M\. Wasserblat, and D\. ChenHelmet: how to evaluate long\-context language models effectively and thoroughly\.arXiv preprint arXiv:2410\.02694\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1),[Irrelevant context, distractibility, and far\-prefix interference\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px4.p1.1),[Benchmarks and metrics\.](https://arxiv.org/html/2609.27925#Sx4.SSx5.SSS0.Px3.p1.1)\.
- Zaheeret al\.\(2020\)M\. Zaheer, G\. Guruganesh, K\. A\. Dubey, J\. Ainslie, C\. Alberti, S\. Ontanon, P\. Pham, A\. Ravula, Q\. Wang, L\. Yang,et al\.Big bird: transformers for longer sequences\.Advances in neural information processing systems33,pp\. 17283–17297\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.
- Zhanget al\.\(2025\)J\. Zhang, Y\. Bai, X\. Lv, W\. Gu, D\. Liu, M\. Zou, S\. Cao, L\. Hou, Y\. Dong, L\. Feng,et al\.Longcite: enabling llms to generate fine\-grained citations in long\-context qa\.InFindings of the Association for Computational Linguistics: ACL 2025,pp\. 5098–5122\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1),[Training objectives for useful context dependence\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px3.p1.1)\.
- Zhanget al\.\(2024\)X\. Zhang, Y\. Chen, S\. Hu, Z\. Xu, J\. Chen, M\. Hao, X\. Han, Z\. Thai, S\. Wang, Z\. Liu,et al\.∞\\inftyBench: extending long context evaluation beyond 100k tokens\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 15262–15277\.Cited by:[Long\-context benchmarks reveal selective context\-use challenges\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px2.p1.1)\.
- Zhuet al\.\(2024\)D\. Zhu, N\. Yang, L\. Wang, Y\. Song, W\. Wu, F\. Wei, and S\. LiPose: efficient context window extension of llms via positional skip\-wise training\.InInternational Conference on Learning Representations,Vol\.2024,pp\. 18940–18954\.Cited by:[Making longer context computable\.](https://arxiv.org/html/2609.27925#Sx2.SS0.SSS0.Px1.p1.1)\.

相似文章

通过干预后训练语音基础模型学习任务特定子空间

arXiv cs.CL

本文提出了一种利用干预对比学习的后训练优化方法,将语音基础模型的表示解耦为独立的内容和说话人子空间。该方法在域外说话人验证任务上表现出更优性能,并提供了成功分离的证据。