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

利用大语言模型解决第三方库推荐中的流行度偏差问题

Addressing Popularity Bias in Third-Party Library Recommendations Using LLMs

Claudio Di Sipio, Juri Di Rocco, Davide Di Ruscio, Vladyslav Bulhakov

AI总结:

本研究探究大语言模型解决第三方库推荐中流行度偏差的能力,通过消融实验发现微调与惩罚机制虽能提升多样性但无法解决偏差,并指出局限与改进方向。

摘要:

软件工程推荐系统(RSSE)通过根据开发者上下文提供相关建议,在自动化开发任务中发挥着关键作用。然而,这类系统存在所谓的流行度偏差问题,即倾向于推荐可能与当前任务无关的热门项目。尤其是长尾效应会损害系统的准确性表现,进而导致推荐结果中出现误报。基础模型是最先进的生成式人工智能模型,已在多项软件工程任务中取得了相关成果。\n本文旨在探究大语言模型(LLMs)解决第三方库(TPLs)推荐系统中流行度偏差的能力。我们开展了一项消融研究,对包括微调与流行度惩罚机制在内的多种缓解流行度偏差的前沿技术进行实验。研究结果表明,即便微调与后处理惩罚机制有助于提升推荐结果的整体多样性,所考察的LLMs仍无法解决第三方库推荐器中的流行度偏差问题。此外,我们讨论了LLMs在该场景下的局限性,并提出了缓解第三方库推荐器中流行度偏差的潜在改进方向,为该领域的后续实验铺平了道路。

英文摘要:

Recommender systems for software engineering (RSSE) play a crucial role in automating development tasks by providing relevant suggestions according to the developer's context. However, they suffer from the so-called popularity bias, i.e., the phenomenon of recommending popular items that might be irrelevant to the current task. In particular, the long-tail effect can hamper the system's performance in terms of accuracy, thus leading to false positives in the provided recommendations. Foundation models are the most advanced generative AI-based models that achieve relevant results in several SE tasks. This paper aims to investigate the capability of large language models (LLMs) to address the popularity bias in recommender systems of third-party libraries (TPLs). We conduct an ablation study experimenting with state-of-the-art techniques to mitigate the popularity bias, including fine-tuning and popularity penalty mechanisms. Our findings reveal that the considered LLMs cannot address the popularity bias in TPL recommenders, even though fine-tuning and post-processing penalty mechanism contributes to increasing the overall diversity of the provided recommendations. In addition, we discuss the limitations of LLMs in this context and suggest potential improvements to address the popularity bias in TPL recommenders, thus paving the way for additional experiments in this direction.

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

↑