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

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

23 Nov 2023arXiv:2311.13743archive 2025-07-28

Yangyang Yu, Haohang Li, Zhi Chen, Yuechen Jiang, Yang Li, Denghui Zhang, Rong Liu, Jordan W. Suchow, Khaldoun Khashanah

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.13743")

Code

Syntology Ran 11 of 12 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

pipiku915/finmem-llm-stocktrading officialmentioned in papermentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 11 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11ran
1unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from pipiku915/FinMem-LLM-StockTrading. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calculate_cumulative_rewards pipiku915/FinMem-LLM-StockTrading/data-pipeline/08-Wilcoxon-Test.py official repository ran MIT (permissive) · 06c8c337cb9faea4 · report
clean_news pipiku915/FinMem-LLM-StockTrading/data-pipeline/02-Raw_News_Data_Cleaning_Refinitiv.py official repository ran MIT (permissive) · d110f02f153fe0a4 · report
combine_dataframes pipiku915/FinMem-LLM-StockTrading/data-pipeline/04-data_pipeline.py official repository ran MIT (permissive) · e2d9c4920efbcf3a · report
create_new_headline pipiku915/FinMem-LLM-StockTrading/data-pipeline/02-Raw_News_Data_Cleaning_Refinitiv.py official repository ran MIT (permissive) · 7bdc0a64fe321fbc · report
daily_reward pipiku915/FinMem-LLM-StockTrading/data-pipeline/07-metrics.py official repository ran MIT (permissive) · 184f3f424dcccd97 · report
extract_update_number pipiku915/FinMem-LLM-StockTrading/data-pipeline/02-Raw_News_Data_Cleaning_Refinitiv.py official repository ran fingerprinted MIT (permissive) · 6d03bf7d835fdfa0 · report
get_action pipiku915/FinMem-LLM-StockTrading/data-pipeline/07-metrics.py official repository ran MIT (permissive) · dae1a5ebf16c3cc2 · report
get_action pipiku915/FinMem-LLM-StockTrading/data-pipeline/08-Wilcoxon-Test.py official repository ran MIT (permissive) · db5525231f727fc6 · report
reward_list pipiku915/FinMem-LLM-StockTrading/data-pipeline/06-Visualize-results.py official repository ran MIT (permissive) · 3128bb25059ad106 · report
round_to_next_day pipiku915/FinMem-LLM-StockTrading/data-pipeline/01_Alpaca_News_API_download.py official repository ran MIT (permissive) · 924174a2639a4d27 · report
subset_symbol_dict pipiku915/FinMem-LLM-StockTrading/data-pipeline/05-get_sentiment_by_ticker.py official repository ran MIT (permissive) · 0ea6e47dfb1b573b · report
create_news_dict pipiku915/FinMem-LLM-StockTrading/data-pipeline/04-data_pipeline.py official repository unverified MIT (permissive) · 1166076c304f6066 · report

Tasks

Decision MakingLanguage ModellingLarge Language ModelQuestion Answering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections