Lune

ACL2021顶会

Exploring Dynamic Selection of Branch Expansion Orders for Code Generation

Hui Jiang, Chulun Zhou, Fandong Meng, Biao Zhang, Jie Zhou, Degen Huang, Qingqiang Wu, Jinsong Su

摘要

Due to the great potential in facilitating software development, code generation has attracted increasing attention recently. Generally, dominant models are Seq2Tree models, which convert the input natural language description into a sequence of tree-construction actions corresponding to the pre-order traversal of an Abstract Syntax Tree (AST). However, such a traversal order may not be suitable for handling all multi-branch nodes. In this paper, we propose to equip the Seq2Tree model with a context-based Branch Selector, which is able to dynamically determine optimal expansion orders of branches for multi-branch nodes. Particularly, since the selection of expansion orders is a non-differentiable multi-step operation, we optimize the selector through reinforcement learning, and formulate the reward function as the difference of model losses obtained through different expansion orders. Experimental results and in-depth analysis on several commonly-used datasets demonstrate the effectiveness and generality of our approach. We have released our code at https: //github.com/DeepLearnXMU/CG-RL.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Improving Tree-Structured Decoder Training for Code Generation via Mutual Learning 引用了 TreeGen: A Tree-Based Transformer Architecture for Code Generation
  • Bridging Subword Gaps in Pretrain-Finetune Paradigm for Natural Language Generation 引用了 Improving Tree-Structured Decoder Training for Code Generation via Mutual Learning
  • Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Models 引用了 When to Stop? Towards Efficient Code Generation in LLMs with Excess Token Prevention
  • CODEP: Grammatical Seq2Seq Model for General-Purpose Code Generation 引用了 Improving Tree-Structured Decoder Training for Code Generation via Mutual Learning
  • CODEP: Grammatical Seq2Seq Model for General-Purpose Code Generation 引用了 TreeGen: A Tree-Based Transformer Architecture for Code Generation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. CODEP: Grammatical Seq2Seq Model for General-Purpose Code GenerationYihong Dong, Ge Li, Zhi JinISSTA 2023 · 18 次引用
  2. When to Stop? Towards Efficient Code Generation in LLMs with Excess Token PreventionLianghong Guo, Yanlin Wang, Ensheng Shi, Wanjun Zhong 等ISSTA 2024 · 16 次引用
  3. Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language ModelsYanlin Wang, Tianyue Jiang, Mingwei Liu, Jiachi Chen 等FSE 2025 · 6 次引用
  4. Bridging Subword Gaps in Pretrain-Finetune Paradigm for Natural Language GenerationXin Liu, Baosong Yang, Dayiheng Liu, Haibo Zhang 等ACL 2021

它引用的 Paper3

  1. TreeGen: A Tree-Based Transformer Architecture for Code GenerationZeyu Sun, Qihao Zhu, Yingfei Xiong, Yican Sun 等AAAI 2020 · 196 次引用
  2. Dynamic Context Selection for Document-level Neural Machine Translation via Reinforcement LearningXiaomian Kang, Yang Zhao, Jiajun Zhang, Chengqing ZongEMNLP 2020 · 61 次引用
  3. Improving Tree-Structured Decoder Training for Code Generation via Mutual LearningBinbin Xie, Jinsong Su, Yubin Ge, Xiang Li 等AAAI 2021 · 30 次引用

相关 Paper

  1. StepCoder: Improving Code Generation with Reinforcement Learning from Compiler FeedbackShihan Dou, Yan Liu, Haoxiang Jia, Enyu Zhou 等ACL 2024 · 12 次引用
  2. CodeRM-NT: Reward Model for Code RL without Unit TestsXiao Xia, Dan Zhang, Tianrui SunACL Findings 2026
  3. Compilable Neural Code Generation with Compiler FeedbackXin Wang, Yasheng Wang, Yao Wan, Fei Mi 等ACL Findings 2022 · 46 次引用
  4. TAG : Type Auxiliary Guiding for Code Comment GenerationRuichu Cai, Zhihao Liang, Boyan Xu, Zijian Li 等ACL 2020 · 21 次引用
  5. Multi-Agent Reinforcement Learning Meets Leaf Sequencing in RadiotherapyRiqiang Gao, Florin-Cristian Ghesu, Simon Arberet, Shahab Basiri 等ICML 2024 · 5 次引用
黄昏的海面,两侧是细线勾勒的悬崖