All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Why Stochastic Rounding Prevents Error Accumulation in Low-Precision Arithmetic

By

Lucas Nestler

2d ago· 2 min readenInsight

Summary

This article explains the critical difference between round-to-nearest and stochastic rounding in low-precision floating-point arithmetic (BF16). Round-to-nearest produces the same error each time, causing bias to compound over many operations—e.g., adding 0.001 to 1.0 a thousand times never moves the result. Stochastic rounding, by contrast, makes zero-mean errors that partially cancel out, allowing the sum to reach 2.0 in expectation. The core insight is that biased errors accumulate linearly over steps, while zero-mean errors wash out, making stochastic rounding essential for long numerical computations.

Key quotes

· 5 pulled
Round-to-nearest makes the same rounding error every time. Stochastic rounding makes a different error each time, centered on zero.
When the same error repeats, it compounds. When errors are zero-mean, they partly cancel.
Add 0.001 to 1.0 a thousand times in BF16 and round-to-nearest never moves.
Stochastic rounding reaches 2.0. Each update rounds up with probability proportional to where it falls in the rounding interval.
Over long runs, that's everything.
Snippet from the RSS feed
Round-to-nearest makes the same error every time. Stochastic rounding doesn't. Over long runs, that's everything.

You might also wanna read

Numerical Analysis Reveals Automatic Differentiation Can Produce Incorrect Derivatives in Physics Simulations

This article discusses the numerical analysis of differentiable simulation in scientific machine learning, highlighting potential issues wit

stochasticlifestyle.com·8mo ago

DeepSeek-V4: Hybrid Sparse-Attention Architecture Enables Efficient Million-Token Context Inference

DeepSeek-V4 introduces a hybrid sparse-attention architecture combined with on-policy distillation across domain specialists, enabling 1M-to

artgor.medium.com·13h ago

Rotary GPU: Enabling Large Mixture-of-Experts Models on Consumer Laptop GPUs with Limited Memory

This paper presents Rotary GPU, an exploratory approach to running large Mixture-of-Experts (MoE) language models on consumer-grade hardware

arxiv.org·1d ago

LinkedIn cuts GPU training hours by 65% with Generative Recommender system optimizations

LinkedIn has developed a Generative Recommender (GR) system that models user activity as token sequences, offering richer long-context perso

startuphub.ai·3d ago

PromptEmbedder: A Dual-LLM Framework for Efficient, Architecture-Agnostic Text Embedding

The article presents PromptEmbedder, a novel dual-LLM framework for efficient and transferable text embedding. It addresses the bottleneck o

arxiv.org·4d ago

Rank-Aware Decomposition Technique Reduces Computation in Recommender Systems by 87.5%

This paper presents a rank-aware decomposition technique for deep ranking models in industrial recommender systems. The key insight is that

arxiv.org·4d ago