View PDF HTML (experimental)

Abstract:How do neural networks trained over sequences acquire the ability to perform structured operations, such as arithmetic, geometric, and algorithmic computation? To gain insight into this question, we introduce the sequential group composition task. In this task, networks receive a sequence of elements from a finite group encoded in a real vector space and must predict their cumulative product. This task can be order-sensitive and cannot be solved by a linear model. Our analysis isolates the roles of the group structure, encoding statistics, and sequence length in shaping learning. We prove that two-layer networks from vanishing initialization learn this task one irreducible representation of the group at a time in an order determined by the Fourier statistics of the encoding. To perfectly learn the task, these networks require a hidden width exponential in the sequence length $k$. In contrast, we construct deeper architectures that exploit associativity to dramatically improve this scaling: recurrent neural networks can compose elements sequentially in $k$ steps, while multilayer networks can compose adjacent pairs in parallel in $\log k$ layers. Overall, the sequential group composition task offers a tractable window into the mechanics of deep learning.
Comments: Accepted at ICML 2026
Subjects: Machine Learning (cs.LG)
Cite as: arXiv:2602.03655 [cs.LG]
  (or arXiv:2602.03655v2 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2602.03655

arXiv-issued DOI via DataCite

Submission history

From: Giovanni Luca Marchetti [view email]
[v1] Tue, 3 Feb 2026 15:36:25 UTC (4,835 KB)
[v2] Fri, 29 May 2026 08:14:36 UTC (9,068 KB)