Reducing Memorisation in Generative Models via Riemannian Bayesian Inference

Gegenfurtner, Johanna Marie, Jacobsen, Albert Kjøller, Borras, Naima Elosegui, Mahou, Alejandro Valverde, Arvanitidis, Georgios

–arXiv.org Artificial Intelligence 

Modern generative models can produce realistic samples, however, balancing memorisation and generalisation remains an open problem. We approach this challenge from a Bayesian perspective by focusing on the parameter space of flow matching and diffusion models and constructing a predictive posterior that better captures the variability of the data distribution. In particular, we capture the geometry of the loss using a Riemannian metric and leverage a flexible approximate posterior that adapts to the local structure of the loss landscape. This approach allows us to sample generative models that resemble the original model, but exhibit reduced memorisation. Empirically, we demonstrate that the proposed approach reduces memorisation while preserving Figure 1. We propose reducing memorisation of a trained genergeneralisation. Further, we provide a theoreticalative model by perturbing the learnt model parameters θ () by analysis of our method, which explains our find-sampling from an approximate posterior distribution θ q(θ), ings. Overall, our work illustrates how consider-thus constructing new models. While samples from a Euclidean approximate posterior () reduce memorisation, accounting for ing the geometry of the loss enables effective usethe geometry () reduces memorisation without breaking the fit. of the parameter space, even for complex highdimensional generative models.