SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.01146 · ICML · 2024

Task-Aware Harmony Multi-Task Decision Transformer for Offline Reinforcement Learning

Dacheng Tao, Li Shen, Ya Zhang, Yanfeng Wang, Shengchao Hu, Ziqing Fan, Yuhang Zhou

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 8 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2411.01146.json · badge: /api/ran/2411.01146.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
charleshsc/HarmoDT canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
create_exp_name Ran
ran; our contract draft was wrong, not the code
charleshsc/HarmoDT/logger.py
code served (permissive licence) · get_code("5e687d63bb9beb4a")
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 str. 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 datetime
import dateutil.tz

ARGS = {
    'exp_prefix': 'test_experiment',
    'exp_id': 42,
    'seed': 123,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
dateutil — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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: none by the harness; any seed is in the setup block
dict_to_safe_json Ran
ran; our contract draft was wrong, not the code
charleshsc/HarmoDT/logger.py
code served (permissive licence) · get_code("41279dfcda8b39e4")
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 dict. 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
import numpy as np

torch.manual_seed(0)

# Test case 1: Dictionary with safe JSON values
test_dict_safe = {
    "name": "test",
    "count": 42,
    "value": 3.14,
    "flag": True,
    "empty": None,
    "list": [1, 2, 3],
    "nested_list": [[1, 2], [3, 4]],
}

# Test case 2: Dictionary with unsafe values that need conversion
tensor = torch.randn(2, 4)
numpy_array = np.array([1, 2, 3])
custom_obj = object()

test_dict_unsafe = {
    "tensor": tensor,
    "numpy_array": numpy_array,
    "custom_object": custom_obj,
    "safe_value": 123,
}

# Test case 3: Dictionary with nested dictionaries
test_dict_nested = {
    "level1": {
        "level2": {
            "value": 99,
            "tensor": torch.randn(2, 4),
        },
        "safe": "string",
    },
    "top_level": 42,
}

# Test case 4: Complex mixed dictionary
test_dict_complex = {
    "string": "hello",
    "integer": 100,
    "float": 2.718,
    "boolean": False,
    "none": None,
    "list_mixed": [1, "two", 3.0, True, None],
    "nested_dict": {
        "inner_tensor": torch.randn(3, 5),
        "inner_safe": [1, 2, 3],
    },
    "numpy": np.array([4, 5, 6]),
}

ARGS = {
    "d": test_dict_complex,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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: none by the harness; any seed is in the setup block
flatten_prompt Ran
ran; our contract draft was wrong, not the code
charleshsc/HarmoDT/prompt_dt/prompt_utils.py
code served (permissive licence) · get_code("0228f4b37ceb225d")
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 list. 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
import torch.nn as nn

torch.manual_seed(0)

# Create tensors with distinct sizes to be distinguishable
batch_size = 2
seq_len = 3
state_dim = 4
action_dim = 5
reward_dim = 6
rtg_dim = 7

# Build the prompt tuple: (p_s, p_a, p_r, p_d, p_rtg, p_timesteps, p_mask)
# These need to be reshaped, so we create them with compatible shapes

# p_s: (batch_size * seq_len, state_dim) -> will be reshaped to (batch_size, seq_len, state_dim)
p_s = torch.randn(batch_size * seq_len, state_dim)

# p_a: (batch_size * seq_len, action_dim) -> will be reshaped to (batch_size, seq_len, action_dim)
p_a = torch.randn(batch_size * seq_len, action_dim)

# p_r: (batch_size * seq_len, reward_dim) -> will be reshaped to (batch_size, seq_len, reward_dim)
p_r = torch.randn(batch_size * seq_len, reward_dim)

# p_d: (batch_size * seq_len,) -> will be reshaped to (batch_size, seq_len)
p_d = torch.randn(batch_size * seq_len)

# p_rtg: (batch_size, seq_len + 1, rtg_dim) -> first sliced [:, :-1, :] then reshaped
p_rtg = torch.randn(batch_size, seq_len + 1, rtg_dim)

# p_timesteps: (batch_size * seq_len,) -> will be reshaped to (batch_size, seq_len)
p_timesteps = torch.randn(batch_size * seq_len)

# p_mask: (batch_size * seq_len,) -> will be reshaped to (batch_size, seq_len)
p_mask = torch.randn(batch_size * seq_len)

prompt = (p_s, p_a, p_r, p_d, p_rtg, p_timesteps, p_mask)

ARGS = {
    "prompt": prompt,
    "batch_size": batch_size,
}
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 list — a list 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: none by the harness; any seed is in the setup block
get_harmo_gradient Ran
ran, honoured the contract we drafted
charleshsc/HarmoDT/prompt_dt/fl_utils.py
code served (permissive licence) · get_code("c268a0545b986015")
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 2, dtype family float, shape (2, 4) 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
import numpy as np

torch.manual_seed(0)

# The function expects gradient_set to be a dict-like object where:
# - Keys are environment names (strings)
# - Values are tensors that support += and /= operations
# This is a dict mapping environment names to gradient tensors

gradient_1 = torch.randn(2, 4)
gradient_2 = torch.randn(2, 4)
gradient_3 = torch.randn(2, 4)

gradient_set = {
    "env_1": gradient_1,
    "env_2": gradient_2,
    "env_3": gradient_3,
}

ARGS = {
    "gradient_set": gradient_set,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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, shape (2, 4) — shape (2, 4) 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
mask_dead_harmo Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
charleshsc/HarmoDT/prompt_dt/fl_utils.py
code served (permissive licence) · get_code("75501b4b19ca6c54")
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 dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors for the function
# harmo_gradient: used in element-wise multiplication with gradient_set values
harmo_gradient = torch.randn(4)

# gradient_set: dict of tensors, each multiplied by harmo_gradient
gradient_set = {
    'layer1': torch.randn(4),
    'layer2': torch.randn(4)
}

# mask_vectors: dict of tensors, each with shape matching gradient_set values
# Used to create simi_vec and index into new_vectors
mask_vectors = {
    'layer1': torch.randn(4),
    'layer2': torch.randn(4)
}

# change_num: number of top-k elements to select
change_num = 2

ARGS = {
    'harmo_gradient': harmo_gradient,
    'gradient_set': gradient_set,
    'mask_vectors': mask_vectors,
    'change_num': change_num
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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: none by the harness; any seed is in the setup block
mask_generate_harmo Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
charleshsc/HarmoDT/prompt_dt/fl_utils.py
code served (permissive licence) · get_code("87276e0c489ddfa4")
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 dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

torch.manual_seed(0)

# The function expects:
# - harmo_gradient: a scalar or tensor used in multiplication
# - gradient_set: dict mapping names to tensors
# - mask_vectors: dict mapping names to tensors (binary masks)
# - model_vec: a tensor or dict-like object that can be cloned
# - gamma: scalar (default 0)
# - change_num: int (default 10)
# - mode: string in ['fisher', 'magnitude'] (default 'fisher')

# Create small tensors for the masks and gradients
names = ['layer1', 'layer2']
mask_vectors = {
    'layer1': torch.zeros(20),  # shape (20,)
    'layer2': torch.zeros(15),  # shape (15,)
}

gradient_set = {
    'layer1': torch.randn(20),  # shape (20,)
    'layer2': torch.randn(15),  # shape (15,)
}

# harmo_gradient is used in multiplication with gradient_set values
harmo_gradient = torch.tensor(0.5)

# model_vec is cloned and used for magnitude mode
# The function accesses it with torch.abs() so it needs to be a tensor
model_vec = torch.randn(20)

ARGS = {
    'harmo_gradient': harmo_gradient,
    'gradient_set': gradient_set,
    'mask_vectors': mask_vectors,
    'model_vec': model_vec,
    'gamma': 0.1,
    'change_num': 5,
    'mode': 'fisher'
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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: none by the harness; any seed is in the setup block
prompt_evaluate_episode Ran
ran; our contract draft was wrong, not the code
charleshsc/HarmoDT/prompt_dt/prompt_evaluate_episodes.py
code served (permissive licence) · get_code("5025e676615b5431")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a minimal environment that supports reset() and step()
class MinimalEnv:
    def __init__(self, state_dim, act_dim):
        self.state_dim = state_dim
        self.act_dim = act_dim
    
    def reset(self):
        return np.random.randn(self.state_dim).astype(np.float32)
    
    def step(self, action):
        state = np.random.randn(self.state_dim).astype(np.float32)
        reward = np.random.randn()
        done = False
        info = {}
        return state, reward, done, info

# Create a minimal model that has get_action method
class MinimalModel(nn.Module):
    def __init__(self, state_dim, act_dim):
        super().__init__()
        self.state_dim = state_dim
        self.act_dim = act_dim
        self.linear = nn.Linear(state_dim, act_dim)
    
    def get_action(self, states, actions, rewards, target_return=None, prompt=None):
        # states shape: (seq_len, state_dim)
        # Return action of shape (1, act_dim)
        output = self.linear(states[-1:])
        return output
    
    def eval(self):
        super().eval()
        return self

# Create environment, model, and state statistics
state_dim = 4
act_dim = 3
env = MinimalEnv(state_dim, act_dim)
model = MinimalModel(state_dim, act_dim)

state_mean = np.zeros(state_dim, dtype=np.float32)
state_std = np.ones(state_dim, dtype=np.float32)

ARGS = {
    'env': env,
    'state_dim': state_dim,
    'act_dim': act_dim,
    'model': model,
    'max_ep_len': 10,
    'device': 'cpu',
    'target_return': 5.0,
    'mode': 'normal',
    'state_mean': state_mean,
    'state_std': state_std,
    'prompt': None,
    'no_r': False,
    'no_rtg': False,
    'no_state_normalize': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
prompt_evaluate_episode_rtg Ran
ran; our contract draft was wrong, not the code
charleshsc/HarmoDT/prompt_dt/prompt_evaluate_episodes.py
code served (permissive licence) · get_code("efac75dc4db6721d")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Mock environment
class MockEnv:
    def __init__(self, state_dim, act_dim):
        self.state_dim = state_dim
        self.act_dim = act_dim
        self.step_count = 0
    
    def reset(self):
        return np.random.randn(self.state_dim).astype(np.float32)
    
    def step(self, action):
        self.step_count += 1
        next_state = np.random.randn(self.state_dim).astype(np.float32)
        reward = float(np.random.randn())
        done = self.step_count >= 5
        truncate = False
        infos = {'success': 0.0}
        return next_state, reward, done, truncate, infos

# Mock model
class MockModel(nn.Module):
    def __init__(self, state_dim, act_dim):
        super().__init__()
        self.state_dim = state_dim
        self.act_dim = act_dim
        self.linear = nn.Linear(state_dim, act_dim)
    
    def get_action(self, env_name, states, actions, rewards, target_return, timesteps, prompt=None, info=None):
        # states shape: (seq_len, state_dim)
        # return action of shape (1, act_dim)
        batch_action = self.linear(states[-1:])
        return batch_action

# Set up parameters
state_dim = 4
act_dim = 3
env_name = 'CartPole-v1'
env = MockEnv(state_dim, act_dim)
model = MockModel(state_dim, act_dim)

state_mean = np.zeros(state_dim, dtype=np.float32)
state_std = np.ones(state_dim, dtype=np.float32)

ARGS = {
    'env_name': env_name,
    'env': env,
    'state_dim': state_dim,
    'act_dim': act_dim,
    'model': model,
    'max_ep_len': 10,
    'scale': 1000.0,
    'state_mean': state_mean,
    'state_std': state_std,
    'device': 'cpu',
    'target_return': 100.0,
    'mode': 'normal',
    'prompt': None,
    'no_r': False,
    'no_rtg': False,
    'no_state_normalize': False,
    'info': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
safe_json Ran
ran, violated the contract we drafted
charleshsc/HarmoDT/logger.py
code served (permissive licence) · get_code("07afff96928bd142")
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 bool, ndim 0, dtype family float, shape () 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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - It takes one parameter: `data`
# - It recursively checks if data is JSON-safe (None, bool, int, float, tuple, list, or dict with string keys)
# - It returns a boolean

# Test cases for a comprehensive argument:
# We'll create a complex nested structure that is JSON-safe

ARGS = {
    "data": {
        "string_key": "value",
        "number": 42,
        "float_num": 3.14,
        "bool_val": True,
        "none_val": None,
        "list": [1, 2, 3, "four"],
        "tuple": (5, 6, 7),
        "nested_dict": {
            "inner_string": "text",
            "inner_list": [True, False, None],
        },
        "complex_list": [
            {"a": 1, "b": 2},
            [1, 2, [3, 4]],
            "string",
            42,
        ],
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
simple_separated_format Ran
ran; our contract draft was wrong, not the code
charleshsc/HarmoDT/tabulate.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from aviralkumar2907/CQL, is pointer only (licence: NONE) · get_code("5cb0c55f58279f59")
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 aviralkumar2907/CQL, and GitHub detected no licence in that repository 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.

load_tf_weights_in_gpt2 Not yet run
unverified (harvested, no recorded run)
charleshsc/HarmoDT/prompt_dt/trajectory_gpt2.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tencentarc/moto, is pointer only (licence: NOASSERTION) · get_code("00a33466c69c5705")
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 tencentarc/moto, and GitHub could not classify the licence of that repository (NOASSERTION). 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 6 the same month, 2 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
simple_separated_format 27 other papers
22 dated earlier, 1 the same month, 4 later
1903.08254 (2019-03)
Efficient Off-Policy Meta-Reinforcement Learning via Probabilistic Context Variables
1910.11670 (2019-10)
Contextual Imagined Goals for Self-Supervised Robotic Learning
1910.12827 (2019-10)
Entity Abstraction in Visual Model-Based Reinforcement Learning
and 24 more not named here
load_tf_weights_in_gpt2 22 other papers
17 dated earlier, 2 the same month, 3 later
2106.01345 (2021-06)
Decision Transformer: Reinforcement Learning via Sequence Modeling
2110.06206 (2021-10)
StARformer: Transformer with State-Action-Reward Representations for Visual Reinforcement Learning
2202.11705 (2022-02)
COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics
and 19 more not named here
dict_to_safe_json 6 other papers
5 dated earlier, 1 the same month
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2007.09070 (2020-07)
Hybrid Discriminative-Generative Training via Contrastive Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning
and 3 more not named here
safe_json 5 other papers
4 dated earlier, 1 the same month
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning
2405.17098 (2024-05)
Q-value Regularized Transformer for Offline Reinforcement Learning
and 2 more not named here
create_exp_name 3 other papers
2 dated earlier, 1 the same month
2405.17098 (2024-05)
Q-value Regularized Transformer for Offline Reinforcement Learning
2405.19690 (2024-05)
Diffusion Policies Creating a Trust Region for Offline Reinforcement Learning
2411.11364 (2024-11)
Continual Task Learning through Adaptive Policy Self-Composition
prompt_evaluate_episode 1 other paper
1 the same month
2411.11364 (2024-11)
Continual Task Learning through Adaptive Policy Self-Composition

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

The purpose of offline multi-task reinforcement learning (MTRL) is to develop a unified policy applicable to diverse tasks without the need for online environmental interaction. Recent advancements approach this through sequence modeling, leveraging the Transformer architecture's scalability and the benefits of parameter sharing to exploit task similarities. However, variations in task content and complexity pose significant challenges in policy formulation, necessitating judicious parameter sharing and management of conflicting gradients for optimal policy performance. Furthermore, identifying the optimal parameter subspace for each task often necessitates prior knowledge of the task identifier during inference, limiting applicability in real-world scenarios with variable task content and unknown current tasks. In this work, we introduce the Harmony Multi-Task Decision Transformer (HarmoDT), a novel solution designed to identify an optimal harmony subspace of parameters for each task. We formulate this as a bi-level optimization problem within a meta-learning framework, where the upper level learns masks to define the harmony subspace, while the inner level focuses on updating parameters to improve the overall performance of the unified policy. To eliminate the need for task identifiers, we further design a group-wise variant (G-HarmoDT) that clusters tasks into coherent groups based on gradient information, and utilizes a gating network to determine task identifiers during inference. Empirical evaluations across various benchmarks highlight the superiority of our approach, demonstrating its effectiveness in the multi-task context with specific improvements of 8% gain in task-provided settings, 5% in task-agnostic settings, and 10% in unseen settings.

For agents

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

get_harvested_code_for_paper("2411.01146")
get_code_for_paper("2411.01146")
have("2411.01146")

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

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

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

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

Connect an agent — have() is free.