The Best Reasoning Prompt Is the One the Model Writes for Itself
Chain-of-thought is a fixed recipe: tell the model to think step by step, and it does. It works, but it is one recipe for every problem. Some problems need decomposition. Some need critical thinking. Some need working backwards and checking. A fixed prompt cannot know which one fits.
Self-Discover lets the model pick its own reasoning structure. It works in three stages. First, SELECT. The model looks at the task and picks from a set of atomic reasoning modules, things like critical thinking, step-by-step thinking, decomposition, and checking. Second, ADAPT. It rewrites the chosen modules into a reasoning structure fitted to this specific task. Third, IMPLEMENT. It follows that structure during decoding, instead of following a generic prompt.
The results are strong. Self-Discover improves GPT-4 and PaLM 2 performance on challenging reasoning benchmarks, BigBench-Hard, grounded agent reasoning, and MATH, by as much as 32 percent compared to chain-of-thought. It also outperforms CoT-Self-Consistency, the method that samples many reasoning chains and takes a majority vote, by more than 20 percent, while requiring 10 to 40 times fewer inference compute. Sampling many chains is expensive. Composing one good structure is cheap.
The cost difference is the part that matters in production. CoT-Self-Consistency typically samples dozens of chains for one problem and then votes. That is dozens of model calls per question. Self-Discover runs the discovery step once, composes a single structure, and follows it. The paper reports 10 to 40 times fewer inference compute for better results. When you are serving thousands of questions, that gap is the difference between affordable and impossible.
The structures also transfer. A reasoning structure discovered with PaLM 2-L works on GPT-4. One discovered with GPT-4 works on Llama 2. The structure is about the task, not the model. That is the part that surprised me most. It means the reasoning pattern is a property of the problem, and any capable model can use it once it is written down.
Why does this matter? Prompting is moving from hand-written recipes to model-composed ones. The old way was a human writing the perfect prompt for each task type. The new way is the model reasoning about how to reason, then doing it. The human still sets the goal. The model picks the path.
The practical takeaway is simple. Stop hand-crafting one chain-of-thought prompt per task. Give the model a menu of reasoning moves, let it select and adapt them for the task in front of it, and measure the result. The structure it composes will usually beat the one you wrote by hand, and it will cost far less than sampling forty chains and voting. The next time a prompt underperforms, do not rewrite the prompt. Ask the model to rewrite its own reasoning first.
Why does this matter? Prompting is moving from hand-written recipes to model-composed ones. The old way was a human writing the perfect prompt for each task type. The new way is the model reasoning about how to reason, then doing it. The human still sets the goal. The model picks the path.
The practical takeaway is simple. Stop hand-crafting one chain-of-thought prompt per task. Give the model a menu of reasoning moves, let it select and adapt them for the task in front of it, and measure the result. The structure it composes will usually beat the one you wrote by hand, and it will cost far less than sampling forty chains and voting.
Self-Discover improvement over baselinesData from the sources listed below.
Try this
Clone the official implementation and read how the select-adapt-implement loop is coded.
bashgit clone https://github.com/kailashsp/SELF-DISCOVER
Then try the core idea yourself with any LLM API. Give the model a menu of reasoning moves and let it pick.
pythonimport os from openai import OpenAI client = OpenAI(api_key=os.environ['OPENAI_API_KEY']) modules = ['step-by-step thinking', 'decomposition', 'critical thinking', 'working backwards', 'checking'] resp = client.chat.completions.create( model='gpt-4o-mini', messages=[{'role': 'user', 'content': f'Pick the 3 reasoning modules from this list that best fit this problem, and say why: {modules}. Problem: A train leaves at 3pm travelling 60mph. When does it arrive 180 miles away?'}], ) print(resp.choices[0].message.content)
