mlsanityData to 14 Oct 2026

In-Context LoRA for Diffusion Transformers

arXiv 2410.23775 ↗First posted 31 Oct 2024cs.CV cs.GRcited by 158

On the map: Diffusion models → Image generation, text-to-image and editing

Abstract (arXiv)

Recent research arXiv:2410.15027 has explored the use of diffusion transformers (DiTs) for task-agnostic image generation by simply concatenating attention tokens across images. However, despite substantial computational resources, the fidelity of the generated images remains suboptimal. In this study, we reevaluate and streamline this framework by hypothesizing that text-to-image DiTs inherently possess in-context generation capabilities, requiring only minimal tuning to activate them. Through diverse task experiments, we qualitatively demonstrate that existing text-to-image DiTs can effectively perform in-context generation without any tuning. Building on this insight, we propose a remarkably simple pipeline to leverage the in-context abilities of DiTs: (1) concatenate images instead of tokens, (2) perform joint captioning of multiple images, and (3) apply task-specific LoRA tuning using small datasets (e.g., 20~100 samples) instead of full-parameter tuning with large datasets. We name our models In-Context LoRA (IC-LoRA). This approach requires no modifications to the original DiT models, only changes to the training data. Remarkably, our pipeline generates high-fidelity image sets that better adhere to prompts. While task-specific in terms of tuning data, our framework remains task-agnostic in architecture and pipeline, offering a powerful tool for the community and providing valuable insights for further research on product-level task-agnostic generation systems. We release our code, data, and models at https://github.com/ali-vilab/In-Context-LoRA

Key facts. Cited by 158 papers in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 40 of its 45 references that are in the map. First posted on arXiv 31 Oct 2024.

Builds on

40 of 45 references.

Closest ancestors · 13

Same direction, newest first

  1. 2024Group Diffusion Transformers are Unsupervised Multitask Learners19 Oct
  2. 2024Emu3: Next-Token Prediction is All You Need27 Sep
  3. 2024OmniGen: Unified Image Generation17 Sep
  4. 2024ANOLE: An Open, Autoregressive, Native Large Multimodal Models for Interleaved Image-Text Generation8 Jul
  5. 2024InstantID: Zero-shot Identity-Preserving Generation in Seconds15 Jan
  6. 2023IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models13 Aug
  7. 2023DragDiffusion: Harnessing Diffusion Models for Interactive Point-based Image Editing26 Jun
  8. 2023Intelligent Grimm -- Open-ended Visual Storytelling via Latent Diffusion Models1 Jun
  9. 2023LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generation30 Mar
  10. 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
  11. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug
  12. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
1 more
  1. 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr

Other references · 27

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
  7. 2021Zero-Shot Text-to-Image Generationcited by 4,288
  8. 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
  9. 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,253
  10. 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
  11. 2021Image Super-Resolution via Iterative Refinementcited by 1,511
  12. 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,430
15 more
  1. 2022Denoising Diffusion Restoration Modelscited by 963
  2. 2024Show-o: One Single Transformer to Unify Multimodal Understanding and Generationcited by 752
  3. 2024Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Modelcited by 483
  4. 2023Generative Multimodal Models are In-Context Learnerscited by 446
  5. 2023PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embeddingcited by 328
  6. 2023Emu Edit: Precise Image Editing via Recognition and Generation Taskscited by 324
  7. 2023Composer: Creative and Controllable Image Synthesis with Composable Conditionscited by 304
  8. 2023DiffIR: Efficient Diffusion Model for Image Restorationcited by 255
  9. 2024StoryDiffusion: Consistent Self-Attention for Long-Range Image and Video Generationcited by 247
  10. 2023Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifoldcited by 219
  11. 2023Style Aligned Image Generation via Shared Attentioncited by 216
  12. 2023Making LLaMA SEE and Draw with SEED Tokenizercited by 185
  13. 2023Diffusion Models for Image Restoration and Enhancement: A Comprehensive Surveycited by 109
  14. 2024SEED-Story: Multimodal Long Story Generation with Large Language Modelcited by 73
  15. 2024Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagationcited by 51

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 6; 2025: 96; 2026: 56.

158 papers.

Sort:

By area:

  1. 2025FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Spacecited by 1,006
  2. 2024OminiControl: Minimal and Universal Control for Diffusion Transformercited by 340
  3. 2025In-Context Edit: Enabling Instructional Image Editing with In-Context Generation in Large Scale Diffusion Transformercited by 204
  4. 2025Less-to-More Generalization: Unlocking More Controllability by In-Context Generationcited by 154
  5. 2025Phantom: Subject-consistent video generation via cross-modal alignmentcited by 129
  6. 2025EasyControl: Adding Efficient and Flexible Control for Diffusion Transformercited by 119
  7. 2025Long Context Tuning for Video Generationcited by 113
  8. 2025Mixture of Contexts for Long Video Generationcited by 95
  9. 2025Automated Movie Generation via Multi-Agent CoT Planningcited by 89
  10. 2025DreamO: A Unified Framework for Image Customizationcited by 83
  11. 2026Helios: Real Real-Time Long Video Generation Modelcited by 65
  12. 2025Any2AnyTryon: Leveraging Adaptive Position Embeddings for Versatile Virtual Clothing Taskscited by 63
