Lune

NeurIPS2025Top-tier venue

CDFlow: Building Invertible Layers with Circulant and Diagonal Matrices

Xuchen Feng, Siyu Liao

2025Year
1Citations

Abstract

Normalizing flows are deep generative models that achieve efficient likelihood estimation and sampling through invertible transformations. A key challenge is designing linear layers that enhance expressiveness while enabling efficient computation of the Jacobian determinant and inverse. In this work, we introduce a novel invertible linear layer based on the product of circulant and diagonal matrices. This decomposition provides a parameter-and computation-efficient formulation, reducing the parameter complexity from O(n 2 ) to O(mn) by using m diagonal matrices together with m -1 circulant matrices, while approximating arbitrary linear transformations. Furthermore, leveraging the Fast Fourier Transform (FFT), our method reduces the time complexity of matrix inversion from O(n 3 ) to O(mn log n) and matrix log-determinant from O(n 3 ) to O(mn), where n is the input dimension. Building upon this, we introduce a novel normalizing flow model called Circulant-Diagonal Flow (CDFlow). Empirical results demonstrate that CDFlow excels in density estimation for natural image datasets and effectively models data with inherent periodicity. In terms of computational efficiency, our method speeds up the matrix inverse and log-determinant computations by 1.17× and 4.31×, respectively, compared to the general dense matrix, when the number of channels is set to 96.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 4656cd69-3e05-4a75-aa9e-1e78fc32036e

Builds on9

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines