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

Jialiang Wang, Hanmo Liu, Shimin Di, Zhili Wang, Jiachuan Wang +2 more
7/21/2025
cs.LGcs.AIcs.DB

No official code found. Best implementation: jilwang84/M-DESIGN (1 star, Apache-2.0, last commit 2025-06-17).

Abstract

Database systems have recently advocated for embedding machine learning (ML) capabilities, offering declarative model queries over large, managed model repositories, thereby circumventing the huge computational overhead of traditional ML-based algorithms in automated neural network model selection. Pioneering database studies aim to organize existing benchmark repositories as model bases (MB), querying them for the model records with the highest performance estimation metrics for given tasks. However, this static model selection practice overlooks the fine-grained, evolving relational dependencies between diverse task queries and model architecture variations, resulting in suboptimal matches and failing to further refine the model effectively. To fill the model refinement gap in database research, we propose M-DESIGN, a curated model knowledge base (MKB) pipeline for mastering neural network refinement by adaptively weaving prior insights about model architecture modification. First, we propose a knowledge weaving engine that reframes model refinement as an adaptive query problem over task metadata. Given a user's task query, M-DESIGN quickly matches and iteratively refines candidate models by leveraging a graph-relational knowledge schema that explicitly encodes data properties, architecture variations, and pairwise performance deltas as joinable relations. This schema supports fine-grained relational analytics over architecture tweaks and drives a predictive query planner that can detect and adapt to out-of-distribution (OOD) tasks. We instantiate M-DESIGN for graph analytics tasks, where our model knowledge base enriches existing benchmarks with structured metadata covering 3 graph tasks and 22 graph datasets, contributing data records of 67,760 graph models. Empirical results demonstrate that M-DESIGN delivers the optimal model in 26 of 33 data-task pairs within limited budgets.

View on arXivView PDF

Code Implementations(1)

jilwang84/M-DESIGNCommunity64%
Apache-2.0

This is the official implementation of M-DESIGN in the paper ``Beyond Model Base Selection: Weaving Knowledge to Master Fine-grained Neural Network Design''

10PythonFeb 10, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2025beyond,
  title  = {Beyond Model Base Selection: Weaving Knowledge to Master Fine-grained Neural Network Design},
  author = {Jialiang Wang and Hanmo Liu and Shimin Di and Zhili Wang and Jiachuan Wang and Lei Chen and Xiaofang Zhou},
  year   = {2025},
  eprint = {2507.15336},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.15336v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.15336.svg)](https://codeofpaper.com/paper/2507.15336)

Discussion