Manuscript Offprint

arXiv:2610.25963

ABACUS: Program-Guided Multistep Reasoning over Frozen Judgment Models

Yuhao Wang, Zelin Zang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Judgment models answer semantic questions by scoring a finite set of candidate outcomes. Can reusable programs turn these local decisions into powerful multistep reasoning? We introduce ABACUS, a framework that jointly constructs judgment schemas and composition programs for frozen judgment models. A generative teacher designs the procedure offline; the judgment model resolves local semantic questions online, and the saved program composes its decisions into an answer. We study three allocations of design effort between humans and the teacher, focusing on construction through a shared interface. We instantiate the framework with Kev. On three selected BIG-Bench Hard tasks, nine independently constructed programs solve all 450 executions of 150 development inputs. A separate deployment study freezes three programs after development-set reference-agreement refinement and evaluates them on 600 held-out questions. These programs achieve near-perfect 99.67% macro accuracy, versus 64.00% for direct Kev and 68.80% for final-answer-only Qwen3.5-4B. They attain comparable observed accuracy to Qwen's unrestricted response policy (99.07%) with an 8.43-fold online speedup: 0.255 versus 2.150 seconds per question. These results show how reusable programs can substantially expand the reasoning capability of a compact judgment model while keeping its parameters fixed.

1. Introduction

Judgment models score finite candidate outcomes given evidence and a question. Their local decisions provide useful building blocks for reasoning: recognizing movements, identifying claims about truthfulness, or distinguishing observations from temporal boundaries. Complete solutions additionally require accumulating movements, propagating truth values, or combining interval constraints. These computations often share a reusable structure across instances.

This motivates a general research question: can offline program construction equip frozen judgment models with strong multistep reasoning? Keeping the judgment model fixed places the design effort in the reasoning procedure: which local questions to ask, what their answers represent, and how to compose those answers. A useful procedure connects the model’s semantic decisions to the state updates and constraints required by the task.

We introduce ABACUS, a framework for program-guided multistep reasoning over frozen judgment models. A generative teacher jointly designs reusable judgment schemas and a task-level composition program offline. For each new input, the judgment model scores the declared local outcomes, and the saved program computes the answer. The same procedure is reused with fixed model parameters.

The central design problem is to find an intermediate representation that the model can recognize and the program can use. In navigation, distinguishing turns from steps enables position and heading updates. In a truth chain, identifying the form of each claim enables Boolean propagation. Joint construction lets the teacher design this semantic vocabulary together with the computation that consumes it.

We instantiate ABACUS with Kev, which returns probabilities over declared outcomes for typed questions (Palmer, 2026), and GLM as the offline teacher. To our knowledge, ABACUS is the first framework to jointly construct reusable finite judgment schemas and composition programs specifically for Kev.

We study three allocations of procedure design. In human-designed workflows, a designer specifies the local questions, state, and update rules. In task-specific interfaces, humans expose domain objects such as people, tasks, and pairs; the teacher designs semantic judgments and a scoring program. With a shared interface, humans provide common constructors and execution constraints; the teacher selects the units, designs the judgments, and writes the solver. Each allocation makes the human–teacher division

1^{1}Westlake University 2^{2}Hong Kong Institute of Science & Innovation, CAS 3^{3}Tsientang Institute for Advanced Study. Correspondence to: Zelin Zang zangzelin@westlake.edu.cn.

Preprint. October 18, 2026.

(a) Build once: jointly design judgments and computation

Task brief

Task description

4 solved examples

Shared interface

Figure

generate

GLM teacher

Reusable task artifact

FROZEN

Judgment schemas

Unit: sentence

forward

right turn

...</> Composition program

Local decisions

update state → answer

✓ Admission checks

(b) Reuse: local judgments become a multistep solution

New problem

Return to the start?

Yes / No

1 Take 2 steps.

2 Turn right.

3 Take 3 steps.

4 Turn right.

5 Take 2 steps.

6 Turn right.

7 Take 3 steps.

Kev 4B

Which action is stated?

Score options → argmax

forward

right turn

forward

right turn

forward

forward

Distances: 2, 3, 2, 3

</> Execute the saved program

State transitions

State: (x, y, facing)

Read Kev's action label

Read the distance

Update position and heading

Check return to start

Figure

✓ YES Final state (0, 0, W)

(3, 0)

Figure 1. ABACUS composes local judgments into reusable multistep reasoning. (a) For each task, a teacher jointly designs judgment schemas and a composition program from a task description, four solved examples, and a shared interface. Admission selects a complete proposal. (b) A new navigation instance is decomposed into local action judgments; the saved program combines them with distances to update position and heading. The colored steps trace a return to the origin. The same schemas and update rules are reused for subsequent instances. Construction is offline. The judgment model is frozen throughout; this implementation uses Kev.

of procedure design explicit. We evaluate each with frozen Kev on its corresponding tasks.

Our main construction procedure generates complete joint proposals from a task description, four solved examples, and the shared interface. Each proposal uses the same task specification; the first passing structural, read-sensitivity, and solved-example checks becomes the reusable artifact.

The shared-interface stage is our main empirical focus, with separate construction and deployment studies. The construction study evaluates three independently generated programs per task on the selected web-of-lies, navigation, and temporal-sequence tasks. All nine are admitted, with 100% accuracy over 450 executions of 150 development inputs. The deployment study uses three separately frozen programs selected with a reference-agreement refinement step and evaluates them on 600 held-out inputs. With the same online Kev model, ABACUS raises macro accuracy from 64.00% to 99.67%. It also achieves comparable observed accuracy to Qwen3.5-4B's unrestricted response policy at substantially lower online latency: 0.255 versus 2.150 seconds per question.

Our contributions are:

• Program-guided reasoning over frozen judgment models. ABACUS combines finite-candidate semantic decisions with reusable computation, separating offline procedure design from online reasoning.

• Joint design of judgments and computation. A shared interface lets the teacher construct both the intermediate semantic vocabulary and its composition program, with explicit checks for admission and reuse.

• Strong reasoning with a compact, fixed model. Our Kev implementation connects three allocations of procedure design to their evaluations, culminating in near-perfect held-out accuracy and a strong accuracy-latency tradeoff against direct Kev and seven Qwen3.5-4B answer budgets.

References (46)