LoopDVR: Looped Transformer for Efficient Dense Visual Recognition

Sirui Liang, Xuanlong Yu, Longfei Liu, Xiaodong Cun, Xi ShenarXiv 2026

TL;DR

Shrinking deep Vision Transformers for edge devices usually means chopping off layers or making them narrower—sacrificing the model's "thinking" depth. LoopDVR takes a clever detour: it keeps the full computational depth intact by looping signals through shared Transformer blocks in both the backbone and decoder. By carefully grouping compatible layers and adding lightweight adapters, it trims parameter counts by ~28% while holding onto—and sometimes even beating—the accuracy of full-sized dense visual recognition models.

What Problem Does This Paper Address?

Dense Visual Recognition (DVR)—tasks like object detection, instance segmentation, and human pose estimation where a model must understand images down to the pixel or keypoint—thrives on Transformer architectures. However, fitting these parameter-heavy giants onto memory-constrained edge devices (like drones or AR headsets) is tough.

Traditionally, if you want fewer parameters, you make the network shallower or narrower, which directly hurts its representational capacity. An intriguing alternative is looped Transformers, which reuse the exact same layer weights multiple times in a recurrent loop—saving memory while keeping the computation deep. While looping has worked for simple image classification, applying it to dense recognition has been a stumbling block. Prior attempts either ignored the massive Vision Transformer (ViT) backbone entirely (only looping the decoder) or suffered from training instability because naively forcing different depths of a network to share one set of weights scrambles the distinct, hierarchical features the network needs to build.

Methods

LoopDVR is a framework for converting pretrained Transformer-based DVR models (specifically building on the EdgeCrafter family) into compact, looped networks without losing their learned wisdom. The authors tackle two core questions: where to share weights, and how to do it without breaking the model.

Figure 2. Overview of LoopDVR. Given a dense recognition model, (a) Stage 1 groups the layers of the pre-trained ViT backbone based on inter-layer representation similarity and initializes each looped backbone block using the weights of its group’s terminal layer. (b) Transformer block parameters are shared within each group, while each layer has a Loop Adapter to preserve depth-specific transformations. (c) Stage 2 distills the looped ViT using a DINOv3 teacher. (d) Stage 3 post-trains the resulting architecture for dense recognition, combining the looped ViT, the hybrid encoder and the looped decoder.
  • Where to Loop (Representation-Based Grouping): Instead of arbitrarily tying layers together, the authors measure the cosine distance between layer outputs in a pretrained model. Consecutive layers doing similar transformations are bundled into a single weight-sharing group. Crucially—and unlike classification models—DVR models construct multi-scale features using the final two backbone layers, so LoopDVR leaves the very last backbone block completely independent.
  • How to Loop (Group-End Initialization & Loop Adapters): When collapsing a group of pretrained layers into one shared block, which weights do you keep? LoopDVR copies the weights from the terminal (last) layer of each group ("group-end initialization"). Next, to let each pass through a shared block retain its own depth-specific flavor, they insert a tiny, unique Loop Adapter (LayerNorm + a 2-layer MLP) after each loop iteration, initialized as a clean identity mapping so it doesn't shock the pretrained weights at the start of training.
  • Distillation & Unified Looping: The looped ViT backbone is healed via knowledge distillation from a frozen DINOv3 teacher (aligning only the final-layer features). Finally, it is paired with a Transformer query decoder that also uses grouped block-looping and Loop Adapters, and trained end-to-end for downstream tasks.

Datasets

No new benchmarks are introduced; the authors rely on standard, battle-tested vision datasets:

  • ImageNet-1K & COCO train2017 (unlabeled): Used during Stage 2 to distill visual representations from the teacher into the looped ViT backbone.
  • COCO (train2017 and val2017): Used for supervised task-specific training and evaluation across object detection, instance segmentation, and human pose estimation.

Key Insights and Ideas

  • Networks naturally cluster their computations: Heatmaps of layer-to-layer similarity reveal crisp block-diagonal structures in both the ViT backbone and the query decoder. Adjacent layers naturally form " neighborhoods" of similar representations, practically begging to be looped.
