PBit1: One Programmable P-Bit per Parameter - A Finite-Control Representation of Pretrained Networks

Omar RamadanarXiv 2026 · arXiv

TL;DR

PBit1 is a novel representation for pretrained neural networks that assigns exactly one programmable probabilistic bit (p-bit) to every learned parameter. By using 12-bit control commands and temporal reconstruction, the authors demonstrate that large-scale models like GPT-2 and LFM3-1.7B can maintain near-original performance without any fine-tuning, effectively trading observation time for numerical precision.

What Problem Does This Paper Address?

As neural networks grow, the cost of representing and computing their weights becomes a bottleneck. Traditional quantization (like INT8 or FP4) reduces precision to save space but often requires expensive fine-tuning to recover lost accuracy.

This paper explores an alternative inspired by stochastic computing: what if a weight wasn't a fixed number, but the average of a "p-bit" (a stochastic binary unit) observed over time? The central challenge is determining if a single stochastic element per parameter is "expressive" enough to represent the complex weights of a pretrained Transformer. The authors aim to bridge the gap between theoretical probabilistic hardware and practical, large-scale deep learning models.

Methods

The authors introduce the K1 assignment, where each scalar weight $w_i$ in a pretrained model is mapped to one logical p-bit. The process involves three main stages:

  1. Finite Probability Programming: Each weight is assigned a 12-bit command ($q_i$) that sets the probability ($p_i$) of the p-bit being "1".
  2. Affine Range Mapping: Weights are organized into groups (e.g., blocks of 128) that share a local minimum ($l_g$) and span ($d_g$). The weight is reconstructed using the formula: $\hat{w} = l_g + d_g (n_i / T)$, where $n_i$ is the number of "1"s observed over $T$ temporal samples.
  3. Operator-Aware Configuration:
    • Range Grouping: The authors found that the orientation of weight grouping (row-wise vs. column-wise) significantly impacts reconstruction error, especially in sensitive layers like embeddings.
  4. Sensitivity-Based Allocation: Instead of sampling every weight for the same amount of time, they use a gradient-based heuristic to allocate more observations ($T$) to the most critical weights, reducing the total computational budget.

The study primarily uses a "reconstruct-then-infer" approach (R1), where weights are sampled to create a high-precision BF16 matrix for standard inference, allowing them to isolate the effects of the representation itself.

Datasets

The researchers evaluated PBit1 across three distinct model architectures and tasks:

  • GPT-2 (124M): Evaluated on WikiText-2 for language modeling.
  • DistilBERT (67M): Evaluated on the IMDb dataset for sentiment classification.
  • LFM3-1.7B: A larger 1.7-billion parameter model evaluated on WikiText-2.

No new datasets were introduced; the focus was on the fidelity of the representation on established benchmarks.

Key Insights and Ideas

  • Time-Precision Tradeoff: Unlike static quantization, PBit1 allows for "progressive" precision. If you need more accuracy, you simply observe the p-bits for a longer duration ($T$). The effective precision grows logarithmically with the number of observations.
  • Sensitivity to Orientation: A major "aha" moment was the discovery that the tied embedding matrix in GPT-2 is incredibly sensitive to how ranges are shared. By simply changing the grouping orientation, they reduced the variance in the output head by 228-fold, bringing the model within the quality margin without increasing the bit-count.
  • Bias vs. Variance: The error in PBit1 comes from two sources: the 12-bit limit on the probability command (which introduces a fixed bias) and the finite number of samples $T$ (which introduces variance). The paper shows that 12 bits of control is sufficient to keep the bias negligible for these models.

Key Results

The authors set a strict "quality criterion" where the reconstructed model's perplexity must be within 2% of the BF16 baseline.

  • GPT-2 & LFM3: Both models met the 2% criterion at $T = 32,768$ observations. GPT-2's perplexity increased by only ~0.66%, and LFM3's by a mere 0.26%.
  • DistilBERT: Accuracy remained virtually unchanged, moving from 87.51% (baseline) to 87.49%.
  • Efficiency Gains: By using the sensitivity-based sampling policy, they reduced the total number of observations required for GPT-2 by 41.7% while still meeting the quality targets.
  • Storage: The representation requires roughly 13.5 to 17.5 bits per parameter (including metadata), making it competitive with standard half-precision formats while enabling stochastic hardware paths.

Limitations and Future Work

  • Reconstruction Overhead: In this study, weights were reconstructed into BF16 before inference. While this proves the representation works, the ultimate goal is native stochastic execution (where the hardware processes the bitstreams directly), which was only tested at the operator scale here.
  • Task Diversity: The evaluation was limited to standard perplexity and classification tasks. The authors note that future work should examine long-context generation and instruction-following, where weight precision might be even more critical.
  • Hardware Implementation: The results are largely based on simulations and the THRML library. The next step is validating these findings on physical p-bit hardware (like magnetic-tunnel-junction implementations) to measure actual energy savings.

Summary updated

Abstract

We introduce PBit1, a finite-control representation of pretrained neural networks that assigns one programmable p-bit to each learned parameter. A 12-bit command sets its probability, a shared affine range maps that probability to the weight domain, and temporal observations reconstruct the weight for inference. Operator-aware range grouping and sensitivity-based sampling allocation adapt the representation to the network. Across five independent weight draws at 32,768 observations per scalar, selected configurations preserve task quality in GPT-2, DistilBERT, and LFM3-1.7B with every learned scalar converted and no fine-tuning. GPT-2 and LFM3 perplexity increase by approximately 0.66% and 0.26%, respectively, while DistilBERT accuracy changes from 87.51% to 87.49%. A sensitivity-based policy reduces GPT-2 reconstruction observations by 41.7% while retaining the quality criterion. Complete-model evaluations reuse reconstructed weights in BF16 inference, and THRML operator experiments examine native sampling and spatial-temporal tradeoffs. Together, these results establish PBit1 as a concrete construction for studying finite-control weight representation and temporal reconstruction in pretrained networks.
BibTeX
@misc{ramadan2026pbit,
  author = {Omar Ramadan},
  title = {{PBit1: One Programmable P-Bit per Parameter - A Finite-Control Representation of Pretrained Networks}},
  year = {2026},
  eprint = {2611.19588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19588},
}
Figure