On the Relaxation of Conditional Independence Assumption for Image Segmentation
Zixun Wang, Ben Dai
NeurIPS 2026
Abstract. In semantic segmentation, a recent line of RankSEG methods directly optimizes Dice/IoU scores at inference time, improving alignment with evaluation metrics without modifying model training. Despite its theoretical and empirical success, RankSEG relies on the restrictive Conditional Independence Assumption (CIA), which ignores crucial label correlations and therefore degrades performance in ambiguous or low-contrast scenarios. However, accounting for full label dependence is computationally prohibitive, requiring time. To address this, we replace the CIA with a Spatially Localized Dependence (SLD) structure that captures local label correlations while keeping the dependence model tractable. We further overcome the remaining computational bottleneck via a Reciprocal Moment Approximation coupled with a novel fixed-point optimization strategy that eliminates exhaustive search. The proposed algorithm achieves a highly practical complexity and consistently outperforms conventional argmax and CIA-based RankSEG across diverse segmentation benchmarks. Improvements are significant in low-contrast or small-object scenarios, where label dependence offers valuable signals complementary to image information for accurate segmentation.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (spotlight) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (spotlight)
Read decision
Meta-review
This paper proposes that methods which directly optimize Dice/IoU scores for semantic segmentation assume conditional independence between segment labels. This limits, according to the paper, the resulting models and limits their performance because it ignores label correlations (which clearly exist). The paper proposes a spatially localized dependence structure which is both tractable and account to (some of) these correlations. The method is shown to improve relevant benchmarks.
All reviewers appreciated the motivation, analysis and solutions this paper provides. They all noted that it is clearly presented and well executed. I would advise the authors to address the concerns below directly to make the case for this paper stronger.
Final justification
All reviewers this nicely presented work and AC concurs. A strong rebuttal only helped strengthen the case for this paper and AC is happy to recommend acceptance as a spotlight.
Read meta-review
Meta-review
This paper proposes that methods which directly optimize Dice/IoU scores for semantic segmentation assume conditional independence between segment labels. This limits, according to the paper, the resulting models and limits their performance because it ignores label correlations (which clearly exist). The paper proposes a spatially localized dependence structure which is both tractable and account to (some of) these correlations. The method is shown to improve relevant benchmarks.
All reviewers appreciated the motivation, analysis and solutions this paper provides. They all noted that it is clearly presented and well executed. I would advise the authors to address the concerns below directly to make the case for this paper stronger.
Final justification
All reviewers this nicely presented work and AC concurs. A strong rebuttal only helped strengthen the case for this paper and AC is happy to recommend acceptance as a spotlight.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposed a method relaxing the Conditional Independence Assumption (CIA) by introducing a Spatially Localized Dependence SLD structure. This addresses the current limitation of RankSeg methods for semantic segmentation, where CIA ignores label correlations and degrades performance in low-contrast environments. The method was evaluated across five datasets and resulted in marginal but consistent improvement over standard argmax and CIA-based RankSeg baselines. Highlight is a reduction in computational complexity from O(d3) to 0(dlogd).
Strengths and weaknesses
Strengths
- Theory is well motivated with a clear write-up, presentation, and experimental rigor. Moving towards SLD from CIA is mathematically motivated, and also provides a rigorous error analysis of the RMA error under SLD decay.
- Highlight is the significant computational reduction. Achieving O(d log d) complexity allows scaling it to high-resolution applications in clinical settings. The proposed method is also a post-processing approach, i.e., no requirement to retrain the base model.
- Experiments are well set up. Empirical validation across 5 distinct datasets incl. medical and natural images. Testing improvements in hard cases, such as low-contrast scenes, adds value to this study.
Weakness
- Although there is no outstanding weakness, there is no discussion on extension to multi-class segmentation in the main text, which is a practical requirement, and the underlying mathematics is not the same for the non-binary heuristic. (more in "Questions")
- While limitation is already acknowledged by the authors, the proposed SLD model only captures spatial structure without exploiting appearance cues entirely. This may limit the method's application to complex object boundaries where spatial awareness does not necessarily correlate with semantic similarity.
Questions
I would like authors to address the following questions/weaknesses to further improve the paper quality.
- Incorporating appearance clues, which is a limitation in the current proposed approach, be potentially solved without losing computational efficiency?
- Are there any edge cases (datasets) where the current method fails? This is not clear from the main text, but it will be useful as a reader to know what to do and what not to.
- Although it is clearly mentioned in the appendix, a thought on multi-class extension with effect on performance and computation on overlapping vs non-overlapping cases on the same dataset would be an interesting empirical finding.
Limitations
Yes
Final justification
The authors clarified minor doubts I had. I feel it's a strong contribution and maintain my original rating of an accept.
Formatting concerns
None
2 comments
Response to Authors
I thank authors for clarifications. I maintain my original ratings.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper extends the RankSEG framework, which segments by ranking pixels according to their contribution to the expected Dice/IoU score rather than thresholding per-pixel probabilities. RankSEG relies on a Conditional Independence Assumption (CIA) that ignores correlations between neighboring pixel labels, and the authors argue this is exactly the signal that matters most in ambiguous, low-contrast, or small-object regions. To capture that structure without the intractable O(d^3) cost of full label dependence, they propose Spatially Localized Dependence (SLD), which models label covariance with a spatially decaying Gaussian kernel.
They also add two algorithmic contributions that bring the cost down to a practical O(d log d). A Reciprocal Moment Approximation reduces the pixel scores to a first conditional moment that can be computed for all pixels at once via FFT-based convolution, and a fixed-point iteration removes the need for an exhaustive search over the prediction volume. The method is backed by theoretical analysis (fixed-point and convergence guarantees, an approximation-error bound, and a comparison to CRFs) and is presented as a training-free, model-agnostic post-processing module. Across five datasets and several CNN- and transformer-based backbones, it shows consistent Dice/IoU gains over argmax and CIA-based RankSEG, with the largest gains on harder cases and smaller objects.
Strengths and weaknesses
The paper relaxes RankSEG's conditional-independence assumption (CIA) to a weaker Spatially Localized Dependence (SLD), where label covariance decays with distance via a Gaussian kernel. To stay tractable it introduces two ideas that reach O(d log d): a reciprocal-moment approximation that reduces pixel scores to a first moment computable for all pixels via FFT-based convolution, and a fixed-point iteration over the prediction volume. It's pitched as a training-free, model-agnostic post-processor and evaluated on five datasets and several backbones against argmax and CIA-RankSEG.
Strengths
- The algorithmic core is sound and well matched to the problem: the RMA-to-first-moment reduction, the FFT convolution for μ_j, the fixed-point treatment of \tau, and the Taylor cumsum (App. B).
- Most of the proofs look correct.
- The inference rule is deployable and metric-aligned, and the fine-grained analysis (larger relative gains on harder and smaller cases) is the most convincing piece of evidence.
- The SLD-vs-CRF contrast (App. D) does a fair job of articulating what's new.
Weaknesses While there is significantly improvement in the results for qualitative samples shown in the paper, on average for the entire datesets the improvment is aount .5% which seem a bit low, albiet the improvement is uniform acorss datesets/architectures.
The value of \theta = 300 seem very high considering the primary claim (and the qualitative results) which show that the method makes significant improvement primarily for small objects. The ablation study also shows that at \theta< 100 the perfromance starts decreasing.
Minor: Eq. (8)–(9) are written as a 1-D convolution but should be 2-D Tables 3–4 don't state the "+%" baseline
Questions
I would like the authors to kindly address the following points.
- In light of the strenghts and weakness section can the authors comment on the marginal improvement of the post-processing algorithms across datasets/methods.
- Can the authors address the choice of \theta.
Limitations
Yes.
Final justification
The authors have provided reasonbale rebuttals to the concerns I had raised. I will keep the original positive rating of 4 for the paper.
Formatting concerns
None
1 comment
Rebuttal
We appreciate the reviewer's thoughtful feedbacks and address the questions below.
Q1: Can the authors comment on the marginal improvement of the post-processing algorithms across datasets/methods?
Thanks for the careful question. Our method is intended as a training-free inference module applied on top of trained networks to squeeze out additional metric-aligned performance. We would like to highlight two properties that make them valuable in practice:
(a) Consistent gains. Our improvement is theoretically grounded in relaxing CIA and, as you noted, remarkably stable. This robustness is confirmed across multiple datasets and backbones, as well as over 10 runs with different random seeds.
(b) Low cost gains. Our module is lightweight and drops into trained networks, allowing an out-of-the-box performance boost in production settings where retraining is expensive.
We therefore view our contribution as orthogonal and complementary to existing improvement strategies in the semantic segmentation community.
Q2: The value of \theta = 300 seem very high considering the primary claim that the method makes significant improvement primarily for small objects. The ablation study also shows that at \theta< 100 the performance starts decreasing. Can the authors address the choice of \theta.
Thank you for raising this insightful question. We would first like to clarify the meaning of . According to Eq. (5), it is the bandwidth of the Gaussian kernel which weights the interaction between through . For a fixed pixel distance, a large makes the kernel decays more slowly, so the covariance remains substantial over longer ranges.
Thus, reflects the assumed strength/range of spatial dependence, but not necessarily relates to the object size. A relatively large value can still be compatible with stronger gains on small objects. The benefit for small objects arises because SLD corrects the estimate at pixel by aggregating sufficiently broad dependence information. This matters most for small objects, where each pixel carries proportionally large weight and thus benefits most from reliable, wide-context correction. The improvement does not stem from using a narrow local neighborhood around each small object. We thank the reviewer for this comment and will carefully clarify this in the revision.
On the choice of , we used a single value, , for all datasets and networks rather than tuning it per setting. The sensitivity study in Figure 5 shows a broad plateau for , where performance is nearly invariant; is simply a central value in this robust range. The performance drop for is expected and, importantly, still remains above the CIA baseline: as , the off-diagonal covariance terms vanish and SLD collapses back to CIA, losing precisely the long-range dependence signal that drives the gains.
Q3: Eq. (8)–(9) are written as a 1-D convolution but should be 2-D. Tables 3–4 don't state the "+%" baseline
We thank the reviewer for pointing out these two issues. Eq. (8)–(9) being written as a 1-D convolution is only for notational simplicity and does not affect the algorithmic nature; we will revise it or add a remark on this in the revision. For Tables 3–4, we will clarify that the reported +% values are relative improvements over Argmax-prob.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces a novel post-processing method for semantic segmentation designed to directly optimize set-based evaluation metrics, such as Dice and IoU. The authors address the structural mismatch between standard neural network outputs (which typically rely on argmax thresholding) and set-based evaluation metrics. Building on the existing RankSEG framework, the paper proposes replacing the Conditional Independence Assumption (CIA) with Spatially Localized Dependence (SLD). This approach encodes the intuitive property that neighboring pixels are highly likely to share semantic labels, whereas distant pixels act independently. The resulting algorithm is a plug-and-play module that processes calibrated probabilities during inference, requiring no modifications to the model's training phase.
Strengths and weaknesses
Strengths
- Clear Motivation: The paper identifies a practical limitation in current post-processing frameworks. Figure 1a effectively illustrates why independence assumptions fail and why spatial dependency is necessary for noisy or low-contrast images.
- Clearly Demonstrated Effectiveness: The method shows pronounced performance gains on low-contrast datasets, which is highly relevant for high-risk applications like medical imaging. The detailed analysis comparing easy vs. hard cases and small vs. large categories provides good insight into the method's behavior.
- Comprehensive Evaluation: The experiments are well-structured, evaluating the method across five diverse datasets (LiTS, KiTs, DeepGlobe, ADE20K, and Cityscapes) and standard architectures (DeepLab, SegFormer).
- Rigorous Methodology: Reporting per-run performance comparisons across 10 independent retraining runs with different random seeds (using UPerNet) strengthens the statistical validity of the claims.
- Detailed proofs: The paper provides proofs of all the results in the Appendix (which I did not carefully read).
Weaknesses
- Limited Mathematical Contribution: While the integration of SLD is effective, the underlying Reciprocal Moment Approximation (and RankSEG) used in the algorithm is already a known technique, somewhat limiting the fundamental algorithmic novelty of the work. But the fixed-point component seems novel.
Questions
I have no questions.
Limitations
The limitations were discussed in Section 6.
Final justification
The rebuttal has addressed my concerns. I am maintaining my original positive rating.
Formatting concerns
Paper is well formatted.
1 comment
Rebuttal
Thank you for the careful and positive assessment. We sincerely appreciate that you found the motivation clear, the evaluation comprehensive, and the gains on low-contrast/high-risk datasets meaningful.
Q1: While the integration of SLD is effective, the underlying Reciprocal Moment Approximation (and RankSEG) used in the algorithm is already a known technique, somewhat limiting the fundamental algorithmic novelty of the work.
We thank the reviewer for this thoughtful comment. We agree that RankSEG and RMA are known technique. However, we respectfully argue that our core contribution lies not in RankSEG-RMA itself, but in enabling its interaction with SLD, which relaxes the CIA to capture label dependence yet keeping the computation tractable.
This raises two nontrivial algorithmic challenges: (a) efficiently computing the SLD correction of , which we reformulate as a convolution so that the FFT can be applied; and (b) avoiding exhaustive search over prediction volumes , which we address via fixed-point optimization.
Moreover, while the RMA theorem is itself known, our characterization of its error bound under SLD (Theorem 3) is new. Taken together, we view these as the central algorithmic and theoretical novelties of our work, and we will revise the manuscript to state this contribution more explicitly.
Comments on the paper
1 comment
General Response
We are grateful for the thoughtful review process and for the reviewers' careful engagement with our paper. We appreciate that the reviews recognized the motivation for relaxing CIA, the soundness of the analysis, the efficiency of the proposed algorithm, and the breadth of the empirical evaluation.
During the rebuttal, we have made every effort to carefully address the main concerns and questions raised by the reviewers:
-
Technical contribution beyond RMA. We clarified that our contribution is not the use of RMA alone. The main novelty is enabling RankSEG under SLD, which relaxes CIA while retaining tractability. This requires efficiently computing the SLD correction term in via convolution/FFT, avoiding exhaustive search over prediction volumes through fixed-point optimization, and theoretically characterizing the RMA error under SLD.
-
Magnitude of improvements. Our method is intended as a training-free inference module applied on top of trained networks to squeeze out additional metric-aligned performance. We emphasized that the gains are consistent across datasets and backbones, statistically significant in the 10-run experiments, and obtained without retraining or architectural modification. We also clarified that the average results understate the main target regime: the improvements are larger on hard cases and small categories, where local label dependence is most useful.
-
Choice of . We explained that controls the spatial dependence range in the Gaussian covariance kernel, not the object size. We used a single across datasets and networks, without per-dataset tuning. The sensitivity study shows a broad plateau for , while smaller values approach CIA as off-diagonal covariance vanishes.
-
Appearance cues and computational efficiency. We gave a more detailed explanation of why adding an appearance kernel is nontrivial. The current computation relies on a fixed translation-invariant spatial kernel, so all values can be computed by FFT convolution. If an additional term such as is used, the effective kernel depends on the query pixel through . Then no single fixed convolution kernel exists, and exact computation requires pairwise interactions over all , leading to complexity.
We sincerely appreciate these comments, which sharpen both the presentation and the positioning of our work. In the revision, we will incorporate these clarifications to make the novelty, empirical implications, parameter behavior, multi-class extension, and limitations more transparent to readers.
Should the reviewers have any additional comments or questions, we would be grateful for the opportunity to discuss them further during the remaining discussion period and clarify any remaining ambiguities. We warmly welcome continued engagement to ensure that we have fully and accurately addressed all concerns.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thank you for the encouraging review and for the useful questions about practical scope.
Thank you for the question. As mentioned in the limitation section, including appearance cues may be beneficial for complex dependencies, but given the large computational difficulty it brings, we leave it as future work. Below we explain where and how the challenges arise, to enhance the comprehensiveness of this discussion.
Recall that, according to Eq. (7), μj is computed as
Since K(r(i,j)) only depends on pixel distance, the same kernel value is reused for every pair with the same distance. Thus we can define a fixed translation-invariant kernel κ=(K(d−1),K(d−2),⋯,K(0),⋯,K(d−1))⊺ and compute μ by the convolution in Eq. (8):
For appearance cues, a natural extension would be to replace Eq. (5) by a spatial-appearance weighting, e.g.,
This is a conceptually appealing and more expressive extension, but it breaks the computational structure our algorithm relies on. With the appearance term, the weight between pixels i and j no longer depends only on their positional distance (which can be reused to save computation), but also on the appearance difference ∥pi−pj∥. Consequently, pixels with the same spatial distance can have different weights, so no fixed kernel κ exists and the computation can no longer be cast as a convolution. Exact evaluation then costs O(d2) instead of the FFT-based O(dlogd).
Thank you for this insightful question. At the dataset level, we have validated the effectiveness of our method in the experiment section, where it obtains consistent improvement over 5 datasets. This is aligned with our theoretical aim of maximizing the expected Dice/IoU. At the case level, we can observe some failure cases. For example, we bin the cases in ADE20K into 5 quantiles based on their performance and report the win rate and relative Dice improvement as follows. The binning is based on the performance of Argmax-prob in increasing order (e.g., Bin 1 contains the cases in the lowest 20% quantile, and Bin 2 those from the 20% to 40% quantile), where each cell shows
(win rate, relative Dice improvement).We can still see that our method improves over each bin in terms of per-case win rate and mean Dice score. At the same time, we observe that the gains are smaller for the better bins, where the baseline performance is already high. This is aligned with our argument that the proposed method mainly improves the low-contrast / difficult cases, where the dependence signals are more useful; whereas for easy cases, where Argmax-prob or CIA-RankSEG already performs well, the image X itself already provides sufficient information to infer Y, so exploiting further dependence may not help. Nevertheless, we note that even in these easy cases our method does not degrade performance on average. Therefore, one can expect a consistent performance gain on average across general datasets and cases, with a more pronounced boost for difficult ones.
For the overlapping setting, the extension is natural: we apply the binary method to each class probability mask pc∈Rd separately to obtain a prediction mask δc∈{0,1}d, and then aggregate them to form δ∈{0,1}C×d. The computational complexity is O(Cdlogd).
The non-overlapping setting is the standard one for existing datasets, where each pixel is assigned to exactly one semantic class. As mentioned in the appendix, we follow [1] to start from an overlapping prediction δ∈{0,1}C×d and then resolve the pixels assigned to multiple classes. Specifically, for each overlapping pixel we compute the incremental gain in expected Dice score of assigning it to each class c∈[C], and select the class yielding the largest gain. This retains the O(Cdlogd) complexity of the overlapping setting, plus a lightweight overlap-resolution overhead.
We also report a performance comparison between the overlapping and non-overlapping settings on ADE20K below. The takeaway is that the overlapping setting allows more flexibility in prediction, as there is no need to resolve class conflicts at each pixel, so the RankSEG series can achieve further improvement.
Nevertheless, we would like to note that our contribution mainly lies in improving RankSEG by relaxing CIA, and resolving overlapping is not our focus.
[1] Wang, Zixun, and Ben Dai. "RankSEG-RMA: An Efficient Segmentation Algorithm via Reciprocal Moment Approximation." Advances in Neural Information Processing Systems 38 (2026): 163310-163333.