How Do In-Context Examples Affect Compositional Generalization?

12Citations
Citations of this article
36Readers
Mendeley users who have this article in their library.

Abstract

Compositional generalization-understanding unseen combinations of seen primitives-is an essential reasoning capability in human intelligence. The AI community mainly studies this capability by fine-tuning neural networks on lots of training samples, while it is still unclear whether and how in-context learning-the prevailing few-shot paradigm based on large language models-exhibits compositional generalization. In this paper, we present COFE, a test suite to investigate in-context compositional generalization. We find that the compositional generalization performance can be easily affected by the selection of in-context examples, thus raising the research question what the key factors are to make good in-context examples for compositional generalization. We study three potential factors: similarity, diversity and complexity. Our systematic experiments indicate that in-context examples should be structurally similar to the test case, diverse from each other, and individually simple. Furthermore, two strong limitations are observed: in-context compositional generalization on fictional words is much weaker than that on commonly used ones; it is still critical that the in-context examples should cover required linguistic structures, even though the backbone model has been pre-trained on large corpus. We hope our analysis would facilitate the understanding and utilization of in-context learning paradigm.

Cite

CITATION STYLE

APA

An, S., Lin, Z., Fu, Q., Chen, B., Zheng, N., Lou, J. G., & Zhang, D. (2023). How Do In-Context Examples Affect Compositional Generalization? In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 1, pp. 11027–11052). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2023.acl-long.618

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free