atlas

Research map / Large language models / Reasoning and chain of thought

Intention Chain-of-Thought Prompting with Dynamic Routing for Code Generation

AAAI 2026 · Large language models › Reasoning and chain of thought · approach: Chain-of-thought training and analysis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RoutingGen, a difficulty-aware router that sends simple coding problems to few-shot prompting and complex ones to Intention Chain-of-Thought (ICoT), cutting token usage while matching or beating CoT baselines across three LLMs and six code benchmarks.

Problem

Uniform application of chain-of-thought prompting to code generation induces overthinking on simple tasks and lacks explicit modeling of task intention (algorithmic logic and efficiency), while costing many tokens.

Approach

A classifier (Qwen3-8B) routes each problem as Simple or Complex; Simple uses few-shot prompting, Complex uses ICoT, a two-stage process generating a Specification and an Idea (core algorithm and time complexity) before greedy code generation.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval MBPP-sanitized HumanEval-ET MBPP-ET OpenEval McEval

Benchmarks: HumanEval HumanEval-ET MBPP-sanitized MBPP-ET OpenEval McEval HumanEval-X (C++) LiveCodeBench

Metrics: Pass@1 total token usage

Baselines: zero-shot few-shot Self-CoT ZS-CoT Self-planning SCoT

Builds on: chain-of-thought prompting self-consistency self-planning SCoT Auto-CoT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy