Neural Network Reprogrammability: A Unified Theme on Model Reprogramming, Prompt Tuning, and Prompt Instruction

Zesheng Ye, Chengyi Cai, Ruijiang Dong, Jianzhong Qi, Lei Feng, Pin-Yu Chen, Feng Liu · OpenReview

Abstract

As large-scale pre-trained foundation models continue to expand in size and capability, efficiently adapting them to specific downstream tasks has become increasingly critical. Despite substantial progress, existing adaptation approaches have evolved largely in isolation, without a clear understanding of their interrelationships. This survey introduces neural network reprogrammability as a unifying framework that bridges mainstream model adaptation techniques—model reprogramming, prompt tuning, and prompt instruction—previously fragmented research areas yet converges on a shared principle: repurposing a pre-trained model by manipulating information at the interfaces while keeping the model parameters frozen. These methods exploit neural networks' sensitivity to manipulation on different interfaces, be it through perturbing inputs, inserting tokens into intermediate layers, or providing task-specific examples in context, to redirect model behaviors towards desired outcomes. We then present a taxonomy that categorizes such information manipulation-based adaptation approaches across four key dimensions: manipulation format (fixed or learnable), location (interfaces where manipulations occur), operator (how they are applied), and output alignment requirement (post-processing needed to align outputs with downstream tasks). Notably, this framework applies consistently across data modalities, independent of specific model architectures. Moreover, viewing established techniques like in-context learning and chain-of-thought prompting through this lens reveals both their theoretical connections and practical distinctions. We further analyze remaining technical challenges and ethical considerations, positioning neural network reprogrammability as a fundamental paradigm for efficient model adaptation. We lastly identify promising research directions emerging from this integrative viewpoint.

Introduction

The rapid advancement of large-scale pre-trained foundation models has revolutionized artificial intelligence. However, as these models grow to billions of parameters, traditional fine-tuning—updating internal weights for specific tasks—becomes computationally and environmentally prohibitive. This has led to a proliferation of parameter-efficient adaptation methods, such as prompt tuning and model reprogramming. Despite their success, these techniques have often been developed in isolation, leading to inconsistent terminology and a lack of conceptual unity.

The Reprogrammability-Centric Adaptation (RCA) Framework

This survey from the Trustworthy Machine Learning and Reasoning (TMLR) Group introduces Neural Network Reprogrammability as a unifying framework. It formalizes the adaptation process as Reprogrammability-Centric Adaptation (RCA), which repurposes a frozen model $f$ into a new function $f'$ by manipulating information at its interfaces.

Comparison of traditional model adaptation (left) where pre-trained weights are updated, versus reprogramming-centric adaptation (right) where the model remains frozen and the interface is manipulated.

The framework consists of two primary components:

  1. Input Manipulation ($I$): Altering target task data through specific locations (e.g., embedding space), operators (e.g., concatenation), and formats (fixed or learnable).
  2. Output Alignment ($O$): Mapping the model’s native output space to the target task’s label space (e.g., mapping ImageNet labels to medical classification categories).

The universal formula for this process is: $$f'(x^T) = O_\omega \circ f \circ I_{\lambda, \tau, \ell}(x^T, c)$$

This shift moves the paradigm from "modifying the model to fit the task" to "modifying the task to fit the model," keeping the core parameters of the foundation model frozen.

Cross-Modal Generality and Insights

A key strength of the RCA framework is its applicability across diverse data modalities and model architectures. Whether dealing with visual prompts in computer vision or textual prompts in natural language processing, the underlying principle of interface manipulation remains consistent.

Examples of diverse downstream tasks, including image classification, visual reasoning, and question answering, that can be addressed through the RCA framework.

Key Insights:

  • Vulnerability as a Feature: Reprogrammability can be viewed as the constructive application of adversarial vulnerability. The sensitivity that allows small perturbations to change model outputs can be engineered to guide models toward desired tasks.
  • The Scale Effect: Larger models exhibit a "phase transition," becoming significantly more sensitive to interface manipulations, which enhances the effectiveness of RCA as models grow.
  • In-Context Learning (ICL): Viewed through this lens, ICL is a specific instance of fixed, concatenative input manipulation at the raw input level.
  • Parameter Efficiency: RCA is highly efficient; for example, adapting a ViT-B/32 via reprogramming can require as few as 150,000 trainable parameters, compared to the millions required for standard fine-tuning.

Challenges and Ethical Considerations

While RCA offers significant efficiency, it faces several challenges. These include a "complexity ceiling" for tasks fundamentally different from pre-training data, the "brittleness" of prompts across different model checkpoints, and security risks such as prompt injection and jailbreaking, which are essentially malicious forms of reprogramming.

Conclusion

Neural network reprogrammability provides a fundamental paradigm for efficient model adaptation. By unifying disparate techniques under a single framework, researchers can better understand the theoretical connections and practical distinctions between methods, paving the way for more robust and efficient foundation model deployment.

Summary updated

BibTeX
@misc{ye2025neural,
  author = {Zesheng Ye and Chengyi Cai and Ruijiang Dong and Jianzhong Qi and Lei Feng and Pin-Yu Chen and Feng Liu},
  title = {{Neural Network Reprogrammability: A Unified Theme on Model Reprogramming, Prompt Tuning, and Prompt Instruction}},
  year = {2025},
  eprint = {2506.04650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.04650},
}
Figure