NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multitask Learning with Stochastic Interpolants

Hugo Negrel, Florentin Coeurdoux, Michael Samuel Albergo, Eric Vanden-Eijnden

Abstract

Traditional generative models, such as Diffusion Models and Normalizing Flows, typically rely on a scalar time variable to govern the evolution of noise into data. This constraint forces all data dimensions to evolve at a uniform rate, limiting the model's flexibility for downstream tasks like inpainting or posterior sampling without extensive retraining or heuristic guidance. This paper introduces a generalization of stochastic interpolants by replacing the scalar time variable with linear operators. By training a model to understand a broad space of interpolation paths, we enable a single generative model to perform a wide array of tasks—including zero-shot inverse problem solving and Bayesian inference—through simple inference-time programming.

1. Introduction

Generative modeling has seen significant success through frameworks that transform a simple base distribution (noise) into a complex data distribution. However, these models are often specialized for a single task. If a model trained for unconditional generation is required to perform inpainting or solve an inverse problem, practitioners must often resort to task-specific fine-tuning or "guidance" techniques. These ad-hoc methods frequently lack theoretical guarantees and can lead to unpredictable sample quality.

The fundamental bottleneck identified in this work is the use of a scalar time variable $t \in [0,1]$. In standard formulations, every dimension of the data moves along a single, predefined path at the same speed. We propose a shift toward Operator-based Interpolants, allowing different components of the data to evolve at different speeds or along distinct paths. This approach transforms the generative model into a versatile multitask learner.

2. Methodology

2.1 From Scalar to Operator-based Interpolants

In a standard stochastic interpolant, the bridge between noise ($x_0$) and data ($x_1$) is defined as $I_t = (1-t)x_0 + tx_1$. We generalize this relationship to: $$I(\alpha, \beta) = \alpha x_0 + \beta x_1$$ where $\alpha$ and $\beta$ are linear operators. These operators can take various forms depending on the desired control: diagonal matrices allow for pixel-wise evolution (useful for masking and inpainting), while Fourier-domain operators enable control over specific frequency components.

2.2 Learning Multipurpose Drifts

The model is trained to estimate "drifts" (velocity fields) conditioned on these operators. Unlike traditional diffusion training which may require complex SDE solvers, this framework utilizes simulation-free quadratic regression. The objective is to minimize the difference between the predicted drift and the true time-derivative of the interpolant across a distribution of operators $\nu$. By learning the relationship between noise and data across this high-dimensional operator space, the model effectively learns the manifold of possible transformations.

2.3 Zero-Shot Versatility and Posterior Sampling

Because the model is conditioned on the operators $\alpha$ and $\beta$, tasks can be "programmed" at inference time. For example, inpainting is achieved by setting the operator to keep known pixels fixed (setting their corresponding values in $\beta$ to 1 and $\alpha$ to 0) while allowing missing pixels to evolve from noise to data.

Furthermore, the authors derive analytical formulas to shift the learned drifts to sample from a posterior distribution given a quadratic reward or likelihood. This enables rigorous Bayesian inference without the need for MCMC or task-specific retraining.

3. Experimental Evaluation

3.1 Computer Vision and Inverse Problems

The framework was evaluated on MNIST, CelebA (128x128), and AFHQ-Cat (256x256). In image inpainting tasks, the method consistently ranked among the top performers, often outperforming state-of-the-art specialized models like PnP-Flow and Flow-Priors in PSNR and SSIM metrics. This demonstrates that a general-purpose operator-based model can match or exceed the performance of task-specific architectures.

3.2 Statistical Physics

To test the model's capacity for posterior sampling in complex distributions, the authors applied it to the $\phi^4$ lattice field theory model. The generated samples' magnetization histograms matched ground-truth MCMC results with high precision. Notably, the model achieved this without having seen the posterior distribution during its training phase, validating the theoretical derivation of the shifted drifts.

3.3 Robotic Path Planning

The model was also applied to a maze trajectory dataset containing 2 million trajectories. By treating the start and end points as fixed constraints (similar to an inpainting task), the model successfully generated valid, obstacle-avoiding pathways between arbitrary points in zero-shot fashion.

4. Discussion and Limitations

While the operator-based approach offers unprecedented flexibility, it introduces new challenges. The "pretraining" phase is more computationally intensive because the model must learn a much larger space of possible generation paths. Additionally, for pixel-level control (Hadamard product operators), the input dimensionality effectively doubles as the mask must be provided as an input alongside the data.

Future work remains to be done in scaling these models to even higher-dimensional datasets and extending the posterior sampling framework to non-quadratic likelihoods. However, the current results suggest that treating time as a flexible operator rather than a scalar constraint is a powerful step toward unified generative foundations.

5. Conclusion

By generalizing stochastic interpolants through linear operators, this work provides a principled mathematical bridge between generative flow matching and classical inverse problems. The resulting framework replaces ad-hoc guidance with a flexible, amortized approach to multitask learning, allowing a single model to serve as a "Swiss Army knife" for diverse generative and inferential tasks.

Summary updated

BibTeX
@inproceedings{negrel2025multitask,
  author = {Hugo Negrel and Florentin Coeurdoux and Michael Samuel Albergo and Eric Vanden-Eijnden},
  title = {{Multitask Learning with Stochastic Interpolants}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=9k9ZsDs9Vc},
}
Figure