Manuscript Offprint

arXiv:2610.41520

TACO: Trajectory-Aware Curvature Observation for Memorization Localization and Mitigation in Diffusion Models

Ruxi Gu, Zilei Wang, Wei Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Text-to-image diffusion models can reproduce memorized training content within localized image regions, making precise localization essential for targeted mitigation. However, curvature observations at a single denoising state can contain transient responses, while spatially uniform mitigation may disrupt prompt-relevant content. We present Trajectory-Aware Curvature Observation (TACO), a unified framework for local memorization detection and mitigation in diffusion models. Our empirical analysis reveals that memorization-related curvature becomes pronounced during late-stage denoising and persists at consistent spatial locations across neighboring states. Motivated by these observations, TACO aggregates prompt-dependent curvature responses along the late denoising trajectory and applies latent-guided spatial refinement to improve spatial coherence. The resulting memorization map serves both as a localization signal and as a spatial control signal for mitigation. Specifically, TACO uses this map to steer existing inference-time interventions toward memorization-related regions through spatial reweighting and localized guidance correction. Extensive experiments demonstrate that TACO consistently outperforms competing localization methods, and improves the Pareto trade-off between memorization suppression, semantic alignment, and perceptual quality. These results establish trajectory-aware spatial analysis as an effective link between memorization localization and targeted mitigation.

1. Introduction

Text-to-image (T2I) diffusion models [12, 29, 30] can reproduce training images or distinctive visual patterns under specific prompts [3, 26, 32]. Such memorization raises privacy and copyright concerns, as generated outputs may expose sensitive training content or reproduce protected ma-

Figure

Figure 1. Global and local memorization in Stable Diffusion v1.4 [24] across 6 different seeds.

terial. Detecting and mitigating this behavior [1, 4, 6–8, 10, 19] is therefore important for deploying T2I models while preserving their ability to generate diverse, prompt-aligned images.

Such memorization can occur globally or locally [5, 17]. Global memorization closely reproduces a training image as a whole, while local memorization retains copied content within part of an otherwise varying image. Fig. 1 illustrates both cases: the global example exhibits whole-image copying, whereas the local example preserves memorized content despite changes in wall color. These variations can make local copying less apparent, highlighting the need to identify its spatial extent. Localization also enables selective mitigation: interventions can target copied regions while preserving surrounding content, reducing the unnecessary changes that image-wide suppression may introduce.

Existing detection methods provide useful evidence of copying, but only limited efforts have been devoted to localizing where memorized content occurs within generated images. Retrieval-based methods compare generated images against training examples [3, 21, 26]; retrieval-free methods analyze model responses, such as conditional-unconditional score differences [14, 25, 33]. These approaches can indicate whether an output is memorized, but a single image-level score does not show which region is responsible. Attention-based methods use cross-attention to identify potentially copied regions [5, 23], and coordinate-wise cur-

*Corresponding authors. Emails: zlwang@ustc.edu.cn, wangwei@ustb.edu.cn vature differences offer a complementary geometric signal for localization [15, 16]. However, a map estimated at one denoising state may include transient responses and background noise. A reliable local detector should therefore capture evidence that persists along the denoising trajectory.

This requirement is closely tied to inference-time mitigation. Prior methods modify prompts or embeddings [27, 33], adjust initial noise [9], or change classifier-free guidance (CFG) during sampling [11, 13]. Dynamic attention intervention offers another way to selectively alter text conditioning [35]. Although these methods intervene at different stages of generation, applying their changes globally can alter non-memorized regions alongside copied content. Therefore, a spatial memorization signal can help direct existing interventions toward locally copied regions, suppressing memorization while preserving the surrounding content.

Motivated by these, we present Trajectory-Aware Curvature Observation (TACO), a unified framework for local memorization detection and mitigation. Our empirical study shows that memorization-related curvature becomes pronounced in late denoising and remains spatially consistent across neighboring states. TACO uses this property to estimate prompt-dependent coordinate-wise curvature at multiple late-stage states, refine each response using the latent's spatial structure, and aggregate the observations into a continuous memorization map. The map serves two roles: thresholding it yields a localization mask, while retaining its continuous values provides spatial weights for mitigation. In mitigation, TACO separates each intervention into a component aligned with a reference direction, which preserves the baseline objective, and a component that can be spatially adjusted. When the baseline objective gradient is available, TACO uses it as the reference direction, preserving the aligned component and spatially redistributing the orthogonal component according to the memorization map. When it is unavailable, TACO uses the score difference as the reference, combining map-weighted CFG attenuation with a transverse correction orthogonal to that direction.

We evaluate TACO on Stable Diffusion (SD) models [24] using benchmarks for local-region detection and memorization mitigation. TACO improves localization over competitive baselines, and its integration with initial-noise adjustment and zero- or opposite-guidance methods advances the Pareto frontier [18], achieving a more favorable trade-off between memorization suppression, text alignment, and perceptual quality. Our contributions are threefold:

  • We introduce TACO, a unified framework for memorization localization and mitigation in T2I diffusion models that advances the Pareto frontiers between memorization suppression and generation quality.

  • We leverage the temporal persistence of late-stage curvature, combining coordinate-wise curvature estimation, latent-guided refinement, and trajectory aggregation to produce spatially coherent memorization maps.

  • We develop map-guided steering for existing inference-time interventions and validate TACO's localization and mitigation benefits across multiple baselines and Stable Diffusion model variants.

References (34)