Test-Time Symmetrization: Scaling Laws for Model-Agnostic Learning under Structure
Behrooz Tahmasebi, Melanie Weber
Abstract
Test-time compute has emerged as a powerful way to improve the accuracy of language models at inference time, with scaling laws quantifying how accuracy improves with additional forward passes. Existing scaling laws, however, focus on repeated sampling from a fixed prompt, even though many tasks admit multiple equivalent representations of the same underlying problem. A graph does not depend on how its nodes are numbered, and a program does not depend on the names of its variables, yet language models can change their answers under such rewritings. In this paper, we study test-time symmetrization, which uses forward passes on rewritings of the input and aggregates the resulting answers over the group G of rewritings. We prove that no amount of sampling and repeated decoding from a single representation can replace rewriting, while only O( |G|) random rewritings suffice to recover the information provided by all |G| rewritings. The same set of O( |G|) rewritings provides simultaneous approximation across models, decoding rules, and sampled reasoning traces, and the logarithmic scaling is optimal in general. We validate the theory with experiments on Qwen2.5-7B, Phi-4-mini, Llama-3.1-8B, and Qwen2.5-14B, with chain-of-thought reasoning, on graph reasoning, logical deduction, and multiple-choice question answering. At the same number of forward passes, spending them on rewritings of the input is substantially more accurate than spending them on repeated sampling from the original prompt whenever the model's answer depends on how the input is written, and the number of rewritings needed grows only logarithmically with the number of possible rewritings, as the theory predicts. Our results provide a principled way to enforce symmetries at inference time when they cannot be built into the model, which we call model-agnostic symmetrization.
Create a lesson
Related papers
Diagnosis is not a policy: a state-transition audit of caoability-conditioned test-time inference
Shared title terminology · Yuchong Hu, Zhao Zhang, Kainan Liu et al.
Keystone: Judging Previews at Key Steps for Test-Time Search in Diffusion Models
Shared title terminology · Jiajun Fan, Chaoran Cheng, Ziwen Wang et al.
A Verifier from the Past: Test-Time Compute for Time Series Foundation Models
Shared title terminology · Arjun Choudhry, Aditya Narayanan, Raghav Mallampalli et al.
Spatiotemporal Graph Neural Networks for Fault Detection and Structural Learning in Chemical Processes: Use Case on the Tennessee Eastman Process
Shared title terminology · Rayane Ammar Khodja, Alexandre Voisin, Victor Costa et al.
Trained on Harm, Still Refusing: A Training-Time Defense for Code Generation
Shared title terminology · Miaoqing Tian, Ruohan Li, Qian Lu et al.
Efficient Natural Language to Temporal Logic Translation for Real-Time Physical AI
Shared title terminology · Oliver Schön, Adrien Banse, John Lygeros et al.