Research map / Large language models / Agents, code and math
DocCGen: Document-based Controlled Code Generation
Sameer Pimparkhede, Mehant Kammakomati, Srikanth G. Tamilselvam, Prince Kumar, Ashok Pon Kumar, Pushpak Bhattacharyya
IIT Bombay
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 schema-based constrained decoding on top of retrieval (IR -> IR+CD) (ablation) | StarCoder2 3B · NL to Ansible-YAML OOD | Schema Correct: 7.47 -> 58.82 | Improved |
| add library retrieval with top-1 template constraint (no CD) (ablation) | StarCoder2 3B · NL to Bash TLDR OOD | Token F1: 34.22 -> 41.67 | Improved |
| add constrained decoding on top of retrieval (ablation) | StarCoder2 7B · NL to Bash TLDR ID | Token F1: 54.77 -> 57.64 | Improved |
| extended pre-training on man pages / Ansible docs before fine-tuning (ablation) | StarCoder2 3B · NL to Bash TLDR OOD | Token F1 and Exact Match: Token F1 34.22 -> 35.53; Exact Match 4.09 -> 3.38 | No clear effect |
| use DocCGen instead of DocPrompting | GPT Neo 1.3B · NL to Bash TLDR OOD | Token F1: 37.24 -> 41.26 | Improved |
| retrieve utility descriptions only (1.5k docs) instead of passages with options (400k docs) | DocCGen IR stage · NL to Bash TLDR OOD | CMD Acc (%): 27.59 -> 38.32 | Improved |
| fine-tune ColBERTv2 instead of using it zero-shot (ablation) | ColBERTv2 retriever · NL to Bash Hits@1, ID vs OOD | Hits@1: ID 53.43 -> 61.62; OOD 38.32 -> 32.21 | Mixed |
| use dense ColBERTv2 instead of BM25 (ablation) | retriever · NL to Bash TLDR OOD | Hits@1: 14.51 -> 38.32 | Improved |
| allow more retrieved templates (k=1 -> 3 -> 10) in constrained decoding (ablation) | StarCoder2 3B · NL to Bash TLDR OOD | CMD Acc (%): 38.32 -> 27.33 -> 25.31 | Hurt |
| add constrained decoding on top of retrieval (ablation) | CodeLlama 34B 3-shot · NL to Ansible-YAML OOD | Schema Correct: 13.18 -> 65.72 | Improved |
| add retrieval only (no CD) to the base model (ablation) | StarCoder2 3B · NL to Ansible-YAML OOD | Ansible Aware: 5.80 -> 4.08 | Hurt |
| replace fine-tuned model by retrieval-constrained model (top-1 library) | StarCoder2 7B · NL to Ansible-YAML ID | Module Acc (%): 77.95 -> 68.45 | Hurt |
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories (ACL 2024 · similarity 0.88)
- AutoCodeBench: Large Language Models are Automatic Code Benchmark Generators (ICLR 2026 · similarity 0.88)
- JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generation (EMNLP 2019 · similarity 0.88)
- EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluations (NeurIPS 2024 · similarity 0.87)
- LLM-Assisted Code Cleaning For Training Accurate Code Generators (ICLR 2024 · similarity 0.87)
- CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules (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.