|
Download README.md from jsjs424/Integral-DeltaNet: direct link, hf CLI and curl.
- Browser
- Download file 3.32 kB
-
https://huggingface.co/jsjs424/Integral-DeltaNet/resolve/main/README.md
- Command line
-
hf download hf://jsjs424/Integral-DeltaNet/README.md
-
curl -L -o README.md https://huggingface.co/jsjs424/Integral-DeltaNet/resolve/main/README.md
3.32 kB
| 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} | |
| } | |
| ``` | |