Concept-Aware LoRA for Domain-Aligned Segmentation Dataset Generation

Minho Park, Sunghyun Park, Jungsoo Lee, Hyojin Park, Kyuwoong Hwang, Fatih Porikli, Jaegul Choo, Sungha Choi · DOI

TL;DR

Generating synthetic training data using Text-to-Image (T2I) models usually forces a frustrating tradeoff: either the generated images don't match your target domain, or the model overfits and loses its ability to generate diverse, novel scenes. This paper introduces Concept-Aware LoRA (CA-LoRA), a surgical fine-tuning technique that updates only the specific neural network weights responsible for a desired concept (like "viewpoint" or "style"). This allows the model to perfectly align with a target domain's layout while retaining its pretrained ability to hallucinate diverse, informative variations like adverse weather or new objects.

What Problem Does This Paper Address?

Training semantic segmentation models requires massive amounts of pixel-perfect labeled data, which is notoriously expensive and time-consuming to create. Recently, researchers have started using large Text-to-Image (T2I) models like Stable Diffusion to generate synthetic image-label pairs.

However, this introduces a major challenge: domain alignment vs. diversity. If you use a pretrained T2I model out-of-the-box, the images it generates won't match the specific domain you need (e.g., the exact camera angle of a self-driving car dashcam). To fix this, you can fine-tune the model on your small dataset using techniques like Low-Rank Adaptation (LoRA). But standard LoRA is a blunt instrument—it learns everything about the training data, including the specific weather, lighting, and exact cars present. The model suffers from "catastrophic memorization," losing the rich, diverse knowledge it originally had. You end up generating exact clones of your training data, which doesn't help your downstream segmentation model learn anything new.

Comparison of CA-LoRA with standard fine-tuning. CA-LoRA achieves both domain alignment (viewpoint) and informative diversity (weather/lighting).

Methods

The authors propose Concept-Aware LoRA (CA-LoRA) to selectively fine-tune only the weights that matter for a specific concept, leaving the rest of the model's pretrained knowledge intact.

The four-stage pipeline of CA-LoRA: identifying sensitive weights, selective fine-tuning, training the label generator, and synthesizing the dataset.

Here is how they do it:

  1. Identify Sensitive Weights: The authors use a gradient-based trick to find where concepts "live." They compare the loss gradients of a standard prompt (e.g., "photorealistic first-person urban street view") to an augmented version targeting a concept (e.g., "...in top-down view"). This calculates a "Concept Sensitivity" score for every projection layer in the attention blocks.
  2. Selective Fine-Tuning: Instead of applying LoRA to every attention layer, CA-LoRA only attaches LoRA modules to the top $k$% most sensitive layers for the desired concept.
  3. Train Label Generator: A lightweight label generator is trained on the intermediate features (feature maps and cross-attention maps) of the selectively fine-tuned T2I model.
  4. Dataset Generation: Because the T2I model now understands the target domain's viewpoint but retains its pretrained diversity, they can use text prompts to generate highly diverse, perfectly aligned synthetic datasets (e.g., adding "...in foggy weather" to the prompt).

Datasets and Evaluation

  • Source/Training: Cityscapes (urban driving scenes, mostly clear weather).
  • In-Domain Evaluation: Cityscapes validation set.
  • Domain Generalization (DG) Evaluation: ACDC (adverse weather), Dark Zurich (nighttime), BDD100K, and Mapillary Vistas.
  • General Domain: Pascal-VOC.

Key Insights and Ideas

  • Surgical updates prevent amnesia: By updating only a tiny fraction of the model (e.g., 2% to 10% of layers), the model learns exactly where to place roads and cars (viewpoint) but remembers how to draw them in the snow, rain, or dark. Standard LoRA overwrites both.
  • Task-Specific Concepts: The authors found that for in-domain tasks, isolating the Style concept works best. For domain generalization (e.g., training on sunny Cityscapes to test on rainy ACDC), learning only the Viewpoint is crucial. This allows the model to freely hallucinate new weather styles that weren't in the training data.
  • Automated localization: Finding where concepts reside is usually done via manual ablation. The gradient-based sensitivity metric proposed here is a highly effective, automated alternative.

Key Results

  • In-Domain Segmentation: Using Style CA-LoRA to generate synthetic data improved few-shot segmentation (using only 0.3% of Cityscapes data) by +2.30 mIoU over baselines. It even improved fully-supervised performance by +1.34 mIoU.
  • Domain Generalization: Viewpoint CA-LoRA generated data boosted performance by an average of +2.48 mIoU across various DG methods (like DAFormer and HRDA) when testing on unseen, harsh-weather datasets.
  • Qualitative Superiority: Standard LoRA failed to generate snowy or foggy scenes when prompted, outputting clear-day clones. CA-LoRA successfully generated realistic adverse weather while maintaining the strict geometric layout required for driving datasets.

Limitations and Future Work

  • Manual Prompt Engineering: The method currently relies on hand-crafted prompt augmentations to isolate style or viewpoint weights.
  • Future Work: The authors suggest using Large Language Models (LLMs) to automate the search for optimal prompt augmentations and plan to extract more granular concepts beyond just "style" and "viewpoint."

Summary updated

BibTeX
@inproceedings{park2026concept,
  author = {Minho Park and Sunghyun Park and Jungsoo Lee and Hyojin Park and Kyuwoong Hwang and Fatih Porikli and Jaegul Choo and Sungha Choi},
  title = {{Concept-Aware LoRA for Domain-Aligned Segmentation Dataset Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=l1BogPuFAC},
}
Figure