Task-Aware Neural Architecture Search

Cat P. Le, Mohammadreza Soltani, Robert J. Ravier, Vahid Tarokh

TL;DR

TA-NAS is a novel framework that speeds up Neural Architecture Search (NAS) by dynamically building search spaces based on task similarity. By measuring how easily features from a known "base task" can be transformed to solve a new target task, the algorithm focuses its search on architectures already proven to work for related problems, achieving state-of-the-art performance with significantly fewer parameters and lower computational costs.

What Problem Does This Paper Address?

Designing neural networks by hand is a grueling process of trial and error. While Neural Architecture Search (NAS) was developed to automate this, it has two major Achilles' heels:

  1. Computational Cost: Many NAS methods require thousands of GPU days to find an optimal structure.
  2. Search Space Bias: Most NAS algorithms search within a fixed, human-defined "box" (the search space). This box is usually built using domain knowledge from existing handcrafted networks like ResNet, which limits the algorithm's ability to discover truly novel or task-specific structures.

The authors of this paper ask: Can we make NAS smarter by letting it look at what worked for similar tasks in the past?

Methods

The researchers propose a three-part pipeline called Task-Aware Neural Architecture Search (TA-NAS):

1. Task Similarity Measure

The core innovation is a way to quantify how "close" two tasks are. Instead of looking at the data itself, they look at the model-transformation complexity. If you have a network trained on Task A, how hard is it to transform its internal features to solve Task B? They train a small "transform network" to map features from Task A to Task B and then prune it. The fewer parameters left in the pruned transform network, the more similar the tasks are.

Illustration of the procedure to compute the distance from task A to task B.

2. Adaptive Search Space

Instead of starting with a generic search space, TA-NAS maintains a "dictionary" of base tasks and their successful architectures. When a new task arrives, the algorithm identifies the most similar base tasks and constructs a custom search space by combining the operations, cells, and "skeletons" (the high-level layout) of those related models.

3. Fusion Search (FUSE)

To navigate this space efficiently, they developed the FUSE algorithm. FUSE uses "continuous relaxation"—a technique that allows the algorithm to treat the choice between different network candidates as a differentiable problem. It jointly trains a weighted combination of candidate networks, gradually increasing the weight of the best-performing ones until a single winner emerges. This allows for evaluation without fully training every single candidate from scratch.

Datasets

The authors evaluated their approach using:

  • MNIST: Handwritten digits, used to populate the base task dictionary.
  • Fashion-MNIST: Clothing items, also used for the base dictionary.
  • Quick, Draw!: A large dataset of doodles. The researchers used a 10-category subset (e.g., apple, moon, rabbit) as the target task to test the search efficiency.

Key Insights and Ideas

  • Task Similarity is Asymmetric: One of the most interesting findings is that similarity isn't a two-way street. For example, knowledge from Fashion-MNIST tasks is highly useful for solving MNIST tasks, but the reverse is less true. This suggests that some tasks are "feature-rich" and provide a better foundation for general learning.
  • Dynamic Search Spaces Work: By restricting the search to "related" architectures, the algorithm avoids wasting time on structures that are fundamentally ill-suited for the task's geometry or complexity.
  • Shape Matters: The algorithm correctly identified that a "moon" doodle is most similar to the digit "0" due to their shared circular geometry, leading it to favor architectures that worked well for digit recognition.
The distance matrix of baseline tasks showing how different tasks relate to one another.

Key Results

TA-NAS was tested against standard handcrafted models and traditional random search on the Quick, Draw! dataset.

Comparison with state-of-art image classifiers on Quick, Draw! dataset.

As shown in Table 1, TA-NAS (FUSE w. task-aware space) achieved:

  • Lower Error: 1.18% error, outperformed ResNet-18, ResNet-34, and Random Search.
  • Extreme Efficiency: It found this architecture in just 2 GPU days, compared to 4 days for Random Search.
  • Compactness: The resulting model had only 2.72 million parameters—nearly 10 times smaller than DenseNet-161 (27.6M) while achieving nearly identical accuracy.

Limitations and Future Work

While powerful, TA-NAS relies on having a pre-existing "dictionary" of base tasks. If a new task is completely unlike anything seen before, the similarity measure might not provide a helpful starting point.

The authors suggest that the FUSE algorithm itself is quite flexible and could be applied beyond just searching for new architectures—it could potentially be used to find the best ways to "grow" or "compress" existing networks in real-time. Future work could also involve expanding the dictionary to include more diverse, non-image-based tasks.

Summary updated

BibTeX
@inproceedings{le2021task,
  author = {Cat P. Le and Mohammadreza Soltani and Robert J. Ravier and Vahid Tarokh},
  title = {{Task-Aware Neural Architecture Search}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  url = {https://openreview.net/forum?id=Qy8VZYHqqPB},
}
Figure