arXiv cs.AI· Wu S. Zihan, Brian A. Yuan, Guillaume Bellec·· 12 小时前AI 评分31
面向 Transformer 的内存高效训练:用局部代理网络估计梯度
Local proxies for memory-efficient training
AI 导读
研究者提出为每个 Transformer block 训练一个局部代理网络,通过知识蒸馏预测全局网络输出,使梯度可独立回传,从而避免存储全部激活值。理论上该方法在深层线性网络中精确,在非线性残差模型中梯度误差可被界定;在 CIFAR-100 上的 vision transformer 实验中取得优于其他局部算法的精度/内存权衡。
正文 · 原文
Abstract:Local learning algorithms can reshape resource requirements of artificial intelligence. The memory bottleneck of standard end-to-end backpropagation lies in the need to store all network activations until the loss gradient has been propagated back through. Local learning avoids this, but typically at a cost in accuracy. We study how to achieve accurate and memory efficient local learning in transformers. For each transformer block, we train a local proxy network to predict the global network output via distillation. Gradients can be independently propagated through this local proxy while estimating well the backpropagation gradients. In theory, this approach is exact for deep linear networks; in non-linear residual models, the gradient error can be bounded when using the appropriate residual proxy. We verify this numerically and demonstrate that optimizing the distillation loss improves gradient estimation. Evaluating the performance of proxy propagation on CIFAR-100 in vision transformers, we find that it achieves a better accuracy/memory trade-off compared to other local algorithms. Finally, we show that the method is further relevant for fine-tuning large language models on a small memory budget. Our method trains faster and achieves higher performance than memory-efficient zeroth-order learning algorithms with comparable memory cost.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.23145 [cs.LG] |
| (or arXiv:2610.23145v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.23145 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Zihan Wu [view email]
[v1]
Fri, 16 Oct 2026 08:41:25 UTC (182 KB)
来源:arXiv cs.AI · arxiv.org