Research map / Large language models / Language, safety and interpretability
Incorporating External Knowledge through Pre-training for Natural Language to Code Generation
Frank F. Xu, Zhengbao Jiang, Pengcheng Yin, Bogdan Vasilescu, Graham Neubig
Carnegie Mellon University
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 |
|---|---|---|---|
| pre-train on mined StackOverflow pairs (100k) (ablation) | TranX · CoNaLa test | BLEU: 27.20 -> 28.14 | Improved |
| add API documentation pairs to pre-training without re-sampling (ablation) | TranX Man+Mine · CoNaLa test | BLEU: 28.14 -> 27.84 | Hurt |
| add retrieval-based re-sampling of API pairs (dist., code) (ablation) | TranX Man+Mine+API · CoNaLa test | BLEU: 27.84 -> 30.69 | Improved |
| retrieve by code snippet instead of NL intent (dist.) (ablation) | TranX Man+Mine+API · CoNaLa test | BLEU: 29.31 -> 30.69 | Improved |
| distribution re-sampling instead of direct retrieval (code target) (ablation) | TranX Man+Mine+API · CoNaLa test | BLEU: 30.26 -> 30.69 | Improved |
| distribution re-sampling instead of direct retrieval (intent target) (ablation) | TranX Man+Mine+API · CoNaLa test | BLEU: 29.66 -> 29.31 | Hurt |
| add external knowledge on top of hypothesis reranking | TranX +rerank · CoNaLa test | BLEU: 30.11 -> 32.26 | Improved |
| add API docs to pre-training (ablation) | TranX Man+Mine · CoNaLa test, high API frequency split | BLEU: 28.67 -> 30.91 | Improved |
| add API docs to pre-training (ablation) | TranX Man+Mine · CoNaLa test, low API frequency split | BLEU: 27.55 -> 30.05 | Improved |
| add external resources to pre-training | TranX · CoNaLa test, API call tokens | token accuracy: 31.5% -> 36.8% | Improved |
| add external resources to pre-training | TranX · CoNaLa test, variable name tokens | token accuracy: 41.2% -> 43.0% | Improved |
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- Execution-Based Evaluation for Open-Domain Code Generation (EMNLP 2023 · similarity 0.88)
- DocCGen: Document-based Controlled Code Generation (EMNLP 2024 · similarity 0.87)
- Python Code Generation by Asking Clarification Questions (ACL 2023 · similarity 0.86)
- JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generation (EMNLP 2019 · similarity 0.86)
- A Syntactic Neural Model for General-Purpose Code Generation (ACL 2017 · similarity 0.86)
- LLM-Assisted Code Cleaning For Training Accurate Code Generators (ICLR 2024 · similarity 0.86)
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.