arXiv:2611.07063cs.CVNov 2026

Manuscript Offprint

arXiv:2611.07063

SD-LoRA: Training-Time Structural Distillation into LoRA for Few-Shot Vision-Language Adaptation

Mohammed Rahman Sherif Khan Mohammad, Ardhendu Behera, Sandip Pradhan, Swagat Kumar, Yonghuai Liu

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

Mohammed Rahman Sherif Khan Mohammad

Edge Hill University, UK

Mohamm@edgehill.ac.uk

Ardhendu Behera *

Edge Hill University, UK

Beheraa@edgehill.ac.uk

Sandip Pradhan

Edge Hill University, UK

Pradhans@edgehill.ac.uk

Swagat Kumar

Edge Hill University, UK

Kumars@edgehill.ac.uk

Yonghuai Liu

Edge Hill University, UK

Liuyo@edgehill.ac.uk

Abstract

Few-shot adaptation of vision–language models must balance two competing goals: learning fine-grained visual distinctions from very limited supervision, and preserving the efficiency that makes frozen CLIP-like models attractive for deployment. Existing lightweight adaptation methods, including prompt tuning, LoRA, and cache-based adapters, typically supervise global image embeddings and therefore underuse token-level structure. Conversely, structure-aware methods can exploit local evidence but often introduce additional inference-time computation. We propose SD-LoRA, a structural distillation framework that uses token-level graph reasoning only during training and absorbs its effect into a lightweight LoRA-adapted CLIP model. During training, a heterogeneous graph teacher models patch–patch, global–local, and visual–text relations over high-resolution ViT tokens. Rather than keeping this graph at test time, SD-LoRA transfers its structural bias into the shared CLIP-LoRA backbone through implicit distillation and Prototype Predictive Alignment, which aligns graph-conditioned representations with support-derived class prototypes. At inference, the entire graph teacher is discarded; prediction uses only a single CLIP-LoRA forward pass and a cache-based classifier. Across 11 few-shot benchmarks, SD-LoRA improves over a strong CLIP-LoRA baseline by 2.4/1.8/3.0/2.4/2.0 percentage points in the 1/2/4/8/16-shot settings, while adding no graph computation at test time. Further results on base-to-novel generalization, cross-dataset transfer, OOD robustness, and calibration show that training-time structural supervision improves not only accuracy but also transfer reliability. Code is available at https://github.com/MR-Sherif/SD-LoRA.git.

1 Introduction

Vision–language models (VLMs) such as CLIP Radford et al. [2021] and ALIGN Jia et al. [2021] are now standard foundations for open-vocabulary and few-shot recognition. Their strength comes from large-scale image–text pretraining, which produces transferable global representations and strong zero-shot performance. However, this same global representation that makes CLIP efficient can become a limitation when only a few labeled examples are available. In many few-shot tasks, especially fine-grained recognition, class distinctions depend not just on coarse semantic alignment but on subtle local cues such as texture, part shape, object configuration, or small discriminative regions.

*Corresponding author.

Preprint.

Figure

Figure 1: Structural distillation sharpens token-level evidence. We visualize patch-level attention maps for frozen CLIP and SD-LoRA using cosine similarity between the final [CLS] token and patch tokens. Frozen CLIP attends strongly to background foliage and misclassifies the image as clematis, while SD-LoRA shifts focus toward discriminative flower regions and correctly predicts balloon flower. The graph teacher is used only during training; the visualization is produced from the deployed LoRA backbone without test-time graph computation.

Recent CLIP adaptation methods advance this setting along several axes. Prompt-learning adapts CLIP's text interface Zhou et al. [2022b,a], Khattak et al. [2023a,b], distillation-based prompts improve transfer from stronger teachers Li et al. [2024], and base-to-novel approaches explicitly manage the tradeoff between fitting base classes and preserving novel-class generalization Li et al. [2025]. In parallel, adapter and cache-based methods such as CLIP-Adapter and Tip-Adapter Gao et al. [2024], Zhang et al. [2022], along with recent kernel views of cache adaptation Bendou et al. [2025], provide lightweight alternatives to full backbone fine-tuning. LoRA-based adaptation likewise achieves parameter efficiency by updating only low-rank components Hu et al. [2022], Zanella and Ben Ayeh [2024]. Most methods still use a single global image embedding for supervision or retrieval, which improves efficiency but does not explicitly model interactions among local visual tokens or between local tokens and class semantics.

This creates a pooled-supervision bottleneck: the adapted model maps an image to the right coarse region of CLIP's embedding space, but neglects local token interactions needed to separate fine-grained classes. Although CLIP's ViT backbone encodes dense token-level information, standard adaptation collapses these tokens into a pooled feature before supervision, weakening or discarding cues such as part shape, texture, and spatial layout. Region-level alignment, dense prediction, multi-crop reasoning, or graph structure Rao et al. [2022], Zhong et al. [2022], Li et al. [2022], Ahmad et al. [2025] can recover such cues, but usually require extra detectors, dense computation, multiple crops, or graph modules at inference. Consequently, existing methods fall into two regimes: lightweight approaches that adapt global representations but underuse structure, and structure-aware approaches that better exploit local evidence but increase deployment cost.

This paper asks a simple question: can token-level structural reasoning improve few-shot CLIP adaptation without being used at test time? We answer this via proposing SD-LoRA, a structural distillation framework for few-shot vision-language adaptation. SD-LoRA uses graph reasoning only as training-time supervision, not for inference. During training, it builds a heterogeneous graph over high-resolution visual tokens and class-text embeddings, modeling patch-patch, global-local, and visual-text relations. The teacher is optimized to reveal a discriminative local structure that is never deployed. Its structural signal is distilled into a shared CLIP-LoRA backbone, so the final model is just a lightweight LoRA-adapted CLIP encoder with a cache-based classifier.

The core idea is implicit structural distillation. Instead of conventional logit-based distillation Hinton et al. [2015], SD-LoRA transfers structure via shared-backbone optimization: the graph teacher and the deployed student use the same LoRA-adapted visual backbone, so gradients from the graph objective directly shape the low-rank updates used in inference. To stabilize this in the low-shot regime, we introduce Prototype Predictive Alignment (PPA), aligning graph-conditioned representations with support-based class prototypes, pushing the LoRA-updated features to form compact, structure-aware class regions instead of overfitting to individual support examples. Unlike recent transductive/test-time adaptation methods that rely on unlabeled test batches or update the model during deployment Zanella et al. [2024, 2025], Yoon et al. [2024], we target the inductive few-shot setting: after training in the support set, it performs single-image inference, with no test-time graph construction, unlabeled-batch assumptions or online adaptation.

Contributions: (1) We propose SD-LoRA, a training-time structural distillation framework that injects token-level graph reasoning into a CLIP-LoRA backbone while keeping inference as lightweight LoRA+cache adaptation. (2) We introduce a heterogeneous graph teacher over ViT tokens and class-text embeddings, enabling patch-patch, global-local, and visual-text relational supervision without test-time graph computation. (3) We introduce Prototype Predictive Alignment as a complementary regularizer of graph-conditioned supervision, boosting few-shot accuracy, base-to-novel generalization, cross-dataset transfer, and OOD robustness in the same lightweight inference pathway.

References (98)