In Neural Architecture Search (NAS), the search space is the formally defined set of all possible neural network architectures that an automated search algorithm can explore. It is parameterized by discrete and continuous choices, including layer types (e.g., convolution, pooling), connectivity patterns (e.g., skip connections), kernel sizes, and channel widths. A well-designed search space balances expressiveness—the ability to contain high-performing models—with tractability, ensuring the search is computationally feasible. For Hardware-Aware NAS, this space is further constrained by target device metrics like latency and memory.
Glossary
Search Space (NAS)

What is a Search Space in Neural Architecture Search (NAS)?
The search space is the foundational, constrained set of all possible neural network architectures that a Neural Architecture Search (NAS) algorithm can explore and evaluate.
The structure of the search space directly dictates the efficiency and outcome of the NAS process. Common formulations include cell-based search spaces, where a repeating computational cell is optimized, and macro search spaces, which define the entire network skeleton. In TinyML and microcontroller-targeted NAS, the search space is aggressively pruned to exclude operations incompatible with severe resource constraints, such as large dense layers or high-precision activations. This hardware-aware definition ensures discovered architectures are inherently deployable on the target edge device.
Core Components of a NAS Search Space
The search space in Neural Architecture Search (NAS) is a formally defined set of all possible neural network architectures the algorithm can explore. It is parameterized by discrete and continuous choices that define the network's topology and operations.
Operator Search
This defines the set of primitive operations (e.g., 3x3 convolution, 5x5 depthwise convolution, max pooling, identity, zero) that can be placed at each node or layer in the computational graph. For TinyML, the search space is often constrained to hardware-efficient operators like depthwise-separable convolutions to reduce FLOPs and parameter count. The choice of operators directly impacts the model's capacity, inductive bias, and computational cost on the target microcontroller.
Connectivity & Topology
This component defines the permissible connections between operations or layers, governing the network's data flow. Common patterns include:
- Chain-structured: Sequential layers, common in early NAS.
- Cell-based: A directed acyclic graph (DAG) of operations within a repeating cell, enabling skip connections and multi-branch structures for efficiency.
- Macro-architecture: The high-level skeleton defining the number of cells, stages, and resolution changes. For microcontroller targets, topologies are often shallower and narrower to fit within kilobyte-scale memory budgets.
Hyperparameter Search Dimensions
Beyond operations and connections, the search space includes key architectural hyperparameters:
- Channel/Width Search: The number of output filters for each convolutional layer. This is a primary lever for trading accuracy (more channels) against memory and compute (fewer channels).
- Kernel Size Search: Choosing filter spatial dimensions (e.g., 1x1, 3x3, 5x5). Larger kernels increase receptive field but also computational cost quadratically.
- Expansion Ratio Search (for Mobile inverted bottlenecks): The factor by which channels are expanded within a block. These dimensions are often treated as categorical or integer choices within bounded ranges.
Hardware-Aware Parameterization
For Hardware-Aware NAS targeting microcontrollers, the search space is explicitly parameterized by device-specific constraints:
- Memory Budget: Defines maximum peak RAM (activation memory) and flash (model weights) usage, pruning architectures that exceed it.
- Latency/Energy Targets: Incorporates hardware cost models (e.g., lookup tables, neural predictors) that estimate a candidate's inference time or energy consumption on the target MCU.
- Quantization-Aware Design: The space may include operations known to be quantization-friendly or simulate quantization noise during search (Quantization-Aware NAS). This ensures the final model is robust to 8-bit or lower precision deployment.
Search Space Pruning & Design
A critical pre-search step is pruning the theoretical space of all possible architectures to a manageable, high-potential subset. This is done by:
- Incorporating Domain Knowledge: Mandating efficient operators like depthwise convolutions.
- Enforcing Valid Connectivity: Preventing cycles or invalid tensor shape mismatches.
- Applying Hardware Filters: Immediately discarding architectures that violate hard constraints (e.g., >256KB flash). A well-designed, pruned search space dramatically improves search efficiency and the likelihood of finding a viable microcontroller-optimized model.
Representation & Encoding
For a search algorithm to manipulate architectures, the search space must be encoded into a searchable representation. Common encodings include:
- String-based: A sequence of tokens representing operation and connection choices.
- Graph-based: A direct DAG representation where nodes are operations and edges are connections.
- Continuous Relaxation (e.g., DARTS): Architecture parameters are represented as continuous variables in a supernet, enabling gradient-based optimization. The choice of encoding is tightly coupled with the search strategy (e.g., RL, evolution, gradient).
Search Space (NAS)
In Neural Architecture Search (NAS), the search space is the foundational, formally defined set of all possible neural network architectures that an automated algorithm can explore and evaluate.
A search space is parameterized by discrete and continuous choices, including layer operations (e.g., convolution types), connectivity patterns (e.g., skip connections), and hyperparameters like channel counts and kernel sizes. For Hardware-Aware NAS, this space is explicitly constrained by target device limits such as peak memory, latency, and energy consumption. A well-designed space balances expressiveness—the ability to discover high-performing models—with tractability to enable efficient search.
Common search space formulations include cell-based spaces, which stack repeated learned building blocks, and macro spaces, which search over entire network skeletons. In TinyML and microcontroller NAS, the space is aggressively pruned to exclude architectures incompatible with kilobyte-scale memory, often integrating quantization-aware operators. The search strategy (e.g., reinforcement learning, gradient-based methods) navigates this constrained combinatorial space to identify Pareto-optimal architectures.
Common Types of Search Spaces in NAS
A comparison of fundamental search space formulations used in Neural Architecture Search, detailing their parameterization, typical use cases, and implications for search efficiency and hardware-aware optimization.
| Search Space Type | Parameterization | Typical Granularity | Search Complexity | Hardware-Aware Suitability |
|---|---|---|---|---|
Cell-Based Search Space | Repeating computational blocks (normal/reduction cells) | Macro-Architecture | Medium | High (enforces regularity) |
Hierarchical Search Space | Nested motifs from operations to cells to networks | Multi-Scale | High | Medium (flexible but complex) |
Global / Layer-Wise Search Space | Independent operation choice per network layer | Micro-Architecture | Very High | Low (unstructured) |
Differentiable Supernet (DARTS) | Continuous relaxation of operation choices | Micro-Architecture | Low (per supernet training) | Medium (requires proxy) |
Once-For-All (OFA) Space | Pre-defined sub-network dimensions (depth, width, kernel, resolution) | Elastic Dimensions | Very Low (post-training extraction) | Very High (explicit constraints) |
Mobile / Microcontroller-Optimized Space | Restricted ops (e.g., depthwise conv, fixed-point friendly activations) | Hardware-Pruned | Low to Medium | Very High (tailored) |
Operator Search Space | Choice of layer type (conv, pool, identity, skip, etc.) | Micro-Architecture | High | Medium (core to efficiency) |
Channel & Width Search Space | Number of output channels per layer | Network Width | Medium | High (direct memory/latency control) |
Kernel Size Search Space | Spatial dimensions of convolutional filters (e.g., 1x1, 3x3, 5x5) | Receptive Field | Low | Medium (affects ops & latency) |
Frequently Asked Questions
In Neural Architecture Search, the search space defines the universe of all possible neural network designs the algorithm can explore. For TinyML deployment, this space is constrained by the severe memory, power, and compute limits of microcontrollers.
In Neural Architecture Search (NAS), the search space is the formally defined set of all possible neural network architectures that the automated search algorithm is allowed to consider and evaluate. It is a critical design choice that constrains the exploration to a manageable, yet expressive, domain of potential solutions. The space is typically parameterized by variables such as:
- Layer types (e.g., standard convolution, depthwise convolution, pooling)
- Connectivity patterns (e.g., sequential, residual, dense blocks)
- Hyperparameters like the number of channels, kernel sizes, and the number of repeating cells. A well-designed search space balances expressiveness (the ability to discover high-performing models) with tractability (keeping the search computationally feasible). For Hardware-Aware NAS targeting microcontrollers, the search space is explicitly limited by hardware constraints like maximum SRAM usage, flash memory footprint, and inference latency, often pruning architectures that exceed these budgets from the outset.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
The search space in Neural Architecture Search is defined by its fundamental building blocks and constraints. These related terms detail the specific dimensions and parameters that the search algorithm explores.
Operator Search
Operator search is the core process of selecting the type of computational layer (or 'operation') to apply at each position in a neural network. The algorithm chooses from a predefined set of primitives.
- Common operators include standard convolution, depthwise separable convolution, pooling (max/average), identity (skip connection), and zero (no connection).
- In hardware-aware NAS, the operator set is often constrained to operations efficient on the target device, such as favoring depthwise convolutions for mobile CPUs.
- The choice directly impacts the model's representational capacity, parameter count, and inference latency.
Channel Search
Channel search (or width search) optimizes the number of output channels for convolutional layers, controlling the network's width. This is a key lever for balancing accuracy and efficiency.
- Searching over layer widths allows the NAS algorithm to allocate computational budget strategically, creating bottlenecks where possible and expanding capacity where needed.
- For microcontroller deployment, channel search is critical for staying within severe memory constraints, as the number of parameters and activation maps scales with the square of the channel count in standard convolutions.
- It is often parameterized as a multiplier on a base channel count (e.g., width multiplier).
Kernel Size Search
Kernel size search involves selecting the spatial dimensions of convolutional filters (e.g., 1x1, 3x3, 5x5). This dimension controls the receptive field and the computational cost per layer.
- Larger kernels (e.g., 5x5) capture broader spatial contexts but require more parameters and FLOPs.
- Smaller kernels (e.g., 1x1) are used for channel mixing and dimensionality reduction with minimal cost.
- In TinyML, 3x3 kernels are most common due to their efficiency; searching may be limited to {1x1, 3x3} to avoid the quadratic cost increase of larger sizes.
Connectivity Search
Connectivity search defines how layers are connected to form the overall network topology. It moves beyond simple sequential chains to explore branched, multi-path architectures.
- This includes searching for skip connections (as in ResNet), dense connections (as in DenseNet), or more complex directed acyclic graphs (DAGs).
- The connectivity pattern dramatically influences gradient flow, feature reuse, and parameter efficiency.
- In hardware-aware search, complex connectivity can increase memory bandwidth requirements and control logic overhead on accelerators, making it a critical search dimension.
Search Space Pruning
Search space pruning is the technique of reducing the size of the explorable architecture set by eliminating unlikely or invalid configurations before or during the search. This is essential for tractable NAS.
- Pruning criteria can be based on prior knowledge (e.g., removing 5x5 convolutions for MCUs), preliminary performance estimates, or hardware legality checks.
- Methods include manual pruning by domain experts and automated pruning using zero-cost proxies or early-stopping benchmarks.
- Effective pruning reduces the search complexity from an intractable space to a focused region containing high-performing, hardware-feasible models.
Cell-Based Search Space
A cell-based search space is a common design where the NAS algorithm discovers a small, repeating computational motif (a 'cell'), which is then stacked to form the final network. This enables search scalability and transferability.
- The search operates over two cell types: a normal cell (preserving feature map dimensions) and a reduction cell (downsampling spatial resolution).
- The discovered cell is a directed acyclic graph of nodes (feature maps) and edges (searched operations).
- This approach, pioneered by NASNet, drastically reduces the search dimension and allows the discovered architecture to generalize across different dataset sizes by changing the number of cell repeats.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us