Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
Xiaoqiang Lin, Zhaoxuan Wu, Zhongxiang Dai, Wenyang Hu, Yao Shu, See-Kiong Ng, Patrick Jaillet, Bryan Kian Hsiang Low
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs cites Large Language Models are Zero-Shot Reasoners
- PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs cites Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution
- PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs cites Large Language Models as Optimizers
- PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits cites Large Language Models are Zero-Shot Reasoners
- Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits cites Language Models are Few-Shot Learners
- Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Large Language Models are Zero-Shot Reasoners cites Language Models are Few-Shot Learners
- Large Language Models are Zero-Shot Reasoners cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution cites Large Language Models are Zero-Shot Reasoners
- Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution cites Large Language Models as Optimizers
- Large Language Models as Optimizers cites Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution
- Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution cites Language Models are Few-Shot Learners
- Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learning cites Language Models are Few-Shot Learners
- DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Large Language Models as Optimizers cites Large Language Models are Zero-Shot Reasoners
- Large Language Models as Optimizers cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Cited by top-tier papers10
- DETAIL: Task DEmonsTration Attribution for Interpretable In-context LearningZijian Zhou, Xiaoqiang Lin, Xinyi Xu, Alok Prakash et al.NeurIPS 2024 · 9 citations
- PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMsJaewon Chu, Seunghun Lee, Hyunwoo J. KimNeurIPS 2025 · 5 citations
- Efficient Multi-objective Prompt Optimization via Pure-exploration BanditsDonghao Li, Chengshuai Shi, Weijuan Ou, Cong Shen et al.ICLR 2026 · 2 citations
- ECPv2: Fast, Efficient, and Scalable Global Optimization of Lipschitz FunctionsFares Fourati, Mohamed-Slim Alouini, Vaneet AggarwalAAAI 2026 · 1 citation
- Generator-Mediated Bandits: Thompson Sampling for GenAI-Powered Adaptive InterventionsMarc Brooks, Gabriel Durham, Kihyuk Hong, Ambuj TewariNeurIPS 2025 · 1 citation
Builds on21
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo et al.NeurIPS 2022 · 8,168 citations
- Large Language Models as OptimizersChengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu et al.ICLR 2024 · 817 citations
- Promptbreeder: Self-Referential Self-Improvement via Prompt EvolutionChrisantha Fernando, Dylan Banarse, Henryk Michalewski, Simon Osindero et al.ICML 2024 · 432 citations
Related papers
- InstructZero: Efficient Instruction Optimization for Black-Box Large Language ModelsLichang Chen, Jiuhai Chen, Tom Goldstein, Heng Huang et al.ICML 2024 · 64 citations
- Learning to Instruct: Fine-Tuning a Task-Aware Instruction Optimizer for Black-Box LLMsYunzhe Qi, Jinjin Tian, Tianci Liu, Ruirui Li et al.EMNLP Findings 2025 · 1 citation
- Black-Box Prompt Optimization: Aligning Large Language Models without Model TrainingJiale Cheng, Xiao Liu, Kehan Zheng, Pei Ke et al.ACL 2024 · 17 citations
- Can Large Language Models Be Query Optimizer for Relational Databases?Jie Tan, Kangfei Zhao, Rui Li, Jeffrey Xu Yu et al.SIGMOD 2026 · 6 citations
- ACING: Actor-Critic for Instruction Learning in Black-Box LLMsSalma Kharrat, Fares Fourati, Marco CaniniEMNLP 2025 · 1 citation
