AAAI 2027

TEA: Template Evolution-and-Allocation for Open-Vocabulary Domain Generalized Segmentation in Urban Scenes

Paper Code Poster Conference
Paired street scenes, visual features, road activation maps and benchmark scores
Figure 1. Follow the road across each pair of scenes. Frozen visual features preserve its shape across changes in weather and light, but the same text prompt can activate different regions. The last heatmap shows the response after adaptive aggregation.

Abstract

Open-vocabulary domain generalized segmentation asks a model to recognize unfamiliar categories in unfamiliar environments. In urban scenes, weather and illumination can weaken the alignment between a class description and its pixels even when the visual features still delineate the object. TEA adapts the text guidance of frozen dino.txt without mask annotations or model training. A language model proposes descriptions, an anchor-based test selects those supported by unlabeled images, and an allocation step weights their predictions using evidence from each test image. Across seven benchmark settings, TEA reaches 48.9 average mIoU.

Method Overview

Template evolution starts with category names and a set of generic anchor prompts. A language model proposes reusable descriptions such as a class seen on an urban street at night. On unlabeled images, TEA evaluates how confidently each candidate localizes classes and measures its agreement with the anchor predictions using Jensen–Shannon divergence. Admission depends on both the average improvement and how often the candidate improves on the anchors.

Template generation, anchor-gated selection and adaptive-weighted allocation
Figure 2. The left and middle panels show how TEA builds its template pool. At inference, Sinkhorn normalization softly matches patches to templates. The amount and strength of supporting evidence determine a weight for each template in the image, and the weighted activation maps yield the segmentation.

Highlights

Selection matters more than generation alone

On ACDC-19, adding generated templates raises mIoU from 32.7 to 33.4. Screening them against anchors brings the score to 46.4.

Image evidence guides aggregation

A template that fires on one isolated patch has less support than one that responds consistently across a region. Adaptive weighting adds another 3.8 points on ACDC-19.

Templates transfer across datasets

Templates evolved on ACDC-19 reach 51.4 mIoU on BDD and 49.8 on Mapillary, averaged across the two vocabularies for each target.

Results

Table 1 reports mIoU for seven urban segmentation settings. In the transductive protocol, TEA evolves templates using unlabeled images from the target domain. It reaches 48.9 average mIoU with a single frozen backbone and no mask post-processing. Mapi denotes Mapillary. An asterisk marks methods reimplemented with their original weights.

Table 1. Benchmark comparison (mIoU)
MethodACDC-19BDD-19Mapi-19ACDC-41BDD-41Mapi-30RoadWork-10Avg.
Training-based methods
CATSeg+AdvStyle-CS737.243.244.648.047.936.036.541.9
CATSeg+AdvStyle-GTAV38.243.851.149.254.239.134.344.3
CATSeg+DGInStyle-CS742.549.849.446.153.736.836.044.9
CATSeg+DGInStyle-GTAV39.148.151.450.755.939.634.045.5
S²-Corr-CS744.650.156.252.358.642.038.648.9
S²-Corr-GTAV40.448.654.551.356.442.436.747.2
Training-free methods with single backbone
SCLIP*25.128.031.728.934.525.724.028.3
ClearCLIP26.728.327.033.534.026.621.628.2
NACLIP33.335.341.036.943.133.626.235.6
SFP34.532.740.340.645.834.130.136.9
SC-CLIP33.235.840.840.644.033.129.936.8
VIP*43.243.448.847.648.440.131.943.3
Training-free methods with extra backbones
ProxyCLIP*31.734.038.539.746.533.531.136.4
Trident33.334.939.544.549.733.332.738.3
CLIPer31.236.039.743.749.033.030.737.6
Transductive evaluation
Baseline: dino.txt32.733.534.647.249.834.629.937.5
TEA50.247.255.153.256.044.935.448.9

The inductive evaluation holds out the target dataset during template evolution. Each row below uses the same source template pool on all the other datasets. ACDC, BDD and Mapillary scores average their two evaluation vocabularies.

Table 2. Cross-dataset transfer (mIoU)
Template sourceACDCBDDMapillaryRoadWork-10
ACDC-19—51.449.835.2
BDD-1951.1—49.634.6
Mapi-1951.451.3—34.9
Segmentation masks from SFP, NACLIP, ProxyCLIP and TEA with input images and ground truth
Figure 3. Each column follows the same street scene from the input image through four predictions to the ground truth. The left half uses Cityscapes categories. The right half uses the expanded vocabularies. Compare the continuity of road regions and the boundaries between walls and buildings.

Diagnostic Analysis

Night is the most difficult ACDC condition for both the frozen baseline and TEA. Adaptive text guidance raises its score from 25.8 to 38.5 mIoU. The largest absolute improvement over the baseline occurs in rain, from 34.9 to 52.4.

Table 3. ACDC validation by condition (mIoU)
MethodFogNightRainSnow
SCLIP33.522.131.632.0
ClearCLIP32.920.930.130.8
ProxyCLIP36.424.534.835.4
SFP38.925.636.837.2
SC-CLIP39.125.137.036.8
Frozen dino.txt35.425.834.935.2
TEA51.738.552.451.9

The component ablation keeps the backbone fixed and adds one stage per row. Anchor-gated selection produces the largest single gain on ACDC-19. Adaptive weighting improves all three settings after selection.

Table 4. Cumulative component ablation (mIoU)
VariantACDC-19BDD-41Mapi-30
Frozen dino.txt with anchors32.749.834.6
+ Template generation33.450.936.9
+ Anchor-gated selection46.454.041.6
+ Adaptive-weighted allocation50.256.044.9