SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.05909 · AAAI · 2023

Robust Multi-Agent Coordination via Evolutionary Generation of Auxiliary Adversarial Attackers *

Feng Chen, Yang Yu, Lei Yuan, Ke Xue, Chao Qian, Cong Guan, Hao Yin, Ziqian Zhang, Lihe Li

arXiv · PDF · Open in the Atlas

Code that ran

2 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2305.05909.json · badge: /api/ran/2305.05909.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zzq-bot/romance marked official in Papers with Code
Papers with Code archive
2 ran · 3 no recorded run
FunctionStatusWhere it lives
DMAQ_SI_Weight Ran
ran on a synthesized input
zzq-bot/romance/src/learners/dmaq_qatten_learner.py
code served (permissive licence) · get_code("e4933ddfeef19e88")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch as th
import numpy as np
import torch.nn as nn
import torch.nn.functional as F

class DMAQ_SI_Weight(nn.Module):

    def __init__(self, args):
        super(DMAQ_SI_Weight, self).__init__()
        self.args = args
        self.n_agents = args.n_agents
        self.n_actions = args.n_actions
        self.state_dim = int(np.prod(args.state_shape))
        self.action_dim = args.n_agents * self.n_actions
        self.state_action_dim = self.state_dim + self.action_dim
        self.num_kernel = args.num_kernel
        self.key_extractors = nn.ModuleList()
        self.agents_extractors = nn.ModuleList()
        self.action_extractors = nn.ModuleList()
        adv_hypernet_embed = self.args.adv_hypernet_embed
        for i in range(self.num_kernel):
            if getattr(args, 'adv_hypernet_layers', 1) == 1:
                self.key_extractors.append(nn.Linear(self.state_dim, 1))
                self.agents_extractors.append(nn.Linear(self.state_dim, self.n_agents))
                self.action_extractors.append(nn.Linear(self.state_action_dim, self.n_agents))
            elif getattr(args, 'adv_hypernet_layers', 1) == 2:
                self.key_extractors.append(nn.Sequential(nn.Linear(self.state_dim, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, 1)))
                self.agents_extractors.append(nn.Sequential(nn.Linear(self.state_dim, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, self.n_agents)))
                self.action_extractors.append(nn.Sequential(nn.Linear(self.state_action_dim, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, self.n_agents)))
            elif getattr(args, 'adv_hypernet_layers', 1) == 3:
                self.key_extractors.append(nn.Sequential(nn.Linear(self.state_dim, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, 1)))
                self.agents_extractors.append(nn.Sequential(nn.Linear(self.state_dim, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, self.n_agents)))
                self.action_extractors.append(nn.Sequential(nn.Linear(self.state_action_dim, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, adv_hypernet_embed), nn.ReLU(), nn.Linear(adv_hypernet_embed, self.n_agents)))
            else:
                raise Exception('Error setting number of adv hypernet layers.')

    def forward(self, states, actions):
        states = states.reshape(-1, self.state_dim)
        actions = actions.reshape(-1, self.action_dim)
        data = th.cat([states, actions], dim=1)
        all_head_key = [k_ext(states) for k_ext in self.key_extractors]
        all_head_agents = [k_ext(states) for k_ext in self.agents_extractors]
        all_head_action = [sel_ext(data) for sel_ext in self.action_extractors]
        head_attend_weights = []
        for curr_head_key, curr_head_agents, curr_head_action in zip(all_head_key, all_head_agents, all_head_action):
            x_key = th.abs(curr_head_key).repeat(1, self.n_agents) + 1e-10
            x_agents = F.sigmoid(curr_head_agents)
            x_action = F.sigmoid(curr_head_action)
            weights = x_key * x_agents * x_action
            head_attend_weights.append(weights)
        head_attend = th.stack(head_attend_weights, dim=1)
        head_attend = head_attend.view(-1, self.num_kernel, self.n_agents)
        head_attend = th.sum(head_attend, dim=1)
        return head_attend


class Args:
    def __init__(self):
        self.n_agents = 3
        self.n_actions = 4
        self.state_shape = (5, 6)
        self.num_kernel = 2
        self.adv_hypernet_embed = 8
        self.adv_hypernet_layers = 2


INIT_ARGS = {
    'args': Args()
}

ARGS = {
    'states': th.randn(2, 5, 6),
    'actions': th.randn(2, 3, 4)
}

