English

Compositional Processing Emerges in Neural Networks Solving Math Problems

Machine Learning 2021-05-20 v1 Artificial Intelligence Computation and Language

Abstract

A longstanding question in cognitive science concerns the learning mechanisms underlying compositionality in human cognition. Humans can infer the structured relationships (e.g., grammatical rules) implicit in their sensory observations (e.g., auditory speech), and use this knowledge to guide the composition of simpler meanings into complex wholes. Recent progress in artificial neural networks has shown that when large models are trained on enough linguistic data, grammatical structure emerges in their representations. We extend this work to the domain of mathematical reasoning, where it is possible to formulate precise hypotheses about how meanings (e.g., the quantities corresponding to numerals) should be composed according to structured rules (e.g., order of operations). Our work shows that neural networks are not only able to infer something about the structured relationships implicit in their training data, but can also deploy this knowledge to guide the composition of individual meanings into composite wholes.

Keywords

Cite

@article{arxiv.2105.08961,
  title  = {Compositional Processing Emerges in Neural Networks Solving Math Problems},
  author = {Jacob Russin and Roland Fernandez and Hamid Palangi and Eric Rosen and Nebojsa Jojic and Paul Smolensky and Jianfeng Gao},
  journal= {arXiv preprint arXiv:2105.08961},
  year   = {2021}
}

Comments

7 pages, 2 figures, Accepted to CogSci 2021 for poster presentation

R2 v1 2026-06-24T02:15:02.856Z