Abstract
Autonomous self-adaptive systems (SAS) must navigate complex environments where performance goals often conflict. Traditional reinforcement learning (RL) approaches typically rely on single-objective scalarized reward functions, which are difficult to tune and lack flexibility. This paper presents the first real-world application of Deep W-Networks (DWN), a multi-objective reinforcement learning (MORL) algorithm, to an autonomous web server. By decomposing objectives and utilizing a "suffering" metric for conflict resolution, DWN demonstrates superior performance flexibility and optimization compared to standard single-objective baselines.
Introduction
Autonomous systems are designed to adapt their configurations dynamically to maintain peak performance. While Reinforcement Learning (RL) is a common driver for this adaptation, most existing systems utilize a single-objective reward function. In scenarios with conflicting goals—such as minimizing latency while reducing operational costs—engineers usually combine these goals into a single number using predefined weights. This scalarization approach is brittle, requiring manual tuning at design time and failing to adapt when priorities shift during runtime.
This study bridges the gap between theoretical MORL and real-world application by deploying Deep W-Networks (DWN) on the Emergent Web Server (EWS) exemplar. The goal is to move beyond "toy" benchmarks and demonstrate how MORL can handle the nuanced trade-offs required in production-level autonomous systems.
Methodology
Deep W-Networks (DWN)
The authors implement DWN, which evolves traditional tabular W-learning by integrating it with Deep Q-Networks (DQN). The architecture is defined by two primary components:
- Decomposed Policies: Rather than a single network attempting to learn a global reward, DWN employs separate DQNs for each objective (e.g., one for response time and one for cost).
- W-Values (The "Suffering" Metric): To resolve conflicts when different policies suggest different actions, the system calculates a W-value. This value represents the "suffering" or the loss in potential reward a specific policy would experience if its suggested action is not selected.
Action Selection
The agent evaluates the suggested actions from all policies and selects the one associated with the highest W-value for the current state. This allows for dynamic negotiation between competing goals at every step, avoiding the need for static weighting.
Experimental Setup
The study utilizes the Emergent Web Server (EWS), a self-adaptive system implemented in the Dana language. The environment consists of 42 possible configurations derived from various request handlers, HTTP modules, compression algorithms, and caching strategies.
The performance was measured using two primary metrics:
- Average Response Time (T): Real-time data gathered from server performance.
- Cost (C): A synthetic metric designed to create a trade-off scenario where the fastest configurations are also the most expensive.
DWN was benchmarked against a standard $\epsilon$-greedy algorithm and a standard DQN using a scalarized (summed) reward function.
Results and Discussion
Performance and Trade-offs
The evaluation demonstrated that DWN successfully optimized multiple objectives simultaneously, outperforming traditional methods in speed:
- Response Time: DWN achieved the lowest average response time, outperforming the scalarized DQN by 4.75% and the $\epsilon$-greedy baseline by 6.43%.
- Cost Efficiency: While DWN's cost was approximately 21% higher than the scalarized DQN, it achieved a more favorable Pareto trade-off. Analysis suggests that for a standard DQN to match the response speeds achieved by DWN, its operational costs would need to increase by nearly 49%.
Convergence and Stability
All tested algorithms showed similar convergence trends, reaching optimization within approximately 200 steps. This indicates that the architectural complexity of DWN does not significantly penalize learning speed. However, DWN exhibited higher variance in performance metrics. This "restlessness" stems from the agent frequently switching between near-optimal configurations to balance competing W-values, providing higher adaptability at the cost of some stability.
Conclusion
Deep W-Networks provide a viable path for managing conflicting objectives in autonomous systems without the "weighting trap" of scalarized RL. By treating objectives as separate entities that negotiate via suffering metrics, DWN achieves better performance flexibility. Future research will focus on smoothing the transitions between configurations to reduce variance and testing the scalability of DWN in environments with more than two competing objectives.
Summary updated