scimeatlas

Research map / Large language models / Agents, code and math

Evaluating In-Context Learning of Libraries for Code Generation

Arkil Patel, Siva Reddy, Dzmitry Bahdanau, Pradeep Dasigi

NAACL 2024Large language models › Agents, code and mathapproach: Code generation benchmarksopen problems in this approach30 citations (OpenAlex)

Mila · ServiceNow Research · Allen Institute for AI

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
2improved
5no clear effect
6hurt

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 changedWhereMeasuredEffect
Alias Isabelle keywords with random strings (demonstrations) (ablation)GPT-4 · miniF2F algebra Isabelleproof correctness (%): 39.3 -> 31.4Hurt
Alias Isabelle keywords with random strings (demonstrations) (ablation)GPT-3.5-Turbo · miniF2F algebra Isabelleproof correctness (%): 30.0 -> 9.29Hurt
Alias Isabelle keywords with random strings (description) (ablation)GPT-3.5-Turbo · miniF2F algebra Isabelleproof correctness (%): 7.86 -> 0.00Hurt
Alias Isabelle keywords with random strings (description) (ablation)GPT-4 · miniF2F algebra Isabelleproof correctness (%): 15.0 -> 7.86Hurt
Alias Isabelle keywords with synonyms instead of random strings (ablation)GPT models · miniF2F algebra Isabelleproof correctnessNo clear effect
Constrain model to use functions defined in-context (ablation)GPT-4 and GPT-3.5-Turbo · NL2Python (CodeContests/APPS)execution accuracyHurt
Change in-context supervision format (demonstrations, description, implementation) (ablation)GPT-4 and GPT-3.5-Turbo · constrained NL2Pythonexecution accuracyNo clear effect
Use GPT-4 instead of GPT-3.5 for constrained generationconstrained NL2Python · function usage % (all, demonstrations)function usage: 20.25 -> 89.92Improved
Use descriptions or implementations instead of demonstrations (ablation)GPT-4 · VisProg taskstask performanceNo clear effect
Use descriptions or implementations instead of demonstrations (ablation)models other than GPT-4 · VisProg taskstask performanceHurt
Alias VisProg function names with synonyms or random strings (ablation)GPT-4 · VisProgtask performanceNo clear effect
Add unpaired VisProg programs to descriptions or implementations (ablation)GPT-3.5, Llama-2, CodeLlama, StarCoder · GQAaccuracyImproved

Open problems in code generation benchmarks

Do code benchmarks and methods hold beyond Python, small test sets and leaked data?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy