Paper: arXiv 2411.00782
Abstract
The integration of Artificial Intelligence (AI) in the financial domain has opened new avenues for quantitative trading, particularly through the use of Large Language Models (LLMs). However, the challenge of effectively synthesizing insights from diverse data sources and integrating both structured and unstructured data persists. This paper presents TradeExpert, a novel framework that employs a mix of experts (MoE) approach, using four specialized LLMs, each analyzing distinct sources of financial data, including news articles, market data, alpha factors, and fundamental data. The insights of these expert LLMs are further synthesized by a General Expert LLM to make a final prediction or decision. With specific prompts, TradeExpert can be switched between the prediction mode and the ranking mode for stock movement prediction and quantitative stock trading, respectively. In addition to existing benchmarks, we also release a large-scale financial dataset to comprehensively evaluate TradeExpert’s effectiveness. Our experimental results demonstrate TradeExpert’s superior performance across all trading scenarios.
Complexity vs Empirical Score
- Math Complexity: 3.5/10
- Empirical Rigor: 6.0/10 (capped from 7.5: transaction costs not modelled; see penalty flags)
- Quadrant: Street Traders — practical and empirical, lighter on theory
Why this score: The paper primarily focuses on engineering a complex LLM-based framework with prompting and fine-tuning, which is architecturally heavy but mathematically lightweight; however, it demonstrates high empirical rigor by releasing a large-scale dataset, reporting specific backtesting metrics (Annualized Return, Sharpe Ratio, etc.), and conducting ablation studies.
Research Flowchart
flowchart TD Goal["Research Goal: Improve quantitative trading<br>using LLMs on structured/unstructured data"] --> Data["Data Inputs:<br>News, Market Data, Alpha Factors, Fundamentals"] Data --> Strategy["Methodology: MoE Framework<br>4 Expert LLMs + 1 General Expert"] Strategy --> Mode["Switch Modes via Prompting:<br>Prediction Mode or Ranking Mode"] Mode --> Process["Computational Process:<br>Experts analyze specific data, General Expert synthesizes"] Process --> Outcome["Key Findings: TradeExpert shows<br>superior performance across trading scenarios"]
Cited References (57)
- Blackboard Systems (1986)
- Communication, Simulation, and Intelligent Agents: Implications of Personal Intelligent Machines for Medical Education (1983)
- Classification Problem Solving (1984)
- New Ways to Make Microcircuits Smaller (1980) — link
- New Ways to Make Microcircuits Smaller—Duplicate Entry (1980)
- Strategic explanations for a diagnostic consultation system (1984) — link
- Strategic Explanations in Consultation—Duplicate (1983)
- Poligon: A System for Parallel Problem Solving (1986)
and 49 more
- Transfer of Rule-Based Expertise through a Tutorial Dialogue (1979)
- The Engineering of Qualitative Models (2021)
- Attention Is All You Need (2017) — link
- Pluto: The ‘Other’ Red Planet (2015)
- FinGPT: Open-Source Financial Large Language Models (2023)
- Finbert: Financial sentiment analysis with pre-trained language models (2019) — link
- Bloomberggpt: A large language model for finance (2023) — link
- When FLUE Meets FLANG: Benchmarks and Large Pretrained Language Model for Financial Domain (2022)
- Bbt-fin: Comprehensive construction of chinese financial domain pre-trained language model, corpus and benchmark (2023) — link
- PIXIU: a large language model, instruction data and evaluation benchmark for finance (2023)
- Investlm: A large language model for investment using financial domain instruction tuning — → 2309.13064
- FinReport: Explainable Stock Earnings Forecasting via News Factor Analyzing Model (2024)
- AlphaFin: Benchmarking Financial Analysis with Retrieval-Augmented Stock-Chain Framework (2024)
- Astock: A new dataset and automated stock trading based on stock-specific news analyzing model (2022) — link
- Stock movement prediction from tweets and historical prices (2018)
- Accurate stock movement prediction with self-supervised learning from sparse noisy tweets (2022)
- Can chatgpt forecast stock price movements? return predictability and large language models — → 2304.07619
- ChatGPT informed graph neural network for stock movement prediction — → 2306.03763
- Time-LLM: Time Series Forecasting by Reprogramming Large Language Models (2024)
- Hybrid deep sequential modeling for social text-driven stock prediction (2018)
- Llama 2: Open foundation and fine-tuned chat models (2023) — link
- Gpt-4 technical report (2023) — link
- Gemini: a family of highly capable multimodal models (2023) — link
- The Llama 3 Herd of Models (2024) — link
- InternLM2 Technical Report (2024) — link
- The falcon series of open language models (2023) — link
- Mistral 7B (2023) — link
- Deep reinforcement learning for automated stock trading: An ensemble strategy (2020)
- FinRL: A deep reinforcement learning library for automated stock trading in quantitative finance (2020) — link
- ModAugNet: A new forecasting framework for stock market index value with an overfitting prevention LSTM module and a prediction LSTM module (2018)
- Financial time series forecasting using cnn and transformer — → 2304.04912
- Llama: Open and efficient foundation language models (2023) — link
- Language models are few-shot learners (2020) — link
- Mixture-of-experts meets instruction tuning: A winning combination for large language models (2023) — link
- Glam: Efficient scaling of language models with mixture-of-experts (2022)
- Learning factored representations in a deep mixture of experts (2013) — link
- Time series feature extraction on basis of scalable hypothesis tests (tsfresh–a python package) (2018)
- Lo RA : Low-Rank Adaptation of Large Language Models (2022) — link
- Lightgbm: A highly efficient gradient boosting decision tree (2017)
- Aligning with human judgement: The role of pairwise preference in large language model evaluators (2024) — link
- Random forests (2001)
- Classification and regression trees (2011)
- Support-vector networks (1995)
- Asynchronous methods for deep reinforcement learning (2016)
- Proximal policy optimization algorithms (2017) — link
- DeepTrader: a deep reinforcememant learning approach for risk-return balanced portfolio management with market conditions Embedding (2021)
- Reinforcement-learning based portfolio management with augmented asset movement prediction states (2020)
- A deep reinforcement learning framework for the financial portfolio management problem (2017) — link
- Chain-of-thought prompting elicits reasoning in large language models (2022)
4 of 57 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.