SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.25808 · NeurIPS · 2025

PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs

Hyunwoo Kim, Seunghun Lee, Jaewon Chu

arXiv · PDF · Open in the Atlas

Code that ran

14 of 20 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; 2 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 10 failures of our instrument; 6 no recorded run), measured 2026-11-23; 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/2510.25808.json · badge: /api/ran/2510.25808.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
mlvlab/PRESTO canonical (classifier label)
classifier basis: census
14 ran · 6 no recorded run
FunctionStatusWhere it lives
compute_pairwise_distances Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/experiments/group_init.py
code served (permissive licence) · get_code("54a01589a9986a91")
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, 3) 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 torch.nn as nn

torch.manual_seed(0)

# Create two small tensors for pairwise distance computation
# x: batch_size=2, embedding_dim=4
# y: batch_size=3, embedding_dim=4
x = torch.randn(2, 4)
y = torch.randn(3, 4)

ARGS = {
    'x': x,
    'y': y,
}
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, 3) — shape (2, 3) 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
create_split Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/automatic_prompt_engineer/data.py
code served (permissive licence) · get_code("45e36251f3ce30f3")
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 random
import torch
import numpy as np

torch.manual_seed(0)

# Create sample data as a tuple of lists
# inputs: list of sample inputs (can be anything, function doesn't inspect them)
# outputs: list of sample outputs (can be anything, function doesn't inspect them)
inputs = [
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4)
]

outputs = [
    torch.randn(2, 3),
    torch.randn(2, 3),
    torch.randn(2, 3),
    torch.randn(2, 3),
    torch.randn(2, 3)
]

data = (inputs, outputs)
split_size = 2

ARGS = {
    'data': data,
    'split_size': split_size
}
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
dispatch_openai_requests Ran
ran on a synthesized input
mlvlab/PRESTO/Induction/automatic_prompt_engineer/llm.py
code served (permissive licence) · get_code("c5362131706391ce")
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 coroutine. 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 asyncio
from typing import Any

# Construct valid arguments for dispatch_openai_requests

# messages_list: List of lists of dicts with string keys and any values
# Each inner list represents messages for one API call
messages_list = [
    [
        {"role": "user", "content": "What is 2+2?"},
        {"role": "assistant", "content": "2+2=4"}
    ],
    [
        {"role": "user", "content": "What is the capital of France?"}
    ]
]

# model: string specifying the OpenAI model
model = "gpt-3.5-turbo"

# temperature: float between 0 and 2
temperature = 0.7

# max_tokens: integer for maximum tokens in response
max_tokens = 100

# frequency_penalty: integer (though typically float -2.0 to 2.0, accepting int per signature)
frequency_penalty = 0

# presence_penalty: integer (though typically float -2.0 to 2.0, accepting int per signature)
presence_penalty = 0

ARGS = {
    "messages_list": messages_list,
    "model": model,
    "temperature": temperature,
    "max_tokens": max_tokens,
    "frequency_penalty": frequency_penalty,
    "presence_penalty": presence_penalty
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
evaluate_prompts Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mlvlab/PRESTO/Induction/automatic_prompt_engineer/evaluate.py
code served (permissive licence) · get_code("9482586da5ffae93")
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)

# Create mock prompts
prompts = [
    "What is the capital of France?",
    "What is 2 + 2?"
]

# Create mock eval template
eval_template = "Question: {input}\nAnswer: {output}"

# Create mock eval data - list of dicts with 'input' and 'output' keys
eval_data = [
    {"input": "What is the capital of France?", "output": "Paris"},
    {"input": "What is 2 + 2?", "output": "4"}
]

# Create mock demos template
demos_template = "Example: {input} -> {output}"

# Create mock few shot data
few_shot_data = [
    {"input": "What is the capital of Italy?", "output": "Rome"},
    {"input": "What is 3 + 3?", "output": "6"}
]

# Create mock eval method - a callable that acts like the likelihood_evaluator
def mock_eval_method(prompts, eval_template, eval_data, demos_template, few_shot_data, config):
    """Mock evaluation method that returns scores"""
    return {"scores": [0.9, 0.85], "avg_score": 0.875}

eval_method = mock_eval_method

