Saved in:
Bibliographic Details
Main Authors: Xu, Longhuan, Chen, Cunjian, Yin, Feng
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2602.09719
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908826084573184
author Xu, Longhuan
Chen, Cunjian
Yin, Feng
author_facet Xu, Longhuan
Chen, Cunjian
Yin, Feng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2602_09719
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Unsupervised Layer-Wise Dynamic Test Time Adaptation for LLMs
Xu, Longhuan
Chen, Cunjian
Yin, Feng
Computation and Language
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.
title Unsupervised Layer-Wise Dynamic Test Time Adaptation for LLMs
topic Computation and Language
url https://arxiv.org/abs/2602.09719