Research map / Large language models / Reasoning and chain of thought
LLM in a flash: Efficient Large Language Model Inference with Limited Memory
Keivan Alizadeh, Iman Mirzadeh, Dmitry Belenko, S. Karen Khatamifard, Minsik Cho, Carlo C Del Mundo, Mohammad Rastegari, Mehrdad Farajtabar
Apple
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use a low-rank predictor to load only predicted-active neurons (ablation) | OPT 6.7B hybrid loading · OPT 6.7B on M1 Max, half memory | I/O latency: 1090 ms -> 738 ms | Improved |
| add windowing (keep neurons of last k tokens) (ablation) | OPT 6.7B with predictor · OPT 6.7B on M1 Max, half memory | I/O latency: 738 ms -> 164 ms | Improved |
| add row-column bundling (ablation) | OPT 6.7B with predictor and windowing · OPT 6.7B on M1 Max, half memory | I/O latency: 164 ms -> 87 ms; throughput 1.25 -> 2.25 GB/s | Improved |
| full method versus naive loading | OPT 6.7B · end-to-end latency, CPU | total latency: 3182 ms -> 669 ms | Improved |
| full method versus naive loading | OPT 6.7B · end-to-end latency, GPU | total latency: 2218 ms -> 84 ms | Improved |
| add speculative decoding | OPT 6.7B All on GPU · end-to-end latency, GPU | total latency: 84 ms -> 60 ms | Improved |
| add low-rank predictor | OPT 6.7B · zero-shot Arc Easy / Arc Challenge / HellaSwag | accuracy: Arc Easy 66.1 -> 66.2, Arc Challenge 30.6 -> 30.6, HellaSwag 50.3 -> 49.8 | No clear effect |
| bundle each neuron with its closest co-activated neuron | neuron bundling · OPT 6.7B | data loading | Hurt |
| use nucleus sampling instead of greedy and generate longer (1000 tokens) (ablation) | OPT 6.7B · long generation | flash latency | No clear effect |
| larger predictors in the last 4 layers (ablation) | Persimmon 8B · MMLU | accuracy | Improved |
| relufy Phi-2 and add predictors | Phi-2 · MMLU | accuracy: 57 -> 54.3 after relufication; 2.3 further drop to 52 with predictors | Hurt |
| add trained predictors to sparsified Llama 2 | Llama 2 7B (FATReLU) · MMLU | accuracy: 38.96 -> 38.63 | No clear effect |
Open problems in efficient LLM serving
Do efficient-serving and inference-saving methods hold up on larger models, other hardware and real workloads?
- Measured on one GPU type or one server only. · 21 papers state it
- Tested only on models of 12B parameters or fewer. · 13 papers state it
- Predictors and latency models need per-model profiling and lose accuracy off-distribution. · 13 papers state it
Closest papers by meaning
- SparQ Attention: Bandwidth-Efficient LLM Inference (ICML 2024 · similarity 0.90)
- Peripheral Memory for LLMs: Integration of Sequential Memory Banks with Adaptive Querying (ICML 2025 · similarity 0.90)
- Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inference (ICML 2024 · similarity 0.90)
- EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelism (ICML 2024 · similarity 0.90)
- MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention (NeurIPS 2024 · similarity 0.89)
- Puzzle: Distillation-Based NAS for Inference-Optimized LLMs (ICML 2025 · similarity 0.89)
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.