Abstract
Replacing an object with one that differs in category or shape requires complete source removal, natural target formation unconstrained by the source silhouette, and preservation of unrelated content. Existing training-free editors often trade edit completeness for background preservation or localize edits from signals whose spatial response has already been obscured by later network transformations. PC-Edit is a prompt-contrastive framework for training-free MM-DiT editing. It contrasts image-token attention outputs under source and target prompts at the same latent state and timestep, capturing semantic differences directly where text-conditioned information is delivered to image tokens. The same contrast discovers a source-erasure region during inversion and tracks a target-emergence region during denoising. Their union suppresses source remnants while allowing the target to form naturally. PC-Edit further preserves unrelated content by immediately injecting cached source K/V features outside the discovered region within each sampling step. The method supports single- and multi-object addition and replacement without user-provided masks.