# Create mock config dict with minimal required attributes
config = {
    "model": "gpt-3.5-turbo",
    "batch_size": 2,
    "num_evals": 2,
    "temperature": 0.7
}

ARGS = {
    "prompts": prompts,
    "eval_template": eval_template,
    "eval_data": eval_data,
    "demos_template": demos_template,
    "few_shot_data": few_shot_data,
    "eval_method": eval_method,
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
automatic_prompt_engineer, 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
find_instruction_by_embedding Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/experiments/run_neural_bandits.py
code served (permissive licence) · get_code("a1b40d6e869a8f1f")
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)

# Create a small embedding tensor
embedding_dim = 4
target_emb = torch.randn(embedding_dim)

# Create instruct_to_embedding dict with instructions mapped to lists of embeddings
instruct_to_embedding = {
    "instruction_1": [torch.randn(embedding_dim), torch.randn(embedding_dim)],
    "instruction_2": [torch.randn(embedding_dim), target_emb],
    "instruction_3": [torch.randn(embedding_dim)],
}

ARGS = {
    "instruct_to_embedding": instruct_to_embedding,
    "target_embedding": target_emb,
}
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_em_score Ran
ran, violated the contract we drafted
mlvlab/PRESTO/Induction/experiments/evaluation/instruction_induction/utility.py
code served (permissive licence) · get_code("8ce226c0bcf25c54")
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 bool, 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 string

def normalize_prediction(prediction, lowercase=True):
    prediction = prediction.replace(' and ', ' ')
    prediction = prediction.replace('Sentence 1:', ' ')
    prediction = prediction.replace('Sentence 2:', ' ')
    prediction = prediction.strip()
    prediction = prediction.split('\n')[0]
    prediction = prediction.split('.')[0]
    if lowercase:
        prediction = prediction.lower()
    prediction = prediction.replace('-', ' ')
    prediction = prediction.translate(str.maketrans('', '', string.punctuation))
    return prediction

def get_em_score(prediction, ground_truth):
    prediction_normalized = normalize_prediction(prediction, lowercase=True)
    ground_truth_normalized = normalize_prediction(ground_truth, lowercase=True)
    return prediction_normalized == ground_truth_normalized

ARGS = {
    "prediction": "The quick brown fox jumps over the lazy dog.",
    "ground_truth": "The quick brown fox jumps over the lazy dog."
}
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 bool, 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
get_f1_score Ran
ran, honoured the contract we drafted
mlvlab/PRESTO/Induction/experiments/evaluation/instruction_induction/utility.py
code served (permissive licence) · get_code("808b015d44c5a6ca")
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 string
from collections import Counter

def normalize_prediction(prediction, lowercase=True):
    prediction = prediction.replace(' and ', ' ')
    prediction = prediction.replace('Sentence 1:', ' ')
    prediction = prediction.replace('Sentence 2:', ' ')
    prediction = prediction.strip()
    prediction = prediction.split('\n')[0]
    prediction = prediction.split('.')[0]
    if lowercase:
        prediction = prediction.lower()
    prediction = prediction.replace('-', ' ')
    prediction = prediction.translate(str.maketrans('', '', string.punctuation))
    return prediction

def get_f1_score(prediction, ground_truth):
    prediction_tokens = normalize_prediction(prediction, lowercase=True).split()
    ground_truth_tokens = normalize_prediction(ground_truth, lowercase=True).split()
    common = Counter(prediction_tokens) & Counter(ground_truth_tokens)
    num_same = sum(common.values())
    if num_same == 0:
        return 0
    precision = 1.0 * num_same / len(prediction_tokens)
    recall = 1.0 * num_same / len(ground_truth_tokens)
    f1 = 2 * precision * recall / (precision + recall)
    return f1

ARGS = {
    "prediction": "The quick brown fox jumps over the lazy dog",
    "ground_truth": "The quick brown fox and jumps over the lazy dog"
}
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 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
get_query Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/automatic_prompt_engineer/generate.py
pointer only (licence: MIT); the stored copy get_code serves, from lichang-chen/instructzero, is pointer only (licence: NONE) · get_code("71e7c70faf29eeee")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lichang-chen/instructzero, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_query_for_test Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/experiments/evaluation/instruction_induction/exec_accuracy.py
code served (permissive licence) · get_code("1234b906d7281cd2")
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)

