Names Don't Matter: Symbol-Invariant Transformer for Open-Vocabulary Learning
İlker Işık, Wenchao Li
TL;DR
This work addresses open-vocabulary symbolic reasoning where interchangeable tokens, such as bound variables, can be renamed without changing meaning. It introduces a Symbol-Invariant Transformer that runs $k$ parallel embedding streams—one per interchangeable token—processed by shared Transformer layers and combined via an aggregated attention mechanism, yielding exact invariance to alpha-renaming. The authors prove alpha-equivalence by construction and demonstrate strong generalization on propositional logic and LTL tasks, outperforming baselines including GPT-5.2 in LTL witness generation and achieving competitive results in relational reasoning while maintaining efficiency. The approach enables post-training vocabulary extension with formal guarantees, offering practical impact for domains like formal verification, program analysis, and theorem proving where symbol renaming is commonplace.
Abstract
Current neural architectures lack a principled way to handle interchangeable tokens, i.e., symbols that are semantically equivalent yet distinguishable, such as bound variables. As a result, models trained on fixed vocabularies often struggle to generalize to unseen symbols, even when the underlying semantics remain unchanged. We propose a novel Transformer-based mechanism that is provably invariant to the renaming of interchangeable tokens. Our approach employs parallel embedding streams to isolate the contribution of each interchangeable token in the input, combined with an aggregated attention mechanism that enables structured information sharing across streams. Experimental results confirm the theoretical guarantees of our method and demonstrate substantial performance gains on open-vocabulary tasks that require generalization to novel symbols.
