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

LLMdoctor: 基于令牌级流引导的偏好优化用于大语言模型高效测试时间对齐

LLMdoctor: Token-Level Flow-Guided Preference Optimization for Efficient Test-Time Alignment of Large Language Models

Tiesunlong Shen, Rui Mao, Jin Wang, Heming Sun, Jian Zhang, Xuejie Zhang, Erik Cambria

AI总结:

LLMdoctor通过令牌级流引导偏好优化,实现高效的大语言模型测试时间对齐,提升对齐精度并保留生成多样性。

摘要:

将大型语言模型(LLMs)与人类偏好对齐至关重要,但传统微调方法计算成本高且缺乏灵活性。尽管测试时间对齐提供了一个有前途的替代方案,但现有方法往往依赖于扭曲的轨迹级信号或低效的采样,从根本上限制了性能,并未能保留基础模型的生成多样性。本文介绍了一种新的高效测试时间对齐框架LLMdoctor,其通过患者-医生范式运作。它整合了令牌级奖励获取与令牌级流引导偏好优化(TFPO),以引导一个大型、冻结的患者LLM与一个较小的专门化医生模型。与传统方法依赖轨迹级奖励不同,LLMdoctor首先从患者模型的行为变化中提取细粒度的令牌级偏好信号。这些信号随后通过TFPO指导医生模型的训练,从而在所有子轨迹上建立流一致性,实现精确的令牌级对齐,同时内在地保留生成多样性。大量实验表明,LLMdoctor显著优于现有测试时间对齐方法,甚至超过了全微调方法如DPO的性能。

英文摘要:

Aligning Large Language Models (LLMs) with human preferences is critical, yet traditional fine-tuning methods are computationally expensive and inflexible. While test-time alignment offers a promising alternative, existing approaches often rely on distorted trajectory-level signals or inefficient sampling, fundamentally capping performance and failing to preserve the generative diversity of the base model. This paper introduces LLMdoctor, a novel framework for efficient test-time alignment that operates via a patient-doctor paradigm. It integrates token-level reward acquisition with token-level flow-guided preference optimization (TFPO) to steer a large, frozen patient LLM with a smaller, specialized doctor model. Unlike conventional methods that rely on trajectory-level rewards, LLMdoctor first extracts fine-grained, token-level preference signals from the patient model's behavioral variations. These signals then guide the training of the doctor model via TFPO, which establishes flow consistency across all subtrajectories, enabling precise token-by-token alignment while inherently preserving generation diversity. Extensive experiments demonstrate that LLMdoctor significantly outperforms existing test-time alignment methods and even surpasses the performance of full fine-tuning approaches like DPO.

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

↑