When Does Geometry Emerge from Memorization in Transformers?
Nishanth RamReddy Reddy, Sambhav Manohar, Anish Chand Turlapaty
Abstract
Transformer models often show structured internal representations on relational tasks, which are often interpreted as geometric organization. Prior work documents such structure via visualization or performance-based analyses, but does not isolate whether perfect memorization alone yields geometric representations. Here, we conduct a controlled study using synthetic relational worlds defined by canonical graph topologies, explicitly training Transformers to perfectly memorize relational structure without imposing constraints that favor or discourage geometry, and examining whether geometric representations arise as a consequence. Across chains, cycles, regular graphs, and star graphs, models achieve perfect memorization accuracy while internal embeddings do not systematically preserve either global distances or local neighborhoods, indicating reliance on non-geometric, index-based representations. By probing embeddings against shortest-path distance using rank consistency and neighborhood preservation metrics, we show that memorization alone places no requirement on metric organization. Recoverable geometric structure emerges only when the task objective, together with the relational topology, sufficiently constrains node interchangeability, reducing the space of symmetry-equivalent memorization solutions. Our results show that perfect memorization does not imply emergent geometric structure, and characterize the conditions under which structure arises in learned embeddings.
Create a lesson
Metadata
- Categories
- stat.ML, cs.LG
Related papers
Beware of Sharp Minima: Loss Landscape Geometry Predicts the Generalizability of Hydrological Models
Shared title terminologystat.MLMax Nghiem Lee, Joseph Janssen, Ching-Yao Lai
The Geometry of Multiclass Classification: From Primal-Dual Probability Coordinates to Euclidean Realization
Shared title terminologystat.MLMounir Beggas
Revealing Geometry under Strong Noise: Spectral Embeddings and Clustering via Random Geometric Graphs
Shared title terminologystat.MLHai-Xiao Wang, Xiucai Ding
Sampling with graph wavelet kernels: optimality and adaptivity to regularity and geometry
Shared title terminologystat.MLPranav Gupta, Hoang-Son Tran, Subhroshekhar Ghosh
Can pretrained Transformers deliver semiparametrically efficient inference?
Shared title terminologystat.MLHan Yan, Jin Zhu, Chengchun Shi et al.
Conditional Asset Pricing Transformer
Shared title terminologystat.MLHao Fu, Xinbing Kong, Zeyu Li et al.