Why it matters

PoT solves math + logic reliably. Understanding shapes tool-augmented reasoning.

Advertisement

The architecture

LLM generates Python/Java code.

Execute in sandbox.

Return result.

Program of ThoughtProbleminputGenerate codePython / JavaExecute + returnsandboxReliable arithmetic; combines with CoT + PAL variants
PoT.
Advertisement

How it works end to end

Sandbox: gVisor / Firecracker / subprocess.

Structured output for code.

Handle exceptions.