Differentiable Architecture Pruning for Transfer Learning

Nicolò Colombo, Yang Gao · DOI

Abstract: We propose a new gradient-based approach for extracting sub-architectures from a given large model. Contrarily to existing pruning methods, which are unable to disentangle the network architecture and the corresponding weights, our architecture-pruning scheme produces transferable new structures that can be successfully retrained to solve different tasks. We focus on a transfer-learning setup where architectures can be trained on a large data set but very few data points are available for fine-tuning them on new tasks. We define a new gradient-based algorithm that trains architectures of arbitrarily low complexity independently from the attached weights. Given a search space defined by an existing large neural model, we reformulate the architecture search task as a complexity-penalized subset-selection problem and solve it through a two-temperature relaxation scheme. We provide theoretical convergence guarantees and validate the proposed transfer-learning strategy on real data.

Introduction

Transfer learning has become a cornerstone of modern artificial intelligence, allowing practitioners to leverage massive models trained on vast datasets (like ImageNet) for specialized downstream tasks. However, a significant challenge arises when the target task has limited data: large models are prone to overfitting, memorizing noise rather than learning generalizable features.

While standard pruning techniques reduce model size, they often "tangle" the resulting architecture with the specific weights learned during the source task. This entanglement limits the transferability of the pruned structure to new domains. This paper introduces Architecture Pruning (AP), a method designed to disentangle architecture from weights, extracting structural "sub-blueprints" that are inherently optimized for learning new tasks with minimal data.

Methodology: Two-Temperature Continuous Relaxation

The authors formulate architecture search as a subset-selection problem, using a binary mask ($m$) to select connections from a large "parent" network. To overcome the non-differentiable nature of discrete 0/1 selections, they introduce a novel Two-Temperature Continuous Relaxation scheme:

  1. Low Temperature ($t_l$): A sigmoid function approximates the binary choice. A high $t_l$ (e.g., 1000) makes the approximation sharp and nearly discrete, ensuring the model reflects the final pruned state. However, this creates "flat" regions where gradients vanish.
  2. High Temperature ($t_s$): To maintain optimization progress, a separate, lower temperature is used specifically for calculating gradients. This "warm" gradient approach prevents stalling and allows the optimizer to navigate the discrete search space effectively.
Convergence of the objective value for different gradient temperatures ($t_s$). A higher $t_s$ relative to $t_l$ allows the optimization to reach significantly lower objective values.

This dual-temperature approach provides theoretical convergence guarantees, ensuring that the gradient-based search leads to a locally optimal binary mask.

Experimental Setup

The researchers validated their approach using a VGG19 parent model (~144M parameters). The sub-architectures were extracted using CIFAR-10 as the source dataset ($D_{train}$) and evaluated on CIFAR-100 as the target task ($D_{new}$). To test transferability under data scarcity, they created subsets of CIFAR-100 ranging from 5,000 down to just 50 images. Initial proof-of-concept tests were also conducted on the MNIST dataset.

Key Results and Insights

Superior Transferability

The proposed AP method consistently outperformed both random pruning and Iterative Magnitude Pruning (IMP), particularly in low-data regimes (fewer than 1,000 samples). While IMP is highly effective for the task it was originally trained on, the resulting sub-networks are often too task-specific, making them brittle when transferred to new domains.

Comparison of reshuffled performance between the proposed method and IMP across sparsity levels. 'Ours' consistently maintains higher accuracy when the architecture is retrained on a new task.

Structural vs. Weight Importance

A key insight from the study is that the specific pattern of connections (the architecture) can be more important for transfer than the weights themselves. By focusing optimization on the mask, the method finds structures "pre-disposed" to perform well on new tasks. Furthermore, the results suggest that achieving the correct layer-wise density is a critical factor in architectural transferability.

Optimization Efficiency

The two-temperature scheme proved more efficient than standard single-temperature relaxations, reaching lower objective values in fewer iterations. The method successfully maintained competitive performance even at extreme sparsity levels (up to 99% pruned).

Limitations and Future Work

Despite its success, the method faces a performance floor in "ultra-low data" scenarios (fewer than 100 total images), where architecture alone cannot compensate for the lack of information. Additionally, the current search space is limited to pruning existing parent networks rather than evolving new operations.

Future research directions include applying AP to different architectures like Transformers and exploring "bare" architectures—using the discovered structures with simple binary weights ({-1, 1}) for deployment on resource-constrained edge devices.

Summary updated

Abstract

We propose a new gradient-based approach for extracting sub-architectures from a given large model. Contrarily to existing pruning methods, which are unable to disentangle the network architecture and the corresponding weights, our architecture-pruning scheme produces transferable new structures that can be successfully retrained to solve different tasks. We focus on a transfer-learning setup where architectures can be trained on a large data set but very few data points are available for fine-tuning them on new tasks. We define a new gradient-based algorithm that trains architectures of arbitrarily low complexity independently from the attached weights. Given a search space defined by an existing large neural model, we reformulate the architecture search task as a complexity-penalized subset-selection problem and solve it through a two-temperature relaxation scheme. We provide theoretical convergence guarantees and validate the proposed transfer-learning strategy on real data.
BibTeX
@misc{colombo2021differentiable,
  author = {Nicolò Colombo and Yang Gao},
  title = {{Differentiable Architecture Pruning for Transfer Learning}},
  year = {2021},
  eprint = {2107.03375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.03375},
}
Figure