Ternary Gamma Semirings: From Neural Implementation to Categorical Foundations
Not on the map. Why?
Abstract (arXiv)
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 Gamma-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 Gamma-semiring with |T|=4, |Gamma|=1, which is unique up to isomorphism in their enumeration. Our findings reveal three profound conclusions: (i) the success of neural networks can be understood as an approximation of mathematically ``natural'' structures; (ii) learned representations generalize because they internalize algebraic axioms (symmetry, idempotence, majority property); (iii) logical constraints guide networks to converge to these canonical forms. This work provides a rigorous mathematical framework for understanding neural network generalization and inaugurates the new interdisciplinary direction of Computational Gamma-Algebra.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 10 of its 42 references that are in the map. First posted on arXiv 15 Mar 2026.
Builds on
10 of 42 references.
References · 10
- 2018Relational inductive biases, deep learning, and graph networkscited by 1,353
- 2017A simple neural network module for relational reasoningcited by 345
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 283
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 2018Deep Learning: A Critical Appraisalcited by 215
- 2021Categorical Foundations of Gradient-Based Learningcited by 44
- 2024Category-Theoretical and Topos-Theoretical Frameworks in Machine Learning: A Surveycited by 3
- 2025Scalable Evaluation and Neural Models for Compositional Generalizationcited by 2
- 2025Computational and Categorical Frameworks of Finite Ternary Gamma-Semirings: Foundations, Algorithms, and Industrial Modeling Applicationscited by 1
- 2025A Ternary Gamma Semiring Framework for Solving Multi-Objective Network Optimization Problemscited by 1
Built on by
Not cited yet.