[Paper Review] Financial Trading as a Game: A Deep Reinforcement Learning Approach
This paper proposes a deep reinforcement learning framework for automated financial trading using a modified Deep Recurrent Q-Network (DRQN) tailored for foreign exchange markets. By introducing action augmentation to reduce reliance on epsilon-greedy exploration and using a minimal replay memory, the agent achieves significantly higher risk-adjusted returns—averaging 6.4% more annualized profit—across 12 currency pairs, with improved robustness and lower variance.
An automatic program that generates constant profit from the financial market is lucrative for every market practitioner. Recent advance in deep reinforcement learning provides a framework toward end-to-end training of such trading agent. In this paper, we propose an Markov Decision Process (MDP) model suitable for the financial trading task and solve it with the state-of-the-art deep recurrent Q-network (DRQN) algorithm. We propose several modifications to the existing learning algorithm to make it more suitable under the financial trading setting, namely 1. We employ a substantially small replay memory (only a few hundreds in size) compared to ones used in modern deep reinforcement learning algorithms (often millions in size.) 2. We develop an action augmentation technique to mitigate the need for random exploration by providing extra feedback signals for all actions to the agent. This enables us to use greedy policy over the course of learning and shows strong empirical performance compared to more commonly used epsilon-greedy exploration. However, this technique is specific to financial trading under a few market assumptions. 3. We sample a longer sequence for recurrent neural network training. A side product of this mechanism is that we can now train the agent for every T steps. This greatly reduces training time since the overall computation is down by a factor of T. We combine all of the above into a complete online learning algorithm and validate our approach on the spot foreign exchange market.
Motivation & Objective
- To develop a Markov Decision Process (MDP) model for signal-based financial trading that is compatible with deep reinforcement learning and uses only publicly available data.
- To address the challenge of high transaction costs from random exploration in financial markets by reducing reliance on epsilon-greedy strategies.
- To improve training efficiency and model stability in financial trading by using a small replay memory and longer recurrent sequences.
- To empirically validate the proposed method on real-world FX data and demonstrate consistent profitability under transaction costs.
Proposed method
- Formulates a financial trading task as a Markov Decision Process (MDP) with discrete time steps, observable market data, and a set of legal trading actions.
- Adapts the Deep Recurrent Q-Network (DRQN) algorithm with a substantially reduced replay memory size (a few hundred samples) to improve training efficiency and reduce memory overhead.
- Introduces an action augmentation technique that provides feedback signals for all actions during learning, enabling the use of a greedy policy instead of epsilon-greedy exploration.
- Employs longer sequence sampling for recurrent network training, allowing the agent to be updated every T steps and reducing overall computation by a factor of T.
- Uses a reward function based on cumulative portfolio return, with transaction costs explicitly modeled to reflect real trading constraints.
- Applies the algorithm online, continuously updating the agent on new market data without retraining from scratch.
Experimental results
Research questions
- RQ1Can a deep reinforcement learning agent learn profitable, risk-adjusted trading strategies in the foreign exchange market using only public OHLC data and minimal exploration?
- RQ2How does action augmentation compare to traditional epsilon-greedy exploration in terms of performance and robustness under transaction costs?
- RQ3What impact does using a small replay memory have on learning stability and convergence in financial trading tasks?
- RQ4Does increasing the bid-ask spread during training lead to more robust or higher-performing trading strategies?
- RQ5Can the agent discover strategies with low correlation across different currency pairs, indicating diversified risk exposure?
Key findings
- The action augmentation technique improved average annualized returns by 6.4% across 12 currency pairs compared to epsilon-greedy exploration, with reduced performance variance.
- The agent achieved positive risk-adjusted returns under realistic transaction costs—marking the first reported success of pure deep reinforcement learning in this setting.
- Using a small replay memory (a few hundred samples) enabled faster training and reduced memory usage without sacrificing performance.
- Longer recurrent sequence sampling allowed for more efficient training by enabling updates every T steps, reducing total computation by a factor of T.
- A counter-intuitive finding was that slightly increasing the bid-ask spread improved overall performance, suggesting it encourages the agent to learn more robust strategies.
- The discovered strategies exhibited low or no correlation across different currency pairs, indicating diversification potential in a portfolio setting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.