A Theoretical Analysis of Compositional Generalization in Neural Networks: A Necessary and Sufficient Condition

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteur principal: Li, Yuanpeng
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912361440346112
author Li, Yuanpeng
author_facet Li, Yuanpeng
contents Compositional generalization is a crucial property in artificial intelligence, enabling models to handle novel combinations of known components. While most deep learning models lack this capability, certain models succeed in specific tasks, suggesting the existence of governing conditions. This paper derives a necessary and sufficient condition for compositional generalization in neural networks. Conceptually, it requires that (i) the computational graph matches the true compositional structure, and (ii) components encode just enough information in training. The condition is supported by mathematical proofs. This criterion combines aspects of architecture design, regularization, and training data properties. A carefully designed minimal example illustrates an intuitive understanding of the condition. We also discuss the potential of the condition for assessing compositional generalization before training. This work is a fundamental theoretical study of compositional generalization in neural networks.
format Preprint
id arxiv_https___arxiv_org_abs_2505_02627
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Theoretical Analysis of Compositional Generalization in Neural Networks: A Necessary and Sufficient Condition
Li, Yuanpeng
Machine Learning
Artificial Intelligence
Compositional generalization is a crucial property in artificial intelligence, enabling models to handle novel combinations of known components. While most deep learning models lack this capability, certain models succeed in specific tasks, suggesting the existence of governing conditions. This paper derives a necessary and sufficient condition for compositional generalization in neural networks. Conceptually, it requires that (i) the computational graph matches the true compositional structure, and (ii) components encode just enough information in training. The condition is supported by mathematical proofs. This criterion combines aspects of architecture design, regularization, and training data properties. A carefully designed minimal example illustrates an intuitive understanding of the condition. We also discuss the potential of the condition for assessing compositional generalization before training. This work is a fundamental theoretical study of compositional generalization in neural networks.
title A Theoretical Analysis of Compositional Generalization in Neural Networks: A Necessary and Sufficient Condition
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.02627