Ternary Gamma Semirings: From Neural Implementation to Categorical Foundations
Ruoqi Sun

TL;DR
This paper links neural network learning with algebraic structures, showing that with logical constraints, networks learn structured feature spaces modeled as finite commutative ternary Gamma semirings, explaining their generalization capabilities.
Contribution
It introduces the Ternary Gamma Semiring as a mathematical framework for neural representations, connecting algebraic structures with neural generalization and compositional learning.
Findings
Neural networks fail on compositional generalization without constraints
Logical constraints lead to learning algebraic structures in features
The learned structure is a finite commutative ternary Gamma semiring
Abstract
This paper establishes a theoretical framework connecting neural network learning with abstract algebraic structures. We first present a minimal counterexample demonstrating that standard neural networks completely fail on compositional generalization tasks (0% accuracy). By introducing a logical constraint -- the Ternary Gamma Semiring -- the same architecture learns a perfectly structured feature space, achieving 100% accuracy on novel combinations. We prove that this learned feature space constitutes a finite commutative ternary -semiring, whose ternary operation implements the majority vote rule. Comparing with the recently established classification of Gokavarapu et al., we show that this structure corresponds precisely to the Boolean-type ternary -semiring with , }, which is unique up to isomorphism in their enumeration. Our findings reveal three…
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
TopicsConstraint Satisfaction and Optimization · Neural Networks and Applications · Advanced Algebra and Logic
