Beyond Model Base Retrieval: Weaving Knowledge to Master Fine-grained Neural Network Design

Jialiang Wang, Hanmo Liu, Shimin Di, Zhili Wang, Jiachuan Wang, Lei Chen, Xiaofang Zhou

Introduction: The Effectiveness-Efficiency Dilemma

Designing high-performance neural networks for specific datasets is a persistent challenge in deep learning, often forcing practitioners to choose between two flawed extremes. On one side is Neural Architecture Search (NAS), a highly effective but computationally ruinous approach that essentially "reinvents the wheel" for every new task. On the other side is Model Retrieval, which quickly selects a pre-trained model from an existing repository. While retrieval is fast, it is inherently static—providing a starting point but offering no guidance on how to refine the model to accommodate the unique characteristics of new data.

This creates an "effectiveness-efficiency dilemma." Current methods either exhaust computational budgets searching from scratch or settle for suboptimal, off-the-shelf architectures. Furthermore, existing retrieval systems are highly vulnerable to Out-of-Distribution (OOD) shifts. When a new task diverges significantly from historical database entries, prior knowledge can become actively misleading.

To bridge this gap, researchers have introduced M-DESIGN, a retrieval-augmented refinement framework that shifts the paradigm from retrieving static models to retrieving dynamic architectural modifications.

Methodology: The M-DESIGN Framework

M-DESIGN treats model design as a sequence of fine-grained edits, discovering near-optimal architectures using a fraction of the compute required by traditional NAS. It achieves this through four core mechanisms:

  1. Architecture Modification-Gain Graph ($G_\Delta$): Rather than maintaining a flat repository of models, M-DESIGN constructs a relational graph. Nodes represent specific architectures, and edges represent 1-hop modifications (e.g., altering an aggregation function or adding a layer). Crucially, these edges are weighted by the performance gain observed when that edit was applied to prior tasks.
  2. Knowledge Weaving: To determine the optimal next "edit" for a novel task, M-DESIGN aggregates predicted gains by "weaving" evidence from multiple historical benchmark tasks, synthesizing a tailored modification path.
  3. Bayesian Dynamic Task Similarity: Traditional methods calculate task similarity once at the beginning of a search. M-DESIGN, however, updates its belief online. If a benchmark task’s historical advice yields poor results on the new dataset, the system applies Bayesian updating to immediately down-weight that benchmark's influence.
  4. Predictive Task Planners: To navigate "knowledge gaps"—where a specific architectural edit lacks historical data—or to handle severe OOD tasks, M-DESIGN employs Graph Neural Network (GNN)-based edge regressors. These planners extrapolate potential gains from multi-hop evidence, reducing reliance on an exhaustive historical repository.

Key Insights

The success of M-DESIGN is rooted in several conceptual breakthroughs regarding how we transfer architectural knowledge:

  • The "Edit-Effect" as the Unit of Knowledge: The core insight of M-DESIGN is that the performance gains resulting from small architectural changes are significantly more transferable across tasks than the absolute performance metrics of the models themselves.
  • Evolving Similarity: Task similarity is not static. A benchmark task might serve as an excellent guide during the early stages of model design but become a poor reference as the architecture nears its optimum. M-DESIGN’s ability to dynamically update task similarity prevents the search process from getting trapped in local optima.
  • Relational Reasoning over Checkpoints: By treating the model base as a graph of changes rather than a collection of isolated points, the system can reason about modification trajectories, effectively "pathfinding" its way to the optimal architecture.

Empirical Results and Datasets

The researchers primarily evaluated M-DESIGN on Graph Neural Networks (GNNs), a domain notoriously sensitive to data variations (e.g., an architecture optimized for a social network often fails on a molecular graph).

To support this, they curated a massive Model Knowledge Base (MKB) comprising 67,760 trained GNN models across 22 datasets and 33 task-data pairs. To demonstrate broad applicability, the framework was also tested on tabular data (HPOBench) and image data (NATS-Bench).

Key Findings: * Superior Performance: M-DESIGN achieved the search-space best performance in 26 out of 33 cases under a strict evaluation budget. * High Efficiency: The framework frequently reached high-performance architectures in just 5 to 50 evaluations. In contrast, baseline search methods often failed to match these levels even after 100 evaluations. * OOD Robustness: On challenging OOD datasets like Cornell or Texas—where standard retrieval typically fails due to misleading priors—M-DESIGN’s adaptive Bayesian mechanism successfully corrected its trajectory to discover optimal configurations.

Limitations and Future Directions

While highly effective, M-DESIGN's performance remains tethered to the validity of its local gain modeling. If the "landscape" of the model search space is exceptionally chaotic or non-convex, the assumption that 1-hop modifications provide reliable gradients for improvement may falter. Additionally, while the predictive task planners successfully mitigate OOD challenges, they serve as an empirical fallback rather than a mathematically guaranteed solution.

Future research directions include scaling the framework to accommodate larger model families, such as Transformers, and incorporating richer, more complex "edit operators." Furthermore, developing uncertainty-aware gain predictions could help the system better navigate the fundamental trade-off between exploration and exploitation in architectural design.

Summary updated

BibTeX
@inproceedings{wang2026beyond,
  author = {Jialiang Wang and Hanmo Liu and Shimin Di and Zhili Wang and Jiachuan Wang and Lei Chen and Xiaofang Zhou},
  title = {{Beyond Model Base Retrieval: Weaving Knowledge to Master Fine-grained Neural Network Design}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=96VOwRWMQr},
}
Figure