Abstract
Adapting large-scale pre-trained models to new tasks typically involves fine-tuning, which often leads to catastrophic forgetting of the original task and significant storage overhead. This paper introduces Δ-Patching (Delta-Patching), a lightweight framework that enables rapid adaptation of Convolutional Neural Networks (CNNs) with a mathematical guarantee of zero performance loss on the base task. By employing an input-conditioned "Δ-module" to manage dynamic skip connections, Δ-Networks achieve state-of-the-art results using only a fraction of the parameters required by traditional methods.
Introduction
In modern deep learning, the standard paradigm involves taking a massive model pre-trained on a general dataset (e.g., ImageNet) and fine-tuning it for downstream tasks. However, this approach suffers from two primary issues: catastrophic forgetting, where the model loses its original capabilities, and storage bloat, as each new task requires a full copy of the model's weights.
Existing model patching techniques attempt to mitigate these issues through weight interpolation, but they often lack hard guarantees for base performance preservation and can still be storage-intensive. Δ-Patching addresses these challenges by treating model adaptation as an additive process that leaves the original backbone untouched.
Methodology: Δ-Networks
The core of the proposed method is the Δ-Network architecture, which introduces modularity and dynamic routing without modifying the pre-trained weights.
Frozen Backbone
The original weights of the pre-trained model are kept strictly frozen. This design choice ensures that the "base" performance remains identical to the original model. If the original functionality is required, the patches can simply be bypassed.
The Δ-Module and Dynamic Skip Connections
Instead of traditional fixed identity mappings in residual blocks, Δ-Networks utilize a lightweight "hypernetwork" called the Δ-module. This module, typically a 2-layer feedforward network, generates a set of weights ($\Lambda$) conditioned on the input image. These weights control new skip connections that dynamically re-route features between layers.
To maintain training stability and prevent activation variance from exploding due to the additional connections, the authors incorporate Batch Normalization (BN) within each Δ-module.
Experimental Evaluation
The framework was evaluated across a diverse set of vision tasks, using ImageNet as the base task. The adaptation suite included over 12 datasets, ranging from specialized domains like medical imagery and satellite data (RESISC45) to general classification tasks like CIFAR-100 and SVHN. The method was also tested on complex tasks such as object detection and semantic segmentation using PASCAL-VOC.
Key Insights
- Zero-Drop Guarantee: By design, the base model's performance is preserved perfectly, providing a significant advantage over fine-tuning or continual learning.
- Efficiency and Sparsity: Visual analysis indicates that the Δ-module learns task-specific feature routing, often utilizing only a sparse subset of available skip connections.
- Modular Scalability: The Δ-module acts as a "unit quantum" of adaptation. Performance can be tuned by adding more modules depending on the available computational budget.
Results
Δ-Networks were compared against PAINT, the previous state-of-the-art in model patching, and standard transfer learning baselines.
- Accuracy: Δ-Networks outperformed baselines on 8 out of 9 primary datasets. In joint patching scenarios, Δ-Networks maintained a harmonic mean accuracy of 71-82%, significantly higher than PAINT's 20-50%.
- Parameter Efficiency: For a ResNet-18, Δ-Networks required only 0.4M trainable parameters, a 28x reduction compared to the 11.2M parameters needed for full fine-tuning.
- Sequential Learning: The method demonstrated robustness in sequential task arrival, maintaining high performance across all tasks without the decay typically seen in competing methods.
Limitations and Future Work
While highly effective for CNNs like ResNets and ConvNeXts, the current framework has not yet been extended to Vision Transformers (ViTs), which are increasingly dominant. Additionally, as network depth increases, managing the quadratic growth of potential skip connections may require more advanced sparsity constraints. Future research will explore applying Δ-Patching to large-scale vision-language models like CLIP and investigating methods for "blending" patches between related tasks.
Summary updated