class MockEvalTemplate:
    """Stand-in for eval_template with a fill method."""
    def fill(self, prompt='', input='', output='', full_demo=''):
        """Returns a formatted query string."""
        return f"Prompt: {prompt}\nInput: {input}\nOutput: {output}\nDemo: {full_demo}"

prompt = "What is the capital of France?"
eval_template = MockEvalTemplate()
input_ = "France"
output_ = ""

ARGS = {
    'prompt': prompt,
    'eval_template': eval_template,
    'input_': input_,
    'output_': output_
}
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_simple_prompt_gen_template Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/automatic_prompt_engineer/ape.py
code served (permissive licence) · get_code("7f64a5a312597651")
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)

# Analyze function usage:
# - prompt_gen_template: can be None or a string
# - prompt_gen_mode: string that's either 'forward' or 'insert'
# - function returns prompt_gen_template (modified or original)

# Test case 1: prompt_gen_template is None, mode is 'forward'
ARGS = {
    'prompt_gen_template': None,
    'prompt_gen_mode': 'forward'
}
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
linear_rampup Ran
ran, honoured the contract we drafted
mlvlab/PRESTO/Induction/experiments/LlamaForMLPRegression.py
code served (permissive licence) · get_code("c5fbe85a81a540d2")
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

torch.manual_seed(0)

ARGS = {
    "t": 3,
    "T_ramp": 10,
    "lambda_max": 0.5
}
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 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
normalize_prediction Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/experiments/evaluation/instruction_induction/utility.py
code served (permissive licence) · get_code("d743b4d4da5336f3")
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 string

def normalize_prediction(prediction, lowercase=True):
    prediction = prediction.replace(' and ', ' ')
    prediction = prediction.replace('Sentence 1:', ' ')
    prediction = prediction.replace('Sentence 2:', ' ')
    prediction = prediction.strip()
    prediction = prediction.split('\n')[0]
    prediction = prediction.split('.')[0]
    if lowercase:
        prediction = prediction.lower()
    prediction = prediction.replace('-', ' ')
    prediction = prediction.translate(str.maketrans('', '', string.punctuation))
    return prediction

# Construct valid arguments
ARGS = {
    'prediction': 'Sentence 1: This is a test and example. More text here',
    'lowercase': True
}
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
rbf_kernel Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/experiments/group_init.py
code served (permissive licence) · get_code("8f8d6fbf5fb316d4")
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, 3) 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 x and y
# x: shape (2, 4) - 2 samples, 4 dimensions
# y: shape (3, 4) - 3 samples, 4 dimensions (different from x's batch size for clarity)
x = torch.randn(2, 4)
y = torch.randn(3, 4)

# bandwidth is a scalar parameter controlling the RBF kernel width
bandwidth = 1.0

ARGS = {
    "x": x,
    "y": y,
    "bandwidth": bandwidth
}
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, 3) — shape (2, 3) 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
subsample_data Ran
ran; our contract draft was wrong, not the code
mlvlab/PRESTO/Induction/automatic_prompt_engineer/data.py
code served (permissive licence) · get_code("01ed101f1dc9de50")
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 random
import torch

torch.manual_seed(0)

# Create sample data: inputs and outputs as lists
inputs = [
    torch.randn(4),
    torch.randn(4),
    torch.randn(4),
    torch.randn(4),
    torch.randn(4),
]

outputs = [
    torch.randn(3),
    torch.randn(3),
    torch.randn(3),
    torch.randn(3),
    torch.randn(3),
]

data = (inputs, outputs)
subsample_size = 2

ARGS = {
    "data": data,
    "subsample_size": subsample_size,
}
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 — 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_eval_method Not yet run
unverified (harvested, no recorded run)
mlvlab/PRESTO/Induction/automatic_prompt_engineer/evaluate.py
code served (permissive licence) · get_code("0c411a4f76c7ad8a")
How it ran

no invocation recorded.

get_query Not yet run
unverified (harvested, no recorded run)
mlvlab/PRESTO/Induction/experiments/evaluation/instruction_induction/exec_accuracy.py
code served (permissive licence) · get_code("9475219c55847f4d")
How it ran

no invocation recorded.

