ADiCoAdaptive Diversity Control

ADiCo - Adaptive Diversity Control

Optimizing Team Behavior via Extremum-seeking Control in Multi-agent Reinforcement Learning

Svar Rajankumar Patel · Kshitij Jerath
University of Massachusetts Lowell

01

How much behavioral diversity does a cooperative team need?

In cooperative multi-agent reinforcement learning, agents learn to work together toward a shared objective. However, sharing an objective does not mean that every agent should follow the same policy. Some tasks benefit from similar behaviors, while others require agents to specialize. The challenge is determining how much behavioral diversity helps the team accomplish its task.

Choosing this level is challenging because the relationship between diversity and team performance is generally unknown. Encouraging more diversity does not necessarily improve cooperation, and manually testing different targets requires repeated training runs.

Diversity target: 0

Diversity target: 1

Three agents and three goals, with policies trained at fixed diversity targets of SND = 0 (left) and SND = 1 (right). These examples illustrate the effect of prescribing different diversity levels; the targets are not being adapted during playback.

This comparison raises a broader question: how should we choose the diversity target for a task we have not already tuned? A target that supports specialization in this Navigation task may be unnecessary or detrimental when agents benefit from similar behavior. Adaptive Diversity Control (ADiCo) addresses this selection problem using team-performance feedback during training. Diversity Control (DiCo) regulates diversity toward the current target, while Extremum Seeking Control (ESC) gradually adjusts that target to seek better team performance. This provides an alternative to manually comparing repeated training runs at different fixed targets.

02

How does ADiCo address the diversity-selection problem?

ADiCo combines Diversity Control (DiCo) and Extremum Seeking Control (ESC) through a two-timescale framework. On the faster timescale, DiCo regulates behavioral diversity while MARL trains the policies at a fixed diversity target. On the slower timescale, ESC updates that target after training and policy evaluation, before the next training cycle begins. Thus, target adaptation occurs between training cycles rather than during individual policy updates.

ADiCo architecture: the upper DiCo pipeline regulates
                policy diversity, while the lower ESC loop uses
                performance feedback to adjust the diversity target.
Two connected timescales: DiCo regulates diversity within MARL training, while ESC updates the desired diversity target between training and evaluation cycles.

On the faster timescale, DiCo decomposes each agent’s policy into shared and agent-specific components. It maintains a smoothed estimate of the unscaled agent-specific components’ System Neural Diversity (SND), then rescales their contribution by the ratio of desired diversity to estimated diversity. This regulates policy diversity toward the current target while MARL updates the policies.

On the slower timescale, ESC uses mean episode reward from policy evaluation to assess the response to small sinusoidal perturbations of the diversity target. A high-pass filter removes slow variations, demodulation relates the remaining response to the perturbation, and a low-pass filter smooths the resulting gradient estimate. The integrator uses this estimate to adjust the nominal setpoint toward locally better performance. The next perturbation is then added to form the target held fixed throughout the following training cycle.

03

How do we evaluate ADiCo?

DiCo can be used with many multi-agent reinforcement learning algorithms, and ADiCo inherits this because ESC only adjusts the diversity target. In our experiments, we use Independent Proximal Policy Optimization (IPPO) in the Vectorized Multi-Agent Simulator (VMAS). Each run trains for 12 million frames and is repeated over five seeds. After every 60,000 frames, the policies are evaluated, and the mean episode reward drives one ESC target update.

ADiCo works with any number of agents, and we use three agents in both of our cooperative tasks. In Navigation, agents reach goal locations, and we use one to three goals to change how much the agents need to specialize. In Balance, agents push a shared platform to carry a load to a goal, and we use load masses of 2, 3, and 4 to make the task harder.

Navigation on the left and Balance on the right,
                with background colors showing behavioral diversity.
Navigation (left) and Balance (right). Yellow marks higher behavioral diversity and purple marks lower.

We compare ADiCo with Grid-Searched DiCo, which uses the best fixed target found by training one run per candidate, and Unconstrained DiCo, which lets diversity emerge freely. All methods share the same algorithm, network, and training budget. We report System Neural Diversity, mean episode reward, and episode length.

04

Does ADiCo find different diversity levels for different tasks?

ADiCo converges to task-specific diversity levels within a single training run, removing the need for a grid search over fixed targets.

System Neural Diversity, mean episode reward, and episode length for Navigation and Balance.
Mean over five seeds. Oscillations in the ADiCo curves result from the ESC perturbation.

In Navigation, the diversity selected by ADiCo increases with the number of goals, converging to SND of approximately 0, 1.0, and 1.2 for one, two, and three goals, respectively. In Balance, ADiCo maintains SND near zero across all load masses and achieves the highest reward. In contrast, Unconstrained DiCo lacks diversity regulation, allowing diversity to grow and performance to degrade in Balance.

ADiCo

Grid-Searched DiCo

Unconstrained DiCo

Balance with load mass 4. ADiCo and Grid-Searched DiCo agents apply coordinated force to the platform; under Unconstrained DiCo, one agent departs from the platform.

05

Does the initial diversity target matter?

ADiCo is robust to its initial diversity target. In Navigation with three agents and three goals, initial targets of 0, 0.5, and 1.0 converge to the same performance, whereas fixed-target DiCo depends strongly on the chosen value.

System Neural Diversity, mean episode reward, and episode length for ADiCo with three initial targets and DiCo with three fixed targets.
Navigation, three agents and three goals. Solid lines show ADiCo from each initial target; dashed lines show DiCo fixed at the same values.

All ADiCo initializations converge to SND of approximately 1.2 to 1.5 and reach the same final reward. In contrast, the performance of fixed-target DiCo depends on the chosen value: with SND 0, reward plateaus at approximately half that of ADiCo, and with SND 0.5, learning is slower. ADiCo also completes episodes in fewer steps than DiCo at any fixed target.

06

Is continued adaptation useful after diversity settles?

We compare closed-loop ADiCo, where ESC runs throughout training, with open-loop ADiCo, where ESC shuts down once diversity settles and the target is held fixed. Continued adaptation yields shorter episodes, most clearly in the three-goal task.

System Neural Diversity and episode length for closed-loop and open-loop ADiCo in Navigation with one, two, and three goals.
Navigation with one, two, and three goals. Solid lines show closed-loop ADiCo; dashed lines show open-loop ADiCo.

Once the ESC is shut down, open-loop ADiCo holds a target close to the grid-searched values, while closed-loop ADiCo continues to oscillate around a slightly higher level. Closed-loop ADiCo also reaches shorter episodes in the three-goal task, at approximately 45 steps compared with 51, while differences in the one- and two-goal tasks are small. These results suggest that continued ESC perturbation may act as an implicit exploration mechanism that improves the policy after convergence.

07

What are the limitations and future directions?

The sinusoidal perturbation required by ESC introduces oscillations in diversity and performance, even after the optimal diversity range is reached. In addition, the gradient estimate scales with reward magnitude, so the integrator gain must be adjusted to the reward range of each task. More fundamentally, ADiCo selects a single scalar diversity target for the entire team and episode, without regard to the current state of the environment.

Future work will extend ADiCo from a single target to state-dependent diversity, in which the required diversity is expressed as a function of the environment state. Further directions include using ESC to tune pairwise diversity between individual agents, adapting the ESC perturbation amplitude, frequency, and gain during training, and evaluating ADiCo in more complex environments and on physical multi-robot systems.