Exploring Model Transferability through the Lens of Potential Energy

Xiaotong Li, Zixuan Hu, Yixiao Ge, Ying Shan, Ling-Yu Duan · DOI

Introduction

In the era of "Model Zoos," developers face a daunting choice: which pre-trained model among dozens or hundreds will perform best on a specific downstream task? The traditional "brute-force" approach—fine-tuning every candidate—is computationally ruinous. To solve this, researchers use transferability metrics to rank models quickly. However, existing static metrics often fail for self-supervised learning (SSL) models. Because SSL models are not trained on class labels initially, their feature space can appear chaotic, leading static metrics to underestimate their potential.

Overview of the PED framework: from a pre-trained model zoo to improved transferability ranking through dynamic representation modeling.

Methods: Potential Energy Decline (PED)

The authors introduce Potential Energy Decline (PED), a physics-inspired method that simulates representation dynamics. PED reframes the fine-tuning process as a physical system seeking a lower energy state.

The Ball Analogy and Interaction Forces

Each class in the downstream dataset is modeled as a "ball" in the latent space. The center of the ball is the mean feature of the class, and its radius is determined by the variance (spread) of those features. When two class "balls" overlap, they are considered to be in a state of high "potential energy" or instability.

To simulate the objective of classification—separating classes—the system applies a repulsive force based on Hooke’s Law ($F = kx$). Using Newton’s second law of motion ($a = F/m$), the algorithm simulates how these class clusters would move apart over a few discrete time steps.

The physical modeling of class clusters as balls with repulsive forces based on their overlap.

Gradient-Free Simulation

Crucially, this simulation happens without backpropagation or updating the neural network's weights. It is a purely mathematical simulation of the feature clusters. Once the clusters have "settled" into a more stable, separated state, standard transferability metrics (like LogME) are applied to this refined, "dynamic" observation.

Experimental Results

The study evaluates PED across a robust "Model Zoo" of 12 state-of-the-art SSL models (including BYOL, MoCo, and SimCLR) and 10 diverse downstream classification tasks.

  • Superior Ranking: PED consistently improves the accuracy of model rankings. On the CIFAR-100 dataset, adding PED to the LogME metric boosted the correlation with ground-truth performance from nearly zero (-0.008) to a highly predictive 0.667 (measured by weighted Kendall’s $\tau_w$).
  • Efficiency: PED is incredibly fast. While full fine-tuning takes minutes or hours, PED adds only about 2 seconds of overhead.
  • Dynamics over Statics: The "aha moment" is realizing that a model's potential is hidden in its tendency to change rather than its current state. By simulating the "push" between classes, we get a preview of the final fine-tuned result.

Discussion and Future Work

PED demonstrates that a model's transferability is better captured by its representation dynamics than by a static snapshot. Visualizations show that PED effectively "cleans up" chaotic initial features, making them look much more like the features of a fully fine-tuned model.

While currently focused on image classification, future work could extend this physical modeling to more complex tasks like object detection or semantic segmentation. Additionally, while the paper suggests default values for elasticity ($k$) and radius ($\lambda$), these might need tuning for vastly different data types. Future work could incorporate more complex dynamics, such as gravitational pull toward class prototypes or nuanced friction models to better mimic actual optimizer behavior.

Summary updated

BibTeX
@inproceedings{li2023exploring,
  author = {Xiaotong Li and Zixuan Hu and Yixiao Ge and Ying Shan and Ling-Yu Duan},
  title = {{Exploring Model Transferability through the Lens of Potential Energy}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00500},
}
Figure