Lighting-aware Unified Model for Instance Segmentation

Qisai Liu, Alloy Das, Zhanhong Jiang, Joshua R. Waite, Aditya Balu, Adarsh Krishnamurthy, Soumik SarkararXiv 2026

TL;DR

Foundation models like the Segment Anything Model (SAM) are powerful but surprisingly fragile when the lights go out or the sun gets too bright. This paper introduces Lighting Convolutional-Attention (LCA), a lightweight adapter that uses contrast maps and a dual-stream training strategy to make instance segmentation robust to extreme illumination without the need to fine-tune heavy backbones.

What Problem Does This Paper Address?

Instance segmentation—the task of identifying and outlining every individual object in an image—has seen a massive leap forward thanks to foundation models like SAM. However, these models have a "fair-weather" bias: they are primarily trained on high-quality, well-lit datasets.

When deployed in the real world, they often fail in "adverse" lighting conditions, such as nighttime driving, low-light indoor environments, or overexposed outdoor scenes. Standard solutions like generic data augmentation often fall short, and full-model retraining is computationally prohibitive. The authors identify a critical gap: models lack explicit mechanisms to reason about an object's structural integrity independently of how it is lit.

Methods

The authors propose a framework called PLAP-LCA, which consists of three main components:

  1. The LCA Module: Instead of retraining SAM’s heavy ViT backbone, the researchers inject a lightweight "adapter" into the final transformer blocks. The LCA module uses a dual-branch architecture that processes standard RGB features alongside Laplacian-filtered contrast maps. This allows the model to focus on structural edges—which remain relatively stable across lighting changes—rather than illumination artifacts.
  2. Three-Gate Attention: The module employs Channel, Spatial, and Contrast attention gates. The Contrast gate is particularly novel, using a fixed Laplacian kernel to detect intensity gradients (edges) that define object boundaries.
  3. Zero-Initialization: The adapter is designed to "fade in" during training. By initializing the weights to zero, the model starts as an exact copy of the original SAM, preventing the "representation damage" that often occurs when adding new, randomly initialized components to a pre-trained model.
  4. Pairwise Lighting Augmentation Pipeline (PLAP): A training strategy that uses pairs of images—one "clean" and one with a lighting variant (e.g., heavy shadows, haze, or exposure shifts)—that share the same ground-truth mask.
  5. Consistency Loss: A new loss term that explicitly penalizes the model if its predictions for the clean image and the poorly lit variant differ. This forces the model to learn lighting-invariant representations.
Fig. 1: PLAP-LCA. Clean and variant images share a SAM ViT-B encoder with LCA modules injected into the final two blocks. Only LCA weights, scalar gates, and the mask decoder are trained through supervise and consistency losses. Please see the Supplementary Materials for concrete details of the whole framework.

Datasets

The study evaluates the model across three established benchmarks: COCO, VOC 2012, and Cityscapes.

Crucially, the authors also introduced Unity-Lighting, a new synthetic dataset generated using the Unity engine. Unlike 2D image augmentations, this dataset simulates actual 3D light transport, including complex reflections and mixed natural/artificial light sources. It provides pixel-perfect annotations across four severity levels: Clean, Mild, Moderate, and Severe.

Fig. 2: Unity synthetic data pipeline overview. Top: The lighting rig exposes five physically-grounded parameters manipulated directly in the 3D scene. Middle: Each iteration randomises 16 camera positions then records instance-segmentation masks. Bottom: Every viewpoint is re-rendered under four lighting conditions Clean, Mild, Moderate, and Severe construct pairwise training data with the perfect ground truth mask.

Key Insights and Ideas

  • Structure Over Pixels: The "aha moment" here is the use of the Laplacian operator. By explicitly feeding the model edge information, the researchers give it a "structural prior" that is physically motivated. Lighting changes the color and brightness of pixels, but it rarely changes the fundamental geometry of an object's edge.
  • Efficiency via Adapters: The LCA module adds only about 2.4M trainable parameters to a 93.7M parameter baseline (a mere 2.6% overhead). This makes it possible to add robustness to massive foundation models without needing a supercomputer for retraining.
  • Consistency as Supervision: Forcing the model to "predict the same thing regardless of lighting" acts as a powerful self-supervised signal that bridges the domain gap between ideal and adverse conditions.

Key Results

The proposed LCA+Dec (LCA adapter plus decoder tuning) consistently outperformed the baseline SAM and other adaptation strategies:

  • Cityscapes: On lighting-variant images, the baseline SAM achieved an mIoU of 0.560. The LCA+Dec model boosted this to 0.784.
  • Robustness: On the COCO dataset, the performance drop under severe lighting was reduced from 1.19 percentage points in the baseline to just 0.70 points with LCA.
  • Qualitative Improvements: Visualizations (via GradCAM) showed that while the baseline model's attention "diffused" into low-contrast backgrounds under poor lighting, the LCA module successfully refocused attention onto high-contrast object boundaries.
Fig. 3: Lighting Convolutional Attention (LCA) module. Channel, spatial, and Lapla- cian contrast gates are multiplied element-wise and projected separable convolution, then fused through a learned scalar gate.

Limitations and Future Work

While highly effective, the authors note several limitations:

  • Extreme Scenarios: The model has not yet been tested in "complete darkness" where only a single point light is present.
  • Computational Overhead: Although lightweight, the adapter does add some inference cost, which might be a concern for real-time edge deployment (e.g., on a drone or mobile device).
  • Scope: The current work focuses strictly on instance segmentation. Extending this lighting-aware logic to video tracking or panoptic segmentation remains an open area for future research.

Summary updated

BibTeX
@misc{liu2026lighting,
  author = {Qisai Liu and Alloy Das and Zhanhong Jiang and Joshua R. Waite and Aditya Balu and Adarsh Krishnamurthy and Soumik Sarkar},
  title = {{Lighting-aware Unified Model for Instance Segmentation}},
  year = {2026},
  eprint = {2605.20436},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.20436},
}
Figure