Building LLM Agent Systems the Deep Learning Way: From Modular Design to Architecture Search
cs.CL
Submitted: 2026-10-04
Updated: 2026-10-04
Comments: 20 pages, 16 figures
License: http://creativecommons.org/licenses/by/4.0/
The gist: Large Language Models (LLMs) have revolutionized AI research and enabled exciting agent systems.
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.
Sources
- Graph of Thoughts: Solving Elaborate Problems with Large Language Models
- AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent Behaviors
- LLM as OS, Agents as Apps: Envisioning AIOS, Agents and the AIOS-Agent Ecosystem
- How to Train Your DRAGON: Diverse Augmentation Towards Generalizable Dense Retrieval
- Single Headed Attention RNN: Stop Thinking With Your Head
- MemGPT: Towards LLMs as Operating Systems
- Automating Customer Service using LangChain: Building custom open-source GPT Chatbot for organizations
- Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedback
- Reflexion: Language Agents with Verbal Reinforcement Learning
- Head-to-Tail: How Knowledgeable are Large Language Models (LLMs)? A.K.A. Will LLMs Replace Knowledge Graphs?
- Multi-Agent Collaboration: Harnessing the Power of Intelligent LLM Agents
- Survey on the attention based RNN model and its applications in computer vision
- A Survey on Large Language Model based Autonomous Agents
- AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation
- SmartPlay: A Benchmark for LLMs as Intelligent Agents
- RTHN: A RNN-Transformer Hierarchical Network for Emotion Cause Extraction
- ReAct: Synergizing Reasoning and Acting in Language Models
- LLM-based Medical Assistant Personalization with Short- and Long-Term Memory Coordination
- ExpeL: LLM Agents Are Experiential Learners
- Neural Architecture Search with Reinforcement Learning
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering