SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.07012 · ICML · 2023

Generating Language Corrections for Teaching Physical Control Tasks

Megha Srivastava, Noah Goodman, Dorsa Sadigh

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 0 failures 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/2306.07012.json · badge: /api/ran/2306.07012.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
Stanford-ILIAD/corgi canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
adjust_trajectory Ran
ran on a synthesized input
Stanford-ILIAD/corgi/interfaces/teaching-interface/generator.py
code served (permissive licence) · get_code("6f30f2d3c0d61e58")
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 2, 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

torch.manual_seed(0)

# Analyzing the function:
# - user_trajectory is indexed with [0] to get first_tuple
# - first_tuple is indexed with [0] and [1] to get coordinates
# - user_trajectory is iterated over, each ui is indexed with [0] and [1]
# - The function expects a list of tuples where each tuple has at least 2 elements

# Create a valid user_trajectory: list of tuples with (x, y) coordinates
user_trajectory = [
    (10, 20),
    (15, 25),
    (12, 18),
    (20, 30)
]

ARGS = {
    "user_trajectory": user_trajectory
}
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 2, 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
format_trajectory_filename Ran
ran on a synthesized input
Stanford-ILIAD/corgi/interfaces/data-collection-interface/utils.py
code served (permissive licence) · get_code("de6653279c204b82")
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 numpy as np

def get_domain(input_string):
    domain_dict = {'walk': 'humanoid', 'jump': 'humanoid', 'throw': 'humanoid', 'run': 'humanoid', 'wave': 'humanoid', 'jacks': 'humanoid', 'bengali': 'writing', 'burmese': 'writing', 'arabic': 'writing', 'japanese': 'writing', 'futurama': 'writing', 'car': 'parking', 'bike': 'parking', 'plane': 'parking'}
    for key in domain_dict.keys():
        if key in input_string:
            return domain_dict[key]
    else:
        print("Coulnd't find domain for: " + input_string)
        return None

def format_trajectory_filename(input_fn):
    domain = get_domain(input_fn)
    if domain == 'humanoid' or domain == 'parking':
        return input_fn + '.gif'
    elif domain == 'writing':
        return input_fn + '.txt'
    else:
        return None

ARGS = {
    'input_fn': 'walk_trajectory_001'
}
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 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_domain Ran
ran on a synthesized input
Stanford-ILIAD/corgi/interfaces/data-collection-interface/utils.py
code served (permissive licence) · get_code("959205ed1d9b53ee")
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)

# The function get_domain takes a single parameter: input_string
# It searches for keys from domain_dict in the input_string and returns the corresponding domain value
# If no key is found, it prints a message and returns None

# Valid test cases:
ARGS = {
    'input_string': 'walk_dataset'
}
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_feedback Ran
ran on a synthesized input
Stanford-ILIAD/corgi/interfaces/teaching-interface/generator.py
code served (permissive licence) · get_code("2ab7a6b7bfaa426f")
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 numpy as np

torch.manual_seed(0)

# user_trajectory is accessed as a list where:
# - user_trajectory[0] gets the first tuple
# - iteration over user_trajectory occurs
# - each element ui is indexed with ui[0] and ui[1]
# So it should be a list of tuples with at least 2 numeric elements each

user_trajectory = [
    (10.0, 20.0),
    (15.0, 18.0),
    (12.0, 22.0),
    (18.0, 16.0)
]

ARGS = {
    'user_trajectory': user_trajectory,
    'temperature': 0.5,
    'random_val': 0,
    'score_only': 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
stitch_embeddings Ran
ran on a synthesized input
Stanford-ILIAD/corgi/interfaces/data-collection-interface/utils.py
code served (permissive licence) · get_code("e060b889a5954f10")
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, 12) 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

torch.manual_seed(0)

# The function takes a list of embeddings and concatenates them along dimension 1
# We need to create a list of 2D tensors (batch_size, embedding_dim)
# Using distinct sizes: batch=2, embedding dimensions of different sizes

embedding1 = torch.randn(2, 4)  # (batch_size=2, embedding_dim=4)
embedding2 = torch.randn(2, 3)  # (batch_size=2, embedding_dim=3)
embedding3 = torch.randn(2, 5)  # (batch_size=2, embedding_dim=5)

embeddings_list = [embedding1, embedding2, embedding3]
dimension = 1

ARGS = {
    "embeddings_list": embeddings_list,
    "dimension": dimension,
}
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 2, dtype family float, shape (2, 12) — shape (2, 12) 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 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 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.

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

AI assistance continues to help advance applications in education, from language learning to intelligent tutoring systems, yet current methods for providing students feedback are still quite limited. Most automatic feedback systems either provide binary correctness feedback, which may not help a student understand how to improve, or require hand-coding feedback templates, which may not generalize to new domains. This can be particularly challenging for physical control tasks, where the rich diversity in student behavior and specialized domains make it challenging to leverage general-purpose assistive tools for providing feedback. We design and build CORGI, a model trained to generate language corrections for physical control tasks, such as learning to ride a bike. CORGI takes in as input a pair of student and expert trajectories, and then generates natural language corrections to help the student improve. We collect and train CORGI over data from three diverse physical control tasks (drawing, steering, and joint movement). Through both automatic and human evaluations, we show that CORGI can (i) generate valid feedback for novel student trajectories, (ii) outperform baselines on domains with novel control dynamics, and (iii) improve student learning in an interactive drawing task.

For agents

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

get_harvested_code_for_paper("2306.07012")
get_code_for_paper("2306.07012")
have("2306.07012")

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

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

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

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

Connect an agent — have() is free.