Lune

ICML2025Top-tier venue

Interchangeable Token Embeddings for Extendable Vocabulary and Alpha-Equivalence

Ilker Isik, Ramazan Gokberk Cinbis, Ebru Aydin Gol

Abstract

Language models lack the notion of interchangeable tokens: symbols that are semantically equivalent yet distinct, such as bound variables in formal logic. This limitation prevents generalization to larger vocabularies and hinders the model's ability to recognize alpha-equivalence, where renaming bound variables preserves meaning. We formalize this machine learning problem and introduce alpha-covariance, a metric for evaluating robustness to such transformations. To tackle this task, we propose a dual-part token embedding strategy: a shared component ensures semantic consistency, while a randomized component maintains token distinguishability. Compared to a baseline that relies on alpha-renaming for data augmentation, our approach demonstrates improved generalization to unseen tokens in linear temporal logic solving, propositional logic assignment prediction, and copying with an extendable vocabulary, while introducing a favorable inductive bias for alphaequivalence. Our findings establish a foundation for designing language models that can learn interchangeable token representations, a crucial step toward more flexible and systematic reasoning in formal domains.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · 2 top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers2

  1. On the Ability of Transformers to Verify PlansYash Sarrof, Yupei Du, Katharina Stein, Alexander Koller et al.ICML 2026 · 1 citation
  2. Names Don’t Matter: Symbol-Invariant Transformer for Open-Vocabulary Learningİlker Işık, Wenchao LiICML 2026

Builds on7

  1. Multitask Prompted Training Enables Zero-Shot Task GeneralizationVictor Sanh, Albert Webson, Colin Raffel, Stephen H. Bach et al.ICLR 2022 · 1,976 citations
  2. Deep Learning For Symbolic MathematicsGuillaume Lample, François ChartonICLR 2020 · 477 citations
  3. End-to-end Symbolic Regression with TransformersPierre-Alexandre Kamienny, Stéphane d'Ascoli, Guillaume Lample, François ChartonNeurIPS 2022 · 320 citations
  4. Proof Artifact Co-Training for Theorem Proving with Language ModelsJesse Michael Han, Jason Rute, Yuhuai Wu, Edward W. Ayers et al.ICLR 2022 · 149 citations
  5. Teaching Temporal Logics to Neural NetworksChristopher Hahn, Frederik Schmitt, Jens U. Kreber, Markus Norman Rabe et al.ICLR 2021 · 78 citations

Related papers

  1. Lexinvariant Language ModelsQian Huang, Eric Zelikman, Sarah Li Chen, Yuhuai Wu et al.NeurIPS 2023 · 3 citations
  2. Prompt-Robust Vision-Language Models via Meta-FinetuningHaohui Liang, Runlin Huang, Yingjun Du, Yujia Hu et al.ICLR 2026
  3. Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language GenerationLorenz Kuhn, Yarin Gal, Sebastian FarquharICLR 2023 · 49 citations
  4. When Format Changes Meaning: Investigating Semantic Inconsistency of Large Language ModelsCheongwoong Kang, Jongeun Baek, Yeonjea Kim, Jaesik ChoiEMNLP Findings 2025
  5. Memory as a Markov Matrix: Sample Efficient Knowledge Expansion via Token-to-Dictionary MappingKaustubh Vijaykumar Pethkar, Ziyang Xiong, Zuofeng Shang, Yingcong LiICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines