CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Mi, Zhendong, Zheng, Renming, Zhong, Haowen, Sun, Yue, Kneeland, Seth, Moitra, Sayan, Kutzer, Ken, Huang, Zhaozhuo Xu Shaoyi
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912416703447040
author Mi, Zhendong
Zheng, Renming
Zhong, Haowen
Sun, Yue
Kneeland, Seth
Moitra, Sayan
Kutzer, Ken
Huang, Zhaozhuo Xu Shaoyi
author_facet Mi, Zhendong
Zheng, Renming
Zhong, Haowen
Sun, Yue
Kneeland, Seth
Moitra, Sayan
Kutzer, Ken
Huang, Zhaozhuo Xu Shaoyi
contents Recent advances in agentic LLMs have demonstrated great capabilities in Verilog code generation. However, existing approaches either use LLM-assisted single-agent prompting or cooperation-only multi-agent learning, which will lead to: (i) Degeneration issue for single-agent learning: characterized by diminished error detection and correction capabilities; (ii) Error propagation in cooperation-only multi-agent learning: erroneous information from the former agent will be propagated to the latter through prompts, which can make the latter agents generate buggy code. In this paper, we propose an LLM-based coopetitive multi-agent prompting framework, in which the agents cannot collaborate with each other to form the generation pipeline, but also create a healthy competitive mechanism to improve the generating quality. Our experimental results show that the coopetitive multi-agent framework can effectively mitigate the degeneration risk and reduce the error propagation while improving code error correction capabilities, resulting in higher quality Verilog code generation. The effectiveness of our approach is validated through extensive experiments. On VerilogEval Machine and Human dataset, CoopetitiveV+GPT-4 achieves 99.2% and 99.1% pass@10 scores, respectively. While on RTLLM, CoopetitiveV+GPT-4 obtains 100% syntax and 99.9% functionality pass@5 scores.
format Preprint
id arxiv_https___arxiv_org_abs_2412_11014
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generation
Mi, Zhendong
Zheng, Renming
Zhong, Haowen
Sun, Yue
Kneeland, Seth
Moitra, Sayan
Kutzer, Ken
Huang, Zhaozhuo Xu Shaoyi
Machine Learning
Artificial Intelligence
Hardware Architecture
Programming Languages
Software Engineering
Recent advances in agentic LLMs have demonstrated great capabilities in Verilog code generation. However, existing approaches either use LLM-assisted single-agent prompting or cooperation-only multi-agent learning, which will lead to: (i) Degeneration issue for single-agent learning: characterized by diminished error detection and correction capabilities; (ii) Error propagation in cooperation-only multi-agent learning: erroneous information from the former agent will be propagated to the latter through prompts, which can make the latter agents generate buggy code. In this paper, we propose an LLM-based coopetitive multi-agent prompting framework, in which the agents cannot collaborate with each other to form the generation pipeline, but also create a healthy competitive mechanism to improve the generating quality. Our experimental results show that the coopetitive multi-agent framework can effectively mitigate the degeneration risk and reduce the error propagation while improving code error correction capabilities, resulting in higher quality Verilog code generation. The effectiveness of our approach is validated through extensive experiments. On VerilogEval Machine and Human dataset, CoopetitiveV+GPT-4 achieves 99.2% and 99.1% pass@10 scores, respectively. While on RTLLM, CoopetitiveV+GPT-4 obtains 100% syntax and 99.9% functionality pass@5 scores.
title CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generation
topic Machine Learning
Artificial Intelligence
Hardware Architecture
Programming Languages
Software Engineering
url https://arxiv.org/abs/2412.11014