Skip to main content
QUICK REVIEW

[Paper Review] Beyond Test-Time Training: Learning to Reason via Hardware-Efficient Optimal Control

Peihao Wang, Shan Yang|arXiv (Cornell University)|Mar 10, 2026
Reinforcement Learning in RoboticsComputer Science0 citations
TL;DR

The paper embeds an optimal-control TTC layer into pretrained LLMs to enable test-time planning via a hardware-efficient LQR solver, improving reasoning on math and symbolic tasks.

ABSTRACT

Associative memory has long underpinned the design of sequential models. Beyond recall, humans reason by projecting future states and selecting goal-directed actions, a capability that modern language models increasingly require but do not natively encode. While prior work uses reinforcement learning or test-time training, planning remains external to the model architecture. We formulate reasoning as optimal control and introduce the Test-Time Control (TTC) layer, which performs finite-horizon LQR planning over latent states at inference time, represents a value function within neural architectures, and leverages it as the nested objective to enable planning before prediction. To ensure scalability, we derive a hardware-efficient LQR solver based on a symplectic formulation and implement it as a fused CUDA kernel, enabling parallel execution with minimal overhead. Integrated as an adapter into pretrained LLMs, TTC layers improve mathematical reasoning performance by up to +27.8% on MATH-500 and 2-3x Pass@8 improvements on AMC and AIME, demonstrating that embedding optimal control as an architectural component provides an effective and scalable mechanism for reasoning beyond test-time training.

Motivation & Objective

  • Motivate reasoning beyond memory-based prediction by integrating planning into the model architecture.
  • Introduce a Test-Time Control (TTC) layer that performs finite-horizon LQR planning over latent states during inference.
  • Develop a differentiable TTC framework enabling end-to-end learning and gradient propagation through the control layer.
  • Design a hardware-efficient symplectic LQR solver fused into CUDA for high-throughput planning at inference.
  • Demonstrate gains when TTC layers are integrated as adapters into pretrained LLMs on challenging reasoning benchmarks.

Proposed method

  • Formulate reasoning as an optimal-control problem using a receding-horizon LQR with linear dynamics and quadratic costs.
  • Define TTC(h0, A_t,B_t,Q_t,R_t) to map context latent state to the first-step optimal control action.
  • Derive a differentiable KKT-based formulation to backpropagate through the TTC layer (inner LQR and outer world-modeling updates).
  • Develop a hardware-efficient symplectic iteration solver that replaces sequential Riccati solves with parallel matrix products and a single dense inversion.
  • Parameterize A_t and R_t as diagonal to enable constant-time inversions and fuse symplectic iterations into CUDA kernels for throughput.
  • Show TTC as an adapter that interleaves with memory-based modules to form the TTC-Net architecture.

Experimental results

Research questions

  • RQ1Can reasoning be achieved by internalizing planning as an optimal control problem within language models?
  • RQ2How can a test-time control layer be differentiable and trainable end-to-end within large language models?
  • RQ3What hardware-algorithm co-design strategies enable scalable, low-overhead planning at inference time?
  • RQ4Do TTC-enhanced models outperform memory-only architectures on mathematical and symbolic reasoning benchmarks?

Key findings

  • TTC layers improve mathematical reasoning performance by up to 27.8% on MATH-500.
  • TTC integrated with pretrained LLMs achieves 2–3× Pass@8 improvements on AMC and AIME.
  • A symplectic LQR solver enables parallelizable, hardware-efficient planning with minimal overhead.
  • TTC-Net consistently outperforms memory-based models on challenging reasoning tasks.
  • Structured diagonal parameterization and fused CUDA kernels yield high throughput for planning at inference and training.
  • The approach provides a unified view where training and reasoning are integrated via a hardware-efficient optimal-control layer.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.