What is the Hyper Policy Network (HPN) architecture?
mainThe Hyper Policy Network (HPN) is a general-purpose architecture designed to equip Multi-Agent Reinforcement Learning (MARL) algorithms with permutation invariance (PI) and permutation equivariance (PE) properties. It uses hypernetworks to generate customized weights for different input components, ensuring that the same input always receives the same weight, regardless of order.
Key components include:
- Permutation Invariant Input Layer: A shared hypernetwork takes an input set $X_j$ (a batch of $m$ inputs of dimension $k$) and generates unique weights $W_i$ for each input $x_i$. The outputs are merged using a permutation-invariant 'sum' function.
- Permutation Equivariance Output Layer: To maintain equivariance, the weights and biases for agent-related actions (e.g., $\mathcal{A}_i^{\text{attack}}$) are also generated via a hypernetwork. Because the hypernetwork maintains a one-to-one mapping between inputs and weights, changing the input order results in the same change in output order.
HPN can be integrated into existing algorithms like VDN, QMIX, MADDPG, and MAPPO to improve learning speed and performance.