SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.13829 · EMNLP · 2023

Learning from Mistakes via Cooperative Study Assistant for Large Language Models

Lei Li, Santa Barbara, Danqing Wang

arXiv · PDF · Open in the Atlas

Code that ran

11 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 8 have no contract verdict; 3 failures of our instrument; 2 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/2305.13829.json · badge: /api/ran/2305.13829.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
dqwang122/salam canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
madaan/self-refine canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
check_result Ran
ran on a synthesized input
dqwang122/salam/src/utils/tools.py
code served (permissive licence) · get_code("b735e29e0de47813")
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 torch
import numpy as np

torch.manual_seed(0)

# Create sample results list
results = [
    {
        'response/output': 'A: The answer is (a). This is correct.',
        'response/target_str': '(a)'
    },
    {
        'response/output': '(b)',
        'response/target_str': '(b)'
    }
]

# Create sample dataset list
dataset = [
    {
        'options': ['(a) option one', '(b) option two', '(c) option three']
    },
    {
        'options': ['(a) first', '(b) second']
    }
]

# Define the arguments dictionary
ARGS = {
    'results': results,
    'dataset': dataset,
    'save_path': None
}
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 — 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
normalize_scores Ran
ran on a synthesized input
madaan/self-refine/src/acronym/run_mcts.py
code served (permissive licence) · get_code("94f412dc2125cdd8")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Construct a valid scores dictionary
# The function iterates over key-value pairs and divides non-'Total score' values by 5
scores = {
    'Math': 3.5,
    'Science': 4.2,
    'English': 3.8,
    'History': 2.9,
    'Total score': 14.4
}

ARGS = {
    'scores': scores
}
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 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
parse_scores Ran
ran on a synthesized input
madaan/self-refine/src/acronym/run_mcts.py
code served (permissive licence) · get_code("024bf912c9a8a3df")
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 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 re

def parse_scores(scores_output: str) -> dict:
    scores_pattern = re.compile('\\* (.*?): (.*)\\n?')
    scores = {}
    for score_match in scores_pattern.finditer(scores_output):
        score_title, score_value = score_match.groups()
        score_value = int(re.search('\\d+', score_value).group(0))
        scores[score_title] = score_value
    return scores

# Construct valid arguments for parse_scores
scores_output = """* Accuracy: 95
* Precision: 87
* Recall: 92
"""

ARGS = {
    "scores_output": scores_output
}
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 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
postprocess_output Ran
ran on a synthesized input
dqwang122/salam/src/utils/model_utils.py
code served (permissive licence) · get_code("995424bb47930b36")
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 re

# Test case 1: Single string with all parameters
text_single = "The apple is on the ground. What is the color?"
max_length = 50
stop_string = "."
output_regex = r"apple|ground"

# Test case 2: List of strings
text_list = [
    "The answer is 42. But wait, 7*7 = 49.",
    "Calculate: 7*8 = 56. More text here."
]

# Test case 3: None values for optional parameters
text_simple = "This is a simple test string"

ARGS = {
    "text": text_list,
    "max_length": 100,
    "stop_string": ".",
    "output_regex": r"\d+"
}
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 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
reduce_mean Ran
ran; our contract draft was wrong, not the code
dqwang122/salam/src/utils/utils.py
code served (permissive licence) · get_code("e5bacba887a721ef")
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 0, dtype family float, 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 torch

torch.manual_seed(0)

# Create small test tensors
value = torch.randn(2, 4)  # batch_size=2, dim=4
mask = torch.ones(2, 4)    # same shape as value

# Test with axis=None
ARGS = {
    "value": value,
    "mask": mask,
    "axis": None
}
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 0, dtype family float, 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
reduce_std Ran
ran; our contract draft was wrong, not the code
dqwang122/salam/src/utils/utils.py
code served (permissive licence) · get_code("174bfbbeb1f29e12")
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 0, dtype family float, 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 torch

torch.manual_seed(0)

# Create small test tensors
# value: the tensor to reduce
# mask: binary mask to select which elements to include
value = torch.randn(2, 4)
mask = torch.ones(2, 4)

# Set some mask values to 0 to have meaningful masking
mask[0, 2] = 0
mask[1, 3] = 0

ARGS = {
    "value": value,
    "mask": mask,
}
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 0, dtype family float, 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
reduce_sum Ran
ran; our contract draft was wrong, not the code
dqwang122/salam/src/utils/utils.py
code served (permissive licence) · get_code("5874b0a8910897fd")
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 0, dtype family float, 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 torch

