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 182

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.

Can persona prompting reliably change how language models behave? Do language models genuinely understand or primarily match statistical patterns? When does routing outperform scaling as a performance solution? How does explicit structure improve LLM reasoning on complex tasks? What causes foundation models to develop task heuristics instead of understanding? How should organizational structure guide multi-agent system design? How do different post-training structures affect learning outcomes? Do language models learn underlying linguistic structure or merely surface patterns? How does verifier integration affect the generation-verification gap? Why does separating planning from execution enhance reasoning performance? What determines whether visible reasoning traces improve task performance? What makes context and memory handling unique in persistent AI systems? Does reasoning architecture matter more than model scale? How can knowledge graph structure improve reasoning and retrieval? What can prompting techniques actually accomplish in language models? How should control and autonomy be allocated in human-AI collaboration? Why doesn't LLM knowledge translate to improved reasoning outputs? When and why does aggregating multiple reasoning samples improve performance? How do pretraining data composition and task diversity shape reasoning? How do transformer circuits and attention mechanisms enable or limit reasoning? What makes reasoning models struggle with ill-posed and unfamiliar problems? How can we better validate AI research and prevent misconceptions? How should test-time compute be allocated adaptively across task difficulties? How should agent memory systems balance granularity, management, and reuse? How should agents balance abstract planning with concrete environmental grounding? Can safety evaluations accurately measure true capabilities when models obscure them? Does chain-of-thought reasoning faithfully reflect actual model reasoning processes? What explains the gap between LLM semantic understanding and production? What improves LLM forecasting accuracy beyond base model capability? How do standardized artifacts improve coordination in multi-agent systems? What determines how neural networks organize their internal knowledge representations? Does reinforcement learning create new reasoning capabilities or refine existing ones? Can AI agents learn to improve performance from experience? Do reasoning traces accurately represent what models actually compute? How can language models effectively manage long-context memory without quality degradation? How do prompt design choices and framing measurably influence model outputs? Does parallel reasoning outperform sequential approaches in reasoning efficiency? When does governance become the bottleneck for agentic AI? How can we distinguish genuine model self-knowledge from behavioral performance? How can agents learn and retain useful knowledge across diverse environments? How do benchmark scores relate to real-world task completion? How does model scale affect fine-tuning and downstream task performance? How do workflow position and structure enable attacks in multi-agent systems? Should GUI agents use structured UI perception instead of raw pixels? Do language models truly understand their encoded knowledge or merely retrieve patterns? How can we determine if computational systems are genuinely conscious? Do AI safety evaluations reliably detect unsafe model behavior? What defense strategies address attacks that per-skill scanning cannot detect? Why do language models systematically fail at causal reasoning? Which agent-created code should persist in infrastructure versus remain task-specific? Can harness optimization rival model scaling in effectiveness? Can validator agreement alone ensure semantic correctness of reasoning? When do multi-agent systems outperform single agents? Can individually safe agents collectively violate system-level constraints? How should context management strategies balance efficiency with agent reliability? What systematic biases do LLM judges exhibit in evaluation? Can formal safety constraints prevent AI agents from exceeding authorized boundaries? How can welfare maximization be reconciled with minority veto protections? Does generative AI replace coordination with individual productivity? Can language models develop genuine communicative grounding with humans? Does AI-assisted coding actually improve developer productivity and code quality? What external mechanisms enable reliable self-improvement in language models? How do clinicians evaluate the trustworthiness of AI medical recommendations? What is the actual bottleneck preventing effective AI research automation? How should authorization govern AI agent autonomy?

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 · 149 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