Curating Same-Family Neural Networks for LLM-Guided Model Improvement: A Controlled Case Study

Kabir Dev Paul Baghel, Radu Timofte, Dmitry Ignatov

TL;DR

This paper demonstrates that Large Language Models (LLMs) can significantly improve low-performing neural networks when prompted with a successful "source" experiment from the same architecture family. Crucially, the authors find that data curation matters: selecting a source model based on structural similarity yields better LLM-guided improvements than simply picking the model with the highest historical accuracy.

What Problem Does This Paper Address?

While automated machine learning (AutoML) and neural architecture search (NAS) have traditionally relied on heavy optimization loops, modern machine learning repositories now store vast collections of complete, executable past experiments. This opens up a new paradigm: using LLMs to guide model improvement by leveraging these historical records directly in the prompt.

However, a key challenge arises: How should we select (or curate) a past experiment to serve as the best guide for a new, low-performing target model? Is it better to provide the model with the highest recorded accuracy, or one that shares a closer architectural design? The authors tackle this experiment-curation problem under strict, equal-budget constraints to isolate the true value of source-guided prompting.

Methods

The authors introduce TuneNNGen, an extension of the prompt-based architecture generation framework NNGPT. TuneNNGen connects to the LEMUR Neural Network Database to fetch complete experimental records (including model code, training recipes, input transformations, and accuracies).

The pipeline evaluates two main routes under identical generation and training budgets:

  1. Target-only route: The LLM receives only the low-performing target network.
  2. Source-guided route: The LLM receives both the target network and a curated, higher-performing source network from the same family.
Fig. 1: Complete pipeline. A curated higher-accuracy network supplies context only to the source-guided route. The target-only and source-guided routes receive equal generation and training budgets, and the final step selects the strongest validated candidate across both routes.

To understand exactly how the source information helps, the authors broke the experiments down into four distinct prompting conditions, testing whether the LLM was modifying the training recipe or editing the architecture itself.

Generation conditions used in the experiments.

Datasets

The approach was evaluated across several standard image-classification benchmarks:

  • CIFAR-10 and SVHN (used for the main $N=32$ attempt generation comparisons)
  • CIFAR-100, Imagenette, and CelebA-Gender (used for broader exploratory probes and longer-training validation checks)

Key Insights and Ideas

  • Structure over Stored Accuracy: On CIFAR-10, providing a source with a matching layer organization (archbest, 74.27% accuracy) consistently yielded a higher "guided advantage" across three different LLMs than providing the overall highest-accuracy source (highsource, 81.94% accuracy). Historical accuracy alone does not predict transferability.
  • Adaptation vs. Literal Copying: Simply copying a high-performing training recipe directly to a poor target model (hp_copy) can fail drastically. For instance, on SVHN, a direct copy resulted in a 2.95-point drop because the source hyperparameters belonged to a model already near 95% accuracy. However, when the LLM was allowed to adapt that same source recipe, it achieved a massive +59.21 point gain.
  • The Batch Size Mechanism: In a concrete case study on CIFAR-10, the winning guided recipe combined the target's learning rate with a significantly smaller batch size extracted from the source, leading to far more optimizer updates per epoch during the budget-constrained training.

Key Results

Under a fast, historical one-epoch search protocol, source guidance led to dramatic performance leaps compared to target-only generation:

  • CIFAR-10: Best-of-budget accuracy increased from 23.98% to 50.49% (using DeepSeek-Coder-6.7B).
  • SVHN: Best-of-budget accuracy surged from 22.54% to 78.80%.

To ensure these gains weren't artifacts of the brief 1-epoch training budget, the authors ran selected recipes through a robust 5-epoch, 3-seed validation protocol. The performance advantages persisted, retaining gains of 40.94 points on CIFAR-10, 18.83 points on Imagenette, and 7.27 points on CIFAR-100.

Limitations and Future Work

The authors note that their most prominent positive results are concentrated within AlexNet-style targets; performance on other architecture families (like BagNet or AirNext) was mixed. Additionally, the main search protocol relied on a single training epoch, meaning the value of guidance is most apparent in budget-constrained regimes.

Future work could explore more automated, learned retrieval rules for data curation rather than the fixed manual selection rules tested here, as well as expanding the framework to more diverse and complex network architectures.

Summary updated

BibTeX
@inproceedings{baghel2026curating,
  author = {Kabir Dev Paul Baghel and Radu Timofte and Dmitry Ignatov},
  title = {{Curating Same-Family Neural Networks for LLM-Guided Model Improvement: A Controlled Case Study}},
  booktitle = {CDEL @ ECCV},
  year = {2026},
  url = {https://openreview.net/forum?id=zwC7oa5O5e},
}
Figure