SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.24298 · 2025

AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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 9 have no contract verdict; 1 failure 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/2505.24298.json · badge: /api/ran/2505.24298.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
inclusionai/areal canonical (classifier label)
classifier basis not recorded on the link
10 ran · 3 no recorded run
FunctionStatusWhere it lives
convert_image Ran
ran on a synthesized input
inclusionai/areal/areal/dataset/clevr_count_70k.py
code served (permissive licence) · get_code("984b7305e1675001")
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 bytes. 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.

from PIL import Image
import io

# Create a simple test image
test_image = Image.new('RGBA', (100, 100), color='red')

ARGS = {
    'image': test_image,
    'max_pixels': 5000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
convert_image Ran
ran on a synthesized input
inclusionai/areal/areal/dataset/geometry3k.py
code served (permissive licence) · get_code("74fdadc218fb8f82")
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 bytes. 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
from PIL import Image
import numpy as np
from io import BytesIO

# Create a small test image
img_array = np.random.randint(0, 256, (100, 120, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array, mode='RGB')

# Create an image in a different mode to test conversion
img_array_grayscale = np.random.randint(0, 256, (100, 120), dtype=np.uint8)
test_image_grayscale = Image.fromarray(img_array_grayscale, mode='L')

# Create a dict representation of an image
image_dict = {
    'data': img_array,
    'mode': 'RGB',
    'width': 120,
    'height': 100
}

ARGS = {
    'image': test_image_grayscale,
    'fixed_width': None,
    'fixed_height': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
detect_image_mime Ran
ran on a synthesized input
inclusionai/areal/areal/api/io_struct.py
code served (permissive licence) · get_code("b118bfd2216dcd9b")
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 base64

# Create base64-encoded test data that represents different image formats
# PNG magic bytes: 137 80 78 71 = 0x89 0x50 0x4E 0x47
png_bytes = bytes([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A])
png_base64 = base64.b64encode(png_bytes).decode('utf-8')

# JPEG magic bytes: 255 216 = 0xFF 0xD8
jpeg_bytes = bytes([0xFF, 0xD8, 0xFF, 0xE0])
jpeg_base64 = base64.b64encode(jpeg_bytes).decode('utf-8')

# GIF magic bytes: 71 73 70 = 0x47 0x49 0x46
gif_bytes = bytes([0x47, 0x49, 0x46, 0x38, 0x39, 0x61])
gif_base64 = base64.b64encode(gif_bytes).decode('utf-8')

# WebP magic bytes: 82 73 70 70 = 0x52 0x49 0x46 0x46
webp_bytes = bytes([0x52, 0x49, 0x46, 0x46, 0x00, 0x00, 0x00, 0x00, 0x57, 0x45, 0x42, 0x50])
webp_base64 = base64.b64encode(webp_bytes).decode('utf-8')

# Use PNG base64 as the test argument
ARGS = {
    'base64_data': png_base64
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
format_host_for_url Ran
ran on a synthesized input
inclusionai/areal/areal/utils/network.py
code served (permissive licence) · get_code("65a8c4846526b3db")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function format_host_for_url takes a single parameter: host (a string)
# It checks if the host starts and ends with brackets, or if it contains a colon,
# and formats it accordingly.

ARGS = {
    'host': '192.168.1.1:8080'
}
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 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
format_hostport Ran
ran on a synthesized input
inclusionai/areal/areal/utils/network.py
code served (permissive licence) · get_code("a638861750ab4d98")
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 torch

def format_host_for_url(host: str) -> str:
    if host.startswith('[') and host.endswith(']'):
        return host
    if ':' in host:
        return f'[{host}]'
    return host

def format_hostport(host: str, port: int) -> str:
    return f'{format_host_for_url(host)}:{port}'


ARGS = {
    'host': 'localhost',
    'port': 8080
}
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 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
get_gsm8k_rl_dataset Ran
ran on a synthesized input
inclusionai/areal/areal/dataset/gsm8k.py
code served (permissive licence) · get_code("b882a485cc24570c")
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 MockDataset. 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
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create a minimal tokenizer that has an encode method
class MinimalTokenizer:
    def encode(self, text):
        # Return a simple token list based on text length
        # Split by whitespace and return token ids
        return list(range(len(text.split())))

# Create a mock dataset that mimics the structure returned by load_dataset
class MockDataset:
    def __init__(self):
        self.data = [
            {'question': 'What is 2+2?', 'answer': '4'},
            {'question': 'What is the capital of France?', 'answer': 'Paris'},
        ]
    
    def map(self, func):
        self.data = [func(sample) for sample in self.data]
        return self
    
    def remove_columns(self, cols):
        for sample in self.data:
            for col in cols:
                if col in sample:
                    del sample[col]
        return self
    
    def filter(self, func):
        self.data = [sample for sample in self.data if func(sample)]
        return self
    
    def __iter__(self):
        return iter(self.data)

# Mock the load_dataset function
def mock_load_dataset(path, name, split):
    return MockDataset()

# Patch load_dataset in the module namespace
import datasets
original_load_dataset = datasets.load_dataset
datasets.load_dataset = mock_load_dataset

ARGS = {
    'path': 'gsm8k',
    'split': 'train',
    'tokenizer': MinimalTokenizer(),
    'max_length': 50
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockDataset — a MockDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockDataset 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
get_py_cmd Ran
ran; our contract draft was wrong, not the code
inclusionai/areal/areal/api/cli_args.py
code served (permissive licence) · get_code("5c929b9172cee02b")
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, ndim 1, 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
import numpy as np

torch.manual_seed(0)

# Analyze the function: get_py_cmd takes:
# - module: str - a module name to run with python3 -m
# - args: dict[str, Any] - arguments to convert to command line flags

# The function processes dict items and builds a command list
# It handles None, False, empty strings, empty lists as skip conditions
# It converts keys to flags with -- prefix and _ to -
# Values can be True (flag only), lists (flag + values), or other (flag + str(value))

ARGS = {
    "module": "my_module",
    "args": {
        "input_file": "data.txt",
        "output_dir": "/tmp/output",
        "batch_size": 32,
        "learning_rate": 0.001,
        "enable_logging": True,
        "gpu_ids": [0, 1, 2],
        "seed": 42,
        "skip_validation": False,
        "extra_param": None,
        "empty_list": [],
        "empty_string": "",
    }
}
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 list, ndim 1, dtype family float — a list 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
get_versioned_lora_name Ran
ran on a synthesized input
inclusionai/areal/areal/api/io_struct.py
code served (permissive licence) · get_code("ba5bcb5389640745")
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 torch

torch.manual_seed(0)

ARGS = {
    "lora_name": "lora-adapter",
    "version": 1,
}
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 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
pad_to_square Ran
ran on a synthesized input
inclusionai/areal/areal/dataset/geometry3k.py
code served (permissive licence) · get_code("57fa5d6aba08d9d5")
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 Image. 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.

from PIL import Image

# Create a small test image
# The function expects an Image.Image object
# It uses: img.size (returns (width, height)), img.mode, and Image.new()
test_image = Image.new('RGB', (12, 8), color=(100, 150, 200))

# Define arguments mapping
ARGS = {
    'img': test_image,
    'fill': (0, 0, 0)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
parse_cli_args Ran
ran on a synthesized input
inclusionai/areal/areal/api/cli_args.py
code served (permissive licence) · get_code("f1162ad51bf8451e")
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. 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 tempfile
import os
from pathlib import Path
import yaml

# Create a temporary directory for config files
temp_dir = tempfile.mkdtemp()
config_dir = Path(temp_dir)

# Create a minimal valid YAML config file
config_content = {
    'model': 'test_model',
    'batch_size': 32,
    'learning_rate': 0.001,
}

config_file_path = config_dir / 'config.yaml'
with open(config_file_path, 'w') as f:
    yaml.dump(config_content, f)

# Construct valid argv for parse_cli_args
argv = [
    '--config', str(config_file_path),
    'batch_size=64',  # Override example
    'learning_rate=0.0001'
]

ARGS = {
    'argv': argv
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
hydra, yaml — 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: none by the harness; any seed is in the setup block
get_gsm8k_sft_dataset Not yet run
unverified (harvested, no recorded run)
inclusionai/areal/areal/dataset/gsm8k.py
code served (permissive licence) · get_code("5a0101a5d065cefe")
How it ran

no invocation recorded.

gethostip Not yet run
unverified (harvested, no recorded run)
inclusionai/areal/areal/utils/network.py
code served (permissive licence) · get_code("5425dac746421dc0")
How it ran

no invocation recorded.

to_structured_cfg Not yet run
unverified (harvested, no recorded run)
inclusionai/areal/areal/api/cli_args.py
code served (permissive licence) · get_code("e0c4f88b3f11687c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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
convert_image 1 other paper
1 dated earlier
2504.16129 (2025-04)
MARFT: Multi-Agent Reinforcement Fine-Tuning
get_py_cmd 1 other paper
1 dated earlier
2504.16129 (2025-04)
MARFT: Multi-Agent Reinforcement Fine-Tuning
parse_cli_args 1 other paper
1 dated earlier
2504.16129 (2025-04)
MARFT: Multi-Agent Reinforcement Fine-Tuning

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

Reinforcement learning (RL) has become a dominant paradigm for training large language models (LLMs), particularly for reasoning tasks. Effective RL for LLMs requires massive parallelization and poses an urgent need for efficient training systems. Most existing large-scale RL systems for LLMs are synchronous, alternating generation and training in a batch setting where rollouts in each training batch are generated by the same model. This approach stabilizes RL training but suffers from severe system-level inefficiency: generation must wait until the longest output in the batch is completed before model updates, resulting in GPU underutilization. We present AReaL, a fully asynchronous RL system that completely decouples generation from training. Rollout workers in AReaL continuously generate new outputs without waiting, while training workers update the model whenever a batch of data is collected. AReaL also incorporates a collection of system-level optimizations, leading to substantially higher GPU utilization. To stabilize RL training, AReaL balances the workload of rollout and training workers to control data staleness, and adopts a staleness-enhanced PPO variant to better handle outdated training samples. Extensive experiments on math and code reasoning benchmarks show that AReaL achieves up to 2.77$\times$ training speedup compared to synchronous systems with the same number of GPUs and matched or improved final performance. The code of AReaL is available at https://github.com/inclusionAI/AReaL/.

For agents

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

get_harvested_code_for_paper("2505.24298")
get_code_for_paper("2505.24298")
have("2505.24298")

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

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

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

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

Connect an agent — have() is free.