TL;DR
Vision Graph Neural Networks (ViGs) offer flexible image representation, but standard graph construction via $k$-nearest neighbors or dense linear stepping is computationally prohibitive and prone to over-squashing. This paper introduces Logarithmic Scalable Graph Construction (LSGC) and a hybrid CNN-GNN model called LogViG, which builds long-range graph connections that scale logarithmically with image resolution while incorporating a multi-scale high-resolution shortcut. The resulting models outperform competing ViGs, CNNs, and ViTs on ImageNet-1K and ADE20K with fewer parameters and lower computational cost.
What Problem Does This Paper Address?
Unlike standard Convolutional Neural Networks (CNNs, which use rigid sliding windows) and Vision Transformers (ViTs, which process patch sequences), Vision GNNs represent images as flexible graphs where patches are linked based on feature similarity or spatial relationships. This enables models to connect distant but semantically related regions (e.g., two parts of a bicycle).
However, ViGs face two major bottlenecks:
- Expensive dynamic graph construction: Standard ViGs rely on $k$-Nearest Neighbors ($k$-NN) graph attention, which requires sorting and tensor reshaping operations that scale poorly to high-resolution images.
- Over-squashing in static graphs: Prior efficient alternatives, like Sparse Vision Graph Attention (SVGA), connect patches across a fixed linear grid. As image resolution grows, SVGA's connections increase quadratically, causing over-squashing (compressing an excessive amount of incoming information into a single fixed-size node representation). Fixing the connection count, on the other hand, compromises global receptive fields.
Methods
The authors introduce two core techniques embedded within an efficient hybrid vision architecture:
-
Logarithmic Scalable Graph Construction (LSGC): Instead of linking tokens linearly across rows and columns, LSGC calculates the "bit-depth" of the input dimensions (i.e., $\lceil \log_2(\text{dimension}) \rceil$). It then expands outward in four directions (up, down, left, right) at exponential step sizes ($K^i - 1$, where $K$ is the expansion rate), wrapping around image boundaries when reaching the edge. This provides exponential spatial reach across the whole image with only $\mathcal{O}(\log N)$ connections per token, avoiding over-squashing while drastically reducing shortest path distances across feature maps.
-
Max-Relative Graph Convolution (MRConv): Features from expanded neighbor positions are aggregated using an element-wise max operation on relative token differences ($X - X_{\text{neighbor}}$), concatenated with the original feature tensor, and projected through a standard $1 \times 1$ 2D convolution.
-
Multi-Scale High-Resolution Shortcut (HRS): Alongside a 4-stage low-resolution backbone consisting of interleaved Mobile Inverted Bottleneck Convolutions (MBConv) and LSGC blocks, the authors add a high-resolution shortcut branch. The high-resolution features are fused into the final low-resolution stage via bilinear interpolation and $1 \times 1$ pointwise convolutions.
-
Network Sizing Strategy: The authors demonstrate that deeper and narrower stage configurations perform better for LogViG than shallower and wider variants.
Datasets
The authors evaluate their method on two standard vision benchmarks:
- ImageNet-1K: Evaluated on $224 \times 224$ images for image classification (trained from scratch for 300 epochs with AdamW and RegNetY-16GF distillation).
- ADE20K: Evaluated on scene parsing and semantic segmentation (150 categories, $512 \times 512$ resolution) using a Semantic FPN decoder head initialized with ImageNet pre-trained weights.
No new datasets or benchmarks were introduced.
Key Insights and Ideas
- Logarithmic reach beats linear dilation: At a resolution of $56 \times 56$, a square lattice has an average shortest path length of 37.33 hops. LSGC reduces this to 4.36 hops using only logarithmic connections, approaching SVGA's 2.89 hops while pruning redundant links that induce over-squashing.
- Graph convolutions belong in all stages: While several prior efficient ViGs restrict graph convolutions to the final stages to minimize compute overhead, LSGC is lightweight enough to be deployed across all four stages. Ablations show that utilizing graph convolutions across all stages raises top-1 accuracy from 78.8% to 79.9%.
- Dual-resolution fusion enhances graph representations: Incorporating a dedicated high-resolution shortcut adds marginal parameters (+0.1M) but yields consistent accuracy gains by retaining fine-grained spatial information lost during repeated downsampling.
Key Results
- ImageNet-1K Classification:
- Ti-LogViG (8.1M params, 1.1 GMACs) achieves 79.9% top-1 accuracy, outperforming PViG-Ti (78.2%, 10.7M params, 1.7 GMACs) and MobileViG-S (78.2%, 7.2M params, 1.0 GMACs).
- S-LogViG (13.9M params, 1.9 GMACs) achieves 81.5% top-1 accuracy, exceeding HRViT-b1 (80.5%, 19.7M params) and matching DeiT-S (81.2%) with 38% fewer parameters.
- B-LogViG (30.5M params, 4.6 GMACs) reaches 83.6% top-1 accuracy, surpassing HRViT-b3 (82.8%, 37.9M params, 5.7 GMACs).
- ADE20K Semantic Segmentation:
- S-LogViG achieves 44.1 mIoU, outperforming MobileViG-M (41.8 mIoU), EfficientFormer-L1 (38.9 mIoU), and PoolFormer-S12 (37.2 mIoU).
- B-LogViG achieves 46.8 mIoU, beating FastViT-SA36 (42.9 mIoU) and EfficientFormer-L3 (43.5 mIoU) with comparable or lower parameter counts.
Limitations and Future Work
- Fixed Geometric Neighborhoods: Although LSGC efficiently spans long distances, the graph connectivity pattern remains topologically static and axis-aligned (relying on power-of-two spatial offsets and circular wrap-around) rather than dynamically adapting edges based on image content or learned attention.
- Lack of On-Device Latency Benchmarks: While the paper demonstrates reductions in parameter counts and GMACs, actual on-device runtime latency (e.g., on mobile NPUs or GPUs) was not reported.
- Scope of Tasks: Evaluations are limited to standard classification and semantic segmentation; dense object detection and transfer learning to out-of-distribution domains remain unexplored.
Summary updated