cs.CLOct 4, 2026

Building LLM Agent Systems the Deep Learning Way: From Modular Design to Architecture Search

Authors: Tao Feng, Pengrui Han, Zhongjie Dai, Jiaxuan You

Organizations: University of Illinois Urbana-Champaign

Abstract

Large Language Models (LLMs) have revolutionized AI research and enabled exciting agent systems. To build a complex LLM agent system, most existing research relies on insights from other domains or heuristics to manually build the agent system. However, this approach often requires heavy hand-engineering and fails to fully optimize for the downstream task of interest. Inspired by the tremendous success of deep learning, we propose to construct LLM agent systems in a modular manner, similar to building a deep neural network. Our key insight is to make analogies between LLM building blocks, such as retrievals, memories, and prompting strategies, and the successful deep learning modules, such as MLPs, attention, and recurrent modules. We further design forward inference and feedback mechanisms for LLMs, where prompts in LLMs are considered as the weights in deep models, and the prompt optimization from feedback is analogous to the back-propagation algorithm. We additionally leverage a search algorithm to search for the best configuration of LLM agent systems, similar to the neural architecture search (NAS) in deep learning research. Comprehensive experimental results demonstrate that the proposed deep learning recipe for LLM agent systems is highly effective, in particular: (1) Organizing LLM modules into deep-learning-style architectures yields noticeable performance gain; (2) Automatic prompt optimization, equivalent to backpropagation, is efficient in incorporating feedback from the task of interest and achieves at least 5% performance improvement; (3) NAS equivalent algorithm works well for further optimizing the LLM agent system architecture with 11% performance gain compared with randomly designed architectures. Overall, our research demonstrates the exciting opportunity of transferring the success of deep learning to building LLM agent systems.

Figures & tables

Appendix figures & tables12 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. TREX: Automating LLM Fine-tuning via Agent-Driven Tree-based Exploration

    Apr 15, 2026Zerun Ma, Guoqiang Wang, Xinchen Xie +7LLM Fine-TuningLLM Agent Training

  2. Evolving Excellence: Automated Optimization of LLM-based Agents

    Dec 9, 2025Paul Brookes, Vardan Voskanyan, Rafail Giavrimis +18Large Language Model-Guided OptimizationLLM Agent Workflow Optimization

  3. Self-Optimizing Multi-Agent Systems for Deep Research

    Apr 3, 2026Arthur Câmara, Vincent Slot, Jakub ZavrelDeep Research AgentsMulti-Agent LLM Systems