A Needle in a Haystack: Intent-driven Reusable Artifacts Recommendation with LLMs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Jin, Dongming, Jin, Zhi, Chen, Xiaohong, Fang, Zheng, Li, Linyu, He, Yuanpeng, Li, Jia, Zhang, Yirang, Fang, Yingtao
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918216167587840
author Jin, Dongming
Jin, Zhi
Chen, Xiaohong
Fang, Zheng
Li, Linyu
He, Yuanpeng
Li, Jia
Zhang, Yirang
Fang, Yingtao
author_facet Jin, Dongming
Jin, Zhi
Chen, Xiaohong
Fang, Zheng
Li, Linyu
He, Yuanpeng
Li, Jia
Zhang, Yirang
Fang, Yingtao
contents In open source software development, the reuse of existing artifacts has been widely adopted to avoid redundant implementation work. Reusable artifacts are considered more efficient and reliable than developing software components from scratch. However, when faced with a large number of reusable artifacts, developers often struggle to find artifacts that can meet their expected needs. To reduce this burden, retrieval-based and learning-based techniques have been proposed to automate artifact recommendations. Recently, Large Language Models (LLMs) have shown the potential to understand intentions, perform semantic alignment, and recommend usable artifacts. Nevertheless, their effectiveness has not been thoroughly explored. To fill this gap, we construct an intent-driven artifact recommendation benchmark named IntentRecBench, covering three representative open source ecosystems. Using IntentRecBench, we conduct a comprehensive comparative study of five popular LLMs and six traditional approaches in terms of precision and efficiency. Our results show that although LLMs outperform traditional methods, they still suffer from low precision and high inference cost due to the large candidate space. Inspired by the ontology-based semantic organization in software engineering, we propose TreeRec, a feature tree-guided recommendation framework to mitigate these issues. TreeRec leverages LLM-based semantic abstraction to organize artifacts into a hierarchical semantic tree, enabling intent and function alignment and reducing reasoning time. Extensive experiments demonstrate that TreeRec consistently improves the performance of diverse LLMs across ecosystems, highlighting its generalizability and potential for practical deployment.
format Preprint
id arxiv_https___arxiv_org_abs_2511_18343
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Needle in a Haystack: Intent-driven Reusable Artifacts Recommendation with LLMs
Jin, Dongming
Jin, Zhi
Chen, Xiaohong
Fang, Zheng
Li, Linyu
He, Yuanpeng
Li, Jia
Zhang, Yirang
Fang, Yingtao
Software Engineering
In open source software development, the reuse of existing artifacts has been widely adopted to avoid redundant implementation work. Reusable artifacts are considered more efficient and reliable than developing software components from scratch. However, when faced with a large number of reusable artifacts, developers often struggle to find artifacts that can meet their expected needs. To reduce this burden, retrieval-based and learning-based techniques have been proposed to automate artifact recommendations. Recently, Large Language Models (LLMs) have shown the potential to understand intentions, perform semantic alignment, and recommend usable artifacts. Nevertheless, their effectiveness has not been thoroughly explored. To fill this gap, we construct an intent-driven artifact recommendation benchmark named IntentRecBench, covering three representative open source ecosystems. Using IntentRecBench, we conduct a comprehensive comparative study of five popular LLMs and six traditional approaches in terms of precision and efficiency. Our results show that although LLMs outperform traditional methods, they still suffer from low precision and high inference cost due to the large candidate space. Inspired by the ontology-based semantic organization in software engineering, we propose TreeRec, a feature tree-guided recommendation framework to mitigate these issues. TreeRec leverages LLM-based semantic abstraction to organize artifacts into a hierarchical semantic tree, enabling intent and function alignment and reducing reasoning time. Extensive experiments demonstrate that TreeRec consistently improves the performance of diverse LLMs across ecosystems, highlighting its generalizability and potential for practical deployment.
title A Needle in a Haystack: Intent-driven Reusable Artifacts Recommendation with LLMs
topic Software Engineering
url https://arxiv.org/abs/2511.18343