median_heuristic Not yet run
unverified (harvested, no recorded run)
mlvlab/PRESTO/Induction/experiments/group_init.py
code served (permissive licence) · get_code("e5b1507763dcab0c")
How it ran

no invocation recorded.

model_from_config Not yet run
unverified (harvested, no recorded run)
mlvlab/PRESTO/Induction/automatic_prompt_engineer/llm.py
code served (permissive licence) · get_code("5e6fa6db2e25e3b1")
How it ran

no invocation recorded.

simple_config Not yet run
unverified (harvested, no recorded run)
mlvlab/PRESTO/Induction/automatic_prompt_engineer/config.py
code served (permissive licence) · get_code("c974b8fb4e952424")
How it ran

no invocation recorded.

update_config Not yet run
unverified (harvested, no recorded run)
mlvlab/PRESTO/Induction/automatic_prompt_engineer/config.py
code served (permissive licence) · get_code("cef07a073378dd0c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 14 are also present in other papers whose code we hold (14 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
get_query 4 other papers
3 dated earlier, 1 same year, order not determinable
2306.03082 (2023-06)
InstructZero: Efficient Instruction Optimization for Black-Box Large Language Models
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
and 1 more not named here
get_simple_prompt_gen_template 4 other papers
3 dated earlier, 1 same year, order not determinable
2211.01910 (2022-11)
Large Language Models Are Human-Level Prompt Engineers
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
and 1 more not named here
subsample_data 4 other papers
3 dated earlier, 1 same year, order not determinable
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2405.02814 (2024-05)
NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
and 1 more not named here
update_config 3 other papers
2 dated earlier, 1 same year, order not determinable
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
2025.emnlp-main.965 (2025 (year only))
ACING: Actor-Critic for Instruction Learning in Black-Box LLMs
create_split 2 other papers
2 dated earlier
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
evaluate_prompts 2 other papers
2 dated earlier
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
get_em_score 2 other papers
2 dated earlier
2205.10782 (2022-05)
Instruction Induction: From Few Examples to Natural Language Task Descriptions
2405.02814 (2024-05)
NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli
get_eval_method 2 other papers
2 dated earlier
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
normalize_prediction 2 other papers
2 dated earlier
2205.10782 (2022-05)
Instruction Induction: From Few Examples to Natural Language Task Descriptions
2410.07652 (2024-10)
StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Models
simple_config 2 other papers
2 dated earlier
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
get_f1_score 1 other paper
1 dated earlier
2205.10782 (2022-05)
Instruction Induction: From Few Examples to Natural Language Task Descriptions
get_query 1 other paper
1 dated earlier
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
get_query_for_test 1 other paper
1 dated earlier
2405.17346 (2024-05)
Prompt Optimization with Human Feedback
model_from_config 1 other paper
1 dated earlier
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers

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 achieved remarkable success across diverse domains, due to their strong instruction-following capabilities. This has led to increasing interest in optimizing instructions for black-box LLMs, whose internal parameters are inaccessible but widely used due to their strong performance. To optimize instructions for black-box LLMs, recent methods employ white-box LLMs to generate candidate instructions from optimized soft prompts. However, white-box LLMs often map different soft prompts to the same instruction, leading to redundant queries. While previous studies regarded this many-to-one mapping as a structure that hinders optimization efficiency, we reinterpret it as a useful prior knowledge that can accelerate the optimization. To this end, we introduce PREimage-informed inSTruction Optimization (PRESTO), a novel framework that leverages the preimage structure of soft prompts for efficient optimization. PRESTO consists of three key components: (1) score sharing, which shares the evaluation score with all soft prompts in a preimage; (2) preimage-based initialization, which selects initial data points that maximize search space coverage using preimage information; and (3) score consistency regularization, which enforces prediction consistency within each preimage. By leveraging preimages, PRESTO achieves the effect of effectively obtaining 14 times more scored data under the same query budget, resulting in more efficient optimization. Experimental results on 33 instruction optimization tasks demonstrate the superior performance of PRESTO. Code is available at https://github.com/mlvlab/PRESTO.

For agents

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

get_harvested_code_for_paper("2510.25808")
get_code_for_paper("2510.25808")
have("2510.25808")

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

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

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

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

Connect an agent — have() is free.