Trajectory Replay: Continuous-Time Mixture Transport for Lifelong Generative Models
Organizations: Helmholtz Munich · Technical University of Munich · Munich Center for Machine Learning · Valence Labs ·
Abstract
Adapting pre-trained continuous-time generative models to sequentially incoming data without forgetting earlier tasks is a central challenge in lifelong learning. A leading strategy, generative replay, uses a generative model trained on historical tasks to augment its own continual update with synthetic samples from experience. However, it requires full trajectory simulations at every training step, which accumulate discretization errors and can degrade the replayed historical distribution. Here, we propose trajectory replay, which bypasses sample generation by training an updated velocity field to match both a frozen historical velocity along its trajectories and the incoming task's velocity field, weighted by a stability-plasticity coefficient. Through the lens of continuous-time transport, we show the resulting optimum averages the two task velocities by their respective densities and generates the mixture of their probability paths. Combined with mean velocity distillation, trajectory replay accesses historical trajectories using only a few network evaluations per continual update. Empirically, it outperforms generative replay and distillation baselines on class-incremental image generation. In two biological case studies, trajectory replay extends generative perturbation models to new contexts and experimental batches across two data modalities while preserving treatment-effect prediction.
Figures & tables
| Method | Fashion-MNIST | CIFAR-10 | ImageNet-100 | ||
|---|---|---|---|---|---|
| FID | KLD | FID | KLD | FID | |
| Joint training (all data; upper bound) | |||||
| Diffusion naive fine-tuning | |||||
| Generative replay (diffusion) ( Masip et al., 2025 ) | |||||
| Generative distillation (diffusion) ( Masip et al., 2025 ) | |||||
| Flow matching naive fine-tuning | |||||
Appendix figures & tables32 assets
Supplementary material from the paper’s appendix.
Appendix
| Fashion-MNIST | CIFAR-10 | ImageNet-100 | |
| Data | |||
| State | latent | ||
| Tasks classes | |||
| Horizontal flips | no | yes | yes |
| Model | |||
| UNet | medium | medium | large |
| Method | Fashion-MNIST | CIFAR-10 | ImageNet-100 | ||
|---|---|---|---|---|---|
| FID | KLD | FID | KLD | FID | |
| LoRA ( , ) | |||||
| LoRA ( , ) | |||||
| LoRA ( , ) | |||||
| GFT (sigmoid schedule) | |||||
| GFT (linear schedule) | |||||
| Setting | Replogle-Nadig | PBMC |
|---|---|---|
| Data | ||
| Cells | ||
| Genes (highly variable) | ||
| Contexts | cell lines | donors |
| Perturbations | genes | cytokines |
| Control | non-targeting | PBS |
| Dataset | PCA width | Pilot fit |
|---|---|---|
| (a) PCA width sweep | ||
| Replogle | ||
| Replogle | ||
| Replogle | ||
| Replogle | ||
| PBMC | ||
| Method | Pearson | DE Overlap@N | ||||
|---|---|---|---|---|---|---|
| Fit | Retention | Held-out | Fit | Retention | Held-out | |
| Naive (vf , pert , ctx ) | ||||||
| Naive (vf , pert , ctx ) | ||||||
| Naive (vf , pert , ctx ) | ||||||
| Naive (vf , pert , ctx ) | ||||||
| Naive (vf , pert , ctx ) | ||||||
| Method | Pearson | DE Overlap@N | ||||
|---|---|---|---|---|---|---|
| Fit | Retention | Held-out | Fit | Retention | Held-out | |
| Naive (vf , pert , ctx ) | ||||||
| Naive (vf , pert , ctx ) | ||||||
| Naive (vf , pert , ctx ) | ||||||
| Naive (vf , pert , ctx ) | ||||||
| Naive (vf , pert , ctx ) | ||||||
| Setting | Value |
|---|---|
| Data | |
| Cell line / experiments | U2OS, (U2OS-01/02/03) |
| Input | , uint8 |
| Train augmentation | uniform dequantization , random H/V flips |
| Perturbations | total, evaluated |
| Validation split | of each experiment’s train rows |
| Method | Per-experiment FID | Pooled stream | |||
|---|---|---|---|---|---|
| U2OS-01 | U2OS-02 | U2OS-03 | FID | DINOv2 FDD | |
| Joint training (all data; upper bound) | |||||
| Real replay (stored data) | |||||
| Naive fine-tuning | |||||
| Generative distillation (diffusion) ( Masip et al., 2025 ) | |||||
| Generative replay (ODE, adaptive ) | |||||
Generative Modeling
Generative modeling learns data distributions to create new samples, from images and text to molecules, simulations, and structured records.
See all 500 papers