LLM-DSE: Searching Accelerator Parameters with LLM Agents
Hanyu Wang, Xinrui Wu, Zijian Ding, Su Zheng, Chengyue Wang, Neha Prakriya, Tony Nowatzki, Yizhou Sun, Jason Cong
TL;DR
This work introduces LLM-DSE, a multi-agent framework that uses specialized LLM-driven agents (Router, Specialists, Arbitrator, Critic) to optimize HLS directives for domain-specific accelerators. By framing design-space exploration as a cooperative tree search with a dual-stage filtering pipeline and context-management tools, it achieves substantial speedups over heuristic and model-based baselines and generalizes to multiple toolchains and larger programs. Ablation studies confirm that agent interactions and LLM-based guidance are essential for performance, while token-efficiency considerations illustrate practical deployment costs. Overall, LLM-DSE offers a scalable, domain-aware method to improve DSA performance, enabling faster design-turnaround and broader accessibility of HLS-based acceleration development.
Abstract
Even though high-level synthesis (HLS) tools mitigate the challenges of programming domain-specific accelerators (DSAs) by raising the abstraction level, optimizing hardware directive parameters remains a significant hurdle. Existing heuristic and learning-based methods struggle with adaptability and sample efficiency. We present LLM-DSE, a multi-agent framework designed specifically for optimizing HLS directives. Combining LLM with design space exploration (DSE), our explorer coordinates four agents: Router, Specialists, Arbitrator, and Critic. These multi-agent components interact with various tools to accelerate the optimization process. LLM-DSE leverages essential domain knowledge to identify efficient parameter combinations while maintaining adaptability through verbal learning from online interactions. Evaluations on the HLSyn dataset demonstrate that LLM-DSE achieves substantial $2.55\times$ performance gains over state-of-the-art methods, uncovering novel designs while reducing runtime. Ablation studies validate the effectiveness and necessity of the proposed agent interactions. Our code is open-sourced here: https://github.com/Nozidoali/LLM-DSE.
