Structured Progressive Knowledge Activation for LLM-Driven Neural Architecture Search

Zhen Liu, Yuhan Liu, Jinjun Wang, Wei Song, Jianyi Liu, Jingwen Fu

Neural Architecture Search (NAS) has long been a "holy grail" of deep learning—the idea that we can automate the design of optimal neural networks. Recently, Large Language Models (LLMs) have emerged as powerful assistants in this space, capable of translating architectural intuition into executable code. However, LLMs often struggle with a phenomenon known as functional entanglement: a small change to a layer's definition can inadvertently break the way data flows through the network.

In "Structured Progressive Knowledge Activation for LLM-Driven Neural Architecture Search," researchers introduce SPARK, a framework designed to disentangle these edits, making LLM-driven NAS significantly more reliable and efficient. By factorizing code edits into distinct "where-to-edit" and "how-to-refine" steps, SPARK achieves a 28.1x speedup in sample efficiency and a 22.9% relative improvement in out-of-distribution (OOD) accuracy on algorithmic reasoning benchmarks.

The Core Challenge: Functional Entanglement

The primary hurdle in LLM-driven NAS is that neural architecture code is highly interdependent. When an LLM performs a "free-form" edit, it often modifies multiple functional aspects simultaneously. For example, changing a projection layer might require a corresponding change in a tensor-masking operation elsewhere. If the LLM misses this dependency, the code fails to run, or worse, it runs but performs poorly due to unintended side effects.

The authors term this issue functional entanglement. In traditional NAS, search spaces are manually constrained to avoid this, but LLMs operate in the "wild" space of raw code. Without a way to scope these edits, the search process becomes a game of "whack-a-mole," where fixing one part of the architecture breaks another, leading to low validity rates and stalled progress.

The SPARK Methodology

To make LLM knowledge usable under such entanglement, the authors propose Structured Progressive Knowledge Activation (SPARK). SPARK structures the LLM's role into a three-stage pipeline:

  1. Architecture Scope Router (ASR): The LLM first acts as a router, selecting a specific "functional factor" to modify (e.g., the Operator definitions versus the Action logic).
  2. Refinement Compass (RC): Based on feedback from previous iterations, the LLM generates a high-level directive (e.g., "improve stability by adding a residual connection").
  3. Scoped Architecture Refiner (SAR): Finally, the LLM performs a single-shot code edit strictly constrained to the region defined by the ASR.

To enforce this isolation, SPARK uses Function-factor Tokens and region tags within the code. Additionally, a lightweight feasibility pipeline performs syntax, interface, and semantic (tensor shape) checks before a candidate is ever sent to a GPU for training. This ensures that the expensive evaluation budget is only spent on viable candidates.

Datasets and Evaluation

The primary evaluation is conducted on the CLRS Algorithmic Reasoning Benchmark, which includes 30 classical algorithms (e.g., DFS, BFS, Dijkstra, Quicksort). This benchmark is particularly challenging because it requires models to generalize to data sizes and structures far beyond their training set (OOD accuracy).

To demonstrate generality, the authors also test SPARK on five non-algorithmic benchmarks: MNIST-1D (Classification), 20News (Text classification), CartPole-v1 (Reinforcement Learning), Mice Protein Expression (Protein classification), and Breast Cancer Wisconsin (Medical diagnosis).

Key Insights and Results

The SPARK framework yields several critical insights and impressive empirical gains:

  • Massive Efficiency Gains: On the CLRS-DFS task, SPARK reached its peak performance in just 57 evaluations, compared to the 1,600 evaluations typically used by baselines like EvoPrompting—a 28.1x improvement in sample efficiency.
  • Superior Accuracy: SPARK achieved a mean OOD accuracy of 83.91% across the full 30-task CLRS suite, outperforming the CLRS reference (75.98%) and EvoPrompting (80.89%).
  • Localization is Critical: Correctly localizing where to intervene is often more important than the specific refinement strategy. Ablations showed that using the Router (ASR) alone provided a larger performance boost than using the Refinement Compass (RC) alone.
  • Stable Compute Footprint: The performance gains did not come from simply making models larger. The computational cost (MACs) of the evolved architectures remained comparable to the reference models.
  • Cross-Domain Success: On MNIST-1D, SPARK improved accuracy from 70.25% (baseline) to 95.99%, demonstrating that the method transfers well beyond algorithmic code.

By isolating edits to one factor at a time, the search process can more clearly attribute performance gains to specific changes, allowing the LLM to build upon successful building blocks across iterations.

Limitations and Future Work

While SPARK is highly sample-efficient, it requires more LLM calls per iteration (for routing, directive generation, and editing), which increases the wall-clock time of the search itself. Furthermore, the current version relies on manually defined regions (Operator and Action). Automatically discovering these functional factors or extending them to finer-grained levels remains a key direction for future research. Finally, while SPARK generalizes well, some specific tasks (like BFS and KMP) remain challenging, suggesting that "one-size-fits-all" architectures for algorithmic reasoning are still elusive.

Summary updated

BibTeX
@inproceedings{liu2026structured,
  author = {Zhen Liu and Yuhan Liu and Jinjun Wang and Wei Song and Jianyi Liu and Jingwen Fu},
  title = {{Structured Progressive Knowledge Activation for LLM-Driven Neural Architecture Search}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=H0rZO2EK1s},
}
Figure