arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.15353cs.CLcs.AR
收藏

面向EDA工具文档问答的定制化检索增强生成与基准测试

Customized Retrieval Augmented Generation and Benchmarking for EDA Tool Documentation QA

The Chinese University of Hong Kong(香港中文大学);ChatEDA Tech(ChatEDA科技公司);Shanghai AI Laboratory(上海人工智能实验室)

Yuan Pu, Zhuolun He, Tairu Qiu, Haoyuan Wu, Bei Yu

AI总结:

本文提出面向EDA工具文档问答的定制化RAG框架,包含对比学习微调、LLM蒸馏重排序器和生成式LLM微调三项技术,并发布OpenROAD平台基准ORD-QA,实验证明其性能优于现有最先进方法。

摘要:

检索增强生成(RAG)通过从外部数据库获取事实信息,提升了生成式AI模型的准确性与可靠性,被广泛应用于基于文档的问答(QA)任务中。现成的RAG流程在通用文档上经过了良好的预训练,但应用于电子设计自动化(EDA)等知识密集型垂直领域时,仍面临重大挑战。本文通过提出一种定制化RAG框架及三种针对EDA工具文档QA的领域特定技术来解决此问题,包括用于文本嵌入模型微调的对比学习方案、从专有大语言模型(LLM)蒸馏出的重排序器,以及使用高质量领域语料库微调的生成式LLM。此外,我们开发并发布了文档QA评估基准ORD-QA,用于先进的RTL-to-GDSII设计平台OpenROAD。实验结果表明,与最先进方法相比,我们提出的RAG流程和技术在ORD-QA及一款商业工具上均取得了卓越的性能。ORD-QA基准和定制化RAG流程的训练数据集已在https://github.com/lesliepy99/RAG-EDA开源。

英文摘要:

Retrieval augmented generation (RAG) enhances the accuracy and reliability of generative AI models by sourcing factual information from external databases, which is extensively employed in document-grounded question-answering (QA) tasks. Off-the-shelf RAG flows are well pretrained on general-purpose documents, yet they encounter significant challenges when being applied to knowledge-intensive vertical domains, such as electronic design automation (EDA). This paper addresses such issue by proposing a customized RAG framework along with three domain-specific techniques for EDA tool documentation QA, including a contrastive learning scheme for text embedding model fine-tuning, a reranker distilled from proprietary LLM, and a generative LLM fine-tuned with high-quality domain corpus. Furthermore, we have developed and released a documentation QA evaluation benchmark, ORD-QA, for OpenROAD, an advanced RTL-to-GDSII design platform. Experimental results demonstrate that our proposed RAG flow and techniques have achieved superior performance on ORD-QA as well as on a commercial tool, compared with state-of-the-arts. The ORD-QA benchmark and the training dataset for our customized RAG flow are open-source at https://github.com/lesliepy99/RAG-EDA.

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

↑