Research map / Large language models / Language, safety and interpretability
Beyond Sequences: Two-dimensional Representation and Dependency Encoding for Code Generation
Xiangyu Zhang, Yu Zhou, Guang Yang, Wei Cheng, Taolue Chen
Nanjing University of Aeronautics and Astronautics · University of London
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.
On benchmark leaderboards
- HumanEval leaderboard pass@10 4.27 · rank 16 of 16 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use CoDE line-wise dependency encoding instead of positional encodings | 71M code LM · StarCoder code modeling, length 1,024 | perplexity: 3.28 vs FIRE 3.46, ALiBi 3.81 | Improved |
| use CoDE instead of ALiBi at length 4,096 | 71M code LM · StarCoder code modeling, length 4,096 | perplexity: 4.08 vs ALiBi 3.85 | Hurt |
| use CoDE instead of RoPE in-distribution (length 512) | 71M code LM · StarCoder code modeling, length 512 | perplexity: 4.46 vs RoPE 4.37 | No clear effect |
| use CoDE instead of best baseline | 71M code LM · LCC | CodeBLEU: 27.86 vs FIRE 26.64 | Improved |
| use CoDE instead of FIRE | 71M code LM · RepoBench | BLEU: 13.59 vs FIRE 14.45 | Hurt |
| use CoDE instead of RoPE | 71M code LM · HumanEval | pass@10: 3.05 -> 4.27 | Improved |
| use CoDE instead of ALiBi on Copy task | 10M model · Copy (avg accuracy) | accuracy: 0.25 -> 0.99 | Improved |
| use CoDE instead of ALiBi on Counting task | 10M model · Counting (avg accuracy) | accuracy: 0.58 -> 0.99 | Improved |
| add in-line modeling (attention restricted within lines) (ablation) | CoDE · StarCoder code modeling, length 4,096 | perplexity: 5.21 -> 4.08 | Improved |
| add PACE (ablation) | CoDE · StarCoder code modeling, length 4,096 | perplexity: 4.33 -> 4.08 | Improved |
| add MLP over attention-score terms (ablation) | CoDE · StarCoder code modeling, length 4,096 | perplexity: 4.71 -> 4.08 | Improved |
| suppress direct dependency attention term (d) (ablation) | CoDE · StarCoder code modeling, length 4,096 | perplexity: 4.87 -> 4.08 | 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
- Neural Code Comprehension: A Learnable Representation of Code Semantics (NeurIPS 2018 · similarity 0.88)
- Language-Agnostic Representation Learning of Source Code from Structure and Context (ICLR 2021 · similarity 0.87)
- Language Agnostic Code Embeddings (NAACL 2024 · similarity 0.87)
- Towards A Generalist Code Embedding Model Based On Massive Data Synthesis (NeurIPS 2025 · similarity 0.86)
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · similarity 0.86)
- Emergent Representations of Program Semantics in Language Models Trained on Programs (ICML 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.