Modern language models operate on subword-tokenized text in order to make a trade-off between model size, inference speed, and vocabulary coverage. A side effect of this is that, during inference, models are evaluated by measuring the probability of only the specific tokenization produced as the output, despite there being many possible ways to represent the same text with a subword vocabulary. Recent studies have argued instead for evaluating LLMs by marginalization - the probability mass of all tokenizations of a given text.
Marginalization is difficult due to the number of possible tokenizations of a text, so often approximate marginalization is done via sampling. However, a downside of sampling is that an expensive generation step must be performed by the LLM for each sample, which limits the number of samples that can be acquired given a runtime budget, and therefore also the accuracy of the approximation. Since computing the probability of a sequence given the tokenization is relatively cheap compared to actually generating it, we investigate sampling strategies that are decoding-free - they require no generation from the LLM, instead relying entirely on extremely cheap sampling strategies that are model and tokenizer agnostic.
We investigate the approximation quality and speed of decoding-free sampling strategies for a number of open models to find that they provide sufficiently accurate marginal estimates at a small fraction of the runtime cost and demonstrate its use on a set of downstream inference tasks.
How Sampling Affects the Detectability of Machine-written texts: A Comprehensive Study
Sorbonne Université, CNRS, ISIR, Paris France(索邦大学、国家科学研究中心、ISIR、巴黎法国);CNRS, International Laboratory on Learning Systems, Montréal, Canada(国家科学研究中心、学习系统国际实验室、蒙特利尔加拿大);Mila - Québec AI Institute, Montréal, Canada(魁北克AI研究所、蒙特利尔加拿大);CentraleSupélec, Université Paris-Saclay, Gif-sur-Yvette, France(CentraleSupélec、巴黎萨克雷大学、吉夫-sur-伊夫特法国)
Impact of Decoding Methods on Human Alignment of Conversational LLMs
Birla Institute of Technology and Science, Pilani(比拉理工与科学学院(皮拉尼));National University of Singapore(新加坡国立大学);NUS Center for Trusted Internet and Community(新加坡国立大学可信互联网与社区中心);Department of Communications and New Media, National University of Singapore(新加坡国立大学传播与新媒体系)
本文研究了Beam Search、Top K Sampling和Nucleus Sampling等解码方法对LLM与人类对话对齐的影响,提出了内容、风格和心理测量导向的新衡量标准,发现较少beam数和较低P值对齐效果更好,且任务导向与开放式数据集表现不同。
$ϕ$-Decoding: Adaptive Foresight Sampling for Balanced Inference-Time Exploration and Exploitation
Shanghai AI Lab(上海人工智能实验室);Xi’an Jiaotong University(西安交通大学);The University of Hong Kong(香港大学);Peking University(北京大学);National University of Singapore(新加坡国立大学)
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络与信息安全学院)
RheoSampling: Resolving the One-Hot Dilemma in Stochastic Dynamic-Tree Speculative Decoding
National Center for Mathematics and Interdisciplinary Sciences (NCMIS), AMSS, CAS(中国科学院数学与系统科学研究院国家数学与交叉科学中心);The University of Tokyo(东京大学);SKLMS and AMSS, Chinese Academy of Sciences(中国科学院数学与系统科学研究院,科学与工程计算国家重点实验室);School of Mathematical Sciences, University of Chinese Academy of Sciences(中国科学院大学数学科学学院);Lenovo AI Technology Center(联想AI技术中心)
Let it Calm: Exploratory Annealed Decoding for Verifiable Reinforcement Learning
Department of Computer Science, University of Chicago(芝加哥大学计算机科学系);Department of Statistics, University of Chicago(芝加哥大学统计系);Toyota Technological Insitute at Chicago(芝加哥丰田技术研究所);Data Science Institute, University of Chicago(芝加哥大学数据科学研究所);Meta AI
Multi-Personality Generation of LLMs at Decoding-time
Institute of Computing Technology, Chinese Academy of Sciences University of Chinese Academy of Sciences(中国科学院计算技术研究所 中国科学院大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
Breaking the Likelihood Trap: Variance-Calibrated Modulation for Large Language Model Decoding
School of Computer and Information Engineering, Henan University(河南大学计算机与信息工程学院);Department of Statistics, LMU Munich(慕尼黑大学统计系);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)
Integrative Decoding: Improve Factuality via Implicit Self-consistency
The Hong Kong Polytechnic University(香港理工大学);Tsinghua University(清华大学);Microsoft Research(微软研究院);Microsoft Azure AI(微软Azure人工智能);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)