mlsanityData to 14 Oct 2026

Functorial Neural Architectures from Higher Inductive Types

arXiv 2603.16123 ↗First posted 17 Mar 2026cs.LG cs.AI math.ATcited by 0

Not on the map. Why?

Abstract (arXiv)

Neural networks often learn the parts of a task but fail on novel combinations of those parts. We argue that this failure is architectural: a decoder generalizes compositionally only when it respects the algebraic laws of the task, i.e. when it descends from freely generated sequences to the quotient determined by those laws. We make this principle constructive by compiling Higher Inductive Type (HIT) specifications into neural architectures. Basepoints, path constructors, and 2-cells are mapped to base constraints, generator networks, structural concatenation, and learned homotopies. The resulting transport decoders are strict monoidal functors by construction: decoding a concatenated word is concatenation of independently generated loop segments. In contrast, we prove that softmax self-attention cannot simultaneously satisfy strict monoidal composition and descent to any non-trivial compositional quotient. Experiments on the torus, wedge of circles, and Klein bottle validate the predicted hierarchy: functorial decoders outperform non-functorial alternatives by 2--10×, and a learned 2-cell closes a 46% error gap precisely on words exercising the Klein-bottle relation. These results suggest that compositional generalization should be enforced as functorial structure in the architecture, rather than learned from examples alone.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 18 of its 34 references that are in the map. First posted on arXiv 17 Mar 2026.

Builds on

18 of 34 references.

References · 18

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  4. 2016Group Equivariant Convolutional Networkscited by 1,165
  5. 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 744
  6. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
  7. 2019General E(2)-Equivariant Steerable CNNscited by 446
  8. 2022Transformers Learn Shortcuts to Automatacited by 268
  9. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
  10. 2020Neural Lyapunov Controlcited by 142
  11. 2017Backprop as Functor: A compositional perspective on supervised learningcited by 44
  12. 2021Categorical Foundations of Gradient-Based Learningcited by 44
6 more
  1. 2024Position: Categorical Deep Learning is an Algebraic Theory of All Architecturescited by 32
  2. 2013Lambek vs. Lambek: Functorial Vector Space Semantics and String Diagrams for Lambek Calculuscited by 13
  3. 2026Sequential Group Composition: A Window into the Mechanics of Deep Learningcited by 10
  4. 2013Homotopy Type Theory: Univalent Foundations of Mathematicscited by 8
  5. 2024When can transformers compositionally generalize in-context?cited by 7
  6. 2016Cubical Type Theory: a constructive interpretation of the univalence axiomcited by 1

Built on by

Not cited yet.