Looped Transformer for Efficient Dense Visual Recognition

Sirui Liang1,2 Xuanlong Yu2 Longfei Liu2 Xiaodong Cun1,📪 Xi Shen2
1 GVC Lab, Great Bay University2 Intellindust AI Lab
Object detection
Instance segmentation
Human pose estimation
Achieving exceptional parameter efficiency via looped Transformer.
 Try LoopDVR in your browser! Open Demo (opens in a new tab)

Qualitative results

Method

We present LoopDVR, a general framework that transforms pre-trained dense visual recognition models into more parameter-efficient looped networks.

1Backbone grouping and initialization

We group contiguous backbone layers using their representation similarity and initialize each shared block from the pretrained weights of its group’s final layer.

Looped Inference

The visualization tracks backbone attention and instance segmentation predictions as shared Transformer blocks are reused across logical layers.

Results

Parameters (M)

COCO box AP vs. parameters

LoopDVR Other models

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’s width or depth directly, LoopDVR shares Transformer blocks across selected layers in both the ViT backbone and query decoder, reducing the number of unique parameters while retaining the original computational structure. However, naively sharing parameters can disrupt the distinct representations and functions learned at different depths. To address this challenge, we use internal representations of the pretrained model to identify suitable sharing groups, initialize shared blocks using the pretrained weights of each group’s terminal layer, and introduce lightweight Loop Adapters to retain depth-specific transformations within shared blocks. We further distill visual representations into the looped backbone, integrate it with a looped query decoder, and train the resulting models for downstream dense recognition tasks. Experiments across four model scales demonstrate that LoopDVR achieves the best accuracy–parameter trade-offs in object detection, instance segmentation, and pose estimation with approximately 28% fewer parameters. Notably, LoopDet-S achieves 50.9 box AP with only 7.0M parameters, highlighting the effectiveness of parameter sharing in compact models.

Citation

If you find LoopDVR useful for your research, welcome to cite our work using the following BibTeX:

Acknowledgments

We thank Yihao Zhen for valuable feedback and assistance in improving the manuscript, and Yunkang Tao for helpful comments on an earlier draft.

Qualitative results

Qualitative results