Adaptive and Explainable Margin Trading via Large Language Models on Portfolio Management

Jingyi Gu, Junyi Ye, Guiling Wang, Wenpeng Yin

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Recent strategies for portfolio management often lack flexibility to adjust funds between long and short positions throughout trading periods. This prevents adapting portfolios to the market, which mitigates risks and seizes opportunities. To address these gaps, we propose an adaptive and explainable framework that integrates Large Language Models (LLMs) with Reinforcement Learning (RL) for dynamic long-short position adjustment in response to evolving market conditions. This approach leverages the recent advancements in LLMs for processing unstructured data and their capacity for explainable reasoning. The framework includes two stages: an Explainable Market Forecasting/Reasoning Pipeline, and a Position Reallocation stage. The Market Forecasting/Reasoning Pipeline allows various LLMs to learn market trends from diverse external data sources and determine optimal adjustment ratios with a clear reasoning path. The Portfolio Reallocation stage interacts with the sequential trading process from a pre-trained RL model to enhance decision-making and transparency. Our framework is flexible to accommodate various external data sources from microeconomics to macroeconomics data, diverse data types including time series and news text, along with multiple LLMs. Experiments demonstrate that our framework effectively achieves three times the return and doubles the Sharpe ratio compared to benchmarks. All the data and code are publicly available under NJIT FinTech Lab's GitHub1.

Original languageEnglish (US)
Title of host publicationICAIF 2024 - 5th ACM International Conference on AI in Finance
PublisherAssociation for Computing Machinery, Inc
Pages248-256
Number of pages9
ISBN (Electronic)9798400710810
DOIs
StatePublished - Nov 14 2024
Event5th ACM International Conference on AI in Finance, ICAIF 2024 - Brooklyn, United States
Duration: Nov 14 2024Nov 17 2024

Publication series

NameICAIF 2024 - 5th ACM International Conference on AI in Finance

Conference

Conference5th ACM International Conference on AI in Finance, ICAIF 2024
Country/TerritoryUnited States
CityBrooklyn
Period11/14/2411/17/24

All Science Journal Classification (ASJC) codes

  • Artificial Intelligence
  • Finance

Fingerprint

Dive into the research topics of 'Adaptive and Explainable Margin Trading via Large Language Models on Portfolio Management'. Together they form a unique fingerprint.

Cite this