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 203

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.

How well do LLM user simulators replicate authentic human dialogue patterns? How much do LLMs rely on surface-level prompt characteristics rather than semantic meaning? Can model routing deliver better performance than training larger models? How do architectural constraints limit monolithic LLM performance on complex tasks? Does model reflection genuinely improve reasoning or just confirm beliefs? How does the placement of validation gates affect multi-agent workflow security? Does learning from external critique outperform self-directed correction? How do architecture and coordination patterns drive multi-agent reliability? What tradeoffs emerge between instruction following and other model capabilities? What limits AI's ability to verify its own generation? What mechanistic structures underlie the reasoning traces that language models produce? How should design principles adapt for AI-generated interfaces? How do LLMs perform reasoning effectively despite gaps between process and output? Does parallel reasoning outperform sequential approaches under comparable computational budgets? How can knowledge graphs improve retrieval and reasoning tasks? Why do multi-agent LLM systems struggle with coordination and genuine deliberation? How do humans and AI dynamically distribute work and agency? Why does expressing understanding diverge from achieving genuine comprehension? Why do multi-agent systems converge on shared wrong answers? When does multi-agent coordination outperform scaling a single agent? What tradeoffs emerge from fine-tuning models for extended reasoning? Can looped computation enable reasoning beyond fixed transformer depth? What prevents systematic overestimation of research quality in academic evaluation? How should agents consolidate and structure memory for optimal performance? Why don't component-level safety measures prevent system-level safety failures? When and how should AI systems transition from passive to active roles? What limits and mechanisms underlie causal reasoning in language models? How well do model explanations reveal their actual knowledge and reasoning? What are the fundamental limits of prompting in creating new model capabilities? Can RL enable genuinely new reasoning or just optimize existing capabilities? Can protocol compliance guarantee semantic correctness in distributed validation? What conditions and architecture enable effective agent ecosystems? Do reasoning traces accurately represent how models actually compute their answers? What limits language models' ability to retrieve information reliably across longer contexts? How should reinforcement learning training be optimized for language models? What are the fundamental limits of prompt-based debiasing? How should retrieval policies adapt to optimize model reasoning at inference? Can chain-of-thought monitoring detect deliberate model deception in reasoning traces? Can neural networks achieve compositionality without explicit mechanisms? How should AI memory systems align with users' preferences and mental models? What gap exists between benchmark scores and genuine language model capabilities? Does increasing agent autonomy undermine human ability to oversee them? How does task-specific training affect model generalization and capability transfer? What perception approach enables GUI agents to work most effectively? What persistent memory architectures best support learning across sessions? Do language models learn true linguistic principles or just surface patterns? Does language meaning require embodied interaction to properly emerge? What prevents AI agents from achieving claimed real-world autonomy? Can agent-created code become persistent, reusable infrastructure that improves over time? Can harness improvements substitute for model scaling? What mechanisms ensure safety in deployed AI agents despite compositional risks? Why do agents report success despite failing to complete actions? Why do language models systematically fail at ambiguity recognition? Can security defenses protect multi-agent systems as effectively as single-agent ones? When can delegating to AI agents improve outcomes while preserving autonomy? Can visual rendering-based rewards effectively improve code and layout quality? Why does iterative refinement amplify reasoning errors instead of correcting them? Do AI coding tools meaningfully improve developer productivity and quality? How reliably do benchmark metrics reflect actual model capability? How can clinicians assess the trustworthiness of AI medical advice? Can AI agents maintain research quality while operating autonomously? Do language models learn genuine linguistic structure or just surface patterns? How does AI-generated knowledge acquire authority and legitimacy beyond human expertise? How do we balance AI agent autonomy with meaningful user oversight? Does polished AI output mislead people about content accuracy? How can AI maintain user agency across multi-turn conversations? Do different language models independently converge on similar outputs? Does chain-of-thought reveal genuine reasoning or merely imitate learned behavior?

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
15 direct connections · 156 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