SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.13472 · 2026

Bridging MARL to SARL: An Order-Independent Multi-Agent Transformer via Latent Consensus

Jing Gao, Sen Li, Zijian Zhao

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2604.13472.json · badge: /api/ran/2604.13472.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
PKU-MARL/Multi-Agent-Transformer community
Papers with Code archive
9 ran · 3 no recorded run
FunctionStatusWhere it lives
DecodeBlock Ran
ran on a synthesized input
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("362c1be3708b32ec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

EncodeBlock Ran
ran on a synthesized input · constructed an object; no result was computed
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("38a9cb3379b34d27")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Encoder Ran
ran on a synthesized input
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("9f99db24b15d292c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

SelfAttention Ran
ran on a synthesized input · constructed an object; no result was computed
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("508634b69e88baa8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

continuous_autoregreesive_act Ran
ran; our contract draft was wrong, not the code
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("59cb0ba2cc3b36c6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

continuous_parallel_act Ran
ran; our contract draft was wrong, not the code
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("80d5ea44b6503397")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

discrete_parallel_act Ran
ran; our contract draft was wrong, not the code
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("cdc64fb18b542a6b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

init Ran
ran; our contract draft was wrong, not the code
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("c00885ffa5fe61e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

init_ Ran
ran; our contract draft was wrong, not the code
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("748385c8184d4945")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Decoder Not yet run
unverified (harvested, no recorded run)
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("da968f0f2c007dff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

MultiAgentTransformer Not yet run
unverified (harvested, no recorded run)
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("8aa233770f15e845")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

discrete_autoregreesive_act Not yet run
unverified (harvested, no recorded run)
PKU-MARL/Multi-Agent-Transformer/mat/algorithms/mat/algorithm/ma_transformer.py
pointer only (licence: NONE) · get_code("55cd239026a74d42")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-MARL/Multi-Agent-Transformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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
init
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2306.02006 (2023-06)
MA2CL:Masked Attentive Contrastive Learning for Multi-Agent Reinforcement Learning
2411.11364 (2024-11)
Continual Task Learning through Adaptive Policy Self-Composition
init_
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2306.02006 (2023-06)
MA2CL:Masked Attentive Contrastive Learning for Multi-Agent Reinforcement Learning
2411.11364 (2024-11)
Continual Task Learning through Adaptive Policy Self-Composition
DecodeBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier
2306.02006 (2023-06)
MA2CL:Masked Attentive Contrastive Learning for Multi-Agent Reinforcement Learning
EncodeBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier
2306.02006 (2023-06)
MA2CL:Masked Attentive Contrastive Learning for Multi-Agent Reinforcement Learning
SelfAttention
brick of this paper's assembly: model
1 other paper
1 dated earlier
2306.02006 (2023-06)
MA2CL:Masked Attentive Contrastive Learning for Multi-Agent Reinforcement Learning
continuous_parallel_act
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2306.02006 (2023-06)
MA2CL:Masked Attentive Contrastive Learning for Multi-Agent Reinforcement Learning
discrete_parallel_act
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2306.02006 (2023-06)
MA2CL:Masked Attentive Contrastive Learning for 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-23.

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 (MARL) is widely used to address large joint observation and action spaces by decomposing a centralized control problem into multiple interacting agents. However, such decomposition often introduces additional challenges, including non-stationarity, unstable training, weak coordination, and limited theoretical guarantees. In this paper, we propose the Consensus Multi-Agent Transformer (CMAT), a centralized framework that reformulates fully cooperative, fully observable MARL as a hierarchical single-agent, multi-action reinforcement learning problem. CMAT treats all agents as a unified entity and employs a Transformer encoder to process the large joint observation space. To handle the extensive joint action space, we introduce a hierarchical decision-making mechanism in which a Transformer decoder autoregressively generates a high-level consensus vector, simulating the process by which agents reach agreement on their strategies in latent space. Conditioned on this consensus, all agents generate their actions simultaneously, enabling order-independent joint decision making and avoiding the sensitivity to action-generation order in conventional Multi-Agent Transformers (MAT). This factorization allows the joint policy to be optimized using single-agent PPO while preserving expressive coordination through the latent consensus. To evaluate the proposed method, we conduct experiments on benchmark tasks from StarCraft II, Multi-Agent MuJoCo, and Google Research Football. The results show that CMAT achieves superior performance over recent centralized solutions, sequential MARL methods, and conventional MARL baselines. The code for this paper is available at an anonymous repository: https://anonymous.4open.science/r/CMAT-416A.

For agents

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

get_harvested_code_for_paper("2604.13472")
get_code_for_paper("2604.13472")
have("2604.13472")

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

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

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

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

Connect an agent — have() is free.