Research map / Large language models / Instruction and fine-tuning
How Do In-Context Examples Affect Compositional Generalization?
Shengnan An, Zeqi Lin, Qiang Fu, Bei Chen, Nanning Zheng, Jian-Guang LOU, Dongmei Zhang
Xi’an Jiaotong University · Microsoft
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add structural similarity to primitive-coverage example selection (ablation) | code-davinci-002 · CoFe average | exact-match accuracy: 60.9 -> 75.6 | Improved |
| add structural similarity to primitive-coverage example selection (ablation) | davinci · CoFe average | exact-match accuracy: 26.7 -> 44.0 | Improved |
| match precise (deeper) structures, not only rough ones (ablation) | code-davinci-002 · CoFe average | exact-match accuracy: 73.2 -> 75.6 | Improved |
| rough vs precise structure matching (ablation) | code-davinci-002 · CoFe PhraReco | exact-match accuracy: 65.3 -> 77.6 (rough is higher) | Hurt |
| increase diversity among in-context examples (ablation) | code-davinci-002 · CoFe PhraReco | exact-match accuracy: 65.3 -> 80.0 | Improved |
| increase diversity among in-context examples (ablation) | code-davinci-002 · CoFe LongChain / DeepNest | exact-match accuracy: 87.0 -> 87.6; 26.0 -> 26.2 | No clear effect |
| use low-complexity in-context examples (ablation) | code-davinci-002 · CoFe PhraReco | exact-match accuracy: 56.9 -> 67.6 (high -> low complexity) | Improved |
| lower complexity of in-context examples (ablation) | code-davinci-002 · CoFe LongChain / DeepNest | exact-match accuracy: 87.6 vs 87.3; 26.0 vs 25.6 | No clear effect |
| change prompt order (structure closer, atom closer, random) (ablation) | code-davinci-002 · CoFe average | exact-match accuracy: 75.6, 74.2, 74.5 | No clear effect |
| remove target-side matching, keep source-side (ablation) | code-davinci-002 · CoFe average | exact-match accuracy: 75.6 -> 75.4 | No clear effect |
| remove NL-side (source) structure matching (ablation) | in-context example selection · CoFe | exact-match accuracy | Hurt |
| replace target-side words with fictional random-character words (ablation) | in-context example selection · CoFe | exact-match accuracy | Hurt |
Open problems in fine-tuning for reasoning data
Do reasoning fine-tuning methods keep working on larger models, open-ended tasks and beyond plain SFT?
- Tested only on models of 14B parameters or fewer, not 70B-scale. · 22 papers state it
- Gains are shown on math and verifiable tasks, not open-ended ones. · 15 papers state it
- The method depends on what the base model already knows. · 7 papers state it
Closest papers by meaning
- Skills-in-Context: Unlocking Compositionality in Large Language Models (EMNLP 2024 · similarity 0.91)
- Diverse Demonstrations Improve In-context Compositional Generalization (ACL 2023 · similarity 0.90)
- Data Factors for Better Compositional Generalization (EMNLP 2023 · similarity 0.90)
- Unobserved Local Structures Make Compositional Generalization Hard (EMNLP 2022 · similarity 0.90)
- When does compositional structure yield compositional generalization? A kernel theory. (ICLR 2025 · similarity 0.89)
- Does Data Scaling Lead to Visual Compositional Generalization? (ICML 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.