Hanyu Yang — mathematics and AI research

Certified mathematical results, each with a public certificate and a reproduction command, and work on the numerical behaviour of AI systems. Every item has a DOI, and each states what it does not establish.

ORCID 0009-0005-0419-4070 · github.com/SeverinVisionary

Late Context Masking: Accuracy and Fidelity to Context-Aware Decoding

Context-aware decoding (CAD) runs a language model a second time without its context. The late fork reruns only the last 16 layers, with the context hidden from them. On MemoTrap it is 3.5 and 8.6 percentage points more accurate than CAD on Qwen3-4B-Base and Qwen3-8B-Base at contrast weight 0.5, yet picks CAD's token at only 43% and 62% of the positions where CAD departs from greedy decoding. Against a CAD tuned on a development split the 4B comparison is inconclusive, and on redefine-math the fork gives no gain over greedy decoding.

Draft-Model Speculative Decoding Can Emit Zero-Probability Tokens

TensorRT-LLM 1.2.1's two-model draft-target path, with the VANILLA attention backend, fails at every sampling setting tested: under top-k sampling, 45% of its sampled sequences have probability zero under the engine's own top-k distribution. The verifier receives fewer draft distributions than draft tokens, so some tokens are never checked and the first is checked against the wrong one. Forty-seven cells across vLLM, SGLang, llama.cpp and Hugging Face Transformers show no deviation at the stated detection limits; the test enumerates every output of a tiny fixture exactly.

Commit Now, Pay Later: When Can a Streaming Program Keep Track of Where Its Output Came From?

A nondeterministic copyless streaming string transducer must be steered online, with finite memory and bounded lookahead, so that every output letter stays close to the input position a deterministic reference assigns it. With at most K accepting runs per input the problem is decidable and a controller is constructed; with |w|+1 runs it is RE-complete, although every input has a perfectly aligned run. Without registers it stays decidable. Which register capabilities undecidability needs is left open.

The “Lossless” Illusion: How Speculative Decoding Silently Changes What LLMs Say

Small lookup-table models loaded into vLLM and SGLang expose seven speculative-decoding bugs in which the server runs normally but samples from the wrong distribution; in SGLang's NGRAM drafter, token 0 is emitted at a rate of 0.538 against a correct 0.049. Fix pull requests were open for all seven within 24 hours. Rates on a real model (Qwen3-0.6B) depend on the prompt set, and the effect on RL training was not measured.

Does the reward matter? A placebo trial for zero-data self-play

In a 100-step Qwen2.5-Coder-3B trial with fixed coding tasks, a tag-format placebo reward gives no detectable math gain, while execution-checked rewards gain 5.7 and 5.1 percentage points across two seeds on six math benchmarks. The result is limited to this short code-to-math setting; the second seed was scored only with Absolute Zero's prompt.

No Refund for the Token Tax: Speculative Decoding Across 21 Languages

Using 200 FLORES-200 devtest sentences per language across 21 languages, Qwen3.5-9B with its MTP head and Gemma 4 E4B with its assistant show no rise in acceptance with tokenizer fertility; every non-English language has lower acceptance length than English. A six-language vLLM follow-up finds smaller speedups than English in the other five languages for both built-in drafters. These serving measurements use a single run on one A100 at batch size 1; speculative greedy outputs often differ from plain greedy.

Less Loss, Fixed Weights: Logit Corrections for Forgetting

On 14 released base/derived pairs (OLMo-2, Qwen2.5, SmolLM2; 1B–7B), a context-free token bias recovers at most 9.8% of the web-text loss increase out of sample, and bias plus temperature up to 36%, mostly in overconfident OLMo-2 preference-tuned models. Math continued pretraining loses up to 0.8 nats per token and recovers at most 3.1%.

No step at the window edge: confusable fake facts in matched sliding-window hybrids

In three matched 665M models (full attention, SWA-128, SWA-128 with NoPE global layers), a look-alike fake fact shows no jump in pull as it crosses the 128-token window edge; the preregistered window-capture test fails (ΔS = −0.054 [−0.069, −0.039]). The standard hybrid picks the fake fact more often at every distance (71% against 35% at 96 tokens).

Overfitting or Overconfidence at the Data Wall?

On 125 public C4 checkpoints (7M–2.8B parameters, 1–64 epochs), cross-fitted scalar temperature scaling removes about a third of the fitted data-repetition penalty: ρ = 0.682 (95% bootstrap interval 0.580–0.858). The results are exploratory: the preregistered evaluator check failed, and the hypothesis that at least half of the fitted penalty would disappear was not supported.

