Search papers, labs, and topics across Lattice.
This paper identifies an explicit, layer-indexed recursion within softmax transformers that performs in-context multi-class linear classification in the hard no-margin regime. By enforcing feature- and label-permutation equivariance at each layer, the authors achieve interpretability while preserving functional equivalence and structured weights. The extracted dynamics reveal that attention matrices, derived from mixed feature-label Gram structures, drive coupled updates of training points, labels, and the test probe, implementing a geometry-driven algorithmic motif that amplifies class separation.
Transformers performing in-context classification aren't black boxes: they're running an identifiable, emergent update rule inside the softmax, revealing a geometry-driven algorithm.
Transformers can perform in-context classification from a few labeled examples, yet the inference-time algorithm remains opaque. We study multi-class linear classification in the hard no-margin regime and make the computation identifiable by enforcing feature- and label-permutation equivariance at every layer. This enables interpretability while maintaining functional equivalence and yields highly structured weights. From these models we extract an explicit depth-indexed recursion: an end-to-end identified, emergent update rule inside a softmax transformer, to our knowledge the first of its kind. Attention matrices formed from mixed feature-label Gram structure drive coupled updates of training points, labels, and the test probe. The resulting dynamics implement a geometry-driven algorithmic motif, which can provably amplify class separation and yields robust expected class alignment.