mlsanityData to 7 Oct 2026

Interchangeable Token Embeddings for Extendable Vocabulary and Alpha-Equivalence

arXiv 2410.17161 ↗First posted 22 Oct 2024cs.CL cs.LG cs.LOcited by 2

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  5. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
  6. 2023Llemma: An Open Language Model For Mathematicscited by 385
  7. 2016Using the Output Embedding to Improve Language Modelscited by 266
  8. 2019Deep Learning for Symbolic Mathematicscited by 266
  9. 2023Mathematical Capabilities of ChatGPTcited by 263
  10. 2022Transformers Learn Shortcuts to Automatacited by 260
  11. 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Taskscited by 243
  12. 2017NormFace: L2 Hypersphere Embedding for Face Verificationcited by 237
10 more
  1. 2022End-to-end symbolic regression with transformerscited by 195
  2. 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
  3. 2017L2-constrained Softmax Loss for Discriminative Face Verificationcited by 96
  4. 2019AdaCos: Adaptively Scaling Cosine Logits for Effectively Learning Deep Face Representationscited by 83
  5. 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
  6. 2022NaturalProver: Grounded Mathematical Proof Generation with Language Modelscited by 72
  7. 2023Large Language Models are In-Context Semantic Reasoners rather than Symbolic Reasonerscited by 63
  8. 2022SymFormer: End-to-end symbolic regression using transformer-based architecturecited by 56
  9. 2020Teaching Temporal Logics to Neural Networkscited by 51
  10. 2022From Spot 2.0 to Spot 2.10: What's New?cited by 20

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.