TACO: A Trajectory-Aware Curvature Framework Targets the Weak Spot in Diffusion Model Memorization
TACO uses trajectory-level curvature analysis to locate and suppress memorized training content in Stable Diffusion models at inference time.

Main Story
Text-to-image (T2I) diffusion models have a well-documented and structurally awkward problem: they can reproduce training images, sometimes with striking fidelity, even when a user issues an innocent-seeming prompt. The issue splits into two distinct failure modes. Global memorization closely reproduces a training image as a whole, while local memorization retains copied content within part of an otherwise varying image. The latter is considerably harder to catch. Existing approaches significantly underperform in handling local memorization, where only specific image regions are memorized, and cannot locate the local memorization regions, making it hard to investigate locally.
The consequences are not trivial. Memorization is a phenomenon where, instead of valid image generations, the model outputs near-verbatim reproductions of training images — posing privacy and copyright risks that remain difficult to prevent without harming prompt fidelity. Several detection and mitigation strategies have emerged in recent years, ranging from cross-attention analysis to curvature-based geometric methods, but each addresses only part of the problem. While recent methods can detect memorization, they often rely on global or model-specific signals and provide limited insight into where memorization appears within a generated image.
A new paper from Ruxi Gu and co-authors, posted to arXiv as cs.CV:2610.41520, proposes a more systematic fix. The authors present Trajectory-Aware Curvature Observation (TACO), a unified framework for local memorization detection and mitigation in diffusion models. The central insight is geometric and temporal: curvature observations at a single denoising step can be noisy and transient, but the memorization signal becomes reliable when observed across multiple adjacent steps near the end of the denoising process.
Empirical analysis reveals that memorization-related curvature becomes pronounced during late-stage denoising and persists at consistent spatial locations across neighbouring states. TACO exploits this persistence. The framework leverages the temporal persistence of late-stage curvature, combining coordinate-wise curvature estimation, latent-guided refinement, and trajectory aggregation to produce spatially coherent memorization maps.
The output of this process is what the authors call a memorization map. The resulting continuous memorization map provides a unified interface for both tasks: it identifies memorized regions for localization and spatially guides existing inference-time interventions for mitigation. Crucially, the map is not used to retrain or modify the model — it is a plug-in steering layer applied at inference time. TACO uses this map to steer existing inference-time interventions toward memorization-related regions through spatial reweighting and localized guidance correction.
This spatial precision is what differentiates TACO from earlier curvature-based work. Prior methods such as coordinate-wise curvature differences focused on isolating overfitting-driven memorization by subtracting baseline model curvature, but still operated at a single denoising state. A key gap in diffusion model memorization research has been the lack of an accurate, model-agnostic method for localising memorized regions; local memorization can be understood as coordinate-wise variance collapse, and isolating overfitting-driven memorization requires subtracting intrinsic data-driven curvature using an underfitted baseline. TACO goes further by aggregating that signal along the denoising trajectory, achieving spatial coherence that single-step observations cannot.
The benchmark results are reported on Stable Diffusion variants. Memorization localization is evaluated using SD v1.4 and SD v2.1; memorization mitigation experiments use SD v1.4 and SD v2.0. The results establish trajectory-aware spatial analysis as an effective link between memorization localization and targeted mitigation.
Technical Breakdown
Framework type: Inference-time, training-free unified framework for memorization localization and mitigation
Core mechanism: Trajectory-level aggregation of coordinate-wise curvature responses along the late denoising path. TACO models curvature as a trajectory-level spatial signal, departing from single-state curvature snapshots used in prior work.
Spatial refinement: Latent-guided spatial refinement is applied after curvature aggregation to improve the coherence of the memorization map across the spatial dimensions of the latent image.
Output artifact: A continuous memorization map serving dual roles — the resulting memorization map serves both as a localization signal and as a spatial control signal for mitigation.
Mitigation mode: Map-guided spatial reweighting and localized guidance correction are applied to existing inference-time interventions. Map-guided steering for existing inference-time interventions is validated across multiple baselines and Stable Diffusion model variants.
Memorization taxonomy addressed: Both global and local memorization, with particular emphasis on local memorization — the harder sub-problem where only a spatial sub-region of the generated image replicates training content.
Test platforms: Stable Diffusion v1.4, v2.0, and v2.1
Autonomy level: Fully automated at inference time; no user annotation or model retraining required.
Key metric improvement: TACO advances the Pareto frontiers between memorization suppression and generation quality, optimising simultaneously across memorization suppression, semantic alignment (CLIP score), and perceptual quality.
Industry Impact
For model developers and AI labs: TACO introduces a practical, drop-in diagnostic and mitigation layer for any latent diffusion model that already supports classifier-free guidance. Because it operates entirely at inference time and requires no retraining, it can be bolted onto deployed Stable Diffusion pipelines without disrupting existing fine-tuning workflows. Memorization arises not only from data redundancy but also from how diffusion models encode and retrieve semantic and structural priors during denoising, motivating inference-time mitigation strategies beyond dataset curation or retraining.
For copyright and compliance teams: The dual-use memorization map — localization plus mitigation — gives legal and trust-and-safety teams an auditable spatial record of which image regions are flagged as memorized. When training data includes sensitive or copyrighted material, memorization issues can infringe on copyright laws without notifying either the model's owners, users, or the copyright holders of the replicated content. A precise spatial map makes the compliance conversation more tractable than global detection scores alone.
For cloud inference providers: Because TACO steers existing inference-time methods rather than replacing them, integration overhead is low. The framework's compute cost is bounded by the number of late-stage denoising steps sampled for curvature aggregation — a tunable parameter that lets operators trade latency for localization precision.
For the research community: TACO sits at the intersection of two active sub-fields — geometric memorization analysis and spatial intervention at inference. A mid-generation, geometry-informed criterion that detects and then helps avoid memorized outputs works by analysing the natural image distribution manifold as learnt by the diffusion model. TACO's trajectory aggregation approach broadens this geometric paradigm by making it temporally aware, and its open benchmark evaluations on Stable Diffusion set a reproducible baseline for future comparison.
Limitations to watch: The approach is evaluated on Stable Diffusion variants; generalization to newer architectures (DiT-based models, flow-matching models) has not yet been demonstrated in this work. Additionally, even after weight pruning-style mitigation, small perturbations to text embeddings of previously mitigated prompts can re-trigger data replication — a robustness challenge that spatial map-guided inference-time methods will also need to address as adversarial probing of generative systems matures.
