FCNs in the Wild: Pixel-level Adversarial and Constraint-based Adaptation
Paper · 2016 · Judy Hoffman, Dequan Wang, Fisher Yu et al.
Summary
A street-scene segmenter can learn to mark roads, sidewalks, vehicles, and signs in one collection of images, then make errors on familiar objects when the city or season changes. Its job is to assign a category to every pixel, so a change can affect both what the system recognizes and how far it extends a label across the image. Drawing new reference maps for each setting takes considerable effort. “FCNs in the Wild” asks how much of that work can be avoided if the new setting supplies images alone.
As their starting point, the authors use a fully convolutional network (FCN) trained for image segmentation on a labeled source dataset. They continue that supervised training while introducing images from the unlabeled target collection. A domain classifier looks at features from individual positions on the network’s spatial grid and tries to tell which collection they came from. The segmenter adjusts those features to make their origin harder to identify. The resulting comparison covers many image regions, at the same stage of the network that supplies evidence for semantic predictions.
The authors then use the source annotations to estimate how much of a scene each class ordinarily occupies when present. A road may cover a substantial part of a frame, while a sign may cover very little. On each target image, the network first guesses which classes occur. The adaptation procedure uses the source coverage statistics for those classes to obtain a revised labeling, which provides a further training signal. This gives the network category-specific guidance alongside the broader alignment of source and target features.
For GTA5 to Cityscapes, global alignment brings a 4.4% raw gain in mean intersection over union, or mIoU, a measure of agreement between predicted and annotated regions. Category-specific training adds 1.6% raw mIoU on Cityscapes validation. The paper reports that, across the SYNTHIA seasonal transfers, mIoU rose by about 3 percentage points on average and 12 of the 13 categories improved. From Cityscapes training cities to validation cities, global alignment contributes 3.6 percentage mIoU, and the category-specific stage gives noticeable additional gains for a few classes. The paper also introduces Berkeley Deep Driving Segmentation, or BDDS, and shows examples of adaptation to San Francisco, where the assessment is qualitative.
The experiments show that unlabeled images can support a change in how a network segments a new environment. The two sources of guidance have different requirements. Both collections must share a label vocabulary, and the source-trained segmenter must already work above chance on the target. For category-specific guidance, the source must also provide useful expectations about how much space classes occupy in the new scenes. Those expectations can help refine a prediction, and their suitability depends on what changed between the collections.
Deep dive: FCNs in the Wild: Pixel-level Adversarial and Constraint-based Adaptation
FCNs in the Wild adapts street-scene segmentation without target labels by aligning regional features and constraining class coverage. · about 35 minutes to read
The problem and its context
What changes when every pixel needs a label
Imagine assessing a street photograph at the level of the entire image. A correct answer might say that it contains cars and a road. For semantic segmentation, that answer leaves the task mostly open. The segmenter has to mark the pixels belonging to each category, including the places where road gives way to sidewalk and where a vehicle interrupts the surface behind it. The prediction is a spatial map, and its mistakes can be spatial too. A system can recognize that a vehicle is there and still assign its label to an adjoining patch of the street.
A domain, in the paper’s setting, is an image collection associated with a particular set of conditions. The source is the collection on which detailed supervision is available. The target is where the authors want the segmenter to work after adaptation. Moving between the two can change familiar aspects of the image, including illumination, the appearance of surfaces, and the views from which objects are seen. A source-trained network has learned from the visual evidence available in its own collection. If that evidence changes, the same class name can be attached to a substantially different range of images or image regions.
The paper treats scene composition as a second consideration. The category car may occur several times in one frame, and the amount of visible car can differ with the street, route, or setting. Counting images that contain a car would capture one aspect of that change. Counting all locations assigned to the class would capture another. For a dense predictor, both the frequency of a class and the extent of its regions affect the examples available for learning. Large stretches of road or sky can contribute many more pixel decisions than small objects, even when both sets of categories regularly occur in the same scene.
Changes in appearance and changes in composition can also come apart. A street surface might look unfamiliar in a new season while still taking up much the same part of the frame. A change of route might leave the appearance of cars familiar while changing the amount of the scene they cover. The authors distinguish a broad change in the distribution of network features from changes that matter particularly for individual categories. They use that distinction to motivate separate sources of adaptation signal. An objective that looks for differences across collections can address the broad shift. A rule expressed in terms of particular classes can bring information about the predicted scene into training.
The expense of annotation gives the distinction practical importance. Pixel-level supervision specifies a category across an entire image, including the spatial limits of the visible regions. The authors describe collecting it as laborious. If each change of environment required a new densely annotated collection, the value of supervision learned elsewhere would be limited. The question is whether detailed labels collected in one setting can continue to do part of the work while raw images supply evidence about a second setting.
Where supervised and weakly supervised segmentation stood
The paper describes supervised semantic segmentation as a field that had come to rely heavily on convolutional networks. A fully convolutional network carries a spatial organization through its computations and turns the RGB image into category scores arranged over a grid. This makes it possible to train the image-to-segmentation mapping end to end. Back-propagation carries the effect of prediction errors back through the network, so earlier features can change in response to mistakes in the final semantic output.
The authors point to work that had improved this supervised foundation through dilated convolution and through refinements based on Markov or conditional random fields. Dilated convolution changes the spacing at which a convolution samples its input, allowing a feature to draw on a wider region. The random-field approaches the paper cites supply ways to refine the labeling using relationships among predictions. The adaptation question starts from the capabilities developed in this line of work. It concerns what happens when the images available for training and those presented in the new setting follow different distributions.
Weakly supervised segmentation takes up another side of the annotation problem. An image-level tag might say that bicycles appear somewhere in a photograph while leaving every bicycle pixel unspecified. In the multiple instance learning approaches described by the authors, the image groups together many candidate locations. A category known to occur can be learned through evidence from some of those locations, even though supervision arrives for the group. The earlier work the paper discusses includes approaches that strengthen confident predictions and an expectation-maximization approach that uses properties of the predicted segments at image scale.
The authors also draw on Pathak’s constrained learning formulation. A linear constraint can express a condition on an output labeling, including a requirement that a class be present or a restriction on how much of the image it can occupy. A condition on coverage leaves considerable freedom about which locations to assign to the class. The network’s predictions can therefore help choose a labeling from among the possibilities admitted by the constraints. The paper also describes work by Hong that uses auxiliary segmentation information to help with categories for which supervision is available in a weaker form.
In those weak-supervision settings, the image tags provide information from outside the network. The adaptation problem here gives the authors an annotated source and a target with neither masks nor tags. That changes where the class information comes from. The source can establish the network’s initial ability to recognize classes, and its masks can establish how much area classes tend to occupy. Presence in any given target image must still be inferred. Weak supervision in this procedure is an intermediate product of adaptation.
How earlier adaptation work leads to regional comparisons
The paper places most prior visual domain adaptation in image classification. A common problem in the work it reviews was transferring recognition from stock photographs of objects to photographs of those objects in less controlled settings. Some methods sought features whose distributions were close across domains. Others trained a classifier to recognize the collection of origin and then used its judgments to make the representation harder to classify by domain. The origin of an image is known from how the collection was assembled, so this second task can supply a training signal even for unannotated semantic data.
The paper also describes a coupled generative approach for learning a joint distribution across collections. It places that work in the line of research opened by adversarial generation. The approach to segmentation developed in this paper uses competition between a domain classifier and a feature extractor. Its object of adaptation is the representation used for segmentation. Generative Adversarial Nets
The detection work discussed by the authors had already considered a transfer problem with a localization component. One approach modeled the change between classification and detection representations, and a subsequent approach added per-category multiple instance learning. Later work converted detectors into fully convolutional networks to evaluate segmentation performance. The authors distinguish that use of a segmentation evaluation from designing adaptation objectives specifically for segmentation. They present their own method as the first unsupervised domain adaptation approach for that task, within the literature they review.
The main design question that follows from this history is what a domain classifier should examine. Image classification provides a natural whole-image example. A segmenter makes its decisions from features distributed across an image, with different locations drawing on different parts of the scene. The authors propose making those features the examples in the domain comparison. The shift being addressed can extend across an entire collection while the evidence for that shift comes from much smaller units.
The method, step by step
Begin with the source segmenter
The authors first train an FCN on annotated source images. Each image supplies a reference category for its labeled locations, and the network learns to produce category scores at corresponding locations. The source-only version provides the starting parameters for adaptation and a direct way to assess what transfer would look like if those parameters were applied to the target unchanged.
The method assumes that the two domains use the same label space. A category the network learns on the source must have a meaningful counterpart in the target task. The authors also assume that the source network’s performance on target images exceeds chance. This matters when its output is used to decide what an unlabeled target scene is likely to contain. The assumption applies to the starting network. It is separate from knowing the target’s individual class labels or having a reliable estimate for every class in every scene.
The adaptation procedure then uses the data in several ways. Source annotations continue to correct semantic predictions and also supply class coverage statistics. Images from both collections reveal which regional features help distinguish their origin. On target images, the current predictions suggest which categories to include in a constrained labeling. The source training continues to supply a semantic objective while those additional signals change the network.
Training signals for adapting the segmenter
The steps in order.
The paper represents the combined learning objective as a sum.
L(Xₛ, Yₛ, Xₜ) = Lseg(Xₛ, Yₛ) + Lda(Xₛ, Xₜ) + Lmi(Xₜ, Sₛ)
Here L is the overall objective. Xₛ is the source imagery, Yₛ holds its pixel annotations, and Xₜ is the target imagery. The subscripts s and t mark source and target. Sₛ denotes the statistics computed from source labels. Lseg is the supervised segmentation loss, Lda is the domain alignment term, and Lmi is the class-specific constrained multiple instance term. The plus signs express the inclusion of all three objectives.
The supervised term has a role throughout adaptation. It keeps the network accountable for a task with observed correct answers. Domain origin is a different kind of supervision. It can say that a feature came from the target collection without saying that the feature ought to produce a road prediction. The category-specific term provides a third signal. It uses some of the structure inferred from the source annotations to constrain a target labeling whose true categories are unavailable. The expression groups these objectives, while the domain term itself has an alternating update and the constrained term has an intermediate labeling step.
Work with the features used for segmentation
The experimental network is the front-end dilated FCN built on VGGNet. The authors describe 16 convolutional layers. The final layers are called fc₆, fc₇, and fc₈, with the names coming from fully connected layers converted to convolutional ones. An 8 times bilinear upsampling operation brings the segmentation output to the image resolution. Bilinear upsampling fills in the finer spatial grid by interpolating between neighboring values on the coarser one.
The domain classifier takes its inputs from fc₇, the feature layer before the final category prediction. At each position, the layer holds a vector of values that summarizes information from a region of the input. That region is the feature’s receptive field. A position in fc₇ may thus respond to a surface and some of its surroundings. The discriminator works with these feature vectors, and the output is able to reveal origin-dependent evidence relevant to many different spatial predictions.
Let Fℓ₋₁ denote the spatial representation immediately before prediction. The paper’s source feature can be written as follows.
Rˢₕ𝑤 = Fℓ₋₁(θ, Iₛ)ₕ𝑤
Rˢₕ𝑤 is the feature vector at row h and column w for a source image. Iₛ is that image and θ denotes the parameters of the shared representation. ℓ marks the category prediction layer, so ℓ₋₁ indexes the preceding layer. The trailing spatial subscript on the right selects the feature at the specified row and column.
The target feature uses the same mapping.
Rᵗₕ𝑤 = Fℓ₋₁(θ, Iₜ)ₕ𝑤
Rᵗₕ𝑤 is the vector at row h and column w of the feature grid for target image Iₜ. Fℓ₋₁ again gives the representation preceding category prediction, and θ is shared with the source computation. The superscripts s and t distinguish the origin of the features. Rows and columns index positions within their own image. The method can compare the collections without finding a source scene that depicts the same places or objects as a target scene.
The authors use global alignment to describe the intended effect on the overall feature distributions. The observations on which it is based are spatial. An entire image reduced to one representation can conceal differences confined to certain regions. By collecting features at each position, the discriminator can use differences that recur across parts of images. The selected layer also ties that comparison to the representation the network uses to make its semantic decisions.
Train the domain classifier, then change what it sees
The global objective starts from the idea of reducing a discrepancy between source and target feature distributions.
min over θ d(Fℓ₋₁(θ, Xₛ), Fℓ₋₁(θ, Xₜ))
The operation min over θ seeks representation parameters that make the expression small. d stands for a discrepancy between the features computed from Xₛ, the source images, and Xₜ, the target images. Fℓ₋₁ is the shared feature computation just before category prediction. This expression states the goal. The alternating training procedure below uses a learned domain classifier to expose differences between the feature distributions.
For the next formulas, write the classifier’s source probability this way.
qθᴅ(x) = [σ(G(θᴅ, x))]source
x is an individual regional feature vector. θᴅ denotes the domain classifier parameters, and G is the computation that turns the feature into domain scores. σ is softmax, which converts those scores to probabilities. The brackets with source select the probability of source origin, written qθᴅ(x). There are two possible origins, so the complementary probability corresponds to the target.
The ordinary domain loss applies that probability to both collections.
Lᴅ = −∑Iₛ∈S ∑ₕ ∑𝑤 log(qθᴅ(Rˢₕ𝑤))
−∑Iₜ∈T ∑ₕ ∑𝑤 log(1 − qθᴅ(Rᵗₕ𝑤))
Lᴅ is the domain discrimination loss. S and T denote the source and target collections. The expressions Iₛ∈S and Iₜ∈T range over images in their respective collections. The inner sums range over rows h and columns w of the feature grid, with height H and width W in the paper’s notation. Rˢₕ𝑤 and Rᵗₕ𝑤 are the feature vectors at these positions for the current source or target image. qθᴅ gives the probability of source origin, 1 − qθᴅ is its complement, and log takes the logarithm. The leading minus signs make a low probability assigned to the observed origin costly.
The source part of the loss becomes smaller when the domain classifier assigns source features a high source probability. The target part favors a high target probability on target features. The annotations needed for these decisions are simply the collection identities. The domain classifier can learn to exploit a difference in how the segmenter represents regions even though it has received no target labels for the regions themselves.
The authors also define a loss that exchanges the desired origins.
Lᴅinv = −∑Iₛ∈S ∑ₕ ∑𝑤 log(1 − qθᴅ(Rˢₕ𝑤))
−∑Iₜ∈T ∑ₕ ∑𝑤 log(qθᴅ(Rᵗₕ𝑤))
Lᴅinv is the inverse domain loss. Iₛ and Iₜ again run through images in S and T, and h and w index all positions of their feature grids. The vectors Rˢₕ𝑤 and Rᵗₕ𝑤 are passed to the same classifier with parameters θᴅ. The source sum now uses the complement of qθᴅ, and the target sum uses qθᴅ itself. The logarithm and negative signs have the same meaning as in the ordinary domain loss.
The discriminator and the representation use separate minimizations. The discriminator step is:
min over θᴅ Lᴅ
θᴅ is the parameter set being updated, and Lᴅ evaluates classification of the true collection origins. The features used to train the classifier come from the current representation.
The feature step for the alignment objective is:
min over θ 1/2 [Lᴅ + Lᴅinv]
θ now denotes the parameters changed by the update. 1/2 gives equal weight to the ordinary loss Lᴅ and the exchanged-origin loss Lᴅinv. The classifier supplies the probabilities in both terms. The adjustment changes the features on which those probabilities are based.
The average in the feature update matters. Consider a source feature the classifier currently recognizes with great confidence. The ordinary term is small for that feature, but the inverse term is large. Moving it toward a confident target prediction would remove the second penalty and raise the first. The average favors an ambiguous domain prediction. The same reasoning applies to a target feature because both assignments enter its update too. The feature objective therefore penalizes confident origin decisions in either direction.
As training alternates, the discriminator can learn from the features produced after the segmenter has changed. Its next update searches for useful distinctions in the current representation, and the next feature update responds to those distinctions. Source segmentation training gives a separate reason to retain features that are useful for choosing categories. The adversarial comparison and the source task thus put different demands on the same features. The paper tests their combined effect by measuring segmentation on the target.
Learn how much space each class usually takes
The category-specific stage begins with a simple observation about the source masks. A count of all source pixels assigned to a class mixes its frequency across images with its area in the images where it occurs. The authors want a statistic that can answer a conditional question: how much area is plausible once a particular category has been identified as present? For each class, they collect the image coverage values solely from source scenes containing that class.
The coverage values come from the ground-truth masks. For a given source image and category, the authors measure the percentage of that image’s pixels carrying the category label. They form a distribution over these percentages for each class. They call the lower 10% boundary αc, the mean δc, and the upper 10% boundary γc, where c identifies the class. These quantities have different roles. The mean and the upper boundary set the expected coverage interval, while the lower boundary helps determine target presence and which classes get reduced gradient weight.
This procedure allows the source to distinguish the usual extent of a road from the usual extent of a sign. It also lets the same method work with both countable objects and broad regions such as sky or vegetation. A coverage statistic aggregates all pixels belonging to a class in an image, so several vehicles can contribute to one value. The presence condition keeps scenes with no vehicles from setting the expectation for vehicle area when vehicles occur. The paper calls the transfer one of spatial layout. The transferred information here is the amount of image area devoted to each class.
Infer presence in an unlabeled target image
The paper introduces the coverage restriction first in the easier case where image-level tags are known. In an actual target image those tags are unavailable. In execution, the authors obtain a starting label map from the current network and use it to decide which classes should receive the size constraints.
P = argmax F(θ, Iₜ)
P is the current map of predicted categories. F denotes the segmentation network that gives a score for each category at every location, θ denotes its parameters, and Iₜ is a target image. argmax selects the category with the highest score at each location, yielding a map of class assignments.
The next calculation counts the area currently given to each class.
d꜀ = 1/(H · W) ∑ₕ ∑𝑤 (Pₕ𝑤 = c)
d꜀ is the predicted fraction of the map occupied by class c. H and W are the height and width of the map being counted, so H · W gives its number of positions. The sums traverse rows h and columns w. Pₕ𝑤 is the class assigned at that location. The parenthesized equality is an indicator that contributes 1 when the prediction is class c and contributes nothing otherwise. The factor before the sums normalizes the count. Here the dimensions refer to the prediction map, while in the domain loss they refer to the feature grid under comparison.
The selection rule is:
d꜀ > 0.1 · α꜀
d꜀ is the predicted coverage just defined, and α꜀ is the lower 10% source coverage boundary for the same class. 0.1 multiplies that boundary, and > makes the comparison strict. The procedure assigns an image-level presence tag for c when the inequality holds.
The threshold depends on the category. A small predicted patch can supply enough evidence for a class that usually covers very little of a source image. A class that typically covers a large area must clear a higher threshold. The test operates on assigned area. It is not a direct threshold on the confidence of an individual pixel score. A diffuse error assigning the same class across a region can affect it, just as a convincing but very small prediction might fall below it. The tags inherit the strengths and weaknesses of the segmenter at this point in training.
Use the presence guesses to obtain a teaching signal
For a target class treated as present, the paper gives the following coverage restriction.
δ꜀ ≤ ∑ₕ,𝑤 pₕ𝑤(c) ≤ γ꜀
δ꜀ is the mean source coverage for class c in images containing it, and γ꜀ is the upper 10% boundary of that coverage distribution. pₕ𝑤(c) is the contribution of the labeling at row h and column w to the coverage assigned to class c. The sum pools those contributions across the image, and each ≤ specifies one side of the allowed interval. The text describes a constraint on percentage coverage. As printed, the sum has no explicit normalizing divisor. The intended comparison requires expressing predicted coverage and the source bounds in the same units, a convention the separate presence equation makes explicit for its own calculation.
The lower bound uses the source mean but allows slack in optimization. A present class can occupy less area than usual, and the slack lets the procedure accommodate such a scene. The upper bound is enforced without that allowance. The authors intend it to prevent a category from spreading across too much of the image. In effect, the lower value expresses a preference with room for exceptions, while the upper value gives an outer limit for the constrained labeling.
The constraints couple decisions across a scene. Increasing the area of a class means assigning more of the available image to it. Moving a boundary or changing a cluster of pixels can affect the coverage of several classes at once. The image-level observations give the procedure a way to revise the labeling as a whole, with the current network supplying local evidence about where individual assignments make sense. The resulting labeling is used for further learning. The paper refers to Pathak’s constrained optimization for the solver details and focuses its own explanation on how the constraints are obtained and used without target annotations.
The authors also change the weight of the training signal for categories that tend to be extensive. When a class’s α꜀ exceeds 0.1, they scale its gradient contribution by 0.1. The condition refers to the lower end of the source distribution, so it selects classes that take up considerable space even in source images towards that end of their usual coverage. The scale changes how much the class influences the update. It leaves the class’s own size statistics in place. The authors describe the purpose as giving smaller classes a better opportunity to influence learning when large regions otherwise supply many contributing pixels.
Taken together, the steps use different information at different times. The trained segmenter gives a first reading of the target scene. The category thresholds turn that reading into tentative statements about what is present. Coverage then constrains a revised labeling that can guide the next semantic update. Meanwhile, annotated source images continue to supply direct feedback about category assignments. That interplay explains both the opportunity for adaptation and the importance of a starting network that makes useful predictions on the target.
Experiments and results
What the comparisons measure
The authors use the same front-end dilated FCN as the source-only baseline and as the network from which they start adaptation. As a consequence, the comparison asks what changes when target imagery and the adaptation objectives enter training with that architecture. In the component comparisons, GA names global alignment, and GA+CA names the procedure that also includes category-specific adaptation. The experiments were conducted in Caffe. The authors said they intended to make the code and trained networks available before camera-ready. Caffe: Convolutional Architecture for Fast Feature Embedding
Intersection over union, or IoU, measures the overlap of a predicted region for a class with its reference region, relative to the area covered by either region. Extra pixels assigned to the class enlarge the union, and missed reference pixels leave less intersection. Mean IoU, abbreviated mIoU, averages IoU over the evaluated categories. The experiments involving Cityscapes use its protocol with 19 semantic labels. The seasonal transfers use the 13 SYNTHIA labels. An mIoU gain in either setting refers to its own evaluated label set and split.
The paper distinguishes synthetic-to-real transfer, seasonal transfer within synthetic imagery, and transfer between real cities. It frames them as examples of larger, intermediate, and smaller shifts, respectively. These descriptions concern the nature of the experimental comparisons. The study also uses a second real-city setting, adapting to BDDS, for which the reported evidence comes from example outputs.
From synthetic driving scenes to Cityscapes
Cityscapes supplies the real imagery for testing transfer from simulation. The dataset has 34 categories overall and images at 2048×1024 resolution. The city-level split assigns 2,975 samples to training, 500 to validation, and 1,525 to testing. The synthetic-to-real protocol gives the adaptation procedure the Cityscapes training images with their semantic annotations withheld. Predictions are scored using the validation split. The target data used to change the network and the target images used to assess that change thus come from separate splits.
The GTA5 source provides 24,966 labeled frames at 1914×1052 resolution. They depict the fictional city of Los Santos, which is based on Los Angeles. The authors use the full collection with labels compatible with Cityscapes. It supplies detailed supervision from rendered scenes, while Cityscapes supplies the photographic setting in which the segmenter must learn to apply the shared categories.
SYNTHIA provides a separate synthetic source for the same target protocol. The authors use SYNTHIA-RAND-CITYSCAPES, a collection of 9,000 randomly drawn images with Cityscapes-compatible labels. This experiment and the GTA5 experiment share the unlabeled Cityscapes training target and the Cityscapes validation evaluation. Their starting supervision comes from different synthetic collections. The paper reports a measurable benefit from adaptation for SYNTHIA to Cityscapes as well, describing the result without giving a corresponding exact gain in its discussion.
For GTA5 to Cityscapes, the authors attribute a 4.4% raw improvement in validation mIoU to the adversarial stage, which they also describe as ∼ 20% relative. Adding the constrained multiple instance stage contributes another 1.6% raw validation mIoU, described as ∼ 6% relative. The raw figures describe changes on the score scale. Each relative figure describes the change with respect to the corresponding starting score for that stage. The first stage is compared with the source-only segmenter, and the second is compared with the network after global alignment.
GTA5 to Cityscapes validation, incremental mIoU gains by adaptation stage
Global alignment contributes the larger gain, and category-specific training improves the aligned segmenter further.
The numbers
| System or setting | raw mIoU improvement % |
|---|---|
| Global alignment over source-only training (this paper) | 4.4 |
| Category-specific adaptation over global alignment | 1.6 |
The comparison in the chart is between gains measured at successive stages of the same experiment. Both stages are part of the authors’ method. The larger gain belongs to the stage that exposes the segmentation features to the domain classifier. The smaller gain shows what happened when source-derived rules about class coverage were added to that already adapted network. The results answer a practical question about whether the additional source statistics can contribute after changes in the representation have already improved the score.
Between seasons in SYNTHIA
For the seasonal experiment, the authors use SYNTHIA-VIDEO-SEQUENCES. This part of SYNTHIA contains 7 sequences, with settings including highways, roundabouts, and urban scenes. The dataset varies season, weather, and illumination, and was captured using 8 RGB cameras that form a binocular 360° field of view. The experiment retains dashcam-like frames to reduce differences due to viewpoint. The comparison is intended to emphasize conditions seen from a driving camera across the seasonal domains.
The authors define domains for Summer, Fall, and Winter and study the 6 directional transfers among those domains. In each direction, a network learns from the labeled source season, then uses imagery without semantic annotations from the season to which it is adapting. The baseline uses the same source season and is evaluated on the target season before adaptation. The SYNTHIA category set governs these comparisons, distinct from the label protocol for transfer into Cityscapes.
Across the seasonal directions, the authors report a gain of ∼ 3 percentage mIoU on average against the source-only baseline. The class analysis reports improved performance for 12/13 categories. Car is the class for which they observe no improvement. The aggregate figure summarizes the set of transfers, and the category finding describes a pattern across classes. The value of either observation depends on keeping its level of aggregation clear. For example, the authors highlight road in Fall to Winter as an especially strong case, while the headline average pools transfers that can differ in which classes are affected.
The Fall-to-Winter illustration helps explain what the segmenter encounters. The paper shows Fall and Winter images along with outputs before and after adaptation and a reference segmentation. The Winter rendering whitens roads and sidewalks to depict snow. Cars have much the same appearance as in the Fall rendering. The authors point to the contrast as their explanation for the lack of improvement on cars and for some of the stronger improvements on surfaces such as road. The illustration shows how a seasonal change can affect the visual evidence for classes very differently within the same scene.
Between Cityscapes cities
The real cross-city comparison uses labeled Cityscapes training cities as its source and the validation cities as its unlabeled target. Scoring takes place on the validation domain. Here the target domain used for adaptation is also the domain being evaluated, with semantic labels held back from the adaptation procedure. In the synthetic-to-real protocol, the authors can use unlabeled images from the separate Cityscapes training split. The two uses of Cityscapes therefore differ in how the adaptation images relate to the assessment images.
The study compares the source-only dilated network with GA and with GA+CA. Global alignment contributes 3.6 percentage mIoU on the Cityscapes validation-city target. The paper describes this stage as responsible for most of the gain. After adding the category-specific objective, the authors single out traffic light, rider, and train as the categories with noticeable further improvement. The aggregate effect of adaptation and the narrower set of classes that benefit from its last stage are different observations from the same comparison.
The authors suggest that moving between the Cityscapes partitions chiefly changes general appearance, with less change to the appearance of individual categories. They describe the starting performance as already high and associate much of the improvement with more consistent segmentation within objects. A useful change in this setting can be a region that is labeled more uniformly where the source segmenter already recognizes its category. The mIoU result records the resulting agreement with the reference masks, while the interpretation about general appearance explains why the authors think the global stage plays the larger part.
From Cityscapes to San Francisco
The paper introduces Berkeley Deep Driving Segmentation as a collection of dashcam imagery that extends the range of real driving scenes under consideration. It describes 1280×720 images, with 34 categories compatible with Cityscapes. New York and San Francisco account for much of the dataset. The collection includes conditions such as urban streets at night and highways in rain. This setting gives the authors a chance to examine transfer across collections as well as across cities.
The adaptation run uses ∼ 60,000 San Francisco images from BDDS with Cityscapes as the labeled source. The target images can enter training as soon as they are available because the procedure has no requirement for semantic annotations on those inputs. The authors show the original images alongside segmentations before and after adaptation. They describe the direct transfer outputs as noisy or contextually wrong, and observe cleaner segmentation in the adapted examples. These examples make visible the kinds of errors that prompted the experiment.
The collection and annotation figures describe the project’s state at the time. The authors report having gathered more than 100,000 images overall. They expected 5,000 ∼ 10,000 finely annotated images before CVPR 2017 and stated an eventual target of 10,000 ∼ 20,000 such images. The San Francisco adaptation count refers to the images used without labels. The projected annotation counts refer to the collection effort. The BDDS conclusion in the paper rests on the illustrated segmentations, with a larger quantitative evaluation deferred until annotations were ready.
What the ablations show
Global alignment improves the source baseline on its own
The component comparisons start with a segmenter trained on the source and ask how its target predictions change after global alignment. This is the cleanest evidence that the region-based adversarial stage contributes to semantic performance. In the GTA5 experiment, the improvement appears before category coverage enters training. In the Cityscapes cross-city experiment, global alignment accounts for most of the improvement even though both collections belong to the same benchmark. The comparisons therefore give evidence for the global stage under both a rendered-to-photographic transfer and a change of city within a real-image collection.
The outcome is measured in semantic IoU. The domain classifier’s task is to recognize origin, and the value of making that task harder is judged through a different outcome: whether the resulting pixel predictions agree more closely with target annotations. The baseline-to-GA comparison establishes that the complete adversarial stage, with source training retained, improves that outcome in these experiments. It evaluates the authors’ chosen feature layer, use of regional examples, and alternating objectives together. A comparison with a whole-image discriminator trained under otherwise matching conditions would address the specific contribution of the regional choice. The paper motivates that choice through the structure of segmentation, and the reported ablation operates at the level of the full stage.
These distinctions matter because an adversarial objective can be described at several levels. One question is whether any additional training from known domain origins helps. Another is whether the specific averaging rule for the ordinary and inverse losses makes the procedure more useful. A third is whether the particular feature layer offers a better place to align the domains than another layer. The paper’s comparison supplies evidence for the implemented combination. It does not allocate the improvement among those internal decisions.
The coverage objective has a conditional contribution
Comparing GA with GA+CA asks whether a further improvement is possible after the segmenter has already used the domain signal. For GTA5 to Cityscapes the additional gain provides a direct answer. An aligned representation still benefits from target-side training shaped by which classes appear to be present and how much area they might cover. Neither class presence nor expected class area is specified to the domain classifier. The additional stage can consequently use evidence that the global objective leaves implicit.
Within Cityscapes, the category-specific effect is more selective. The reported gains for traffic light, rider, and train show that individual classes can benefit even when most of the overall change is attributable to global alignment. The result gives some indication of how the two stages behave under a different shift. It does not establish a general division of labor for all real-city transfers. Classes or environments with a different source coverage distribution could elicit a different response from the same constraints.
The tested ordering also establishes the scope of the comparison. The study measures category-specific training with an already globally adapted network. Its effect in that sequence depends partly on the predictions available for deciding presence. A category-only run would test what the same restrictions accomplish if they must start from the unaligned source predictions. The reported gain answers the incremental question. It leaves the standalone effect of category-specific training undetermined.
The category stage itself includes several choices. The source bounds are conditioned on occurrence, the target tags use predicted area, the size constraint allows lower slack, and extensive classes have reduced gradient weight. They act at different points between initial prediction and the training update. The component comparison adds them as a package. Consequently, it cannot determine the respective contributions of better category selection and area restrictions to the measured gain, or establish whether reweighting is necessary for that gain. The paper’s evidence is strongest for introducing this combined stage in the sequence it evaluates.
Categories and examples reveal uneven effects
The seasonal analysis asks a different question from the GA and GA+CA comparisons. It looks at how the behavior of different classes changes under adaptation. The broad improvement across classes coexists with the car result, and the Fall-to-Winter case gives a concrete reason to examine the difference. Road and sidewalk undergo a prominent rendering change. Cars keep a familiar appearance. This is consistent with the authors’ explanation that adaptation has more opportunity to repair errors associated with the changed surfaces.
The seasonal comparison changes a collection of properties at once. It does not vary only the appearance of cars or only the treatment of roads. The visual pattern can support the proposed explanation without identifying that feature of the rendering as the cause of the class-level results. The use of dashcam-like views reduces one competing variation, and the analysis remains an evaluation of seasonal transfers as assembled in SYNTHIA.
The cross-city observation about more consistent labeling within objects is likewise an interpretation of how the predictions improved. The IoU measure can reflect a gain from interior consistency, a better boundary, or corrected recognition of a larger region. The examples and class discussion put recognizable error patterns alongside the aggregate result. They give a reader a way to see what the adaptation might be fixing, while the comparisons of training stages establish where the measured performance changed.
Limitations
Assumptions and limits stated by the authors
The authors explicitly require a common label space. The initial supervision, the target presence guesses, and the coverage restrictions all refer to class identities learned from source labels. This is a natural assumption for transferring across the driving collections chosen in the paper, where compatible categories are available. A target category outside that common vocabulary would require another mechanism to introduce it and establish its meaning.
The authors also require the starting segmenter to score above chance on the target. This assumption has an operational consequence. Guessed presence helps decide which constraints should be applied to an image, so the procedure needs semantic information in the initial predictions before it can exploit the source statistics. Above-chance performance is a starting condition at the task level. It does not imply reliable initial presence estimates for every target class, especially classes whose evidence has changed sharply.
The paper acknowledges variation in class extent by allowing the lower bound to be softened. The authors explicitly provide for target scenes where a present class is smaller than the source average would suggest. They retain a strict upper bound to limit predictions that cover too much of an image. This is a deliberate choice about the errors the constrained procedure should tolerate. It places a corresponding demand on how well source coverage describes the image areas that remain plausible in the target.
The authors also delimit the BDDS evaluation. They show qualitative results and anticipate quantitative work when annotations are ready. The observations in the example outputs motivate assessing the larger collection, and the paper gives no completed quantitative BDDS result. A reader can inspect visible changes in those scenes, while collection-wide segmentation accuracy and the size of its change remain open.
Inferred limits of transferring coverage
The class statistics measure extent among source images in which the category occurs. They offer guidance for a target image if its class coverage is plausibly drawn from a related range. A systematic change in viewpoint, route, or scene composition could make a category cover more area than the source upper boundary even when the network has recognized it correctly. Under the hard upper constraint, the revised training labeling would have to assign some of that area elsewhere. The lower slack allows some disagreement with the source on the small-area side. The two sides of the interval therefore have different consequences when the source distribution is a poor match.
An area constraint also leaves many geometries possible. A set of disconnected patches and a single coherent region can occupy the same fraction of an image. The class coverage test would treat them alike. Choosing among those possibilities depends on the segmenter’s spatial evidence and on the constrained labeling procedure. A reader should understand the paper’s transfer of layout at this level of detail: the source supplies category coverage ranges, while the boundary and location of any particular target object still have to be inferred.
The presence decision creates another potential source of error. When a class is missed almost entirely, its predicted fraction can fall below the threshold and the class may never receive the corrective coverage signal in that image. A false positive large enough to exceed the threshold can have the opposite effect. It can cause the optimization to accommodate a category that the scene does not contain. The threshold is sensitive to typical class size, but the input to it still comes from the current labeling. The paper evaluates the eventual segmentation and leaves the accuracy of this intermediate image-level inference unmeasured.
Inferred limits of the feature comparison
A domain classifier’s uncertainty says something about the domain cues available in the features it receives. Semantic accuracy requires a stronger relationship: features useful for a category in one collection must support the corresponding category in the other. The adversarial objective pools positions without conditioning them on the true target categories. Two collections can thus become harder to distinguish in aggregate while some classes remain poorly matched.
The continuing source objective makes it costly to discard features needed for source segmentation. That constraint can preserve a useful representation, yet success on source annotations alone cannot settle the target correspondence. The category-specific step brings additional information about classes, and the IoU evaluation measures the actual outcome. The task results support the value of alignment in the tested conditions. They do not provide a guarantee that reducing the inferred domain discrepancy will improve a given target class or split.
The comparison also depends on what the chosen discriminator can recognize. Its training objective asks it to look for evidence of origin in the selected feature layer. If some distinctions are unavailable to that discriminator, ambiguity in its output may coexist with a discrepancy in the underlying distributions. The paper’s experimental gains establish the practical effect of the training procedure in the reported settings. They do not amount to a direct measurement of how closely all corresponding features align.
Inferred limits of evaluation and reproduction
Unsupervised adaptation can give a procedure access to target images under different arrangements. In the synthetic-to-real experiment, it sees the Cityscapes training images without labels and is evaluated on the separate validation split. In the cross-city experiment, the validation-city images form the unlabeled target domain on which evaluation is also reported. Both settings withhold target semantic labels during adaptation. Only the former uses the stated separation between the split supplying adaptation images and the split supplying evaluation images. The reported cross-city gain should be read with its own image-access protocol in view.
The seasonal study controls viewpoint to an extent by selecting dashcam-like imagery. It still concerns synthetic seasonal changes. The example in which road surfaces whiten and cars retain their earlier appearance owes its value to being concrete. It also defines the scope of the observed pattern. The results cannot establish what happens across real seasons where lighting, precipitation, traffic, and the appearances of vehicles may change together. More broadly, the experiments cover several shifts within driving imagery. The authors describe their approach as applicable to other segmentation architectures, but the results come from the front-end dilated FCN and the evaluated driving tasks.
The numerical discussion emphasizes particular stage gains, class patterns, and an average across seasonal transfers. These statements provide measured points of comparison. They leave run-to-run variation unspecified and do not provide uncertainty intervals for the highlighted gains. For stages whose improvement is described qualitatively, the discussion also leaves the exact size open. This matters especially when comparing the apparent usefulness of a component across settings with different label sets, starting scores, and protocols.
Some implementation details would have to be resolved to reproduce the method closely. The paper gives the adversarial objectives and the feature layer involved, instead of a complete discriminator configuration and schedule for coordinating all updates. For the constrained stage, it specifies how to estimate presence and obtain the bounds, while referring to the earlier constrained-learning work for optimization details. The coverage formula also requires a consistent choice of units for the source bounds and the summed predictions. These points distinguish the method’s specified learning signals from the decisions still required to turn the description into a training run.
What came after
The later citing work CyCADA carries adversarial domain adaptation forward under the heading of cycle consistency. That connection fits the broad question “FCNs in the Wild” takes up: how to use evidence from another collection when its semantic annotations are unavailable for adaptation. The citation and title establish a continuation of the adversarial adaptation theme with cycle consistency as an explicit emphasis. They leave the status of the earlier paper’s regional discriminator and class coverage constraints unspecified. CyCADA: Cycle-Consistent Adversarial Domain Adaptation
DLOW also cites the paper. Its stated direction is domain flow, with generalization named alongside adaptation. “FCNs in the Wild” studies movement between specified source and target collections and measures whether that movement helps segmentation in the target. The title of DLOW identifies a broader concern with how domains relate and names generalization as part of the problem. The documented connection is the citation and that shared problem of learning across domains. The title does not establish which of the pixel-level training objectives DLOW takes up. DLOW: Domain Flow for Adaptation and Generalization
Cite
Cite as Judy Hoffman, Dequan Wang, Fisher Yu and Trevor Jackson Darrell. 2016. FCNs in the Wild: Pixel-level Adversarial and Constraint-based Adaptation. arXiv (Cornell University).
@misc{hoffman2016fcns,
title = {{FCNs in the Wild: Pixel-level Adversarial and Constraint-based Adaptation}},
author = {Judy Hoffman, Dequan Wang, Fisher Yu and Trevor Jackson Darrell},
year = {2016},
doi = {10.48550/arxiv.1612.02649},
eprint = {1612.02649},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1612.02649}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/hoffman-2016-fcns-wild-pixel-level-adversarial/
References
- L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille. Semantic image segmentation with deep convolutional nets and fully connected crfs. In ICLR, 2015. OpenAlex ↗ · Scholar ↗
- W. Chen, H. Wang, Y. Li, H. Su, D. Lischinsk, D. Cohen-Or, B. Chen, et al. Synthesizing training images for boosting human 3d pose estimation. In 3DV, 2016. OpenAlex ↗ · Scholar ↗
- M. Cordts, M. Omran, S. Ramos, T. Rehfeld, M. Enzweiler, R. Benenson, U. Franke, S. Roth, and B. Schiele. The cityscapes dataset for semantic urban scene understanding. In CVPR, 2016. OpenAlex ↗ · Scholar ↗
- J. Dai, K. He, and J. Sun. Instance-aware semantic segmentation via multi-task network cascades. In CVPR, 2016. OpenAlex ↗ · Scholar ↗
- C. Farabet, C. Couprie, L. Najman, and Y. LeCun. Learning hierarchical features for scene labeling. TPAMI, 2013. OpenAlex ↗ · Scholar ↗
- Y. Ganin and V. Lempitsky. Unsupervised domain adaptation by backpropagation. In ICML, 2015. OpenAlex ↗ · Scholar ↗
- Y. Ganin, E. Ustinova, H. Ajakan, P. Germain, H. Larochelle, F. Laviolette, M. Marchand, and V. Lempitsky. Domain-adversarial training of neural networks. JMLR, 2016. OpenAlex ↗ · Scholar ↗
- B. Gong, Y. Shi, F. Sha, and K. Grauman. Geodesic flow kernel for unsupervised domain adaptation. In CVPR, 2012. OpenAlex ↗ · Scholar ↗
- I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In NIPS, 2014. OpenAlex ↗ · Scholar ↗
- B. Hariharan, P. Arbeláez, R. Girshick, and J. Malik. Simultaneous detection and segmentation. In ECCV, 2014. OpenAlex ↗ · Scholar ↗
- J. Hoffman, S. Guadarrama, E. S. Tzeng, R. Hu, J. Donahue, R. Girshick, T. Darrell, and K. Saenko. Lsda: Large scale detection through adaptation. In NIPS, 2014. OpenAlex ↗ · Scholar ↗
- J. Hoffman, D. Pathak, T. Darrell, and K. Saenko. Detector discovery in the wild: Joint multiple instance and representation learning. In CVPR, 2015. OpenAlex ↗ · Scholar ↗
- J. Hoffman, D. Pathak, E. Tzeng, J. Long, S. Guadarrama, T. Darrell, and K. Saenko. Large scale visual recognition through adaptation using joint representation and multiple instance learning. JMLR, 2016. OpenAlex ↗ · Scholar ↗
- S. Hong, H. Noh, and B. Han. Decoupled deep neural network for semi-supervised semantic segmentation. In NIPS, 2015. OpenAlex ↗ · Scholar ↗
- S. Hong, J. Oh, B. Han, and H. Lee. Learning transferrable knowledge for semantic segmentation with deep convolutional neural network. In CVPR, 2016. OpenAlex ↗ · Scholar ↗
- Y. Jia, E. Shelhamer, J. Donahue, S. Karayev, J. Long, R. Girshick, S. Guadarrama, and T. Darrell. Caffe: Convolutional architecture for fast feature embedding. In Proceedings of the 22nd ACM international conference on Multimedia, 2014. our card
- B. Kulis, K. Saenko, and T. Darrell. What you saw is not what you get: Domain adaptation using asymmetric kernel transforms. In CVPR, 2011. OpenAlex ↗ · Scholar ↗
- M.-Y. Liu and O. Tuzel. Coupled generative adversarial networks. In NIPS, 2016. OpenAlex ↗ · Scholar ↗
- Z. Liu, X. Li, P. Luo, C.-C. Loy, and X. Tang. Semantic image segmentation via deep parsing network. In ICCV, 2015. OpenAlex ↗ · Scholar ↗
- J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015. our card
- M. Long, Y. Cao, J. Wang, and M. Jordan. Learning transferable features with deep adaptation networks. In ICML, 2015. OpenAlex ↗ · Scholar ↗
- M. Long, J. Wang, and M. I. Jordan. Unsupervised domain adaptation with residual transfer networks. In NIPS, 2016. OpenAlex ↗ · Scholar ↗
- H. Noh, S. Hong, and B. Han. Learning deconvolution network for semantic segmentation. In ICCV, 2015. OpenAlex ↗ · Scholar ↗
- G. Papandreou, L.-C. Chen, K. P. Murphy, and A. L. Yuille. Weakly-and semi-supervised learning of a deep convolutional network for semantic image segmentation. In ICCV, 2015. OpenAlex ↗ · Scholar ↗
- D. Pathak, P. Krahenbuhl, and T. Darrell. Constrained convolutional neural networks for weakly supervised segmentation. In ICCV, 2015. OpenAlex ↗ · Scholar ↗
- D. Pathak, E. Shelhamer, J. Long, and T. Darrell. Fully convolutional multi-class multiple instance learning. In ICLR Workshop, 2015. OpenAlex ↗ · Scholar ↗
- P. O. Pinheiro and R. Collobert. From image-level to pixel-level labeling with convolutional networks. In CVPR, 2015. OpenAlex ↗ · Scholar ↗
- S. R. Richter, V. Vineet, S. Roth, and V. Koltun. Playing for data: Ground truth from computer games. In ECCV, 2016. OpenAlex ↗ · Scholar ↗
- G. Ros, L. Sellart, J. Materzynska, D. Vazquez, and A. M. Lopez. The synthia dataset: A large collection of synthetic images for semantic segmentation of urban scenes. In CVPR, 2016. OpenAlex ↗ · Scholar ↗
- K. Saenko, B. Kulis, M. Fritz, and T. Darrell. Adapting visual category models to new domains. In ECCV, 2010. OpenAlex ↗ · Scholar ↗
- K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. our card
- E. Tzeng, J. Hoffman, T. Darrell, and K. Saenko. Simultaneous deep transfer across domains and tasks. In ICCV, 2015. OpenAlex ↗ · Scholar ↗
- F. Yu and V. Koltun. Multi-scale context aggregation by dilated convolutions. In ICLR, 2016. OpenAlex ↗ · Scholar ↗
- S. Zheng, S. Jayasumana, B. Romera-Paredes, V. Vineet, Z. Su, D. Du, C. Huang, and P. H. Torr. Conditional random fields as recurrent neural networks. In ICCV, 2015. OpenAlex ↗ · Scholar ↗