paper-with-me

Papers

How Do In-Context Examples Affect Compositional Generalization?

2023-05-08 · Shengnan An, Zeqi Lin, Qiang Fu, Bei Chen, Nanning Zheng, Jian-Guang Lou, Dongmei Zhang

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.

📄 PDF Abstract BibTeX arXiv:2305.04835

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context Learning

Methods 이 논문이 사용한 방법론

Test 설명 없음

Similar Papers 제목 키워드 기반

Towards Understanding the Relationship between In-context Learning and Compositional Generalization

2024-03-18 · Sungjun Han, Sebastian Padó

According to the principle of compositional generalization, the meaning of a complex expression can be understood as a function of the meaning of its parts and of how they are combined. This principle is crucial for huma…

Few-Shot LearningIn-Context LearningInductive Bias

Layer Specialization Underlying Compositional Reasoning in Transformers

2025-10-20 · Jing Liu arxiv

Transformers exhibit compositional reasoning on sequences not observed during training, a capability often attributed to in-context learning (ICL) and skill composition. We investigate this phenomenon using the Random Hi…

Improving Compositional Generalization in Semantic Parsing

2020-10-12 · Findings of the Association for Computational Linguistics 2020 · Inbar Oren, Jonathan Herzig, Nitish Gupta, Matt Gardner 외

Generalization of models to out-of-distribution (OOD) data has captured tremendous attention recently. Specifically, compositional generalization, i.e., whether a model generalizes to new structures built of components o…

DecoderSemantic Parsing

In-Context Compositional Learning via Sparse Coding Transformer

2025-11-25 · Wei Chen, Jingxi Yu, Zichen Miao, Qiang Qiu arxiv

Transformer architectures have achieved remarkable success across language, vision, and multimodal tasks, and there is growing demand for them to address in-context compositional learning tasks. In these tasks, models so…

Towards Truly Zero-shot Compositional Visual Reasoning with LLMs as Programmers

2024-01-03 · Aleksandar Stanić, Sergi Caelles, Michael Tschannen

Visual reasoning is dominated by end-to-end neural networks scaled to billions of model parameters and training examples. However, even the largest models struggle with compositional reasoning, generalization, fine-grain…

Question AnsweringVisual GroundingVisual Question AnsweringVisual Reasoning