SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.14803 · 2024

DistRL: An Asynchronous Distributed Reinforcement Learning Framework for On-Device Control Agents

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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 5 have no contract verdict; 1 failure of our instrument; 0 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/2410.14803.json · badge: /api/ran/2410.14803.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
distrl-lab/distrl-open community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
FunctionStatusWhere it lives
add_trainer_index Ran
ran on a synthesized input
distrl-lab/distrl-open/distrl/algorithms/worker_collect_loop.py
code served (permissive licence) · get_code("bdaee053ad0cdb9c")
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 function. 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)

# The function add_trainer_index takes a trainer_index parameter
# and returns a function that updates trajectory dictionaries with a 'trainer_time_index' key.
# 
# To test this, we need to provide a trainer_index (an integer or identifier)
# and then the returned function will be called with trajectory data.

# trainer_index should be a simple integer or identifier
trainer_index = 42

ARGS = {
    'trainer_index': trainer_index
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
aggregate_trajectories Ran
ran on a synthesized input
distrl-lab/distrl-open/distrl/algorithms/Async_parallel.py
code served (permissive licence) · get_code("f6f91e38b8af5fde")
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 coroutine. 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 asyncio
import os
import tempfile
import torch
from unittest.mock import Mock

torch.manual_seed(0)

# Create temporary directories for testing
temp_save_dir = tempfile.mkdtemp()
temp_aggregated_dir = tempfile.mkdtemp()

# Create sample trajectory files
worker_ips = ['192.168.1.1', '192.168.1.2']
num_threads = 2

# Pre-populate some trajectory files
for worker_ip in worker_ips:
    for thread_id in range(num_threads):
        trajectories = [
            torch.randn(2, 4),
            torch.randn(3, 4),
        ]
        local_path = os.path.join(temp_save_dir, f'{worker_ip}_trajectories_{thread_id}.pt')
        torch.save(trajectories, local_path)

# Create locks
worker_traj_lock = asyncio.Lock()
aggregate_lock = Mock()
aggregate_lock.__enter__ = Mock(return_value=None)
aggregate_lock.__exit__ = Mock(return_value=None)

ARGS = {
    'worker_ips': worker_ips,
    'num_threads': num_threads,
    'save_path': temp_save_dir,
    'aggregated_save_path': temp_aggregated_dir,
    'aggregate_lock': aggregate_lock,
}
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 coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
aggregate_trajectories Ran
ran on a synthesized input
distrl-lab/distrl-open/distrl/algorithms/Sync_parallel.py
code served (permissive licence) · get_code("dd45821d3b9485af")
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 coroutine. 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 asyncio
import os
import tempfile
import torch
import threading

torch.manual_seed(0)

# Create temporary directories for testing
temp_dir = tempfile.mkdtemp()
save_path = os.path.join(temp_dir, 'trajectories')
aggregated_save_path = os.path.join(temp_dir, 'aggregated')
os.makedirs(save_path, exist_ok=True)
os.makedirs(aggregated_save_path, exist_ok=True)

# Create sample trajectory files for worker IPs
worker_ips = ['192.168.1.1', '192.168.1.2']
for worker_ip in worker_ips:
    traj_file = os.path.join(save_path, f'{worker_ip}_trajectories_0.pt')
    # Create simple trajectory data (list of tensors)
    trajectories = [torch.randn(2, 4), torch.randn(3, 4)]
    torch.save(trajectories, traj_file)

# Create a threading lock (standard lock to use with 'with' statement)
aggregate_lock = threading.Lock()

ARGS = {
    'worker_ips': worker_ips,
    'save_path': save_path,
    'aggregated_save_path': aggregated_save_path,
    'aggregate_lock': aggregate_lock,
}
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 coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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_mean Ran
ran; our contract draft was wrong, not the code
distrl-lab/distrl-open/distrl/algorithms/digirl/trainer.py
code served (permissive licence) · get_code("0cfea60f8eda39cf")
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) 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

torch.manual_seed(0)

# Construct a list of dictionaries with various keys
# The function handles 'min', 'max', and regular numeric keys
dict_list = [
    {
        'loss': 0.5,
        'accuracy': 0.85,
        'min_value': 10,
        'max_value': 100,
    },
    {
        'loss': 0.3,
        'accuracy': 0.90,
        'min_value': 5,
        'max_value': 150,
    },
    {
        'loss': 0.4,
        'accuracy': 0.88,
        'min_value': 8,
        'max_value': 120,
    },
]

