LiFT: 通过线性规划进行局部搜索以实现过拟合可控的Transformer
LiFT: Local Search via Linear Programming for Overfitting-Controlled Transformers
AI总结:
提出基于线性规划的局部搜索框架,通过双层优化联合更新模型参数和正则化超参数,利用验证梯度和Hessian信息构造局部下降方向,在保持训练最优性的同时减少过拟合,实验表明在GPT-2 Small微调中持续改善测试困惑度。
摘要:
本文提出了一种基于线性规划(LP)的局部搜索框架,用于微调预训练Transformer模型,并显式控制过拟合。该方法将Transformer微调表述为一个基于双层优化的正则化问题,其中模型参数和正则化超参数被联合更新。利用初始热身迭代期间收集的信息,包括验证梯度和训练Hessian信息,通过求解一个线性规划来构造局部下降方向,该方向在保持训练最优性的同时最小化缩放的方向导数。这种验证感知的下降方向能够对参数和正则化超参数进行聚焦的局部更新,从而在不需重复完整再训练周期的情况下减少过拟合。由此产生的方法称为基于线性规划的Transformer微调(LiFT),它通过系统识别任务特定的更新,而非依赖启发式或网格搜索的超参数选择,从而区别于传统微调。在WikiText-2上微调GPT-2 Small的实验表明,LiFT通过选择性调整Transformer块和正则化参数实现了有效的适应,在多种层配置和正则化设置下持续改善测试困惑度,尤其在易过拟合场景中增益显著。除了实证性能,LiFT还在Transformer微调、双层优化、局部搜索和正则化理论之间建立了原则性的联系。
英文摘要:
This paper proposes a Linear Programming (LP)-based local search framework for fine-tuning pretrained transformer models with explicit control against overfitting. The approach formulates transformer fine-tuning as a bilevel optimization-based regularization problem, in which model parameters and regularization hyperparameters are jointly updated. Information collected during initial warm-up iterations, including validation gradients and training Hessian information, is used to construct a local descent direction by solving an LP that minimizes a scaled directional derivative while preserving training optimality. This validation-aware descent direction enables focused local updates of both parameters and regularization hyperparameters, reducing overfitting without requiring repeated full retraining cycles. The resulting method, termed Linear Programming-based Fine-Tuning (LiFT) for transformers, differs from conventional fine-tuning by systematically identifying task-specific updates rather than relying on heuristic or grid-based hyperparameter selection. Experiments on GPT-2 Small fine-tuned on WikiText-2 demonstrate that LiFT enables effective adaptation through selective tuning of transformer blocks and regularization parameters, yielding consistent improvements in test perplexity across multiple layer configurations and regularization settings, with particularly pronounced gains in overfitting-prone scenarios. Beyond empirical performance, LiFT establishes a principled connection between transformer fine-tuning, bilevel optimization, local search, and regularization theory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。