The Neural Net Only Looks Closely at the Beak: Compute Drops 44% at the Same Accuracy
Telling two birds apart takes only a beak and a couple of wing spots, yet a ViT at 448 px processes the entire frame, including the branch and the sky. FoVT looks at the image at 224 px, uses an attention map to pick 64 of the 256 cells, and rereads only those at 448 px. Compute drops from 31.61 to 17.68 GMACs (billions of multiply-add operations), a 44% cut, while accuracy stays at the level of full 448. When images contain a lot of background, it pays to enable high resolution selectively.
AI-processed from Habr AI; edited by Hamidun News
Imagine you need to tell apart two very similar birds. The shape of the beak and a pair of spots on the wing decide the answer, while the branch, the sky, and the leaves are useless for it. But a standard Vision Transformer (ViT, a popular architecture for image recognition) processes the entire frame at full resolution at 448 pixels.
Moving from 224 to 448 px quadruples the number of patches (the small squares the image is cut into): the MLP and projection layers get 4 times more expensive, and the attention mechanism gets 16 times more expensive. Researchers Boris Kryuk and Mohamed Sobhy from HKUST tested when "taking a closer look" actually pays off. Their FoVT model cuts compute from 31.
61 to 17.68 GMACs (billions of multiply-add operations), which is 56% of the original, or a 44% reduction, at the accuracy of a standard ViT-448. The code is open source under the Apache-2.
0 license.
How FoVT works
The idea is borrowed from the human eye: we see sharply only with the central fovea, and the brain uses the blurry periphery to decide where to look next. The FoVT (Foveated ViT) model works in four steps.
First, a DINOv2 ViT-S/14 backbone with registers processes the image at 224 px (the glance step, a "quick look"). Then, using the attention of the CLS token from the last block, it selects the K most interesting cells out of 256. These cells are cut again from the original at 448 px: each one becomes 4 smaller tokens and replaces the coarse one. Finally, the same backbone with the same weights classifies the mixed sequence.
There is no policy network, no trainable gate, no RL, and no distillation here. There are only two new parameters: scale embeddings initialized to zero. The sequence length is fixed, so no padding is needed. At K=64, the cost is 17.68 GMACs versus 31.61 for uniform 448.
What 250 training runs showed
The authors ran 5 datasets (CUB, NABirds, FGVC-Aircraft, Stanford Cars, Stanford Dogs), with 2 seeds and 26 configurations for each, using paired statistical tests.
First, attention works out of the box for knowing where to look. It consistently beats random cell selection by up to 2.45 percentage points of accuracy, and by up to 4.18 pp on the smallest objects. Without bounding-box labels, 83–99% of the selected cells land on the object. The credit goes to DINOv2's self-supervised pretraining and to registers, which remove artifacts from the attention maps.
Second, the complex components did not pay off. The authors ported the closest analogue, CF-ViT, onto the same backbone and training recipe. At equal cost, FoVT does not lose to it, but neither has a significant advantage: it is parity. The feature reuse mechanism, which mixes features from the coarse pass into the second one, brought no benefit, and at the head's learning rate it cost 1–3 pp of accuracy.
Third, confident images do not need refinement. If after the quick look the model is already confident in its answer, the second pass is skipped. This filters out 19–24% of frames, average accuracy does not change, and the cost works out to that of uniform-336. Under a fixed budget, such a confidence gate is more effective than reducing K: a gain of 0.14 to 1.56 pp. With a gate that refines 81% of images, the cost is 49% of uniform-448.
There is a practical trap: the threshold cannot be calibrated on training data. The model is more confident there (0.87–0.90 versus 0.73–0.79 on test), so a threshold meant to refine 81% of images in fact refines 90–93%, and the budget overshoots. With a held-out 10% of the data, the miss stays within 2.7%.
The inconvenient result and where this applies
FoVT beats the plain uniform-448 on NABirds, Aircraft, and Cars. But the authors trained a control model: uniform-448 with the same auxiliary glance loss. Against it, there is no significant difference on four of the five datasets, and on Aircraft FoVT trails by 0.53 pp. The conclusion: foveation saves compute, while the accuracy gain comes almost entirely from the glance loss, which acts as a regularizer and improves ordinary models too.
The advantage at equal cost depends on two factors: whether attention beats random selection, and whether accuracy keeps rising above 336 px. Birds and aircraft satisfy both conditions. Dogs do not show a gain: localization is good (93% of cells land on the dog), but breed is visible even at medium resolution, and the ImageNet source images are of low quality, so 448 px adds interpolation rather than detail.
What should practitioners do? If your images have 90% of their area taken up by background, such as camera-trap photos, products on shelves, or defect inspection, the approach is worth testing. The authors' hypothesis is that it works where most pixels are context rather than evidence, but they did not test it on such data. Validation covered only fine-grained subspecies classification and a single small backbone, ViT-S. The code lives in one file, fovt.py, with train, eval, calibrate, and bench modes, and custom datasets are supplied in the ImageFolder format. If accuracy matters most, add the glance loss to ordinary training. If inference cost matters most, use a confidence gate and calibrate the threshold on a held-out set.
- Dec 2, 2026Over-Refusal in LLMs: How to Measure Unnecessary Refusals on 30–50 of Your Own Prompts in One Evening
- Dec 2, 2026Anthropic delays its next model training by six weeks as its CEO calls for five AI laws
- Dec 2, 2026Anthropic Delays Training of Its Next Flagship Model by 6 Weeks Over Safety Concerns
- Dec 2, 2026Bankrupt Character.AI Is Selling Chat Logs of 21 Million Accounts to an Anonymous Buyer for $10 Million
Key Questions Answered
How FoVT works?
The idea is borrowed from the human eye: we see sharply only with the central fovea, and the brain uses the blurry periphery to decide where to look next. The FoVT (Foveated ViT) model works in four steps. First, a DINOv2 ViT-S/14 backbone with registers processes the image at 224 px (the glance step, a "quick look"). Then, using the attention of the CLS token from the last block, it selects the K most interesting cells out of 256.
What 250 training runs showed?
The authors ran 5 datasets (CUB, NABirds, FGVC-Aircraft, Stanford Cars, Stanford Dogs), with 2 seeds and 26 configurations for each, using paired statistical tests. First, attention works out of the box for knowing where to look. It consistently beats random cell selection by up to 2.45 percentage points of accuracy, and by up to 4.18 pp on the smallest objects. Without bounding-box labels, 83–99% of the selected cells land on the object.
What are the key details on The inconvenient result and where this applies?
FoVT beats the plain uniform-448 on NABirds, Aircraft, and Cars. But the authors trained a control model: uniform-448 with the same auxiliary glance loss. Against it, there is no significant difference on four of the five datasets, and on Aircraft FoVT trails by 0.53 pp. The conclusion: foveation saves compute, while the accuracy gain comes almost entirely from the glance loss, which acts as a regularizer and improves ordinary models too.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
