S-Crescendo: A Nested Transformer Weaving Framework for Scalable Nonlinear System in S-Domain Representation

Junlang Huang, Chen Hao, Li Luo, Yong Cai, Lexin Zhang, Tianhao Ma, Yitian Zhang, Zhong Guan

TL;DR

S-Crescendo is a physics-aware neural operator framework that uses nested Transformers to simulate high-order nonlinear systems in the S-domain (Laplace domain). By decomposing complex transfer functions into simple first-order modes, it slashes computational complexity from cubic $O(n^3)$ to linear $O(n)$, achieving near-perfect accuracy with up to an 18× speedup over traditional SPICE solvers.

The Challenge of High-Order Nonlinear Systems

In modern chip design (VLSI), engineers must simulate how signals travel through miles of microscopic wiring. This presents a massive computational hurdle known as the "nonlinear driver + linear RC load" problem. Transistors acting as drivers are inherently nonlinear, while the connecting wires (the RC load) introduce parasitic effects that become increasingly complex as chips shrink.

The core challenge: predicting the nonlinear output between a nonlinear driver and a linear load.

Traditional simulation tools like HSPICE rely on the Newton-Raphson method, which involves building and solving massive Jacobian matrices. This process has a computational complexity of $O(n^3)$, meaning that as the circuit order ($n$) grows, the simulation time explodes. While deep learning has attempted to step in, most models struggle with "structural agnosticism"—failing when the circuit topology changes—or they lack the physical interpretability required for high-stakes engineering.

S-Crescendo: Weaving Physics with Transformers

To overcome these bottlenecks, the authors introduce S-Crescendo, a framework that seamlessly weaves classical control theory with modern Transformer architectures.

The S-Crescendo architecture, demonstrating the iterative addition of modes and error compensation.

The methodology relies on three core pillars:

  1. S-Domain Decomposition: Instead of operating purely in the time domain, the model works in the S-domain (Laplace domain). It uses partial-fraction decomposition to break a complex $n$-th order transfer function into a sum of simple first-order "modes." These modes are characterized by poles (dictating decay rates) and residues (dictating the strength of the mode).
  2. Nested Transformer Architecture: The framework employs a baseline Transformer module to predict the nonlinear response for a single-mode system. A compensation module then iteratively learns the residual error—the difference between the current prediction and the true output—as more modes are added. This allows the model to adaptively capture higher-order nonlinearities.
  3. Log-Centered Time Warping: Signals in these systems often feature a very steep rising edge followed by a long, flat tail. To prevent the model from ignoring the fast-changing transient behaviors, the authors resample the data using a log-centered time coordinate, focusing the model's attention where the action is most critical.

Datasets and Key Insights

The researchers generated a "golden" dataset using Synopsys PrimeSim HSPICE with a 40-nm CMOS process, comprising roughly 5,000 samples of RC networks ranging from order-1 to order-10.

S-Crescendo introduces several critical advantages:

  • Structural Agnosticism: By decomposing the system into poles and residues, the model operates independently of the specific circuit topology. It only processes the mathematical modes, making it incredibly flexible.
  • Linear Scaling: Bypassing the matrix-inversion bottleneck of traditional solvers allows the computational complexity to scale linearly ($O(n)$). This is a massive win for high-dimensional systems.
  • Physics-Neural Synergy: The model uses Laplace-domain physical priors to establish the "skeleton" of the solution, while the Transformer handles the complex, nonlinear corrections that are difficult to derive analytically.

Performance and Results

When benchmarked against HSPICE, NGSPICE, and a physics-inspired baseline (Dynamic Circuit Macromodeling), S-Crescendo delivered exceptional results:

  • Accuracy: The model achieved an $R^2$ accuracy of up to 0.99 against HSPICE golden waveforms.
  • Speedup: It demonstrated a 5× to 18× speedup over HSPICE. For an order-10 system, S-Crescendo completed the simulation in just 0.042 seconds, compared to HSPICE’s 0.26 seconds.
  • Extreme Extrapolation: Impressively, a model trained only on systems of order $\le 15$ was tested on a massive 200-pole network and still maintained an $R^2$ of 0.9838.

Limitations and Future Work

Despite its success, the framework has areas for improvement. As the system order increases, small errors in the residual modules can compound recursively, leading to slight accuracy degradation for extremely high-order systems. Additionally, the current version assumes distinct poles and does not yet handle transfer functions with repeated poles, which require different temporal terms.

While inference is significantly faster than SPICE, latency still grows linearly with the number of poles. The authors suggest "blocked recursion" to further optimize this. Looking ahead, the team sees potential in extending this framework to power electronics and even biological systems like neural membrane models.

Summary updated

BibTeX
@inproceedings{huang2025s,
  author = {Junlang Huang and Chen Hao and Li Luo and Yong Cai and Lexin Zhang and Tianhao Ma and Yitian Zhang and Zhong Guan},
  title = {{S-Crescendo: A Nested Transformer Weaving Framework for Scalable Nonlinear System in S-Domain Representation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Y6tRVadmgo},
}
Figure