scimeatlas

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

ACL 2024Large language models › Reasoning and chain of thoughtapproach: Efficient LLM servingopen problems in this approach418 citations (OpenAlex)

Apple

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
7improved
3no clear effect
3hurt

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 changedWhereMeasuredEffect
use a low-rank predictor to load only predicted-active neurons (ablation)OPT 6.7B hybrid loading · OPT 6.7B on M1 Max, half memoryI/O latency: 1090 ms -> 738 msImproved
add windowing (keep neurons of last k tokens) (ablation)OPT 6.7B with predictor · OPT 6.7B on M1 Max, half memoryI/O latency: 738 ms -> 164 msImproved
add row-column bundling (ablation)OPT 6.7B with predictor and windowing · OPT 6.7B on M1 Max, half memoryI/O latency: 164 ms -> 87 ms; throughput 1.25 -> 2.25 GB/sImproved
full method versus naive loadingOPT 6.7B · end-to-end latency, CPUtotal latency: 3182 ms -> 669 msImproved
full method versus naive loadingOPT 6.7B · end-to-end latency, GPUtotal latency: 2218 ms -> 84 msImproved
add speculative decodingOPT 6.7B All on GPU · end-to-end latency, GPUtotal latency: 84 ms -> 60 msImproved
add low-rank predictorOPT 6.7B · zero-shot Arc Easy / Arc Challenge / HellaSwagaccuracy: Arc Easy 66.1 -> 66.2, Arc Challenge 30.6 -> 30.6, HellaSwag 50.3 -> 49.8No clear effect
bundle each neuron with its closest co-activated neuronneuron bundling · OPT 6.7Bdata loadingHurt
use nucleus sampling instead of greedy and generate longer (1000 tokens) (ablation)OPT 6.7B · long generationflash latencyNo clear effect
larger predictors in the last 4 layers (ablation)Persimmon 8B · MMLUaccuracyImproved
relufy Phi-2 and add predictorsPhi-2 · MMLUaccuracy: 57 -> 54.3 after relufication; 2.3 further drop to 52 with predictorsHurt
add trained predictors to sparsified Llama 2Llama 2 7B (FATReLU) · MMLUaccuracy: 38.96 -> 38.63No 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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy