Optimizing High-Level Synthesis Designs with Retrieval-Augmented Large Language Models
Haocheng Xu, Haotian Hu, Sitao Huang

TL;DR
This paper introduces RALAD, a retrieval-augmented LLM framework that significantly improves HLS code optimization by dynamically sourcing relevant knowledge, achieving high success rates and substantial latency improvements.
Contribution
The paper presents a novel retrieval-augmented LLM approach for HLS optimization, enhancing performance with domain-specific knowledge without extensive fine-tuning.
Findings
Achieves 80% success rate in compilation tasks.
Outperforms general LLMs by 3.7 to 19 times in latency.
Effective in two specialized domains with smaller models.
Abstract
High-level synthesis (HLS) allows hardware designers to create hardware designs with high-level programming languages like C/C++/OpenCL, which greatly improves hardware design productivity. However, existing HLS flows require programmers' hardware design expertise and rely on programmers' manual code transformations and directive annotations to guide compiler optimizations. Optimizing HLS designs requires non-trivial HLS expertise and tedious iterative process in HLS code optimization. Automating HLS code optimizations has become a burning need. Recently, large language models (LLMs) trained on massive code and programming tasks have demonstrated remarkable proficiency in comprehending code, showing the ability to handle domain-specific programming queries directly without labor-intensive fine-tuning. In this work, we propose a novel retrieval-augmented LLM-based approach to effectively…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Machine Learning in Materials Science
