scimeatlas

Research map / Large language models / Language, safety and interpretability

Python Code Generation by Asking Clarification Questions

Haau-Sing Li, Mohsen Mesgar, André F. T. Martins, Iryna Gurevych

ACL 2023Large language models › Language, safety and interpretabilityapproach: Controlled text generationopen problems in this approach36 citations (OpenAlex)

TU Darmstadt · Bosch Center for Artificial Intelligence · Instituto Superior Técnico · Unbabel · Instituto de Telecomunicações

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

12measured effects
6improved
1no clear effect
5hurt

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
add oracle clarification questions and answers to inputPLBART-base · CodeClarQA code generationBLEU: 24.63 -> 38.91Improved
add oracle CQAs to inputCodeT5-base · CodeClarQA code generationBLEU: 27.03 -> 39.13Improved
add oracle CQAs to inputGPT-Neo-1.3B · CodeClarQA code generationExact Match: 0.00 -> 0.00No clear effect
add oracle CQAs to inputCodeParrot-110M · CodeClarQA code generationExact Match: 0.10 -> 0.00Hurt
add oracle CQAs to inputCodeT5-base · CodeClarQA code generationExact Match: 10.84 -> 13.93Improved
add oracle CQAs to inputPLBART-base · CodeClarQA recall of missing key operations (micro)recall: 31.08 -> 92.72Improved
select top-5 ranked CQs and answer them from dataset instead of appending unanswered (ablation)PLBART-base pipeline · CodeClarQA pipelineBLEU: 13.20 -> 22.07Improved
use real pipeline instead of no CQsPLBART-base · CodeClarQA code generationBLEU: 24.63 -> 22.07Hurt
increase number of answered ranked CQs from top-1 to top-5 (ablation)CodeT5-base pipeline · CodeClarQA pipelineBLEU: 24.04 -> 26.27Improved
use BM25 negatives instead of random negatives for CQ ranker (ablation)BART-base · CodeClarQA CQ rankingR@10: 34.88 -> 21.44Hurt
use RoBERTa-base as clarification need predictorRoBERTa-base · CodeClarQA need predictionaccuracy: 71.49 (BERT) -> 64.94Hurt
use code/documentation-trained RFLHU-BERTOverflow encoder for missing-operation detection (ablation)missing-operation identification · CodeClarQA testF1: 82.86 -> 56.34Hurt

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.

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.

Open problems in controlled text generation

How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?

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