Towards Data Science

Why Temperature 0 Isn't Deterministic

The article explains that even with a temperature setting of 0, which is intended to produce deterministic outputs, large language models (LLMs) can still produce different top tokens over time. It presents a simple formula that predicts how frequently the LLM’s top token will change and discusses how identical completions tend to diverge after roughly a hundred tokens.

Towards Data Science
Aug 24

Can an LLM Forget the Right Things?

The article discusses a specialized LLM inference runtime designed for real-time applications, such as a 33 ms robot control cycle. Unlike typical runtimes that ignore physical deadlines, this system refuses new requests when the deadline is at risk, evicts key‑value cache entries based on meaning rather than age, and is implemented entirely in hand‑written CUDA without relying on cuBLAS or libtorch.

By Anubhab Banerjee
arXiv Machine Learning
6d ago

TempQuant: Learning Adaptive Temperatures for Quantized Language Models

TempQuant introduces a method to learn adaptive sampling temperatures and top‑p values for quantized language models, aiming to align their next‑token probability distributions with those of full‑precision counterparts. The approach operates at two granularities: a global setting per requested temperature and a token‑wise setting that adjusts temperature and top‑p based on whether token rankings flip under quantization. Experiments on 3‑bit Qwen3‑4B show that TempQuant can significantly boost accuracy—raising MATH scores from 34% to 51%—and generally improves the fidelity of quantized models to their full‑precision behavior.

By Mukund Athmaram, Liang Ma, Manoj Rao
Towards Data Science
Nov 16

After 10 Heads in a Row, Small LLMs Bet Up to 82% on an 11th

The article discusses how eight base and instruction‑tuned open language models, when told that a coin is fair and flips are independent, reduce their bias after a streak of ten heads but still bet up to 82% that the next flip will be heads. It highlights the models’ tendency to overestimate the probability of a head following a long streak, even when given information that should eliminate such bias.

By Utkarsh Mangal
Towards Data Science
Aug 28

Why Claude Code Time Estimates Are Poor

The article titled "Why Claude Code Time Estimates Are Poor" discusses the challenges and shortcomings of using Claude, an LLM, for estimating code development time. It highlights how these estimates can be unreliable and offers insights into improving communication when working with LLM programming tools.

By Eivind Kjosbakken
arXiv AI
4d ago

Where the Tokens Go: Heat, Entropy and Error in Agentic Coding

The paper introduces a theory of software thermodynamics for coding agents, treating token usage as a cost that can be split into work and heat. By running cycles of coding and uncoding on a repository and measuring tokens, the authors define a software temperature and estimate free energy using a Jarzynski-like equality. They find that about 80 % of tokens are heat, free energy is 14–22 % of the mean cost, and coding is 1.1–1.5 times more expensive than uncoding, with test suites acting as imperfect Maxwell’s demons.

By Al\'an Aspuru-Guzik, Varinia Bernales
Towards Data Science
Nov 5

Why a Tiny GPT Can Know Two Facts and Still Not Connect Them

A tiny GPT model was trained to memorize every fact presented to it, yet it failed to answer any question that required combining two of those facts. The author tested a one-line fix suggested in a recent paper, which only partially resolved the issue. The post highlights the limitations of small language models in integrating multiple pieces of information.

By Utkarsh Mangal
arXiv AI
Nov 6

Masked diffusion as random sequential adsorption: an exactly solvable model for parallel decoding

Masked diffusion models generate text by reversing a stochastic masking process, allowing many tokens to be revealed in parallel at the cost of errors due to independent token draws. The paper maps this trade‑off onto driven many‑particle systems, showing that for Markov data the process is a solvable random sequential adsorption model and that the error equals entropy production relative to the reversed masking. For many steps, the error corresponds to dissipation in a slowly driven system, with optimal schedules being geodesics of a thermodynamic metric derived from token mutual information, revealing how text correlations influence error concentration and output quality.

By Adrian Baule
Towards Data Science
Nov 8

Change One Monty Hall Rule and Five LLMs Still Say Switch

The article reports that five large language models, even when prompted with step-by-step reasoning, achieved only about 33% accuracy on a modified Monty Hall problem. One model correctly cited the host’s rule before subsequently disregarding it. The study highlights the models’ difficulty in consistently applying logical rules to probabilistic puzzles.

By Utkarsh Mangal