FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory and Character Design

Yangyang Yu, Haohang Li, Zhi Chen, Yuechen Jiang, Yang Li +4 more
11/23/2023
q-fin.CPcs.AIcs.CE

Official code: pipiku915/FinMem-LLM-StockTrading (931 stars, MIT, last commit 2024-08-18). 1 more implementation below.

Abstract

Recent advancements in Large Language Models (LLMs) have exhibited notable efficacy in question-answering (QA) tasks across diverse domains. Their prowess in integrating extensive web knowledge has fueled interest in developing LLM-based autonomous agents. While LLMs are efficient in decoding human instructions and deriving solutions by holistically processing historical inputs, transitioning to purpose-driven agents requires a supplementary rational architecture to process multi-source information, establish reasoning chains, and prioritize critical tasks. Addressing this, we introduce \textsc{FinMem}, a novel LLM-based agent framework devised for financial decision-making. It encompasses three core modules: Profiling, to customize the agent's characteristics; Memory, with layered message processing, to aid the agent in assimilating hierarchical financial data; and Decision-making, to convert insights gained from memories into investment decisions. Notably, \textsc{FinMem}'s memory module aligns closely with the cognitive structure of human traders, offering robust interpretability and real-time tuning. Its adjustable cognitive span allows for the retention of critical information beyond human perceptual limits, thereby enhancing trading outcomes. This framework enables the agent to self-evolve its professional knowledge, react agilely to new investment cues, and continuously refine trading decisions in the volatile financial environment. We first compare \textsc{FinMem} with various algorithmic agents on a scalable real-world financial dataset, underscoring its leading trading performance in stocks. We then fine-tuned the agent's perceptual span and character setting to achieve a significantly enhanced trading performance. Collectively, \textsc{FinMem} presents a cutting-edge LLM agent framework for automated trading, boosting cumulative investment returns.

View on arXivView PDF

Code Implementations(2)

MIT

FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory and Character Design

931191Shell, PythonDec 1, 20232 years agoMIT
MIT

Reinforcement learning based stock trading signal prediction: buy, sell, or hold. The impementation is based on code, FinMem https://arxiv.org/abs/2311.13743. But make a lot of changes.

00Shell, PythonOct 20, 20251 years agoMIT

Similar Papers

Cite this paper

@article{yu2023finmem,
  title  = {FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory and Character Design},
  author = {Yangyang Yu and Haohang Li and Zhi Chen and Yuechen Jiang and Yang Li and Denghui Zhang and Rong Liu and Jordan W. Suchow and Khaldoun Khashanah},
  year   = {2023},
  eprint = {2311.13743},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.13743v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.13743.svg)](https://codeofpaper.com/paper/2311.13743)

Discussion