AutoMMLab: Automatically Generating Deployable Models from Language Instructions for Computer Vision Tasks

Zekang Yang, Wang Zeng, Sheng Jin, Chen Qian, Ping Luo, Wentao Liu

Introduction

The development of production-ready computer vision (CV) models is traditionally a fragmented process requiring significant expertise. Developers must manually navigate data curation, model selection based on hardware constraints, hyperparameter tuning, and deployment across various backends. This "expert-in-the-loop" requirement creates a significant barrier for non-specialists.

AutoMMLab introduces a novel "request-to-model" paradigm. It is a platform designed to transform high-level natural language instructions into fully trained, deployable CV models. By leveraging specialized Large Language Models (LLMs), AutoMMLab automates the entire workflow, significantly lowering the barrier to entry for production-grade AI development.

An example of a natural language user instruction for a vehicle detection model.

System Architecture

AutoMMLab orchestrates five core modules to bridge the gap between human intent and a compiled model:

The high-level end-to-end pipeline of the AutoMMLab system.
  1. Request Understanding (RU-LLaMA): A fine-tuned Llama-2 model that parses natural language into structured JSON, capturing data targets, hardware constraints (e.g., parameter counts), and deployment requirements.
  2. Data Selection: A pipeline that retrieves relevant images and labels from a "Dataset Zoo" using fuzzy matching and WordNet based on the parsed request.
  3. Model Selection: The system filters a "Model Zoo" of pre-profiled architectures (model cards) to find the best fit for the user's specific hardware and performance constraints.
  4. HPO-LLaMA: A novel LLM-based hyperparameter optimizer. Fine-tuned on 8,000 experiments, it uses "experience" to suggest optimal training parameters in just 1–3 rounds, outperforming traditional blind search methods.
  5. Model Deployment: Using MMDeploy, the system automatically converts the trained model into formats like ONNX or TensorRT for immediate use.

Benchmarking and Datasets

To evaluate the system, the authors introduced the LAMP Benchmark (Language-instructed Automated Model Production), consisting of 80 unique instructions across image classification, object detection, semantic segmentation, and keypoint detection.

The system relies on a Dataset Zoo of standard CV datasets (e.g., ImageNet, COCO) and a specialized HPO Dataset containing 8,000 "request-hyperparameter-performance" triplets used to train the HPO-LLaMA model.

Key Insights and Results

The core innovation lies in treating LLMs as domain experts rather than simple parsers. By fine-tuning them on experimental data, the models internalize the intuition of a senior ML engineer, knowing which hyperparameters are likely to work for a specific task without exhaustive trial and error.

  • Parsing Accuracy: RU-LLaMA achieved 86.25% request-level accuracy on the LAMP benchmark, outperforming GPT-4 (80.00%).
  • Optimization Efficiency: HPO-LLaMA reached higher accuracy in a single round than traditional Bayesian optimization achieved in five.
  • End-to-End Performance: On a 160-point functional grading scale, AutoMMLab scored 112/160, significantly higher than baselines using off-the-shelf LLMs.

Limitations and Future Directions

While AutoMMLab marks a significant step forward, several areas remain for improvement. Current model selection relies on static model cards; future iterations could integrate real-time hardware profiling. Additionally, the system currently focuses on the "big four" CV tasks, with plans to expand into video analysis and multi-modal tasks. Finally, enhancing the system to handle private user datasets securely and allowing for iterative dialogue during request understanding are key priorities for future development.

Summary updated

BibTeX
@inproceedings{yang2025autommlab,
  author = {Zekang Yang and Wang Zeng and Sheng Jin and Chen Qian and Ping Luo and Wentao Liu},
  title = {{AutoMMLab: Automatically Generating Deployable Models from Language Instructions for Computer Vision Tasks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i21.34358},
}
Figure