Logic-induced Diagnostic Reasoning for Semi-supervised Semantic Segmentation

Chen Liang, Wenguan Wang, Jiaxu Miao, Yi Yang

Semi-supervised semantic segmentation (SSL) aims to train robust models by leveraging a small set of labeled data alongside a large pool of unlabeled data. The standard approach relies on pseudo-labeling, where a "teacher" model generates predictions for unlabeled images to serve as ground truth for a "student" model. However, this process often suffers from confirmation bias: early errors in pseudo-labels are reinforced during training, leading to a "garbage in, garbage out" cycle.

Conceptual comparison between standard confidence thresholding and the proposed logic-induced diagnostic reasoning.

Traditional solutions attempt to mitigate this by using "confidence thresholding"—discarding predictions where the model is uncertain. While helpful, this approach ignores the semantic relationships between classes. For instance, a model might be confident that a pixel is both a "cat" and a "vehicle," a logical impossibility. Standard methods might discard such useful data or, worse, accept contradictory labels.

The LOGICDIAG Framework

To address these limitations, the authors introduce LOGICDIAG, a novel neural-logic framework that integrates symbolic reasoning into the deep learning pipeline. Instead of simply rejecting low-confidence predictions, LOGICDIAG "diagnoses" and corrects them using a symbolic knowledge base.

Detailed pipeline of the LOGICDIAG framework, illustrating the transition from neural prediction to revised pseudo-labels via diagnostic reasoning and fuzzy sampling.

The framework operates in four key stages:

  1. Symbolic Knowledge Base: Relationships between categories are formalized using First-Order Logic (FOL). These rules are derived from class hierarchies and include:
  2. Composition: A "Dog" must also be an "Animal."
    • Decomposition: An "Animal" must belong to one of its subclasses (e.g., Dog, Cat).
  3. Exclusion: A "Dog" cannot simultaneously be a "Vehicle."
  4. Diagnosis Computation: When predictions violate these rules, the system identifies "minimal diagnoses"—the smallest set of label changes required to restore logical consistency.
  5. Resolution with Fuzzy Logic: Since neural networks output continuous probabilities, LOGICDIAG employs Fuzzy Logic to evaluate the likelihood of different diagnoses. It balances the model's original confidence with the degree of logical conflict to select the most probable correction.
  6. Iterative Learning: These "revised pseudo-labels" provide a cleaner, more reliable training signal for the student model.

Key Insights: Recovery over Rejection

A major advantage of LOGICDIAG is its ability to recover erroneous labels rather than just rejecting them. By leveraging the hierarchy, the system can determine that a pixel is definitely an "Animal" even if the model is unsure whether it is a "Dog" or a "Cat." This effectively uses symbolic logic as a denoising signal, acting as a powerful prior that leverages human "common sense" without requiring additional training data. Furthermore, LOGICDIAG is model-agnostic and can be integrated into existing state-of-the-art SSL methods.

Experimental Results

LOGICDIAG was evaluated on three major benchmarks: PASCAL VOC 2012, Cityscapes, and COCO. The results demonstrate significant improvements:

  • State-of-the-Art Performance: LOGICDIAG outperformed existing methods across all benchmarks. On PASCAL VOC 2012, it achieved a gain of up to 4.15% mIoU over previous best methods in extremely label-scarce settings (1/16 labeled data).
  • Efficiency: The performance gains are most pronounced when labeled data is scarce, proving that symbolic reasoning is a highly effective substitute for massive human-labeled datasets.
  • Minimal Overhead: The diagnostic reasoning step adds only a trivial delay to training time (approx. 4.7%) and imposes no computational burden during inference.

Limitations and Future Directions

While highly effective, the method currently depends on a predefined label hierarchy. While even basic taxonomies provide benefits, optimal results require well-structured knowledge. Future work may explore more complex spatial logic (e.g., "sky is above grass") and extending the framework to "open-world" scenarios where hierarchies are not fixed.

Summary updated

BibTeX
@inproceedings{liang2023logic,
  author = {Chen Liang and Wenguan Wang and Jiaxu Miao and Yi Yang},
  title = {{Logic-induced Diagnostic Reasoning for Semi-supervised Semantic Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure