SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.06853 · 2023

LLF-Bench: Benchmark for Interactive Learning from Language Feedback

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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 7 have no contract verdict; 0 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/2312.06853.json · badge: /api/ran/2312.06853.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
microsoft/llf-bench community (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
FunctionStatusWhere it lives
extract_action Ran
ran on a synthesized input
microsoft/llf-bench/llfbench/agents/ag_agent.py
code served (permissive licence) · get_code("6745fdb0e65acfc2")
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 int, ndim 0, dtype family int, 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 random
import re
import gymnasium

# Create a discrete action space
action_space = gymnasium.spaces.Discrete(n=5)

# Create test messages with different formats
msg = "action: 2"

ARGS = {
    "msg": msg,
    "action_space": action_space,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gymnasium — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
extract_int Ran
ran on a synthesized input
microsoft/llf-bench/llfbench/agents/utils.py
code served (permissive licence) · get_code("47566729715af06b")
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. 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

def extract_int(txt):
    return [int(s) for s in txt.split() if s.isdigit()]

# The function takes a single parameter: txt (a string)
# It splits the string by whitespace and filters for digit-only strings
# Then converts each to int

ARGS = {
    "txt": "hello 123 world 456 test 789"
}
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, 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
generate_combinations_dict Ran
ran on a synthesized input
microsoft/llf-bench/llfbench/utils/utils.py
code served (permissive licence) · get_code("3c9ab2484cc68ac8")
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
from itertools import product

# Construct a simple input_dict with lists of various types
input_dict = {
    "learning_rate": [0.001, 0.01, 0.1],
    "batch_size": [16, 32],
    "hidden_dim": [64, 128],
    "dropout": [0.1, 0.5]
}

ARGS = {
    "input_dict": input_dict
}
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_multiline_input Ran
ran on a synthesized input
microsoft/llf-bench/llfbench/agents/user_agent.py
code served (permissive licence) · get_code("65da18e119d24e9c")
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
from unittest.mock import patch
from io import StringIO

# Mock the input function to provide test data
mock_inputs = iter(['Hello', 'World', 'Testing', ''])

def mock_input(prompt=''):
    try:
        return next(mock_inputs)
    except StopIteration:
        return ''

# Set up the arguments dict
ARGS = {
    'prompt': 'Enter text (press Enter twice to finish):\n'
}

# Patch the built-in input function for execution
import builtins
original_input = builtins.input
builtins.input = mock_input
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
rollout Ran
ran on a synthesized input
microsoft/llf-bench/llfbench/agents/utils.py
code served (permissive licence) · get_code("ad264f7ab70b06e1")
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. 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

torch.manual_seed(0)

class StandInAgent(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def reset(self, instruction):
        pass
    
    def act(self, observation, feedback):
        obs_tensor = torch.tensor(observation, dtype=torch.float32).unsqueeze(0)
        action = self.linear(obs_tensor).argmax(dim=1).item()
        return action

class StandInEnv:
    def __init__(self):
        self.step_count = 0
    
    def reset(self):
        observation = {
            'observation': [0.1, 0.2, 0.3, 0.4],
            'instruction': 'test instruction',
            'feedback': [0.0, 0.0]
        }
        info = {'success': False}
        return observation, info
    
    def step(self, action):
        self.step_count += 1
        new_observation = {
            'observation': [0.1 + self.step_count * 0.01, 0.2, 0.3, 0.4],
            'instruction': 'test instruction',
            'feedback': [0.0, 0.0]
        }
        reward = 1.0
        terminated = False
        truncated = False
        info = {'success': False}
        if self.step_count >= 3:
            terminated = True
            info = {'success': True}
        return new_observation, reward, terminated, truncated, info

agent = StandInAgent()
env = StandInEnv()

ARGS = {
    'agent': agent,
    'env': env,
    'horizon': 10,
    'return_full_information': False,
    'log_data': True,
    'seed': 42,
    'sparse_reward': False
}
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 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
space_compatibility Ran
ran on a synthesized input
microsoft/llf-bench/llfbench/envs/env_wrappers.py
code served (permissive licence) · get_code("eaf657d46e05feef")
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 Discrete. 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 gymnasium as gym
import gym as old_gym
import numpy as np

# Create test spaces in old gym format
discrete_space = old_gym.spaces.Discrete(5)
box_space = old_gym.spaces.Box(low=0, high=1, shape=(2, 3), dtype=np.float32)
multibinary_space = old_gym.spaces.MultiBinary(4)
multidiscrete_space = old_gym.spaces.MultiDiscrete([3, 4, 5])
tuple_space = old_gym.spaces.Tuple((
    old_gym.spaces.Discrete(2),
    old_gym.spaces.Box(low=0, high=1, shape=(2,), dtype=np.float32)
))
dict_space = old_gym.spaces.Dict({
    'action': old_gym.spaces.Discrete(3),
    'observation': old_gym.spaces.Box(low=0, high=1, shape=(2,), dtype=np.float32)
})

# Text space requires charset attribute
text_space = old_gym.spaces.Text(max_length=10, min_length=1)
text_space.charset = "abcdefghijklmnopqrstuvwxyz"

# Test with Discrete space as the main argument
ARGS = {
    'old_space': discrete_space
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gym, gymnasium, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Discrete — a Discrete output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Discrete 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
standardize_model_name Ran
ran on a synthesized input
microsoft/llf-bench/llfbench/agents/llm.py
code served (permissive licence) · get_code("08e83c6dfe0b7710")
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

ARGS = {
    'model': 'gpt-3.5-turbo'
}
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 Not yet run
unverified (harvested, no recorded run)
microsoft/llf-bench/llfbench/envs/utils.py
code served (permissive licence) · get_code("9016caa8866ed28d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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.

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

We introduce a new benchmark, LLF-Bench (Learning from Language Feedback Benchmark; pronounced as "elf-bench"), to evaluate the ability of AI agents to interactively learn from natural language feedback and instructions. Learning from language feedback (LLF) is essential for people, largely because the rich information this feedback provides can help a learner avoid much of trial and error and thereby speed up the learning process. Large Language Models (LLMs) have recently enabled AI agents to comprehend natural language -- and hence AI agents can potentially benefit from language feedback during learning like humans do. But existing interactive benchmarks do not assess this crucial capability: they either use numeric reward feedback or require no learning at all (only planning or information retrieval). LLF-Bench is designed to fill this omission. LLF-Bench is a diverse collection of sequential decision-making tasks that includes user recommendation, poem writing, navigation, and robot control. The objective of an agent is to interactively solve these tasks based on their natural-language instructions and the feedback received after taking actions. Crucially, to ensure that the agent actually "learns" from the feedback, LLF-Bench implements several randomization techniques (such as paraphrasing and environment randomization) to ensure that the task isn't familiar to the agent and that the agent is robust to various verbalizations. In addition, LLF-Bench provides a unified OpenAI Gym interface for all its tasks and allows the users to easily configure the information the feedback conveys (among suggestion, explanation, and instantaneous performance) to study how agents respond to different types of feedback. Together, these features make LLF-Bench a unique research platform for developing and testing LLF agents.

For agents

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

get_harvested_code_for_paper("2312.06853")
get_code_for_paper("2312.06853")
have("2312.06853")

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

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

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

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

Connect an agent — have() is free.