Text Generation
English
linear-attention
deltanet
File size: 3,317 Bytes
9cbcf1a
 
 
 
 
 
 
 
 
 
 
 
 
 
3b447b3
 
9cbcf1a
 
 
 
3b447b3
9cbcf1a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3b447b3
9cbcf1a
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
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**](https://arxiv.org/abs/2611.32063).

[Junsoo Oh](https://junsoo424.github.io/), [Jihun Yun](https://abcdxyzpqrst.github.io/),
[Junhyuck Kim](https://jhyuckkim.github.io/), [Hanbaek Lyu](https://www.hanbaeklyu.com/)

Paper: [arXiv:2611.32063](https://arxiv.org/abs/2611.32063) · Code: [junsoo424/Integral-DeltaNet](https://github.com/junsoo424/Integral-DeltaNet)

<p align="center">
  <img src="https://huggingface.co/jsjs424/Integral-DeltaNet/resolve/main/assets/integral_deltanet.png" width="85%" alt="Integral DeltaNet: an integral state accumulates a weighted history of delta states, and a gated readout combines both">
</p>

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** \\(S_t\\),
updated using an expressive linear-attention rule such as KDA or GDN-2, and a
slow **integral state** \\(X_t\\), which maintains a channel-wise weighted
history of past delta states. The model adaptively combines the two states at
readout:

$$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 \\(o_t\\) is the layer output for the query \\(q_t\\). The integration
rate \\(\lambda_t\\) and the readout gate \\(\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:

```python
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

```bibtex
@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}
}
```