Introduction
Algorithmic trading in financial markets presents a unique challenge for artificial intelligence: the environment is non-stationary, data is relatively scarce, and the underlying "rules" of the market shift constantly—a phenomenon known as concept drift. This paper proposes a novel neuro-symbolic framework that combines the adaptive capabilities of Meta-Reinforcement Learning (Meta-RL) with the interpretability and structural priors of Inductive Logic Programming (ILP).
The Challenge: Data Scarcity and Concept Drift
Standard Deep Reinforcement Learning (RL) agents often fail in financial contexts for two primary reasons:
- Data Scarcity: Unlike the vast datasets available for natural language or computer vision, high-quality financial history is limited, and different assets often exhibit unique behaviors.
- Concept Drift: Markets undergo regime changes (e.g., shifting from a bull to a bear market). A strategy optimized for one regime may become obsolete or even detrimental in another.
Furthermore, human traders do not merely process raw price ticks; they utilize symbolic abstractions and patterns to make decisions. Bridging the gap between raw numerical data and these high-level symbolic representations is the core objective of this research.
Methodology: Bridging Neural and Symbolic Learning
The authors develop a two-pronged architecture designed to "learn how to learn" while incorporating human-like symbolic reasoning.
Meta-Reinforcement Learning ($RL^2$)
To address non-stationarity, the system employs the $RL^2$ algorithm. Unlike vanilla RL, the agent's input includes the current market state, the previous action, and the previous reward. Using a Proximal Policy Optimization (PPO) algorithm with an LSTM backbone, the agent maintains a hidden state that acts as a fast-adapting memory. This allows the agent to adjust its strategy dynamically within a single trading day based on its recent performance.
Inductive Logic Programming (ILP)
To mimic human intuition, the researchers use ILP to discover and integrate symbolic features. These features are categorized into:
- Hand-crafted Patterns: Established technical patterns such as "three crows" (three consecutive price drops).
- Learned Patterns: Using Prolog-based meta-rules, the system automatically discovers new sequences or "runs" across various technical indicators.
Because ILP can generate thousands of potential patterns, a Random Forest regressor is used to rank features by their importance in predicting rewards, ensuring only the most salient symbolic information is fed into the Meta-RL agent.
Experimental Results
The study evaluated the model using 1-minute granularity price data augmented with 15 technical indicators (e.g., RSI, Moving Averages).
The "Goldilocks" Window
A key finding was the existence of an optimal training window. Performance generally peaked when training on 5 days of data, while extending the window to 15 days often led to worse results. This supports the concept drift hypothesis: older data can become "stale" and introduce noise that confuses the agent regarding the current market regime.
The Impact of Symbolic Features
The integration of logical features provided a significant performance boost. As shown in the results, adding "Learned Logical Features" to standard technical indicators consistently improved returns. For instance, in a 6-symbol configuration with a 5-day window, the daily return increased from 0.36% to 0.45% when logical features were included.
Meta-RL vs. Vanilla RL
Quantitatively, the Meta-RL approach significantly outperformed Vanilla RL. While Vanilla RL agents often produced negative returns (ranging from -0.12% to -0.52%), the Meta-RL agents remained largely profitable, demonstrating the necessity of the "learning to learn" paradigm in volatile environments.
Conclusion and Future Work
The neuro-symbolic approach demonstrates that combining neural adaptation with symbolic reasoning creates more robust trading agents. Future research directions include developing dynamic exit strategies (moving beyond fixed stop-losses) and exploring the use of Large Language Models (LLMs) to augment or replace the ILP component for even more sophisticated feature discovery.
Summary updated