Research map / Label-efficient and robust learning / Recognition and long-tail
Towards Compositional Generalization in Code Search
Hojae Han, Seung-won Hwang, Shuai Lu, Nan Duan, Seungtaek Choi
Seoul National University · Microsoft Research Asia · Riiid
Read the paperPlace an idea next to itCheck your own paper ↗
14measured effects
12improved
1no clear effect
1hurt
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 template pretraining to GraphCodeBERT (Python) | GraphCodeBERT (Python) · AdvTest | MRR: 0.3922 -> 0.3997 | Improved |
| add template pretraining to GraphCodeBERT (Python) | GraphCodeBERT (Python) · CSN Python | MRR: 0.6878 -> 0.6922 | No clear effect |
| mine templates as AST subtrees instead of anonymized code lines (ablation) | CTBERT · AdvTest | MRR: 0.3885 -> 0.3997 | Improved |
| add masked template attention (ablation) | CTBERT (DFG + template loss) · AdvTest | MRR: 0.3924 -> 0.3997 | Improved |
| add masked template attention (ablation) | CTBERT (DFG + template loss) · CSN Python | MRR: 0.6911 -> 0.6922 | Improved |
| add template alignment loss (with DFG and template attention) (ablation) | CTBERT · AdvTest | MRR: 0.3847 -> 0.3997 | Improved |
| add template alignment loss (template attention only) (ablation) | CTBERT without DFG · AdvTest | MRR: 0.3932 -> 0.3983 | Improved |
| add templates on top of DFG (ablation) | GraphCodeBERT (Python) · AdvTest | MRR: 0.3922 -> 0.3997 | Improved |
| use templates alone instead of DFG alone (ablation) | CTBERT · AdvTest | MRR: 0.3922 -> 0.3983 | Improved |
| replace alignment loss with span prediction loss (ablation) | CTBERT · AdvTest | MRR: 0.3983 -> 0.3830 | Hurt |
| replace alignment loss with span prediction loss (ablation) | CTBERT · CSN Python | MRR: 0.6889 -> 0.6909 | Improved |
| pretrain with templates on lexical-generalization subset of AdvTest | GraphCodeBERT (Python) · AdvTest (seen compositions, 36.02%) | MRR: +1.72% MRR | Improved |
Closest papers by meaning
- GraphCodeBERT: Pre-training Code Representations with Data Flow (ICLR 2021 · similarity 0.87)
- CodeBERTScore: Evaluating Code Generation with Pretrained Models of Code (EMNLP 2023 · similarity 0.85)
- Towards A Generalist Code Embedding Model Based On Massive Data Synthesis (NeurIPS 2025 · similarity 0.85)
- CodeMMR: Bridging Natural Language, Code, and Image for Unified Retrieval (CVPR 2026 · similarity 0.84)
- ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesis (ICLR 2024 · similarity 0.83)
- PinNet: Pinpoint Instructive Information for Retrieval Augmented Code-to-Text Generation (ICML 2024 · similarity 0.83)
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.
