Skip to content
#small language model Open access

How Many Bits Does a Fact Need? Memory Load, Competing Alternatives and Weight Quantization in a Small Transformer

Oct 2026 · Zenodo (CERN European Organization for Nuclear Research)
Advanced Neural Network Applications

Abstract

This work investigates how post-training weight quantization affects the knowledge memorized by a language model. To this end, we train a transformer with 1.1 million parameters on synthetic biographies, a setting in which the amount of information is known exactly, and we vary both the information load and the number $K$ of values each attribute can take. After training, the weights are rounded to $b$ bits and the surviving knowledge is measured fact by fact. We show that the number of bits needed to retain 99\% of the facts grows from 4 to 8 with the load, following the logarithmic dependence on the distance from capacity that Gardner's theory predicts for the perceptron. The narrowing of the margins is accompanied by a growth of the perturbation, which a linear propagation of the error through the network attributes mainly to the increase of the gain with which the subsequent layers carry the rounding error to the output, rather than to a coarser quantization grid. The fraction of facts lost at each precision is predicted, with no parameter fitted to the losses, by a survival law in which the correct answer must stay above all its competitors under a perturbation partly shared among them, whereas a description based on the runner-up alone underestimates the losses, increasingly so as $K$ grows. We derive the shared component from the geometry of the output layer and build a solvable model of a multi-class readout, which agrees with simulations without free parameters and reproduces the trends observed in the transformer. On three pretrained language models the structure of the perturbation is confirmed, but the losses are overestimated: the facts these models know are held with small margins, and the perturbation has heavy tails and affects facts to different extents depending on the directions from which they are read, two effects that together reduce the discrepancy to less than half.

View source

Similar papers

#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Open access Feb 2018

Lean Internal Startups for Software Product Innovation in Large Companies: Enablers and Inhibitors

This study investigates how Lean internal startup facilitates software product innovation in large companies and identifies its enablers and inhibitors, and shows the potential of the method-in-action framework to investigate the Lean startup approach in non-startup context.

Henry Edison, Nina M. Smørsgård, Xiaofeng Wang et al. · 78 citations · ⚡6
#computer vision Conference Sep 2010

Exploring the Sources of Waste in Kanban Software Development Projects

The application of agile software methods and more recently the integration of Lean practices contribute to the trend of continuous improvement in the software industry. One such area warranting proper empirical evidence is a project’s operational efficiency when using the Kanban method. This short paper takes a new an...

Marko Ikonen, Petri Kettunen, Nilay V. Oza et al. · 67 citations · ⚡9

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.