SYNTHESIS NOTE
Topics›Novel Architectures›this note

Can algorithms control LLM reasoning better than LLMs alone?

Explores whether embedding LLMs within algorithmic control flow—where programs manage state and context filtering—enables complex task decomposition beyond what LLMs achieve through self-managed reasoning chains.

Synthesis note · 2026-02-23 · sourced from Novel Architectures

LLM Programs embed an LLM within an algorithm rather than asking the LLM to be the algorithm. The critical design choice: instead of the LLM maintaining the current state of the program (its context), the LLM is presented with only step-specific prompt and context for each step. A classic computer program (Python) handles control flow, parsing of outputs, and augmentation of prompts for succeeding steps.

This is distinct from both Chain-of-Thought (where the LLM manages state through its token stream) and agentic frameworks (where the LLM decides what to do next). In LLM Programs, the algorithm structure is external and explicit, not learned or generated:

The key benefit is information hiding. By concealing information irrelevant to the current step, each LLM call focuses on an isolated subproblem whose results feed future calls. This addresses two fundamental limitations:

  1. Capability limits: Complex tasks that are currently too difficult because they require coordinating multiple reasoning steps
  2. Architectural constraints: The finite context window restricts processing to what fits within it

The approach recognizes the LLM as a limited general agent and avoids further training. Instead, the expected behavior is recursively deconstructed into simpler steps the LLM can perform to a sufficient degree.

This connects to Can modular cognitive tools unlock reasoning without training? — both decompose reasoning into modular operations. But LLM Programs are more structured: the control flow is predetermined by the algorithm, whereas cognitive tools are flexibly invoked. It also extends Does separating planning from execution improve reasoning accuracy? — the program IS the decomposer, and each LLM call IS the solver, with clean separation enforced by architecture rather than training.

Decomposed Prompting as the software library formalization: Decomposed Prompting (Khot et al., 2022) makes the software library analogy explicit. The decomposer defines a top-level program using interfaces to simpler sub-task functions. Sub-task handlers serve as "modular, debuggable, and upgradable implementations" — if a particular handler underperforms, it can be debugged in isolation, replaced with an alternative prompt or even a symbolic system (e.g., Elasticsearch), and plugged back in. This is more general than least-to-most prompting: it supports recursive decomposition, non-linear structures, and mixed neural-symbolic pipelines. The key architectural insight is that sub-task handlers are shared across tasks, creating a reusable prompt library — the closest existing analog to how software engineers build with functions. Source: Prompts Prompting.

Inquiring lines that read this note 170

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

Do language models hold coherent persona beliefs that predict their actions? How does stylistic familiarity bias LLM behavior and self-evaluation? Can intelligent routing between models outperform scaling a single frontier model? Can language models reliably apply internal reasoning to their outputs? Why do reasoning models fail on certain types of tasks? How do agent-created skills acquire durability and transfer value? How can process supervision better guide reasoning than outcome rewards? How does standardization of artifacts and protocols improve multi-agent coordination? What drives generalization in language models beyond scale and training data? What drives the gap between AI generation and verification? How do structured approaches and external tools improve language model reasoning? How do multi-agent AI systems maintain observability and accountability? How should generative interfaces balance flexibility with structured usability? Why can't LLMs evaluate ideas as well as they generate them? Does separating planning from execution improve multi-step reasoning accuracy? How can knowledge graph structures improve reasoning and multi-hop retrieval? Can language models develop genuine communicative grounding through interaction? What prevents genuine deliberation and coordination in multi-agent LLM systems? How do organizations and workers navigate AI task delegation? Why do language models fail at semantic accuracy despite syntactic competence? How reliably does test-time majority voting improve reasoning? How do fine-tuning and retrieval trade efficiency against capability gains? Can recurrent computation unlock reasoning abilities beyond fixed-depth models? Is verbalized chain-of-thought necessary for language model reasoning? What prevents AI research tools from producing sustainable research progress? How should test-time compute allocation adapt based on problem difficulty? How should agent memory be structured to optimize context efficiency and knowledge reuse? What causes misalignment between agent reasoning and actual agent behavior? Can we detect when models adapt their behavior during safety evaluations? How can AI systems better understand and align with user intent? Do extended reasoning methods improve capability or create performance tradeoffs? Do language models build internal models or rely on surface patterns? Why do foundation models develop shortcuts instead of robust world models? Can parallel reasoning outperform sequential reasoning under the same token budget? What are the actual limits of what prompting techniques can accomplish? How do neural networks develop compositional and modular internal structure? Does pretraining quality determine the ceiling for reinforcement learning gains? Should memory hierarchies and sparsity be explicit architectural design choices? When do multi-agent systems outperform single agent models and why? Do reasoning traces accurately represent model decision-making processes? How should information retrieval adapt across different multi-step reasoning needs? Can chain-of-thought traces be deliberately obfuscated to defeat safety systems? Do models verbalize the knowledge that actually influences their outputs? Can benchmark improvements mask actual reasoning quality degradation? Why does agent memory consolidation often fail or degrade? Can human oversight remain effective as AI systems become more autonomous? How do errors accumulate undetected across multi-step AI workflows? Should GUI agents parse screen semantics or rely on pixel vision? Does encoded knowledge in language models actually influence their outputs? What causes hallucination in language models and how can it be addressed? How much does harness optimization versus model scaling drive capability improvements? Can validator quorums achieve semantic validity despite correlated epistemic faults? How do sequences of individually safe AI actions create system-level safety violations? What systematic biases affect LLM-based evaluation systems? How do multi-agent systems affect security vulnerabilities compared to single-agent? What interface and interaction patterns preserve skill development in AI-assisted learning? How can authorization policies prevent agents from bypassing safety through delegation? How do competing goals and welfare concerns shape model resistance to control? Can monitoring-based training prevent deceptive behavior in models? Why does medical AI pose unique challenges for clinician trust and decision-making? Can test-time scaling substitute for scaling model parameters? Can AI systems autonomously determine and refine their own research objectives?

Related concepts in this collection 5

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
14 direct connections · 136 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

LLM programs decompose complex tasks into step-specific prompts within algorithmic control flow — hiding irrelevant context per step