pith. sign in

arxiv: 2510.15881 · v2 · pith:BZL36BH3new · submitted 2025-08-28 · 💻 cs.OH · cs.MS

ParamRF: A JAX-native Framework for Declarative Circuit Modelling

Pith reviewed 2026-05-22 12:15 UTC · model grok-4.3

classification 💻 cs.OH cs.MS
keywords RF circuit modelingparametric modelingJAXdeclarative modelingautomatic differentiationcircuit fittingfrequency-domain simulation
0
0 comments X

The pith

ParamRF represents RF circuits as JAX PyTrees so that just-in-time compilation turns them into pure functions with automatic gradients and hardware portability.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The paper introduces a library that lets engineers describe radio-frequency circuits through simple Python objects rather than writing low-level code for each simulation. These descriptions are compiled by JAX into optimized algebraic graphs that run as ordinary functions on CPUs, GPUs, or TPUs. Because the functions remain JAX-native, the same model can supply gradients with respect to both frequency and circuit parameters for use in optimization or analysis routines. A reader would care if this declarative style reduces setup time while preserving the numerical accuracy needed for fitting models to measured data.

Core claim

By treating circuit models as JAX PyTrees and applying just-in-time compilation, ParamRF converts declarative descriptions into pure functions that form an optimized algebraic graph; the resulting functions execute on any JAX-supported device, accept automatic differentiation for gradients with respect to frequency and parameters, and integrate directly with a range of solvers and built-in fitting engines that include both classical optimizers and Bayesian samplers.

What carries the argument

Representation of circuits as JAX PyTrees together with just-in-time compilation to produce pure functions that form an optimized algebraic graph.

If this is right

  • Any circuit model can be evaluated on CPUs, GPUs, or TPUs without rewriting code.
  • Gradients with respect to parameters become available for every model output, enabling direct use in gradient-based optimizers.
  • The same compiled function works with classical solvers such as L-BFGS as well as modern Bayesian samplers.
  • Fitting engines built into the library allow models to be matched to measured data in a single workflow.

Where Pith is reading between the lines

These are editorial extensions of the paper, not claims the author makes directly.

  • The same PyTree-plus-JIT pattern could be applied to non-RF circuit types or to systems that combine circuits with other physical domains.
  • Automatic differentiation opens the possibility of sensitivity analysis or uncertainty quantification directly from the model definition.
  • Declarative descriptions may reduce transcription errors when users move from schematic to simulation.

Load-bearing premise

Representing circuits as JAX PyTrees and applying just-in-time compilation will produce accurate algebraic graphs that integrate seamlessly with solvers while preserving numerical fidelity for complex RF models.

What would settle it

Run a simple known circuit through ParamRF, compute its gradients via automatic differentiation, and check whether those gradients match independently derived analytical expressions to within floating-point tolerance.

read the original abstract

This work introduces ParamRF: a Python library for efficient, parametric modelling of radio frequency (RF) circuits. Built on top of the next-generation computational library JAX, as well as the object-oriented wrapper Equinox, the framework provides an easy-to-use, declarative modelling interface, without sacrificing performance. By representing circuits as JAX PyTrees and leveraging just-in-time compilation, models are compiled as pure functions into an optimized, algebraic graph. Since the resultant functions are JAX-native, this allows computation on CPUs, GPUs, or TPUs, providing integration with a wide range of solvers. Further, thanks to JAX's automatic differentiation, gradients with respect to both frequency and circuit parameters can be calculated for any circuit model outputs. This allows for more efficient optimization, as well as exciting new analysis opportunities. We showcase ParamRF's typical use-case of fitting a model to measured data via its built-in fitting engines, which include classical optimizers like L-BFGS and SLSQP, as well as modern Bayesian samplers such as PolyChord and BlackJAX. The result is a flexible framework for frequency-domain circuit modelling, fitting and analysis.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

1 major / 1 minor

Summary. The manuscript introduces ParamRF, a Python library for declarative parametric modeling of RF circuits built on JAX and Equinox. Circuits are represented as JAX PyTrees and compiled via JIT into optimized algebraic graphs that support hardware-agnostic execution (CPU/GPU/TPU), automatic differentiation for gradients with respect to frequency and parameters, integration with solvers, and built-in fitting engines including L-BFGS, SLSQP, PolyChord, and BlackJAX.

