On the Emergence and Test-Time Use of Structural Information in Large Language Models
Michelle Chao Chen, Moritz Miller, Bernhard Schölkopf, Siyuan Guo
TL;DR
The paper tackles whether large language models learn and can use structural information to perform test-time compositional generation. It introduces a Transformational Grammar–based synthetic dataset to study the emergence of structural knowledge and how it supports (or fails to support) compositional generation under fine-tuning and LoRA regimes. Key findings include a phase-transition in internal representations around $64k$ training steps, where $d(s,A(s))$ grows and aligns with gains in reasoning tasks, and ablations indicating MLPs as primary drivers of syntactic transformations; however, test-time generalization to unseen nested transformations remains limited. This work advances mechanistic interpretability by showing how structured knowledge forms and is used (or constrained) in LLMs, and provides a controlled benchmark for future studies on robust, compositional language capabilities.
Abstract
Learning structural information from observational data is central to producing new knowledge outside the training corpus. This holds for mechanistic understanding in scientific discovery as well as flexible test-time compositional generation. We thus study how language models learn abstract structures and utilize the learnt structural information at test-time. To ensure a controlled setup, we design a natural language dataset based on linguistic structural transformations. We empirically show that the emergence of learning structural information correlates with complex reasoning tasks, and that the ability to perform test-time compositional generation remains limited.
