Abstract
Traditional transfer learning typically involves finetuning the weights of a fixed, pretrained architecture on a target task. This approach assumes that a single network structure, often optimized for ImageNet, is ideal for all downstream applications. This paper introduces Neural Transfer and Architecture Adaptation (NTAA), a framework that jointly optimizes a model's weights and its structural configuration for a specific target task. By adapting the architecture alongside the weights, NTAA achieves state-of-the-art performance across diverse tasks, including person re-identification and age estimation, while frequently resulting in more efficient, task-specific models.
Introduction
The "pretrain and finetune" paradigm is a cornerstone of modern computer vision. However, it relies on the assumption that feature hierarchies required for different tasks are identical. For instance, identifying a specific pedestrian (person re-identification) may require different spatial resolutions and receptive fields than estimating a person's age. While Neural Architecture Search (NAS) offers a way to find task-specific structures, it is often computationally prohibitive, requiring a full "search, pretrain, and finetune" cycle for every new dataset.
NTAA addresses this by making architecture adaptation an integral part of the transfer learning process. Instead of treating the architecture as a static container, NTAA allows the network to evolve its structure—adjusting depth, operation types, and connectivity—while simultaneously learning task-specific weights.
Methods
The NTAA framework treats architecture and weights as a joint entity to be optimized simultaneously. This approach ensures that the learned weights are perfectly suited to the final adapted structure.
Search Space and Joint Optimization
The authors define a search space $\mathcal{A}$ centered around a standard "initial" architecture, such as ResNet-50. For each layer, the model can select from a variety of operations, including different convolution kernels ($1\times1, 3\times3, 5\times5$), pooling, identity mappings, or even "noise disturbing" operations for internal data augmentation.
Rather than a discrete, combinatorial search, NTAA employs a "soft" selection process. Each operation is assigned a learnable confidence parameter. During finetuning on the target task, the model learns which operations are most effective, effectively "pruning" or "re-wiring" itself. This joint optimization preserves the joint distribution of weights and architecture, avoiding the generalization issues common in traditional weight-sharing NAS.
Unsupervised Extension via Supernets
To further enhance efficiency, the authors propose an unsupervised variant of NTAA. A "Supernet" is first trained using self-supervised learning (specifically the InfoNCE loss) on a large source domain. This pretrained supernet can then be rapidly adapted to any downstream task through linear evaluation or lightweight finetuning, significantly reducing the computational cost of finding optimal architectures for new datasets.
Experimental Results
NTAA was evaluated across a diverse set of benchmarks, demonstrating significant gains over standard finetuning and specialized state-of-the-art models.
- Person Re-Identification: On the Market-1501 dataset, NTAA achieved a 95.6% Rank-1 accuracy, surpassing specialized models like OSNet.
- Age Estimation: On the Adience dataset, NTAA reached 64.3% accuracy, a substantial improvement over the 56.4% achieved by standard weight finetuning.
- Image Classification and Efficiency: On CIFAR-10, NTAA reduced the error rate of a ResNet-50 from 3.90% to 2.43%. Notably, the framework automatically adjusted the network depth based on task difficulty, reducing the 50-layer ResNet to just 33 layers for CIFAR-10, while maintaining more depth for complex tasks like CUHK03.
Conclusion
NTAA represents a shift from fixed-architecture transfer learning toward a more flexible, task-aware approach. By jointly optimizing weights and structure, the framework produces models that are both more accurate and more efficient. Future work may involve exploring more sophisticated inference algorithms, such as stochastic Monte Carlo methods, to further refine the exploration of the architectural search space.
Summary updated