TL;DR
The Consensus-based Communication and Knowledge Sharing (CCKS) framework introduces an intelligent, plug-and-play action-advising mechanism for decentralized multi-agent reinforcement learning. By leveraging contrastive learning to build a shared environmental consensus, agents dynamically assume teacher-student roles and selectively adopt advice only when they share a common situational understanding. This prevents blind imitation, accelerates training, and significantly boosts coordination in complex environments.
What Problem Does This Paper Address?
In Multi-Agent Reinforcement Learning (MARL), agents must learn to cooperate to achieve a common goal. While the popular "Centralized Training and Decentralized Execution" (CTDE) paradigm works well in simulation, real-world constraints—like communication limits or privacy concerns—often demand Decentralized Training and Decentralized Execution (DTDE).
However, DTDE is notoriously difficult. Because agents only perceive the world through their own local, partial observations, training can become highly unstable, often leading to poor team coordination. To fix this, researchers use "action advising," a teacher-student setup where experienced agents suggest actions to novices.
The catch? Current action-advising methods suffer from blind spots: student agents often follow advice indiscriminately without checking if the teacher actually understands their specific situation. This leads to excessive communication, suboptimal policies, and a tendency to over-imitate, which stifles crucial environment exploration.
Methods
CCKS tackles this issue by ensuring that advice is only given and taken when agents share a common "perceptual consensus." The framework operates in four distinct stages:
- Consensus Model Training: Using contrastive learning, each agent trains a local three-layer multilayer perceptron (MLP). This model maps partial local observations into a shared "consensus representation" of the global state. The goal is to align the agents' internal worldviews so they can understand if they are facing similar scenarios.
- Observation Request Broadcast: At each step, an agent computes its consensus representation and broadcasts an observation request containing its local state, consensus data, and policy statistics (maximum, minimum, and entropy of its Q-values).
- Teacher Strategy Response: Peer agents do not automatically give advice. Instead, an agent dynamically steps up as a "teacher" only if it has sufficient experience with the student's state and exhibits lower policy entropy (meaning it is more confident in its action choices than the student).
- Consensus-based Knowledge Understanding: The student evaluates responses from multiple teachers. It weights their advice based on how closely their consensus representations match and how certain the teachers are.
Crucially, CCKS avoids directly overwriting the student's policy. Instead, it uses a "think twice before you leap" mechanism: if a teacher suggests an action that falls into a low-scoring "pitfall" category, the student resamples its action. High-quality advice is also integrated via reward shaping to gently guide policy updates.
Datasets
The authors evaluated CCKS against several baselines using two widely recognized MARL benchmark environments:
- StarCraft II Multi-Agent Challenge (SMAC): A platform focusing on localized micro-management tasks where agents control individual military units to defeat enemy AI.
- Google Research Football (GRF): A physics-based football simulator requiring complex tactical coordination, passing, and shooting maneuvers.
Key Insights and Ideas
- Perceptual Alignment is Key: An expert agent's advice is useless if it is looking at a completely different part of the map. By forcing agents to align their representations via contrastive learning, CCKS ensures that advice is contextually relevant.
- Dynamic, Decentralized Hierarchies: Rather than hardcoding fixed teacher-student roles, expertise is treated as fluid and localized. Roles emerge naturally based on situational certainty (measured via Q-value entropy).
- Preserving Autonomy: Directly forcing a student to execute a teacher's action can disrupt its learning curve and conflict with its internal model. Treating advice as a "scoring guide" rather than an absolute command preserves the student's independent decision-making capacity.
Key Results
CCKS was integrated with Independent Q-Learning (IQL) and compared against state-of-the-art baselines including CONS, I2Q, and AdHocTD.
- Superior Win Rates: In SMAC combat scenarios (such as the
2s3zand3s_vs_5zmaps), CCKS demonstrated a massive performance leap in early training phases and achieved a significantly higher final mean test win rate than standard IQL and other advising baselines. - Efficiency in Football: In GRF academy tasks, CCKS achieved shorter average episode lengths and higher score rewards, proving it learns more efficient cooperative behaviors.
- Ablation Validation: Removing the consensus model (
CCKS-NO-CB) or the "think twice" resampling mechanism (CCKS-NO-TWICE) caused noticeable performance drops and increased training variance, validating that every component of the framework is vital.
Limitations and Future Work
Despite its success, the authors note two primary limitations:
- Computational Overhead: Training the consensus model via contrastive learning introduces extra computational weight during the training phase, which could challenge resource-constrained systems.
- Action Space Scalability: Because knowledge sharing involves exchanging probability distributions across all discrete actions, the communication overhead scales up significantly as the action space grows.
Future research directions include refining the alignment between teachers and students, optimizing reward shaping mechanisms, and making the underlying learning processes more interpretable to align better with human cognition.
Summary updated