arXiv:2611.02461cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02461

Training Autoregressive Language Models on Rounded, Bounded, and Censored Numerical Labels via Exact Likelihood

Jingquan Yan, Yuwei Miao, Junzhou Huang

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

Abstract

Numerical labels often specify a set of possible values: a measurement is rounded, a laboratory test reports only a bound, or a program is stopped at a timeout. We introduce boundary marginalization, the first method that trains an autoregressive language model on the exact likelihood of such observations through its existing digit tokens. A fixed-width, order-preserving numeral representation groups consecutive grid values under shared digit prefixes. An interval is a union of such groups, so its exact probability and gradient follow from at most two boundary paths, the successive digit prefixes of its endpoints, each of length logarithmic in the number of grid values. The resulting objective unifies precise, rounded, bounded, and censored supervision and trains digit decisions at the resolution supplied by each observation. The same computation supports exact distributional queries and unbiased gradients for the continuous ranked probability score on exact labels. Experiments show recovery of a conditional distribution from rounded and censored reports alone, improved likelihood on naturally censored molecular measurements, and more accurate code latency distributions on two backbones. Exact interval updates remain tractable as the numerical support grows to one million values.

1 Introduction

Numerical observations often report a set of compatible values, which we call a numerical event. A measurement rounded to one decimal place and reported as 1.2 represents the interval [1.15, 1.25). A drug-safety test may report only that a compound's half-maximal inhibitory concentration (IC50), the concentration at which it inhibits its target by 50%, exceeds the highest concentration tested. A program unfinished at a timeout cc has a completion time greater than cc. A report that provides only a bound is a censored observation.

Such reports are common and informative. In the cardiac-safety measurements we study, about a third of the labels are bounds (Section 6), and Svensson et al. report that a third or more of the labels are censored in several drug-discovery datasets [20]. Cross-entropy training requires a target numeral, so standard practice either discards these reports or replaces each one with a representative numeral, which the model then learns to reproduce. Training on the total probability of the compatible values uses each report exactly as observed.

Autoregressive language models (LMs) already define probability distributions over numerical values through their digit tokens. LLMTime interprets digit sequences as a hierarchical numerical distribution, and decoding-based regression develops numerical decoder representations and likelihood training [9, 18]. The probability of an individual numeral is directly available, but a reported interval can contain thousands of numerals. How can an LM evaluate and differentiate their total probability without enumerating them?

Numerical order makes this possible. In a fixed-width numeral written with the most significant digit first, every value below a threshold has a unique first digit at which it becomes smaller. After that digit, all suffixes are allowed, and their conditional probabilities sum to one. Numerals sharing an initial digit sequence form a prefix subtree. Its total probability is just the probability of that prefix. To evaluate a threshold, we need only the next-digit distributions along its boundary path: the successive prefixes of the threshold numeral. Teacher forcing supplies these known prefixes as inputs and reads their next-digit probabilities in one forward pass. We call this computation boundary marginalization: evaluating and differentiating the exact probability of a numerical interval from at most two teacher-forced boundary paths (Figure 1). For MM grid values in base bb, the scalar arithmetic is O(blog⁡bM)O(b \log_b M), independent of the number of compatible values.

A single objective, the likelihood of the observed event, therefore handles precise labels, intervals, and bounds. A singleton (one grid value) recovers sequence cross-entropy (CE), the log score of the complete numeral under the same decoder. An interval supervises its total probability: only prefixes whose subtrees lie partly inside and partly outside the interval receive a direct gradient, while subtrees lying entirely inside it are summed out and need no target digit.

The same computation gives cumulative distribution function (CDF) values for continuous ranked probability score (CRPS) training and exact distributional queries. CRPS integrates the squared difference between the predicted CDF and the step function at the observed value, so it scores predictions by numerical distance: a prediction near the observed value incurs a small loss even when its digits differ. It is a strictly proper score: its expected loss is uniquely minimized by the true distribution. Its training gradient is unbiased when estimated from a few thresholds sampled independently of the model.

Contributions. We introduce boundary marginalization, the first method that trains a pretrained language model on the exact likelihood of rounded, bounded, and censored numerical observations through its existing digit tokens, with no auxiliary output head, imputed target, or sampled rollout.

(i) Boundary marginalization: a stable log-domain algorithm evaluates and differentiates interval likelihoods using at most two paths of length d=log⁡bMd = \log_b M (Proposition 1).

(ii) Learning at the observed resolution: a single likelihood handles precise labels, intervals, and bounds, with a local gradient that characterizes the digit decisions supervised by each observation (Proposition 2).

(iii) Exact queries and proper scores: the same computation supports exact tail and quantile queries and unbiased threshold-sampled CRPS gradients (Section 5.4).

Experiments establish the value of incomplete evidence in controlled recovery, naturally censored molecular measurements, and code latency. They demonstrate learning without precise labels, reproduce the latency gains on a second backbone, and measure precision scalability.

References (27)