<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Improving Semi-Supervised Semantic Segmentation with Sliced-Wasserstein Feature Alignment and Uniformity</title></titleStmt>
			<publicationStmt>
				<publisher>IEEE</publisher>
				<date>06/11/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10601309</idno>
					<idno type="doi"></idno>
					
					<author>Chen-Yi Lu</author><author>Kasra Derakhshandeh</author><author>Somali Chaterji</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Semi-supervised semantic segmentation with consistency regularization capitalizes on unlabeled images to enhance the accuracy of pixel-level segmentation. Current consistency learning methods primarily rely on the consistency loss between pseudo-labels and unlabeled images, neglecting the information within the feature representations of the backbone encoder. Preserving maximum information in feature embeddings requires achieving the alignment and uniformity objectives, as widely studied. To address this, we present SWSEG, a semi-supervised semantic segmentation algorithm that optimizes alignment and uniformity using the Sliced-Wasserstein Distance (SWD), and rigorously and empirically proves this connection. We further resolve the computational issues associated with conventional Monte Carlo-based SWD by implementing a Gaussian-approximated variant, which not only maintains the alignment and uniformity objectives but also improves training efficiency. We evaluate SWSEG on the PASCAL VOC 2012, Cityscapes, and ADE20K datasets, outshining supervised baselines in mIoU by up to 11.8%, 8.9%, and 8.2%, respectively, given an equivalent number of labeled samples. Further, SWSEG surpasses state-of-the-art methods in multiple settings across these three datasets. Our extensive ablation studies confirm the optimization of the uniformity and alignment objectives of the feature representations.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Semantic segmentation, the task of assigning pixel-level labels to images, is a cornerstone in domains such as autonomous driving and medical image analysis. Semantic segmentation models typically comprise an encoder and a decoder. The encoder extracts meaningful features from the input images, while the decoder assigns the feature embeddings to desired pixel-level labels. However, its effectiveness is often hampered by the need for costly pixel-level annotated data <ref type="bibr">[9]</ref>. To mitigate this, semi-supervised learning (SSL) was proposed <ref type="bibr">[3]</ref>. SSL leverages a limited amount of labeled data in conjunction with a larger pool of readily available unlabeled data. The key lies in effectively harnessing the unlabeled data to improve the model's performance.</p><p>Pseudo-labeling and consistency regularization are two prominent techniques in SSL. Pseudo-labeling generates temporary labels from the model's predictions during training and using these to train the model in a supervised manner <ref type="bibr">[2,</ref><ref type="bibr">26]</ref>. The model then computes the loss between these pseudo-labels and the corresponding unlabeled images. This technique allows the model to leverage unlabeled data, thereby improving its performance. Consistency regularization, on the other hand, encourages the model to produce consistent predictions for different perturbations of the same input image, thereby promoting robustness and generalization <ref type="bibr">[14,</ref><ref type="bibr">32]</ref>. This technique is grounded in the smoothness assumption, which posits that data points with similar features should have similar labels <ref type="bibr">[3]</ref>. In practice, random augmentations are applied to input images, and the model is trained to minimize discrepancies between its predictions on the original and augmented versions. In the realm of semantic segmentation, consistency regularization is often paired with pseudo-labeling, where weakly augmented unlabeled This CVPR paper is the Open Access version, provided by the Computer Vision Foundation.</p><p>Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore. data generate temporary "pseudo" labels for training <ref type="bibr">[2,</ref><ref type="bibr">34]</ref>. Concurrently, a parallel training stream employs strongly augmented data to calculate and minimize consistency losses, further enhancing model robustness <ref type="bibr">[8,</ref><ref type="bibr">23,</ref><ref type="bibr">29,</ref><ref type="bibr">46,</ref><ref type="bibr">50]</ref>.</p><p>While consistency-based methods are effective, existing approaches focus solely on enforcing regularization at the decoder's output, neglecting the rich information embedded within the intermediate feature representations from the backbone encoder. This oversight neglects the potential of extending consistency regularization to the feature level, guided by the smoothness assumption. We argue that enforcing consistency within these feature representations, derived from CNN-based or Transformer-based backbone encoders <ref type="bibr">[4,</ref><ref type="bibr">43]</ref>, is crucial for robust learning against image perturbations. In Fig. <ref type="figure">2</ref>, we insert a cross entropy loss on the output of encoders between feature embeddings of of weakly and strongly augmented images. The results shows that it already improves the feature separability and segmentation performance.</p><p>To explore the importance of superior feature representations, we draw parallels with the self-supervised contrastive learning literature <ref type="bibr">[1,</ref><ref type="bibr">6,</ref><ref type="bibr">48]</ref>. These methods, which involve contrasting positive (similar) and negative (dissimilar) pairs, excel at promoting both alignment and uniformity <ref type="bibr">[13,</ref><ref type="bibr">40]</ref>. Alignment, which aligns with the smoothness assumption, posits that perturbations to the same input should yield proximate features. Uniformity, on the other hand, implies that feature representations should be maximally informative, a concept often overlooked in semi-supervised semantic segmentation. These metrics provide a comprehensive framework for evaluating and enhancing feature representations, ultimately leading to improved model performance. The attraction between positive pairs in contrastive learning fosters alignment, while the repulsion of negative pairs encourages diverse and informative representations, enhancing uniformity. Inspired by the effectiveness of contrastive learning, we aim to bridge the gap in semi-supervised semantic segmentation by developing a method that explicitly optimizes both alignment and uniformity of feature representations. This raises a key question: How can we design an objective function that simultaneously achieves both uniformity and alignment of feature representations?</p><p>In this work, we introduce SWSEG, a semi-supervised semantic segmentation algorithm that directly addresses this question. We leverage the Sliced-Wasserstein distance (SWD), a metric that quantifies the distance between probability distributions, to simultaneously optimize alignment and uniformity of feature representations extracted from the backbone encoder model. SWD achieves this by projecting features onto a unit hypersphere and computing the Wasserstein distance between the resulting one-dimensional embeddings. Empirically, we demonstrate that minimizing SWD effectively optimizes both alignment and uniformity between feature representations. Furthermore, to address the computational burden associated with traditional Monte Carlo estimation of SWD for high-dimensional features, we introduce a variant that projects feature embeddings onto a Gaussian distribution. This not only maintains the uniformity objective, as a normalized Gaussian distribution is uniformly distributed on the unit hypersphere, but also enables efficient computation by leveraging the analytical solution for the quadratic Wasserstein distance between two Gaussian distributions. Additionally, we incorporate a regularization term that decorrelates feature representations, fulfilling the necessary condition for projecting features onto a Gaussian distribution. We evaluated our algorithm on the PASCAL VOC 2012 <ref type="bibr">[12]</ref>, Cityscapes <ref type="bibr">[9]</ref>, and ADE20K <ref type="bibr">[51]</ref> datasets under various partitioning protocols. Our results consistently demonstrate SWSEG's superiority over supervised baselines, with performance improvements of up to 11.8%, 8.9%, and 8.2% on PASCAL VOC, CityScapes, and ADE20K, using the same amount of labeled data. Notably, SWSEG also achieves state-of-the-art (SOTA) results compared to existing methods under multiple data splitting protocols, as illustrated in Figure <ref type="figure">1</ref>  <ref type="bibr">[19,</ref><ref type="bibr">23,</ref><ref type="bibr">27]</ref>. Through extensive ablation studies, we confirm the critical role of uniformity in feature space for effective semi-supervised semantic segmentation. To the best of our knowledge, SWSEG is the first to establish a direct link between SSL and the uniformity metric, while also implementing the SWD to enhance feature representations. Our contributions can be summarized as follows:</p><p>1. We introduce SWSEG, a semi-supervised semantic segmentation algorithm that explicitly optimizes feature representation uniformity and alignment using SWD, and back up our claim with extensive empirical studies.</p><p>2. We introduce an efficient variant of SWD estimation that projects feature embeddings onto a Gaussian distribution. This approach maintains uniformity while leveraging the analytical solution for quadratic Wasserstein distance between Gaussians, reducing computational complexity.</p><p>3. SWSEG achieves SOTA results on PASCAL VOC 2012, Cityscapes, and ADE20K datasets, outperforming supervised baselines and existing semi-supervised methods, with significant performance improvements of up to 11.8% on PASCAL VOC, 8.9% on CityScapes, and 8.2% on ADE20K compared to supervised methods.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related Works 2.1. Semi-Supervised Learning</head><p>Semi-supervised learning (SSL) has emerged as a promising solution to alleviate the burden of collecting labeled data, enabling the training of DNNs using only a fraction of labeled data while still achieving impressive results. Pseudo-labeling is a widely adopted technique which leverages the model's predictions on unlabeled data as surrogate labels <ref type="bibr">[21]</ref>. This approach has been shown to improve model generalization by shifting the decision boundary towards low-density regions <ref type="bibr">[3]</ref>. Additionally, many SSL algorithms incorporate consistency regularization, which regularizes the model to generate consistent outputs regardless of perturbations applied to the input data <ref type="bibr">[20,</ref><ref type="bibr">35,</ref><ref type="bibr">38]</ref>. Laine et al. <ref type="bibr">[20]</ref> combined cross-entropy loss with consistency loss for training, and incorporated model predictions into the pseudo-label set through an exponential moving average. Tarvainen and Valpola <ref type="bibr">[38]</ref> posited that directly updating the model weights at each mini-batch accelerates the learning process while enhancing the model's performance. Sohn et al. <ref type="bibr">[35]</ref> generated pseudo-labels from model predictions on weakly-augmented input images and computed the unsupervised loss between these pseudo-labels and the model predictions from stronglyaugmented input images. However, these SSL methods were designed for image classification, which is not suitable for semantic segmentation where pixel-wise predictions are desired.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Semi-Supervised Semantic Segmentation</head><p>A number of research papers have incorporated consistency training and pseudo-labeling in SSL for segmentation tasks <ref type="bibr">[29,</ref><ref type="bibr">37,</ref><ref type="bibr">39,</ref><ref type="bibr">42,</ref><ref type="bibr">[44]</ref><ref type="bibr">[45]</ref><ref type="bibr">[46]</ref><ref type="bibr">50]</ref>. For instance, Wang et al. <ref type="bibr">[42]</ref> stored pseudo-labels with lower confidence as negative samples and computed contrastive loss using these samples. Yang et al. <ref type="bibr">[46]</ref> introduced an additional teacher model and used dropout as feature-wise perturbation for consistency-based pseudo-labeling. However, these methods typically enforce consistency regularization solely on the decoder output, neglecting the rich information present in the intermediate feature representations produced by the backbone encoder. Recent works leveraging feature embedding in SSL segmentation include AllSpark <ref type="bibr">[39]</ref>, DDFP <ref type="bibr">[41]</ref>,</p><p>and CorrMatch <ref type="bibr">[36]</ref>. AllSpark balances the importance of labeled and unlabeled training streams by implementing a cross-attention mechanism in the feature embedding. DDFP injects perturbation in the feature space to regularize the decision boundary, with perturbation locations guided by a lightweight normalizing flow-based density estimator. Cor-rMatch utilizes the correlation map of features from strongly and weakly augmented inputs to regularize pseudo-label supervision in the decoder output. In contrast, SWSEG aims to fill this gap by explicitly focusing on training the backbone encoder to produce more meaningful feature representations for the segmentation head. By optimizing both the alignment and uniformity of these feature representations, SWSEG aims to improve overall segmentation performance. This approach goes beyond the limitations of existing methods that primarily focus on designing complex strategies such as cross-attention layers, normalizing flows, or heuristic label and region propagation techniques.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.">Uniformity of Feature Representation</head><p>Although existing SSL methods for semantic segmentation have demonstrated promising results through consistency learning, they typically impose consistency on the model's output. While few studies have explored consistency regularization on feature representations from the backbone model, this area remains under-explored compared to extensive research in self-supervised learning <ref type="bibr">[1,</ref><ref type="bibr">6,</ref><ref type="bibr">48]</ref>. In selfsupervised learning, where labeled data is scarce or absent, preventing representational collapse is paramount. This collapse occurs when the model produces uninformative feature representations, regardless of variations in the input. While the uniformity metric, which assesses how evenly features are distributed across the hypersphere, has been effectively used in self-supervised learning to mitigate collapse <ref type="bibr">[40]</ref>, its application in semi-supervised semantic segmentation has been absent. Recognizing the potential benefits of uniformity in preventing representational collapse and maximizing information preservation, we incorporate this metric into our semi-supervised approach. We further establish a connection between uniformity and the sliced-SWD metric, demonstrating that minimizing SWD between feature representations of differently augmented inputs can simultaneously maximize feature uniformity. This unified approach enhances model performance by ensuring that feature representations are both consistent and informative.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Method</head><p>This section begins by introducing the conventional framework for consistency learning-based SSL. We then argue for the importance of enforcing consistency regularization in the feature embedding, discussing the roles of alignment and  <ref type="figure">A w</ref> ) and strong perturbations (A s ) applied to unlabeled input images x u . Both augmentations are passed through a shared backbone encoder to extract features, which are then mapped to a different space via non-linear MLPs, producing feature embeddings. To achieve both feature alignment and uniformity, SWSEG introduces an SWD loss L swd , computed between these intermediate feature embeddings. The goal is to encourage the feature embeddings from different augmentations to be consistent (alignment) and to be spread out uniformly in the feature space, maximizing information (uniformity). An unsupervised loss Lu is computed to ensure consistency between segmentations generated from weakly and strongly augmented inputs.</p><p>uniformity in achieving better feature representations. Next, we introduce a Gaussian-projected SWD metric to simultaneously achieve uniformity and alignment in the feature space. Finally, we detail the integration of these elements within the SWSEG framework.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Preliminary</head><p>In semi-supervised learning, we are given labeled image sets, D l = {x l i , y l i }, and unlabeled ones, D u = {x u j }. Typically, D u greatly outnumbers D l . Our goal is to leverage these unlabeled images to optimize the parameters &#952; of a semantic segmentation model f &#952; (&#8226;).</p><p>In SWSEG, we adopt a typical framework from Fix-Match <ref type="bibr">[34]</ref>, training the model through two separate feedforward streams: supervised and unsupervised. In the supervised stream, we draw a batch of images from D l and compute the cross-entropy loss L s between the model's predictions &#375;l i and the labels y l i . Conversely, the unsupervised stream draws images from D u , to which we apply weak or strong perturbations, A w (&#8226;) and A s (&#8226;), respectively. The unsupervised loss L u is then minimized according to the equation (1):</p><p>We generate pseudo-labels f &#952; (A w (x u )) by feeding weaklyaugmented images into the model. We then compute the unsupervised loss using strongly-augmented samples f &#952; (A s (x u )), using H, for cross-entropy loss. The pseudolabel generation does not contribute to gradient computation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Feature Alignment and Uniformity</head><p>In semantic segmentation, f &#952; (&#8226;) typically comprises a backbone encoder p &#952; and a segmentation head q &#952; <ref type="bibr">[4,</ref><ref type="bibr">43]</ref>. Existing methods <ref type="bibr">[23,</ref><ref type="bibr">27,</ref><ref type="bibr">37,</ref><ref type="bibr">46,</ref><ref type="bibr">50]</ref> focus on enforcing consistency regularization on the segmentation head's output, often overlooking backbone encoder features. To further harness the potential of feature representations, we draw on selfsupervised contrastive learning, which trains networks to generate meaningful embeddings without labels, emphasizing alignment and uniformity as key objectives for assessing feature quality.</p><p>Alignment aims to minimize differences between embeddings from similar samples. Intuitively, model should produce similar feature embeddings when images with same classes are input. We achieve this by varying the magnitude of perturbations applied to the input images and minimizing the distance between embeddings using a distance metric dist:</p><p>Uniformity promotes even distributions of feature representations across a hypersphere, enhancing model robustness by preventing collapse to a lower-dimensional subspace.</p><p>While often less emphasized in semi-supervised learning due to the stabilizing influence of labeled data, uniformity is critical in self-supervised learning to prevent the model from generating identical embeddings regardless of input. By ensuring uniformity, the model preserves a rich diversity of information within the feature space, which significantly improves the performance of the segmentation head.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Revisiting Sliced Wasserstein Distance</head><p>Intuitively, the uniform distribution on a unit hypersphere exemplifies maximum uniformity. We need to establish an objective function that can achieve both uniformity and alignment. To this end, we implement the SWD as our distance metric. SWD calculates average distances from 1-D projections sampled from a unit hypersphere, thus inherently promoting both desired properties.</p><p>The rationale behind SWD stems from its ability to reduce the computational complexity relative to the highdimensional Wasserstein distances (WD). Unlike the traditional WD, which struggles with high dimensionality, SWD leverages the 1-dimensional Wasserstein distance, which can be computed in closed form: Let &#181; d and &#957; d be two probability measures in P(&#8486;) &#8712; R d :</p><p>where p is the order of the distance, and F -1 &#181; d and F -1 &#957; d are the quantile functions of &#181; d and &#957; d , respectively. Computationally, this is achieved by sorting and computing the mean l 2 -distance between two 1-D vectors. SWD <ref type="bibr">[30]</ref> involves projecting high-dimensional features onto a unit hypersphere and calculating the 1-D Wasserstein distance between these projections. Formally, let S d-1 represent the unit sphere in d dimensions, &#963; the uniform distribution on S d-1 , and P &#952;# &#958; the push-forward measure of &#958; &#8712; &#181; d , &#957; d . The SWD is defined as:</p><p>To approximate SWD, we vectorize the input distributions &#181; d and &#957; d from R n&#215;n&#215;d to R n 2 d . We then employ a Monte Carlo scheme, sampling L directions from the unit sphere S d-1 . Projecting &#181; d and &#957; d along these directions yields L one-dimensional projections for each distribution. After sorting these projections, we calculate the 1D Wasserstein distance between them using Eq. ( <ref type="formula">3</ref>). This method efficiently estimates the Wasserstein distance between feature embeddings, exploiting the closed form property of 1D calculations compared to high-dimensional alternatives.</p><p>Although the unit sphere projection enables uniformity and minimizing 1-D Wasserstein distances facilitates alignment, training with Monte Carlo-approximated SWD presents several challenges. First, the results are inherently non-deterministic and intractable due to the randomness inherent in the Monte Carlo method. Second, as the dimensions of &#181; d and &#957; d increase, both the computational cost and memory requirements for SWD escalate. Finally, to maintain accuracy in the face of increasing dimensions, the number of directions L must also increase, complicating the Monte Carlo approximation further.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4.">Proposed Approach: SWSEG</head><p>To enhance feature representation uniformity and alignment while alleviating the computational burden of Monte Carlobased SWD, we implement an alternate method proposed by Nadjahi et al. <ref type="bibr">[28]</ref> for approximating the SWD. Our method diverges by projecting these measures directly onto a Gaussian distribution. This modification offers significant computational benefits and supports key theoretical objectives in two primary ways: First, projecting onto Gaussian distributions allows the 2-Wasserstein distance between any two Gaussians to be expressed in a closed-form equation. Second, using normalized Gaussian variables ensures that the resulting distributions are uniformly distributed over the unit hypersphere, which we prove in the supplementary materials. This uniform distribution is essential for maintaining the model's uniformity objective, ensuring features are evenly distributed in the embedding space, maximizing its information for segmentation head.</p><p>To formalize this idea, for any positive integer d, let {&#952; i } d i=1 be a sequence of i.i.d. 1-d standard Gaussian distributions and {X i } d i=1 be a sequence of 1-d probability distributions. Several Central Limit Theorems <ref type="bibr">[11,</ref><ref type="bibr">31]</ref> ensure that the sequence of distributions formed by the inner product d -1/2 &#239;&#952; 1:d , X 1:d &#240; converges in probability to a Gaussian random variable when the distributions exhibit weak correlation. Furthermore, according to Proposition 2 from <ref type="bibr">[28]</ref>, as the dimensions of the distributions increase, the quadratic Wasserstein distance between two zero-mean Gaussian distributions with variance d -1 m 2 ( &#956;d ) can be approximated by the SW distance between two Gaussian projected distributions. The Wasserstein distance between two Gaussian probability distribution is in closed form <ref type="bibr">[10]</ref>, which enables us to approximate the l 2 -SW distance by:</p><p>(5) This equation comprises two terms: the first quantifies the difference in the second moments of the distributions, and the second captures the squared error in their means. For</p><p>, enabling a closed-form deterministic solution for L swd . Nadjahi et al. also proved in Proposition 1 that L swd with Gaussian projections equals the original SW p p when p = 2. Thus, we can use L swd as a computationally efficient Wasserstein metric for our consistency loss term. A PyTorch-styled  <ref type="bibr">[11,</ref><ref type="bibr">31]</ref>, minimizing strong correlations among input embeddings is essential. We address this by introducing a regularization term based on the input cross-covariance matrix into the SWD loss:</p><p>Here, Cov(&#8226;) calculates the covariance matrix of the input features, and Diag(&#8226;) extracts its diagonal elements. Minimizing the off-diagonal elements decorrelates the features, thereby indirectly promoting the uniformity of the distribution of the features across the representation space <ref type="bibr">[49]</ref>.</p><p>We present a detailed overview of this training scheme in Fig. <ref type="figure">3</ref>. We also insert an additional non-linear MLP projection layer before loss computation between representations, following recent self-supervised learning work <ref type="bibr">[6,</ref><ref type="bibr">7,</ref><ref type="bibr">16]</ref>. The projection layer is solely incorporated during the training process, and it is subsequently discarded when the model is deployed for inference. Our objective is to retain more information in the features prior to the MLP layer. This will enable the segmentation head to utilize the preserved information more effectively for the segmentation task. The specific architecture of the projection layer used in this work consists of two Conv -BatchNorm -ReLu blocks followed by a single Conv layer. The overall training objective, managing the balance of various losses, is summarized in Eq. ( <ref type="formula">7</ref>). The hyperparameters &#955; 1 , &#955; 2 , and &#955; 3 control the weight of each loss.</p><p>4. Evaluation testing images. For a fair comparison, we used the data split from dual-teacher <ref type="bibr">[27]</ref>. PASCAL VOC 2012. <ref type="bibr">[12]</ref> This dataset is a classic semantic segmentation dataset comprising 20 classes of objects and 1 background class, with 1464 training, 1449 validation, and 1546 testing high-quality images in the standard set. We incorporate the augmented set from <ref type="bibr">[17]</ref>, following previous works, increasing our labeled data to 10,582 images. Cityscapes. <ref type="bibr">[9]</ref> This is an autonomous driving semantic segmentation dataset that consists of 19 semantic classes, with 2975, 500, and 1525 training, validation, and testing images, respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Implementation details.</head><p>For ADE20K, we implemented our method with Seg-Former <ref type="bibr">[43]</ref> architecture with MiT-B1 backbone. For PAS-CAL VOC 2012 and CityScapes, to have a fair comparison with previous benchmark semi-supervised semantic segmentation methods <ref type="bibr">[27,</ref><ref type="bibr">37,</ref><ref type="bibr">42,</ref><ref type="bibr">45,</ref><ref type="bibr">46,</ref><ref type="bibr">50]</ref>, we implement our method using ResNet-101 <ref type="bibr">[18]</ref> as the backbone encoder, initialized with ImageNet pre-trained weights, and  <ref type="bibr">'22]</ref> 73.4 76.3 78.4 UniMatch <ref type="bibr">[46]</ref> [CVPR <ref type="bibr">'23]</ref> 76.6 77.9 79.2 AugSeg <ref type="bibr">[50]</ref> [CVPR <ref type="bibr">'23]</ref> 75.2 77.8 79.6 DT <ref type="bibr">[27]</ref> [NeurIPS <ref type="bibr">'23]</ref> 76.8 78.4 79.5 DAW <ref type="bibr">[37]</ref> [NeurIPS <ref type="bibr">'23]</ref> 76.6 78.4 79.8 CorrMatch <ref type="bibr">[36]</ref> [CVPR <ref type="bibr">'24]</ref> 77.3 78.5 79.4 RankMatch <ref type="bibr">[24]</ref> [CVPR <ref type="bibr">'24]</ref> 77.1 78.6 80.0 DDFP <ref type="bibr">[41]</ref> [CVPR <ref type="bibr">'24]</ref> 77.1 78.2 79.9 SWSEG (Ours) 76.8 78.6 79.5  <ref type="bibr">'23]</ref> 75.0 76.8 77.5 AugSeg <ref type="bibr">[50]</ref> [CVPR <ref type="bibr">'23]</ref> 77.0 77.3 78.8 DAW <ref type="bibr">[37]</ref> [NeurIPS <ref type="bibr">'23]</ref> 78.5 78.9 79.6 CorrMatch <ref type="bibr">[36]</ref> [CVPR <ref type="bibr">'24]</ref> 78.4 79.3 79.6 RankMatch <ref type="bibr">[24]</ref> [CVPR <ref type="bibr">'24]</ref> 78.9 79.2 80.0 DDFP <ref type="bibr">[41]</ref> [CVPR <ref type="bibr">'24]</ref> 78.3 78.9 79.8 SWSEG (Ours) 79.0 79.3 79.9</p><p>DeeplabV3+ <ref type="bibr">[5]</ref> as the decoder. We use SGD optimizer with momentum of 0.9. The learning rate is set to 0.001, 0.02, and 5e-5 for PASCAL, CityScapes, and ADE20K, respectively. We utilize a polynomial scheduling strategy with 0.9 decay rate.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Data</head><p>augmentations. For weak augmentations, horizontal flipping, random cropping, and random scaling are applied to the training images. For strong augmentations, we apply random color jittering, random grayscale, random blurring, and Cutmix [47] to the input training images. The training image size is set as 513 &#215; 513, 769 &#215; 769, and 512 &#215; 512 for PASCAL VOC, CityScapes, and ADE20K, respectively. The training epochs for VOC, CityScapes, and ADE20K is 80, 240, and 200 epochs. Evaluation. As in previous works, we employ mean Intersection-over-Union (mIOU) as our evaluation metric. For the PASCAL VOC 2012 and ADE20K, evaluations are on the center-cropped validation set, while for CityScapes, we employ a sliding window evaluation. Our method also beats the SOTA DDFP <ref type="bibr">[37]</ref> by 0.7%, 0.4%, and 0.1% mIoUs under 1/16, 1/8, and 1/4 splits, respectively. We also visualized the predicted features in Fig. <ref type="figure">4</ref> to evaluate the effectiveness of our algorithm's clustering capabilities. Our method demonstrates enhanced discriminative clustering compared to the Supervised Only and UniMatch methods.</p><p>(a) (b) (c) (a) Without L swd (b) With L swd Figure 5. We visualize feature representations on a unit circle for models trained with and without L swd for uniformity analysis. Features from the model with L swd (b) are more uniformly distributed than those without L swd (a).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.">Ablation Study</head><p>Uniformity and Alignment. We conduct an empirical analysis of feature representation alignment and uniformity (Tab. 4). We compare different loss functions for enforcing consistency regularization on the feature representation. Our results indicate that, aside from MSE loss, additional loss terms generally enhance segmentation prediction performance, highlighting the critical role of feature alignment. Monte Carlo SWD with L = 128 outperforms MSE and cross-entropy but encounters out-of-memory issues at L = 1000 using an identical number of GPUs, highlighting its computational cost. Conversely, our Gaussian-based SWD approximation delivers optimal results with lower memory usage. For uniformity analysis, we reduce the dimension of feature embeddings using PCA <ref type="bibr">[15]</ref>, projecting them into R 2 and plotting their coordinates on a unit circle, as shown in Fig. <ref type="figure">5</ref>. The visualization demonstrates that models trained with L swd achieve greater uniformity compared to those without it, confirming the effectiveness of our introduced SWD loss. To quantitatively validate this observation, we compute the uniformity metric L uniform from [40, Equa- tion 5.2] and compare the values for models trained with and without L swd in Tab. 5. The results show that including L swd decreases the uniformity loss, which aligns with our qualitative visualization in Fig. 5. We also conduct an ablation study on MLP layers and L reg in Tab. 4, showing that including all components yields the best outcome. Qualitative analysis. Fig. 6 shows the results of different training methods on the PASCAL VOC 2012 val set.</p><p>When training with SWD loss, our method outperforms other methods, producing segmentation predictions that are closer to ground-truth labels. We can see from the results that our method performs exceptionally well on the border between different classes. Moreover, the segmentation results of our method have a cleaner prediction between the border and the backgrounds.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Conclusion</head><p>We introduced SWSEG, a semi-supervised semantic segmentation algorithm designed to enhance both alignment and uniformity of feature representations. We implement the Sliced-Wasserstein Distance (SWD) as an additional loss to jointly optimize these aspects, using a Gaussian-approximated variant to reduce computational overhead while preserving uniformity. Empirical evaluations on PASCAL VOC 2012, CityScapes, and ADE20K datasets show that SWSEG outperforms both supervised baselines and existing methods.</p><p>Extensive ablation studies highlight the critical role of uniformity in the feature space for effective semi-supervised semantic segmentation. SWSEG is the first method to link semi-supervised learning with the uniformity metric using SWD, marking a significant advancement in the field.</p></div></body>
		</text>
</TEI>
