Manuscript Offprint
arXiv:2610.34563Recursive CLIP: Vision-Language Distillation with Looped Transformer Blocks
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 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 , 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 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 . 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 , 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 . 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.
Recursive transformers and parameter sharing. Recurrence provides an alternative to conventional depth by repeatedly applying shared transformations. The Universal Transformer applies transformer layers recurrently across computational steps [4], while ALBERT demonstrates extensive cross-layer parameter sharing in language models [17], which recent work relaxes via loop-specific LoRA adapters [1]. More recent looped transformers study repeated latent computation in reasoning, algorithmic tasks and in-context learning [9, 26, 36] and in scaling effective depth at inference time [8].
Recurrence and weight sharing have also been explored in vision transformers (ViTs). SReT introduces recursive weight sharing across depth and combines it with sliced group self-attention and non-shared nonlinear projection layers to improve parameter utilization while controlling the computational cost of recurrence [28]. Its main architecture therefore does not simply repeat an unchanged standard ViT block, although naive recursion is also studied. MiniViT similarly shares transformer parameters while introducing lightweight layer-specific transformations to preserve representation diversity [41]. More restrictive forms of recurrence are studied in bViT, where standard transformer blocks are directly reused across the effective ViT depth without additional layer-specific transformations [2], and in Raptor, which constructs recurrent approximations of pretrained DINO vision through distillation [12]. Together, these works show that recurrent computation can substantially reduce layer-specific parameterization in ViTs.
Weight sharing has received less attention in vision-language models. Gao et al. [7] study cross-layer and cross-modal weight sharing together with pruning in grounding-oriented vision-language transformers, while R-MMA [5] shares recurrent multimodal adapters across layers of frozen CLIP image and text encoders without making the CLIP backbone recurrent. In contrast, we study recurrence directly in the CLIP encoders. We vary the number of distinct blocks and recurrent executions at fixed computational depth, consider both vision-only rCLIP and joint vision-text r²CLIP architectures, and investigate their behavior under knowledge distillation and across downstream tasks.

Figure 2. Overview of the experimental approach. (1) A recursive encoder replaces L distinct transformer blocks (A) with N blocks applied M times, N·M = L (B), keeping computational depth fixed while reducing stored parameters. (2) Recursive (rCLIP, r²CLIP) and non-recursive students are distilled from a frozen DFN-2B ViT-B/16 teacher on CC3M + CC12M. (3) The resulting models are evaluated on classification (zero- and few-shot adapted), cross-modal retrieval, visual grounding and concept unlearning.
3. Methods
As shown in Fig. 2, we study recursive CLIP architectures and their downstream use. Sect. 3.1 introduces the vision-only and vision-text recursive variants, Sect. 3.2 describes the teacher–student distillation framework, and Sect. 3.3 presents the downstream evaluation setup.
3.1. Recursive transformers
Following prior works on parameter sharing in depth [2, 12, 28], we develop recursive CLIP encoders by replacing the sequence of distinct transformer blocks with a smaller set of blocks that is repeatedly applied. The input tokenization and output layer are kept identical to those of the standard CLIP architecture. We define the recursive transformer core as a sequence of distinct blocks:
whose parameters are shared across recurrent applications. Given the initial token representation:
where denotes the tokenizer for input , the recursive computation is given by:
We point out that, in contrast to previous works, we also consider multiple distinct blocks applied recursively, i.e., ; this allows us to explore the trade-off between performance and model memory footprint. We highlight that no iteration-specific embeddings are introduced, so successive applications of differ only through their input activations. The final representation is obtained as , where denotes the standard CLIP output mapping. We choose and such that , where is the number of transformer blocks in the corresponding reference encoder. For the ViT-B/16 CLIP architecture, both the vision and text encoders contain blocks. We therefore consider . Since all configurations execute 12 transformer blocks per forward pass, they are FLOP-matched to the non-recursive reference while requiring fewer distinct transformer parameters. This reduction in model size is particularly relevant for deployment on memory-constrained edge devices, where storing large vision–language models can be prohibitive. Table 1 reports the resulting parameter counts. We denote each configuration as , where is the number of distinct blocks and the number of iterations. For example, 1b12i denotes one block applied 12 times, while 6b2i denotes six blocks applied twice.
Table 1. Parameter counts across rCLIP and r²CLIP configurations. Each model uses 17.57 visual and 2.98 text GMACs at resolution and 77-token context.
| CLIP Model | Visual [M] | Text [M] | Total [M] |
|---|---|---|---|
| Ref. CLIP | 86.19 | 63.43 | 149.62 |
| rCLIP 1b12i | 8.22 | 63.43 | 71.65 |
| rCLIP 2b6i | 15.31 | 63.43 | 78.74 |
| rCLIP 3b4i | 22.40 | 63.43 | 85.83 |
| rCLIP 4b3i | 29.48 | 63.43 | 92.91 |
| rCLIP 6b2i | 43.65 | 63.43 | 107.08 |
| r2CLIP 1b12i | 8.22 | 28.75 | 36.97 |
| r2CLIP 2b6i | 15.31 | 31.90 | 47.21 |
| r2CLIP 3b4i | 22.40 | 35.05 | 57.45 |
| r2CLIP 4b3i | 29.48 | 38.20 | 67.68 |
| r2CLIP 6b2i | 43.65 | 44.51 | 88.16 |
3.2. Model training and knowledge distillation
We rely on knowledge distillation [11] (KD), adapting the CLIP-KD framework [35] to distill a CLIP ViT-B/16 trained on DFN-2B (Teacher) [6] into two recursive CLIP families, replacing either the vision encoder alone (rCLIP) or both encoders (r²CLIP), on the combined CC3M [27] and CC12M [3] datasets, totaling 13,874,493 image-caption pairs. As a reference, we also distill into a randomly initialized ViT-B/16 CLIP model (Reference CLIP).
Following CLIP-KD [35], we consider several forms of teacher supervision in addition to the standard CLIP contrastive objective. Feature Distillation (FD) directly matches the final image and text embeddings of the teacher and student. Contrastive Relational Distillation (CRD) instead matches their cross-modal similarity distributions over the mini-batch. Interactive Contrastive Learning (ICL) contrasts student image features against teacher text features and, symmetrically, student text features against teacher image features. We additionally evaluate Activation Matching (AM) [24], which aligns intermediate vision representations with those of the teacher. The general objective is as follows:
Here, is the standard symmetric image-text contrastive loss. Full definitions of all terms are provided in the Supplementary Material. We select the distillation terms and their weights in Sect. 4.2.
AM also requires a correspondence between intermediate student executions and teacher layers. For block in recursive iteration m, we assign the global execution index
This gives an index-preserving correspondence between the student executions and the teacher layers. Unlike in a conventional transformer, a recursive block is matched to multiple teacher layers, . This alignment therefore assumes that successive applications of a shared block traverse representations corresponding to the teacher's layer-wise trajectory. We examine this assumption empirically in Sect. 4.2; the full AM definition is provided in the Supplementary Material.
We otherwise follow the training setup of [35], using AdamW [19] with a peak learning rate of , 10k warmup steps followed by cosine decay, and an effective batch size of 1024. Models are trained for 32 epochs. Additional training details are provided in the Supplementary.
3.3. Downstream tasks
Zero-shot classification and retrieval. We report zero-shot top-1 accuracy on ImageNet-1k [25] and its distribution-shifted variants (ImageNet-V2 [23], ImageNet-Rendition [10], ImageNet-Sketch [31]), following the standard CLIP protocol with an 80-prompt template ensemble [22, 35]. We additionally report Recall@1 for text-to-image and image-to-text retrieval on Flickr30k [37] and MSCOCO [18], using the splits of [14].
Few-shot learning for classification. We adapt each backbone with CLIP-LoRA [39] at 16 shots per class on ten standard classification benchmarks, following the original recipe. LoRA adapters are attached to every distinct block of the recursive core and shared across its iterations, exactly as the frozen weights are. Because CLIP-LoRA uses a single prompt template rather than the 80-template ensemble, the zero-shot numbers reported alongside these results are slightly lower than those of Sect. 4.3; full adaptation details are given in the Supplementary Material.
Visual grounding. We adapt each backbone to visual grounding using HiVG [34] on RefCOCO, RefCOCO+[38], RefCOCOg[20], ReferItGame [15], and Flickr30k Entities [21], reporting top-1 accuracy at IoU ≥ 0.5. Since HiVG's cross-modal bridges and LoRA curriculum are defined with respect to distinct transformer layers, we instead attach them to execution steps and to the N distinct blocks respectively, so recursive backbones remain directly comparable to the non-recursive baseline. Full adaptation details are given in the Supplementary.
Unlearning. We evaluate concept unlearning using DIET [16], a retain-data-free method that removes a class via LoRA adapters attached to the vision encoder, again one per distinct block. We report accuracy on the forget class ( ) and on the full test set ( ), before and after unlearning, averaged over five seeds with a different randomly drawn class per seed. Full training and adaptation details are given in the Supplementary Material.
Reference methods. In all downstream adaptation experiments (few-shot classification, grounding and unlearning), we additionally evaluate three non-recursive CLIP models alongside the recursive backbones: the OpenAI ViT-B/16 checkpoint, which is the standard starting point in the methods we adapt, our Teacher model, and the non-recursive Reference CLIP we distilled from the teacher.
4. Experiments
We organize the evaluation in three stages. We first train the full block/iteration grid directly under a CLIP objective, with no teacher, to characterize the intrinsic behavior of recursive backbones. We then establish the distillation procedure and train the same configurations by distilling a DFN-2B ViT-B/16 teacher. We measure how much of the teacher's transferable representation each configuration recovers. Finally, we evaluate the distilled checkpoints on downstream tasks. We report both the rCLIP and the r²CLIP performance scores for various block/iteration configurations.
tions, and compare against a FLOP-matched non-recursive ViT-B/16 CLIP model. For brevity, in the downstream task evaluations we provide the results only for 1b12i, 3b4i, and 6b2i to highlight relevant trends. Extended results for all configurations can be found in the Supplementary.
4.1. Baseline CLIP training
We first investigate recursive models trained without distillation using CLIP objective, with the non-recursive ViT-B CLIP as the reference. Fig. 3 shows zero-shot accuracy on ImageNet and its variants, with cross-modal retrieval. Performance consistently increases with the number of unique blocks. For rCLIP, ImageNet accuracy increases from 32.8% with one block to 36.5% with six blocks, with the largest gain occurring between one and two blocks. Similar saturation is observed on the shifted variants and retrieval tasks, indicating that most of the gap to ViT-B is recovered once several distinct blocks are introduced. Recursive text tower causes little additional degradation despite substantially reducing the parameter count. In the single block configuration, r²CLIP even slightly outperforms rCLIP, while from two blocks onward their performance is nearly identical. This suggests that the text encoder can tolerate extensive weight sharing, with little cost once at least two distinct blocks are retained.
rCLIP r²CLIP -- Ref. CLIP

