Analog Foundation Models

Julian Büchel, Iason Chalas, Giovanni Acampa, An Chen, Omobayode Fagbohungbe, Hsinyu Tsai, Kaoutar El Maghraoui, Manuel Le Gallo, Abbas Rahimi, Abu Sebastian

Abstract

Large Language Models (LLMs) face significant energy efficiency challenges due to the "von Neumann bottleneck"—the constant shuffling of data between memory and processors. Analog In-Memory Computing (AIMC) offers a radical alternative by performing calculations directly within memory. However, physical noise and precision limits have historically hindered the deployment of high-capacity models on analog hardware. This paper presents a scalable Hardware-Aware Training (HWA) pipeline to create Analog Foundation Models (AFMs). By utilizing synthetic distillation and iterative weight clipping, models like Llama-3 and Phi-3 can maintain performance parity with 4-bit digital quantization while operating on energy-efficient analog chips.

The Challenge of Analog Computing

Serving LLMs is an energy-intensive process. While GPUs are the current standard, AIMC can be orders of magnitude more efficient by using electrical conductance to perform Matrix-Vector Multiplications. The primary obstacle is that the physical world is "noisy"; analog hardware introduces programming errors, thermal noise, and conductance drift. Standard LLMs, trained in high-precision digital environments, typically fail when exposed to these perturbations.

Hybrid architecture combining digital processing with Analog In-Memory Computing (AIMC) crossbar arrays for matrix-vector multiplications.

Hardware-Aware Training (HWA)

To bridge the gap between digital precision and analog reality, the researchers developed a specialized training pipeline. Key components include:

  • Synthetic Distillation: Using the models themselves to generate 20 billion tokens of synthetic text, a "student" model is trained to mimic the original FP16 "teacher" model under analog constraints.
  • Iterative Weight Clipping: By clamping weights to a specific range (e.g., ±3 standard deviations), the model is forced to use the hardware's most stable conductance states, significantly improving the Signal-to-Noise Ratio (SNR).
  • Noise Injection: Gaussian noise is injected into weights during training to ensure the model finds "flatter" minima in the loss landscape, making it less sensitive to physical hardware imperfections.

Performance and Robustness

The resulting Analog Foundation Models (Phi-3-mini and Llama-3.2-1B) achieved accuracy levels comparable to 4-bit weight / 8-bit activation digital models. Crucially, these models demonstrated remarkable resilience to increasing levels of hardware noise.

Comparison of model robustness against additive Gaussian noise for Phi-3-mini (left) and Llama-3.2-1B (right).

As shown in the performance analysis, the Analog FM variants (purple lines) maintain significantly higher average performance across benchmarks as noise levels increase, compared to standard models or traditional quantization methods like SpinQuant. On the GSM8K math benchmark, the analog-adapted Phi-3 model reduced the accuracy drop caused by noise from ~21% to just ~8%.

Key Insights

  • Clipping vs. Noise: Surprisingly, weight clipping proved more vital for robustness than noise injection alone. Narrowing the weight distribution ensures mapping to higher, more stable conductance values.
  • Energy Efficiency: Simulations indicate that an AIMC-based system serving these models could be 3.6x more energy-efficient than an idealized INT8 GPU implementation.
  • Digital Benefits: A secondary benefit of HWA is that these models also perform exceptionally well under standard 4-bit digital quantization, as the noise-robust training helps them handle digital rounding errors more effectively.

Conclusion and Future Work

This work demonstrates that foundation models can be successfully adapted to noisy analog hardware without losing general intelligence or safety alignment. While HWA currently incurs a higher training overhead (roughly 3x slower than standard fine-tuning), the potential for massive gains in inference energy efficiency is significant. Future research will focus on scaling these techniques to frontier models in the 70B+ parameter range and exploring parameter-efficient tuning methods like hardware-aware LoRA.

Summary updated

BibTeX
@inproceedings{buchel2025analog,
  author = {Julian Büchel and Iason Chalas and Giovanni Acampa and An Chen and Omobayode Fagbohungbe and Hsinyu Tsai and Kaoutar El Maghraoui and Manuel Le Gallo and Abbas Rahimi and Abu Sebastian},
  title = {{Analog Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=zo4zYTR8vn},
}
Figure