Research map / Architectures and efficiency / Quantization
Analog Foundation Models
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Adapts pretrained LLMs (Phi-3-mini-4k-instruct, Llama-3.2-1B-Instruct) into analog foundation models via synthetic-data knowledge distillation and hardware-aware training with noise injection, static 8-bit I/O quantization and weight clipping, so they stay near 4-bit weight/8-bit activation baselines under analog noise.
Problem
Off-the-shelf LLMs degrade substantially when deployed on analog in-memory computing (AIMC) hardware, which imposes weight noise and static input/output quantization; no generic method existed to robustly adapt LLMs pre-trained on trillions of tokens to this setting.
Approach
Generate synthetic data by sampling from the teacher LLM itself, then train the model with pure knowledge distillation under hardware-aware training (learnable static input ranges, globally static output quantization, per-channel additive Gaussian weight noise, and iterative weight clipping), yielding analog-robust models using under 1% of pre-training tokens.
Key results
- Phi-3-mini-4k-instruct analog FM under hardware-realistic noise averages 66.22 vs 62.02 for the noisy off-the-shelf model and 60.58 for noisy LLM-QAT (W4).
- Llama-3.2-1B-Instruct analog FM under noise averages 40.91 vs 35.68 for noisy off-the-shelf model and 37.92 for noisy LLM-QAT.
- On MATH-500 test-time scaling, the noisy analog FM narrows the gap to the off-the-shelf model by 0.4% (Phi-3) and 3.58% (Llama-3.2-1B) as n grows, and outperforms the 4-bit quantized baselines.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Train with analog hardware-aware training rather than off-the-shelf weights | Phi-3-mini-4k-instruct · 9-benchmark average, hardware-realistic noise | accuracy: 62.02 -> 66.22 | Helped |
| Train with analog hardware-aware training rather than LLM-QAT | Phi-3-mini-4k-instruct · 9-benchmark average, hardware-realistic noise | accuracy: 60.58 -> 66.22 | Helped |
| Train with analog hardware-aware training rather than LLM-QAT | Llama-3.2-1B-Instruct · 9-benchmark average, hardware-realistic noise | accuracy: 37.92 -> 40.91 | Helped |
| Apply 4-bit RTN quantization to the trained analog foundation model instead of LLM-QAT | Phi-3-mini-4k-instruct · 9-benchmark average, 4-bit digital quantization | accuracy: 65.63 -> 66.64 | Helped |
| Use pure softmax sampling for synthetic data generation rather than RGS (ablation) | Phi-3-mini-4k-instruct analog FM · 1B-token training, benchmark average | accuracy: 65.66 -> 66.26 | Helped |
| Increase training data from 1B to 20B tokens (ablation) | Phi-3-mini-4k-instruct analog FM · Hardware-realistic noise, benchmark average | accuracy: 63.67 -> 66.33 | Helped |
| Increase training data from 20B to 40B tokens (ablation) | Llama-3.2-1B-Instruct analog FM · Hardware-realistic noise, benchmark average | accuracy: 40.91 -> 40.69 | Hurt |
| Use synthetic rather than FineWeb training data (ablation) | Phi-3-mini-4k-instruct analog FM · 1B-token training, benchmark average | accuracy: 66.75 -> 67.41 | Helped |
| Add distillation loss rather than training without distillation (ablation) | Phi-3-mini-4k-instruct · FineWeb training, benchmark average | accuracy: 58.92 -> 66.97 | Helped |
| Add globally static 8-bit output quantization during training (ablation) | Phi-3-mini-4k-instruct · 1B-token training, benchmark average | accuracy: 68.52 -> 68.16 | Hurt |
| Add weight noise during training (ablation) | Phi-3-mini-4k-instruct analog FM · FP16 evaluation | accuracy | Hurt |
| Add weight noise during training (ablation) | Phi-3-mini-4k-instruct analog FM · Noisy evaluation | accuracy: 69.90 -> 71.74 | Helped |
Surprising findings
- Post-training SpinQuant models with static input ranges are less robust to hardware noise than the off-the-shelf model, sometimes collapsing (e.g., GSM8K 2.85% under noise for Phi-3).
- Weight clipping contributes more robustness than noise injection for LLMs, and the multiplicative noise component provided no robustness gain.
Limitations
- Training billion-parameter models is resource intensive and may be infeasible for many researchers.
- Substantial accuracy gap remains to FP16 baselines, especially on reasoning tasks such as GSM8K and MATH-500.
- Noise injection and output quantization slow training convergence and roughly triple linear kernel latency.
Experimental setup
Datasets: synthetic data generated by Phi-3-mini-4k-instruct and Llama-3.2-1B-Instruct FineWeb MATH-500 BookCorpus English Wikipedia CC-News OpenWebText GLUE
Benchmarks: MMLU GSM8K BoolQ Hellaswag MedQA AGIEval Arc-C Arc-E ANLI IFEval XSTest MATH-500
Metrics: accuracy average accuracy prompt-level accuracy instruction-level accuracy IPRR VPRR
Baselines: LLM-QAT SpinQuant Off-the-shelf FP16 models
Builds on: LLM-QAT AIHWKIT-Lightning SpinQuant GPTQ
Closest papers by meaning
- Analog In-memory Training on General Non-ideal Resistive Elements: The Impact of Response Functions (NeurIPS 2025 · similarity 0.90)
- Towards Exact Gradient-based Training on Analog In-memory Computing (NeurIPS 2024 · similarity 0.88)
- ScaleBITS: Scalable Bitwidth Search for Hardware-Aligned Mixed-Precision LLMs (NeurIPS 2026 · similarity 0.87)
- A2Q+: Improving Accumulator-Aware Weight Quantization (ICML 2024 · similarity 0.87)
- Reshape and Adapt for Output Quantization (RAOQ): Quantization-aware Training for In-memory Computing Systems (ICML 2024 · similarity 0.87)
- Scaling Laws for Floating–Point Quantization Training (ICML 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
