FinRL_DeepSeek  by benstaf

LLM-infused risk-sensitive RL for trading agents

Created 7 months ago
267 stars

Top 95.9% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides code for LLM-infused risk-sensitive reinforcement learning for trading agents, targeting researchers and practitioners in quantitative finance. It offers novel approaches to enhance trading agent performance by integrating Large Language Models (LLMs) for risk-aware decision-making, aiming for improved financial strategies.

How It Works

The project integrates LLM-generated sentiment and risk signals into traditional reinforcement learning algorithms like PPO and CPPO. This is achieved by preprocessing financial news data with LLMs (DeepSeek) to extract sentiment and risk metrics, which are then incorporated into the trading environment. This LLM-infused approach allows agents to make more nuanced, risk-sensitive trading decisions compared to standard RL methods.

Quick Start & Requirements

Highlighted Details

  • Preliminary results suggest PPO performs better in bull markets, while CPPO-DeepSeek excels in bear markets.
  • LLM signals are generated using sentiment_deepseek_deepinfra.py and risk_deepseek_deepinfra.py.
  • Training commands are provided for PPO, CPPO, PPO-DeepSeek, and CPPO-DeepSeek.
  • Evaluation metrics include Information Ratio, CVaR, and Rachev Ratio.

Maintenance & Community

The project has been integrated into the original FinRL project by AI4Finance and is the basis for task 1 in the FinRL contest 2025.

Licensing & Compatibility

The repository's license is not explicitly stated in the README. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The README recommends specific hardware (128 GB RAM CPU instance) for installation, suggesting potentially high resource requirements. The LLM integration involves multiple data preprocessing steps, which may require significant computational resources and time. The specific LLM models and their integration details might require further investigation for optimal performance.

Health Check
Last Commit

5 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
14 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Didier Lopes Didier Lopes(Founder of OpenBB), and
5 more.

qlib by microsoft

1.4%
31k
AI platform for quantitative investment research and production
Created 5 years ago
Updated 3 days ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Junyang Lin Junyang Lin(Core Maintainer at Alibaba Qwen), and
4 more.

ai-hedge-fund by virattt

2.4%
41k
AI-powered hedge fund proof-of-concept for educational use
Created 9 months ago
Updated 1 day ago
Feedback? Help us improve.