torch.manual_seed(0)

# Create small tensors for testing
value = torch.randn(2, 4)  # Shape (2, 4)
mask = torch.randint(0, 2, (2, 4)).float()  # Shape (2, 4), binary mask as floats

ARGS = {
    "value": value,
    "mask": mask,
    "axis": None
}
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 0, dtype family float, 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
retry_parse_fail_prone_cmd Ran
ran on a synthesized input
madaan/self-refine/src/utils.py
code served (permissive licence) · get_code("31f5087bd3a92aeb")
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 traceback

def retry_parse_fail_prone_cmd(func, max_retries: int=3, exceptions=(ValueError, KeyError, IndexError)):

    def wrapper(*args, **kwargs):
        retries = max_retries
        while retries:
            try:
                return func(*args, **kwargs)
            except exceptions as e:
                stack_trace = traceback.format_exc()
                retries -= 1
                print(f'An error occurred: {e}. {stack_trace}. Left retries: {retries}.')
        return None
    return wrapper


# Create a function that will be decorated
def parse_command(data, config):
    """A simple function that might fail on bad inputs"""
    value = config[data]
    return value * 2


# Create another function that fails on first call then succeeds
call_count = [0]

def flaky_function(x):
    """Fails once, then succeeds"""
    call_count[0] += 1
    if call_count[0] == 1:
        raise ValueError("First call fails")
    return x + 10


ARGS = {
    "func": flaky_function,
    "max_retries": 3,
    "exceptions": (ValueError, KeyError, IndexError)
}
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 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
simple_check_result Ran
ran on a synthesized input
dqwang122/salam/src/utils/tools.py
code served (permissive licence) · get_code("0b3886637ce87213")
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 re

def simple_check_result(results, targets):
    accu_cnt = 0
    score = []
    for res, target_option in zip(results, targets):
        output = res['response/output'].strip()
        output = output.lstrip('A: ')
        output = output.rstrip('.')
        output = output.lower()
        output = output.replace('\n', '').replace(u')', ')').replace(u'(', '(')
        target_option = target_option.lower()
        matchobj = re.search('\\([a-z]\\)', output)
        if matchobj:
            output = matchobj.group(0)
        if output != '':
            if output in target_option or target_option in output:
                accu_cnt += 1
                score.append(1)
            else:
                score.append(0)
        else:
            score.append(0)
    return (round(accu_cnt * 100 / len(results), 2), score)


# Construct valid arguments
results = [
    {'response/output': 'A: (a) is the answer.'},
    {'response/output': 'A: (b)'},
    {'response/output': 'A: the correct choice is (c).'},
    {'response/output': 'A: (d) some text'},
]

targets = [
    '(a)',
    'choice (b)',
    '(c) correct',
    '(e)',
]

ARGS = {
    'results': results,
    'targets': targets,
}
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 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
train_test_split Ran
ran on a synthesized input
dqwang122/salam/src/utils/tools.py
code served (permissive licence) · get_code("19f7c8ee0a8ecca1")
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 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 os
import json
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_root = tempfile.mkdtemp()
temp_data_root = tempfile.mkdtemp()

# Create task and model directories
task_name = "test_task"
model_name = "test_model"

result_dir = os.path.join(temp_root, task_name, model_name)
data_dir = os.path.join(temp_data_root, task_name)

os.makedirs(result_dir, exist_ok=True)
os.makedirs(data_dir, exist_ok=True)

# Create sample result and request files
mode = "test"

# Create a small dataset with proper structure
results_data = [
    {
        "response/output": "A: (a) correct answer.",
        "response/target_str": "(a)"
    },
    {
        "response/output": "A: (b) another choice",
        "response/target_str": "(b)"
    },
    {
        "response/output": "A: (c) third option.",
        "response/target_str": "(a)"
    },
    {
        "response/output": "A: (d) fourth option",
        "response/target_str": "(d)"
    },
    {
        "response/output": "A: (a) correct.",
        "response/target_str": "(a)"
    },
    {
        "response/output": "A: (b) wrong choice",
        "response/target_str": "(c)"
    },
    {
        "response/output": "A: (c) option",
        "response/target_str": "(c)"
    },
    {
        "response/output": "A: (d) last",
        "response/target_str": "(d)"
    },
    {
        "response/output": "A: (a) first",
        "response/target_str": "(a)"
    },
    {
        "response/output": "A: (b) second",
        "response/target_str": "(b)"
    }
]

requests_data = [
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]},
    {"options": ["(a) first option", "(b) second option", "(c) third option", "(d) fourth option"]}
]

