All models

zuko_ncsf

Autoregressive normalizing flow over angles using circular rational-quadratic splines.

Diffusion and generative · 462 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (472 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
129.2K
Operations
462
Framework
PyTorch
Recurrent
No
Published
ICML 2020
Cited by
81 (as of 19 October 2026)
Authors
Danilo Jimenez Rezende, George Papamakarios, Sébastien Racanière and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11586
Graph hash
7342c4a6fc3eb1bca1293d0020af86b31fe18ad6127a61e675bff0ee0cce5aab
Skeleton hash
e305ab92ea66384d9c5f26ac9a382811014dd97289e46774a98aecf5ae1a58bd
Architecture hash
c9fe10ee4a598977972dbe7b4f0c12d3563386b9fdf6e04aa902b3871d424e4a
Diagram SHA-256
25092b65da44a8aff18d7300f6067e2db34916185b0005843772d29ae1d7f533
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

A neural circular spline flow is a normalizing flow for variables that are angles, which live on circles and tori rather than in ordinary Euclidean space. The paper proposes and compares expressive and numerically stable flows on such spaces, built recursively from flows on circles, closed intervals or spheres.

The circular spline adapts the rational-quadratic spline flows of Durkan and colleagues so that the transformation maps the circle to itself. A spline flow is defined piecewise from K segments, each a simple rational-quadratic function, parameterized by K + 1 knot points and K slopes. Fixing the endpoints at 0 and 2π and matching the first and last slopes gives a valid circle diffeomorphism, which the authors call a circular spline. Circular splines can be made arbitrarily flexible by increasing the number of segments, and they can be inverted exactly.

A flow on a torus is then an autoregressive flow whose transformers are circle diffeomorphisms, with a triangular Jacobian so the density is cheap to compute. To keep the conditioners periodic, each one takes the cosine and sine of the preceding angles instead of the angles themselves. The flow on this page is the NCSF class from Zuko, which lists it under the paper Normalizing Flows on Tori and Spheres.

Key idea. The paper builds expressive, numerically stable normalizing flows on tori and spheres by composing circle diffeomorphisms such as circular splines, recursively over the dimension.

  • ncsf
  • neural circular spline flow
  • circular spline
  • normalizing flows on tori and spheres
  • flows on torus
  • angles
  • autoregressive flow
  • density estimation
  • zuko

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{rezende2020normalizingflowstorispheres,
      title={Normalizing Flows on Tori and Spheres}, 
      author={Danilo Jimenez Rezende and George Papamakarios and Sébastien Racanière and Michael S. Albergo and Gurtej Kanwar and Phiala E. Shanahan and Kyle Cranmer},
      year={2020},
      eprint={2002.02428},
      archivePrefix={arXiv},
      primaryClass={stat.ML},
      url={https://arxiv.org/abs/2002.02428}, 
}