Long documents make a training batch smaller than it looks

Chunks of one code repository or paper give correlated gradients out to 16K tokens. At equal tokens, a whole-document 16K block has 3.5–4.9× fewer effective independent samples than packed web text on code and about 2.3× fewer on arXiv, measured with 512-token chunks on Pythia and OLMo-2 checkpoints; books stay close to the control. Corrected 17 Nov 2026: in full causal context the ratio is about 1.3, below the 1.5 hurdle; the 512-token standalone chunks overstated the excess about fivefold, exploratory (version 7).

Is δ small? Measuring the premise of a hallucination lower bound on OLMo-2

Kalai, Nachum, Vempala and Zhang argue that pretraining keeps the slack term δ of their hallucination bound small, but do not measure it. On their birthday example, with OLMo-2's public corpus for the weights, the 7B base model gives δ = +0.028 (95% CI [0.017, 0.042]); the result is fragile to the weighting, and the floor is vacuous on this frame.

AdaGrad under heavy-tailed noise: symmetry, asymmetry and damping

Liu asked whether AdaGrad's threshold p = 4/3 under heavy-tailed noise is real. It is, and it is caused by asymmetry: with symmetric noise the rate is T−(p−1)/(2p) for every p, while with general noise and small damping (3p−4)/(4p) is sharp for every step size. Damping closes the gap, linearly in α wherever the exponent is positive.

A Corrected Metric Does Not Validate a Vocabulary Scaling Law

Re-expressing the 60 released runs of Tao et al. (2024) in bits per character moves their 70B vocabulary prescription from 212K to 106K–119K or 550K–764K, depending on the fitting approach. With a whole model size held out, every procedure misses the best vocabulary at 1.13B by 8–40% compute-equivalent, and the corrected metric does not reduce the miss.

Byte-pair encoding can lose more than half of the optimal compression

Kozma and Voderholzer showed that byte-pair encoding recovers at least 1/3 of the optimal pair-encoding utility in the worst case, and at most 5/8 in their ESA 2026 paper. An explicit family of strings lowers the upper bound to (1−e−2)/2 ≈ 0.4323; their extended version reaches the same constant with a different family. Against encodings whose tokens have length at most three that constant is exact.

Rounding error in FlashAttention: centered, uncentered, and radial

A forward error bound for FlashAttention-2: it shares its worst-case term with two-pass attention and is more accurate on peaked attention. The split-KV merge does not renormalize, and an output that should be exactly 1 comes back up to 2.2% off on an NVIDIA L4. Also counterexamples to a published O(u log n) bound.

Alternating plane graphs: settling Conjectures 10.1 and 10.2, with witnesses for 10.3

Conjectures 10.1 and 10.2 of Althöfer et al. (2015) are settled. Conjecture 10.3 has verified witnesses at 54 orders; its infinite tail is not proved. The fourth problem remains open.

A terrace for every non-abelian group of order 256 and 384

All 56,070 non-abelian groups of order 256 and all 20,154 of order 384 given an explicit terrace — the two orders left open by Theorem 32(vi) of Ollis's dynamic survey, so that with it every non-abelian group of order at most 511 is terraced. 76,325 witness records, checked by a standard-library Python verifier, nine negative controls, a coverage count, and a GAP check tying every record to its SmallGroup id.

Three improved hypergraph Ramsey lower bounds

R(4,4,4;3) ≥ 84, R(4,6;3) ≥ 64 and R(5,5;4) ≥ 36 — three entries of §7.1(a) of Small Ramsey Numbers improved, each by a group-invariant colouring printed as a table over group orbits, regenerated without a solver and checked by complete enumeration. Özdemir has since reported R(5,5;4) ≥ 49, which supersedes the third bound.

Twofold coverings of the Hamming cube: a Lean-verified K(8,1,2) ≥ 61

61 ≤ K(8,1,2) ≤ 64 — the lower bound formalised in Lean 4 with zero sorrys, plus an elementary even-n theorem improving five published lower bounds.

Bernstein's constant: ten rigorously certified digits

β = 0.2801694990 — ten correctly-rounded decimal places, proved in Arb interval arithmetic, where the 1985 Varga–Carpenter rigorous enclosure determines five.

Heilbronn's triangle problem in the disk: a certified n = 14 construction

α_disk(14) ≥ 0.0767158857710289397517847755066… — an explicit 14-point configuration in exact integer coordinates, about +1.075% above the best earlier documented value; a certified lower bound, not a proved record.