Naju:独立控制保留与写入的原生离散 SSM¶
Fidelity: 核心机制复现。真实执行 native-discrete selective recurrence 的完整 block;缩小模型与预训练预算。
论文信息¶
| 项目 | 内容 |
|---|---|
| 论文链接 | arXiv 2607.21000 |
| 公司/机构 | Independent researchers |
| 首次公开日期 | 2026-07-23(arXiv v1) |
| 原文开源代码 | 否:论文未提供官方/作者代码(核查日期:2026-08-09) |
| Adapter | naju |
| 本地复现代码 | src/auto_research/reproductions/naju/ |
原始论文总结¶
背景与主要改动¶
Mamba 从连续时间系统离散化得到转移,单一耦合门也容易形成“强保留就难写入”的约束。Naju 直接参数化离散 pole,将 retain gate 和 write gate 分开,并保留 token-dependent \(B/C\) 方向、短程因果卷积、直接 feedthrough 与输出调制。
flowchart LR
U["normalized token"] --> P["input projection"]
P --> C["causal depthwise conv + SiLU"]
C --> F["forget gate f"]
C --> I["write gate i"]
C --> BC["token-dependent B/C"]
F --> S["native-discrete state scan"]
I --> S
BC --> S
S --> R["readout + feedthrough"]
P --> G["SiLU output modulation"]
R --> O["output projection + residual"]
G --> O
原论文关键图¶
原论文 Figure 1(关键图):展示原论文的训练流程与关键优化环节。图片来自原论文,版权归原作者所有;点击图片可查看来源。
核心公式¶
实现采用论文 preserve-first 初始化:forget_bias=5、write_bias=-2。
论文离线与线上效果¶
论文同 1.2B-token WikiText-103 预算下 Naju PPL 26.20±0.17,Mamba-2 28.31±0.17;长度 2048 的 retention/overwrite 诊断为 0.99/0.89。纯 LLM 论文不适用线上 A/B 门槛。
本地复现¶
本地对照口径:基线为同 token、optimizer、70 steps 的 96-d、3-layer Transformer;Naju PPL 从
324.930变为408.342,相对+25.67%(变差)。
训练后 retain/write 均值为 0.993/0.125,证明 preserve-first 门值被正确执行;但短预算 WikiText-2 没有迁移论文收益。稳定指标见 metrics/wikitext-2-seed42.json。
复现边界¶
Python sequential recurrence 与论文 affine scan 数学等价,但没有作者 fused parallel kernel。未复跑 1.2B-token WikiText-103、Mamba/Mamba-2/xLSTM 和完整 LRA/MQAR;本地负结果只适用于当前规模。
