TL;DR
CARVE is a new framework for "semantic unlearning" in multi-agent reinforcement learning (MARL), allowing developers to surgically remove specific, obsolete, or unsafe coordination conventions without retraining from scratch. By combining causal attribution with targeted parameter updates and counterfactual "re-coordination" training, it reduces forbidden behaviors by over 90% while maintaining nearly full task performance.
What Problem Does This Paper Address?
In cooperative MARL, agents often develop "conventions"—unspoken rules for coordination, like who goes first through a doorway or how to divide roles in a kitchen. However, deployment requirements change. A previously efficient convention might become unsafe due to new regulations (e.g., data-sharing restrictions in edge caching) or simply obsolete.
The authors identify a major hurdle: role invariance. Coordination isn't tied to a specific agent's identity; if you "force" Agent A to forget a behavior, Agent B might simply step in and recreate the same pattern. Existing solutions like "runtime shielding" (hard-coding blocks on certain actions) often cause agents to freeze or fail because their underlying strategy still relies on the forbidden convention. Meanwhile, retraining the entire system is computationally expensive and doesn't guarantee the new model won't just rediscover the same problematic behavior.
Methods
The authors propose CARVE, a four-stage post-training pipeline designed to edit a policy's behavior directly:
- Causal Coordination Attribution: Using Shapley-style values, the system identifies exactly which agents and which time-steps are responsible for triggering the forbidden convention.
- Retain-Aware Strategy Subspace: Instead of updating all model parameters, CARVE identifies a specific "subspace" of parameters that influence the forbidden behavior while having minimal impact on useful, unrelated skills.
- Counterfactual Re-Coordination: This is the "re-learning" phase. A centralized "teacher" evaluates alternative actions that achieve the goal without using the forbidden convention. The decentralized agents are then distilled to follow these new, safe paths.
- Robust Auditing and Policy Merge: The edited policy is stress-tested against "red-team" adversarial contexts (like role permutations) to ensure the behavior is truly gone. If it passes, the updates are merged into the final actor networks.
Datasets
The researchers evaluated CARVE across five diverse MARL benchmarks, each with a specific "semantic request" for unlearning:
- SMACv2 (StarCraft II): Forget "focus-fire" tactics against specific enemies.
- Overcooked-AI: Abandon a fixed division of labor (e.g., one player only cooking, one only delivering).
- VMAS (Multi-Robot Simulator): Unlearn specific yielding or leader-follower conventions in navigation tasks.
- RWARE (Robot Warehouse): Forget specific aisle-usage conventions.
- LBF (Level-Based Foraging): Abandon specific partner-selection strategies.
Key Insights and Ideas
- The "Intent" Problem: Runtime shields are like putting a physical barrier in a robot's way without telling it why. The robot keeps trying to walk through the barrier, wasting time. CARVE changes the robot's "intent" so it chooses a different path entirely.
- Role Invariance is Key: You cannot treat MARL unlearning like single-agent data deletion. Because coordination is relational, the "unit" of unlearning must be the interaction pattern, not the individual agent's data.
- Efficiency via Subspaces: By restricting updates to a small fraction of parameters (often ~10-20%), CARVE prevents "catastrophic forgetting" of unrelated task skills.
Key Results
- Effectiveness: CARVE reduced the rate of forbidden behaviors (SSR) by 91.4% and worst-case elicitation rates (WER) by 83.3%.
- Utility Retention: The median loss in task performance (utility) was only 5.9%. In many cases, CARVE agents found alternative ways to coordinate that were nearly as efficient as the original.
- Speed: Unlearning with CARVE is 101x to 584x faster than retraining the backbone model from scratch.
- Zero Latency: Because the updates are merged directly into the actor networks, there is no additional inference-time overhead, unlike runtime shielding which requires active monitoring.
Limitations and Future Work
- Simulator Dependency: The auditing and re-coordination phases currently require access to a simulator or high-fidelity environment model.
- Reward Conflict: If the environment's reward signal still heavily incentivizes the forbidden convention, agents might eventually "re-learn" it if training continues indefinitely after the edit.
- Joint-Action Correlations: The distillation process (moving from a centralized teacher to decentralized actors) can sometimes lose subtle correlations between agent actions, which the authors suggest as an area for future improvement.
For more details, see the full paper: "When Cooperation Must Change: Semantic Strategy Unlearning in Multi-Agent Reinforcement Learning."
Summary updated