RALC: Risk-Controlled Local Adoption of Segmentation Updates with Few Calibration Images
Organizations: Northeastern University, China
Abstract
Fine-tuning a road-scene segmenter for rain and nighttime driving can introduce errors on normal daytime images. With few labeled normal images for calibration, a whole-image risk check may reject changes that would pass if adopted locally. Risk-Controlled Adoption of Label Changes (RALC) selects local changes from a fixed model update, using confidence differences and an image score to form nested candidates. On each normal calibration image, RALC measures how many more errors each candidate makes than the original model, assigning zero loss when errors stay the same or fall. At test time, each replacement can add at most one error, so the replacement count bounds the net increase without test labels. RALC combines this candidate-dependent bound with recorded calibration losses to select the largest set that passes the risk check. If the models and adoption rules are fixed before calibration and normal calibration and test images are exchangeable, the expected per-image loss stays within budget. On held-out BDD100K, we evaluated three weight-interpolated updates with 10 additional normal images per calibration draw. At a common fixed budget, adverse-scene mIoU was 1.89--3.19 percentage points higher with RALC than with whole-image adoption, while measured mean normal loss was also higher. After matching this loss post hoc at 1,000 pixels per image, RALC still led by 1.135--2.428 points. Selecting changes in -pixel cells recovered 93--98% of this advantage. With 250 calibration images at the original budget, both rules adopted all three updates in full.
Figures & tables
| (a) Fixed budget | Full update | Calibrated adoption ( ) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Model | Update | Gain | Whole | Shared | RALC | RALC Whole | ||||
| (pp) | (px/img) | Gain | Gain | Gain | (pp) | |||||
| B2 | WI | +8.896 | 3,120 | +1.235 | 0.103 | +2.771 | 0.020 | +4.427 | 0.149 | +3.192 |
| B0 | WI | +5.852 | 6,359 | +0.492 | 0.110 | +2.281 | 0.108 | +3.166 | 0.282 | +2.675 |
| Mask2Former | WI | +2.671 | 2,972 | +0.225 | 0.068 | +1.015 | 0.037 | +2.114 | 0.161 | +1.889 |
| B2 | FT | +8.770 | 3,773 | +1.017 | 0.107 | +2.813 | 0.021 | +4.261 | 0.168 | +3.244 |
| Controller | B2 | B0 | M2F | |||
|---|---|---|---|---|---|---|
| Whole | 1.235 | 0.103 | 0.492 | 0.110 | 0.225 | 0.068 |
| Region-Conf. | 2.533 | 0.123 | 1.690 | 0.220 | 1.364 | 0.139 |
| grid | 4.182 | 0.145 | 3.054 | 0.291 | 2.012 | 0.161 |
| RALC | 4.427 | 0.149 | 3.166 | 0.282 | 2.114 | 0.161 |
| Model | Candidate | Dual | Full RALC | Controller | Full/cand. | Peak MiB |
|---|---|---|---|---|---|---|
| B2 | 60.8–61.3 | 106.0–106.3 | 175.5–178.1 | 70.9–83.6 | 2.86–2.93 | 1822 |
| B0 | 32.4–32.7 | 50.7–51.0 | 116.4–121.1 | 70.7–73.3 | 3.56–3.73 | 589 |
| M2F | 122.2–130.8 | 230.8–232.3 | 298.4–302.9 | 68.6–93.2 | 2.32–2.44 | 1847 |
| Model | Rule | mIoU (%) | Gain (pp) | Risk interval | |
|---|---|---|---|---|---|
| SegFormer-B2 | Whole | 52.878 | 2.191 | 0.103 | [0.062, 0.147] |
| , per-image | 55.912 | 5.226 | 0.145 | [0.090, 0.204] | |
| , shared | 53.423 | 2.737 | 0.020 | [0.008, 0.035] | |
| , per-image | 55.944 | 5.258 | 0.147 | [0.092, 0.208] | |
| Pixel, shared | 53.543 | 2.856 | 0.020 | [0.008, 0.034] | |
| Pixel, per-image (RALC) | 55.977 | 5.291 | 0.149 | [0.092, 0.211] |
| Model | Contrast | Mean | Test bootstrap | Single deployment |
|---|---|---|---|---|
| SegFormer-B2 | Pixel minus grid, per-image | 0.033 | [0.017, 0.049] | [-0.007, 0.102] |
| Pixel minus grid, shared | 0.120 | [0.099, 0.140] | [0.049, 0.439] | |
| Per-image minus shared, pixel | 2.434 | [1.804, 3.079] | [1.041, 3.509] | |
| Per-image minus shared, grid | 2.521 | [1.886, 3.159] | [1.088, 3.581] | |
| RALC minus Whole | 3.099 | [2.342, 3.847] | [2.184, 4.135] | |
| RALC minus grid | 0.064 | [-0.007, 0.140] | [-0.079, 0.277] |
| Model | Comparator | (pp) | Calibration | Test bootstrap | Joint variation |
|---|---|---|---|---|---|
| B2 | Whole | 3.192 | [2.955, 3.698] | [2.770, 3.831] | [2.669, 3.955] |
| B2 | Grid-Conf. | 0.245 | [0.181, 0.418] | [0.156, 0.360] | [0.116, 0.452] |
| B0 | Whole | 2.675 | [2.422, 2.969] | [2.313, 3.211] | [2.251, 3.310] |
| B0 | Grid-Conf. | 0.113 | [0.067, 0.182] | [0.052, 0.168] | [0.021, 0.209] |
| M2F | Whole | 1.889 | [1.260, 2.268] | [1.164, 2.894] | [1.035, 3.010] |
| M2F | Grid-Conf. | 0.102 | [0.040, 0.183] | [0.057, 0.160] | [-0.012, 0.242] |
| Model | Rule | Adverse mIoU (%) | Gain (pp) | Mean (pixels) | |
|---|---|---|---|---|---|
| SegFormer-B2 | Whole | 32.696 | 0.150 | 1,397.9 | 0.144 |
| grid | 35.442 | 2.897 | 4,689.6 | 0.484 | |
| RALC | 35.696 | 3.151 | 4,762.1 | 0.491 | |
| SegFormer-B0 | Whole | 28.850 | 0.040 | 390.8 | 0.040 |
| grid | 30.995 | 2.185 | 4,857.7 | 0.501 | |
| RALC | 31.137 | 2.327 | 5,111.1 | 0.527 |
| Model | Comparator | Mean | Test bootstrap | Single deployment |
|---|---|---|---|---|
| SegFormer-B2 | Whole | 3.001 | [2.663, 3.538] | [2.333, 3.861] |
| grid | 0.254 | [0.186, 0.358] | [0.157, 0.386] | |
| SegFormer-B0 | Whole | 2.287 | [2.009, 2.724] | [1.858, 2.903] |
| grid | 0.142 | [0.081, 0.203] | [0.042, 0.237] | |
| Mask2Former | Whole | 1.447 | [0.919, 2.043] | [0.545, 2.558] |
| grid | 0.127 | [0.081, 0.184] | [-0.022, 0.251] |
| Contrast | SegFormer-B2 | SegFormer-B0 | Mask2Former |
|---|---|---|---|
| RALC minus Whole | |||
| RALC minus ReCIRC-instance | |||
| RALC minus grid | |||
| RALC minus grid | |||
| Pixel: per-image minus shared | |||
| Single draw, within-draw match |
| Contrast | SegFormer-B2 | SegFormer-B0 | Mask2Former |
|---|---|---|---|
| RALC minus Whole | |||
| RALC minus grid | |||
| Pixel: per-image minus shared | |||
| grid: per-image minus shared |
| Evaluation images | Comparison | SegFormer-B2 | SegFormer-B0 | Mask2Former |
|---|---|---|---|---|
| Original adverse | ||||
| Original adverse | ||||
| Official overall | ||||
| Official overall |
| Mean (pixels) | Comparator | SegFormer-B2 | SegFormer-B0 | Mask2Former |
|---|---|---|---|---|
| 500 | Whole | 2.099 | 1.042 | 0.883 |
| 500 | ReCIRC-instance | 2.005 | 0.986 | 0.600 |
| 1,000 | Whole | 2.428 | 1.414 | 1.135 |
| 1,000 | ReCIRC-instance | 2.431 | 1.422 | 0.936 |
| 1,500 | Whole | 2.422 | 1.561 | 1.185 |
| 1,500 | ReCIRC-instance | 2.373 | 1.566 | 0.960 |
| Fixed budget ( ) | Matched loss ( ) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Gain (pp) | (pixels) | Gain or difference (pp) | |||||||
| Model | Family | Local | Rand. | Local | Rand. | Local | Rand. | Single-draw 95% interval | |
| SegFormer-B2 | Pixels | 4.427 | 3.551 | 1,446 | 1,984 | 3.666 | 1.666 | 2.001 | [0.745, 3.556] |
| cells | 4.356 | 3.552 | 1,426 | 1,987 | 3.608 | 1.663 | 1.945 | [0.683, 3.463] | |
| SegFormer-B0 | Pixels | 3.166 | 2.248 | 2,730 | 3,483 | 1.862 | 0.613 | 1.249 | [0.609, 2.064] |
| cells | 3.132 | 2.246 | 2,725 | 3,475 | 1.762 | 0.606 | 1.156 | [0.492, 2.011] | |
| Model | Rule | Common budget | Budget transferred from BDD | |||
|---|---|---|---|---|---|---|
| Rainy gain | Sunny loss | Rainy gain | Sunny loss | |||
| B0 | Whole | 1.247 | 3,860 | 0.00475 | 1.135 | 3,694 |
| Learned Whole | 0.182 | 1,938 | 0.005 | 0.182 | 1,938 | |
| grid | 2.832 | 4,082 | 0.00225 | 2.247 | 1,507 | |
| RALC | 2.881 | 4,093 | 0.0025 | 2.514 | 1,791 | |
| B2 | Whole | 1.039 | 3,220 | 0.005 | 1.039 | 3,220 |
| Model | Comparator | Budget | RALC minus comparator | Draw-average interval | Single-draw interval |
|---|---|---|---|---|---|
| B0 | Learned Whole | Fixed | 2.699 | ||
| Transfer | 2.332 | ||||
| grid | Fixed | 0.050 | |||
| Transfer | 0.267 | ||||
| B2 | Learned Whole | Fixed | 0.038 | ||
| Transfer | 0.324 |
| Model | Comparator | Budget | RALC minus comparator | Draw-average interval | Single-draw interval |
|---|---|---|---|---|---|
| B0 | Learned Whole | Fixed | 2,155.5 | ||
| Transfer | -146.4 | ||||
| grid | Fixed | 11.1 | |||
| Transfer | 284.3 | ||||
| B2 | Learned Whole | Fixed | -75.2 | ||
| Transfer | -600.5 |
| Model | Target | Learned Whole | grid | RALC |
|---|---|---|---|---|
| B2 | 500 | 0.023 | 1.274 | 1.529 |
| 1,000 | 0.070 | 1.781 | 1.912 | |
| 1,500 | 0.169 | 1.968 | 2.078 | |
| 2,000 | 0.395 | 2.021 | 2.105 | |
| B0 | 500 | 0.015 | 1.149 | 1.485 |
| 1,000 | 0.055 | 1.930 | 2.086 |
| Model | RALC minus Learned Whole | Grid minus Learned Whole | RALC minus grid | |||
|---|---|---|---|---|---|---|
| Difference | 95% interval | Difference | 95% interval | Difference | 95% interval | |
| B2 | 1.842 | 1.711 | 0.131 | |||
| B0 | 2.031 | 1.874 | 0.157 | |||
| M2F | 0.295 | 0.258 | 0.037 | |||
| Shared bound | Per-image bound | Pixel minus grid (pp) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Grid | Pixel | Grid | Pixel | Shared | Per-image | |||||
| Model | mIoU | mIoU | mIoU | mIoU | ||||||
| B2 | 53.423 | 0.020 | 53.543 | 0.020 | 55.944 | 0.147 | 55.977 | 0.149 | 0.120 | 0.033 |
| B0 | 46.500 | 0.107 | 46.574 | 0.108 | 48.083 | 0.281 | 48.115 | 0.282 | 0.074 | 0.033 |
| M2F | 57.397 | 0.038 | 57.452 | 0.037 | 57.943 | 0.161 | 57.978 | 0.161 | 0.054 | 0.035 |
| Method | B2 | B0 | M2F | |||
|---|---|---|---|---|---|---|
| RALC | 4.427 | 0.149 | 3.166 | 0.282 | 2.114 | 0.161 |
| ReCIRC-global | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
| ReCIRC-shared | 0.215 | 0.019 | 0.030 | 0.006 | 0.200 | 0.015 |
| ReCIRC-instance | 1.341 | 0.113 | 0.525 | 0.122 | 0.709 | 0.113 |
| Controller | B2 | B0 | M2F | |||
|---|---|---|---|---|---|---|
| Whole | 1.235 | 0.103 | 0.492 | 0.110 | 0.225 | 0.068 |
| Region-Conf. | 2.533 | 0.123 | 1.690 | 0.220 | 1.364 | 0.139 |
| grid | 4.182 | 0.145 | 3.054 | 0.291 | 2.012 | 0.161 |
| RALC | 4.427 | 0.149 | 3.166 | 0.282 | 2.114 | 0.161 |
| Region-Entropy | 2.418 | 0.128 | 1.565 | 0.203 | 1.333 | 0.131 |
| Adverse gain (pp) | Normal loss | Paired 95% interval for (pp) | |||||
|---|---|---|---|---|---|---|---|
| Update | Draw mean | Single draw | |||||
| B2 WI | 0.603 | 4.427 | 3.824 | 42 | 1,446 | [3.272, 4.710] | [2.718, 4.831] |
| B0 WI | 0.431 | 3.166 | 2.735 | 151 | 2,730 | [2.393, 3.297] | [2.007, 3.409] |
| M2F WI | 0.489 | 2.114 | 1.625 | 126 | 1,560 | [0.765, 2.735] | [0.557, 2.911] |
| B0 FT | 0.397 | 2.783 | 2.386 | 144 | 3,001 | [2.066, 2.905] | [1.796, 3.010] |
| Mixed share (%) | Ordering accuracy (%) | Same transition (%) | |||
|---|---|---|---|---|---|
| Model | Adverse | Normal | Adverse | Normal | Adverse |
| SegFormer-B2 | 3.83 | 14.55 | 81.60 | 80.96 | 82.07 |
| SegFormer-B0 | 3.31 | 12.80 | 79.19 | 79.41 | 80.13 |
| Mask2Former | 3.90 | 15.68 | 81.69 | 79.78 | 79.64 |
| Original gap | Class-adjusted gap | Pixel difference | ||||
|---|---|---|---|---|---|---|
| Model | Pixel | Grid | Pixel | Grid | Paired percentiles | |
| SegFormer-B2 | 2.871 | 2.538 | 2.126 | 1.840 | ||
| SegFormer-B0 | 2.031 | 1.779 | 1.476 | 1.270 | ||
| Mask2Former | 4.320 | 4.055 | 3.496 | 3.262 | ||
| Case | BDD image ID | Corrections | New errors | Adopted changes | |
|---|---|---|---|---|---|
| (a) | 196d16dd-e26c2301 | 101,176 | 1,677 | 0 | 106,282 |
| (b) | a822c459-20b67e7f | 17,587 | 59,911 | 42,324 | 83,291 |
| (c) | ab0735fb-f491ca69 | 36,285 | 32,227 | 0 | 84,860 |
| Backbone | Update seed | Micro-F1 gain [interval] | Mean loss [interval] | Macro-F1 gain |
|---|---|---|---|---|
| ResNet-50 | 16112027 | 8.213 | ||
| ResNet-50 | 16112028 | 7.951 | ||
| ConvNeXt-Tiny | 16112027 | 6.721 | ||
| ConvNeXt-Tiny | 16112028 | 6.901 |
Semantic Segmentation
Semantic segmentation assigns a class label to every image pixel, enabling detailed scene understanding across domains and sensors.
See all 460 papers