TL;DR
This paper introduces FIST, a novel machine learning approach to automatically tune the vast number of parameters in complex chip design flows. By leveraging feature importance from prior designs and employing a novel clustering and approximate sampling strategy, FIST significantly improves design quality and reduces the costly trial-and-error process, even outperforming experienced human designers on industrial designs.
What Problem Does This Paper Address?
Modern chip design flows are incredibly complex, involving numerous steps, each with many configurable parameters. Manually tuning these parameters to achieve optimal design quality (e.g., minimizing power, maximizing performance) is a time-consuming and experience-dependent process. This manual tuning is often ad-hoc, leading to suboptimal designs or excessively long design cycles. While design space exploration (DSE) techniques exist, automatically tuning design flows presents unique challenges: a larger amount of prior data is often available, and the parameter spaces are significantly larger and more complex than in typical DSE problems. Existing methods struggle with the sheer scale and the need for efficient exploration within a limited budget.
Methods
FIST introduces several key innovations:
- Feature-Importance Sampling: It first learns which design flow parameters are most influential by analyzing data from previously explored designs. This allows FIST to focus its search on the most impactful parameters.
- Clustering-Based Sampling: Based on the identified important features, FIST clusters similar parameter settings. This strategy ensures that sampling efforts are distributed across diverse regions of the parameter space, avoiding redundant exploration of similar configurations.
- Approximate Samples (Pseudo-labeling): To further enhance efficiency, FIST uses "approximate samples." When a cluster has only one known data point, FIST assigns its quality label to other samples within the same cluster. This leverages the similarity within clusters to expand the training dataset without running expensive design flows for every single parameter set.
- Dynamic Tree Depth (XGBoost): FIST employs an XGBoost model for prediction. Crucially, it dynamically adjusts the tree depth of the XGBoost model throughout the refinement process. As more data becomes available, the model complexity increases, balancing bias and variance to improve prediction accuracy.
- Exploration vs. Exploitation Balance: FIST strategically balances exploring new, unvisited parameter regions with exploiting promising regions that have already yielded good results. This is achieved through a model-guided sampling process that adapts its strategy based on the stage of the tuning process.
Datasets
The paper utilizes two main types of datasets:
- Benchmark Circuits (ITC99): A dataset was created by synthesizing nine benchmark circuits from the ITC99 suite using commercial EDA tools. This dataset contains 1728 parameter samples for each design, providing a basis for evaluating feature importance and comparing FIST against other methods.
- Industrial Designs: FIST was also applied to two industrial designs (a deep learning inference accelerator and a microprocessor) with significantly larger parameter spaces (over 1.3 million samples each). For these, FIST operated with a limited budget, demonstrating its effectiveness in large-scale, real-world scenarios.
Key Insights and Ideas
- Prior Design Data is Gold: The paper strongly suggests that knowledge from previous design iterations and similar designs is highly valuable and can be effectively transferred to accelerate parameter tuning for new designs.
- Feature Importance is Key to Efficiency: Focusing on parameters that truly influence design quality, rather than exhaustively searching all parameters, is critical for reducing the sampling cost.
- Clustering Prevents Redundancy: Grouping similar parameter settings and sampling representative points from these clusters prevents wasting computational resources on exploring nearly identical configurations.
- Approximate Labels Boost ML: The "pseudo-labeling" approach for approximate samples significantly expands the training data for the machine learning model, improving its ability to learn and predict without requiring full design flow runs for every sample.
- Dynamic Model Adaptation is Crucial: As the tuning process progresses and more data is gathered, adapting the complexity of the predictive model (e.g., tree depth) is essential for optimal performance and avoiding overfitting.
Key Results
- Benchmark Performance: FIST achieved a 25% improvement in design quality or a 37% reduction in sampling cost compared to a random forest-based method on benchmark circuits.
- Industrial Design Improvement: On two industrial designs, FIST reduced area by 1.83% and 1.43% compared to the best solutions hand-tuned by experienced designers, while exploring less than 0.02% of the parameter space.
- Cost Reduction: FIST demonstrated a 35% reduction in sampling cost to reach the same solution rank as other methods.
- Outperforming Hand-Tuning: FIST's automatic approach was shown to be more effective than manual tuning by experienced designers for industrial designs, highlighting the power of systematic, data-driven exploration.
Limitations and Future Work
- Human Knowledge vs. Learned Knowledge: While FIST learns feature importance automatically, it acknowledges that human expertise can still be valuable in identifying initial important features or guiding the process. The paper contrasts this with methods that require human knowledge.
- Generalizability of Feature Importance: The paper notes that while important parameters are often consistent across designs, they are not universally good. Future work could explore how to best adapt learned feature importance to new, significantly different designs.
- Scalability to More Objectives: The current work focuses on single and multi-objective optimization. Extending FIST to handle an even larger number of objectives could be a valuable future direction.
- Integration with Design Tools: While FIST is designed to be integrated with commercial EDA tools, further research into seamless integration and automation across a wider range of tools and design stages would be beneficial.
Summary updated