SYNTHESIS NOTE
TopicsNovel Architecturesthis 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 130

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 can LLM user simulators model realistic goal-driven conversation? How faithfully do LLMs reflect their actual reasoning in outputs and explanations? Can model routing outperform monolithic scaling as an efficiency strategy? How effectively do deterministic tools improve language model reasoning on formal tasks? What memory abstraction level best enables agent knowledge reuse? Can self-supervised signals enable process supervision without human annotation? What drives capability and cost efficiency in agent systems? Why does verification consistently lag behind AI generation? How should we design LLM systems to maintain alignment and control? What causes silent corruption to amplify through delegated workflows? Why do reasoning models fail at systematic problem-solving and search? How do we evaluate AI systems when user perception misleads actual performance? How does reasoning graph topology affect breakthrough insights and generalization? How do neural networks separate factual knowledge from reasoning abilities? Does decoupling planning from execution improve multi-step reasoning accuracy? How do knowledge graphs enable efficient multi-hop reasoning over alternatives? Can prompting strategies overcome LLM biases without model fine-tuning? What coordination failures limit multi-agent LLM systems as they scale? When should tasks involve human-AI partnership versus full automation? What critical LLM failures do standard benchmarks hide? Do language models perform faithful symbolic reasoning independent of semantic grounding? How do prompt structure and constraints affect model instruction reliability? How does test-time aggregation affect reasoning correctness and reliability? How do multi-agent systems achieve genuine cooperation and reasoning? Does fine-tuning modify underlying model capabilities or only behavioral outputs? Does recurrence enable reasoning capabilities that fixed-depth transformers cannot achieve? How do language models inherit human biases from training data? What capability tradeoffs emerge when scaling model reasoning abilities? How should iterative research systems allocate reasoning per search step? Which computational strategies best support reasoning in language models? How should conversational agents balance goal-driven initiative with user control? What determines success in training models on multiple tasks? How do LLMs distinguish causal reasoning from temporal and semantic associations? What pretraining choices and baseline capability constrain reinforcement learning gains? How do standardized protocols improve coordination in multi-agent systems? What memory architectures best support persistent reasoning across extended interactions? Can prompting inject entirely new knowledge into language models? How should retrieval systems optimize for multi-step reasoning during inference? What actually drives chain-of-thought reasoning improvements in language models? How should agents balance memory condensation to optimize context efficiency? Why do benchmark improvements fail to reflect actual reasoning quality? Do reasoning traces faithfully represent or merely mimic actual model reasoning? How should human oversight be integrated with autonomous AI systems? When do multi-agent approaches outperform single model extended thinking? Should GUI agents use structured representations instead of raw pixels? What role does compression play in language model capability and generalization? Do language models learn genuine linguistic structure or just surface patterns? Is embodied interaction necessary for language meaning and genuine agency? Does externalizing cognitive work and state improve agent reliability? How can AI agents autonomously learn and transfer skills across tasks?

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