BoA-PTA, A Bayesian Optimization Accelerated Error-Free SPICE Solver

Wei W. Xing, Xiang Jin, Yi Liu, Dan Niu, Weishen Zhao, Zhou JinarXiv 2021

Abstract

In integrated circuit (IC) design, SPICE (Simulation Program with Integrated Circuit Emphasis) is the industry standard for verification. However, the computational cost of solving complex circuit equations often creates a significant bottleneck. This paper introduces BoA-PTA, a framework that leverages Bayesian Optimization (BO) to automatically tune the parameters of Pseudo Transient Analysis (PTA) solvers. BoA-PTA achieves an average 2.3x speed-up (up to 3.5x) on benchmark circuits without introducing approximation errors or requiring extensive offline training.

Introduction

As semiconductor technology scales, the complexity of circuit simulations grows exponentially, often consuming up to 80% of the total development cycle. One of the most robust techniques for solving difficult non-linear circuit equations is Pseudo Transient Analysis (PTA). PTA facilitates convergence by inserting temporary, "pseudo" reactive elements—such as capacitors and inductors—into the circuit to stabilize the mathematical solver during the transition to a steady-state solution.

Pseudo-parameter insertion in circuit components for PTA

The efficiency of PTA is highly sensitive to the choice of these pseudo-parameters. Historically, these values were either manually tuned by experts or left at sub-optimal defaults. While recent attempts have used Machine Learning (ML) to replace SPICE solvers entirely, these "black-box" models often introduce unacceptable errors. BoA-PTA addresses this by using ML to optimize the solver's internal settings rather than replacing the physics-based simulation itself.

The BoA-PTA Framework

BoA-PTA utilizes a closed-loop optimization strategy to find the most efficient solver settings for a given circuit netlist. Unlike traditional deep learning models that require thousands of pre-simulated examples, BoA-PTA can operate in a "cold start" mode, learning the optimal parameters on-the-fly for brand-new designs.

The BoA-PTA framework architecture

The framework consists of several key technical components:

  • Deep Kernel Learning: To generalize across different circuit types (e.g., BJT vs. MOS), a Deep Neural Network (DNN) extracts high-level features from the circuit's netlist. These features are then processed by a Gaussian Process (GP) surrogate model.
  • Non-Stationary Modeling (BetaCDF Warping): Solver performance is often non-linear and "jumpy." The authors employ a Beta cumulative density function to warp the input space, allowing the GP to better capture these complex behaviors.
  • Log-Sigmoid Transformation: Because solver parameters can span 14 orders of magnitude ($10^{-7}$ to $10^7$), this transformation maps the vast search space into a manageable range for the optimization engine.
  • Variational Inference: The system uses the "reparameterization trick" to update the model quickly and avoid overfitting, ensuring the search for parameters remains efficient.

Experimental Evaluation

The researchers evaluated BoA-PTA using the CircuitSim93 industry benchmark set, which includes 43 classic circuits ranging from Bipolar Junction Transistor (BJT) to various Metal-Oxide-Semiconductor (MOS) designs. The framework was tested against standard solvers like Ngspice and state-of-the-art PTA variants (DPTA, RPTA, and CEPTA).

Key Results

  • Significant Acceleration: BoA-PTA achieved an average 2.3x speed-up over the original CEPTA solver, with peak performance reaching 3.5x.
  • Error-Free Guarantee: Because the optimization only affects the path to the solution (the pseudo-parameters) and not the final state, the results are mathematically identical to a standard SPICE run. This provides the speed of ML with the reliability of traditional SPICE.
  • Robust Convergence: BoA-PTA successfully achieved convergence on several complex circuits that the standard CEPTA solver failed to handle.
  • Search Efficiency: Testing various acquisition functions revealed that Max-value Entropy Search (MES) was the most effective strategy, typically finding optimal parameters within just a few iterations.

Conclusion and Future Work

BoA-PTA represents a significant step forward in circuit simulation by combining the rigor of SPICE with the adaptive power of Bayesian Optimization. It eliminates the need for manual tuning and provides a zero-risk path to faster verification.

A current limitation is the $O(N^3)$ computational scaling of standard Gaussian Processes, which may slow down extremely long optimization runs. Future work will explore the implementation of variational sparse GPs to enhance scalability, allowing the framework to handle even larger datasets and more complex IC designs.

Summary updated

BibTeX
@misc{xing2021boa,
  author = {Wei W. Xing and Xiang Jin and Yi Liu and Dan Niu and Weishen Zhao and Zhou Jin},
  title = {{BoA-PTA, A Bayesian Optimization Accelerated Error-Free SPICE Solver}},
  year = {2021},
  eprint = {2108.00257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.00257},
}
Figure