Differentiable Analog Circuit Simulation and Optimization
Xuliang Dong
11/30/2023
Motivation
parameters
C
Spice Simulator
V
Bayesian Optimization
Motivation
Differentiable Simulator
parameters
C
V
Loss
Overview
Discretize the ODE and train the NN or RNN; Circuit topology is fixed.
Circuit topology is not fixed but it follows certain rules.
A space case when the output-input relationship is simply matrix multiplication…
DDSP: Differentiable Digital Signal Processing
A: amplitude; 𝜙: instantaneous phase
Engel, Jesse, Lamtharn Hantrakul, Chenjie Gu, and Adam Roberts. "DDSP: Differentiable digital signal processing." arXiv preprint arXiv:2001.04643 (2020).
DDSP Autoencoder
Virtual Analog Modeling: reproduce/emulate analog effects
Differentiable White-Box Virtual Analog Modeling
u: input; x: internal state; y: output
Esqueda, Fabián, Boris Kuznetsov, and Julian D. Parker. "Differentiable white-box virtual analog modeling." In 2021 24th International Conference on Digital Audio Effects (DAFx), pp. 41-48. IEEE, 2021.
Differentiable White-Box Virtual Analog Modeling - Linear Example
Differentiable White-Box Virtual Analog Modeling - Nonlinear Example
Ibanez TS-808 Overdrive Stage
(22) iterative root solver: Newton-Raphson
Differentiable White-Box Virtual Analog Modeling - Nonlinear Example
Differentiable IIR filters for machine learning applications
Formulate the IIR filter’s state-space form in the RNN framework.
x: input; h: hidden state; y: output
Kuznetsov, Boris, Julian D. Parker, and Fabián Esqueda. "Differentiable IIR filters for machine learning applications." In Proc. Int. Conf. Digital Audio Effects (eDAFx-20), pp. 297-303. 2020.
Summary
Electric Analog Circuit Design With Herpernetworks and A Differential Simulator
An Inverse Problem
E.g. {(P, C, 1), (S, R, 1), (P, L, 0.5)}
Rotman, Michael, and Lior Wolf. "Electric analog circuit design with hypernetworks and a differential simulator." In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 4157-4161. IEEE, 2020.
Electric Analog Circuit Design With Herpernetworks and A Differential Simulator
Decoder: RNN GRU. d=26,380
Encoder: MultiScale Resnet. Wg = f(V, I)
Differentiable Simulator
Differentiable simulator: how does it help?
Change the loss function from:
To:
“An infinitesimal change to a component’s value should result only in a slight change in the characteristic function.”
Experiments and results
Comparing the configurations instead of waveforms.
New circuit: What if the simulator is non differentiable?
Given a system of ODEs, automatically derive a single governing ODE
Solve ODE with Neural Networks
Train a MLP y1 to approximate v1(t) when t ∊ [0, T1].
Advantages and Limitations
Pros:
Cons:
Summary
Reference