arrow
返回

Automatic bi-modal question title generation for Stack Overflow with prompt learning

delete2024-05-03
delete0
PRE
AI
S
Shaoyu Yang
陈翔 封面图
陈翔 (Xiang Chen) *
K
Ke Liu
G
Guang Yang
C
Chi Yu
DOI:10.1007/s10664-024-10466-4delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
When drafting question posts for Stack Overflow, developers may not accurately summarize the core problems in the question titles, which can cause these questions to not get timely help. Therefore, improving the quality of question titles has attracted the wide attention of researchers. An initial study aimed to automatically generate the titles by only analyzing the code snippets in the question body. However, this study ignored the helpful information in their corresponding problem descriptions. Therefore, we propose an approach SOTitle+ by considering bi-modal information (i.e., the code snippets and the problem descriptions) in the question body. Then we formalize the title generation for different programming languages as separate but related tasks and utilize multi-task learning to solve these tasks. Later we fine-tune the pre-trained language model CodeT5 to automatically generate the titles. Unfortunately, the inconsistent inputs and optimization objectives between the pre-training task and our investigated task may make fine-tuning hard to fully explore the knowledge of the pre-trained model. To solve this issue, SOTitle+ further prompt-tunes CodeT5 with hybrid prompts (i.e., mixture of hard and soft prompts). To verify the effectiveness of SOTitle+, we construct a large-scale high-quality corpus from recent data dumps shared by Stack Overflow. Our corpus includes 179,119 high-quality question posts for six popular programming languages. Experimental results show that SOTitle+ can significantly outperform four state-of-the-art baselines in both automatic evaluation and human evaluation. In addition, our ablation studies also confirm the effectiveness of component settings (such as bi-modal information, prompt learning, hybrid prompts, and multi-task learning) of SOTitle+. Our work indicates that considering bi-modal information and prompt learning in Stack Overflow title generation is a promising exploration direction.
Keyword:
Question Title Generation
Bi-modal Information
Code Snippet
Problem Description
Prompt Learning
Multi-task Learning

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

N
Nantong University
学者数:
1.9W
论文数: 1.1W
被引数: 2.0W
引用论文

引用论文

err分享
err收藏
Firefighting Acutely Increases Airway Responsiveness消防急性增加气道反应性
err1989-07-01
err0
PREAI
errCharles B. Sherman; Scott Barnhart; Mary F. Miller; Mark R. Segal; Moira Aitken; Robert Schoene; William Daniell; Linda Rosenstock
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
err分享
err收藏
Structural neural correlates of prosaccade and antisaccade eye movements in healthy humans
err2005-01-01
err0
PREAI
errUlrich Ettinger; Elena Antonova; Trevor J. Crawford; Martina T. Mitterschiffthaler; Sanchayita Goswani; Tonmoy Sharma; Veena Kumari
err分享
err收藏
Caveolin-1 and -2 regulate cell motility in castration-resistant prostate cancer
err2018-10-01
err0
errOAAI
errToyoharu Kamibeppu; Koji Yamasaki; Kozue Nakahara; Takahiro Nagai; Naoki Terada; Hiromasa Tsukino; Shoichiro Mukai; Toshiyuki Kamoto
err分享
err收藏
err分享
err收藏
Glomerular morphometry in reflux nephropathy: functional and radiological correlations
err1993-02-01
err0
PREAI
errShoichi Yoshiara; Richard H. R. White; Faro Raafat; Nicholas C. Smith; Kishore J. Shah
err分享
err收藏
学者 查看更多内容