Figure 3. Grouping via layer-wise representation similarity. Cosine-distance heatmaps of layer representations from (a) the distilled backbone and (b) the post-trained decoder (ECDet-S [37] as an example). Low-distance regions indicate that pairs of nearby layers have similar representations. Boxes mark the selected groups.
  • The last layer of a group knows best: Before any retraining, initializing a shared block with the last layer of its pretrained group keeps attention sharply focused on target objects, whereas using the first layer or averaging weights washes out the attention maps.
  • Protect the finale: Leaving the final ViT block unshared yields a +1.3 AP jump over uniform grouping. Because dense tasks fuse the penultimate and final layers for multi-scale awareness, giving that last layer dedicated parameters prevents a representational bottleneck.
  • Less supervision during distillation is more: Rather than forcing intermediate looped layers to mimic intermediate teacher layers (as prior classification methods like Raptor and MiniViT do), only supervising the final output layer beats those layer-wise distillation strategies by ~6 AP. Giving the looped blocks freedom in how they reach the final representation works much better.

Key Results

Instantiated across four model scales as LoopDet, LoopSeg, and LoopPose, LoopDVR sets state-of-the-art parameter–accuracy Pareto frontiers across all three tasks, cutting parameters by ~28% and peak GPU inference memory by 25–28% compared to non-looped EdgeCrafter baselines:

Parameter vs. accuracy trade-offs across detection, segmentation, and pose estimation.
  • Object Detection: LoopDet-S hits 50.9 box AP on COCO with just 7.0M parameters (down 29% from 9.8M). At the large scale, LoopDet-X reaches 57.5 AP at 35.1M parameters, outperforming competing compression techniques like structured pruning (56.0 AP), low-rank decomposition (55.8 AP), and neuron merging (55.4 AP).
  • Instance Segmentation: Every scale of LoopSeg matches or beats its uncompressed baseline. Remarkably, LoopSeg-L achieves 48.1 mask AP—a +1.0 AP improvement over its reference model while using 28% fewer parameters (24.1M vs. 33.6M).
  • Human Pose Estimation: LoopPose-S achieves 68.2 AP at 7.7M parameters, and LoopPose-X hits 74.3 AP at 36.3M parameters, consistently leading peers in the same parameter budget.

Limitations and Future Work

While the paper does not include a dedicated limitations section, an inherent trade-off is visible right in the results tables: LoopDVR compresses parameters and memory, not compute. Because data still travels through the full computational depth plus the newly added Loop Adapters, GFLOPs and inference latency actually tick up slightly compared to the uncompressed baselines (for instance, LoopDet-S runs at 53.0 GFLOPs and 1.62 ms latency vs. ECDet-S at 50.0 GFLOPs and 1.51 ms). Future work is not explicitly discussed in the main text.

Summary updated

Abstract

We propose LoopDVR, a framework for converting pretrained Transformer-based dense visual recognition models into parameter-efficient looped networks. Rather than reducing the network width or depth directly, LoopDVR reuses Transformer blocks across layers in both the ViT backbone and Transformer decoder, reducing the number of parameters while retaining the original computational structure. However, naively sharing parameters can disrupt the distinct transformations learned at different depths. To address this challenge, we identify suitable sharing groups based on inter-layer representation dissimilarity and keep the final backbone block independent for multi-scale feature construction. We then initialize each shared backbone block with the pretrained weights of its group's terminal layer to better preserve the learned representations. An independent Loop Adapter at each layer further helps retain depth-specific transformations within shared blocks. Subsequently, we distill visual representations into the looped backbone and integrate it with a looped decoder for task-specific training. Experiments demonstrate that LoopDVR achieves the best accuracy--parameter trade-offs across dense recognition tasks. Compared with the reference models, it reduces parameters by approximately 28% while maintaining competitive accuracy. Notably, LoopDet-S achieves 50.9 box AP with only 7.0M parameters, highlighting its effectiveness in compact models.
BibTeX
@misc{liang2026loopdvr,
  author = {Sirui Liang and Xuanlong Yu and Longfei Liu and Xiaodong Cun and Xi Shen},
  title = {{LoopDVR: Looped Transformer for Efficient Dense Visual Recognition}},
  year = {2026},
  eprint = {2611.32067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32067},
}
Figure