SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2008.01062 · 2020

QPLEX: Duplex Dueling Multi-Agent Q-Learning

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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; 2 failures of our instrument; 0 no recorded run), measured 2026-11-21; 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/2008.01062.json · badge: /api/ran/2008.01062.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
somnathhazra/uncertainties_marl community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
FunctionStatusWhere it lives
args_sanity_check Ran
ran on a synthesized input
somnathhazra/uncertainties_marl/src/run/run_dist.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from mooricAnna/HiSSD, is pointer only (licence: Apache-2.0) · get_code("012625dd7922e3c6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from mooricAnna/HiSSD, and Apache-2.0, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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.

calculate_target_q Ran
ran on a synthesized input
somnathhazra/uncertainties_marl/src/learners/iqn_learner_dist.py
code served (permissive licence) · get_code("c5e0750dc161d1e0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 5, dtype family float, shape (2, 3, 1, 4, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 torch.nn as nn

th.manual_seed(0)

# Stand-in batch class with required attributes
class Batch:
    def __init__(self, batch_size=2, max_seq_length=3):
        self.batch_size = batch_size
        self.max_seq_length = max_seq_length

# Stand-in target_mac (model) with required methods
class TargetMAC(nn.Module):
    def __init__(self, batch_size=2, n_agents=1, n_actions=4, n_target_quantiles=8):
        super().__init__()
        self.batch_size = batch_size
        self.n_agents = n_agents
        self.n_actions = n_actions
        self.n_target_quantiles = n_target_quantiles
        self.hidden_state = None
        
    def set_evaluation_mode(self):
        self.eval()
    
    def init_hidden(self, batch_size):
        self.hidden_state = th.zeros(batch_size, 4)
    
    def forward(self, batch, t=0, forward_type='target'):
        # Return quantile outputs: (batch_size * n_agents, n_actions, n_target_quantiles)
        output = th.randn(batch.batch_size * self.n_agents, self.n_actions, self.n_target_quantiles)
        # For non-qrdqn agents, also return a second value
        return output, None

# Stand-in agent (a simple string identifier)
agent = 'qrdqn_rnn'

# Create instances
batch_size = 2
n_agents = 1
n_actions = 4
n_target_quantiles = 8

batch = Batch(batch_size=batch_size, max_seq_length=3)
target_mac = TargetMAC(batch_size=batch_size, n_agents=n_agents, n_actions=n_actions, n_target_quantiles=n_target_quantiles)

# Define ARGS dictionary with all function parameters
ARGS = {
    'agent': agent,
    'target_mac': target_mac,
    'batch': batch,
    'enable_parallel_computing': False,
    'thread_num': 4,
    'n_agents': n_agents,
    'n_actions': n_actions,
    'n_target_quantiles': n_target_quantiles
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 5, dtype family float, shape (2, 3, 1, 4, 8) — shape (2, 3, 1, 4, 8) as a later run recorded it
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: none by the harness; any seed is in the setup block
categorical_entropy Ran
ran; our contract draft was wrong, not the code
somnathhazra/uncertainties_marl/src/components/action_selectors.py
code served (permissive licence) · get_code("6008b0eb92d8067c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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
from torch.distributions import Categorical

torch.manual_seed(0)

# The function takes a probability tensor and computes entropy via Categorical distribution
# probs must have size > 1 in the last dimension
# We create a small tensor with batch_size=2, num_classes=4

probs = torch.tensor([
    [0.1, 0.2, 0.3, 0.4],
    [0.25, 0.25, 0.25, 0.25]
], dtype=torch.float32)

ARGS = {
    "probs": probs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
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: none by the harness; any seed is in the setup block
multinomial_entropy Ran
ran; our contract draft was wrong, not the code
somnathhazra/uncertainties_marl/src/components/action_selectors.py
code served (permissive licence) · get_code("1da3ad2020291e67")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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
torch.manual_seed(0)

# The function multinomial_entropy takes logits as a parameter
# It creates a GumbelSoftmax distribution and calls .entropy() on it
# GumbelSoftmax inherits from OneHotCategorical and expects logits tensor
# The logits should have shape (batch, num_categories) where num_categories > 1

logits = torch.randn(2, 4)

ARGS = {
    "logits": logits
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
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: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 3 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
categorical_entropy 3 other papers
3 later
2207.05631 (2022-07)
DGPO: Discovering Multiple Strategies with Diversity-Guided Policy Optimization
2405.16854 (2024-05)
Knowing What Not to Do: Leverage Language Model Insights for Action Space Pruning in Multi-agent Reinforcement Learning
2410.02511 (2024-10)
Stop Wandering, Find the Keys: LLMs Discriminate Key States for Efficient Multi-Agent Exploration
multinomial_entropy 3 other papers
3 later
2207.05631 (2022-07)
DGPO: Discovering Multiple Strategies with Diversity-Guided Policy Optimization
2405.16854 (2024-05)
Knowing What Not to Do: Leverage Language Model Insights for Action Space Pruning in Multi-agent Reinforcement Learning
2410.02511 (2024-10)
Stop Wandering, Find the Keys: LLMs Discriminate Key States for Efficient Multi-Agent Exploration
args_sanity_check 2 other papers
1 dated earlier, 1 later
1902.04043 (2019-02)
The StarCraft Multi-Agent Challenge
2503.21200 (2025-03)
Learning Generalizable Skills from Offline Multi-Task Data for Multi-Agent Cooperation

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-21.

Repositories linked to this paper

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

Abstract

We explore value-based multi-agent reinforcement learning (MARL) in the popular paradigm of centralized training with decentralized execution (CTDE). CTDE has an important concept, Individual-Global-Max (IGM) principle, which requires the consistency between joint and local action selections to support efficient local decision-making. However, in order to achieve scalability, existing MARL methods either limit representation expressiveness of their value function classes or relax the IGM consistency, which may suffer from instability risk or may not perform well in complex domains. This paper presents a novel MARL approach, called duPLEX dueling multi-agent Q-learning (QPLEX), which takes a duplex dueling network architecture to factorize the joint value function. This duplex dueling structure encodes the IGM principle into the neural network architecture and thus enables efficient value function learning. Theoretical analysis shows that QPLEX achieves a complete IGM function class. Empirical experiments on StarCraft II micromanagement tasks demonstrate that QPLEX significantly outperforms state-of-the-art baselines in both online and offline data collection settings, and also reveal that QPLEX achieves high sample efficiency and can benefit from offline datasets without additional online exploration.

For agents

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

get_harvested_code_for_paper("2008.01062")
get_code_for_paper("2008.01062")
have("2008.01062")

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

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

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

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

Connect an agent — have() is free.