Manuscript Offprint

arXiv:2610.13606

CorrFlow: Exact and Permutation-Equivariant Flow Matching on the Correlation Elliptope

Gautier Marti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Correlation matrices combine nonlinear positive-definiteness constraints with a simultaneous row–column permutation symmetry. Their generation therefore involves two distinct problems. First, every output must remain on the correlation elliptope, irrespective of how its variables are ordered. Second, the generator must learn the domain-specific distribution occupied by empirical data inside that valid space. Existing financial image generators mix these problems: they learn ordered matrix entries and repair invalid draws afterward. We introduce CorrFlow, which separates them. A generalized Fisher transform maps full-rank correlation matrices bijectively to unconstrained coordinates, guaranteeing valid outputs without projection. A graph flow-matching network learns the empirical distribution in those coordinates and is permutation equivariant: reordering the variables only reorders the output. We compare a conditional CorrGAN reimplementation, image diffusion, and CorrFlow on 80×8080 \times 80 Taiwan equity matrices using five seeds per neural method. CorrFlow produces 100% valid draws without repair and obtains feature sliced-Wasserstein distance .712±.141.712 \pm .141, versus 4.339±.2524.339 \pm .252 for CorrGAN and 4.610±.1914.610 \pm .191 for image diffusion after their invalid outputs are projected back to the correlation space. It also improves this distance over historical lookup, while lookup retains higher local coverage. These results support the combined construction under the evaluated training budget; they do not establish superiority over fully tuned image models or isolate the contribution of each component.

Keywords: Correlation matrices, flow matching, permutation equivariance, geometric deep learning, Riemannian geometry

1. Introduction

Correlation matrices are structured objects rather than arbitrary arrays. A full-rank correlation matrix lies in the elliptope's interior: it is symmetric, positive definite, and has unit diagonal. Relabeling its variables acts by simultaneously permuting rows and columns, C↦PCP⊤C \mapsto PCP^\top, without changing the underlying pairwise relationships. A generative model should therefore respect both the geometry of its sample space and this permutation symmetry.

Finance provides a demanding instance of this problem. Let CC be an asset correlation matrix and DD the diagonal matrix of asset volatilities. Their covariance matrix is Σ=DCD\Sigma = DCD, so a portfolio with weights ww has variance w⊤Σww^\top \Sigma w. Changing CC can alter diversification, risk-constrained leverage, and potential losses. Libraries of plausible matrices support correlation stress testing, reverse stress testing, and portfolio-risk analysis (Packham and Woebbeking, 2023). Covariance structure is equally central to signal processing tasks such as adaptive beamforming and source detection (Aubry et al., 2021). We focus on finance, where crisis observations are scarce and the number of pairwise correlations grows quadratically with the asset universe.

© 2026 G. Marti.

CorrGAN (Marti, 2020) showed that a GAN can recover empirical spectral, hierarchical, and network properties missed by generic random-matrix samplers; cCorrGAN added market-regime conditioning (Marti et al., 2021). A later image DDPM study reported stable training and better volatility prediction in a case study (Kubiak et al., 2024). These methods first use hierarchical clustering to turn an unordered matrix into an image. Their output depends on that ordering and may leave the correlation space, requiring a nearest-correlation repair.

Manifold-aware diffusion is possible (Li et al., 2024), while DiffeoCFM showed that a global matrix diffeomorphism can turn Riemannian conditional flow matching into ordinary Euclidean flow matching (Collas et al., 2025). Its normalized Cholesky coordinates, however, remain order dependent. CorrFlow uses the same pullback principle with GFT coordinates and an equivariant vector field; it does not introduce a new general framework for Riemannian flow matching. A normalized-Cholesky control and an objective comparison are discussed in Appendix C; an additional five-seed comparison with the adapted DiffeoCFM and its fitted Gaussian prior appears in Section D.

CorrFlow assigns the constraints and distribution learning to separate components. The generalized Fisher transform (GFT) converts a full-rank correlation matrix into an unconstrained vector, and its inverse converts every finite vector back into a valid correlation matrix. CorrFlow learns the distribution of these vectors with a permutation-equivariant graph network. In plain terms, reordering the variables only reorders the generated matrix.

This paper makes two contributions. First, it combines an exact correlation parametrization with a provably permutation-equivariant flow. Second, it gives a controlled Taiwan case study against conditional versions of CorrGAN and an image DDPM, a low-rank Gaussian generator, and historical lookup. All neural models see the same matrices and conditions, and neural results in the primary comparison use five seeds. The primary Taiwan training and test windows share no return sessions; adjacent split boundaries remain overlapping. The purpose is to evaluate a generative model of empirical correlation matrices, not to forecast returns or the next correlation matrix.

References (18)