arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.40111cs.CL
收藏

反向传播的位置很重要:用于内存高效微调的Token假设

Where You Backpropagate Matters: Token Hypothesis for Memory-Efficient Fine-Tuning

Meta;University of Central Florida(中佛罗里达大学)

Md Kowsher, Chen Chen

AI总结:

该研究提出Token假设,仅通过小部分位置反向传播实现内存高效微调,在多任务、多模型上性能优于或相当于全序列微调,且可与LoRA、DoRA兼容。

摘要:

对大型Transformer进行微调时,梯度会通过每个Token位置传播,由此产生的激活内存成本随序列长度线性缩放,且占据GPU预算的主要部分。现有高效方法主要减少参数侧(如低秩适配器LoRA、前缀调优、权重分解更新),但未触及激活内存占用。本文提出Token假设,这是一种受神经正切核(Neural Tangent Kernel)分析启发的内存高效微调流程,该分析探究了微调信号在Token位置间的分布方式。我们证明:每个位置都是低维容量瓶颈,其宽度不随模型增大;在双向模型中,隐藏状态几何对齐的位置可互换;在因果模型中,位置形成单调容量链,后续位置严格优于先前位置。该分析得出一个经假设限定的准则,仅用前向传播可计算的量即可确定所需位置的数量及具体位置:在双向模型中,当逐位置核对齐时,任意小的位置子集即可满足需求;在因果模型中,后续位置承载最丰富的微调信号。由此产生的流程仅通过小部分位置反向传播,其余位置则运行完整前向传播。实验表明,在六个任务家族(常识推理、数学推理、视觉问答、视频问答、GLUE、图像分类)和五个骨干网络(涵盖双向和因果架构)的几乎所有设置中,该方法的性能与全序列微调相当或更优。它大幅降低了激活内存,在视觉问答任务上总GPU内存降低约19%(约31GB),同时精度超过全序列微调,且可与LoRA和DoRA无缝组合。

英文摘要:

Fine-tuning large transformers routes gradients through every token position, paying the cost in activation memory that scales linearly with sequence length and dominates the GPU budget. Existing efficient methods reduce the parameter side (low-rank adapters, prefix tuning, weight-decomposed updates) but leave the activation footprint untouched. We present the Token Hypothesis, a memory-efficient fine-tuning procedure motivated by a Neural Tangent Kernel analysis of how fine-tuning signal is distributed across token positions. We prove that every position is a low-dimensional capacity bottleneck whose width does not grow with the model, that positions with aligned hidden-state geometry are interchangeable in bidirectional models, and that causal positions form a monotone capacity chain in which later positions strictly dominate earlier ones. The analysis yields an assumption-qualified criterion for how many positions are needed and which ones, using quantities computable from forward passes alone: in bidirectional models, small arbitrary subsets are predicted to suffice when position-wise kernels are aligned, while in causal models, later positions are predicted to carry the richest fine-tuning signal. The resulting procedure backpropagates through only a small subset of positions while running the full forward pass over the rest. Empirically, it matches or exceeds full-sequence fine-tuning in nearly all settings across six task families (commonsense reasoning, mathematical reasoning, visual question answering, video question answering, GLUE, and image classification) and five backbones spanning bidirectional and causal architectures. It substantially reduces activation memory, yielding up to about 19% lower total GPU memory (about 31 GB) on visual question answering while exceeding full-sequence accuracy, and composes cleanly with LoRA and DoRA.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