Significance. If the implementation claims hold, the framework could provide a useful bridge between declarative RF circuit modeling and modern differentiable programming tools, enabling more efficient parametric optimization and analysis. The combination of PyTree-based modeling with JAX autodiff and hardware acceleration represents a practical strength for frequency-domain workflows.

major comments (1)
  1. Abstract: The claims that JAX PyTree representations plus JIT compilation produce algebraically equivalent graphs that preserve numerical fidelity for frequency-dependent RF elements (complex-valued operations, S-parameters, impedances, resonances) are load-bearing for the central contribution, yet the manuscript supplies no benchmarks, error metrics, validation against reference implementations, or discussion of custom VJP rules to address potential tracing limitations.
minor comments (1)
  1. The description of supported circuit elements and any handling of discontinuities would benefit from explicit enumeration in the main text.

Simulated Author's Rebuttal

1 responses · 0 unresolved

We thank the referee for their constructive review and for recognizing the potential of ParamRF as a bridge between declarative RF modeling and differentiable programming. We address the single major comment below and will revise the manuscript accordingly.

read point-by-point responses
  1. Referee: Abstract: The claims that JAX PyTree representations plus JIT compilation produce algebraically equivalent graphs that preserve numerical fidelity for frequency-dependent RF elements (complex-valued operations, S-parameters, impedances, resonances) are load-bearing for the central contribution, yet the manuscript supplies no benchmarks, error metrics, validation against reference implementations, or discussion of custom VJP rules to address potential tracing limitations.

    Authors: We agree that explicit validation would strengthen the presentation of these claims. ParamRF constructs models from standard JAX primitives (complex arithmetic, matrix operations, and frequency-dependent functions) that are algebraically equivalent to direct implementations by construction; the PyTree representation and JIT simply eliminate Python overhead without altering the underlying mathematics. Nevertheless, to address the referee's concern we will add a new validation subsection in the revised manuscript. This will include quantitative benchmarks against reference implementations (e.g., direct NumPy/SciPy calculations and scikit-rf where applicable), reporting relative L2 and maximum absolute errors for S-parameters, impedances, and resonance frequencies across representative circuits. We will also clarify that the current implementation uses only JAX-native complex support and does not introduce custom operations requiring bespoke VJP rules; any tracing limitations encountered in practice will be noted with mitigation strategies. These additions directly support the load-bearing claims without altering the core technical contribution. revision: yes

Circularity Check

0 steps flagged

No circularity: library framework description with no derivation chain

full rationale

The paper presents ParamRF as a JAX/Equinox-based software library for declarative RF circuit modeling. It describes implementation choices (PyTree representation, JIT compilation, autodiff integration) and usage patterns (fitting with optimizers and samplers) without any mathematical derivation, fitted parameters renamed as predictions, or load-bearing self-citations. Claims about algebraic graphs and solver integration are implementation assertions verifiable externally via code execution rather than internal reductions. No steps reduce by construction to inputs; the work is self-contained as a tool introduction.

Axiom & Free-Parameter Ledger

0 free parameters · 1 axioms · 0 invented entities

The central claim rests on the established capabilities of the JAX and Equinox libraries applied to RF circuit modeling, without introducing new free parameters, physical axioms, or invented entities.

axioms (1)
  • standard math JAX provides just-in-time compilation, automatic differentiation, and PyTree handling that can be applied to circuit models.
    The framework's performance and gradient features depend directly on these documented JAX properties as described in the abstract.

pith-pipeline@v0.9.0 · 5736 in / 1297 out tokens · 65497 ms · 2026-05-22T12:15:21.359268+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Lean theorems connected to this paper

Citations machine-checked in the Pith Canon. Every link opens the source theorem in the public Lean library.

What do these tags mean?
matches
The paper's claim is directly supported by a theorem in the formal canon.
supports
The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
extends
The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
uses
The paper appears to rely on the theorem as machinery.
contradicts
The paper's claim conflicts with a theorem or certificate in the canon.
unclear
Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.