ExPLoRA: Parameter-Efficient Extended Pre-Training to Adapt Vision Transformers under Domain Shifts

Samar Khanna, Medhanie Irgau, David B. Lobell, Stefano Ermon

Visual Foundation Models (VFMs) like DinoV2 and MAE are incredibly powerful, but they often suffer from a "natural image bias." Because they are trained on internet-scale datasets consisting mostly of everyday photos, they frequently underperform when applied to specialized domains like satellite imagery, medical scans, or agricultural data.

To bridge this domain gap, researchers traditionally face a difficult choice:

  1. Fine-tune the model: This is fast and cheap, but it often fails to overcome massive domain shifts (e.g., the stark difference between a natural landscape photo and a multi-spectral satellite view).
  2. Pre-train from scratch: This is highly effective but prohibitively expensive, requiring thousands of GPU hours and discarding the rich, general-purpose features the model has already learned.

ExPLoRA (Extended Pre-training with LoRA) introduces a highly effective middle ground: adapting massive vision foundation models to specialized domains through efficient, unsupervised pre-training. By combining strategic unfreezing of a few transformer blocks with low-rank adaptation (LoRA), ExPLoRA achieves state-of-the-art results while using significantly fewer trainable parameters and compute resources than training from scratch.

Conceptual overview of ExPLoRA compared to standard full pre-training.

The ExPLoRA Architecture

The core of ExPLoRA is a "best of both worlds" architecture designed for extended pre-training. Instead of updating every weight in a Vision Transformer (ViT), the authors employ a specific, parameter-efficient recipe:

  • Strategic Unfreezing: The method fully unfreezes 1 or 2 specific transformer blocks (typically the final ones in the network).
  • LoRA Everywhere Else: Low-Rank Adaptation (LoRA) is applied to the query ($Q$) and value ($V$) matrices in the attention layers of all other blocks.
  • Normalization Layers: These layers remain unfrozen throughout the network to help the model adapt to new data distributions.
  • Continued Self-Supervision: The model continues its original pre-training objective (such as DinoV2’s distillation or MAE’s reconstruction) on unlabeled data from the new target domain.
ExPLoRA architecture combining LoRA-tuned blocks with strategically unfrozen full-rank blocks.

By following this recipe, the model gently "nudges" its existing knowledge toward the new domain using LoRA, while the fully unfrozen blocks are free to learn the high-level, global features unique to the new data.

Key Insights and Advantages

Through spectral analysis of the feature maps, the authors discovered that the middle layers of a ViT capture local textures, while the deeper layers capture global semantics. By unfreezing the final blocks, ExPLoRA allows the model to better capture the "global" context of a new domain without overfitting to local details.

Furthermore, ExPLoRA offers amortized efficiency. Unlike task-specific fine-tuning, ExPLoRA acts as a foundational pre-training step. Once a model is adapted to a domain (e.g., satellite images), the resulting weights can be used across multiple downstream tasks—such as classification, detection, or segmentation—yielding superior results across the board. It also serves as an excellent starting point for other Parameter-Efficient Fine-Tuning (PEFT) methods, improving their downstream performance.

Datasets and Performance

The authors rigorously tested ExPLoRA across a wide range of domain shifts, including satellite imagery (fMoW, SpaceNet-v1, RESISC-45, NAIP, EuroSAT), medical and agricultural benchmarks (Camelyon17, iWildcam, GlobalWheat), and synthetic-to-real datasets (VisDA-2017). Notably, they demonstrated that an RGB-trained model can be adapted to 13-band multi-spectral data simply by unfreezing the patch embedding layer alongside the ExPLoRA recipe.

Key Results: * New State-of-the-Art: On the competitive fMoW-RGB satellite benchmark, ExPLoRA achieved 79.28% accuracy, outperforming models that were fully pre-trained from scratch. * Linear Probing Leap: In linear probing evaluations (where the backbone is frozen and only a final classification layer is trained), ExPLoRA showed an 8.2% improvement over prior state-of-the-art methods, proving the model learned vastly superior domain representations. * Massive Resource Savings: ExPLoRA required only ~100 GPU hours compared to the 960+ hours needed for full pre-training. It utilizes <10% of the trainable parameters compared to full-tuning, resulting in a 4x-8x reduction in carbon footprint.

Limitations and Future Work

While highly effective, ExPLoRA is sensitive to dataset size, performing best on larger unlabeled datasets (over 50k samples) to avoid overfitting. Additionally, the choice of which blocks to unfreeze and the optimal LoRA rank requires some domain-specific tuning, though the authors provide a systematic eigenvalue analysis to guide this process. Finally, while this work focuses on Vision Transformers, extending the ExPLoRA methodology to Large Language Models (LLMs) represents a promising frontier for future research.

Summary updated

BibTeX
@inproceedings{khanna2025explora,
  author = {Samar Khanna and Medhanie Irgau and David B. Lobell and Stefano Ermon},
  title = {{ExPLoRA: Parameter-Efficient Extended Pre-Training to Adapt Vision Transformers under Domain Shifts}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=OtxLhobhwb},
}
Figure