TradingGPT: Multi-Agent System with Layered Memory and Distinct Characters for Enhanced Financial Trading Performance

Yang Li,Yangyang Yu,Haohang Li,Zhi Chen,Khaldoun Khashanah
2023-09-07
Abstract:Large Language Models (LLMs), prominently highlighted by the recent evolution in the Generative Pre-trained Transformers (GPT) series, have displayed significant prowess across various domains, such as aiding in healthcare diagnostics and curating analytical business reports. The efficacy of GPTs lies in their ability to decode human instructions, achieved through comprehensively processing historical inputs as an entirety within their memory system. Yet, the memory processing of GPTs does not precisely emulate the hierarchical nature of human memory. This can result in LLMs struggling to prioritize immediate and critical tasks efficiently. To bridge this gap, we introduce an innovative LLM multi-agent framework endowed with layered memories. We assert that this framework is well-suited for stock and fund trading, where the extraction of highly relevant insights from hierarchical financial data is imperative to inform trading decisions. Within this framework, one agent organizes memory into three distinct layers, each governed by a custom decay mechanism, aligning more closely with human cognitive processes. Agents can also engage in inter-agent debate. In financial trading contexts, LLMs serve as the decision core for trading agents, leveraging their layered memory system to integrate multi-source historical actions and market insights. This equips them to navigate financial changes, formulate strategies, and debate with peer agents about investment decisions. Another standout feature of our approach is to equip agents with individualized trading traits, enhancing memory diversity and decision robustness. These sophisticated designs boost the system's responsiveness to historical trades and real-time market signals, ensuring superior automated trading accuracy.
Portfolio Management,Trading and Market Microstructure
What problem does this paper attempt to address?
The paper aims to address the issue of automated decision-making in financial trading. Specifically, it seeks to enhance the performance of financial trading by introducing an innovative multi-agent system called TradingGPT. The main problems the paper attempts to solve are as follows: 1. **Improving Memory Handling Mechanisms**: Existing large language models (LLMs) like the GPT series cannot accurately simulate the hierarchical structure of human memory (long-term, medium-term, and short-term memory) when processing historical information, making it difficult to prioritize immediate and critical tasks. 2. **Enhancing Trading Decision-Making Ability**: To improve the quality of decisions in stock and fund trading, a system is needed that can extract relevant insights from multi-level financial data to better guide trading decisions. 3. **Achieving Efficient Collaboration and Debate**: By introducing a multi-agent framework, agents can communicate and debate effectively, thereby optimizing the overall trading strategy. 4. **Personalized Trading Role Design**: Each agent is endowed with different trading personality traits (such as risk preference) to make their behavior more akin to real traders, thereby increasing the diversity and robustness of decisions. 5. **Integrating Multi-Modal Data Sources**: By merging real-time data from various sources (including macro and micro perspectives and historical trading records), the system can gain a comprehensive understanding of the financial market conditions, ensuring timely responses and supporting high-frequency trading. In summary, the goal of this research is to significantly improve the performance of automated trading in financial markets by constructing a multi-agent system based on LLMs that combines multi-level memory and role design.