Manuscript Offprint

arXiv:2609.38136

CLeaR: A Unified Framework for Resolving the Leakage-Degradation Dilemma in Style Transfer

Teng Zhou, Yunhao Chen

Abstract

Style transfer aims to render target content in the style of a reference image, but existing methods often suffer from content leakage, where objects, layouts, or semantics from the style reference appear in the generated output. Although prior data-driven and training-free methods can reduce leakage, they often face a leakage-degradation dilemma: stronger content suppression may weaken style fidelity, while richer style preservation may reintroduce unwanted reference content. We identify this dilemma across the full style-transfer pipeline, including feature separation, feature-space grounding, and diffusion generation. To address these issues, we propose CLeaR, a training-free framework for content-leakage-resistant style transfer. CLeaR first uses Orthogonal Subspace Projection to define content-reduced style targets in each vision foundation model (VFM) feature space. It then performs Ensemble Inversion, which optimizes a shared pixel-space style anchor satisfying style constraints across multiple VFMs. Finally, Energy-Guided Calibration maintains style alignment during diffusion sampling by steering the denoising trajectory toward the ensemble-defined style manifold. We further provide a theoretical analysis showing that the style-anchor estimation error decreases with the number of VFMs. Experiments on StyleBench demonstrate that CLeaR improves style alignment, reduces content leakage, and achieves better LLM-as-Judge evaluation compared with existing methods. The code is available at https://github.com/0606zt/CLeaR.

1 Introduction

Given a style reference image and a target content condition, style transfer (ST) aims to render the target content in the reference style. Since early neural style transfer, this task has been closely tied to content-style (C-S) separation [9]. With diffusion models becoming the dominant backbone for image generation [24, 21], ST is increasingly formulated as conditional generation [42, 51, 4, 12, 40]. However, incomplete C-S disentanglement can cause content leakage, where objects, layouts, or semantics from the style reference appear in the output [54, 26, 40], reducing quality and user control.

To mitigate content leakage, existing methods commonly use visual representations from pretrained or learned encoders to define a style condition that is later injected into a diffusion generator. Data-driven methods train style-aware encoders, disentanglement modules, adapters, or projection layers on paired or curated stylization data [8, 41, 52, 33, 16, 17, 22, 45]. Although effective in specific settings, they require additional training and are often constrained by the training distribution. Training-free methods instead manipulate pretrained VFM or diffusion features directly, such as subtracting content-related text features from image features [40], masking feature dimensions, shuffling spatial tokens, modifying attention keys and values, or guiding the denoising trajectory with reference-based objectives [54, 43, 27, 4, 12, 26]. Despite these differences, both paradigms typically define style within a particular feature space and rely on the diffusion model to generate the final image from the resulting edited or guided condition.

∗^{*}Equal Contribution, Corresponding Author

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Although these methods can reduce content leakage in some cases, they often lack stable control over the boundary between content removal and style preservation. As a result, existing methods tend to fail on different sides of the same dilemma [26]: methods that preserve rich style cues may also retain unwanted reference content, whereas methods that suppress reference content more strongly may remove important stylistic details. We refer to this as the leakage-degradation dilemma.

This dilemma is not caused by a single isolated step. It arises throughout the style-transfer pipeline, from separating C-S features, to grounding the style signal in a representation space, to injecting that signal during diffusion generation.

The first source is the feature separation stage, where content-related and style-related components are separated within a reference representation. Existing operations such as subtraction, masking, patch manipulation, or attention editing can reduce content signals, but are mostly heuristic and may either leave residual content or discard style information correlated with content. To address this issue, we introduce Orthogonal Subspace Projection (OSP), which defines the style target geometrically in each VFM feature space. Given a content proxy, it removes the component of the reference feature aligned with the content direction and retains the orthogonal residual as the style feature.

The second source is the feature-space grounding stage, where the extracted style signal is grounded in a particular representation space. Most existing methods rely on a single VFM feature space or a single learned representation, which is fragile because different VFMs encode style and content differently [23, 31, 14, 49]. Directly aligning multiple VFM spaces is impractical because their dimensions, metrics, and semantic structures differ, while learning cross-space projectors would add training cost and risk domain overfitting. Instead, we make use of a simpler and more general observation: image pixel space provides a shared domain associated with all VFM feature spaces. This allows heterogeneous style constraints to be combined by optimizing an image itself, rather than by aligning feature spaces directly. Based on this idea, we introduce Ensemble Inversion (EI), which optimizes a learnable image tensor into a shared style anchor whose features satisfy the model-specific style constraints across all VFM branches.

The third source is the diffusion generation stage, where the extracted style condition is injected into the generative process. Standard condition injectors such as IP-Adapter [47] are trained on ordinary image-text pairs rather than on content-reduced style anchors, so the denoising trajectory may drift from the intended style or reintroduce leaked content. To address this issue, we introduce Energy-Guided Calibration (EGC), a test-time guidance mechanism inspired by prior diffusion guidance methods [48, 1]. At selected denoising steps, it computes an ensemble feature-alignment energy between the current decoded image and the target style representation, and uses its gradient to calibrate the latent update toward the VFM-defined style manifold.

In summary, we introduce CLeaR (Content Leakage Resistant), a training-free framework for C-S disentangled style transfer. CLeaR defines content-reduced style targets through Orthogonal Subspace Projection, reconciles heterogeneous VFM targets through Ensemble Inversion, and maintains style alignment through Energy-Guided Calibration. Together, these components reduce content leakage at both the representation-extraction stage and the generation stage.

Our contributions are summarized as follows:

• We propose CLeaR, a training-free framework that extracts a shared pixel-space style anchor via Orthogonal Subspace Projection and Ensemble Inversion, and maintains style alignment through Energy-Guided Calibration.

• We provide a theoretical analysis showing that the style-anchor estimation error decreases with the number of VFMs under limited cross-model dependence.

• Experiments on StyleBench [8] show improvements in style alignment, content leakage metrics, and LLM-as-Judge evaluation.

References (49)