# Write the files
result_file = os.path.join(result_dir, f"results_{mode}.json")
request_file = os.path.join(data_dir, f"results_{mode}.json")

with open(result_file, 'w') as f:
    json.dump(results_data, f)

with open(request_file, 'w') as f:
    json.dump(requests_data, f)

ARGS = {
    "root_dir": temp_root,
    "data_root": temp_data_root,
    "task_name": task_name,
    "model_name": model_name,
    "mode": mode
}
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 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
weighted_sum Ran
ran on a synthesized input
madaan/self-refine/src/acronym/run_mcts.py
code served (permissive licence) · get_code("2f14a94002fc598c")
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 float, ndim 0, dtype family float, 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 torch
import numpy as np

torch.manual_seed(0)

# The function takes two parameters: normalized_scores and weights
# Both are dicts where keys match and values are numeric

# Create normalized_scores dict with the same keys as weights
normalized_scores = {
    'Ease of pronunciation': 0.8,
    'Ease of spelling': 0.9,
    'Relation to title': 0.7,
    'Positive connotation': 0.6,
    'Well-known': 0.5
}

weights = {
    'Ease of pronunciation': 0.2,
    'Ease of spelling': 0.2,
    'Relation to title': 0.3,
    'Positive connotation': 0.2,
    'Well-known': 0.1
}

ARGS = {
    'normalized_scores': normalized_scores,
    'weights': weights
}
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 float, ndim 0, dtype family float, 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
make_supervised_data_module Not yet run
unverified (harvested, no recorded run)
dqwang122/salam/src/finetune.py
code served (permissive licence) · get_code("a14da09015edfc5a")
How it ran

no invocation recorded.

preprocess Not yet run
unverified (harvested, no recorded run)
dqwang122/salam/src/finetune.py
code served (permissive licence) · get_code("980b5f9982142070")
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, 2 the same month, 3 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
reduce_mean 7 other papers
2 dated earlier, 1 the same month, 4 later · 3 only as an assembly brick
2210.03078 (2022-10)
RAINIER: Reinforced Knowledge Introspector for Commonsense Question Answering
2212.10409 (2022-12)
ClarifyDelphi: Reinforced Clarification Questions with Defeasibility Rewards for Social and Moral Situations
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
and 4 more not named here
reduce_sum 7 other papers
2 dated earlier, 1 the same month, 4 later · 3 only as an assembly brick
2210.03078 (2022-10)
RAINIER: Reinforced Knowledge Introspector for Commonsense Question Answering
2212.10409 (2022-12)
ClarifyDelphi: Reinforced Clarification Questions with Defeasibility Rewards for Social and Moral Situations
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
and 4 more not named here
reduce_std 5 other papers
2 dated earlier, 3 later · 1 only as an assembly brick
2210.03078 (2022-10)
RAINIER: Reinforced Knowledge Introspector for Commonsense Question Answering
2212.10409 (2022-12)
ClarifyDelphi: Reinforced Clarification Questions with Defeasibility Rewards for Social and Moral Situations
2306.01693 (2023-06)
Fine-Grained Human Feedback Gives Better Rewards for Language Model Training
and 2 more not named here

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

Large language models (LLMs) have demonstrated their potential to refine their generation based on their own feedback. However, the feedback from LLM itself is often inaccurate, thereby limiting its benefits. In this paper, we propose Study Assistant for Large LAnguage Model (SALAM), a novel framework with an auxiliary agent to assist the main LLM in learning from mistakes through interactive cooperation. In the gathering phase, the student assistant agent probes the main LLM, analyzes its errors, and collects the interaction in a mistake memory. During the examination phase, the study assistant provides guidelines by retrieving relevant cases to help the main LLM anticipate and avoid similar errors. We first investigate the effectiveness of a general study assistant and then customize it to provide LLMspecific guidance through imitation learning from successful guidance experiences. Our experiments on three LLMs using two challenging frameworks demonstrate that SALAM can significantly boost LLMs by an accuracy margin of up to 6.6 on BBH and 12.6 on BBQ 1 . 1 https://dqwang122.github.io/projects/SALAM. Jane thought today is 3/11/2002, but today is in fact Mar 12, which is 1 day later. What is the date a month ago? 02/11/2002 False Guideline: For dates in a problem, identify the correct date from which calculations should be made.

For agents

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

get_harvested_code_for_paper("2305.13829")
get_code_for_paper("2305.13829")
have("2305.13829")

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

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

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

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

Connect an agent — have() is free.