VeriDispatcher: 通过预推理难度预测实现多模型调度以优化RTL生成
VeriDispatcher: Multi-Model Dispatching through Pre-Inference Difficulty Prediction for RTL Generation Optimization
AI总结:
VeriDispatcher通过预推理难度预测调度多个LLM,提高RTL生成的准确性和降低成本。
摘要:
大型语言模型(LLMs)在RTL生成中表现出强大的性能,但不同模型在不同任务上表现出色,这是由于架构和训练差异所致。先前的工作主要提示或微调单一模型。尚未充分研究的是如何协调多个不同的LLMs,使它们共同提高RTL质量,同时减少成本,而不是运行所有模型并选择最佳输出。我们将此定义为多LLM RTL生成问题。我们提出了VeriDispatcher,一种多LLM RTL生成框架,该框架根据预推理难度预测将每个RTL任务调度到合适的LLMs。对于每个模型,我们训练了一个紧凑的分类器,利用任务描述的语义嵌入,使用从基准变体中得出的难度评分,这些评分结合了语法、结构相似性和功能正确性。在推理过程中,VeriDispatcher使用这些预测器将任务路由到选定的LLM子集。在10种不同的LLM上,RTLLM和VerilogEval上,VeriDispatcher仅使用40%的商业调用,就实现了RTLLM的18%的准确性提升,在VerilogEval上保持准确性的同时,将商业使用减少了25%,使LLM在硬件设计自动化中的部署更加经济高效。
英文摘要:
Large Language Models (LLMs) show strong performance in RTL generation, but different models excel on different tasks because of architecture and training differences. Prior work mainly prompts or finetunes a single model. What remains not well studied is how to coordinate multiple different LLMs so they jointly improve RTL quality while also reducing cost, instead of running all models and choosing the best output. We define this as the multi-LLM RTL generation problem. We propose VeriDispatcher, a multi-LLM RTL generation framework that dispatches each RTL task to suitable LLMs based on pre-inference difficulty prediction. For each model, we train a compact classifier over semantic embeddings of task descriptions, using difficulty scores derived from benchmark variants that combine syntax, structural similarity, and functional correctness. At inference, VeriDispatcher uses these predictors to route tasks to a selected subset of LLMs. Across 10 diverse LLMs on RTLLM and VerilogEval, VeriDispatcher achieves up to 18% accuracy improvement on RTLLM using only 40% of commercial calls, and on VerilogEval maintains accuracy while reducing commercial usage by 25%, enabling cost-effective, high-quality LLM deployment in hardware design automation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。