PTM4Tag: Sharpening Tag Recommendation of Stack Overflow Posts with Pre-trained Models
Not on the map. Why?
Abstract (arXiv)
Stack Overflow is often viewed as the most influential Software Question Answer (SQA) website with millions of programming-related questions and answers. Tags play a critical role in efficiently structuring the contents in Stack Overflow and are vital to support a range of site operations, e.g., querying relevant contents. Poorly selected tags often introduce extra noise and redundancy, which leads to tag synonym and tag explosion problems. Thus, an automated tag recommendation technique that can accurately recommend high-quality tags is desired to alleviate the problems mentioned above. Inspired by the recent success of pre-trained language models (PTMs) in natural language processing (NLP), we present PTM4Tag, a tag recommendation framework for Stack Overflow posts that utilize PTMs with a triplet architecture, which models the components of a post, i.e., Title, Description, and Code with independent language models. To the best of our knowledge, this is the first work that leverages PTMs in the tag recommendation task of SQA sites. We comparatively evaluate the performance of PTM4Tag based on five popular pre-trained models: BERT, RoBERTa, ALBERT, CodeBERT, and BERTOverflow. Our results show that leveraging the software engineering (SE) domain-specific PTM CodeBERT in PTM4Tag achieves the best performance among the five considered PTMs and outperforms the state-of-the-art deep learning (Convolutional Neural Network-based) approach by a large margin in terms of average Precision@k, Recall@k, and F1-score@k. We conduct an ablation study to quantify the contribution of a post's constituent components (Title, Description, and Code Snippets) to the performance of PTM4Tag. Our results show that Title is the most important in predicting the most relevant tags, and utilizing all the components achieves the best performance.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Mar 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 6; 2024: 7; 2025: 1.
15 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023How Can Recommender Systems Benefit from Large Language Models: A Surveycited by 141
- 2023When Large Language Models Meet Personalization: Perspectives of Challenges and Opportunitiescited by 89
- 2023ReLLa: Retrieval-enhanced Large Language Models for Lifelong Sequential Behavior Comprehension in Recommendationcited by 76
- 2024History, Development, and Principles of Large Language Models-An Introductory Surveycited by 30
- 2024Deep Learning Model Reuse in the HuggingFace Community: Challenges, Benefit and Trendscited by 12
- 2024Large Language Models Make Sample-Efficient Recommender Systemscited by 3
- 2022Diverse Title Generation for Stack Overflow Posts with Multiple Sampling Enhanced Transformercited by 2
- 2024Studying and Recommending Information Highlighting in Stack Overflow Answerscited by 2
- 2023Characterizing and Classifying Developer Forum Posts with their Intentionscited by 1
- 2024On Unified Prompt Tuning for Request Quality Assurance in Public Code Reviewcited by 1
- 2024StackRAG Agent: Improving Developer Answers with Retrieval-Augmented Generationcited by 1
3 more
- 2023Skill over Scale: The Case for Medium, Domain-Specific Models for SEcited by 0
- 2024Knowledge-Guided Prompt Learning for Request Quality Assurance in Public Code Reviewcited by 0
- 2025ArchISMiner: A Framework for Automatic Mining of Architectural Issue-Solution Pairs from Online Developer Communitiescited by 0
- 2025ArchISMiner: A Framework for Automatic Mining of Architectural Issue-Solution Pairs from Online Developer Communities24 Oct 2025
- 2024Knowledge-Guided Prompt Learning for Request Quality Assurance in Public Code Review29 Oct 2024
- 2024StackRAG Agent: Improving Developer Answers with Retrieval-Augmented Generation19 Jun 2024
- 2024Large Language Models Make Sample-Efficient Recommender Systems4 Jun 2024
- 2024On Unified Prompt Tuning for Request Quality Assurance in Public Code Review11 Apr 2024
- 2024History, Development, and Principles of Large Language Models-An Introductory Survey10 Feb 2024
- 2024Deep Learning Model Reuse in the HuggingFace Community: Challenges, Benefit and Trends24 Jan 2024
- 2024Studying and Recommending Information Highlighting in Stack Overflow Answers3 Jan 2024
- 2023Characterizing and Classifying Developer Forum Posts with their Intentions21 Dec 2023
- 2023ReLLa: Retrieval-enhanced Large Language Models for Lifelong Sequential Behavior Comprehension in Recommendation22 Aug 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023When Large Language Models Meet Personalization: Perspectives of Challenges and Opportunities31 Jul 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023How Can Recommender Systems Benefit from Large Language Models: A Surveycited by 141
- 2023When Large Language Models Meet Personalization: Perspectives of Challenges and Opportunitiescited by 89
- 2023ReLLa: Retrieval-enhanced Large Language Models for Lifelong Sequential Behavior Comprehension in Recommendationcited by 76
- 2024History, Development, and Principles of Large Language Models-An Introductory Surveycited by 30
- 2024Deep Learning Model Reuse in the HuggingFace Community: Challenges, Benefit and Trendscited by 12
- 2024Large Language Models Make Sample-Efficient Recommender Systemscited by 3
- 2022Diverse Title Generation for Stack Overflow Posts with Multiple Sampling Enhanced Transformercited by 2
- 2024Studying and Recommending Information Highlighting in Stack Overflow Answerscited by 2
- 2023Characterizing and Classifying Developer Forum Posts with their Intentionscited by 1
- 2024On Unified Prompt Tuning for Request Quality Assurance in Public Code Reviewcited by 1
- 2023Skill over Scale: The Case for Medium, Domain-Specific Models for SEcited by 0
12 most cited of 14 All 14 (JSON)
- 2025ArchISMiner: A Framework for Automatic Mining of Architectural Issue-Solution Pairs from Online Developer Communities24 Oct 2025
- 2024Knowledge-Guided Prompt Learning for Request Quality Assurance in Public Code Review29 Oct 2024
- 2024Large Language Models Make Sample-Efficient Recommender Systems4 Jun 2024
- 2024On Unified Prompt Tuning for Request Quality Assurance in Public Code Review11 Apr 2024
- 2024History, Development, and Principles of Large Language Models-An Introductory Survey10 Feb 2024
- 2024Deep Learning Model Reuse in the HuggingFace Community: Challenges, Benefit and Trends24 Jan 2024
- 2024Studying and Recommending Information Highlighting in Stack Overflow Answers3 Jan 2024
- 2023Characterizing and Classifying Developer Forum Posts with their Intentions21 Dec 2023
- 2023ReLLa: Retrieval-enhanced Large Language Models for Lifelong Sequential Behavior Comprehension in Recommendation22 Aug 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023When Large Language Models Meet Personalization: Perspectives of Challenges and Opportunities31 Jul 2023
- 2023How Can Recommender Systems Benefit from Large Language Models: A Survey9 Jun 2023
12 newest of 14 All 14 (JSON)