在语言模型解码过程中,已知使用较高温度采样能产生更具创造性的回答,而较低温度在事实准确性上表现更好。然而,此类模型通常被应用于通用指令遵循场景,该场景同时包含创造性任务和事实查询任务,但在所有样本和词元上均使用单一固定温度。在本研究中,我们引入了Adaptive Decoding(自适应解码),这是一个添加到模型中的层,用于在推理时在词元或样本级别动态选择采样温度,以优化性能。为了学习其参数,我们提出了Latent Preference Optimization(LPO,潜在偏好优化),这是一种训练离散潜变量(如温度选择)的通用方法。我们的方法在需要不同温度的一系列任务上优于所有固定解码温度,包括UltraFeedback、Creative Story Writing和GSM8K。
英文摘要:
During language model decoding, it is known that using higher temperature sampling gives more creative responses, while lower temperatures are more factually accurate. However, such models are commonly applied to general instruction following, which involves both creative and fact seeking tasks, using a single fixed temperature across all examples and tokens. In this work, we introduce Adaptive Decoding, a layer added to the model to select the sampling temperature dynamically at inference time, at either the token or example level, in order to optimize performance. To learn its parameters we introduce Latent Preference Optimization (LPO) a general approach to train discrete latent variables such as choices of temperature. Our method outperforms all fixed decoding temperatures across a range of tasks that require different temperatures, including UltraFeedback, Creative Story Writing, and GSM8K.
Latent Preference Coding: Aligning Large Language Models via Discrete Latent Codes
Antiquus S. Hippocampus, Natalia Cerebro & Amelie P. Amygdale Department of Computer Science Cranberry-Lemon University Pittsburgh, PA 15213, USA(计算机科学系, Cranberry-Lemon 大学);Ji Q. Ren & Yevgeny LeNet Department of Computational Neuroscience University of the Witwatersrand Joburg, South Africa(计算神经科学系, 威特沃特斯兰大学)
Limited Preference Data? Learning Better Reward Model with Latent Space Synthesis
Department of Computer Sciences, University of Wisconsin-Madison(威斯康星大学麦迪逊分校计算机科学系);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算机科学与数据科学学院)
Shallow Preference Signals: Large Language Model Aligns Even Better with Truncated Data?
IIIS, Tsinghua University(清华大学信息学院);AI Lab, Princeton University(普林斯顿大学人工智能实验室);Department of Computer Science & Engineering, University of Michigan(密歇根大学计算机科学与工程系)
Task-Aware Calibration: Provably Optimal Decoding in LLMs
School of Computation, Information & Technology, Technical University of Munich(慕尼黑技术大学计算、信息与技术学院);Munich Data Science Institute(慕尼黑数据科学研究所);Munich Center for Machine Learning(慕尼黑机器学习中心);University of Amsterdam(阿姆斯特丹大学)
Pair-In, Pair-Out: Latent Multi-Token Prediction for Efficient LLMs
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学首都人工智能学院);AI Platform, Xiaohongshu Inc.(小红书人工智能平台);University of Electronic Science and Technology of China(电子科技大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)
Latent Refinement Decoding: Enhancing Diffusion-Based Language Models by Refining Belief States
King’s College London(伦敦国王学院);The Alan Turing Institute(艾伦·图灵研究所);Centre for AI, Data Science & Artificial Intelligence, BioPharmaceuticals R&D, AstraZeneca(人工智能、数据科学与人工智能研究中心,生物制药研发,阿斯利康);The Chinese University of Hong Kong(香港中文大学);MoE Lab, CUHK(CUHK MoE实验室)
Generative Sentiment Analysis via Latent Category Distribution and Constrained Decoding
School of Cyber Science and Engineering, Wuhan University(武汉大学网络科学与工程学院);Beijing Rigour Technology Co., Ltd.(北京睿格科技有限公司);School of Cyberspace, Hangzhou Dianzi University(杭州电子科技大学网络空间学院);North China Power Engineering Co., Ltd. of China Power Engineering Consulting Group(中国电力工程顾问集团华北电力工程有限公司)
Restoring Exploration after Post-Training: Latent Exploration Decoding for Large Reasoning Models
Gaoling School of Artificial Intelligence, Renmin University of China, Beijing, China(中国人民大学北京校区人工智能学院);MiLM Plus, Xiaomi Inc., Beijing, China(小米公司北京MiLM Plus团队);University of Modena and Reggio Emilia(莫德纳和雷吉奥艾米莉亚大学);University of Pisa, Italy(比萨大学)