ChipAlign:通过测地线插值实现面向芯片设计的大型语言模型指令对齐
ChipAlign: Instruction Alignment in Large Language Models for Chip Design via Geodesic Interpolation
AI总结:
本文提出ChipAlign,一种免训练的模型合并方法,通过测地线插值融合通用指令对齐LLM与芯片专用LLM的权重,显著提升了芯片LLM的指令遵循能力,在IFEval基准上提升达26.6%,并在指令相关问答任务中超越现有基线。
摘要:
大型语言模型(LLMs)的最新进展扩展了其在包括芯片设计在内的各个领域的应用,涌现出如ChipNeMo等领域适配的芯片模型。然而,这些模型在指令对齐方面常常遇到困难,指令对齐是LLMs的一项关键能力,涉及遵循明确的人类指令。这一局限性阻碍了芯片LLMs的实际应用,包括作为硬件设计工程师的助手聊天机器人。在本研究中,我们引入了ChipAlign,这是一种利用免训练模型合并策略的新颖方法,将通用指令对齐LLM与特定芯片LLM的优势相结合。通过考虑权重空间中的底层流形,ChipAlign采用测地线插值来有效融合输入LLMs的权重,生成一个继承来自各自指令LLM和芯片LLM的强指令对齐能力和芯片专业知识的合并模型。我们的结果表明,ChipAlign显著增强了现有芯片LLMs的指令遵循能力,在IFEval基准上实现了高达26.6%的提升,同时在芯片领域保持了相当的专业知识。这种指令对齐的改进也转化为指令相关问答任务的显著收益,在OpenROAD QA基准上实现了3.9%的性能提升,在生产级芯片问答基准上实现了8.25%的性能提升,超越了最先进的基线。
英文摘要:
Recent advancements in large language models (LLMs) have expanded their application across various domains, including chip design, where domain-adapted chip models like ChipNeMo have emerged. However, these models often struggle with instruction alignment, a crucial capability for LLMs that involves following explicit human directives. This limitation impedes the practical application of chip LLMs, including serving as assistant chatbots for hardware design engineers. In this work, we introduce ChipAlign, a novel approach that utilizes a training-free model merging strategy, combining the strengths of a general instruction-aligned LLM with a chip-specific LLM. By considering the underlying manifold in the weight space, ChipAlign employs geodesic interpolation to effectively fuse the weights of input LLMs, producing a merged model that inherits strong instruction alignment and chip expertise from the respective instruction and chip LLMs. Our results demonstrate that ChipAlign significantly enhances instruction-following capabilities of existing chip LLMs, achieving up to a 26.6% improvement on the IFEval benchmark, while maintaining comparable expertise in the chip domain. This improvement in instruction alignment also translates to notable gains in instruction-involved QA tasks, delivering performance enhancements of 3.9% on the OpenROAD QA benchmark and 8.25% on production-level chip QA benchmarks, surpassing state-of-the-art baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。