SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.17346 · 2024

Prompt Optimization with Human Feedback

arXiv · PDF · Open in the Atlas

Code that ran

12 of 17 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; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 9 failures of our instrument; 5 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/2405.17346.json · badge: /api/ran/2405.17346.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
xqlin98/apohf canonical (classifier label)
classifier basis: census
12 ran · 5 no recorded run
FunctionStatusWhere it lives
create_split Ran
ran; our contract draft was wrong, not the code
xqlin98/apohf/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
xqlin98/apohf/Induction/automatic_prompt_engineer/llm.py
code served (permissive licence) · get_code("764b12da43eb09cf")
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 messages to be sent to OpenAI ChatCompletion API
# Each message should be a dict with "role" and "content" keys
messages_list = [
    [
        {"role": "user", "content": "What is 2+2?"},
        {"role": "assistant", "content": "4"}
    ],
    [
        {"role": "user", "content": "Hello, how are you?"}
    ]
]

# model: OpenAI model to use
model = "gpt-3.5-turbo"

# temperature: Temperature to use for the model (0.0 to 2.0)
temperature = 0.7

# max_tokens: Maximum number of tokens to generate
max_tokens = 100

# frequency_penalty: Frequency penalty (-2.0 to 2.0)
frequency_penalty = 0

# presence_penalty: Presence penalty (-2.0 to 2.0)
presence_penalty = 0

# use_seed: Whether to use a seed for reproducibility
use_seed = True

ARGS = {
    "messages_list": messages_list,
    "model": model,
    "temperature": temperature,
    "max_tokens": max_tokens,
    "frequency_penalty": frequency_penalty,
    "presence_penalty": presence_penalty,
    "use_seed": use_seed
}
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)
xqlin98/apohf/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
extract_sub_sentence Ran
ran; our contract draft was wrong, not the code
xqlin98/apohf/Induction/experiments/run_dbandits_po.py
code served (permissive licence) · get_code("5188a1b90d83d22f")
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

def extract_sub_sentence(long_sentence):
    matches = re.findall('<prompt>(.*?)</prompt>', long_sentence)
    return matches

# The function takes a string parameter and uses re.findall to extract text
# between <prompt> tags. We need to provide a string with some <prompt> tags.

ARGS = {
    'long_sentence': 'This is a test <prompt>first prompt content</prompt> and here is another <prompt>second prompt content</prompt> with some text after.'
}
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
get_content Ran
ran; our contract draft was wrong, not the code
xqlin98/apohf/Induction/automatic_prompt_engineer/llm.py
code served (permissive licence) · get_code("abfa696ce2993f88")
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 torch
import torch.nn as nn


class MockMessage:
    def __init__(self, content):
        self.content = content


class MockChoice:
    def __init__(self, message):
        self.message = message


class MockResponse:
    def __init__(self, choices):
        self.choices = choices


# Build a mock response object that the function expects
mock_message = MockMessage("This is test content")
mock_choice = MockChoice(mock_message)
mock_response = MockResponse([mock_choice])

ARGS = {
    "response": mock_response
}
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 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
get_query Ran
ran; our contract draft was wrong, not the code
xqlin98/apohf/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
xqlin98/apohf/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_sen_embedding Ran
ran, honoured the contract we drafted
xqlin98/apohf/Induction/experiments/run_dbandits_image_gen.py
code served (permissive licence) · get_code("35cc698ea101ddac")
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, 4) 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)

# Stand-in tokenizer that mimics HuggingFace tokenizer behavior
class StandInTokenizer:
    def __call__(self, sentences, padding=True, truncation=True, return_tensors='pt'):
        # Return a dict with 'input_ids' and 'attention_mask'
        batch_size = len(sentences) if isinstance(sentences, list) else 1
        seq_length = 5
        return {
            'input_ids': torch.randint(0, 1000, (batch_size, seq_length)),
            'attention_mask': torch.ones(batch_size, seq_length)
        }

# Minimal model that returns the expected structure
class StandInModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding_dim = 4
    
    def forward(self, input_ids, attention_mask):
        batch_size = input_ids.shape[0]
        seq_length = input_ids.shape[1]
        # Return a tuple where first element is token embeddings
        token_embeddings = torch.randn(batch_size, seq_length, self.embedding_dim)
        return (token_embeddings,)

model = StandInModel()
tokenizer = StandInTokenizer()
sentences = ["This is a test sentence.", "Another test sentence."]

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'sentences': sentences
}
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, 4) — shape (2, 4) 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_simple_prompt_gen_template Ran
ran; our contract draft was wrong, not the code
xqlin98/apohf/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
mean_pooling Ran
ran; our contract draft was wrong, not the code
xqlin98/apohf/Induction/experiments/run_dbandits_image_gen.py
pointer only (licence: MIT); the stored copy get_code serves, from dengyang17/llm-proactive, is pointer only (licence: NONE) · get_code("77f69af078e09830")
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 dengyang17/llm-proactive, 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.

