Abstract: Soft Actor-Critic (SAC) is considered the state-of-the-art algorithm in continuous action space settings. It uses the maximum entropy framework for efficiency and stability, and applies a heuristic temperature Lagrange term to tune the temperature $\alpha$, which determines how "soft" the policy should be. It is counter-intuitive that empirical evidence shows SAC does not perform well in discrete domains. In this paper we investigate the possible explanations for this phenomenon and propose Target Entropy Scheduled SAC (TES-SAC), an annealing method for the target entropy parameter applied on SAC. Target entropy is a constant in the temperature Lagrange term and represents the target policy entropy in discrete SAC. We compare our method on Atari 2600 games with different constant target entropy SAC, and analyze on how our scheduling affects SAC.
Introduction
Soft Actor-Critic (SAC) has established itself as a robust framework for continuous reinforcement learning tasks. However, its application to discrete action spaces—such as the Atari 2600 benchmark—has historically yielded suboptimal results. This paper identifies the sensitivity of the target entropy parameter ($\bar{\mathcal{H}}$) as a primary bottleneck in discrete SAC and introduces Target Entropy Scheduled SAC (TES-SAC) to automate its tuning through an annealing process.
The Challenge of Discrete Entropy Tuning
In SAC, the agent maximizes a combination of expected reward and policy entropy. The temperature parameter $\alpha$ automatically adjusts to maintain a target entropy level. In discrete settings, selecting a fixed $\bar{\mathcal{H}}$ is problematic:
- Over-exploration: High target entropy prevents the policy from converging to high-performing deterministic actions.
- The Unlearning Trap: Low target entropy can cause the policy to become deterministic prematurely. When neural network logits saturate, gradients vanish, making it nearly impossible for the agent to recover from early suboptimal strategies.
Currently, achieving peak performance requires expensive per-environment hyperparameter tuning to find the "sweet spot" for target entropy.
Methodology: TES-SAC
TES-SAC replaces the fixed target entropy with a dynamic schedule. The algorithm initializes $\bar{\mathcal{H}}$ at the maximum possible entropy ($\log |A|$) to encourage initial exploration. It then monitors the agent's actual policy entropy using an exponential moving window.
When the policy entropy stabilizes—indicated by the moving mean approaching the current target and the moving variance falling below a threshold—the algorithm assumes the agent has extracted sufficient information at that level of stochasticity. The target entropy is then annealed by a discount factor (e.g., 0.9). This gradual reduction allows the agent to become increasingly decisive only after it has adequately explored the environment.
Experimental Results
The researchers evaluated TES-SAC across 24 Atari games, comparing it against standard SAC with fixed target entropy levels (98%, 50%, and 1% of maximum entropy).
As shown in Figure 1, TES-SAC demonstrates significant gains in learning speed and final returns in environments like Hero and BankHeist. Crucially, TES-SAC achieved these results using the same hyperparameters across all games, whereas fixed-entropy versions required specific tuning to avoid failure.
The instability of fixed-entropy settings is further illustrated by the behavior of the temperature parameter $\alpha$ and policy entropy.
Discussion and Conclusion
TES-SAC addresses the core instability of discrete SAC by providing a principled, automated way to manage the exploration-exploitation trade-off. By starting with high entropy and annealing based on the agent's internal learning signals, it avoids the "unlearning trap" and the need for manual tuning. While the current scheduling method is heuristic, its empirical success across diverse Atari environments suggests that entropy annealing is a vital component for stable discrete reinforcement learning. Future work will investigate the applicability of this scheduling technique to continuous action spaces and more complex architectures.
Summary updated