cs.CVSep 27, 2026

Background Gradients Shape Memorization in Flow Matching

Authors: Xuanhua Yin, Boyu Wei, Shuyi Zhang, Shunqi Mao, Chuanzhi Xu, Weidong Cai

Organizations: School of Computer Science, The University of Sydney · Institute of Automation, Chinese Academy of Sciences

Abstract

Repetition is closely associated with memorization in generative models, but how other training images affect the retention and copying of targets remains unclear. We study this question in class-conditioned flow matching, where images outside the target set form the background. At fixed target repetition and same-class background row count, replacing repeated same-class images with distinct images reduces the target extraction rate from 80.7% to 18.0%. To explain this effect, we develop a paired-trajectory framework that isolates target-induced parameter displacement and the background gradient response to it. This response has an exact path-integrated curvature representation, connecting background loss geometry to target learning. Reciprocal response transfer between repeated and distinct backgrounds changes target retention and copying in both directions, establishing the response's causal role. After target removal, the response correction parallel to the target-induced displacement preserves approximately 90% of the copying effects of full response transfer. Directly scaling the displacement also changes copying without further training. The post-removal copying effects of reciprocal transfer are reproduced across datasets and architectures. Together, these results identify the background gradient response as a mechanism through which same-class training data shape the retention of target learning and the reproduction of target images.

Figures & tables

Appendix figures & tables37 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Tracing Generated Samples to Training-Data Clusters in Flow-Matching Models

    Aug 30, 2026Rania Briq, Ohad Fried, Michael Kamp +1Flow MatchingFlow-Based Generative Modeling

  2. Exploring the Design Space of Reward Backpropagation for Flow Matching

    Jun 9, 2026Ruoyu Wang, Boye Niu, Xiangxin Zhou +3Flow MatchingAI Alignment

  3. Posterior Augmented Flow Matching

    May 1, 2026George Stoica, Sayak Paul, Matthew Wallingford +6Flow MatchingConditional Image Generation