ImageNet
ImageNet-V2
ImageNet-R
ImageNet-S
MSCOCO I2T
MSCOCO T2I
Flickr I2T
Flickr T2I
(x12)(x6)(x4)(x3) (x2)
(x12)(x6)(x4)(x3) (x2)
Figure 3. Baseline results for different rCLIP and r²CLIP configurations trained directly with the CLIP objective.
4.2. Choosing the distillation objective
We first determine which distillation signals transfer effectively to a recursive student. Each component of Eq. (4) is evaluated individually on top of the CLIP contrastive loss, together with the full CLIP-KD composition of CRD + ICL + FD [35]. We compare the non-recursive Reference CLIP with the most constrained recursive model, rCLIP 1b12i. All runs in this analysis use CC3M, identical optimization settings and a single seed. Table 2 reports the results; weighting experiments are provided in the Supplementary. FD is the strongest individual distillation signal for both architectures. For Reference CLIP, FD reaches 37.0% ImageNet accuracy, nearly matching the 37.3% obtained with the CRD + ICL + FD objective. CRD and ICL are weaker when used individually. The same ordering is preserved for rCLIP 1b12i, although all three objectives transfer less effectively to the recursive student. AM behaves qualitatively differently. On Reference CLIP it is the second strongest individual objective, reaching 31.0% ImageNet accuracy, whereas on rCLIP 1b12i it falls to 15.5%, below CRD, ICL and FD. Under AM, the recursive model retains only 50% of the corresponding non-recursive accuracy, compared with 76–95% for the output-level objectives. This result suggests that layer-wise activation correspondence is poorly suited to strong parameter sharing. Under Eq. (5), the single block of rCLIP 1b12i is required to match twelve distinct teacher layers across its iterations. The poor AM result indicates that the recurrent trajectory does not reproduce the sequence of representations generated by twelve independently parameterized teacher blocks. The pointwise matching of that trajectory therefore acts as an overly restrictive constraint. We leave the detailed explanation of this phenomenon to future research. We consequently exclude AM from the remaining experiments. A subsequent weighting sweep over the output-level objectives selects , , and . This configuration is used for all subsequent distillation experiments, with the experimental details found in the Supplementary Material.
4.3. Distillation results
We next train the same architectures with distillation from the DFN-2B ViT-B/16 teacher, using the loss selected in Sect. 4.2 and Sup. Material. Fig. 4 reports the same eight metrics as Sect. 4.1, together with the teacher and a non-recursive ViT-B reference distilled using the same recipe. Distillation improves all models, while revealing a larger gap between recursive and non-recursive students. With one block, rCLIP and r²CLIP reach 56.7% and 52.0% ImageNet zero-shot accuracy, compared with 72.5% for the distilled ViT-B. Performance increases with the number of unique blocks, with rCLIP reaching 68.8% at six blocks and r²CLIP following the same trend. Unlike in CLIP-only training, rCLIP retains an advantage over r²CLIP, although the Ima-
Table 2. Distillation loss components evaluated on the non-recursive Reference CLIP and the recursive rCLIP 1b12i student. Each objective is added to the primary CLIP contrastive loss with weight 1. CRD, ICL and FD use the weights of [35] (1, 1 and 2000), while AM uses . The top row reports the full CLIP-KD composition. Ret. denotes recursive ImageNet accuracy as a fraction of the corresponding non-recursive accuracy.
| Objective | Ref. CLIP | rCLIP 1b12i | Ret. | ||
|---|---|---|---|---|---|
| IN | IN-R | IN | IN-R | ||
| CRD + ICL + FD | 37.3 | 46.9 | 30.3 | 33.2 | 81% |
| FD | 37.0 | 46.3 | 28.2 | 29.2 | 76% |
| CRD | 26.2 | 28.8 | 22.4 | 22.6 | 86% |
| ICL | 19.3 | 22.3 | 18.4 | 19.6 | 95% |
| AM | 31.0 | 47.5 | 15.5 | 17.0 | 50% |
geNet gap decreases from 4.7 points at one block to 1.1 at six. The difference is even smaller on the shifted datasets, with rCLIP slightly outperforming rCLIP on ImageNet-R at six blocks. A larger gap remains for retrieval: Flickr I2T reaches 85.4 for rCLIP and 83.7 for rCLIP, suggesting that aggressive weight sharing in the text tower affects cross-modal matching more strongly. The distillation recipe is also effective for the non-recursive student, which remains at most 4 percentage points below the teacher in zero-shot classification despite substantially less training data, while slightly surpassing it on cross-modal retrieval.
4.4. Downstream task adaptation
Few-shot learning for classification. Table 3 reports zero-shot and 16-shot adapted accuracy across ten datasets for the recursive and reference models. In the zero-shot setting, performance increases with the number of blocks. For rCLIP, ImageNet accuracy improves from at one block to at six blocks, approaching the Reference CLIP at , with mostly the same monotone trend across the remaining datasets. remains a few points below the corresponding rCLIP configuration on most datasets, although the gap narrows with more blocks, indicating that text-tower recurrence is most costly under strong sharing. The gap to the distilled reference is largest on fine-grained datasets: rCLIP 6b2i retains of the reference accuracy on Food101 (75.39 vs 81.05) and on Aircraft (12.87 vs 16.59), compared with on Caltech101 and Pets. Recursion therefore affects fine-grained recognition more strongly, while coarser classification is largely preserved. Few-shot adaptation with CLIP-LoRA substantially closes the gap to the distilled ViT-B CLIP. At sixteen shots, rCLIP 6b2i reaches 72.13 on ImageNet versus 75.18 for the reference, and comes within one to two points on several datasets, including Flowers (98.09 vs 99.03) and Caltech101 (96.63 vs 97.24). rCLIP clearly outperforms in the 1b12i configuration, but this gap becomes small as more blocks are retained. Overall, the recovery under few-shot adaptation indicates that recursive backbones retain adaptable representations despite their reduced parameter count.

