Omni-Flex GraphFormer: Parallel Fusion of Local Graph Aggregation and Global Attention Across Image Resolutions
Wiam Charchaoui, Mohammed Barrouch, Azedine Ouhmid, Mohamed Barhdadi, Karim El Moutaouakil
Key points
From the paper's conclusion- We propose the Omni-Flex GraphFormer, which applies a graph branch (OMNIVIG: max-relative aggregation over a fixed 3×3 pixel neighbourhood) and a Transformer branch (FLEXIVIT: global multi-head self-attention) in parallel and sums their outputs.
Abstract
Graph neural networks (GNNs) capture local image structure with few parameters, whereas Vision Transformers (ViTs) model global context at a higher computational cost. We propose the Omni-Flex GraphFormer, which applies a graph branch (OMNIVIG: max-relative aggregation over a fixed 3×3 pixel neighbourhood) and a Transformer branch (FLEXIVIT: global multi-head self-attention) in parallel and sums their outputs. Because each baseline is the hybrid with one branch removed, comparing the three models on eight datasets from 8×8 to 96×96 pixels, under equal training budgets and over three seeds, is a controlled branch ablation. Global attention is decisive: the hybrid exceeds OMNIVIG in test macro-F1 on every dataset and in all 24 runs, by 3.7 to 15.1 points (Wilcoxon test, p=0.0078). Against FLEXIVIT, the hybrid has the best mean F1 on six datasets and a 40–62% smaller seed-to-seed spread on CIFAR-10 and CIFAR-100, but the difference is not significant (p=0.38). The graph branch adds only 0.5–3.1% to the number of multiply–accumulate operations, and under warmed-up timing, both models run at the same speed, whereas unwarmed timing overstates latency by up to 15×. Under Gaussian noise, the summed hybrid degrades like the graph branch, which motivates gated or attention-guiding fusion.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Hierarchical Graph MetanetworksarXiv · 2026
- Keeping Parts Honest: Isolated Part Graphs for Faithful Vision Transformer ExplanationsarXiv · 2026
- CoViG: Coarsened Vision GNN for Image ClassificationarXiv · 2026
- Efficient Edge-aware Attention Network for Graph GenerationarXiv · 2026
- FG-GraphBench: Benchmarking and Enhancing Fine-Grained Visual Understanding with Multimodal Scene GraphsarXiv · 2026
- Graph Signal Generation via Graph-Aware Diffusion ModelsarXiv · 2026