Machine Learning

Stochastic

Involving randomness or probability. In ML, stochastic processes include random weight initialization, stochastic gradient descent, and probabilistic sampling during text generation.

Why It Matters

Understanding stochasticity explains why LLMs give different answers each time and why training runs produce different results — randomness is a feature, not a bug.

Example

Running the same training twice with different random seeds produces different models with slightly different performance, because initialization and batch ordering are random.

Think of it like...

Like shuffling a deck of cards — the process has randomness built in, so you get a different arrangement each time, even following the same procedure.

Related Terms