When Symbol Names Should Not Matter: A Logistic Theory of Fresh-Symbol Classification

Wenjie Guan, Jelena BradicNeurIPS 2026

TL;DR

If you learn that the pattern AA means "yes" and AB means "no," you effortlessly know that CC means "yes"—even if you've never seen the letter C before. Transformers often stumble on this kind of abstract reasoning, latching onto specific token names instead of underlying patterns. This paper builds a mathematical theory for fresh-symbol classification, showing that generalization doesn't just depend on how big or diverse your training vocabulary is, but on the exact geometry of how tokens accidentally overlap across your training examples.

What Problem Does This Paper Address?

To reason abstractly, a model shouldn't care what variables are named; $x + x = 2x$ is just as true as $y + y = 2y$. Researchers test this in sequence models using "template tasks," where inputs are generated by plugging concrete tokens into abstract latent templates (like $\alpha\alpha \mapsto +1$ and $\alpha\beta \mapsto -1$). The ultimate test is fresh-symbol generalization: evaluating the model on a vocabulary completely disjoint from the training set.

While previous work studied this in generative settings (where models sometimes fail simply because they can't emit an unseen token) or used squared-loss regression, those approaches leave a gap. First, classification is typically trained with logistic loss, which behaves very differently mathematically. Second, prior theory leaned heavily on a single scalar number—vocabulary diversity ($\rho$)—to guarantee success. Diversity measures how rarely any single token gets reused, assuming that high diversity automatically washes out spurious token-level memorization. The authors ask: In a pure classification setting (where the model only outputs a fixed label, isolating the decision rule from token generation), is vocabulary diversity really the whole story?

Methods

The authors analyze a one-layer frozen-feature Transformer in the infinite-width kernel regime, where training the final linear readout layer with ridge-regularized logistic loss is equivalent to Kernel Logistic Regression (KLR).

Normally, kernel regression analyses rely on squared loss, which conveniently reduces to solving a linear system. Logistic loss doesn't allow that shortcut. To get around this, the authors introduce a clever analytic device: they work in the entropy dual of KLR. This allows them to cleanly decompose the model's learned prediction score into two parts:

  1. An ideal template-level scorer: What the classifier would learn if every training example used completely fresh, non-overlapping symbols.
  2. A finite-sample perturbation: The distortion caused by accidental token reuse in the training set.

To bound this perturbation, they introduce a colored collision graph. Every training example is a node, colored by which latent template generated it. Whenever two examples accidentally share a substituted token (or hit a literal token), an edge is drawn between them. Using linearized dual equations, the authors derive five distinct mathematical bounds (certificates) that translate the structure of this graph into high-probability classification margin guarantees. They also extend this perturbation framework to learned representations and abstraction-augmented prompting.

Datasets

Rather than relying on standard static NLP benchmarks, the authors construct controlled synthetic and semi-realistic template suites where train and test sets share latent templates but use strictly disjoint symbol vocabularies:

  • Synthetic template tasks: Binary classification ($\alpha\beta\alpha \mapsto +1$ vs. $\alpha\beta\beta \mapsto -1$) and a majority-symbol copying task ($\{\alpha\alpha\alpha, \alpha\alpha\beta, \alpha\beta\alpha, \alpha\beta\beta\}$), alongside eight specialized finite-template configurations designed to isolate specific graph collision mechanisms.
  • Semi-realistic fresh-name kinship classification: A newly constructed dataset of six templates describing a two-link parent chain (varying fact order and queried roles) asking whether two queried individuals have a grandparent relation, tested on unseen names.
  • Matched-$\rho$ kinship designs: A controlled variant of the kinship dataset ($n \in \{512, \dots, 4096\}$) engineered so that token frequencies, class balance, and vocabulary diversity ($\rho$) are identical, while the collision graph is manipulated to be either dispersed (disjoint cliques) or clustered (cliques joined at high-degree hubs).

Key Insights and Ideas

  • Vocabulary diversity is just a shadow of collision geometry: Two training sets can have the exact same vocabulary diversity, token frequencies, and total collision counts, yet wildly different generalization behavior. If token overlaps cluster into high-degree hubs or align asymmetrically across label classes, they distort the classification margin much more severely than evenly dispersed overlaps.
Why vocabulary diversity is not enough: identical token marginals can produce benign vs. heavily clustered collision graphs.
  • Spurious collisions can inflate training confidence while sabotaging test performance: If training tokens accidentally get confined to specific label classes (color alignment), the model can use token identity as a crutch. This artificially increases the training margin while lowering the margin on fresh test symbols—even when the uncolored collision graph looks completely unchanged.
  • Unconstrained unseen embeddings are an Achilles' heel: Even if a model sees every template during training, it cannot uniformly guarantee fresh-symbol accuracy if unseen token embeddings aren't well-separated. For instance, if two unseen tokens $u$ and $v$ happen to map to identical (or zero) input embeddings, no downstream classifier can distinguish $(u, v, u)$ from $(u, v, v)$, forcing worst-case accuracy to $50\%$.
  • When "abstract prompting" actually helps: Methods like Chain-of-Abstraction try to help models by rewriting inputs into abstract variables before solving. The authors prove a crisp trade-off: abstract prompting improves fresh-symbol guarantees only when the boost in the ideal template margin outweighs any new collision noise introduced by the prompt itself.

Key Results

  • Architectural inductive biases matter massively: In the 6-template kinship task at $n = 4096$ training samples, a standard two-layer Transformer barely beats a coin flip on fresh names ($0.540 \pm 0.050$ accuracy). Scaling up the identity residual multipliers in the attention heads—specifically the Value-Output (V–O) pathway by $100\times$—pushes fresh-name accuracy to $0.995 \pm 0.005$ (and $0.855 \pm 0.145$ for Key-Query scaling).
  • Collision clustering hurts finite-sample margins: In the matched-$\rho$ kinship experiments at $n = 512$ (where clustered graphs raise maximum node degree $d_{\max}$ from $5$ to $15$ without changing vocabulary diversity), the clustered condition yielded a lower fresh-symbol margin than the dispersed condition across all five paired random seeds.
  • Sharper theoretical certificates: Across eight diagnostic template tasks, the authors' graph-aware perturbation bounds ($B^\sharp_\lambda$) consistently provided orders-of-magnitude tighter guarantees on the logistic score scale than a scalar diversity proxy ($B_\rho$).

Limitations and Future Work

The paper's exact probability bounds apply to fixed, token-symmetric kernels (such as one-layer Transformers where only the final readout head is trained). When the entire network body is trained—as in their two-layer kinship experiments—the collision graph diagnostics serve as a useful proxy rather than a strict mathematical bound on the learned representations. Interestingly, in those full-training experiments, the margin penalty from clustered collisions observed at $n=512$ faded at larger sample sizes ($n \ge 1024$).

For future work, the authors point to a natural next step: bridging their post-training representation bounds with actual training dynamics. Specifically, they ask whether the training collision graph can predict how representation learning shifts seen versus unseen template prototypes, and how weight-tying between input and output embeddings shapes that shift.

Summary updated

BibTeX
@inproceedings{guan2026when,
  author = {Wenjie Guan and Jelena Bradic},
  title = {{When Symbol Names Should Not Matter: A Logistic Theory of Fresh-Symbol Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bIdWoi4kWA},
}
Figure