Research map / Large language models / Agents, code and math
Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completion
Hengzhi Pei, Jinman Zhao, Leonard Lausen, Sheng Zha, George Karypis
University of Illinois, Urbana Champaign · Amazon
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 function implementation context at inference | CodeGen-MONO · CallArgs test, unidirectional | EM: 43.45 -> 46.26 | Improved |
| add function usage context at inference | CodeGen-MONO · CallArgs test, unidirectional | EM: 43.45 -> 52.99 | Improved |
| fine-tune with implementation and usage contexts instead of local context alone | CodeT5-base · CallArgs test, unidirectional | EM: 47.16 -> 62.73 | Improved |
| fine-tune with implementation and usage contexts instead of local context alone | CodeT5-base · CallArgs test, in-filling | EM: 56.59 -> 69.28 | Improved |
| add function implementation context (ablation) | CodeT5-base · CallArgs test, unidirectional | EM: 47.16 -> 52.66 | Improved |
| add function usage context (ablation) | CodeT5-base · CallArgs test, unidirectional | EM: 47.16 -> 58.95 | Improved |
| add function implementation context (ablation) | CodeT5-base · CallArgs test, in-filling | EM: 56.59 -> 60.22 | Improved |
| add function usage context (ablation) | CodeT5-base · CallArgs test, in-filling | EM: 56.59 -> 65.57 | Improved |
| increase each of 3 usage-context length budgets from 64 to 128 (ablation) | CodeT5-base · CallArgs test, unidirectional | EM: 61.59 -> 62.73 | Improved |
| increase the number of usage contexts at a fixed length budget (ablation) | CodeT5-base · CallArgs test, unidirectional | EM: 63.00; 62.87 | No clear effect |
| copy arguments from a similar usage above a threshold instead of relying only on the model (ablation) | CodeT5-base with implementation context · CallArgs test, unidirectional | EM: 52.66 -> 56.26 | Improved |
| use usage examples during training rather than only copying a matching usage (ablation) | CodeT5-base · CallArgs test, unidirectional | EM: 56.26; 57.61; 61.59 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- CodeT5-base — CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation (EMNLP 2021) · better on 4 of 4 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Closest papers by meaning
- BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (ICLR 2025 · similarity 0.88)
- Toward Interactive Understanding of Code APIs (NeurIPS 2026 · similarity 0.85)
- From Guessing to Placeholding: A Cost-Theoretic Framework for Uncertainty-Aware Code Completion (ICML 2026 · similarity 0.85)
- SemCoder: Training Code Language Models with Comprehensive Semantics Reasoning (NeurIPS 2024 · similarity 0.85)
- The Berkeley Function Calling Leaderboard (BFCL): From Tool Use to Agentic Evaluation of Large Language Models (ICML 2025 · similarity 0.85)
- CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution (ICML 2024 · similarity 0.85)
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.
