Introduction
Modern computer vision has long been dominated by two rigid paradigms: the sliding windows of Convolutional Neural Networks (CNNs) and the fixed-size patches of Vision Transformers (ViTs). While effective, these approaches struggle to adapt to the irregular, organic shapes of real-world objects. CLUENet (CLUster attEntion Network) introduces a third way, treating images as dynamic clusters of semantically related pixels.
The Rigid Window Problem
CNNs and Transformers are inherently "rigid." A CNN looks at an image through a fixed-size filter, while a Transformer chops it into square blocks. This rigidity often fails to capture the natural boundaries of objects. While previous "clustering paradigms" attempted to solve this by grouping similar pixels, they faced three major hurdles:
- Performance Gaps: They often lagged behind state-of-the-art models.
- Local Constraints: To save computation, they only clustered within small windows, losing global context.
- Training Instability: Issues like "gradient vanishing" in specialized layers made them difficult to train.
The CLUENet Architecture
CLUENet is a four-stage pyramid network designed to mimic the flexibility of the human visual system. By moving from local window clustering to global aggregation, it ensures that entire objects—like a bird against a sky—are recognized as single semantic entities.
Core Innovations
- Global and Soft Feature Aggregation (GSFA): Utilizing a Temperature-Scaled Cosine Attention mechanism, GSFA allows cluster centers to attend to every pixel globally. This captures long-range dependencies that local clustering misses.
- Hard and Shared Feature Dispatching (HSFD): To maintain interpretability, pixels are explicitly assigned to specific clusters ("hard assignment"). Efficiency is maintained by sharing these assignment rules across multiple blocks within the same stage.
- Improved Cluster Pooling (ICP): By redesigning the pooling block to operate in "similarity space" and using a two-layer MLP for feature projection, the authors resolved the gradient disconnection issues found in earlier models.
Key Results
CLUENet achieves a superior balance of accuracy and efficiency on standard benchmarks:
- CIFAR-100: Achieved 76.55% Top-1 accuracy, outperforming the previous best clustering model (CoC) by 4.63%.
- Mini-ImageNet: The base version reached 82.44% Top-1 accuracy, significantly surpassing ResNet18 (76.95%) and EfficientFormer (79.75%) within similar parameter budgets.
Beyond metrics, CLUENet offers "free" interpretability. Visualizing the clusters reveals that the model naturally groups foreground objects separately from backgrounds, providing a level of transparency that typically requires post-hoc tools like Grad-CAM in other architectures.
Conclusion and Future Work
CLUENet demonstrates that clustering is a viable and highly interpretable alternative to traditional vision backbones. While its current throughput (FPS) is lower than some highly optimized CNNs, its ability to "see" organic shapes through dynamic clustering opens new doors for transparent AI. Future research will focus on improving semantic flow across stages and applying the architecture to dense prediction tasks like object detection.
Summary updated