Papers › Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with...

Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers

2 Oct 2023arXiv:2310.02905archive 2025-07-28

Xiaoqiang Lin, Zhaoxuan Wu, Zhongxiang Dai, Wenyang Hu, Yao Shu, See-Kiong Ng, Patrick Jaillet, Bryan Kian Hsiang Low

Large language models (LLMs) have shown remarkable instruction-following capabilities and achieved impressive performances in various applications. However, the performances of LLMs depend heavily on the instructions given to them, which are typically manually tuned with substantial human efforts. Recent work has used the query-efficient Bayesian optimization (BO) algorithm to automatically optimize the instructions given to black-box LLMs. However, BO usually falls short when optimizing highly sophisticated (e.g., high-dimensional) objective functions, such as the functions mapping an instruction to the performance of an LLM. This is mainly due to the limited expressive power of the Gaussian process (GP) which is used by BO as a surrogate to model the objective function. Meanwhile, it has been repeatedly shown that neural networks (NNs), especially pre-trained transformers, possess strong expressive power and can model highly complex functions. So, we adopt a neural bandit algorithm which replaces the GP in BO by an NN surrogate to optimize instructions for black-box LLMs. More importantly, the neural bandit algorithm allows us to naturally couple the NN surrogate with the hidden representation learned by a pre-trained transformer (i.e., an open-source LLM), which significantly boosts its performance. These motivate us to propose our INSTruction optimization usIng Neural bandits Coupled with Transformers (INSTINCT) algorithm. We perform instruction optimization for ChatGPT and use extensive experiments to show that INSTINCT consistently outperforms baselines in different tasks, e.g., various instruction induction tasks and the task of improving zero-shot chain-of-thought instructions. Our code is available at https://github.com/xqlin98/INSTINCT.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.02905")

Code

Syntology Ran 4 of 11 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

xqlin98/INSTINCT officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 4 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
2ran
7unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from xqlin98/INSTINCT. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dispatch_openai_requests xqlin98/INSTINCT/COT/automatic_prompt_engineer/llm.py official repository ran MIT (permissive) · dab4b7dd14eef40b · report
get_query xqlin98/INSTINCT/COT/automatic_prompt_engineer/generate.py official repository ran · our draft was wrong MIT (permissive) · 71e7c70faf29eeee · report
get_simple_prompt_gen_template xqlin98/INSTINCT/COT/automatic_prompt_engineer/ape.py official repository ran · our draft was wrong MIT (permissive) · 7f64a5a312597651 · report
gpt_get_estimated_cost xqlin98/INSTINCT/COT/automatic_prompt_engineer/llm.py official repository ran MIT (permissive) · 3d25c1239ecb50e8 · report
create_split xqlin98/INSTINCT/COT/automatic_prompt_engineer/data.py official repository unverified MIT (permissive) · 45e36251f3ce30f3 · report
evaluate_prompts xqlin98/INSTINCT/COT/automatic_prompt_engineer/evaluate.py official repository unverified MIT (permissive) · 9482586da5ffae93 · report
get_eval_method xqlin98/INSTINCT/COT/automatic_prompt_engineer/evaluate.py official repository unverified MIT (permissive) · 0c411a4f76c7ad8a · report
model_from_config xqlin98/INSTINCT/COT/automatic_prompt_engineer/llm.py official repository unverified MIT (permissive) · 063f5bb187bba523 · report
simple_config xqlin98/INSTINCT/COT/automatic_prompt_engineer/config.py official repository unverified MIT (permissive) · c974b8fb4e952424 · report
subsample_data xqlin98/INSTINCT/COT/automatic_prompt_engineer/data.py official repository unverified MIT (permissive) · 01ed101f1dc9de50 · report
update_config xqlin98/INSTINCT/COT/automatic_prompt_engineer/config.py official repository unverified MIT (permissive) · cef07a073378dd0c · report

Tasks

Bayesian OptimizationInstruction Following

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Gaussian Process

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections