Partial Connections and Path Binarization for Architecture Search

27 concepts23 papers1 proposal

Differentiable Neural Architecture Search (DNAS) revolutionized automated network design by transforming a discrete combinatorial search into a continuous optimization problem. Instead of training thousands of candidate networks from scratch, DNAS constructs a "supernet" where every architectural edge contains a mixture of all candidate operations (such as various convolutions, pooling layers, or identity mappings). The network learns a set of continuous architecture parameters, $\alpha$, which act as weights to determine the importance of each operation.

The core bottleneck of this approach is memory. To compute a weighted sum of operations during the forward pass, a naive implementation must evaluate all candidate operations simultaneously. More importantly, the intermediate activations for every single path must be retained in GPU memory to compute gradients during the backward pass. If an edge contains $N$ candidate operations, the memory overhead scales linearly with $O(N)$. This memory explosion makes it impossible to search directly on large-scale datasets or high-dimensional data (like 3D medical images) without relying on smaller, inaccurate "proxy tasks."

To break this linear memory dependency, recent architectures rely on two primary insights: Path Binarization (subsampling along the operation dimension) and Partial Channel Connections (subsampling along the tensor dimension).

Path Binarization and Stochastic Sampling

If the primary memory drain is the simultaneous activation of $N$ different paths, the most direct solution is to ensure that only one path is active at any given moment. This shifts the memory complexity from linear $O(N)$ to constant $O(1)$ relative to the number of candidate operations.

Naive DNAS (Linear Memory):
Input ───► [ Conv 3x3 ] ───┐
       ───► [ Conv 5x5 ] ───┼──► Weighted Sum
       ───► [ MaxPool  ] ───┘

Path Binarization (Constant Memory):
Input ───► [ Active Path ] ──────► Output
           [ Idle Path   ] (Unloaded)
           [ Idle Path   ] (Unloaded)

Cai et al. pioneered this approach in ProxylessNAS by introducing path binarization. Instead of mixing all operations continuously, they utilize binary gates to select exactly one operational path during a training step. Because only one path is instantiated in memory, the search can be performed directly on large target datasets like ImageNet.

To maintain differentiability when choosing discrete paths, researchers employ different mathematical formulations:

  • Proximal Iterations: Yao et al. developed Efficient Neural Architecture Search via Proximal Iterations (NASP), which uses proximal iterations to enforce discrete constraints directly. By activating only the most promising operation during forward and backward passes, it avoids the overhead of an ensemble supernet. Similarly, Zhu et al. applied proximal iterations in AutoAC to handle discrete completion strategies in heterogeneous graph neural networks without memory overhead.
  • Stochastic Sampling: Kim et al. addressed the extreme memory demands of 3D data in Scalable Neural Architecture Search for 3D Medical Image Segmentation by using the Gumbel-Softmax trick. This allows the system to stochastically sample a single candidate operation per edge while keeping the selection process differentiable. Hu et al. implemented a direct discrete sampling strategy in DSNAS, bypassing continuous relaxation entirely to eliminate the need for a separate architecture retraining stage.

This single-path execution paradigm has been adapted across diverse domains. Hu et al. utilized path binarization gates in Pyramid Architecture Search for Real-Time Image Deblurring to make large pyramid search spaces fit within hardware limits. In structural optimization tasks, Ding et al. used single-candidate iteration in DiffMG to search for complex meta-graphs. For temporal models, Risso et al. demonstrated in Pruning In Time (PIT) that optimizing a single seed network through differentiable transformations avoids the multi-path supernet bottleneck entirely. Additionally, Peng et al. applied single-candidate activation to graph convolutional networks for skeleton-based action recognition, avoiding the simultaneous loading of all possible graph operations.

Partial Channel Connections and Masking

An alternative strategy to path binarization is to evaluate all candidate operations simultaneously but reduce the size of the data tensors passed through them. This is achieved by subsampling along the channel dimension.

Partial Channel Connection:
Input Channels ──┬──► [ 1/4 Channels ] ──► [ All Candidate Ops ] ──┐
                 └──► [ 3/4 Channels ] ────────────────────────────┴──► Concatenate

Xu et al. introduced this concept with PC-DARTS. Instead of routing the entire feature map through every candidate operation, PC-DARTS selects a random fraction of channels (e.g., $1/4$) to undergo architectural transformations. The remaining fraction ($3/4$) bypasses the operations entirely through a direct shortcut connection.

Why does this work? The memory footprint of a convolutional layer is directly proportional to the number of input and output channels. By processing only a small subset of channels, the memory required to store intermediate activations drops significantly. Crucially, because a portion of the tensor still flows through every operation, the supernet can still compute gradients for all options and accurately rank their relative performance.

This strategy has proven highly effective for memory-intensive tasks:

  • Medical Imaging: Yan et al. integrated partial channel connections into MS-NAS to enable multi-scale feature fusion for medical image segmentation without exceeding GPU limits. Similarly, Zeng et al. utilized partial channel connections in Towards Cardiac Intervention Assistance to explore large multi-scale search spaces for real-time 3D cardiac MRI segmentation.
  • Network Efficiency: Chen et al. combined partial channel connections with performance-based pruning in BNAS to accelerate the discovery of 1-bit binarized neural networks. Chen et al. also leveraged this reduction in Thrifty Neural Architecture Search for Medical Image Segmentation to discover highly compact cell structures under strict hardware constraints. In DCNAS, the authors used channel-level sampling to handle a dense, multi-path search space for semantic segmentation.

Differentiable Masking

Wan et al. extended the idea of channel manipulation in FBNetV2 by introducing DMaskingNAS. Instead of running separate operations for different channel widths or spatial resolutions, they instantiate a single maximal feature map. They then apply a weighted sum of binary masks to this single tensor to represent different architectural dimensions. This reuse of intermediate activations allows the search space to scale exponentially ($10^{14}\times$) across both spatial and channel dimensions while maintaining a nearly constant memory footprint.

Feature Sharing and Global Scaling

Beyond direct path and channel subsampling, memory efficiency can be achieved by optimizing how feature maps are shared or how the search space is structured across training phases.

You et al. demonstrated in Towards Improving the Consistency, Efficiency, and Flexibility of Differentiable Neural Architecture Search that sharing intermediate feature maps across different candidate operations within the supernet drastically lowers memory overhead. While this sharing slightly limits individual representation power during the search phase, it preserves the relative ranking of operations, allowing for efficient exploration on limited hardware.

Alternatively, the search space can be compressed globally. An et al. designed CycleGANAS to perform the entire architectural search using a globally reduced number of hidden channels across all candidate operations. Once the optimal discrete architecture is identified, the model is scaled up to its full capacity for the final training phase, minimizing the memory footprint during the optimization process.

Summary

The transition from naive continuous relaxation to memory-efficient architecture search relies on a simple principle: decoupling the size of the search space from the memory footprint of the supernet. Whether by activating a single path at a time via binarization or by shrinking the tensor dimensions via partial channel connections, these methods ensure that memory consumption no longer scales linearly with the number of choices. This enables direct, stable architecture search on complex target tasks and hardware.

Key Foundational Work

MS-NAS: Multi-Scale Neural Architecture Search for Medical Image Segmentation (2020) — contributed 2 concept elements to this direction.
NAS-HRIS: Automatic Design and Architecture Search of Neural Network for Semantic Segmentation in Remote Sensing Images (2020) — contributed 2 concept elements to this direction.
FBNetV2: Differentiable Neural Architecture Search for Spatial and Channel Dimensions (2020) — contributed 2 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_memory_efficient_architecture_search_eac1b466,
  title = {memory-efficient architecture search},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/memory-efficient-architecture-search/rdr_eac1b46608c44c80bd0dd851501909ac},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_memory_efficient_architecture_search_eac1b466_v1,
  title = {memory-efficient architecture search},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/memory-efficient-architecture-search/rdr_eac1b46608c44c80bd0dd851501909ac/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake