Text Generation
English
linear-attention
deltanet
Integral-DeltaNet / README.md
jsjs424's picture
Add arXiv link
3b447b3 verified
|
Raw History Blame Contribute Delete
3.32 kB
metadata
license: mit
pipeline_tag: text-generation
datasets:
  - HuggingFaceFW/fineweb-edu
language:
  - en
tags:
  - linear-attention
  - deltanet

Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration

Official checkpoints of Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration.

Junsoo Oh, Jihun Yun, Junhyuck Kim, Hanbaek Lyu

Paper: arXiv:2611.32063 Β· Code: junsoo424/Integral-DeltaNet

Integral DeltaNet: an integral state accumulates a weighted history of delta states, and a gated readout combines both

Linear attention compresses the past into a fixed-size state, which causes memory collisions. Delta-rule updates and gating reduce them, but they can also discard information that a later query still needs. Integral DeltaNet uses two states operating at different timescales: a fast delta state StS_t, updated using an expressive linear-attention rule such as KDA or GDN-2, and a slow integral state XtX_t, which maintains a channel-wise weighted history of past delta states. The model adaptively combines the two states at readout:

Xt=St Diag(Ξ»t)+Xtβˆ’1 Diag(1βˆ’Ξ»t),ot=St(Ξ³tβŠ™qt)+Xt((1βˆ’Ξ³t)βŠ™qt)X_t = S_t\,\mathrm{Diag}(\lambda_t) + X_{t-1}\,\mathrm{Diag}(1-\lambda_t), \qquad o_t = S_t(\gamma_t \odot q_t) + X_t\big((1-\gamma_t) \odot q_t\big)

Here oto_t is the layer output for the query qtq_t. The integration rate Ξ»t\lambda_t and the readout gate Ξ³t\gamma_t are per-channel gates computed from the input.

Checkpoints

Model 340M (15B tokens) 1.3B (100B tokens)
Integral KDA integral-kda-340m.pt integral-kda-1.3b.pt
Integral GDN-2 integral-gdn2-340m.pt integral-gdn2-1.3b.pt
KDA kda-340m.pt kda-1.3b.pt
GDN-2 gdn2-340m.pt gdn2-1.3b.pt

All models are trained from scratch on FineWeb-Edu with the Llama 2 tokenizer and a 4K context. Each Integral model matches its backbone in non-embedding parameters.

  • configs/models/<name>.yaml: the architecture of <name>.pt. The same config is stored in the file under "model_config".
  • configs/training/340m.yaml, configs/training/1.3b.yaml: the training recipes (AdamW, 0.5M-token batches, cosine decay from 4e-4 to 4e-5, 8 GPUs).

Each file holds bf16 weights. Load one with the code from GitHub:

import torch
from huggingface_hub import hf_hub_download
from integral_deltanet.model import CausalLM

payload = torch.load(hf_hub_download("jsjs424/Integral-DeltaNet", "integral-kda-1.3b.pt"),
                     map_location="cpu", weights_only=True)
model = CausalLM(payload["model_config"])
model.load_state_dict(payload["model"])

Citation

@article{oh2026integral,
  title   = {Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration},
  author  = {Oh, Junsoo and Yun, Jihun and Kim, Junhyuck and Lyu, Hanbaek},
  journal = {arXiv preprint arXiv:2611.32063},
  year    = {2026}
}