38 more
  1. 2025Insert Anything: Image Insertion via In-Context Editing in DiTcited by 61
  2. 2025HoloCine: Holistic Generation of Cinematic Multi-Shot Long Video Narrativescited by 54
  3. 2025Captain Cinema: Towards Short Movie Generationcited by 48
  4. 2025MemFlow: Flowing Adaptive Memory for Consistent and Efficient Long Video Narrativescited by 45
  5. 2025StoryMem: Multi-shot Long Video Storytelling with Memorycited by 40
  6. 2025VisualCloze: A Universal Image Generation Framework via Visual In-Context Learningcited by 39
  7. 2025DreamOmni2: Multimodal Instruction-based Editing and Generationcited by 38
  8. 2025CreatiDesign: A Unified Multi-Conditional Diffusion Transformer for Creative Graphic Designcited by 36
  9. 2025EliGen: Entity-Level Controlled Image Generation with Regional Attentioncited by 33
  10. 2025EchoShot: Multi-Shot Portrait Video Generationcited by 29
  11. 2026LiveWorld: Simulating Out-of-Sight Dynamics in Generative Video World Modelscited by 28
  12. 2025Omni-Effects: Unified and Spatially-Controllable Visual Effects Generationcited by 27
  13. 2025USO: Unified Style and Subject-Driven Generation via Disentangled and Reward Learningcited by 27
  14. 2026VideoMemory: Toward Consistent Video Generation via Memory Integrationcited by 25
  15. 2025Edit Transfer: Learning Image Editing via Vision In-Context Relationscited by 23
  16. 2025Region-Constraint In-Context Generation for Instructional Video Editingcited by 23
  17. 2025Nested Attention: Semantic-aware Attention Values for Concept Personalizationcited by 21
  18. 2025UMO: Scaling Multi-Identity Consistency for Image Customization via Matching Rewardcited by 19
  19. 2025VideoAuteur: Towards Long Narrative Video Generationcited by 18
  20. 2025FullDiT2: Efficient In-Context Conditioning for Video Diffusion Transformerscited by 18
  21. 2025MoGA: Mixture-of-Groups Attention for End-to-End Long Video Generationcited by 18
  22. 2025VINCIE: Unlocking In-context Image Editing from Videocited by 17
  23. 2025Story2Board: A Training-Free Approach for Expressive Storyboard Generationcited by 17
  24. 2025In-Context Meta LoRA Generationcited by 15
  25. 2025Cut2Next: Generating Next Shot via In-Context Tuningcited by 15
  26. 2025Personalized Vision via Visual In-Context Learningcited by 14
  27. 2025Video-As-Prompt: Unified Semantic Control for Video Generationcited by 14
  28. 2025Mitty: Diffusion-based Human-to-Robot Video Generationcited by 14
  29. 2025DreamFuse: Adaptive Image Fusion with Diffusion Transformercited by 13
  30. 2025TextFlux: An OCR-Free DiT Model for High-Fidelity Multilingual Scene Text Synthesiscited by 13
  31. 2025OmniTry: Virtual Try-On Anything without Maskscited by 13
  32. 2024Video Diffusion Transformers are In-Context Learnerscited by 12
  33. 2025First Frame Is the Place to Go for Video Content Customizationcited by 12
  34. 2025Flux Already Knows -- Activating Subject-Driven Image Generation without Trainingcited by 11
  35. 2025MUSAR: Exploring Multi-Subject Customization from Single-Subject Dataset via Attention Routingcited by 11
  36. 2025FastFit: Accelerating Multi-Reference Virtual Try-On via Cacheable Diffusion Modelscited by 11
  37. 2025IC-Custom: Diverse Image Customization via In-Context Learningcited by 10
  38. 2025FilmWeaver: Weaving Consistent Multi-Shot Videos with Cache-Guided Autoregressive Diffusioncited by 10

50 most cited of 158 All 158 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026Token Pruning for In-Context Generation in Diffusion Transformers
  2. 2024Efficient Scaling of Diffusion Transformers for Text-to-Image Generation
  3. 2025Reflect-DiT: Inference-Time Scaling for Text-to-Image Diffusion Transformers via In-Context Reflection
  4. 2026Learning to Read the Contextual Tokens in Diffusion Transformers
  5. 2024Contextualized Diffusion Models for Text-Guided Image and Video Generation
  6. 2025DiT-Air: Revisiting the Efficiency of Diffusion Model Architecture Design in Text to Image Generation
  7. 2023DiffBlender: Composable and Versatile Multimodal Text-to-Image Diffusion Models
  8. 2024Enhancing Semantic Fidelity in Text-to-Image Synthesis: Attention Regulation in Diffusion Models