arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.09719cs.CL
收藏

无监督分层动态测试时间适应用于大语言模型

Unsupervised Layer-Wise Dynamic Test Time Adaptation for LLMs

Southeast University-Monash University Joint Graduate School(东南大学-墨尔本大学联合研究生院);Southeast University(东南大学);Monash University(墨尔本大学)

Longhuan Xu, Cunjian Chen, Feng Yin

AI总结:

本文提出分层动态测试时间适应方法,通过动态调节TTA强度提升LLM在无监督样本特定场景下的稳定性和性能。

摘要:

测试时间适应(TTA)用于大语言模型(LLMs)在部署时使用可用的信号更新模型参数。本文关注一个常见但研究不足的领域:无监督的样本特定TTA,其中模型独立地为每个提示进行适应,仅使用提示本身,而没有黄金答案或外部监督。尽管有吸引力,使用固定的手工制定学习率的简单无监督TTA可能会不稳定:更新可能会过度拟合提示特定的统计信息,偏离期望的答案分布,最终降低生成质量。这种失败模式并不令人意外,因为在这种情况下,TTA必须在仅几个梯度步骤内适应一个提示,不像标准训练那样在大规模数据集上平均更新并具有长优化时间 horizon。因此,我们提出了分层动态测试时间适应,这是一个框架,它明确地将TTA的强度作为提示表示、LLM结构和适应步骤函数来调节。在我们的设置中,TTA更新仅LoRA参数,一个轻量级的超网络预测每层、每步的学习率乘数,从而实现细粒度控制。在各种数据集和LLMs上的实验一致表明,我们的方法通过在适应步骤和Transformer层投影上学习有效的缩放模式,显著增强了TTA,提高了稳定性的同时提供了更好的性能。

英文摘要:

Test-time adaptation (TTA) for large language models (LLMs) updates model parameters at inference time using signals available at deployment. This paper focuses on a common yet under-explored regime: unsupervised, sample-specific TTA, where the model adapts independently for each prompt using only the prompt itself, without gold answers or external supervision. Although appealing, naive unsupervised TTA with a fixed, handcrafted learning rate can be unstable: updates may overfit to prompt-specific statistics, drift from the desired answer distribution, and ultimately degrade generation quality. This failure mode is not surprising, as in this case TTA must adapt to a single prompt within only a few gradient steps, unlike standard training that averages updates over large datasets and long optimization horizons. Therefore, we propose layer-wise dynamic test-time adaptation, a framework which explicitly modulates TTA strength as a function of prompt representation, LLM structure and adaptation step. In our setting, TTA updates only LoRA parameters, and a lightweight hypernetwork predicts per-layer, per-step learning-rate multipliers, enabling fine-grained control. Experiments across various datasets and LLMs consistently show that our method substantially strengthens TTA by learning effective scaling patterns over adaptation steps and transformer layer projections, improving stability while delivering better performance.

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

↑