Functorial Neural Architectures from Higher Inductive Types
Karen Sargsyan

TL;DR
This paper introduces a functorial framework for neural network architectures based on higher inductive types, improving compositional generalization and providing formal guarantees and limitations.
Contribution
It develops a novel method to compile higher inductive types into neural architectures using monoidal functors, linking category theory with neural design for better compositionality.
Findings
Functorial decoders outperform non-functorial ones by 2-2.7x on the torus.
Type-A/B gap widens to 5.5-10x on $S^1 \/ S^1$.
Learned 2-cell reduces 46% error on the Klein bottle group relation.
Abstract
Neural networks systematically fail at compositional generalization -- producing correct outputs for novel combinations of known parts. We show that this failure is architectural: compositional generalization is equivalent to functoriality of the decoder, and this perspective yields both guarantees and impossibility results. We compile Higher Inductive Type (HIT) specifications into neural architectures via a monoidal functor from the path groupoid of a target space to a category of parametric maps: path constructors become generator networks, composition becomes structural concatenation, and 2-cells witnessing group relations become learned natural transformations. We prove that decoders assembled by structural concatenation of independently generated segments are strict monoidal functors (compositional by construction), while softmax self-attention is not functorial for any…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Graph Neural Networks · Machine Learning in Materials Science · Topological and Geometric Data Analysis