palm_generate Ran
ran on a synthesized input
xqlin98/apohf/Induction/automatic_prompt_engineer/llm.py
code served (permissive licence) · get_code("de538d6be3cf515f")
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 torch
import torch.nn as nn
from unittest.mock import AsyncMock, MagicMock
import asyncio

torch.manual_seed(0)

# Create a mock async context manager function
async def mock_palm_func(model, prompt, temperature, max_output_tokens):
    # Simulates an async context manager
    class MockResponse:
        def __init__(self):
            self.result = "Generated text output"
        
        async def __aenter__(self):
            return self.result
        
        async def __aexit__(self, exc_type, exc_val, exc_tb):
            pass
    
    return MockResponse()

# Create a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()

# Create arguments
ARGS = {
    "func": mock_palm_func,
    "model": model,
    "prompt": "What is the meaning of life?",
    "temperature": 0.7,
    "max_output_tokens": 256
}
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 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
subsample_data Ran
ran; our contract draft was wrong, not the code
xqlin98/apohf/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)
xqlin98/apohf/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)
xqlin98/apohf/Induction/experiments/evaluation/instruction_induction/exec_accuracy.py
code served (permissive licence) · get_code("9475219c55847f4d")
How it ran

no invocation recorded.

gpt_image_response Not yet run
unverified (harvested, no recorded run)
xqlin98/apohf/Induction/experiments/run_dbandits_image_gen.py
code served (permissive licence) · get_code("de7d30f80c73c723")
How it ran

no invocation recorded.

simple_config Not yet run
unverified (harvested, no recorded run)
xqlin98/apohf/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)
xqlin98/apohf/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 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 11 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 2 the same month, 11 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
mean_pooling 22 other papers
15 dated earlier, 1 the same month, 6 later · 1 only as an assembly brick
2206.04624 (2022-06)
Factuality Enhanced Language Models for Open-Ended Text Generation
2023.findings-emnlp.540 (2023 (year only))
Open-ended Commonsense Reasoning with Unrestricted Answer Scope
2302.05698 (2023-02)
Compositional Exemplars for In-context Learning
and 19 more not named here
get_query 4 other papers
2 dated earlier, 2 later
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
2025.emnlp-main.965 (2025 (year only))
ACING: Actor-Critic for Instruction Learning in Black-Box LLMs
and 1 more not named here
get_simple_prompt_gen_template 4 other papers
2 dated earlier, 2 later
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
2025.emnlp-main.965 (2025 (year only))
ACING: Actor-Critic for Instruction Learning in Black-Box LLMs
and 1 more not named here
subsample_data 4 other papers
1 dated earlier, 1 the same month, 2 later
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
2025.emnlp-main.965 (2025 (year only))
ACING: Actor-Critic for Instruction Learning in Black-Box LLMs
and 1 more not named here
update_config 3 other papers
1 dated earlier, 2 later
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2025.emnlp-main.965 (2025 (year only))
ACING: Actor-Critic for Instruction Learning in Black-Box LLMs
2510.25808 (2025-10)
PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs
create_split 2 other papers
1 dated earlier, 1 later
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2510.25808 (2025-10)
PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs
evaluate_prompts 2 other papers
1 dated earlier, 1 later
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2510.25808 (2025-10)
PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs
get_eval_method 2 other papers
1 dated earlier, 1 later
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2510.25808 (2025-10)
PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs
simple_config 2 other papers
1 dated earlier, 1 later
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2510.25808 (2025-10)
PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs
get_query 1 other paper
1 later
2510.25808 (2025-10)
PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs
get_query_for_test 1 other paper
1 later
2510.25808 (2025-10)
PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs

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 remarkable performances in various tasks. However, the performance of LLMs heavily depends on the input prompt, which has given rise to a number of recent works on prompt optimization. However, previous works often require the availability of a numeric score to assess the quality of every prompt. Unfortunately, when a human user interacts with a black-box LLM, attaining such a score is often infeasible and unreliable. Instead, it is usually significantly easier and more reliable to obtain preference feedback from a human user, i.e., showing the user the responses generated from a pair of prompts and asking the user which one is preferred. Therefore, in this paper, we study the problem of prompt optimization with human feedback (POHF), in which we aim to optimize the prompt for a black-box LLM using only human preference feedback. Drawing inspiration from dueling bandits, we design a theoretically principled strategy to select a pair of prompts to query for preference feedback in every iteration, and hence introduce our algorithm named automated POHF (APOHF). We apply our APOHF algorithm to various tasks, including optimizing user instructions, prompt optimization for text-to-image generative models, and response optimization with human feedback (i.e., further refining the response using a variant of our APOHF). The results demonstrate that our APOHF can efficiently find a good prompt using a small number of preference feedback instances. Our code can be found at \url{https://github.com/xqlin98/APOHF}.

For agents

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

get_harvested_code_for_paper("2405.17346")
get_code_for_paper("2405.17346")
have("2405.17346")

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

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

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

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

Connect an agent — have() is free.