Abstract: Dynamic pricing is considered a possibility to gain an advantage over competitors in modern online markets. The past advancements in Reinforcement Learning (RL) provided more capable algorithms that can be used to solve pricing problems. In this paper, we study the performance of Deep Q-Networks (DQN) and Soft Actor Critic (SAC) in different market models. We consider tractable duopoly settings, where optimal solutions derived by dynamic programming techniques can be used for verification, as well as oligopoly settings, which are usually intractable due to the curse of dimensionality. We find that both algorithms provide reasonable results, while SAC performs better than DQN. Moreover, we show that under certain conditions, RL algorithms can be forced into collusion by their competitors without direct communication.
Introduction
In modern e-commerce, prices change in milliseconds. Setting the "right" price is a moving target because it depends on customer behavior and how competitors react to your changes. Traditionally, researchers used Dynamic Programming (DP) to find optimal pricing strategies. However, DP suffers from the "curse of dimensionality": as you add more competitors or complex state variables (like inventory levels or varying demand), the math becomes computationally impossible.
Reinforcement Learning (RL) offers a "model-free" alternative where agents learn by trial and error. This study evaluates how modern RL algorithms—specifically Deep Q-Networks (DQN) and Soft Actor-Critic (SAC)—perform in competitive landscapes where the "optimal" move depends entirely on the opponent's strategy.
Methodology
The authors compare two prominent RL approaches:
- Deep Q-Networks (DQN): A value-based approach that estimates the "worth" of taking a specific action in a given state. Advanced versions (Double and Dueling DQN) were used to improve stability.
- Soft Actor-Critic (SAC): An actor-critic method that optimizes for both expected reward and entropy. The entropy term encourages exploration and prevents the policy from collapsing into a single predictable action too early.
The environment is a simulated market where customer demand is modeled using a logistic function calibrated on real-world data. The state-space includes current competitor prices, and the action-space is the price the agent chooses (1 to 50 units).
Key Insights and Results
Convergence and Performance
In complex scenarios, SAC generally outperforms DQN. While RL is powerful, it is data-hungry; agents typically required between 400,000 and 500,000 episodes to achieve stable performance. SAC's drive for entropy helps it find sophisticated strategies in diverse markets, whereas DQN often converges to simpler, state-independent strategies.
The Entropy Trade-off
SAC’s biggest strength—exploration—can be a weakness in simpler settings. Against a "fixed price" competitor, SAC’s entropy prevents it from settling on a single perfect price. However, DQN’s "one-price" bias makes it better at exploiting competitors who use predictable "two-bound" strategies (jumping between high and low prices). As shown in the performance against a two-bound strategy, DQN often reaches higher reward levels faster, though SAC eventually catches up as it learns the pattern.
Tacit Collusion
A striking finding is that RL agents can be "coerced" into price collusion. By aggressively "dumping" prices whenever the agent undercuts them, but offering a high "cartel price" otherwise, a competitor can train the RL agent to realize that cooperating at a high price yields more long-term reward than a price war. This occurs without any direct communication between the bots.
Conclusion
While both DQN and SAC provide reasonable results in dynamic pricing, SAC is generally superior in complex oligopoly settings. The primary limitation remains data efficiency, as real-world sellers may not have the luxury of half a million episodes to learn. Future work should explore multi-task RL to speed up learning across different products and testing agents in finite-horizon problems like perishable inventory management.
Summary updated