SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.18855 · 2026

Delta Attention Residuals

Junjie Hu, Cheng Luo, Zefan Cai

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.18855.json · badge: /api/ran/2605.18855.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wdlctc/delta-attention-residuals-code community
Papers with Code archive
2 ran · 1 no recorded run
FunctionStatusWhere it lives
_delta_attn_res_kernel Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wdlctc/delta-attention-residuals-code/Attention-Residuals/modeling_qwen3_attnres.py
pointer only (licence: NONE) · get_code("089fdfe024fdd0bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wdlctc/delta-attention-residuals-code when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_delta_attn_res_kernel_with_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wdlctc/delta-attention-residuals-code/Attention-Residuals/modeling_qwen3_attnres.py
pointer only (licence: NONE) · get_code("32122d4ce086f761")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wdlctc/delta-attention-residuals-code when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

delta_attn_res Not yet run
unverified (harvested, no recorded run)
wdlctc/delta-attention-residuals-code/Attention-Residuals/modeling_qwen3_attnres.py
pointer only (licence: NONE) · get_code("24e6ce1c84c494ea")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wdlctc/delta-attention-residuals-code when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Attention Residuals replace standard additive residual connections with learned softmax attention over previous layer outputs, enabling selective cross-layer routing. However, standard Attention Residuals still attend over cumulative hidden states in previous layers, which are highly redundant. We show that this redundancy leads to routing collapse in deeper layers: attention weights become lowcontrast and closer to uniform (max weight ≈0.2), limiting the model's ability to select informative states in previous layers. This raises a key but underexplored design question: what layer-wise representations should be routed in Attention Residuals? To answer this question, we propose Delta Attention Residuals, which attend over deltas-the change introduced by each sublayer (v i = h i+1 -h i )-instead of cumulative states. Delta representations are structurally diverse and yield higher-contrast attention distributions (max weight ≈0.6), enabling more selective and effective routing across layers. This principle applies at both per-sublayer and block granularity. Across all tested scales (220M-7.6B), Delta Attention Residuals consistently outperform both standard residuals and Attention Residuals, with 1.7-8.2% validation perplexity gains. Delta Attention Residuals also enables converting pretrained checkpoints into Delta Attention Residuals via standard fine-tuning. Code is available at https://github.com/wdlctc/delta-attention-residuals-code.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.18855")
get_code_for_paper("2605.18855")
have("2605.18855")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.18855.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.18855.svg)](https://syntology.ai/paper/2605.18855)

Connect an agent — have() is free.