Language model (LM) decoding is based on the next-token prediction (NTP) probability distribution. For neural LMs (e.g., Transformer-based), NTP distribution is essentially a softmax-regularized dot product between an encoded input context (query) and fixed vocabulary representations (keys). In this paper, we study the effect of the key distribution on the NTP distribution, with a focus on whether the similarity between keys will trigger spurious correlations in NTP. Through knowledge-probing tasks, we show that in the NTP distribution, the few top-ranked tokens are typically accurate. However, the middle-ranked prediction is highly biased towards the tokens that are distributionally (not necessarily semantically) similar to these top ones. For instance, if "P" is predicted as the top-1 token, "A"-"Z" will all be ranked high in NTP, no matter whether they can lead to correct decoding results. This hurts the sampling diversity and makes the sampling of correct, long-tail results hopeless and noisy. We attempt to alleviate this issue via a novel in-context method that iteratively pushes the query representation away from explored regions. Specifically, we include the explored decoding results in the context and prompt the LM to generate something else, which encourages the LM to produce a query representation that has small dot products with explored keys. Experiments on knowledge-probing tasks show that our method leads to efficient navigation away from explored keys to correct new keys. We further extend our method to open-ended and chain-of-thought (for reasoning) generation. Experiment results show that ICN contributes to better generation diversity and improved self-consistency voting performance. Finally, we discuss potential training issues caused by the fixed key space together with the challenges and possible ways to address them in future research.
WordCraft: Scaffolding the Keyword Method for L2 Vocabulary Learning with Multimodal LLMs
School of Information Science and Technology, ShanghaiTech University(信息科学与技术学院,上海科技大学);School of Creativity and Art, ShanghaiTech University(创意与艺术学院,上海科技大学);Shanghai Fengxian Dai Wen Middle School(上海奉贤戴文中学)
Generative Language-Grounded Policy in Vision-and-Language Navigation with Bayes' Rule
RIKEN AIP(理化学研究所先进智能项目中心);Center for Data Science, New York University(纽约大学数据科学中心);Department of Computer Science, Courant Institute, New York University(纽约大学库朗研究所计算机科学系)
VocabTailor: Dynamic Vocabulary Selection for Downstream Tasks in Small Language Models
The Chinese University of Hong Kong(香港中文大学);Infinigence AI;Tsinghua University(清华大学);SLAI;Shanghai Jiao Tong University(上海交通大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
Backward Lens: Projecting Language Model Gradients into the Vocabulary Space
Faculty of Computer Science, Technion – Israel Institute of Technology(以色列理工学院计算机科学系);Blavatnik School of Computer Science, Tel Aviv University(特拉维夫大学布拉瓦尼克计算机科学学院)
Lossless Vocabulary Reduction for Auto-Regressive Language Models
NTT Computer and Data Science Laboratories, NTT Corporation(NTT计算机与数据科学实验室,NTT集团);NTT Human Informatics Laboratories, NTT Corporation(NTT人类信息学实验室,NTT集团)