Lune

NeurIPS2023顶会

Lexinvariant Language Models

Qian Huang, Eric Zelikman, Sarah Li Chen, Yuhuai Wu, Gregory Valiant, Percy Liang

摘要

Token embeddings, a mapping from discrete lexical symbols to continuous vectors, are at the heart of any language model (LM). However, lexical symbol meanings can also be determined and even redefined by their structural role in a long context. In this paper, we ask: is it possible for a language model to be performant without any fixed token embeddings? Such a language model would have to rely entirely on the co-occurence and repetition of tokens in the context rather than the a priori identity of any token. To answer this, we study lexinvariantlanguage models that are invariant to lexical symbols and therefore do not need fixed token embeddings in practice. First, we prove that we can construct a lexinvariant LM to converge to the true language model at a uniform rate that is polynomial in terms of the context length, with a constant factor that is sublinear in the vocabulary size. Second, to build a lexinvariant LM, we simply encode tokens using random Gaussian vectors, such that each token maps to the same representation within each sequence but different representations across sequences. Empirically, we demonstrate that it can indeed attain perplexity comparable to that of a standard language model, given a sufficiently long context. We further explore two properties of the lexinvariant language models: First, given text generated from a substitution cipher of English, it implicitly implements Bayesian in-context deciphering and infers the mapping to the underlying real tokens with high accuracy. Second, it has on average 4X better accuracy over synthetic in-context reasoning tasks. Finally, we discuss regularizing standard language models towards lexinvariance and potential practical applications.

问 Lune

尽管问,回答会引用原文。

Lune 会读完全文和相关的 Paper,每个回答都附上所依据的原文段落。

可以从这些问题问起

Lune 的依据

全文 · 引用它的 2 篇顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

引用它的顶会 Paper2

  1. Mission: Impossible Language ModelsJulie Kallini, Isabel Papadimitriou, Richard Futrell, Kyle Mahowald 等ACL 2024 · 15 次引用
  2. Quadratic Coreset Selection: Certifying and Reconciling Sequence and Token Mining for Efficient Instruction TuningZiliang Chen, Yongsen Zheng, Zhao-Rong Lai, Zhanfu Yang 等NeurIPS 2025 · 4 次引用

它引用的 Paper3

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Learning to Recombine and Resample Data For Compositional GeneralizationEkin Akyürek, Afra Feyza Akyürek, Jacob AndreasICLR 2021 · 36 次引用
  3. Can Sequence-to-Sequence Models Crack Substitution Ciphers?Nada Aldarrab, Jonathan MayACL 2021

相关 Paper

  1. Semantics or spelling? Probing contextual word embeddings with orthographic noiseJacob Matthews, John R. Starr, Marten van SchijndelACL Findings 2024 · 2 次引用
  2. Interchangeable Token Embeddings for Extendable Vocabulary and Alpha-EquivalenceIlker Isik, Ramazan Gokberk Cinbis, Ebru Aydin GolICML 2025
  3. Reconstruction ProbingNajoung Kim, Jatin Khilnani, Alex Warstadt, Abdelrahim QaddoumiACL Findings 2023
  4. Rethinking Invariance in In-context LearningLizhe Fang, Yifei Wang, Khashayar Gatmiry, Lei Fang 等ICLR 2025
  5. Is a cute puyfred cute? Context-dependent form-meaning systematicity in LLMsJaïr A. Waal, Giovanni CassaniACL Findings 2025
黄昏的海面,两侧是细线勾勒的悬崖