Single or Multiple Policies for Phase-Structured Reinforcement Learning?
Organizations: Department of Electrical and Electronic Engineering Imperial College London, UK
Abstract
Many reinforcement-learning (RL) problems are non-stationary yet structured and can be decomposed into phases, each with its own transition probabilities and reward functions. When the phase sequence is known, the common solution augments the state with information to satisfy the Markovian property and applies standard RL techniques. However, prior work finds that the multi-policy approach for different phases can outperform a single state-augmented policy shared among the phases, for reasons that remain unclear. In this work, we first show that the shared policy can theoretically achieve performance of any multi-policy solution. However, whether a multi-policy solution can perform better than the corresponding single shared policy in practice depends on function approximation, learning and optimization processes, as well as, for multi-policy solutions, the sample efficiency and loss of continuity from one policy to another. We propose a regime-based phase decomposition method to identify which policy can provide better performance. The method is based on consideration of the duration of transient system dynamics relative to the duration of the quasi-stationary period. Numerical experiments are conducted with different non-stationary RL problems to validate our four major hypotheses: (a) longer phase durations favor multi-policies, (b) the heterogeneity between phases increases the burden on single policy, (c) multi-policies need sufficient data for each phase, and (d) environment-specific transition dynamics between phases can affect which policy is preferable.
Figures & tables
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | … | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1 | 2 | 2 | 3 | 3 | 3 | 3 | 0 | 2 | 2 | 0 | 0 | 0 | … | |
| 0 | 1 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 2 | 3 | 0 | 0 | 1 | 0 | 1 | 2 | … |
| Regime | Governing Condition | Recommended Architecture |
|---|---|---|
| Insufficient | Specialist data starvation | Shared ; multihead if outputs differ |
| Enough , low | High representation transfer | Shared or Multihead |
| Enough , high , low | High local learning burden | Specialized Multi-Policy |
| Enough , high and high | Severe boundary handoff cost | Shared or Coordinated Specialists |
| Uncertain | Uncertified bounds | Multihead / Model Selection |
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1 | 2 | 2 | 3 | 3 | 3 | 3 | 0 | 0 | 1 | ||
| 0 | 1 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 2 | 3 | 0 | 1 | 0 |
| Setting | HAPS | PhasePendulum | PhaseGridWorld |
|---|---|---|---|
| Hidden layers | |||
| Parallel environments | 8 | 8 | 8 |
| Rollout steps per environment | 2048 | 256 | 256 |
| Minibatch size | 1024 | 256 | 256 |
| Epochs per update | 10 | 10 | 10 |
| Discount | 0.99 | 0.99 | 0.99 |
| Budget / Setup | Method | Reward/step |
|---|---|---|
| budget | Single+clock / Multihead / Multipolicy+clock | 26.16 / 33.52 / 43.33 |
| budget | Single+clock / Multihead / Multipolicy+clock | 31.16 / 35.41 / 46.39 |
| budget | Single+clock / Multihead / Multipolicy+clock | 30.10 / 37.37 / 46.72 |
| budget | Multipolicy without clock | 46.57 |
| gradient surgery | Single+clock | 25.54 |
| gradient surgery | PCGrad-style | 28.87 |
| Architecture | Reward/step | Architecture | Reward/step |
|---|---|---|---|
| Single, default | 26.04 | Single+clock, default | 27.06 |
| Single, big | 22.48 | Single+clock, big | 24.27 |
| Single, deep | 24.73 | Single+clock, deep | 29.51 |
| Single+clock, 6 layers | 29.04 | Single+clock, 8 layers | 23.30 |
| Multihead, default | 32.76 | Multihead, deep | 27.47 |
| Multipolicy | 42.34 |
| Control | Setting | Single+clock | Multihead | Multipolicy |
|---|---|---|---|---|
| Phase order | Adjacent | 34.58 | 46.80 | 48.41 |
| Phase order | Random | 27.47 | 38.17 | 40.59 |
| Phase order | Maximum jump | 31.17 | 34.88 | 41.06 |
| Clock/handoff, | Standard / clock-aware specialist | – | – | 37.47 / 38.50 |
| Clock/handoff, | Handoff / handoff+warm start | – | – | 31.75 / 27.14 |
| Clock/handoff, | Standard / clock-aware specialist | – | – | 46.35 / 46.75 |
| Multipolicy | Warm | Handoff | Handoff+warm | ||
|---|---|---|---|---|---|
| 10 | 500 | 44.84 | 16.82 | 32.91 | 17.67 |
| 10 | 1000 | 48.21 | 14.50 | 39.55 | 14.13 |
| 20 | 500 | 46.37 | 13.44 | 37.14 | 11.27 |
| 20 | 1000 | 48.60 | 11.14 | 41.69 | 9.92 |
| Architecture | |||||||
|---|---|---|---|---|---|---|---|
| 2 | Single+clock | 0.950 | 0.050 | 0.000 | 0.675 | -0.053 | 0.600 |
| 5 | Single+clock | 0.970 | 0.030 | 0.000 | 0.399 | -0.012 | 0.520 |
| 10 | Single+clock | 0.968 | 0.032 | 0.000 | 0.264 | 0.000 | 0.462 |
| 20 | Single+clock | 1.046 | -0.046 | 0.020 | 0.195 | 0.002 | 0.485 |
| 2 | Multihead | 1.003 | -0.003 | 0.000 | 0.706 | 0.003 | 0.600 |
| 5 | Multihead | 1.017 | -0.017 | 0.000 | 0.416 | 0.006 | 0.440 |
| Single+clock | Multihead | Multipolicy | |
|---|---|---|---|
| -1.370 | -2.785 | -6.007 | |
| -2.185 | -2.592 | -5.107 | |
| -3.977 | -3.844 | -3.977 | |
| -2.666 | -2.693 | -2.614 | |
| -1.685 | -1.638 | -1.596 |
| Control | Setting | Single+clock | Multihead | Multipolicy | |
|---|---|---|---|---|---|
| Phase count, | 5 | -1.888 | -1.917 | -1.752 | |
| 5 | -1.633 | -1.646 | -1.514 | ||
| 5 | -1.688 | -1.640 | -1.553 | ||
| 5 | -2.502 | -2.236 | -2.260 | ||
| Dwell time, | 3 | -1.567 | -1.660 | -1.572 | |
| 3 | -1.637 | -1.639 | -1.564 |
| Budget | Method | Reached | Best mean | Final mean |
|---|---|---|---|---|
| Multipolicy-style | ||||
| Single+clock | ||||
| Multipolicy-style | ||||
| Single+clock | ||||
| Multipolicy-style | ||||
| Single+clock |
| Single+clock | Multihead | Multipolicy | Multi+clock | Warm Multi+clock | |
|---|---|---|---|---|---|
| 0 | 0.1422 | 0.0980 | 0.1210 | 0.1258 | 0.1356 |
| 8 | 0.1427 | 0.1197 | 0.1048 | 0.1201 | 0.1319 |
| 32 | 0.1359 | 0.1197 | 0.0836 | 0.1082 | 0.1312 |
| 128 | 0.0629 | 0.0968 | 0.0544 | 0.0732 | 0.1178 |
| Density | Single+clock | Multihead | Multipolicy | Warm multipolicy | ||
|---|---|---|---|---|---|---|
| 0.10 | 5 | 50 | 0.1169 | 0.1252 | 0.0917 | 0.1253 |
| 0.10 | 5 | 100 | 0.1273 | 0.1192 | 0.0633 | 0.1331 |
| 0.10 | 10 | 50 | 0.0861 | 0.0991 | 0.0798 | 0.0969 |
| 0.10 | 10 | 100 | 0.0985 | 0.1031 | 0.0445 | 0.1272 |
| 0.25 | 5 | 50 | 0.1008 | 0.0704 | 0.0653 | 0.0992 |
| 0.25 | 5 | 100 | 0.0901 | 0.0443 | 0.0261 | 0.1009 |
| Density | Single+clock | Multihead | Multipolicy | Multi+clock | Warm+clock | Transition warm | ||
|---|---|---|---|---|---|---|---|---|
| 0.25 | 5 | 0.0836 | 0.0514 | 0.0200 | 0.0940 | 0.1124 | – | |
| 0.25 | 10 | 0.0878 | 0.1228 | 0.0916 | 0.0926 | 0.1179 | – | |
| 0.40 | 5 | 0.1508 | 0.2099 | 0.1924 | 0.2372 | 0.2323 | – | |
| 0.40 | 10 | 0.1480 | 0.1344 | 0.1772 | 0.1651 | 0.1681 | – | |
| 0.25 | 10 | 0.0991 | 0.0826 | 0.0791 | 0.0992 | 0.1155 | -0.0164 | |
| 0.40 | 10 | 0.1486 | 0.1404 | 0.1606 | 0.1797 | 0.1695 | 0.0539 |
| Topology | Entry law | (Settled) | (Transient) | Specialist Shared |
|---|---|---|---|---|
| Aligned | Carried | |||
| Aligned | Reset | |||
| Bottleneck | Carried | |||
| Bottleneck | Reset | |||
| Closed trap | Carried | |||
| Closed trap | Reset |
Reinforcement Learning
Reinforcement learning studies how agents learn sequential decisions from rewards and interaction, balancing exploration, performance, safety, and adaptation.
See all 1,727 papers