if __name__ == '__main__':
    model = DMAQ_SI_Weight(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Qatten_Weight Ran
ran on a synthesized input
zzq-bot/romance/src/learners/dmaq_qatten_learner.py
code served (permissive licence) · get_code("6adbda391f36487c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch as th
import numpy as np
import torch.nn as nn

class Args:
    def __init__(self):
        self.n_agents = 3
        self.state_shape = (15,)  # Will be reshaped to state_dim
        self.unit_dim = 5
        self.n_actions = 4
        self.n_head = 2
        self.mixing_embed_dim = 8
        self.attend_reg_coef = 0.001
        self.hypernet_embed = 6
        self.nonlinear = True
        self.weighted_head = True
        self.mask_dead = False
        self.state_bias = True

args = Args()

INIT_ARGS = {
    'args': args
}

# Construct inputs for forward pass
batch_size = 2
n_agents = args.n_agents
n_actions = args.n_actions
state_dim = int(np.prod(args.state_shape))

# agent_qs: Q-values for each agent, shape (batch, n_agents)
agent_qs = th.randn(batch_size, n_agents)

# states: global state, shape (batch, state_dim)
states = th.randn(batch_size, state_dim)

# actions: actions taken by each agent, shape (batch, n_agents)
actions = th.randint(0, n_actions, (batch_size, n_agents))

ARGS = {
    'agent_qs': agent_qs,
    'states': states,
    'actions': actions
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DMAQ_QattenMixer Not yet run
unverified (harvested, no recorded run)
zzq-bot/romance/src/learners/dmaq_qatten_learner.py
code served (permissive licence) · get_code("3afc976a9a9dae68")
How it ran

no invocation recorded.

DMAQ_qattenLearner Not yet run
unverified (harvested, no recorded run)
zzq-bot/romance/src/learners/dmaq_qatten_learner.py
code served (permissive licence) · get_code("21a1b9eab6308887")
How it ran

no invocation recorded.

DMAQer Not yet run
unverified (harvested, no recorded run)
zzq-bot/romance/src/learners/dmaq_qatten_learner.py
code served (permissive licence) · get_code("345fbcaf99999a3e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 4 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 4 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
DMAQ_SI_Weight
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later
2206.11420 (2022-06)
PAC: Assisted Value Factorisation with Counterfactual Predictions in Multi-Agent Reinforcement Learning
2502.02844 (2025-02)
Wolfpack Adversarial Attack for Robust Multi-Agent Reinforcement Learning
DMAQer
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later
2206.11420 (2022-06)
PAC: Assisted Value Factorisation with Counterfactual Predictions in Multi-Agent Reinforcement Learning
2502.02844 (2025-02)
Wolfpack Adversarial Attack for Robust Multi-Agent Reinforcement Learning
DMAQ_QattenMixer
brick of this paper's assembly: model
1 other paper
1 later
2502.02844 (2025-02)
Wolfpack Adversarial Attack for Robust Multi-Agent Reinforcement Learning
Qatten_Weight
brick of this paper's assembly: model
1 other paper
1 later
2502.02844 (2025-02)
Wolfpack Adversarial Attack for Robust Multi-Agent Reinforcement Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Cooperative multi-agent reinforcement learning (CMARL) has shown to be promising for many real-world applications. Previous works mainly focus on improving coordination ability via solving MARL-specific challenges (e.g., nonstationarity, credit assignment, scalability), but ignore the policy perturbation issue when testing in a different environment. This issue hasn't been considered in problem formulation or efficient algorithm design. To address this issue, we firstly model the problem as a limited policy adversary Dec-POMDP (LPA-Dec-POMDP), where some coordinators from a team might accidentally and unpredictably encounter a limited number of malicious action attacks, but the regular coordinators still strive for the intended goal. Then, we propose Robust Multi-Agent Coordination via Evolutionary Generation of Auxiliary Adversarial Attackers (ROMANCE), which enables the trained policy to encounter diversified and strong auxiliary adversarial attacks during training, thus achieving high robustness under various policy perturbations. Concretely, to avoid the ego-system overfitting to a specific attacker, we maintain a set of attackers, which is optimized to guarantee the attackers high attacking quality and behavior diversity. The goal of quality is to minimize the ego-system coordination effect, and a novel diversity regularizer based on sparse action is applied to diversify the behaviors among attackers. The ego-system is then paired with a population of attackers selected from the maintained attacker set, and alternately trained against the constantly evolving attackers. Extensive experiments on multiple scenarios from SMAC indicate our ROMANCE provides comparable or better robustness and generalization ability than other baselines.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2305.05909")
get_code_for_paper("2305.05909")
have("2305.05909")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2305.05909.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2305.05909.svg)](https://syntology.ai/paper/2305.05909)

Connect an agent — have() is free.