Proceedings

What Makes Models Compositional? A Theoretical View

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 4824-4832.

https://doi.org/10.24963/ijcai.2024/533

Abstract

Compositionality is thought to be a key component of language, and various compositional benchmarks have been developed to empirically probe the compositional generalization of existing sequence processing models. These benchmarks often highlight failures of existing models, but it is not clear why these models fail in this way. In this paper, we seek to theoretically understand the role the compositional structure of the models plays in these failures and how this structure relates to their expressivity and sample complexity. We propose a general neuro-symbolic definition of compositional functions and their compositional complexity. We then show how various existing general and special purpose sequence processing models (such as recurrent, convolution and attention-based ones) fit this definition and use it to analyze their compositional complexity. Finally, we provide theoretical guarantees for the expressivity and systematic generalization of compositional models that explicitly depend on our proposed definition and highlighting factors which drive poor empirical performance.

  1. 0:1 0:2 1:1 0:3 0:4 1:2 2:1 0:5 0:6 1:3 0:7 (a) Convolve + Pool 0:1 1:1 2:1 0:2 1:2 2:2 0:3 1:3 2:3 0:4 1:4 2:4 0:5 1:5 2:5 0:6 1:6 2:6 0:7 1:7 2:7 3:1 (b) Transformer 0:1 1:1 2:1 0:2 1:2 2:2 0:3 1:3 2:3 0:4 1:4 2:4 0:5 1:5 2:5 0:6 1:6 2:6 0:7 1:7 2:7 3:1 (c) Transformer + sparse att. 0:1 1:1 2:1 0:2 1:2 2:2 0:3 1:3 2:3 0:4 1:4 2:4 0:5 1:5 2:5 0:6 1:6 2:6 0:7 1:7 2:7 3:1
  2. [Andreas, 2018] Jacob Andreas. Measuring compositionality in representation learning. In International Conference on Learning Representations, 2018.
  3. [Bowman et al., 2016] Samuel Bowman, Jon Gauthier, Abhi- nav Rastogi, Raghav Gupta, Christopher D Manning, and Christopher Potts. A fast unified model for parsing and sentence understanding. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1466-1477, 2016.
  4. [Csordás et al., 2021] Róbert Csordás, Kazuki Irie, and Juer- gen Schmidhuber. The devil is in the detail: Simple tricks improve systematic generalization of transformers. In Marie-Francine Moens, Xuanjing Huang, Lucia Specia, and Scott Wen-tau Yih, editors, Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 619-634, Online and Punta Cana, Do- minican Republic, November 2021. Association for Com- putational Linguistics.
  5. [Drozdov et al., 2023] Andrew Drozdov, Nathanael Schärli, Ekin Akyürek, Nathan Scales, Xinying Song, Xinyun Chen, Olivier Bousquet, and Denny Zhou. Compositional seman- tic parsing with large language models. In The Eleventh In- ternational Conference on Learning Representations, 2023.
  6. [Dziri et al., 2023] Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jian, Bill Yuchen Lin, Peter West, Chandra Bhagavatula, Ronan Le Bras, Jena D Hwang, et al. Faith and fate: Limits of transformers on compositionality. Advances in Neural Information Processing Systems, 36, 2023.
  7. [Garcez et al., 2022] Artur d'Avila Garcez, Sebastian Bader, Howard Bowman, Luis C Lamb, Leo de Penning, BV Il- luminoo, Hoifung Poon, and COPPE Gerson Zaverucha. Neural-symbolic learning and reasoning: A survey and in- terpretation. Neuro-Symbolic Artificial Intelligence: The State of the Art, 342(1):327, 2022.
  8. [Gordon et al., 2019] Jonathan Gordon, David Lopez-Paz, Marco Baroni, and Diane Bouchacourt. Permutation equiv- ariant models for compositional generalization in language. In International Conference on Learning Representations, 2019.
  9. [Gupta et al., 2021] Ankit Gupta, Guy Dar, Shaya Goodman, David Ciprut, and Jonathan Berant. Memory-efficient trans- formers via top-k attention. In Proceedings of the Second Workshop on Simple and Efficient Natural Language Pro- cessing, pages 39-52. Association for Computational Lin- guistics, 2021.
  10. [Hupkes et al., 2020] Dieuwke Hupkes, Verna Dankers, Mathijs Mul, and Elia Bruni. Compositionality decom- posed: how do neural networks generalise? Journal of Artificial Intelligence Research, 67:757-795, 2020.
  11. [Jarvis et al., 2023] Devon Jarvis, Richard Klein, Benjamin Rosman, and Andrew M Saxe. On the specialization of neural modules. In The Eleventh International Conference on Learning Representations, 2023.
  12. [Keysers et al., 2019] Daniel Keysers, Nathanael Schärli, Nathan Scales, Hylke Buisman, Daniel Furrer, Sergii Kashubin, Nikola Momchev, Danila Sinopalnikov, Lukasz Stafiniak, Tibor Tihon, et al. Measuring compositional generalization: A comprehensive method on realistic data. In International Conference on Learning Representations, 2019.
  13. [Kim and Linzen, 2020] Najoung Kim and Tal Linzen. COGS: A compositional generalization challenge based on semantic interpretation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 9087-9105, 2020.
  14. [Klinger et al., 2020] Tim Klinger, Dhaval Adjodah, Vin- cent Marois, Josh Joseph, Matthew Riemer, Alex 'Sandy' Pentland, and Murray Campbell. A study of composi- tional generalization in neural models. arXiv preprint arXiv:2006.09437, 2020.
  15. [Lake and Baroni, 2018] Brenden Lake and Marco Baroni. Generalization without systematicity: On the composi- tional skills of sequence-to-sequence recurrent networks. In International Conference on Machine Learning, pages 2873-2882. PMLR, 2018.
  16. [Li et al., 2019] Yuanpeng Li, Liang Zhao, Jianyu Wang, and Joel Hestness. Compositional generalization for primitive substitutions. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Lan- guage Processing (EMNLP-IJCNLP), pages 4284-4293, 2019.
  17. [Lin et al., 2022] Tianyang Lin, Yuxin Wang, Xiangyang Liu, and Xipeng Qiu. A survey of transformers. AI Open, 2022.
  18. [Liu et al., 2020] Qian Liu, Shengnan An, Jian-Guang Lou, Bei Chen, Zeqi Lin, Yan Gao, Bin Zhou, Nanning Zheng, and Dongmei Zhang. Compositional generalization by learning analytical expressions. Advances in Neural Infor- mation Processing Systems, 33, 2020.
  19. [Liu et al., 2021] Chenyao Liu, Shengnan An, Zeqi Lin, Qian Liu, Bei Chen, Jian-Guang Lou, Lijie Wen, Nanning Zheng, and Dongmei Zhang. Learning algebraic recombination for compositional generalization. In Findings of the Associ- ation for Computational Linguistics: ACL-IJCNLP 2021, pages 1129-1144, 2021.
  20. [Nye et al., 2020] Maxwell Nye, Armando Solar-Lezama, Josh Tenenbaum, and Brenden M Lake. Learning com- positional rules via neural program synthesis. Advances in Neural Information Processing Systems, 33:10832-10842, 2020.
  21. [Ontanon et al., 2022] Santiago Ontanon, Joshua Ainslie, Zachary Fisher, and Vaclav Cvicek. Making transformers solve compositional tasks. In Smaranda Muresan, Preslav Nakov, and Aline Villavicencio, editors, Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3591-3607, Dublin, Ireland, May 2022. Association for Computational Linguistics.
  22. [Pagin and Westerståhl, 2010a] Peter Pagin and Dag West- erståhl. Compositionality I: Definitions and variants. Phi- losophy Compass, 5(3):250-264, 2010.
  23. [Pagin and Westerståhl, 2010b] Peter Pagin and Dag West- erståhl. Compositionality II: Arguments and problems. Philosophy Compass, 5(3):265-282, 2010.
  24. [Partee, 1995] Barbara Partee. Lexical semantics and com- positionality. An invitation to cognitive science. Part I: Language, 1:311-360, 1995.
  25. [Ram et al., 2023] Parikshit Ram, Tim Klinger, and Alexan- der G. Gray. How compositional is a model? In Inter- national Joint Conference on Artificial Intelligence 2023 Workshop on Knowledge-Based Compositional Generaliza- tion, 2023.
  26. [Ram et al., 2024] Parikshit Ram, Tim Klinger, and Alexan- der G. Gray. What makes Models Compositional? A Theoretical View: With Supplement. arXiv preprint arXiv:2405.02350, 2024.
  27. [Rosenbaum et al., 2019] Clemens Rosenbaum, Ignacio Cases, Matthew Riemer, and Tim Klinger. Routing networks and the challenges of modular and compositional computation. arXiv preprint arXiv:1904.12774, 2019.
  28. [Russin et al., 2019] Jake Russin, Jason Jo, Randall C O'Reilly, and Yoshua Bengio. Compositional generaliza- tion in a deep seq2seq model by separating syntax and semantics. arXiv preprint arXiv:1904.09708, 2019.
  29. [Sarker et al., 2021] Md Kamruzzaman Sarker, Lu Zhou, Aaron Eberhart, and Pascal Hitzler. Neuro-symbolic ar- tificial intelligence. AI Communications, 34(3):197-209, 2021.
  30. [Shen et al., 2018] Yikang Shen, Zhouhan Lin, Chin wei Huang, and Aaron Courville. Neural language modeling by jointly learning syntax and lexicon. In International Conference on Learning Representations, 2018.
  31. [Shen et al., 2019] Yikang Shen, Shawn Tan, Alessandro Sor- doni, and Aaron Courville. Ordered neurons: Integrating tree structures into recurrent neural networks. In Interna- tional Conference on Learning Representations, 2019.
  32. [Sikarwar et al., 2022] Ankur Sikarwar, Arkil Patel, and Navin Goyal. When can transformers ground and compose: Insights from compositional generalization benchmarks. In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang, editors, Proceedings of the 2022 Conference on Empirical Meth- ods in Natural Language Processing, pages 648-669, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics.
  33. [Socher et al., 2010] Richard Socher, Christopher D Man- ning, and Andrew Y Ng. Learning continuous phrase rep- resentations and syntactic parsing with recursive neural networks. In Proceedings of the NIPS-2010 deep learning and unsupervised feature learning workshop, volume 2010, pages 1-9, 2010.
  34. [Tai et al., 2015] Kai Sheng Tai, Richard Socher, and Christo- pher D Manning. Improved semantic representations from tree-structured long short-term memory networks. In Pro- ceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1556-1566, 2015.
  35. [Tay et al., 2020] Yi Tay, Dara Bahri, Liu Yang, Donald Met- zler, and Da-Cheng Juan. Sparse sinkhorn attention. Pro- ceedings of ICML, 2020.
  36. [Tay et al., 2022] Yi Tay, Mostafa Dehghani, Dara Bahri, and Donald Metzler. Efficient transformers: A survey. ACM Computing Surveys, 55(6), 2022.
  37. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
  38. [Wiedemer et al., 2023] Thaddäus Wiedemer, Prasanna May- ilvahanan, Matthias Bethge, and Wieland Brendel. Com- positional generalization from first principles. Advances in Neural Information Processing Systems, 36, 2023.
  39. [Zadrozny, 1994] Wlodek Zadrozny. From compositional to systematic semantics. Linguistics and philosophy, 17:329- 342, 1994.
  40. [Zhou et al., 2023] Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuur- mans, Claire Cui, Olivier Bousquet, Quoc V Le, and Ed H. Chi. Least-to-most prompting enables complex reasoning in large language models. In The Eleventh International Conference on Learning Representations, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards