好事成三:利用预训练模型、自我改进与帖子排序生成SO帖子标题
Good things come in three: Generating SO Post Titles with Pre-Trained Models, Self Improvement and Post Ranking
AI总结:
针对Stack Overflow帖子标题生成质量不足的问题,提出融合预训练模型微调、自我改进机制与后排序的FILLER方法,在基准测试和用户研究中均显著优于多个基线模型。
摘要:
Stack Overflow是一个知名的问答论坛,为开发者提供编程相关问题的合适资源查询支持。拥有高质量的问题标题是吸引开发者注意力的有效方式。遗憾的是,这一点往往被低估,仍存在提升空间。已有相关研究开展,主要利用预训练模型从代码片段和问题描述生成标题。然而,生成高质量标题仍是一项具有挑战性的任务,原因既包括输入数据的质量问题(如包含噪声和歧义),也源于序列生成模型的固有约束。本文提出FILLER方案,通过结合自我改进机制与帖子排序的微调语言模型生成Stack Overflow帖子标题。本研究聚焦于优化预训练语言模型以生成Stack Overflow帖子标题,采用“先训练后微调”的模型范式。为此,我们将模型的预测结果融入训练过程,使其能从自身错误中学习,从而减轻暴露偏差的影响。此外,我们应用后排序方法生成多个候选样本,随后选出最合适的一个。为评估FILLER,我们使用基准数据集开展实验,实证结果表明该模型能提供高质量的推荐结果。此外,它的性能显著优于所有基线模型,包括Code2Que、SOTitle、CCBERT、M3NSCT5和GPT3.5-turbo。用户研究也显示,相较于SOTitle和GPT3.5-turbo,FILLER生成的标题相关性更强。
英文摘要:
Stack Overflow is a prominent Q and A forum, supporting developers in seeking suitable resources on programming-related matters. Having high-quality question titles is an effective means to attract developers' attention. Unfortunately, this is often underestimated, leaving room for improvement. Research has been conducted, predominantly leveraging pre-trained models to generate titles from code snippets and problem descriptions. Yet, getting high-quality titles is still a challenging task, attributed to both the quality of the input data (e.g., containing noise and ambiguity) and inherent constraints in sequence generation models. In this paper, we present FILLER as a solution to generating Stack Overflow post titles using a fine-tuned language model with self-improvement and post ranking. Our study focuses on enhancing pre-trained language models for generating titles for Stack Overflow posts, employing a training and subsequent fine-tuning paradigm for these models. To this end, we integrate the model's predictions into the training process, enabling it to learn from its errors, thereby lessening the effects of exposure bias. Moreover, we apply a post-ranking method to produce a variety of sample candidates, subsequently selecting the most suitable one. To evaluate FILLER, we perform experiments using benchmark datasets, and the empirical findings indicate that our model provides high-quality recommendations. Moreover, it significantly outperforms all the baselines, including Code2Que, SOTitle, CCBERT, M3NSCT5, and GPT3.5-turbo. A user study also shows that FILLER provides more relevant titles, with respect to SOTitle and GPT3.5-turbo.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。