Figure 4. Results for the different rCLIP and rCLIP configurations distilled from the DFN-2B ViT-B/16 teacher.
Visual grounding. Table 4 reports grounding accuracy on RefCOCO, RefCOCO+, RefCOCOg, ReferItGame, and Flickr30k Entities following the HiVG-based adaptation. Unlike the other downstream tasks, grounding shows little difference between recursive and non-recursive models. Most recursive configurations remain within a few points of the distilled reference ViT-B and the OpenAI and DFN-2B checkpoints. On RefCOCO testB, rCLIP 6b2i reaches 78.73 compared with 78.85 for the distilled ViT-B, while on ReferItGame it achieves 69.41, slightly exceeding the three ViT-B references at 68.26–68.98. In contrast to classification and retrieval, the block/iteration count has little effect on grounding. For rCLIP on RefCOCO val, performance increases only from 80.08 at one block to 83.24 at six, while on several splits the one-block models remain within two to three points of the six-block variants. rCLIP and rCLIP are also closely matched, with no consistent ordering between them. These results suggest that HiVG grounding is relatively insensitive to the degree of parameter sharing or to whether recurrence is applied to the vision tower alone or to both encoders, with even strongly recursive models re-
Table 3. Zero-shot and 16-shot accuracy [%] across ten classification datasets. Few-shot results use CLIP-LoRA [39] adaptation method. Teacher denotes the DFN-2B ViT-B/16, Ref. CLIP the non-recursive ViT-B/16 distilled from it under the same recipe as the recursive students. Within each setting, bold marks the best recursive model per column and underline the best model overall. The remaining block/iteration configurations are reported in the Supplementary.
| Setting | CLIP Model | ImageNet | SUN | Aircraft | EuroSAT | Food | Pets | Flowers | Caltech | DTD | UCF |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Zero-shot | ViT-B/16 (OAI chkpt) | 66.73 | 62.57 | 23.97 | 42.09 | 85.27 | 88.28 | 67.28 | 93.23 | 44.39 | 65.16 |
| Teacher | 75.91 | 70.68 | 21.60 | 48.09 | 88.27 | 91.47 | 79.09 | 96.96 | 56.86 | 61.83 | |
| Ref. CLIP | 71.86 | 70.45 | 16.59 | 44.43 | 81.05 | 91.66 | 66.10 | 95.46 | 55.67 | 60.19 | |
| rCLIP 1b12i | 56.34 | 61.22 | 4.35 | 33.53 | 58.80 | 84.57 | 48.76 | 89.45 | 42.49 | 49.38 | |
| rCLIP 3b4i | 64.65 | 66.30 | 8.73 | 41.88 | 70.63 | 87.24 | 59.11 | 92.54 | 50.77 | 53.61 | |
| rCLIP 6b2i | 68.54 | 68.22 | 12.87 | 39.83 | 75.39 | 89.81 | 61.92 | 93.55 | 54.43 | 56.54 | |
| r2CLIP 1b12i | 51.05 | 59.11 | 4.62 | 32.01 | 53.64 | 80.62 | 35.57 | 88.24 | 37.65 | 47.32 | |
| r2CLIP 3b4i | 62.05 | 65.01 | 8.97 | 33.99 | 68.41 | 87.33 | 54.61 | 92.21 | 46.04 | 53.32 | |
| r2CLIP 6b2i | 66.93 | 68.40 | 12.66 | 36.81 | 75.10 | 86.13 | 59.64 | 94.04 | 51.48 | 56.89 | |
| Few-shot (16) | ViT-B/16 (OAI chkpt) | 73.37 | 76.22 | 55.54 | 90.65 | 84.74 | 91.96 | 98.01 | 96.39 | 71.99 | 86.23 |
| Teacher | 77.83 | 76.92 | 61.60 | 91.58 | 87.11 | 92.53 | 99.27 | 97.53 | 75.83 | 83.11 | |
| Ref. CLIP | 75.18 | 77.21 | 58.78 | 90.74 | 84.58 | 92.78 | 99.03 | 97.24 | 75.95 | 82.42 | |
| rCLIP 1b12i | 61.45 | 69.43 | 35.13 | 87.09 | 67.61 | 85.47 | 94.07 | 94.08 | 61.29 | 72.98 | |
| rCLIP 3b4i | 68.85 | 73.91 | 44.55 | 88.58 | 76.98 | 90.13 | 97.16 | 95.94 | 70.98 | 77.95 | |
| rCLIP 6b2i | 72.13 | 75.14 | 51.79 | 89.36 | 80.18 | 91.33 | 98.09 | 96.63 | 71.10 | 81.13 | |
| r2CLIP 1b12i | 55.35 | 66.05 | 26.04 | 87.54 | 65.27 | 87.30 | 87.37 | 92.78 | 61.35 | 69.13 | |
| r2CLIP 3b4i | 66.48 | 72.91 | 41.01 | 87.07 | 75.83 | 90.22 | 95.21 | 95.25 | 67.85 | 76.63 | |
| r2CLIP 6b2i | 71.44 | 75.69 | 48.30 | 89.70 | 80.44 | 92.59 | 97.08 | 96.23 | 72.99 | 79.36 |
maining competitive with the non-recursive baselines.
Unlearning. Table 5 reports zero-shot and post-unlearning forget-set () and test-set () accuracy on Flowers102, Pets, and Food101, averaged over five seeds with one randomly selected class removed per seed. Before unlearning, the distilled ViT-B is competitive with the OpenAI checkpoint, while the recursive models follow the expected ordering with the number of unique blocks. DIET is effective on every backbone: average forget-set accuracy falls to 5.1–15.2% across the recursive configurations, comparable to 6.4–7.3% for the non-recursive references. The models therefore differ mainly in how much test accuracy they retain. Averaged over the three datasets, falls by 22.2 points for the distilled ViT-B versus 14.1 for the OpenAI checkpoint, with the largest drop on Food101 (80.2 to 47.1 versus 85.9 to 72.8). Since this behavior is already present in the non-recursive student, it does not appear to be caused by recursion. The DFN-2B teacher also loses more than the OpenAI checkpoint (17.0 points on average), suggesting that the pretraining corpus and shared learning-rate protocol may contribute alongside distillation and the smaller training set. Within the recursive families, models with more unique blocks generally retain accuracy better, although the trend varies across datasets. In Pets for example, rCLIP 1b12i drops from 87.2 to 45.6, compared with 90.7 to 67.7 for rCLIP 6b2i and 92.2 to 69.1 for the non-recursive reference. Differences between rCLIP and r2CLIP are minor at matched configurations, with average post-DIET within 0.6 points at every block count shown, indicating that text-tower recursion has little effect on unlearning behavior.
5. Conclusions
In this work, we systematically studied recursive CLIP architectures based on depth-wise block reuse, considering both vision-only recurrence in rCLIP and joint vision-text recurrence in r2CLIP. Across a range of block and iteration configurations, we show that substantial recurrence can be introduced while preserving much of the transferable capability of CLIP. Increasing block reuse naturally reduces the number of distinct parameters, yielding a controllable trade-off between parameterization and representation quality. Our results further show that the vision and text encoders respond differently to extensive weight sharing, with the cost of text-tower recurrence becoming small as more distinct blocks are retained.
Our distillation experiments show that strong CLIP representations can be transferred to recursive students despite substantial parameter sharing. Beyond zero-shot classification and cross-modal retrieval, evaluation on few-shot adaptation, visual grounding, and concept unlearning reveals that the effect of recurrence depends on the downstream task. Recursive models remain highly competitive for grounding and benefit strongly from few-shot adaptation, while heavily shared configurations can be more sensitive during unlearning. Block reuse also reduces the number
Table 4. Visual grounding accuracy at IoU following the HiVG [34] adaptation protocol. Bold marks the best recursive model per column, underline the best overall. The remaining block/iteration configurations are reported in the Supplementary.
| CLIP Model | RefCOCO | RefCOCO+ | RefCOCOg | ReferIt test | Flickr test | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| val | testA | testB | val | testA | testB | val | test | |||
| ViT-B/16 (OAI chkpt) | 83.99 | 86.86 | 78.45 | 73.96 | 81.98 | 63.06 | 74.16 | 74.39 | 68.62 | 80.85 |
| Teacher | 83.03 | 85.97 | 78.26 | 72.89 | 79.19 | 63.10 | 73.43 | 73.52 | 68.26 | 79.65 |
| Ref. CLIP | 84.31 | 86.68 | 78.85 | 73.21 | 78.46 | 64.74 | 75.25 | 74.00 | 68.98 | 80.18 |
| rCLIP 1b12i | 80.08 | 82.81 | 74.55 | 67.61 | 74.13 | 57.95 | 69.26 | 68.73 | 67.12 | 76.44 |
| rCLIP 3b4i | 81.75 | 84.56 | 76.96 | 70.99 | 76.78 | 61.30 | 72.24 | 71.93 | 68.19 | 78.28 |
| rCLIP 6b2i | 83.24 | 85.05 | 78.73 | 72.38 | 77.23 | 63.45 | 71.94 | 71.64 | 69.41 | 79.40 |
| r2CLIP 1b12i | 79.95 | 82.70 | 75.16 | 68.08 | 75.31 | 59.77 | 68.42 | 68.57 | 66.58 | 76.36 |
| r2CLIP 3b4i | 82.04 | 85.05 | 76.22 | 71.06 | 77.32 | 62.57 | 72.10 | 71.27 | 68.24 | 78.53 |
| r2CLIP 6b2i | 82.80 | 84.88 | 78.04 | 73.90 | 78.95 | 64.10 | 72.94 | 71.78 | 69.41 | 79.27 |
Table 5. Zero-shot and post-DIET results. is forget-set and test-set accuracy, averaged over five seeds with one randomly selected class removed per seed; lower indicates more effective forgetting and higher better retention. In the post-DIET block, bold marks the best recursive model and underline the best model overall on average . The remaining configurations are reported in the Supplementary.
| CLIP Model | Flowers102 | Pets | Food101 | Average | ||||
|---|---|---|---|---|---|---|---|---|
| (%) | (%) | (%) | (%) | (%) | (%) | (%) | (%) | |
| Zero-shot | ||||||||
| ViT-B/16 (OAI chkpt) | 92.61±8.30 | 70.56±0.12 | 83.25±21.55 | 89.12±0.37 | 87.68±4.34 | 85.85±0.05 | 87.85 | 81.84 |
| Teacher | 83.50±27.84 | 80.35±0.16 | 92.00±9.30 | 93.34±0.23 | 90.24±3.13 | 87.77±0.05 | 88.58 | 87.15 |
| Ref. CLIP | 88.39±19.50 | 66.72±0.13 | 89.25±13.91 | 92.18±0.29 | 88.44±2.75 | 80.23±0.04 | 88.69 | 79.71 |
| rCLIP 1b12i | 66.96±14.31 | 49.22±0.25 | 85.49±11.87 | 87.20±0.22 | 66.56±11.19 | 58.37±0.10 | 73.00 | 64.93 |
| rCLIP 3b4i | 75.00±28.97 | 60.70±0.13 | 83.00±13.27 | 88.66±0.26 | 79.04±8.04 | 71.05±0.07 | 79.01 | 73.47 |
| rCLIP 6b2i | 81.51±26.65 | 63.44±0.17 | 84.00±15.85 | 90.65±0.25 | 82.84±6.36 | 74.78±0.05 | 82.78 | 76.29 |
| r2CLIP 1b12i | 68.85±21.92 | 36.40±0.31 | 78.98±18.49 | 83.42±0.42 | 71.24±4.53 | 54.15±0.04 | 73.02 | 57.99 |
| r2CLIP 3b4i | 88.70±7.79 | 57.14±0.13 | 85.00±15.08 | 89.26±0.19 | 76.24±6.20 | 68.43±0.06 | 83.31 | 71.61 |
| r2CLIP 6b2i | 81.88±24.64 | 59.06±0.18 | 84.50±14.96 | 89.48±0.26 | 79.76±8.21 | 73.05±0.08 | 82.05 | 73.86 |
| After DIET | ||||||||
| ViT-B/16 (OAI chkpt) | 4.36±5.06 | 56.60±2.06 | 2.00±2.59 | 73.79±9.93 | 12.72±14.34 | 72.80±4.00 | 6.36 | 67.73 |
| Teacher | 3.87±6.50 | 74.24±3.46 | 5.01±4.68 | 77.18±4.75 | 13.08±11.63 | 59.15±11.14 | 7.32 | 70.19 |
| Ref. CLIP | 2.60±3.16 | 56.45±4.57 | 3.00±5.35 | 69.10±14.18 | 14.12±12.58 | 47.10±13.61 | 6.57 | 57.55 |
| rCLIP 1b12i | 4.29±6.27 | 33.48±10.18 | 12.58±12.10 | 45.62±9.19 | 9.32±9.26 | 37.46±8.65 | 8.73 | 38.85 |
| rCLIP 3b4i | 7.20±8.16 | 51.92±2.83 | 22.72±36.72 | 59.82±10.85 | 15.52±6.62 | 44.93±4.72 | 15.15 | 52.22 |
| rCLIP 6b2i | 1.84±2.06 | 44.67±8.61 | 4.02±2.44 | 67.68±6.17 | 9.56±5.12 | 51.19±8.84 | 5.14 | 54.51 |
| r2CLIP 1b12i | 5.67±5.45 | 27.73±4.16 | 13.14±24.61 | 56.63±13.02 | 5.96±7.42 | 31.77±3.09 | 8.26 | 38.71 |
| r2CLIP 3b4i | 5.15±8.67 | 40.12±11.39 | 13.03±12.00 | 64.77±9.37 | 9.40±7.32 | 50.39±4.73 | 9.19 | 51.76 |
| r2CLIP 6b2i | 0.82±1.13 | 44.30±11.42 | 6.27±6.19 | 68.28±11.80 | 9.56±5.53 | 52.27±7.47 | 5.55 | 54.95 |
of distinct LoRA adapters required for downstream adaptation. Overall, our results establish recurrent block reuse as a practical and flexible design space for CLIP, with parameter efficiency arising naturally from the shared architecture.
Our work has some limitations. Most experiments use a single training run, so small performance differences should be interpreted cautiously. We also don't evaluate alternative methods for tuning recursive models, such as block-specific iteration counts [12], which remain a direction for future work. Finally, the downstream adaptation protocols are adopted from methods originally designed for non-recursive models. Their performance may therefore be sensitive to hyperparameter choices, and further tuning specifically for recursive models could lead to improvements.
Acknowledgements
We gratefully acknowledge Polish high-performance computing infrastructure PLGrid (HPC Center: ACK Cyfronet AGH) for providing computer facilities and support within computational grant no. PLG/2025/018809
References
[1] Sangmin Bae, Adam Fisch, Hrayr Harutyunyan, Ziwei Ji, Seungyeon Kim, and Tal Schuster. Relaxed recursive transformers: Effective parameter sharing with layer-wise LoRA. In International Conference on Learning Representations, 2025. 2
[2] Michal Byra, Pawel Olszowiec, Grzegorz Stefanski, Grzegorz Gruszczynski, and Alberto Presta. bViT: Investigating single-block recurrence in vision transformers for image recognition, 2026. 2, 3
[3] Soravit Changpinyo, Piyush Sharma, Nan Ding, and Radu Soricut. Conceptual 12M: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3558–3568, 2021. 4
[4] Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In International Conference on Learning Representations, 2019. 1, 2
[5] Md Fahim, Md Farhan Ishmam, Mir Sazzat Hossain, M Ashraful Amin, Amin Ahsan Ali, and AKM Mahbubur Rahman. R-MMA: Enhancing vision-language models with recurrent adapters for few-shot and cross-domain generalization. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 6496–6506, 2026. 2
[6] Alex Fang, Albin Madappally Jose, Amit Jain, Ludwig Schmidt, Alexander Toshev, and Vaishaal Shankar. Data filtering networks. In International Conference on Learning Representations, 2024. 2, 4
[7] Shangqian Gao, Burak Uzkent, Yilin Shen, Heng Huang, and Hongxia Jin. Learning to jointly share and prune weights for grounding based vision and language models. In International Conference on Learning Representations, 2023. 2
[8] Jonas Geiping, Sean McLeish, Neel Jain, John Kirchenbauer, Siddharth Singh, Brian R. Bartoldson, Bhavya Kailkhura, Abhinav Bhatele, and Tom Goldstein. Scaling up test-time compute with latent reasoning: A recurrent depth approach. In Advances in Neural Information Processing Systems, pages 41340–41391, 2025. 2
[9] Angeliki Giannou, Shashank Rajput, Jy-yong Sohn, Kangwook Lee, Jason D. Lee, and Dimitris Papailiopoulos. Looped transformers as programmable computers. In International Conference on Machine Learning, pages 11398–11442, 2023. 2
[10] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kada-vath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, Dawn Song, Jacob Steinhardt, and Justin Gilmer. The many faces of robustness: A critical analysis of out-of-distribution generalization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8340–8349, 2021. 4
[11] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 4
[12] Mozes Jacobs, Thomas Fel, Richard Hakim, Alessandra Brondetta, Demba Ba, and T. Anderson Keller. Block-recurrent dynamics in vision transformers. In International Conference on Learning Representations, 2026. 2, 3, 8
[13] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc Le, Yun-Hsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. In International Conference on Machine Learning, pages 4904–4916, 2021. 2
[14] Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3128–3137, 2015. 4
[15] Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara Berg. ReferItGame: Referring to objects in photographs of natural scenes. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, pages 787–798, 2014. 4
[16] Nilakshan Kunananthaseelan, Jing Wu, Trung Le, Gholamreza Haffari, and Mehrtash Harandi. DIET: Machine unlearning on a data-diet. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 22698–22706, 2026. 4, 18, 20
[17] Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. ALBERT: A lite BERT for self-supervised learning of language representations. In International Conference on Learning Representations, 2020. 2
[18] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft COCO: Common objects in context. In Proceedings of the European Conference on Computer Vision, pages 740–755, 2014. 4
[19] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. 4
[20] Junhua Mao, Jonathan Huang, Alexander Toshev, Oana Camburu, Alan L. Yuille, and Kevin Murphy. Generation and comprehension of unambiguous object descriptions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11–20, 2016. 4
[21] Bryan A. Plummer, Liwei Wang, Chris M. Cervantes, Juan C. Caicedo, Julia Hockenmaier, and Svetlana Lazebnik. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2641–2649, 2015. 4
[22] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748–8763, 2021. 1, 2, 4
[23] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do ImageNet classifiers generalize to Im-ageNet? In International Conference on Machine Learning, pages 5389–5400, 2019. 4
[24] Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. FitNets: Hints for thin deep nets. In International Conference on Learning Representations, 2015. 4, 11
[25] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet large scale visual recognition challenge. International Journal of Computer Vision, 115(3): 211–252, 2015. 4
[26] Nikunj Saunshi, Nishanth Dikkala, Zhiyuan Li, Sanjiv Kumar, and Sashank J. Reddi. Reasoning with latent thoughts: On the power of looped transformers. In International Conference on Learning Representations, 2025. 2
[27] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, pages 2556–2565, 2018. 4
[28] Zhiqiang Shen, Zechun Liu, and Eric Xing. Sliced recursive transformer. In Proceedings of the European Conference on Computer Vision, pages 727–744, 2022. 2, 3
[29] Pavan Kumar Anasosalu Vasu, Hadi Pouransari, Fartash Faghri, Raviteja Vemulapalli, and Oncel Tuzel. MobileCLIP: Fast image-text models through multi-modal reinforced training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15963–15974, 2024. 2
[30] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pages 5998–6008, 2017. 1
[31] Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P. Xing. Learning robust global representations by penalizing local predictive power. In Advances in Neural Information Processing Systems, pages 10506–10518, 2019. 4
[32] Cheng-En Wu, Jinhong Lin, Yu Hen Hu, and Pedro Morgado. Patch ranking: Token pruning as ranking prediction for efficient clip. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 5842–5851. IEEE, 2025. 2
[33] Kan Wu, Houwen Peng, Zhenghong Zhou, Bin Xiao, Mengchen Liu, Lu Yuan, Hong Xuan, Michael Valenzuela, Xi Stephen Chen, Xinggang Wang, Hongyang Chao, and Han Hu. TinyCLIP: CLIP distillation via affinity mimicking and weight inheritance. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 21970–21980, 2023. 2
[34] Linhui Xiao, Xiaoshan Yang, Fang Peng, Yaowei Wang, and Changsheng Xu. HiVG: Hierarchical multimodal fine-grained modulation for visual grounding. In Proceedings of the ACM International Conference on Multimedia, pages 5460–5469, 2024. 4, 8, 17
[35] Chuanguang Yang, Zhulin An, Libo Huang, Junyu Bi, Xinqiang Yu, Han Yang, Boyu Diao, and Yongjun Xu. CLIP-
KD: An empirical study of CLIP model distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15952–15962, 2024. 2, 4, 5, 6, 13
[36] Liu Yang, Kangwook Lee, Robert Nowak, and Dimitris Papailiopoulos. Looped transformers are better at learning learning algorithms. In International Conference on Learning Representations, 2024. 2
[37] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics, 2:67–78, 2014. 4
[38] Licheng Yu, Patrick Poirson, Shan Yang, Alexander C. Berg, and Tamara L. Berg. Modeling context in referring expressions. In Proceedings of the European Conference on Computer Vision, pages 69–85, 2016. 4
[39] Maxime Zanella and Ismail Ben Ayed. Low-rank few-shot adaptation of vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 1593–1603, 2024. 4, 7, 16, 19
[40] Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. Sigmoid loss for language image pre-training. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11975–11986, 2023. 2
[41] Jinnian Zhang, Houwen Peng, Kan Wu, Mengchen Liu, Bin Xiao, Jianlong Fu, and Lu Yuan. MiniViT: Compressing vision transformers with weight multiplexing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12145–12154, 2022. 2
[42] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. International Journal of Computer Vision (IJCV), 2022. 19
Recursive CLIP: Vision-Language Distillation with Looped Transformer Blocks Supplementary Material
A. Distillation loss details
This section gives the formal definitions of the distillation objectives summarized in Sect. 3.2. Throughout, is a mini-batch of image-text pairs, superscripts and denote teacher and student, and , denote -normalized image and text embeddings.
A.1. CLIP Contrastive Loss
Given a visual encoder and text encoder produce and , CLIP uses an InfoNCE-based objective that pulls paired embeddings together and pushes unpaired ones apart. With the image as anchor,
and symmetrically, with the text as anchor,
where is the dot product and a learnable temperature. The full CLIP loss is the average of both directions:
A.2. Feature Distillation (FD)
FD directly aligns student embeddings to the teacher's by minimizing the mean squared error between their -normalized visual and text features:
When embedding dimensions differ, a linear projection head maps student features to the teacher dimension; all students considered here preserve the ViT-B/16 embedding width, so no such head is instantiated. Intuitively, forcing the student's features toward the teacher's shrinks the performance gap directly.
A.3. Contrastive Relational Distillation (CRD)
CRD transfers the teacher's structured contrastive distribution rather than raw features. For image as anchor, the teacher and student image-to-text distributions are
with analogous text-to-image distributions and . The student mimics the teacher via KL divergence in both directions:
This encourages the student to reproduce the teacher's relational structure over the batch.
A.4. Interactive Contrastive Learning (ICL)
ICL couples the two encoders by treating the student embedding as an anchor contrasted against teacher embeddings. Using the student image embedding against teacher text embeddings ,
and symmetrically, using the student text embedding against teacher image embeddings,
The total ICL loss averages both directions:
Minimizing maximizes a lower bound on the mutual information between teacher and student representations, letting the student learn implicitly from the teacher's cross-modal embedding space.
A.5. Activation Matching (AM)
We give here the full definition of the objective introduced in Sect. 3.2, whose behavior under recursion is analyzed in Sect. 4.2. Unlike the objectives above, which act on the final embeddings, AM [24] supervises intermediate representations along the depth of the vision tower, and is applied to the vision tower only.
Teacher trajectory. Let denote the frozen teacher vision tower. For an image it embeds patches into a token sequence of tokens ( patch tokens and one [CLS] token) of width , and applies its residual blocks,
(15) with the teacher patch embedding. We refer to as the teacher's residual-stream trajectory; these are raw block outputs, taken before the final layer normalization and before the CLIP projection head.
Student trajectory. The corresponding student states are obtained by unrolling the recursion of Eq. (3). Writing for the state after the -th distinct block within iteration , with and , the global execution index of Eq. (5), , lets us write . Because all configurations satisfy , student and teacher trajectories have equal length and the alignment is index-preserving. As noted in the main text, block is executed at , so one parameter set is supervised against teacher states spaced layers apart; the non-recursive reference is the special case , , in which each parameter set receives exactly one target.
Objective. For a mini-batch ,
where is the Frobenius norm and the stop-gradient (the teacher is frozen and evaluated without gradient tracking). is a learnable bias-free linear map instantiated only when student and teacher widths differ; all students considered here preserve the ViT-B/16 width, so throughout and no additional parameters are introduced. The comparison is made on unnormalized hidden states over the full token sequence, with [CLS] and patch tokens weighted equally.
Scale. Averaging over and over all elements makes Eq. (16) invariant to trajectory length and hidden width, but places it on a substantially smaller numerical scale than the output-level losses. The weights examined for AM therefore span a wider range than those for the other components; see Sect. B.2.
Overall objective. The full training objective combines the base task with the selected distillation terms,
with in all main experiments following Sect. 4.2, and , , following Sect. B.3.
B. Extended distillation objective results
This section supports Sect. 4.2. We report the component ablation on all four zero-shot evaluation sets (Sect. B.1), the sensitivity of Activation Matching to its weight (Sect. B.2), and the weighting sweep over the retained components (Sect. B.3). All runs train on CC3M only, for the same budget and with the same optimizer settings as the main distillation runs, and use a single seed. Configurations are compared by ImageNet accuracy; the three distribution-shifted variants are reported for completeness. The recursive backbone throughout is rCLIP 1b12i, the most constrained configuration in our grid and the one whose performance we most seek to improve.
B.1. Component ablation
Table 6 extends Table 2 of the main text with ImageNet-V2 and ImageNet-Sketch. The ordering discussed in Sect. 4.2 is preserved on every evaluation set: FD is the strongest individual component on both backbones, CRD and ICL fall well short of the full composition, and AM inverts between backbones, moving from second place on the reference to last on the recursive student.
Two details are visible only in the extended table. First, the substitution of the full composition by FD alone is close to free on the reference (37.3 to 37.0 on ImageNet, and in fact slightly favorable on ImageNet-Sketch, 27.0 to 27.9), but costs 2.1 points on the recursive student; the auxiliary components contribute more under weight sharing. Second, AM on the reference backbone is the single best run on ImageNet-R (47.5), exceeding even the full composition (46.9), despite ranking only second on ImageNet. Intermediate supervision thus appears to transfer robustness features that the output-level objectives do not capture — which makes its collapse on the recursive backbone, where it is the weakest component on all four sets including ImageNet-R (17.0 against 33.2 for the full composition), the more striking.
B.2. Sensitivity of Activation Matching to its weight
Because sits on a smaller numerical scale than the output-level objectives, a natural concern is that its poor showing on the recursive backbone reflects an inadequate weight rather than a property of the architecture. Table 7 addresses this by evaluating AM at and on both backbones.
The two backbones respond in opposite ways. On the reference, raising the weight by three orders of magnitude improves ImageNet accuracy by 10.6 points (20.4 to 31.0), with gains on all shifted variants: the objective is weight-sensitive and clearly under-weighted at . On the recursive student the same change moves accuracy by 0.2 points in the opposite direction (15.7 to 15.5), and by at most 1.1 points on any evaluation set. AM is therefore not merely mis-weighted under recursion; across a range of weights it provides essentially no usable signal, while the identical sweep on a non-recursive student of the
| Model | Components | IN | IN-V2 | IN-R | IN-S |
|---|---|---|---|---|---|
| Ref. CLIP | CRD + ICL + FD | 37.3 | 32.5 | 46.9 | 27.0 |
| Ref. CLIP | FD | 37.0 | 31.7 | 46.3 | 27.9 |
| Ref. CLIP | CRD | 26.2 | 22.4 | 28.8 | 14.2 |
| Ref. CLIP | ICL | 19.3 | 16.4 | 22.3 | 9.8 |
| Ref. CLIP | AM | 31.0 | 26.5 | 47.5 | 23.9 |
| rCLIP 1b12i | CRD + ICL + FD | 30.3 | 26.0 | 33.2 | 16.3 |
| rCLIP 1b12i | FD | 28.2 | 24.3 | 29.2 | 14.4 |
| rCLIP 1b12i | CRD | 22.4 | 18.8 | 22.6 | 9.3 |
| rCLIP 1b12i | ICL | 18.4 | 15.2 | 19.6 | 7.2 |
| rCLIP 1b12i | AM | 15.5 | 13.1 | 17.0 | 5.9 |
Table 6. Distillation loss components evaluated in isolation, with the reference composition of [35] as the top row of each block. Extended version of Table 2. All runs additionally include the primary CLIP contrastive loss at weight 1; CRD, ICL and FD use the weights of [35] (1, 1 and 2000), and AM uses . Values are top-1 accuracy (%), single seed, CC3M, distilled from a DFN-2B ViT-B/16 teacher.
| Model | α | IN | IN-V2 | IN-R | IN-S |
|---|---|---|---|---|---|
| Ref. CLIP | 1 | 20.4 | 17.6 | 23.0 | 10.3 |
| Ref. CLIP | 2000 | 31.0 | 26.5 | 47.5 | 23.9 |
| rCLIP 1b12i | 1 | 15.7 | 13.0 | 15.9 | 5.6 |
| rCLIP 1b12i | 2000 | 15.5 | 13.1 | 17.0 | 5.9 |
Table 7. Activation Matching weight sensitivity. All runs use the primary CLIP contrastive loss at weight 1 and AM as the only distillation term. Raising substantially improves the non-recursive baseline, with no visible effect in recursive one. Values are top-1 accuracy (%), single seed, CC3M, distilled from a DFN-2B ViT-B/16 teacher.
same width and depth yields a large improvement. This is what we would expect if the constraint imposed by Eq. (16) is unsatisfiable for a looped block rather than simply weak.
B.3. Loss weighting
Retaining CRD, ICL and FD, we next vary their weights on the same recursive backbone. Results are given in Table 8.
Holding CRD and ICL at unit weight, accuracy increases monotonically with the FD weight over the range examined — 26.7, 27.9, 30.3, 31.7 and 32.0 for weights of 500 to 5000 — with diminishing returns at the upper end. We did not observe a turning point: performance was still improving at , where the search was stopped for budget reasons, so the optimum is bounded from below but not bracketed.
The contribution of ICL is small and non-monotone once FD is heavily weighted. At an FD weight of 5000, ICL weights of 2, 1, 0.5 and 0 yield 31.3, 32.0, 32.7 and 32.5 respectively, and at an FD weight of removing ICL entirely is preferable to retaining it at half weight (33.8 against 33.6). By contrast, the CRD weight has little influence across the range examined, varying accuracy by at most 0.6 points between weights of 0.5 and 2. We therefore adopt CRD = 1, ICL = 0 and FD = , which attains 33.8 ImageNet top-1 and is likewise the strongest configuration on ImageNet-V2 and ImageNet-Sketch; ImageNet-R favors a different point (CRD = 2, ICL = 0.5, FD = 5000, at 36.8), which we did not select as our selection criterion is ImageNet top-1.
Table 8. Distillation loss component weights, evaluated on the recursive rCLIP 1b12i student. The first block varies the FD weight at fixed CRD and ICL; the second varies CRD and ICL at an FD weight of 5000; the third reports the highest FD weight examined. Last block applies the starting loss configuration and final one to the non-recursive model. The selected configuration is shown in bold. Values are top-1 accuracy (%), single seed, CC3M, distilled from a DFN-2B ViT-B/16 teacher.
| Model | CRD | ICL | FD | IN | IN-V2 | IN-R | IN-S |
|---|---|---|---|---|---|---|---|
| rCLIP 1b12i | 1 | 1 | 500 | 26.7 | 23.0 | 28.4 | 13.4 |
| rCLIP 1b12i | 1 | 1 | 1000 | 27.9 | 24.2 | 30.6 | 14.5 |
| rCLIP 1b12i | 1 | 1 | 2000 | 30.3 | 26.0 | 33.2 | 16.3 |
| rCLIP 1b12i | 1 | 1 | 3500 | 31.7 | 27.1 | 35.6 | 18.0 |
| rCLIP 1b12i | 1 | 1 | 5000 | 32.0 | 28.1 | 34.8 | 17.8 |
| rCLIP 1b12i | 0.5 | 1 | 5000 | 31.9 | 27.9 | 34.9 | 18.2 |
| rCLIP 1b12i | 2 | 1 | 5000 | 32.5 | 28.3 | 36.1 | 18.6 |
| rCLIP 1b12i | 1 | 2 | 5000 | 31.3 | 27.1 | 33.6 | 17.4 |
| rCLIP 1b12i | 2 | 2 | 5000 | 31.3 | 27.5 | 34.7 | 17.8 |
| rCLIP 1b12i | 1 | 0.5 | 5000 | 32.7 | 28.1 | 36.1 | 18.3 |
| rCLIP 1b12i | 2 | 0.5 | 5000 | 32.6 | 28.2 | 36.8 | 18.4 |
| rCLIP 1b12i | 1 | 0 | 5000 | 32.5 | 28.4 | 35.0 | 18.1 |
| rCLIP 1b12i | 0.5 | 0.5 | 10000 | 32.9 | 28.9 | 33.9 | 19.7 |
| rCLIP 1b12i | 1 | 0.5 | 10000 | 33.6 | 29.3 | 36.3 | 20.0 |
| rCLIP 1b12i | 1 | 0 | 10000 | 33.8 | 29.6 | 35.6 | 20.2 |
| Ref. CLIP | 1 | 1 | 2000 | 37.3 | 32.5 | 46.9 | 27.0 |
| Ref. CLIP | 1 | 0 | 10000 | 47.7 | 41.3 | 59.0 | 38.4 |
The selected configuration was verified on the non-recursive backbone before being adopted for the main experiments. It raises Reference CLIP from 37.3 to 47.7 ImageNet top-1 under the same budget, a larger absolute gain than on the recursive student. The recipe used throughout the paper is therefore not tuned in favor of the recursive models: all students, recursive and non-recursive, are distilled under the objective that is best for the non-recursive reference as well.
B.4. Limitations
Every configuration was trained once, so differences of a few tenths of a point should not be over-interpreted. The search was conducted on CC3M and the selected configuration was transferred to the combined CC3M and CC12M corpus without re-verification. The selected configuration differs from the sweep anchor in two respects simultane-ously — ICL removed and FD raised — and we did not train the intermediate point (CRD = 1, ICL = 1, FD = ), so the gain cannot be attributed to either change individually.
Regarding the AM result of Sect. 4.2, the evidence rests on a single recursive configuration (1b12i) at two weights. Sect. B.2 rules out under-weighting as an explanation, but does not establish how the effect scales with the number of distinct blocks. Our account predicts that the penalty should diminish as M decreases, since fewer teacher states are then assigned to each parameter set; we did not test this, and configurations with N > 1 may behave differently. The weighting search was conducted on rCLIP 1b12i and the selected configuration was applied unchanged to the r²CLIP family, whose text tower is also recursive; we did not re-verify it there.
C. Extended evaluations
This section reports the complete block/iteration grid for the experiments summarized in the main text, where for brevity only the 1b12i, 3b4i and 6b2i configurations were shown. We first give the exact values underlying Fig. 3 and Fig. 4 (Sect. C.1), then the full grids for few-shot classification, visual grounding and unlearning (Sects. C.2–C.4). The trends have already been discussed in Sect. 4 and are not restated here; we note only where the intermediate configurations add something the reduced grid does not show.
C.1. Zero-shot classification and retrieval
Table 9 and Table 10 give the exact values plotted in the main text, without and with distillation respectively. The gain from additional distinct blocks is heavily front-loaded: without distillation, rCLIP recovers 2.7 of its total 3.7-point ImageNet improvement between one and two blocks, and the 4- and 6-block configurations are indistinguishable at 36.5. Under distillation the curve is less saturated but the same ordering holds, with the step from one to two blocks worth 6.1 points against 2.1 for the step from four to six. The two recursive families separate only under distillation. Trained directly with the CLIP objective, r²CLIP matches or slightly exceeds rCLIP at most grid points except the retrieval tasks, despite its smaller text tower. After distillation, rCLIP leads at every configuration across most datasets for both lower and higher block counts.
C.2. Few-shot classification
Table 11 gives the full grid for zero-shot and 16-shot classification. Averaged over the ten datasets, the gap to the distilled Reference CLIP narrows monotonically with the number of distinct blocks, from 12.5 to 3.2 points for rCLIP and from 16.4 to 4.5 for r²CLIP in the zero-shot setting. Few-shot adaptation reduces every one of these gaps, to 10.5 and 2.7 points for rCLIP at one and six blocks and to 13.6 and 3.0 for r²CLIP, so the benefit of adaptation is largest where the backbone is most constrained.
The intermediate configurations show that the cost of text-tower recursion is essentially removed by adaptation. The average gap between rCLIP and r²CLIP at matched block counts falls from 3.9 to 1.3 points zero-shot across the grid, and from 3.0 to 0.3 points after few-shot adaptation. At six blocks the two families are indistinguishable under adaptation, and r²CLIP in fact attains the best recursive result on five of the ten datasets.
Two departures from the otherwise monotone trend are worth noting. EuroSAT is non-monotone in block count for both families and in both settings, and is also the dataset with by far the largest adaptation gain — between 47 and 56 points for every recursive backbone, against 46 for the reference — which is consistent with a large domain gap from the pretraining distribution rather than with a property of recursion. Aircraft shows the opposite pattern: adaptation gains grow with block count (30.8 to 38.9 points for rCLIP), and it is the only dataset where the recursive models remain far from the reference after adaptation, reflecting how little fine-grained aircraft signal survives distillation on CC3M and CC12M.
C.3. Visual grounding
Table 12 gives the full grid for grounding accuracy. Averaged over the ten splits, the spread across the entire block/iteration range is only 3.4 points for rCLIP (71.9 at one block to 75.3 at six) and 3.5 for r²CLIP (72.1 to 75.6), against 75.7–76.6 for the three non-recursive references. Even the most constrained configuration therefore loses less than five points on average relative to a full-depth model, and the best recursive configurations come within 0.2 points of the strongest reference on RefCOCO testB and RefCOCO+ val, and exceed it on ReferItGame.
The intermediate configurations confirm that neither family dominates. Averaged over the ten splits, is marginally ahead of rCLIP at four of the five block counts, by between 0.1 and 0.5 points, with the two families within 0.6 points everywhere; the best recursive result is attained by an configuration on six of the ten splits and by an rCLIP configuration on four. This is in clear contrast to classification and retrieval, where rCLIP leads at every matched configuration, and supports the reading in Sect. 4.4 that HiVG grounding is largely insensitive to whether recursion is applied to one encoder or both.
C.4. Concept unlearning
Table 13 gives the full grid for zero-shot and post-DIET accuracy. Because the backbones start from very different zero-shot accuracies, absolute drops in are not comparable across models; we therefore also read retention as the ratio of average test accuracy after unlearning to
Table 9. Zero-shot classification and cross-modal retrieval across the full block/iteration grid, trained directly with the CLIP objective and no knowledge distillation. Values are top-1 accuracy for classification [%] and Recall@1 [%] for retrieval. Ref. CLIP is the non-recursive ViT-B/16 trained under the same recipe. Bold marks the best recursive model per column and underline the best model overall. Exact values underlying Fig. 3 in the main paper.
| CLIP Model | ImageNet | ImageNet-V2 | ImageNet-R | ImageNet-S | MSCOCO | Flickr | ||
|---|---|---|---|---|---|---|---|---|
| I2T | T2I | I2T | T2I | |||||
| Ref. CLIP | 38.6 | 33.2 | 49.3 | 26.4 | 36.4 | 26.5 | 63.0 | 48.9 |
| rCLIP 1b12i | 32.8 | 28.6 | 36.8 | 17.8 | 30.6 | 22.4 | 57.6 | 42.9 |
| rCLIP 2b6i | 35.5 | 30.5 | 42.4 | 21.0 | 33.9 | 24.4 | 58.3 | 45.9 |
| rCLIP 3b4i | 36.2 | 30.6 | 45.0 | 23.3 | 35.5 | 25.0 | 60.0 | 47.6 |
| rCLIP 4b3i | 36.5 | 31.1 | 45.6 | 23.4 | 34.4 | 25.0 | 59.6 | 47.8 |
| rCLIP 6b2i | 36.5 | 31.7 | 45.3 | 23.6 | 35.0 | 25.5 | 60.2 | 48.6 |
| r2CLIP 1b12i | 33.4 | 29.0 | 39.2 | 18.6 | 31.9 | 22.1 | 56.4 | 43.4 |
| r2CLIP 2b6i | 35.5 | 30.1 | 41.7 | 20.5 | 34.6 | 23.5 | 58.5 | 45.4 |
| r2CLIP 3b4i | 36.6 | 32.0 | 46.7 | 23.5 | 35.4 | 24.8 | 60.6 | 46.5 |
| r2CLIP 4b3i | 36.4 | 31.7 | 45.7 | 22.8 | 34.9 | 24.2 | 60.0 | 46.4 |
| r2CLIP 6b2i | 36.6 | 31.6 | 46.7 | 23.7 | 35.4 | 25.0 | 61.6 | 48.2 |
Table 10. Zero-shot classification and cross-modal retrieval across the full block/iteration grid, distilled from the DFN-2B ViT-B/16 teacher on CC3M + CC12M under the objective selected in Sect. 4.2 and Sect. B.3 (, , ). Values are top-1 accuracy for classification [%] and Recall@1 [%] for retrieval. Bold marks the best recursive model per column and underline the best model overall. Exact values underlying Fig. 4 in the main paper.
| CLIP Model | ImageNet | ImageNet-V2 | ImageNet-R | ImageNet-S | MSCOCO | Flickr | ||
|---|---|---|---|---|---|---|---|---|
| I2T | T2I | I2T | T2I | |||||
| Teacher | 76.29 | 68.15 | 83.10 | 62.05 | 60.42 | 43.39 | 85.50 | 69.10 |
| Ref. CLIP | 72.50 | 64.30 | 81.60 | 58.50 | 61.04 | 44.00 | 86.20 | 70.00 |
| rCLIP 1b12i | 56.70 | 48.80 | 62.60 | 40.80 | 51.48 | 34.68 | 77.10 | 61.10 |
| rCLIP 2b6i | 62.80 | 54.60 | 70.70 | 48.10 | 55.68 | 38.19 | 81.80 | 65.68 |
| rCLIP 3b4i | 65.20 | 57.00 | 73.30 | 50.50 | 57.36 | 39.68 | 83.50 | 66.94 |
| rCLIP 4b3i | 66.70 | 58.60 | 74.80 | 52.10 | 57.74 | 40.29 | 83.50 | 67.28 |
| rCLIP 6b2i | 68.80 | 60.60 | 77.20 | 54.20 | 58.98 | 41.83 | 85.40 | 68.56 |
| r2CLIP 1b12i | 52.00 | 44.70 | 61.50 | 37.20 | 47.30 | 32.59 | 72.80 | 58.88 |
| r2CLIP 2b6i | 59.80 | 51.90 | 69.90 | 45.60 | 53.32 | 37.15 | 79.90 | 63.14 |
| r2CLIP 3b4i | 62.70 | 54.80 | 72.00 | 48.30 | 54.34 | 38.54 | 83.10 | 65.58 |
| r2CLIP 4b3i | 65.20 | 56.70 | 74.50 | 51.10 | 56.60 | 39.62 | 83.50 | 66.28 |
| r2CLIP 6b2i | 67.70 | 60.00 | 77.50 | 53.90 | 58.06 | 41.62 | 83.70 | 68.08 |
before. On this measure the non-recursive references retain 82.8% (OpenAI), 80.5% (Teacher) and 72.2% (Reference CLIP), against 57.6–74.4% across the recursive grid. Forgetting itself is effective everywhere: average falls from 73.0–88.7% before unlearning to 4.0–15.2% after, with no systematic difference between recursive and non-recursive backbones.
The intermediate configurations make the trend reported in Sect. 4.4 look less regular than the reduced grid suggests. Retention broadly improves with the number of dis- tinct blocks for r2CLIP (66.8, 68.7, 72.3, 70.5 and 74.4% from one to six blocks), but for rCLIP the two most constrained configurations fall well below the rest, at 59.8% and 57.6% against 71.1–71.5% for the three larger ones. The rCLIP 2b6i is the most extreme: it attains the lowest average post-DIET of any model in the grid (4.0%) together with the second-lowest retention, and its per-dataset test accuracies carry standard deviations of up to 17.8 points over five seeds. We attribute this to the sensitivity of DIET to learning-rate selection rather than to the architecture. Our
Table 11. Zero-shot and 16-shot accuracy [%] across ten classification datasets, for the full block/iteration grid. Few-shot results use the CLIP-LoRA [39] adaptation method with 16 shots per class; the configuration is given in Supplementary D.3. Within each setting, bold marks the best recursive model per column and underline the best model overall. Extended version of Table 3 in the main paper.
| Setting | CLIP Model | ImageNet | SUN | Aircraft | EuroSAT | Food | Pets | Flowers | Caltech | DTD | UCF |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Zero-shot | ViT-B/16 (OAI chkpt) | 66.73 | 62.57 | 23.97 | 42.09 | 85.27 | 88.28 | 67.28 | 93.23 | 44.39 | 65.16 |
| Teacher | 75.91 | 70.68 | 21.60 | 48.09 | 88.27 | 91.47 | 79.09 | 96.96 | 56.86 | 61.83 | |
| Ref. CLIP | 71.86 | 70.45 | 16.59 | 44.43 | 81.05 | 91.66 | 66.10 | 95.46 | 55.67 | 60.19 | |
| rCLIP 1b12i | 56.34 | 61.22 | 4.35 | 33.53 | 58.80 | 84.57 | 48.76 | 89.45 | 42.49 | 49.38 | |
| rCLIP 2b6i | 62.13 | 64.90 | 7.98 | 37.22 | 67.62 | 86.10 | 57.53 | 91.28 | 48.82 | 52.50 | |
| rCLIP 3b4i | 64.65 | 66.30 | 8.73 | 41.88 | 70.63 | 87.24 | 59.11 | 92.54 | 50.77 | 53.61 | |
| rCLIP 4b3i | 66.06 | 67.75 | 10.59 | 39.73 | 73.20 | 89.07 | 59.24 | 93.67 | 48.94 | 55.19 | |
| rCLIP 6b2i | 68.54 | 68.22 | 12.87 | 39.83 | 75.39 | 89.81 | 61.92 | 93.55 | 54.43 | 56.54 | |
| r2CLIP 1b12i | 51.05 | 59.11 | 4.62 | 32.01 | 53.64 | 80.62 | 35.57 | 88.24 | 37.65 | 47.32 | |
| r2CLIP 2b6i | 58.70 | 63.32 | 8.52 | 37.16 | 63.14 | 82.61 | 48.80 | 90.14 | 42.91 | 50.33 | |
| r2CLIP 3b4i | 62.05 | 65.01 | 8.97 | 33.99 | 68.41 | 87.33 | 54.61 | 92.21 | 46.04 | 53.32 | |
| r2CLIP 4b3i | 64.28 | 66.59 | 10.47 | 37.42 | 70.66 | 87.65 | 55.30 | 92.78 | 48.11 | 54.69 | |
| r2CLIP 6b2i | 66.93 | 68.40 | 12.66 | 36.81 | 75.10 | 86.13 | 59.64 | 94.04 | 51.48 | 56.89 | |
| Few-shot (16) | ViT-B/16 (OAI chkpt) | 73.37 | 76.22 | 55.54 | 90.65 | 84.74 | 91.96 | 98.01 | 96.39 | 71.99 | 86.23 |
| Teacher | 77.83 | 76.92 | 61.60 | 91.58 | 87.11 | 92.53 | 99.27 | 97.53 | 75.83 | 83.11 | |
| Ref. CLIP | 75.18 | 77.21 | 58.78 | 90.74 | 84.58 | 92.78 | 99.03 | 97.24 | 75.95 | 82.42 | |
| rCLIP 1b12i | 61.45 | 69.43 | 35.13 | 87.09 | 67.61 | 85.47 | 94.07 | 94.08 | 61.29 | 72.98 | |
| rCLIP 2b6i | 66.77 | 72.48 | 42.87 | 87.53 | 74.19 | 89.13 | 96.47 | 95.46 | 65.72 | 76.18 | |
| rCLIP 3b4i | 68.85 | 73.91 | 44.55 | 88.58 | 76.98 | 90.13 | 97.16 | 95.94 | 70.98 | 77.95 | |
| rCLIP 4b3i | 70.03 | 74.39 | 47.04 | 88.57 | 78.76 | 91.25 | 97.12 | 96.47 | 69.09 | 79.94 | |
| rCLIP 6b2i | 72.13 | 75.14 | 51.79 | 89.36 | 80.18 | 91.33 | 98.09 | 96.63 | 71.10 | 81.13 | |
| r2CLIP 1b12i | 55.35 | 66.05 | 26.04 | 87.54 | 65.27 | 87.30 | 87.37 | 92.78 | 61.35 | 69.13 | |
| r2CLIP 2b6i | 63.37 | 71.46 | 33.96 | 88.00 | 73.15 | 90.46 | 93.26 | 94.69 | 66.08 | 75.36 | |
| r2CLIP 3b4i | 66.48 | 72.91 | 41.01 | 87.07 | 75.83 | 90.22 | 95.21 | 95.25 | 67.85 | 76.63 | |
| r2CLIP 4b3i | 68.62 | 74.45 | 44.04 | 88.73 | 77.84 | 92.01 | 96.63 | 95.78 | 69.62 | 78.06 | |
| r2CLIP 6b2i | 71.44 | 75.69 | 48.30 | 89.70 | 80.44 | 92.59 | 97.08 | 96.23 | 72.99 | 79.36 |
selection criterion is a harmonic mean of forgetting efficacy and retention, and efficacy saturates once forgetting is close to complete; where no gentler grid point forgets adequately, the selected arm can therefore already have sacrificed substantial retention. Individual configurations should accordingly not be read as characterizing their block count, and the reliable observation is the weaker one that heavily shared backbones retain less on average than the non-recursive references.
D. Hyperparameters
In this section we provide extended information about the experimental setup. All experiments were run on 1 or 4 GPUs (Nvidia H100 96GB or Nvidia RTX 6000 96GB Blackwell Pro).
D.1. CLIP and distillation training configuration
All main baseline CLIP and distillation runs share a single recipe, only the trained architecture varies between them. The models are optimized with AdamW using a maximum learning rate of , , , and . The weight decay is set to 0.1 and applied to the weight matrices, the projection and loss parameters only; biases, normalization parameters, and the learnable logit scale are excluded from decay. Gradients are clipped to a global norm of 1.0, and the learnable logit scale is clamped to at most throughout training. The learning rate follows a linear warmup over 10,000 optimizer steps, approximately 0.74 of an epoch, and then decays on a cosine schedule; warmup is specified as a fixed number of steps rather than as a fraction of training, so it is identical across all runs.
Training uses the combined CC3M and CC12M datasets, comprising 13,874,493 image-text pairs, for 32 epochs. The effective batch size is fixed at 1024 across runs, with micro-batch of 256 across 4 GPUs; this gives 13,549 steps per epoch and 433,568 steps in total, or roughly 444M samples seen. Text is tokenized to a context length of 77 tokens.
During training, images are augmented with a random resized crop covering 90–100% of the source image area at an aspect ratio sampled from [3/4, 4/3], then resized to ; no horizontal flip, color jitter or grayscale augmentation is applied. At evaluation, im-
Table 12. Visual grounding accuracy [%] at IoU across the full block/iteration grid, following the HiVG [34] adaptation protocol; the configuration is given in Supplementary D.2. Teacher denotes the DFN-2B ViT-B/16 and Ref. CLIP the non-recursive ViT-B/16 distilled from it under the same recipe. Unlike HiVG we omit LoRA pre-adaptation on MSCOCO and adapt each checkpoint directly to the target dataset, so absolute values are not directly comparable to the published ones. Bold marks the best recursive model per column and underline the best model overall. Extended version of Table 4 in the main paper.
| CLIP Model | RefCOCO | RefCOCO+ | RefCOCOg | ReferIt test | Flickr test | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| val | testA | testB | val | testA | testB | val | test | |||
| ViT-B/16 (OAI chkpt) | 83.99 | 86.86 | 78.45 | 73.96 | 81.98 | 63.06 | 74.16 | 74.39 | 68.62 | 80.85 |
| Teacher | 83.03 | 85.97 | 78.26 | 72.89 | 79.19 | 63.10 | 73.43 | 73.52 | 68.26 | 79.65 |
| Ref. CLIP | 84.31 | 86.68 | 78.85 | 73.21 | 78.46 | 64.74 | 75.25 | 74.00 | 68.98 | 80.18 |
| rCLIP 1b12i | 80.08 | 82.81 | 74.55 | 67.61 | 74.13 | 57.95 | 69.26 | 68.73 | 67.12 | 76.44 |
| rCLIP 2b6i | 81.66 | 83.34 | 76.57 | 70.07 | 75.44 | 60.85 | 71.22 | 70.82 | 67.74 | 78.16 |
| rCLIP 3b4i | 81.75 | 84.56 | 76.96 | 70.99 | 76.78 | 61.30 | 72.24 | 71.93 | 68.19 | 78.28 |
| rCLIP 4b3i | 82.13 | 85.13 | 76.94 | 71.97 | 77.27 | 63.45 | 71.73 | 72.00 | 68.98 | 78.62 |
| rCLIP 6b2i | 83.24 | 85.05 | 78.73 | 72.38 | 77.23 | 63.45 | 71.94 | 71.64 | 69.41 | 79.40 |
| r2CLIP 1b12i | 79.95 | 82.70 | 75.16 | 68.08 | 75.31 | 59.77 | 68.42 | 68.57 | 66.58 | 76.36 |
| r2CLIP 2b6i | 81.72 | 84.77 | 77.08 | 70.78 | 75.86 | 61.30 | 71.18 | 71.73 | 68.03 | 78.53 |
| r2CLIP 3b4i | 82.04 | 85.05 | 76.22 | 71.06 | 77.32 | 62.57 | 72.10 | 71.27 | 68.24 | 78.53 |
| r2CLIP 4b3i | 82.85 | 85.51 | 78.04 | 70.96 | 76.38 | 61.14 | 72.51 | 72.27 | 69.11 | 78.58 |
| r2CLIP 6b2i | 82.80 | 84.88 | 78.04 | 73.90 | 78.95 | 64.10 | 72.94 | 71.78 | 69.41 | 79.27 |
ages are resized to 224 on the short side and center-cropped to . Both paths use bicubic interpolation with antialiasing and normalize with standard CLIP statistics, mean (0.4815, 0.4578, 0.4082) and standard deviation (0.2686, 0.2613, 0.2758).
Runs are executed with distributed data parallelism in BF16 mixed precision, with an evaluation batch size of 256 and a fixed random seed of 42.
D.2. Visual grounding configuration
All grounding runs share a single recipe following HiVG [34]; only the vision and text backbones vary between them, and every backbone is fine-tuned separately on each dataset. The pre-trained encoders remain frozen: gradients reach only the LoRA adapters, the cross-modal bridges, the fusion transformer and the prediction heads. All trainable parameters live in a single optimizer group, so there is no separate backbone or head learning rate.
Optimization. We use AdamW with , , and weight decay , with gradients clipped to a global norm of 1.0. Training proceeds in curriculum phases (Table 14); each phase resumes from the previous phase's best-validation checkpoint and restarts a cosine schedule from its own peak learning rate, stepped once per epoch and without warmup. Peak rates fall from in the warmup phase to in the final stage. The effective batch size is fixed per phase across every backbone at four times the per-GPU value, running from 640 down to 320 over the curriculum, so the optimization trajectory is identical regardless of the backbone; incomplete batches are dropped during training only. Runs use distributed data parallelism in FP32 with seed 13 offset by process rank; we select the checkpoint with the best validation Acc@0.5 and report top-1 accuracy at an IoU threshold of 0.5.
Curriculum. The Hi-LoRA curriculum consists of phases, where is the number of distinct transformer blocks in the backbone. In the warmup phase the backbone carries no adapters and only the bridges, fusion transformer and heads are trained; each subsequent stage unlocks vision adapters on a further fraction of the distinct blocks, cumulatively. Because adapters are tied to unique weight matrices rather than to depth positions, a backbone with fewer than three distinct blocks cannot unlock a new one at every stage and therefore runs a correspondingly shorter curriculum; for the non-recursive twelve-block backbones the cumulative schedule recovers HiVG's original 5/8/12 unlock pattern. The text-tower adapters are unlocked flat, across all blocks at once, from stage 1 onward. Because adapters are tied to distinct blocks rather than to depth positions, blocks unlocked in early stages are re-executed throughout the unrolled encoder: for , , adapting the first block adapts execution steps 1, 5 and 9. The curriculum therefore stages adaptation over parameter groups rather than over network depth, and coincides with HiVG's shallow-to-deep schedule only in the
Table 13. Zero-shot and post-DIET results across the full block/iteration grid. is forget-set and test-set accuracy [%], averaged over five seeds with one randomly selected class removed per seed; lower indicates more effective forgetting and higher better retention. The Average columns report the unweighted mean over the three datasets. Unlearning uses DIET [16] with a learning rate selected per backbone–dataset pair; the configuration is given in Supplementary D.4. In the post-DIET block, bold marks the best recursive model and underline the best model overall on average . Extended version of Table 5 in the main paper.
| CLIP Model | Flowers102 | Pets | Food101 | Average | ||||
|---|---|---|---|---|---|---|---|---|
| (%) | (%) | (%) | (%) | (%) | (%) | (%) | (%) | |
| Zero-shot | ||||||||
| ViT-B/16 (OAI chkpt) | 92.61±8.30 | 70.56±0.12 | 83.25±21.55 | 89.12±0.37 | 87.68±4.34 | 85.85±0.05 | 87.85 | 81.84 |
| Teacher | 83.50±27.84 | 80.35±0.16 | 92.00±9.30 | 93.34±0.23 | 90.24±3.13 | 87.77±0.05 | 88.58 | 87.15 |
| Ref. CLIP | 88.39±19.50 | 66.72±0.13 | 89.25±13.91 | 92.18±0.29 | 88.44±2.75 | 80.23±0.04 | 88.69 | 79.71 |
| rCLIP 1b12i | 66.96±14.31 | 49.22±0.25 | 85.49±11.87 | 87.20±0.22 | 66.56±11.19 | 58.37±0.10 | 73.00 | 64.93 |
| rCLIP 2b6i | 73.20±21.11 | 58.74±0.16 | 76.75±18.04 | 87.93±0.22 | 75.08±7.17 | 67.28±0.08 | 75.01 | 71.32 |
| rCLIP 3b4i | 75.00±28.97 | 60.70±0.13 | 83.00±13.27 | 88.66±0.26 | 79.04±8.04 | 71.05±0.07 | 79.01 | 73.47 |
| rCLIP 4b3i | 80.19±26.38 | 62.02±0.16 | 85.50±12.89 | 90.17±0.19 | 80.20±8.33 | 72.38±0.08 | 81.96 | 74.86 |
| rCLIP 6b2i | 81.51±26.65 | 63.44±0.17 | 84.00±15.85 | 90.65±0.25 | 82.84±6.36 | 74.78±0.05 | 82.78 | 76.29 |
| r2CLIP 1b12i | 68.85±21.92 | 36.40±0.31 | 78.98±18.49 | 83.42±0.42 | 71.24±4.53 | 54.15±0.04 | 73.02 | 57.99 |
| r2CLIP 2b6i | 81.89±16.39 | 51.25±0.21 | 82.99±17.55 | 85.71±0.32 | 74.72±4.58 | 63.33±0.04 | 79.87 | 66.76 |
| r2CLIP 3b4i | 88.70±7.79 | 57.14±0.13 | 85.00±15.08 | 89.26±0.19 | 76.24±6.20 | 68.43±0.06 | 83.31 | 71.61 |
| r2CLIP 4b3i | 87.71±12.12 | 54.75±0.16 | 83.00±17.08 | 89.41±0.25 | 81.04±4.57 | 70.53±0.05 | 83.92 | 71.56 |
| r2CLIP 6b2i | 81.88±24.64 | 59.06±0.18 | 84.50±14.96 | 89.48±0.26 | 79.76±8.21 | 73.05±0.08 | 82.05 | 73.86 |
| After DIET | ||||||||
| ViT-B/16 (OAI chkpt) | 4.36±5.06 | 56.60±2.06 | 2.00±2.59 | 73.79±9.93 | 12.72±14.34 | 72.80±4.00 | 6.36 | 67.73 |
| Teacher | 3.87±6.50 | 74.24±3.46 | 5.01±4.68 | 77.18±4.75 | 13.08±11.63 | 59.15±11.14 | 7.32 | 70.19 |
| Ref. CLIP | 2.60±3.16 | 56.45±4.57 | 3.00±5.35 | 69.10±14.18 | 14.12±12.58 | 47.10±13.61 | 6.57 | 57.55 |
| rCLIP 1b12i | 4.29±6.27 | 33.48±10.18 | 12.58±12.10 | 45.62±9.19 | 9.32±9.26 | 37.46±8.65 | 8.73 | 38.85 |
| rCLIP 2b6i | 1.54±3.44 | 31.87±7.97 | 5.79±6.54 | 57.35±14.05 | 4.64±1.39 | 34.10±17.80 | 3.99 | 41.11 |
| rCLIP 3b4i | 7.20±8.16 | 51.92±2.83 | 22.72±36.72 | 59.82±10.85 | 15.52±6.62 | 44.93±4.72 | 15.15 | 52.22 |
| rCLIP 4b3i | 2.38±4.16 | 46.86±9.74 | 5.53±4.43 | 59.98±11.75 | 17.32±4.62 | 53.43±11.78 | 8.41 | 53.42 |
| rCLIP 6b2i | 1.84±2.06 | 44.67±8.61 | 4.02±2.44 | 67.68±6.17 | 9.56±5.12 | 51.19±8.84 | 5.14 | 54.51 |
| r2CLIP 1b12i | 5.67±5.45 | 27.73±4.16 | 13.14±24.61 | 56.63±13.02 | 5.96±7.42 | 31.77±3.09 | 8.26 | 38.71 |
| r2CLIP 2b6i | 5.36±7.84 | 39.58±4.96 | 2.01±1.92 | 52.31±10.92 | 16.40±6.69 | 45.78±6.05 | 7.92 | 45.89 |
| r2CLIP 3b4i | 5.15±8.67 | 40.12±11.39 | 13.03±12.00 | 64.77±9.37 | 9.40±7.32 | 50.39±4.73 | 9.19 | 51.76 |
| r2CLIP 4b3i | 2.83±1.89 | 42.50±6.69 | 10.52±9.62 | 58.25±12.22 | 9.48±3.56 | 50.67±10.52 | 7.61 | 50.47 |
| r2CLIP 6b2i | 0.82±1.13 | 44.30±11.42 | 6.27±6.19 | 68.28±11.80 | 9.56±5.53 | 52.27±7.47 | 5.55 | 54.95 |
non-recursive case.
Adaptation and fusion. LoRA adapters use rank 32 with , giving a scale of 0.5, and dropout 0.1. In the vision tower they are attached to the attention projections and the MLP. Four multi-modal adaptive cross-modal bridges connect the vision tower to the fusion module; for recursive backbones we attach them to executions rather than to layers, placing them after executions 1, 4, 8 and 12 of the unrolled encoder, which for a non-recursive backbone coincides with HiVG's original placement. Each bridge uses a single attention head at width 512 with dropout 0.1, and its output projection is initialized to zero so that the bridge begins as a no-op. The number of text-encoder depths concatenated into the bridges is dataset-specific: the final depth alone for RefCOCO and Flickr30k Entities, depths for RefCOCO+ and ReferItGame, and all twelve for Ref-COCOg. Every hidden state is layer-normalized before concatenation, and since this choice changes the bridge parameter shapes it is held fixed across all phases of a curriculum. The fusion module is a six-layer pre-norm vision–language encoder of width 512 with eight heads, feed-forward dimension 2048 and dropout 0.1, operating on a sequence of 196 visual tokens plus [CLS], 77 text tokens, and a learned [REG] token from which the box is predicted.
Data and augmentation. We train on RefCOCO, RefCOCO+, RefCOCOg (umd split), ReferItGame and Flickr30k Entities in the fully supervised single-dataset setting, at resolution with patch size 16 and text context length 77. Every training image is resized so that its long side is drawn uniformly from
Table 14. Hi-LoRA curriculum. Each phase resumes from the previous phase's best-validation checkpoint and restarts the cosine schedule. The number of phases is , where is the number of distinct transformer blocks: adapters are tied to unique blocks, so a backbone with cannot unlock a new one at every stage. Vision adapters are unlocked cumulatively over three groups of distinct blocks, split as evenly as possible with any remainder assigned to the earlier groups; for this gives 5/8/12, reproducing HiVG's original unlock pattern. The Blocks column refers to the vision tower only: text-tower adapters are unlocked across all blocks at once from stage 1 onward.
| Phase | Blocks | Epochs* | LR | Batch |
|---|---|---|---|---|
| Warmup | - | 60/30 | 640 | |
| Stage 1 | 1st group | 20/5 | 480 | |
| Stage 2 | 2nd group | 20/5 | 480 | |
| Stage 3 | all N | 20/5 | 320 |
Cumulative unlocks by .
*RefCOCO/Flickr. RefCOCO, RefCOCO+, RefCOCOg (umd) and ReferItGame share the 60/20/20/20 budget; Flickr30k Entities uses 30/5/5/5. Batch sizes are effective (per-GPU × 4).
. Before this resize, and only for expressions containing none of the words left, right, top, bottom or middle, the image passes with probability 0.5 through a short-side resize to followed by a random-size crop; the crop is retried up to twenty times for a window that retains the target box and is skipped if none is found. Expressions carrying a directional word always take the plain-resize path, for the same reason that horizontal flipping is disabled throughout: both transformations invalidate spatial referring expressions. With probability 0.8, brightness, contrast and saturation are then rescaled by independent factors drawn from and applied in random order; there is no hue jitter and no Gaussian blur. Images are normalized with ImageNet statistics, mean (0.485, 0.456, 0.406) and standard deviation (0.229, 0.224, 0.225), and padded to the square input with a mask marking the padded region, placed at a random offset during training and centred at evaluation. Evaluation applies no augmentation beyond the long-side resize to 224.
Objective. The training objective combines and GIoU box losses at weight 2.0 each, an image-text contrastive term at weight 1.0, and token-alignment and segmentation terms each formed as focal loss at weight 20.0 plus dice loss at weight 2.0, with focal parameters and .
D.3. Few-shot adaptation configuration
Few-shot results follow CLIP-LoRA [39] with its published recipe inherited unchanged, so that our distilled backbones and the non-recursive controls are directly comparable. A single configuration is shared by every run: all backbone configurations across all ten datasets use identical settings, with no per-dataset or per-configuration tuning. Only the backbone under adaptation varies.
Adapters. LoRA adapters of rank are inserted into the query, key and value projections of both the vision and the text tower, with under CLIP-LoRA's scaling convention rather than the of the original LoRA formulation. The matrices are initialized with Kaiming-uniform sampling and the matrices with zeros, so adaptation begins as a no-op, and dropout of 0.25 is applied at the adapter input. The backbone is frozen throughout, including the logit scale, which is held at 100 rather than learned. Adapters are attached to every distinct block of the recursive core and shared across all iterations of that block, exactly as the frozen weights are; for the non-recursive controls this reduces to one adapter per layer across all twelve vision and twelve text blocks.
This is where the parameter efficiency of the recursive backbone is most visible. With , each adapted projection adds parameters, so the adapter budget is set by the number of distinct blocks rather than by depth. The non-recursive control trains 184,320 adapter parameters; rCLIP, whose text tower is not recursive, trains , from 82,944 at to 129,024 at ; and rCLIP trains 15,360N, from 15,360 at to 92,160 at . In every case this is at most 0.13% of the backbone parameters, and the most constrained rCLIP configuration requires an order of magnitude fewer adapter parameters than the control.
Optimization. Adapters are trained with AdamW at a learning rate of with , , and weight decay applied uniformly to all LoRA parameters. The learning rate follows cosine annealing to a floor of without warmup, and no gradient clipping is used. Following CLIP-LoRA, the iteration budget is fixed at shots, giving 8,000 iterations at batch size 32, or 256,000 samples seen. The number of epochs is therefore a consequence of the support-set size for classes rather than a hyperparameter, ranging from 16 epochs on ImageNet to 1,600 on EuroSAT. Each run uses a single GPU in FP16 mixed precision.
Data and protocol. We use 16 shots per class on all ten datasets, with the support and test splits of Zhou et al. [42]
TransVG 32i schedule. At the original 640 px input it spans 640–448; at 224 the smallest scale reduces the long side to 32 px, i.e. patches within the padded canvas. We keep the published rule.
These are ImageNet rather than CLIP normalization statistics, inherited from the HiVG/TransVG data pipeline and left unchanged so that recursive and non-recursive backbones are adapted under an identical protocol.
and the official 50,000-image validation set for ImageNet. Training images are augmented with a random resized crop covering 8–100% of the source area, resized to , and horizontally flipped with probability 0.5; no color jitter or grayscale augmentation is used. Evaluation resizes to 224 and center-crops to . Both paths use bicubic interpolation and the standard CLIP normalization statistics, mean (0.4815, 0.4578, 0.4082) and standard deviation (0.2686, 0.2613, 0.2758). Text is tokenized to a context length of 77.
Classifiers are built from the single generic template "a photo of a {}".", with underscores in class names replaced by spaces, for both the zero-shot reference and the LoRA-tuned classifier. This is CLIP-LoRA's protocol and differs from the 80-template ensemble used for the zero-shot results of Sect. 4.3; the zero-shot column of Table 3 is therefore evaluated under the same protocol as its adjacent few-shot column, and comparisons should be made within a table rather than across. Following the original protocol we perform no validation-based model selection and report final-iterate top-1 accuracy from a single run with seed 1.
D.4. Unlearning configuration
Unlearning follows DIET [16] with its published recipe; only the backbone and the unlearning learning rate vary between runs. Each run removes a single forget concept from a frozen CLIP-style backbone using only the 16-shot forget set, with no retain data loaded at any point. At batch size 32 a 16-shot forget set fits in a single batch, so one epoch is one optimizer step and the entire unlearning budget is 30 steps.
Objective. The loss combines three terms, , weighted at 30, 1 and 20 respectively. Image features are norm-clipped at radius 1.25 and mapped into a Poincaré ball of curvature via the exponential map at the origin, giving a realized feature norm of approximately 0.848. Prototypes are the text embeddings of the retained classes, placed radially at the ball boundary with . Transport cost between features and prototypes is the Busemann function ; the Busemann penalty itself is instantiated with dimension 0, so it reduces to with no dimension-dependent regularizer. Assignments are obtained by entropic Sinkhorn with and at most 2,000 iterations under uniform marginals, and each feature is assigned the prototype given by the row-argmax of the resulting plan. The retain term is a retain-data-free surrogate: it penalizes mean over the in-batch image-image cosine Gram matrix of the forget batch, encouraging the model to preserve similarity structure without access to retained examples.
Adapters and optimization. LoRA adapters of rank 4 with (effective scale ) and dropout 0.1 are attached to the query, key and value projections of the vision tower only; the feedforward and output projections are left unadapted. As elsewhere in this work, adapters are attached to every distinct block and shared across iterations, so the trainable count scales with the number of distinct blocks rather than with depth, ranging from 0.02 M at a single block to 0.22 M for a standard twelve block ViT-B/16. Training uses AdamW with , , and weight decay on all LoRA matrices, under cosine annealing over the 30 steps to a floor of with no warmup and no gradient clipping. Following the original method, the learning rate is dropped by a factor of ten whenever forget-set validation accuracy falls below 2%, measured on at most eight held-out images of the forget class, with a two-step cooldown between drops.
Learning-rate selection. DIET's published global learning rate is mis-tuned for backbones with wider forget-class margins, so we perform a search for every evaluated model over for , bracketing the published rate on both sides, and apply the same grid to the reference backbones. For each backbone–dataset pair we select the rate maximizing the harmonic mean of a forgetting effectiveness score
and a retention score , averaged over the five seeds, where and are the pre-unlearning zero-shot forget and test accuracies. Arms whose zero-shot forget margin lies within five points of chance are excluded as degenerate. Selection is performed independently for each backbone–dataset pair, so the rate chosen for one dataset does not depend on the others.
Protocol. We evaluate on Flowers102, OxfordPets and Food101, unlearning one randomly drawn class per seed over five seeds per backbone–dataset pair. No augmentation is used: images are resized to 224 and center cropped to with bicubic interpolation, identically for unlearning and evaluation, and normalized with the standard CLIP statistics, mean (0.4815, 0.4578, 0.4082) and standard deviation (0.2686, 0.2613, 0.2758). Text context length is 77. Evaluation builds a zero-shot classifier over all C classes at a fixed logit scale of 100; is accuracy on the full pool of held-out images of the forget class and is accuracy on the dataset test split, both reported before and after unlearning. Runs use FP32 for training and FP16 mixed-precision for evaluation, one GPU per run, with cuDNN in deterministic mode and benchmarking disabled.