[Paper Review] Learning Versatile Neural Architectures by Propagating Network Codes
This paper proposes Network Coding Propagation (NCP), a novel neural architecture search method that optimizes versatile neural architectures across multiple heterogeneous vision tasks by back-propagating gradients through learned neural predictors to directly update architecture codes. NCP enables joint search across tasks like image segmentation, 3D detection, and video recognition in seconds, achieving state-of-the-art performance on both custom (NAS-Bench-MR) and standard benchmarks (NAS-Bench-201), with strong transferability between tasks.
This work explores how to design a single neural network capable of adapting to multiple heterogeneous vision tasks, such as image segmentation, 3D detection, and video recognition. This goal is challenging because both network architecture search (NAS) spaces and methods in different tasks are inconsistent. We solve this challenge from both sides. We first introduce a unified design space for multiple tasks and build a multitask NAS benchmark (NAS-Bench-MR) on many widely used datasets, including ImageNet, Cityscapes, KITTI, and HMDB51. We further propose Network Coding Propagation (NCP), which back-propagates gradients of neural predictors to directly update architecture codes along the desired gradient directions to solve various tasks. In this way, optimal architecture configurations can be found by NCP in our large search space in seconds. Unlike prior arts of NAS that typically focus on a single task, NCP has several unique benefits. (1) NCP transforms architecture optimization from data-driven to architecture-driven, enabling joint search an architecture among multitasks with different data distributions. (2) NCP learns from network codes but not original data, enabling it to update the architecture efficiently across datasets. (3) In addition to our NAS-Bench-MR, NCP performs well on other NAS benchmarks, such as NAS-Bench-201. (4) Thorough studies of NCP on inter-, cross-, and intra-tasks highlight the importance of cross-task neural architecture design, i.e., multitask neural architectures and architecture transferring between different tasks. Code is available at https://github.com/dingmyu/NCP.
Motivation & Objective
- To design a unified neural architecture search space capable of supporting multiple heterogeneous vision tasks with differing data distributions and feature granularity requirements.
- To address the challenge of task and dataset inconsistency in multi-task neural architecture search by enabling joint optimization across diverse tasks.
- To develop a method that efficiently searches for versatile architectures across tasks without retraining or repeated search per task.
- To facilitate architecture transfer between tasks by leveraging shared network codes and multi-task predictor learning.
- To close the gap between existing NAS benchmarks and real-world, multi-task scenarios by introducing NAS-Bench-MR, a practical benchmark on ImageNet, Cityscapes, KITTI, and HMDB51.
Proposed method
- Represent all network hyperparameters as discrete codes (e.g., '3,2,64' for 3 blocks, 2 residual units per block, 64 channels), forming a unified coding space for multi-task search.
- Train task-specific neural predictors to map network codes to performance metrics (e.g., accuracy, mIoU, FLOPs) for each task.
- Back-propagate gradients from the neural predictors to the architecture codes to directly optimize them toward target performance constraints (e.g., high accuracy, low FLOPs).
- Use gradient-based optimization in the code space to traverse the large search space efficiently, achieving convergence in seconds.
- Enable cross-task architecture transfer by initializing with a code from one task and fine-tuning via the predictor of another task.
- Formulate multi-task objectives as gradient accumulation across multiple predictors, allowing simultaneous optimization for conflicting goals like accuracy and efficiency.
Experimental results
Research questions
- RQ1Can a single neural architecture be effectively optimized across multiple heterogeneous vision tasks with differing data distributions and representation needs?
- RQ2How can architecture search be made efficient and scalable across diverse tasks without re-running the search process for each task?
- RQ3To what extent can architecture codes learned on one task be transferred to another task with minimal retraining?
- RQ4How does the design of a unified search space influence the generalization and performance of multitask architectures?
- RQ5What role does gradient-based optimization in the code space play in enabling fast, architecture-driven search across multiple tasks?
Key findings
- NCP achieves optimal architecture configurations in seconds by directly optimizing network codes via gradient back-propagation through neural predictors, bypassing data-dependent search.
- The proposed NAS-Bench-MR benchmark enables practical, large-scale multi-task NAS on real-world datasets including ImageNet, Cityscapes, KITTI, and HMDB51.
- NCP demonstrates strong transferability: architectures can be adapted to new tasks with only a few iterations using the target task’s predictor.
- Architecture codes from different tasks exhibit distinct patterns—e.g., segmentation models increase channel width in the 4th branch of stage 4, while classification models reduce it.
- The method achieves state-of-the-art performance on NAS-Bench-201 and outperforms prior NAS methods in multitask and transfer learning scenarios.
- Visualizations show that model design varies significantly by task: segmentation favors more fusion modules and fewer parallel units, while video recognition maintains intermediate channel configurations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.