LEGION: Harnessing Pre-trained Language Models for GitHub Topic Recommendations with Distribution-Balance Loss
Not on the map. Why?
Abstract (arXiv)
Open-source development has revolutionized the software industry by promoting collaboration, transparency, and community-driven innovation. Today, a vast amount of various kinds of open-source software, which form networks of repositories, is often hosted on GitHub - a popular software development platform. To enhance the discoverability of the repository networks, i.e., groups of similar repositories, GitHub introduced repository topics in 2017 that enable users to more easily explore relevant projects by type, technology, and more. It is thus crucial to accurately assign topics for each GitHub repository. Current methods for automatic topic recommendation rely heavily on TF-IDF for encoding textual data, presenting challenges in understanding semantic nuances. This paper addresses the limitations of existing techniques by proposing Legion, a novel approach that leverages Pre-trained Language Models (PTMs) for recommending topics for GitHub repositories. The key novelty of Legion is three-fold. First, Legion leverages the extensive capabilities of PTMs in language understanding to capture contextual information and semantic meaning in GitHub repositories. Second, Legion overcomes the challenge of long-tailed distribution, which results in a bias toward popular topics in PTMs, by proposing a Distribution-Balanced Loss (DB Loss) to better train the PTMs. Third, Legion employs a filter to eliminate vague recommendations, thereby improving the precision of PTMs. Our empirical evaluation on a benchmark dataset of real-world GitHub repositories shows that Legion can improve vanilla PTMs by up to 26% on recommending GitHubs topics. Legion also can suggest GitHub topics more precisely and effectively than the state-of-the-art baseline with an average improvement of 20% and 5% in terms of Precision and F1-score, respectively.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 22 of its 62 references that are in the map. First posted on arXiv 9 Mar 2024.
Builds on
22 of 62 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
- 2020Distribution-Balanced Loss for Multi-Label Classification in Long-Tailed Datasetscited by 122
- 2015Relay Backpropagation for Effective Learning of Deep Convolutional Neural Networkscited by 115
- 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
- 2019Learning to Learn and Predict: A Meta-Learning Approach for Multi-Label Classificationcited by 35
10 more
- 2021Balancing Methods for Multi-label Text Classification with Long-Tailed Class Distributioncited by 34
- 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 27
- 2020Topic Recommendation for Software Repositories using Multi-label Classification Algorithmscited by 20
- 2022AutoPruner: Transformer-Based Call Graph Pruningcited by 11
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoningcited by 11
- 2023CHRONOS: Time-Aware Zero-Shot Identification of Libraries from Vulnerability Reportscited by 7
- 2022Prompt-tuned Code Language Model as a Neural Knowledge Base for Type Inference in Statically-Typed Partial Codecited by 6
- 2023Beware of the Unexpected: Bimodal Taint Analysiscited by 5
- 2023Are We Ready to Embrace Generative AI for Software Q&A?cited by 5
- 2023Evaluating Transfer Learning for Simplifying GitHub READMEscited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.