arXiv Machine Learning

In Defense of Cosine Similarity: Normalization Eliminates the Gauge Freedom

arXiv:2602. 19393v2 Announce Type: replace Abstract: Steck, Ekanadham, and Kallus [arXiv:2403.

arXiv Statistics ML
Oct 26

Generalization properties of the token perceptron: the role of embedding and vocabulary

The paper investigates how the geometry of token embeddings influences learning in a minimal token‑perceptron model, where a linear predictor maps sequences of embedded tokens to outputs. Using the replica method, it derives generalization errors for continuous spherical embeddings and for discrete vocabulary embeddings, revealing that learning thresholds depend on embedding dimension and that optimal learners prioritize directions of greatest variance in the embedding space. The study also quantifies storage capacity and recovery thresholds for noiseless regression and random associations.

By Dario Bocchi, Matteo Negri, Flavio Nicoletti, Francesco D'Amico