ARGS = {
    'dict_list': dict_list,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
framestack Ran
ran on a synthesized input
distrl-lab/distrl-open/distrl/algorithms/eval_loop.py
code served (permissive licence) · get_code("61c1c9a5525eff94")
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 numpy as np
import copy

# Create minimal trajectories with the required structure
# Each trajectory is a list of timestep dicts
# Each dict has 'image_features' and 'next_image_features' keys

# Create a simple trajectory with 3 timesteps
trajectory_1 = [
    {
        'image_features': np.random.randn(4, 5).astype(np.float32),  # shape (4, 5)
        'next_image_features': np.random.randn(4, 5).astype(np.float32)
    },
    {
        'image_features': np.random.randn(4, 5).astype(np.float32),
        'next_image_features': np.random.randn(4, 5).astype(np.float32)
    },
    {
        'image_features': np.random.randn(4, 5).astype(np.float32),
        'next_image_features': np.random.randn(4, 5).astype(np.float32)
    }
]

# Create another trajectory for testing with multiple trajectories
trajectory_2 = [
    {
        'image_features': np.random.randn(4, 5).astype(np.float32),
        'next_image_features': np.random.randn(4, 5).astype(np.float32)
    },
    {
        'image_features': np.random.randn(4, 5).astype(np.float32),
        'next_image_features': np.random.randn(4, 5).astype(np.float32)
    }
]

all_trajectories = [trajectory_1, trajectory_2]

ARGS = {
    'all_trajectories': all_trajectories
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
label_trajectories Ran
ran on a synthesized input
distrl-lab/distrl-open/distrl/algorithms/offpolicy_train_loop.py
code served (permissive licence) · get_code("14189638e184926a")
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 (20,) 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 torch.nn as nn

torch.manual_seed(0)

# Create a mock trajectory critic model
class TrajectoryCritic(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, observations):
        # observations is a list of observation tensors
        # Stack them and pass through linear layer
        x = torch.stack(observations, dim=0)
        return self.linear(x)

# Create a mock accelerator with no_sync context manager
class MockAccelerator:
    def no_sync(self, model):
        class NoSyncContext:
            def __enter__(self):
                return self
            def __exit__(self, *args):
                pass
        return NoSyncContext()

# Create a mock agent
class MockAgent:
    def __init__(self):
        self.trajectory_critic = TrajectoryCritic()
        self.accelerator = MockAccelerator()

# Create mock trajectories
# Each trajectory is a tuple where the first element contains a dict with 'observation' key
agent = MockAgent()

# Create 20 trajectories to test batching (will be processed in batches of 16)
trajectories = []
for i in range(20):
    observation = torch.randn(4)
    trajectory = ({'observation': observation}, 'dummy_data')
    trajectories.append(trajectory)

ARGS = {
    'trajectories': trajectories,
    'agent': agent
}
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 (20,) — shape (20,) 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 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 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
dict_mean 3 other papers
1 dated earlier, 2 later · 1 only as an assembly brick
2406.11896 (2024-06)
DigiRL: Training In-The-Wild Device-Control Agents with Autonomous Reinforcement Learning
2502.15760 (2025-02)
Digi-Q: Learning VLM Q-Value Functions for Training Device-Control Agents
2505.03792 (2025-05)
Towards Efficient Online Tuning of VLM Agents via Counterfactual Soft 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

On-device control agents, especially on mobile devices, are responsible for operating mobile devices to fulfill users' requests, enabling seamless and intuitive interactions. Integrating Multimodal Large Language Models (MLLMs) into these agents enhances their ability to understand and execute complex commands, thereby improving user experience. However, fine-tuning MLLMs for on-device control presents significant challenges due to limited data availability and inefficient online training processes. This paper introduces DistRL, a novel framework designed to enhance the efficiency of online RL fine-tuning for mobile device control agents. DistRL employs centralized training and decentralized data acquisition to ensure efficient fine-tuning in the context of dynamic online interactions. Additionally, the framework is backed by our tailor-made RL algorithm, which effectively balances exploration with the prioritized utilization of collected data to ensure stable and robust training. Our experiments show that, on average, DistRL delivers a 3X improvement in training efficiency and enables training data collection 2.4X faster than the leading synchronous multi-machine methods. Notably, after training, DistRL achieves a 20% relative improvement in success rate compared to state-of-the-art methods on general Android tasks from an open benchmark, significantly outperforming existing approaches while maintaining the same training time. These results validate DistRL as a scalable and efficient solution, offering substantial improvements in both training efficiency and agent performance for real-world, in-the-wild device control tasks.

For agents

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

get_harvested_code_for_paper("2410.14803")
get_code_for_paper("2410.14803")
have("2410.14803")

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

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

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

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

Connect an agent — have() is free.