Model Reprogramming Demystified: A Neural Tangent Kernel Perspective

Ming-Yu Chung, Jiashuo Fan, Hancheng Ye, Qinsi Wang, Wei-Chen Shen, Chia-Mu Yu, Pin-Yu Chen, Sy-Yen KuoarXiv 2025

Abstract

Model Reprogramming (MR) is a resource-efficient framework that adapts large pre-trained models to new tasks with minimal additional parameters and data, offering a promising solution to the challenges of training large models for diverse tasks. Despite its empirical success across various domains such as computer vision and time-series forecasting, the theoretical foundations of MR remain underexplored. In this paper, we present a comprehensive theoretical analysis of MR through the lens of the Neural Tangent Kernel (NTK) framework. We demonstrate that the success of MR is governed by the eigenvalue spectrum of the NTK matrix on the target dataset and establish the critical role of the source model's effectiveness in determining reprogramming outcomes. Our contributions include a novel theoretical framework for MR, insights into the relationship between source and target models, and extensive experiments validating our findings.

Introduction

Training massive models like GPT-4 or ResNet-50 from scratch is prohibitively expensive. Model Reprogramming (MR)—also known as Visual Prompting in computer vision—offers a "green" alternative: instead of fine-tuning millions of parameters, the large "source" model is kept frozen, and only a tiny input transformation layer and an output mapping are trained. While MR has shown incredible empirical success, such as using a speech model to classify medical images, the theoretical understanding of why it works or what makes a source model suitable for a specific target task has remained elusive. This research seeks to identify the mathematical relationship between the source model, the target data, and the final accuracy.

The Model Reprogramming Framework

The authors analyze MR through the lens of the Neural Tangent Kernel (NTK). The NTK describes how a neural network evolves during training; in the infinite-width limit, it allows complex neural network optimization to be treated as a simpler kernel regression problem.

Overview of the Model Reprogramming (MR) framework and its decomposition into NTK components.

As illustrated in the framework above, the "Target Model" NTK is decomposed into three distinct parts: the input transformation layer, the frozen source model, and the output mapping. This decomposition allows for a granular analysis of how each component contributes to the final model's performance on the target task.

Theoretical Analysis via NTK

A key theoretical breakthrough of this work is the connection between the empirical risk (training loss) and the eigenvalue spectrum of the NTK matrix. Specifically, the authors proved that a larger minimum eigenvalue ($\lambda_{min}$) of the kernel matrix leads to lower loss and faster convergence.

Theoretical relationship between source model performance and target model performance established through NTK eigenvalue analysis.

They established a proportional relationship showing that if a source model has a "healthy" eigenvalue spectrum (high $\lambda_{min}$), it is mathematically more likely to be successfully reprogrammed for a target task, provided the input transformation can effectively align the data. This bridges the gap between a source model's inherent quality and its performance on a new target task.

Key Insights and Empirical Validation

  • The $\lambda_{min}$ Connection: The success of reprogramming is specifically governed by the minimum eigenvalue of the kernel matrix. If this value is too small, the model struggles to learn the target task, regardless of data volume.
  • Depth as a Proxy for Quality: Experiments with VGG and ResNet architectures revealed that as models become deeper, the minimum eigenvalue of their source NTK increases. This explains why deeper, more powerful models are generally easier to reprogram.
  • The Alignment Assumption: For MR to work, the input transformation layer must effectively map target data into a space where the source model's features are useful. The paper formalizes this as the requirement that the transformation must align the target data with the inherent strengths of the source model.
  • CNN Anomalies: Simple CNNs (without residual connections) did not always follow the theory perfectly. The authors used this to prove that these architectures violated alignment assumptions, providing a theoretical explanation for why some architectures are poor candidates for reprogramming.

Results and Scalability

The theory was validated using standard benchmarks (ImageNet-10 as source; CIFAR-10 and SVHN as targets) and large-scale feature extractors like CLIP (ResNet-50). In large-scale experiments, adding more layers to the "adapter" on top of a frozen CLIP model improved the kernel spectrum and, consequently, the reprogramming accuracy. For example, on CIFAR-10, source accuracy improved from ~52% to ~65% as depth increased, with target performance following a similar upward trend.

Conclusion and Future Work

This framework allows researchers to potentially predict which pre-trained models will be most effective for a new task by analyzing their NTK spectra before starting the reprogramming process. While the theory strictly applies to "sufficiently wide" networks due to the infinite-width assumption of NTK, it holds well in practice for standard models. Future work may involve using these insights to design better automated architectures for input transformation layers, specifically optimizing them to maximize the minimum eigenvalue of the resulting system.

Summary updated

BibTeX
@misc{chung2025model,
  author = {Ming-Yu Chung and Jiashuo Fan and Hancheng Ye and Qinsi Wang and Wei-Chen Shen and Chia-Mu Yu and Pin-Yu Chen and Sy-Yen Kuo},
  title = {{Model Reprogramming Demystified: A Neural Tangent Kernel Perspective}},
  year = {2025},
  eprint = {2506.00620},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00620},
}
Figure