Research map / Large language models / Language, safety and interpretability
The impact of lexical and grammatical processing on generating code from natural language
Nathanaël Beau, Benoît Crabbé
Université de Paris · onepoint
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
10improved
2no clear effect
1hurt
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 variable/list substitution (ablation) | bi-LSTM, no grammar, no PN · CoNaLa dev | BLEU: 21.05 -> 31.17 | Improved |
| add variable/list substitution (ablation) | bi-LSTM, no grammar, no PN · Django dev | BLEU: 42.58 -> 70.4 | Improved |
| add list replacement (ablation) | full model · CoNaLa dev | BLEU: 30.66 -> 37.99 | Improved |
| use BERT encoder instead of bi-LSTM (ablation) | models with substitution · CoNaLa dev | BLEU: about +6 marginal BLEU | Improved |
| add BERT encoder (ablation) | full model with grammar, PN · CoNaLa dev | BLEU: 32.86 -> 37.99 | Improved |
| add grammatical constraints (ablation) | models with substitution · Django dev | BLEU: about equal (76.97 vs 76.32 with BERT) | No clear effect |
| add grammatical constraints without substitution (ablation) | models without substitution · CoNaLa dev | BLEU: 30.83 -> 25.88 | Hurt |
| add grammatical constraints (ablation) | BERT + substitution + PN · CoNaLa dev | exact match accuracy: 5 -> 7.5 | Improved |
| add pointer network (ablation) | models without substitution · Django dev | exact match accuracy: 26.86 -> 62.85 | Improved |
| add pointer network (ablation) | models with substitution, no grammar · CoNaLa dev | BLEU: 31.17 -> 32.10 | No clear effect |
| add grammar (ablation) | BERT + substitution · syntactic validity of output | percent valid: 92% -> 100% | Improved |
| add 100k mined examples | BERT + grammar + substitution + PN · CoNaLa dev | BLEU: 37.99 -> 39.01 | 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
- Natural Language to Code Translation with Execution (EMNLP 2022 · similarity 0.85)
- It's not a Non-Issue: Negation as a Source of Error in Machine Translation (EMNLP 2020 · similarity 0.84)
- Large Language Models Meet NL2Code: A Survey (ACL 2023 · similarity 0.83)
- Code Generation from Natural Language with Less Prior Knowledge and More Monolingual Data (ACL 2021 · similarity 0.83)
- ERNIE-Code: Beyond English-Centric Cross-lingual Pretraining for Programming Languages (ACL 2023 · similarity 0.83)
- How (Non-)Optimal is the Lexicon? (NAACL 2021 · similarity 0.83)
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.