NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ChipNeMo: Domain-Adapted LLMs for Chip Design

Mingjie Liu, Teodor-Dumitru Ene, Robert Kirby, Chris Cheng, Nathaniel Ross Pinckney, Rongjian Liang, Jonah Alben, Himyanshu Anand, Sanmitra Banerjee, Ismet Bayraktaroglu, Bonita Bhaskaran, Bryan Catanzaro, Arjun Chaudhuri, Sharon Clay, Bill Dally, Laura Dang, Parikshit Deshpande, Siddhanth Dhodhi, Sameer Halepete, Eric Hill, Jiashang Hu, Sumit Jain, Brucek Khailany, Kishor Kunal, Xiaowei Li, Hao Liu, Stuart F. Oberman, Sujeet Omar, Sreedhar Pratty, Jonathan Raiman, Ambar Sarkar, Zhengjiang Shao, Hanfei Sun, Pratik P. Suthar, Varun Tej, Kaizhe Xu, Haoxing RenarXiv 2023 · DOI

TL;DR

This paper introduces ChipNeMo, a suite of domain-adapted Large Language Models (LLMs) specifically for the complex field of chip design. By employing techniques like domain-adaptive pre-training and specialized tokenization, ChipNeMo significantly outperforms general-purpose LLMs, even surpassing GPT-4 on key chip design tasks like engineering assistance and EDA script generation.

What Problem Does This Paper Address?

The chip design industry relies heavily on Electronic Design Automation (EDA) tools and complex workflows. While general-purpose LLMs have shown promise in various domains, their application to chip design is hindered by a lack of specialized knowledge. Directly using off-the-shelf LLMs can lead to inaccurate or irrelevant outputs due to their inability to understand domain-specific jargon, code, and design principles. Furthermore, proprietary design data cannot be shared with external, cloud-based LLMs due to security and intellectual property concerns. This creates a need for LLMs that are not only capable but also deeply understand the nuances of chip design, without compromising data security.

Methods

ChipNeMo employs a multi-pronged domain adaptation strategy:

  • Domain-Adaptive Tokenization: The standard LLM tokenizer is augmented with new tokens specific to chip design, improving efficiency in processing domain-specific text.
  • Domain-Adaptive Pre-Training (DAPT): Foundation models (like LLaMA2) are further pre-trained on a large corpus of proprietary chip design data (including code, documentation, and specifications). This is significantly cheaper than training from scratch.
  • Model Alignment: The pre-trained models are aligned with domain-specific instructions using techniques like Supervised Fine-Tuning (SFT) and SteerLM, enabling them to follow instructions and generate desired outputs for specific tasks.
  • Domain-Adapted Retrieval-Augmented Generation (RAG): A specialized retrieval model is fine-tuned on chip design data to help LLMs access and utilize relevant design documents, grounding their responses and improving accuracy.

Datasets

The paper utilizes a combination of proprietary and publicly available datasets:

  • Proprietary Chip Design Data: This includes Verilog and VHDL code, RTL, netlists, C++, Spice, Tcl scripts, design specifications, documentation, and internal web service data.
  • Public Datasets: Wikipedia data and code from GitHub (for languages like C++, Python, Verilog) were used to maintain general language capabilities.
  • Alignment Datasets: Publicly available instruction-following datasets (OASST, FLAN, P3) were combined with domain-specific instruction data (design knowledge, EDA script generation, bug summarization) for model alignment.
  • New Benchmarks: The authors created domain-specific benchmarks for evaluating engineering assistant chatbots, EDA script generation, and bug summarization and analysis.

Key Insights and Ideas

  • Domain Adaptation is Crucial: The study strongly emphasizes that simply using general-purpose LLMs is insufficient for specialized domains like chip design. Domain-specific adaptation is key to unlocking their potential.
  • DAPT is the Primary Driver: Domain-Adaptive Pre-Training was identified as the most impactful technique for enhancing performance on domain-specific tasks.
  • Smaller Models Can Be Powerful: Even smaller ChipNeMo models (e.g., 7B) show significant improvements over their base LLaMA2 counterparts after domain adaptation.
  • RAG Enhances Accuracy: Integrating retrieval-augmented generation significantly boosts the accuracy and grounding of LLM responses, especially for complex queries.
  • Proprietary Data is a Game-Changer: The ability to leverage private, domain-specific data is a critical advantage for building highly effective specialized LLMs.

Key Results

  • Outperforming GPT-4: The largest model, ChipNeMo-70B, outperformed GPT-4 on two key use cases: engineering assistant chatbot and EDA script generation.
  • Competitive Performance: ChipNeMo-70B showed competitive performance on bug summarization and analysis.
  • Significant Gains: Domain-adapted ChipNeMo models dramatically outperformed vanilla LLMs on multiple-choice domain-specific benchmarks and human evaluations.
  • EDA Script Generation: ChipNeMo-70B-Steer achieved significantly better results than GPT-4 and LLaMA2-70B-Chat on EDA script generation, particularly for tasks requiring knowledge of proprietary tools.
  • Cost-Effective Adaptation: DAPT required less than 1.5% of the compute cost of pre-training a foundational model from scratch.

Limitations and Future Work

  • Bug Summarization Nuances: While ChipNeMo showed improvements, the authors noted that domain-specific knowledge might be less critical for summarization compared to other tasks, leading to comparatively lower gains.
  • SteerLM Adaptation: Including domain-specific data in SteerLM training sometimes degraded chatbot quality, suggesting a need for better compatibility between general and domain-specific instruction labeling.
  • Hierarchical Summarization: For bug summarization, the need for hierarchical summarization due to long text inputs was highlighted, with GPT-4 showing minimal impact from this approach.
  • Future Work: The authors plan to focus on further improving ChipNeMo models and methods for production use, including exploring better alignment strategies and expanding the scope of applications.

Summary updated

BibTeX
@misc{liu2023chipnemo,
  author = {Mingjie Liu and Teodor-Dumitru Ene and Robert Kirby and Chris Cheng and Nathaniel Ross Pinckney and Rongjian Liang and Jonah Alben and Himyanshu Anand and Sanmitra Banerjee and Ismet Bayraktaroglu and Bonita Bhaskaran and Bryan Catanzaro and Arjun Chaudhuri and Sharon Clay and Bill Dally and Laura Dang and Parikshit Deshpande and Siddhanth Dhodhi and Sameer Halepete and Eric Hill and Jiashang Hu and Sumit Jain and Brucek Khailany and Kishor Kunal and Xiaowei Li and Hao Liu and Stuart F. Oberman and Sujeet Omar and Sreedhar Pratty and Jonathan Raiman and Ambar Sarkar and Zhengjiang Shao and Hanfei Sun and Pratik P. Suthar and Varun Tej and Kaizhe Xu and Haoxing Ren},
  title = {{ChipNeMo: Domain-Adapted LLMs for Chip Design}},
  year = {2023},
  eprint = {2311.00176},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.00176},
}
Figure