Introduction
Implicit Neural Representations (INRs) have emerged as a powerful paradigm for representing continuous signals—such as 2D images or 3D shapes—using Multi-Layer Perceptrons (MLPs). Recently, research has shifted toward treating the weights of these INRs as data themselves, enabling the training of generative models that output entire neural networks. However, generating these weights is computationally expensive and data-intensive. This paper introduces EQUIGEN, a framework designed for few-shot implicit function generation that leverages the inherent permutation symmetries of neural network weight spaces to generate diverse and functionally consistent INRs from minimal examples.
The Challenge of Weight Space Symmetry
Generating weights for INRs faces two significant hurdles. First is the curse of dimensionality; weight spaces are massive, and creating large-scale datasets requires exhaustive gradient-based optimization. Second is weight space symmetry. Because permuting neurons in hidden layers does not change the network's mathematical output, two networks can have vastly different weight matrices while representing the same image. Standard few-shot learning techniques, which rely on element-wise similarity, fail in this context, often leading to mode collapse.
EQUIGEN addresses these issues by formalizing the Few-shot Implicit Function Generation problem: generating diverse, valid INR weights for a new category using only 1 to 10 examples.
The EQUIGEN Framework
EQUIGEN utilizes a three-stage approach built on the principle of equivariance—respecting the permutation symmetries of the weight space.
1. Equivariant Encoder Pre-training
The first stage involves training an encoder via contrastive learning to map functionally equivalent weights into a structured, low-dimensional equivariant latent space. To improve representation power, the authors introduce Smooth Augmentation. Before encoding, input weights are reordered to minimize total variation, a process optimized by solving it as a Traveling Salesperson Problem (TSP). This reordering provides a smoother manifold for the encoder, making category clustering more distinct.
2. Equivariance-Guided Diffusion
The generative core of EQUIGEN is a transformer-based diffusion model. Unlike standard diffusion models that predict noise, this model predicts denoised weights directly. The generation is conditioned on the equivariant features extracted in the first stage and is further refined by a custom equivariance loss to ensure the generated weights remain functionally consistent.
3. Few-shot Adaptation via Subspace Disturbance
To ensure diversity when only a few target examples are available, EQUIGEN employs Subspace Disturbance. By injecting bounded Gaussian noise into the equivariant latent features during the diffusion process, the model is forced to explore the "orbit" of functionally equivalent networks. This allows the model to "hallucinate" valid variations of the target class without destroying the network's underlying functionality.
Experimental Evaluation
The authors evaluated EQUIGEN across 2D (MNIST, CIFAR-10) and 3D (ShapeNet) domains, comparing it against both modality-based and INR-based baselines.
- 2D Results: In 10-shot settings on MNIST-INRs, EQUIGEN achieved an FID of 121.24, significantly outperforming the next best baseline (149.77). It also demonstrated superior diversity, with an LPIPS of 0.4133 compared to the baseline's 0.2727. Similar improvements were noted on CIFAR-10.
- 3D Results: On ShapeNet-INR airplane categories, EQUIGEN achieved a Minimum Matching Distance (MMD) of 3.4 and a Coverage (COV) of 35%, outperforming existing methods like PVD and HyperDiffusion.
- Ablation Studies: Results indicated that removing equivariant conditioning led to severe mode collapse, while removing smooth augmentation significantly degraded both the quality and diversity of the generated outputs.
Discussion and Future Work
EQUIGEN demonstrates that weight space symmetry is a feature that can be exploited rather than a bug to be avoided. By mapping weights to an equivariant latent space, the model effectively amplifies limited training data.
However, a trade-off exists between diversity and fidelity; excessive noise injection in the latent subspace can eventually degrade functional quality. Furthermore, the current implementation assumes a fixed MLP architecture (e.g., a 3-layer SIREN). Future research may explore extending this framework to generate weights across varying architectures, further broadening the applicability of few-shot weight generation.
Summary updated