Randomized-MLP Regularization Improves Domain Adaptation and Interpretability in DINOv2

Joel Valdivia Ortega, Lorenz Lamm, Franziska Eckardt, Benedikt Schworm, Marion Jasnin +1 more
10/24/2025
cs.CVcs.AI

No confident code implementation found for this paper.

Abstract

Vision Transformers (ViTs), such as DINOv2, achieve strong performance across domains but often repurpose low-informative patch tokens in ways that reduce the interpretability of attention and feature maps. This challenge is especially evident in medical imaging, where domain shifts can degrade both performance and transparency. In this paper, we introduce Randomized-MLP (RMLP) regularization, a contrastive learning-based method that encourages more semantically aligned representations. We use RMLPs when fine-tuning DINOv2 to both medical and natural image modalities, showing that it improves or maintains downstream performance while producing more interpretable attention maps. We also provide a mathematical analysis of RMLPs, offering insights into its role in enhancing ViT-based models and advancing our understanding of contrastive learning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ortega2025randomizedmlp,
  title  = {Randomized-MLP Regularization Improves Domain Adaptation and Interpretability in DINOv2},
  author = {Joel Valdivia Ortega and Lorenz Lamm and Franziska Eckardt and Benedikt Schworm and Marion Jasnin and Tingying Peng},
  year   = {2025},
  eprint = {2511.05509},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.05509v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.05509.svg)](https://codeofpaper.com/paper/2511.05509)

Discussion