arXiv:2610.34563cs.CVOct 2026

Manuscript Offprint

arXiv:2610.34563

Recursive CLIP: Vision-Language Distillation with Looped Transformer Blocks

Szymon Mazurek, Alberto Presta, Michał Byra

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Contrastive vision–language models such as CLIP typically rely on independently parameterized transformer blocks across depth. We investigate the extent to which these blocks can instead be reused recurrently while preserving the transferable capabilities of CLIP. We study recursive transformer backbones in which a small set of N transformer blocks is applied M times per forward pass. By holding N⋅MN \cdot M fixed to the depth of a standard ViT-B, our models preserve computational depth while progressively increasing parameter sharing. We consider two recursive CLIP model families: rCLIP, where only the vision encoder is recursive, and r2CLIPr^{2}CLIP, where recurrence is also introduced in the text encoder. We study these models under both direct contrastive training and through knowledge distillation from a strong ViT-B/16 teacher pretrained on DFN-2B, using the substantially smaller CC3M and CC12M datasets. We evaluate the resulting models on zero-shot classification and cross-modal retrieval, and further study their adaptability through few-shot learning, visual grounding, and concept unlearning. Our results show that CLIP can tolerate substantial recurrent block reuse, although its effect depends on the encoder and downstream task. Recurrence also provides parameter efficiency by construction, since fewer distinct transformer blocks need to be stored and adapted. Our results establish recurrent block reuse as a practical design space for vision–language models and highlight its implications for knowledge transfer, downstream adaptation, and parameter efficiency.

1. Introduction

Vision–language models have become a central paradigm for learning transferable representations from paired visual and textual data. Among them, CLIP [22] has demonstrated strong transfer across a wide range of downstream tasks.

Figure

Figure 1. Accuracy–size trade-off of recursive CLIP models. Zero-shot ImageNet top-1 accuracy versus total parameter count for rCLIP and r²CLIP, compared with the DFN-2B ViT-B/16 teacher and distilled Reference CLIP. The parameter axis is reversed, with smaller models shown to the right.

Its vision and text encoders typically rely on transformer architectures [30] composed of multiple independently parameterized blocks. While this design provides substantial representational capacity, it remains unclear to what extent distinct parameters are required at every depth to preserve the transferable capabilities of CLIP.

Recursive, or looped, transformers provide an alternative by repeatedly applying a smaller set of shared blocks across depth [4]. In this work, we investigate the extent to which recurrence can be introduced into CLIP while preserving its vision–language capabilities. This provides a controlled way to study the effect of depth-wise parameter sharing on representation quality, knowledge transfer, and downstream adaptation. This parameter sharing also improves parameter efficiency, as increasing recurrence reduces the number of unique transformer blocks in the model.

We construct recursive CLIP models by replacing the L transformer blocks of an encoder with N distinct blocks executed M times, such that N⋅M=LN \cdot M = L. We consider two model families: rCLIP, where only the vision encoder

  • Work done during a PhD internship at Samsung AI Center Warsaw.

is recursive, and r2CLIPr^{2}CLIP, where both the vision and text encoders are recursive. By varying N, we study different degrees of recurrence while keeping the computational depth of the corresponding ViT-B architecture fixed. We study these models both under direct contrastive training and through knowledge distillation from a strong DFN-2B ViT-B/16 teacher, allowing us to investigate how effectively representations learned by a conventional CLIP model can be transferred to recursive students.

Beyond standard zero-shot classification and cross-modal retrieval, we investigate how recurrence affects downstream adaptation through few-shot learning, visual grounding, and concept unlearning. We also examine whether distillation objectives developed for conventional transformer students remain suitable when the same blocks are reused across depth. The parameter efficiency resulting from the recurrence is illustrated in Fig. 1, which relates model size to zero-shot ImageNet performance for rCLIP and r2CLIPr^{2}CLIP. Block reuse also extends naturally to parameter-efficient adaptation, since adapters attached to shared blocks are reused across recurrent executions.

Our contributions are as follows:

• We systematically study recursive CLIP architectures based on depth-wise block reuse, considering both vision-only and joint vision-text variants, and investigate how extensively recurrence can be introduced into CLIP while preserving its vision-language capabilities.

• We investigate distillation from conventional CLIP into recursive students, analyzing how recurrence and vision/text sharing affect knowledge transfer.

• We evaluate recursive and non-recursive distilled CLIP models beyond standard zero-shot classification and retrieval, extending the analysis to few-shot learning, visual grounding, and concept unlearning.

• We highlight the parameter and adaptation efficiency that follows naturally from recurrent block reuse, reducing both stored backbone parameters and the number of distinct adapters required by methods such as LoRA.

References (42)