acceptodds
Under review as a conference paper at ICLR 2027

QUILL: In-Weight Computation with MLPs

Abstract

Language models continue to improve across mathematics, programming, and long-context reasoning tasks. Nevertheless, elementary arithmetic remains unreliable. Existing remedies use additional reasoning tokens or dedicated numerical executors. We instead study : encoding numerical functions directly in ordinary MLP weights for forward-pass execution, with intermediate values retained as neural activations. We introduce , which constructs single-hidden-layer MLP approximations using quasi-interpolation theory. For univariate analytic functions, QUILL achieves geometric error decay to a finite-precision floor, with width and working precision for target error . The construction also reveals conditions under which gradient descent is slow to acquire the hidden-layer scales supporting high precision. We extend QUILL to multivariate polynomial programs by composing square modules into multipliers. For bounded computations in the realizable precision regime, the resulting QUILL circuits attain output error with nonlinear neurons per multiplication, where \(\kappa\) bounds the amplification of local approximation errors. Tested polynomial programs, including dot products and determinants, achieve sampled relative errors below in FP64. Additional primitives support non-polynomial functions, fixed-step numerical algorithms, and bounded discrete programs. As a proof of concept, we install a width-80 QUILL squaring module in three frozen language models. With engineered routing and input/output handling, the installed pathway returns correct answers in all evaluations across three-, five-, and seven-digit inputs.

open until 14 Dec 2026

est. 32% chance this paper gets accepted at ICLR 2027.

Reject 68%Accept 32%

What do you think this paper will get?

All positions stay anonymous.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.