English

Test-Time Alignment of LLMs via Sampling-Based Optimal Control in pre-logit space

Machine Learning 2026-02-13 v2 Artificial Intelligence

Abstract

Test-time alignment of large language models (LLMs) attracts attention because fine-tuning LLMs requires high computational costs. In this paper, we propose a new test-time alignment method called adaptive importance sampling on pre-logits (AISP) on the basis of the sampling-based model predictive control with the stochastic control input. AISP applies the Gaussian perturbation into pre-logits, which are outputs of the penultimate layer, so as to maximize expected rewards with respect to the mean of the perturbation. We demonstrate that the optimal mean is obtained by importance sampling with sampled rewards. AISP outperforms best-of-n sampling in terms of rewards over the number of used samples and achieves higher rewards than other reward-based test-time alignment methods.

Keywords

Cite

@article{arxiv.2510.26219,
  title  = {Test-Time Alignment of LLMs via Sampling-Based Optimal Control in pre-logit space},
  author = {Sekitoshi Kanai and Tsukasa Yoshida and Hiroshi Takahashi and Haru Kuroki and Kazumune Hashimoto},
  journal= {arXiv preprint arXiv:2510.26219},
  year   = {2026}
}

Comments

21 pages, 8 figures

R2 v1 2026-07-01T07:13:21.574Z