Abstract
Prescribing optimal operation based on the condition of the system and, thereby, potentially prolonging the remaining useful lifetime has a large potential for actively managing the availability, maintenance and costs of complex systems. Reinforcement learning (RL) algorithms are particularly suitable for this type of problems given their learning capabilities. A special case of a prescriptive operation is the power allocation task, which can be considered as a sequential allocation problem, where the action space is bounded by a simplex constraint. A general continuous action-space solution of such sequential allocation problems has still remained an open research question for RL algorithms. In continuous action-space, the standard Gaussian policy applied in reinforcement learning does not support simplex constraints, while the Gaussian-softmax policy introduces a bias during training. In this work, we propose the Dirichlet policy for continuous allocation tasks and analyze the bias and variance of its policy gradients. We demonstrate that the Dirichlet policy is bias-free and provides significantly faster convergence, better performance and better hyperparameters robustness over the Gaussian-softmax policy. Moreover, we demonstrate the applicability of the proposed algorithm on a prescriptive operation case, where we propose the Dirichlet power allocation policy and evaluate the performance on a case study of a set of multiple lithium-ion (Li-I) battery systems. The experimental results show the potential to prescribe optimal operation, improve the efficiency and sustainability of multi-power source systems.
Introduction
Many real-world prescriptive maintenance and operation tasks involve the distribution of a limited resource across multiple components. Examples include allocating power across a battery pack, distributing computational tasks across a server cluster, or managing capital in a financial portfolio. These are defined as sequential allocation problems, where the decision-making agent must operate within a simplex constraint: the individual actions must be non-negative and their sum must equal exactly 1.0.
Standard Reinforcement Learning (RL) approaches struggle with these constraints. Discretizing the action space leads to poor scalability as the number of components increases. Conversely, standard continuous Gaussian policies do not respect the 0-to-1 bounds or the sum-to-one constraint. While researchers often use a Gaussian-softmax architecture to force these constraints, this approach introduces mathematical bias and high variance during training, as the softmax function is not injective, leading to unreliable gradient updates.
Methodology: The Dirichlet Policy
To address these limitations, we propose the Dirichlet Policy. The Dirichlet distribution is a multivariate generalization of the Beta distribution and is inherently "native" to the simplex; any sample drawn from it automatically satisfies the sum-to-one constraint.
Theoretical Advantages
- Bias-Free Gradients: We provide theoretical proof that the Dirichlet policy is bias-free, unlike the Gaussian-softmax approach which suffers from translation invariance (where multiple inputs lead to the same output, confusing the critic).
- Lower Variance: As the policy converges toward a deterministic state, the variance of the Dirichlet policy gradient approaches zero, whereas Gaussian policy variance often explodes in constrained environments.
Implementation
The Dirichlet policy is integrated into the Soft Actor-Critic (SAC) framework. The neural network is designed to output the concentration parameters ($\alpha$) of the Dirichlet distribution. We utilize a softplus activation function plus a constant offset of 1 to ensure $\alpha \ge 1$, which stabilizes the distribution and ensures the agent learns effectively from raw system measurements, such as voltage and current, without requiring complex manual feature engineering.
Experimental Setup
The proposed Dirichlet SAC (DSAC) was evaluated against several benchmarks, including Deep Deterministic Policy Gradient (DDPG) and standard SAC with Gaussian-softmax policies. Testing was conducted using:
- Simplex Regression: A synthetic task to test the reconstruction of a 4-dimensional simplex.
- NASA Prognostic Model Library: A high-fidelity simulation of Lithium-ion (Li-ion) batteries. This included a standard 4-battery system, an 8-battery system to test scalability, and a "Second-Life" system using degraded batteries with varying health levels.
Results and Discussion
The Dirichlet policy consistently outperformed both heuristic rules and standard RL baselines across all metrics.
Performance and Efficiency
In the synthetic regression task, the Dirichlet policy was twice as accurate as the Gaussian-softmax alternative and showed significantly higher robustness to variations in learning rates. In the battery management tasks, the intelligent allocation of power—drawing more from "healthier" cells and less from "weaker" ones—resulted in substantial gains in system longevity.
Battery Longevity Gains
- 4-Battery System: Extended the discharge cycle by 15.2% compared to an equal distribution strategy.
- 8-Battery System: Improvement increased to 31.9%, demonstrating superior scalability.
- Second-Life Impact: In the most significant result, the policy managed a pack of degraded batteries with varying health levels to extend the discharge cycle by 151.0%. This suggests that the Dirichlet policy is a critical enabler for the sustainable reuse of electric vehicle batteries in stationary storage applications.
Conclusion
The Dirichlet policy provides a robust, bias-free solution for continuous allocation problems in RL. By respecting the geometry of the simplex constraint natively, it achieves faster convergence and better performance than traditional Gaussian-softmax methods. While future work is needed to address high-frequency policy oscillations and validate the approach on physical hardware, these results demonstrate a significant step forward in the prescriptive operation of multi-power source systems and the circular economy of battery technology.
Summary updated