arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.04447cs.CL
收藏

阅读StackOverflow鼓励作弊:添加问题文本可改进提取代码生成

Reading StackOverflow Encourages Cheating: Adding Question Text Improves Extractive Code Generation

Rensselaer Polytechnic Institute(伦斯勒理工学院)

Gabriel Orlanski, Alex Gittens

摘要:

仅使用标题来描述编程问题是困难的,因为省略了突出的上下文信息。基于这一观察,我们提出了一个超过40,000个StackOverflow问题文本的语料库,与来自CoNaLa数据集的相应意图结合使用(Yin等人,2018年)。使用意图和问题主体,我们使用BART为这个新任务建立了34.35的基线BLEU分数。我们发现进一步的改进$2.8\%$通过结合挖掘的CoNaLa数据与标记的数据,以实现35.32 BLEU得分。我们使用这些额外的数据评估了现有的最先进的CoNaLa模型,发现我们提出的使用身体和挖掘数据的方法击败了$71.96\%$的现有最先进的BLEU评分。最后,我们执行消融证明BART是一个无监督的多模态学习器,并检查其提取行为。代码和数据可以在https://github.com/gabeorlanski/stackoverflow-encourages-cheating上找到。

英文摘要:

Answering a programming question using only its title is difficult as salient contextual information is omitted. Based on this observation, we present a corpus of over 40,000 StackOverflow question texts to be used in conjunction with their corresponding intents from the CoNaLa dataset (Yin et al., 2018). Using both the intent and question body, we use BART to establish a baseline BLEU score of 34.35 for this new task. We find further improvements of $2.8\%$ by combining the mined CoNaLa data with the labeled data to achieve a 35.32 BLEU score. We evaluate prior state-of-the-art CoNaLa models with this additional data and find that our proposed method of using the body and mined data beats the BLEU score of the prior state-of-the-art by $71.96\%$. Finally, we perform ablations to demonstrate that BART is an unsupervised multimodal learner and examine its extractive behavior. The code and data can be found https://github.com/gabeorlanski/stackoverflow-encourages-cheating.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