Compressing Image Style Training into a Single Model Forward

Zhongjie Duan, Yingda ChenarXiv 2026

TL;DR

The paper introduces i2L (Image-to-LoRA), a framework that eliminates the need for time-consuming per-style optimization by predicting LoRA weights directly from reference images in a single forward pass. By turning style personalization into a fast weight-prediction task, i2L achieves high style fidelity and prompt alignment across multiple diffusion backbones without semantic leakage.

What Problem Does This Paper Address?

Diffusion-based style transfer typically falls into two categories, both of which suffer from a fundamental trade-off between speed and quality:

  1. Adapter-based methods (e.g., IP-Adapter, ControlNet) inject style as an external conditioning signal. While fast (requiring only a single inference pass), they often suffer from semantic leakage—unintentionally copying objects or content from the reference image into the generated output—or fail to capture complex stylistic nuances.
  2. Optimization-based personalization (e.g., LoRA fine-tuning) internalizes the style directly into the model's weights. This yields excellent style fidelity but requires a slow, computationally expensive optimization loop for every single new style, making it impractical for interactive applications.

The authors address this gap by asking: Can we collapse the expensive optimization process of training a style LoRA into a single model forward pass?

Methods

The authors propose i2L, an architecture designed to map one or more reference images directly to layer-specific LoRA weights for a frozen text-to-image diffusion model.

Figure 1: The workflow of Image-to-LoRA.

The i2L Architecture

Directly predicting millions of weight parameters from an image is computationally prohibitive. To scale efficiently, i2L uses a structured, factorized approach:

  • Image Encoding: Reference images are processed by a frozen SigLIP2 encoder, retaining patch-level embeddings to capture localized textures, color palettes, and structural motifs.
  • Structured LoRA Queries: Instead of generating full matrices globally, the model introduces learnable query embeddings that correspond specifically to individual rows and columns of the target LoRA matrices.
  • Transformer Aggregation: The image tokens and LoRA queries are concatenated and passed through a single-stream transformer block ($T_\phi$), allowing queries to coordinate updates across different layers and ranks via self-attention.
  • Compressed Linear Decoding: To prevent the predictor from exploding in size, factorized, low-dimensional linear heads decode the final query states into the low-rank $A$ and $B$ matrices for each adapted layer.
Figure 2: Overview of the proposed i2L training pipeline. Reference images are encoded by an image encoder and fused with structured LoRA queries through a stack of transformer blocks. Compressed linear heads decode LoRA query states into LoRA matrices, which are inserted into the text-to-image model. The standard flow-matching loss is back-propagated through the LoRA application to train the i2L model end-to-end.

Asymmetric LoRA Guidance

At inference time, i2L leverages its fast weight generation to perform a novel twist on classifier-free guidance. It generates a style LoRA from the reference images for the positive prompt branch, and a "neutral" LoRA (predicted from a pure gray image) for the negative branch. This amplifies subtle stylistic attributes (like fine outlines or unique lighting) without requiring extra training.

Datasets

  • MegaStyle-1M: The primary dataset used for training. It contains roughly one million image tuples specifically engineered to be style-consistent but content-disjoint. This training setup is crucial: because the reference and target images contain completely different objects, the model is forced to learn abstract stylistic features rather than shortcutting by copying semantic content.
  • Validation Set: 1,000 held-out samples from MegaStyle-1M were used to evaluate prompt alignment and style consistency.

Key Insights and Ideas

  • Amortized Personalization: Rather than optimizing weights iteratively at test time, i2L shifts the computational burden to a one-time meta-training phase over a massive dataset, turning optimization into a direct mapping function.
  • Alignment with Matrix Structure: Matching the transformer queries directly to the row-and-column structure of low-rank matrices allows the model to scale across thousands of distinct weight tensors in modern diffusion backbones (like FLUX.2) while keeping the parameter footprint manageable.
  • Weights as a Modular Interface: Because i2L outputs standard, explicit LoRA weights, the predicted styles are inherently modular. They can be saved, shared, interpolated, or seamlessly combined with other downstream tools like ControlNet or inpainting pipelines.

Key Results

The authors evaluated i2L across three major foundation models: Z-Image (2.0B), FLUX.2 (1.9B), and Hidream-O1 (2.3B).

Quantitative Performance

Evaluated across a comprehensive suite of multi-aspect metrics (including CLIP-Style, PickScore, ImageReward, and HPSv3), the i2L variants consistently outperformed strong feature-injection baselines. Notably, i2L-FLUX.2 achieved the highest overall normalized score (1.08) compared to all baselines, demonstrating superior style fidelity without sacrificing text controllability.

Qualitative Advantages

As shown in the qualitative comparisons, i2L successfully captures complex visual languages (such as specific brushstrokes, lighting, and geometric deformations) while strictly adhering to the text prompt. Unlike IP-Adapter, it avoids bleeding reference objects into the new scene.

Qualitative style transfer comparisons across different base models and baselines.

Furthermore, i2L naturally supports multi-style fusion by aggregating tokens from multiple distinct style references into a single, unified weight update pass.

Multi-style fusion example combining visual attributes from two different style sources.

Limitations and Future Work

While the paper demonstrates robust performance, a few limitations and areas for future exploration remain:

  • Dependence on Meta-Training Data: The framework's ability to generalize to highly unusual styles depends heavily on the diversity of the style-disentangled dataset (MegaStyle-1M) used during training.
  • Fine-grained Detail Stabilization: Ablation studies show that while i2L works well with a single reference image, capturing highly intricate, fine-grained details still benefits from providing multiple reference images to stabilize the prediction. Future work could focus on improving the compression heads to capture these ultra-fine details from single-shot inputs.

Summary updated

BibTeX
@misc{duan2026compressing,
  author = {Zhongjie Duan and Yingda Chen},
  title = {{Compressing Image Style Training into a Single Model Forward}},
  year = {2026},
  eprint = {2606.13809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.13809},
}
Figure