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

TL;DR

Concept-Aware LoRA (CA-LoRA) is a novel parameter-efficient fine-tuning method that selectively updates only the weights of a text-to-image (T2I) model associated with specific target domain concepts, such as viewpoint or style. By preventing the model from completely memorizing and overfitting to the training data, CA-LoRA preserves the T2I model's ability to generate highly diverse variations (like adverse weather) while maintaining strict alignment with the target domain layout. This enables the automated generation of high-quality synthetic datasets that significantly boost the performance of semantic segmentation models.

What Problem Does This Paper Address?

Training robust semantic segmentation models requires massive amounts of pixel-level annotated data. Collecting these images and labeling them by hand is incredibly labor-intensive, particularly for rare or hazardous scenarios like driving in heavy fog or at night.

While pre-trained text-to-image (T2I) diffusion models (like Stable Diffusion) can theoretically generate endless synthetic training data, they face a frustrating Catch-22:

  1. Without fine-tuning, the generated images lack domain alignment. For example, they won't naturally match the specific first-person dashboard perspective required for urban driving datasets.
  2. With standard fine-tuning (such as standard LoRA), the model overfits and memorizes the training dataset's exact style (e.g., clear-day conditions). This destroys its text controllability, meaning it can no longer generate diverse variations like "night-time" or "snowy" even when explicitly prompted.
Motivation behind CA-LoRA

The authors tackle this challenge by finding a way to fine-tune only the necessary structural concepts (like viewpoint) while keeping the model's creative, diverse style-generation capabilities intact.

Methods

The authors introduce Concept-Aware LoRA (CA-LoRA), which operates in a four-stage pipeline to generate domain-aligned segmentation datasets:

Figure 2. Overview of our framework for generating an urban-scene segmentation dataset by learning the Cityscapes viewpoint. The process consists of four stages: (1) identifying sensitive weights for a specific concept, (2) selectively fine-tuning them with LoRA, (3) training a label generator using features from T2I model, and (4) generating diverse image-label pairs with augmented prompts.
  1. Identify Sensitive Weights: To find which parts of the network control specific attributes, the authors introduce a Concept Loss. They feed the model modified prompts (e.g., changing "photorealistic" to "sketch" for style, or adding "top-down view" for viewpoint) and analyze the resulting gradients. Crucially, they normalize this concept gradient against the standard diffusion loss gradient to eliminate positional bias caused by layer depth, yielding an unbiased "Concept Awareness" score for each attention layer.
  2. Selectively Fine-Tune: Instead of updating the entire network or all LoRA layers, CA-LoRA selectively attaches and trains LoRA weights only on the top-$k\%$ most concept-sensitive projection layers (Q, K, V, OUT), keeping the rest of the pre-trained model frozen.
  3. Train Label Generator: Following prior work (DatasetDM), a lightweight label generator is trained on the intermediate multi-scale feature maps and cross-attention maps of the fine-tuned T2I model using a small set of labeled data.
  4. Dataset Generation: Finally, the fine-tuned model generates a massive, diverse dataset of image-label pairs by combining the target domain's layout with text-augmented prompts specifying various weather and lighting conditions.

Datasets

The method was trained and evaluated using several prominent urban-scene segmentation benchmarks:

  • Cityscapes: Used as the primary source domain for fine-tuning and in-domain evaluation.
  • ACDC & Dark Zurich (DZ): Used to evaluate domain generalization under severe adverse weather (fog, rain, snow) and night-time conditions.
  • BDD100K & Mapillary Vistas (MV): Used to evaluate domain generalization across different geographic locations and camera setups.
  • PASCAL VOC: Used to verify the method's generalizability outside of urban driving scenes.

Key Insights and Ideas

  • Concept Disentanglement is Possible: Standard parameter-efficient fine-tuning (PEFT) methods treat all layers equally, causing catastrophic forgetting of the base model's diverse knowledge. CA-LoRA demonstrates that specific visual concepts like "viewpoint" are localized enough to be targeted independently.
  • The Normalization Breakthrough: Raw gradients in deep networks naturally exhibit massive scale differences depending on how deep the layer is. Normalizing the concept gradient by the standard diffusion gradient is essential to isolate true concept sensitivity rather than just measuring layer depth.
  • Style vs. Viewpoint Trade-off: The authors discovered that fine-tuning style-aware layers is highly effective for in-domain tasks (matching a specific dataset's look), but completely breaks text controllability for weather generation. Conversely, fine-tuning viewpoint-aware layers preserves text adherence perfectly, making it the ideal choice for domain generalization.

Key Results

  • In-Domain Performance: When evaluating on Cityscapes, adding CA-LoRA generated data provided a +2.30% mIoU boost in a 0.3% few-shot setting and a +1.34% mIoU boost in a fully-supervised setting over the baseline, consistently outperforming standard LoRA and DatasetDM.
  • Domain Generalization (DG): When paired with state-of-the-art domain adaptation methods like HRDA, CA-LoRA achieved an average gain of +1.53% mIoU across the ACDC, Dark Zurich, BDD100K, and Mapillary Vistas datasets. It excelled particularly on ACDC and Dark Zurich, where weather and lighting shifts are most severe.

Limitations and Future Work

While CA-LoRA achieves state-of-the-art performance among synthetic dataset generation techniques, the authors note that performance gains can still appear marginal in certain heavily supervised, saturated settings. Additionally, the current framework primarily focuses on isolating "style" and "viewpoint" concepts. The authors suggest that extending this concept-awareness framework to automatically capture and isolate more granular attributes—such as object shapes, specific layouts, or foreground-background relationships—is a promising direction for future research.

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