TL;DR
ViG-UNet is a new architecture for medical image segmentation that replaces traditional convolutional or transformer layers with Vision Graph Neural Networks (ViG). By treating image patches as nodes in a graph rather than pixels in a grid, the model captures complex spatial relationships more effectively, outperforming established models like U-Net and Swin-UNet on skin lesion and polyp segmentation tasks.
What Problem Does This Paper Address?
Medical image segmentation—the process of identifying the exact boundaries of organs or lesions—is a cornerstone of computer-aided diagnosis. For years, the U-Net (a convolutional neural network or CNN) has been the gold standard. However, CNNs are limited by their "sliding window" nature, which focuses on local pixel grids and often struggles with long-range dependencies.
Recently, Transformers (like Swin-UNet) have attempted to solve this by treating images as sequences of patches. While powerful, sequences are still a rigid way to represent an image. The authors argue that a graph-based representation is the most generalized approach. In a graph, any part of an image can be connected to any other part based on similarity, allowing the model to better understand the irregular shapes and varying scales typical of medical anomalies like tumors or polyps.
Methods
The authors introduce ViG-UNet, which maintains the classic "U-shaped" symmetry (encoder-bottleneck-decoder) but swaps out the internal machinery for graph-based modules.
- Grapher Module: This is the heart of the architecture. The image is divided into patches, each treated as a node. The module uses a $K$-Nearest Neighbors ($K$-NN) algorithm to connect each node to its most similar neighbors, forming a graph. It then applies graph convolutions to aggregate and update features across these connections.
- Max-Relative Graph Convolution: To make the graph processing more robust, they use a specific type of convolution that looks at the maximum difference between a node and its neighbors, helping the model focus on local contrast and edges.
- Feed-forward Networks (FFNs): To prevent "over-smoothing"—a common issue in deep GNNs where all node features become nearly identical—the authors include FFNs (fully connected layers) to transform features after the graph processing.
- Hybrid Design: The model still uses standard downsampling (strided convolutions) and upsampling (bilinear interpolation) to move between different resolutions, ensuring it fits the hierarchical structure required for precise segmentation.
Datasets
The model was evaluated on three widely recognized medical imaging benchmarks:
- ISIC 2016: Dermoscopic images of skin lesions (900 training, 379 testing pairs).
- ISIC 2017: A larger skin lesion dataset (2,000 training, 150 validation, 600 testing pairs).
- Kvasir-SEG: A dataset containing 1,000 images of gastrointestinal polyps.
Key Insights and Ideas
- Beyond the Grid: The move from pixels (CNNs) and sequences (Transformers) to graphs allows the model to learn non-Euclidean relationships. This is particularly useful in medical imaging where lesions don't follow a standard geometric pattern.
- Mitigating GNN Weaknesses: By pairing the Grapher module with FFNs and skip connections, the authors successfully adapted Vision GNNs—originally designed for image classification—to the more demanding task of pixel-level segmentation.
- Superior Feature Aggregation: The results suggest that the $K$-NN approach to building graphs allows the model to "attend" to relevant features across the image more dynamically than the fixed attention windows found in many Transformers.
Key Results
ViG-UNet consistently outperformed classic and state-of-the-art models across all datasets using the IoU (Intersection over Union) and Dice metrics.
- ISIC 2017: ViG-UNet achieved a Dice score of 0.8292, surpassing Trans-UNet (0.8244) and the original U-Net (0.7708).
- Kvasir-SEG: It reached a Dice score of 0.8188, significantly beating Swin-UNet (0.4974) and UNext (0.8122).
- Qualitative Success: Visual results (Figure 3 in the paper) show that ViG-UNet produces much cleaner masks with fewer "noisy" false positives compared to its predecessors.
Limitations and Future Work
The primary drawback of ViG-UNet is its computational weight.
- Parameter Count: ViG-UNet is quite large, with approximately 0.7G (700 million) parameters. For comparison, the UNext model achieves competitive results with only 1.5M parameters. This makes ViG-UNet difficult to deploy in real-time settings or on hardware with limited memory.
- Pre-training: The authors noted that they did not use pre-trained weights from ImageNet for this study. They expect that incorporating pre-training would further boost performance.
- Future Direction: A logical next step would be optimizing the graph construction process to reduce the parameter count while maintaining the high accuracy that the graph-based approach provides.
Summary updated