SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.17257 · ICML · 2024

RIME: Robust Preference-based Reinforcement Learning with Noisy Preferences

Jie Cheng, Gang Xiong, Xingyuan Dai, Qinghai Miao, Yisheng Lv, Fei-Yue Wang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 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 2 have no contract verdict; 2 failures of our instrument; 3 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/2402.17257.json · badge: /api/ran/2402.17257.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
cjreinforce/rime_icml2024 canonical (classifier label)
classifier basis: classifier_2025
4 ran · 3 no recorded run
FunctionStatusWhere it lives
KCenterGreedy Ran
ran; our contract draft was wrong, not the code
cjreinforce/rime_icml2024/reward_model_RIME.py
code served (permissive licence) · get_code("c9f63eda91e537ab")
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 int; 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 numpy as np
import torch

torch.manual_seed(0)

# Create small numpy arrays for obs and full_obs
# obs: shape (6, 4) - 6 observations, 4 dimensions
# full_obs: shape (5, 4) - 5 observations, 4 dimensions
obs = np.random.randn(6, 4).astype(np.float32)
full_obs = np.random.randn(5, 4).astype(np.float32)

# num_new_sample: number of samples to select
num_new_sample = 2

ARGS = {
    "obs": obs,
    "full_obs": full_obs,
    "num_new_sample": num_new_sample
}
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 int — 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
RunningMeanStd Ran
ran on a synthesized input · constructed an object; no result was computed
cjreinforce/rime_icml2024/reward_model_RIME.py
code served (permissive licence) · get_code("60d6d08eefa30cf7")
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 an instance of its own class, RunningMeanStd: the run constructed the object and did not call it, so no result was computed. 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

# Create a small batch of data for testing
data_array = np.random.randn(2, 4).astype(np.float32)

ARGS = {
    'mean': 0,
    'std': 1.0,
    'epsilon': np.finfo(np.float32).eps.item(),
    'mode': 'common',
    'lr': 0.1
}
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 RunningMeanStd — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RunningMeanStd 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
VideoRecorder Ran
ran on a synthesized input · constructed an object; no result was computed
cjreinforce/rime_icml2024/reward_model_RIME.py
code served (permissive licence) · get_code("cb62f08adea6cf9a")
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 an instance of its own class, VideoRecorder: the run constructed the object and did not call it, so no result was computed. 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 os
import tempfile
import types as _types
import numpy as np

def make_dir(*path_parts):
    dir_path = os.path.join(*path_parts)
    try:
        os.mkdir(dir_path)
    except OSError:
        pass
    return dir_path

class MockEnv:
    def render(self, mode='rgb_array', height=256, width=256, camera_id=0):
        return np.zeros((height, width, 3), dtype=np.uint8)

utils = _types.SimpleNamespace(make_dir=make_dir)

class VideoRecorder(object):

    def __init__(self, root_dir, height=256, width=256, camera_id=0, fps=30):
        self.save_dir = utils.make_dir(root_dir, 'video') if root_dir else None
        self.height = height
        self.width = width
        self.camera_id = camera_id
        self.fps = fps
        self.duration = int(1000 * 1 / self.fps)
        self.frames = []

    def init(self, enabled=True):
        self.frames = []
        self.enabled = self.save_dir is not None and enabled

    def record(self, env):
        if self.enabled:
            frame = env.render(mode='rgb_array', height=self.height, width=self.width, camera_id=self.camera_id)
            self.frames.append(frame)

    def save(self, file_name):
        if self.enabled:
            path = os.path.join(self.save_dir, file_name)
            import imageio
            imageio.mimsave(path, self.frames, duration=self.duration, loop=0)

temp_dir = tempfile.mkdtemp()

ARGS = {
    'root_dir': temp_dir,
    'height': 128,
    'width': 256,
    'camera_id': 0,
    'fps': 30
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
imageio, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type VideoRecorder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a VideoRecorder 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
compute_smallest_dist Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cjreinforce/rime_icml2024/reward_model_RIME.py
code served (permissive licence) · get_code("3f2a932901a2d3a9")
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; 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 numpy as np

torch.manual_seed(0)

# Create small numpy arrays for obs and full_obs
# obs: shape (250, 4) - observation vectors with dimension 4
# full_obs: shape (300, 4) - full observation vectors with dimension 4
obs = np.random.randn(250, 4).astype(np.float32)
full_obs = np.random.randn(300, 4).astype(np.float32)

ARGS = {
    'obs': obs,
    'full_obs': full_obs,
}
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 — no output shape is stated: observe_signature.py could not observe it (call:AssertionError)
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
RIMERewardModel Not yet run
unverified (harvested, no recorded run)
cjreinforce/rime_icml2024/reward_model_RIME.py
code served (permissive licence) · get_code("647e0562be392b5c")
How it ran

no invocation recorded.

RewardModel Not yet run
unverified (harvested, no recorded run)
cjreinforce/rime_icml2024/reward_model_RIME.py
code served (permissive licence) · get_code("3a1138fef2b4ce3c")
How it ran

no invocation recorded.

make_dir Not yet run
unverified (harvested, no recorded run)
cjreinforce/rime_icml2024/reward_model_RIME.py
code served (permissive licence) · get_code("d4ff9f7ce18e3a94")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 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
KCenterGreedy
brick of this paper's assembly: sampler
3 other papers
3 dated earlier · 1 only as an assembly brick
2106.05091 (2021-06)
PEBBLE: Feedback-Efficient Interactive Reinforcement Learning via Relabeling Experience and Unsupervised Pre-training
2111.03026 (2021-11)
B-Pref: Benchmarking Preference-Based Reinforcement Learning
2205.12401 (2022-05)
Reward Uncertainty for Exploration in Preference-based Reinforcement Learning
compute_smallest_dist
brick of this paper's assembly: helper
3 other papers
3 dated earlier · 1 only as an assembly brick
2106.05091 (2021-06)
PEBBLE: Feedback-Efficient Interactive Reinforcement Learning via Relabeling Experience and Unsupervised Pre-training
2111.03026 (2021-11)
B-Pref: Benchmarking Preference-Based Reinforcement Learning
2205.12401 (2022-05)
Reward Uncertainty for Exploration in Preference-based 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

Preference-based Reinforcement Learning (PbRL) circumvents the need for reward engineering by harnessing human preferences as the reward signal. However, current PbRL methods excessively depend on high-quality feedback from domain experts, which results in a lack of robustness. In this paper, we present RIME, a robust PbRL algorithm for effective reward learning from noisy preferences. Our method utilizes a sample selection-based discriminator to dynamically filter out noise and ensure robust training. To counteract the cumulative error stemming from incorrect selection, we suggest a warm start for the reward model, which additionally bridges the performance gap during the transition from pre-training to online training in PbRL. Our experiments on robotic manipulation and locomotion tasks demonstrate that RIME significantly enhances the robustness of the state-of-the-art PbRL method. Code is available at https://github.com/CJReinforce/ RIME_ICML2024.

For agents

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

get_harvested_code_for_paper("2402.17257")
get_code_for_paper("2402.17257")
have("2402.17257")

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

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

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

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

Connect an agent — have() is free.