Introduction
Automating analog circuit design remains a significant challenge in engineering, often referred to as a "black art" due to the vast search space of component topologies and parameters. While Genetic Programming (GP) offers a path toward automation, it typically suffers from inefficient search processes and high computational costs. This paper presents a novel framework that utilizes approximate Shapley values to guide GP, accelerating convergence and producing more efficient, compact circuit designs.
Methodology: Shapley-Guided Evolution
The core innovation lies in quantifying the contribution of individual sub-circuits to the overall performance using Shapley values—a concept from cooperative game theory. Unlike simpler metrics, Shapley values account for the complex interdependencies between electronic components, identifying which parts of a circuit are truly vital for its success.
Tree-Based Hierarchical Encoding
To apply GP, circuits are represented as hierarchical trees. Internal nodes represent components (e.g., MOSFETs, resistors), while leaf nodes define connection ports. This structure allows the algorithm to manipulate functional blocks rather than individual wires.
Two-Stage Framework
Calculating exact Shapley values for every individual in a large population is computationally prohibitive. The authors address this with a two-stage approach:
- Library Creation: Initial iterations calculate exact Shapley values to build a reference library ($SV_{lib}$).
- KNN-Based Approximation: Once the library is sufficiently large, K-Nearest Neighbors (KNN) is used to predict the importance of sub-circuits in new individuals based on historical data. This surrogate model provides the necessary speedup to make the guidance practical.
Guided Genetic Operators
Instead of random search, the algorithm uses these importance scores to drive evolution:
- Guided Crossover: Swaps high-importance subtrees from successful parents into less effective individuals.
- Guided Mutation: Targets low-importance "bloat" components for removal or replacement, naturally leading to more parsimonious designs.
Experimental Results
The framework was tested on three benchmarks: a Voltage Reference circuit, a Temperature Sensor, and a Gaussian Function Generator.
- Efficiency: The proposed method reached high-performance designs in approximately 50,000 evaluations. This is a massive improvement over traditional GP methods, which often require millions of evaluations to reach similar goals.
- Compactness: Evolved circuits were significantly smaller. For example, the Voltage Reference circuit used only 15 components, compared to 32 in the most recent comparable study and over 60 in earlier literature.
- Performance: In the Voltage Reference task, the method achieved a Mean Best Fitness (MBF) of 0.0142, outperforming the previous state-of-the-art of 0.0261. Statistical significance tests (p-values < 0.05) confirmed these improvements across all tasks.
Conclusion
By integrating approximate Shapley values into the GP loop, this research demonstrates that "intelligent" guidance can overcome the traditional bottlenecks of evolutionary circuit design. The use of KNN as a surrogate model allows for a sophisticated understanding of component synergy without the prohibitive cost of exact calculations. Future work will explore scaling this approach to more complex, multi-stage analog systems.
Summary updated