Interchangeable Token Embeddings for Extendable Vocabulary and Alpha-Equivalence
Not on the map. Why?
Abstract (arXiv)
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 alpha-equivalence. 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. Our code and project page are available at https://necrashter.github.io/interchangeable-token-embeddings
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 22 of its 36 references that are in the map. First posted on arXiv 22 Oct 2024.
Builds on
22 of 36 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2023Llemma: An Open Language Model For Mathematicscited by 385
- 2016Using the Output Embedding to Improve Language Modelscited by 266
- 2019Deep Learning for Symbolic Mathematicscited by 266
- 2023Mathematical Capabilities of ChatGPTcited by 263
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Taskscited by 243
- 2017NormFace: L2 Hypersphere Embedding for Face Verificationcited by 237
10 more
- 2022End-to-end symbolic regression with transformerscited by 195
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
- 2017L2-constrained Softmax Loss for Discriminative Face Verificationcited by 96
- 2019AdaCos: Adaptively Scaling Cosine Logits for Effectively Learning Deep Face Representationscited by 83
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
- 2022NaturalProver: Grounded Mathematical Proof Generation with Language Modelscited by 72
- 2023Large Language Models are In-Context Semantic Reasoners rather than Symbolic Reasonerscited by 63
- 2022SymFormer: End-to-end symbolic regression using transformer-based architecturecited by 56
- 2020Teaching Temporal Logics to Neural Networkscited by 51
- 2022From Spot 2.0 to Spot 2.10: What's New?cited by 20
Built on by
Citing papers per year: 2026: 2.
2 papers.