Para-CFlows: $C^k$-universal diffeomorphism approximators as superior neural surrogates

Junlong Lyu, Zhitang Chen, Chang Feng, Wenjing Cun, Shengyu Zhu, Yanhui Geng, Zhijie Xu, Chen YongweiNeurIPS 2022

Introduction

Invertible neural networks based on Coupling Flows (CFlows) are widely used for generative tasks like image synthesis and data compression due to their tractable likelihoods and easy-to-calculate inverses. However, most research focuses on their ability to transform one distribution into another. This paper addresses a more rigorous challenge: Can these models approximate the underlying mapping (the diffeomorphism) itself, including its derivatives?

The authors introduce Para-CFlows (Parametric Coupling Flows), a new class of invertible neural networks proven to approximate any smooth mapping and its derivatives—a property known as $C^k$-universality. By utilizing a "dimension augmentation" technique, Para-CFlows serve as superior surrogate models for complex black-box optimization, particularly in "context-heavy" scenarios where standard neural networks often fail.

The Challenge of Surrogate Modeling

In fields like telecommunications or power grid management, neural networks often act as "stand-ins" (surrogate models) for complex physical systems to perform optimization. If a surrogate model fails to accurately reflect the system's gradients (derivatives), gradient-based optimization will ultimately fail.

Standard models like Multi-Layer Perceptrons (MLPs) often suffer from "context dominance." In these cases, the model focuses so heavily on environmental factors (the context) that it ignores the specific actions a user can take, leading to poor optimization results. Just because a model can map a Gaussian distribution to a target distribution doesn't mean it has learned the correct underlying mapping. $C^k$-universality provides a much stricter and more useful guarantee for engineering applications.

Methods: The Para-CFlow Architecture

To address these limitations, the authors developed Para-CFlows and provided a rigorous theoretical framework for their expressiveness. They prove that a composition of affine coupling layers and invertible linear transforms can approximate any diffeomorphism in $C^k$-norm, meaning the function and its first $k$ derivatives are all accurately approximated.

Para-CFlow Architecture

Key innovations in the architecture include:

  • Dimension Augmentation: A crucial theoretical insight is that while standard coupling flows might struggle with $C^k$ approximation in their native dimension, adding just one extra dimension (padding the input with a zero) allows them to bypass these limitations. This "zero-padding magic" significantly boosts the approximation power of coupling flows.
  • Contextualization: The architecture is generalized to handle parameters (context). By concatenating context with the variables to be transformed, the model forms a new subgroup over a higher-dimensional space that preserves the "rank" of the input actions.
  • Action Sensitivity: Because Para-CFlows are invertible and rank-preserving by design, they are mathematically forced to keep the action information intact until the very last layer, preventing the action from getting "lost" in high-dimensional context.

Experiments and Key Results

The authors evaluated Para-CFlows using a synthetic "Taiji" diffeomorphism—a spiral-shaped mapping designed to test the model's ability to learn complex transformations and their derivatives—as well as standard optimization benchmarks (Rastrigin, Ackley, and Trid) adapted into contextual tasks.

Taiji Diffeomorphism Results
  • Gradient Accuracy: In the "Taiji" task, Para-CFlows accurately captured the vector fields (derivatives) of the target mapping. In contrast, standard MLPs and ResNets produced noisy or incorrect gradients.
  • Action Sensitivity: Using Permutation Feature Importance (PFI), the authors demonstrated that Para-CFlows were significantly more sensitive to "actions" than MLPs or ResNets, which often ignored the action in favor of the context.
  • Optimization Performance: In contextual Bayesian Optimization, Para-CFlows achieved much lower "cumulative regret," finding better solutions faster. On the Rastrigin benchmark, the gradient trajectories of Para-CFlows were stable and converged to the global minimum, while other models suffered from gradient explosions or became trapped in local optima.

Limitations and Future Work

While highly effective for mapping, the "dimension augmentation" that grants Para-CFlows their expressive power makes them harder to use for traditional density estimation (like standard Normalizing Flows), as calculating the Jacobian determinant becomes computationally expensive or impossible. Consequently, Para-CFlows are currently optimized for surrogate modeling rather than generative modeling.

Looking ahead, the authors suggest that Para-CFlows would be excellent candidates for approximating Q-functions in Reinforcement Learning, where accurate gradients are essential for policy updates.

Summary updated

BibTeX
@inproceedings{lyu2022para,
  author = {Junlong Lyu and Zhitang Chen and Chang Feng and Wenjing Cun and Shengyu Zhu and Yanhui Geng and ZHIJIE XU and Chen Yongwei},
  title = {{Para-CFlows: $C^k$-universal diffeomorphism approximators as superior neural surrogates}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=m97Cdr9IOZJ},
}
Figure