PowerInfer-2: Fast Large Language Model Inference on a Smartphone
Paper · 2024 · Zhenliang Xue, Yixin Song, Zeyu Mi et al.
Summary
Running a large language model directly on a phone promises useful assistance without depending on a network connection or sending personal inputs elsewhere. The difficulty is keeping enough of its parameters close to the processors. A phone may have room for only part of the weights, while repeatedly fetching the rest from flash storage can make generation painfully slow. PowerInfer-2 addresses this problem by coordinating computation and storage around small groups of neurons. Its contribution concerns the execution of large language models: how to run them efficiently when their weights exceed the memory available to an application.
The central observation is that a smartphone needs different execution strategies for different kinds of work. Its neural processing unit, or NPU, handles large dense calculations well. Its CPU is more effective for the irregular calculations that remain after inactive neurons are skipped. Meanwhile, the phone’s Universal Flash Storage, abbreviated UFS, behaves differently from the storage used in a high-end PC. Small random reads can be expensive, and adding more threads to issue them can make matters worse. PowerInfer-2 therefore treats the choice of processor, the arrangement of weights, the cache policy, and the order of reads as connected decisions.
Its basic scheduling unit is a neuron cluster: a group drawn from a feed-forward layer and organized according to activation behavior and hardware needs. Frequently used neurons form larger groups suitable for dense NPU execution. Less frequently used neurons are handled selectively by CPU cores. The division changes with the number of sequences being generated together. The system also separates cached weights into regions with different policies, arranges related weights together in storage, and overlaps reads with calculations at a finer granularity than a whole matrix. These mechanisms aim to keep useful work moving while other weights are still arriving.
The evaluation uses OnePlus 12 and OnePlus Ace 2 smartphones. Under the paper’s offloading conditions, PowerInfer-2 achieves an average decoding speedup of 24.6× over llama.cpp on OnePlus 12, with a maximum of 27.8×. Against the authors’ implementation of LLMFlash, its average advantage on that device is 3.84×. With 19GB available to the application, TurboSparse-Mixtral-47B reaches 11.68 tokens/s. That result depends on the architecture’s sparse activity: the paper reports about 3B active parameters for each token, despite 47B parameters overall. The system also improves prefill throughput and reduces energy consumed per generated token.
These findings establish the value of adapting an inference runtime to mobile processors and storage, particularly for highly sparse networks. They do not establish that every large network will behave similarly, that parameter count alone predicts speed, or that the implementation is ready for unrestricted deployment on ordinary phones. The experiments use rooted Android devices, and the largest gains depend on favorable sparsity and caching. The authors report accuracy comparable to llama.cpp through mixed-precision quantization, but the accuracy discussion does not supply numerical benchmark scores in the paper’s prose. Some ablation multipliers also disagree with the accompanying throughput figures, so their direction is clearer than their exact incremental magnitude.
Interesting ideas
Choose a work unit that fits the whole system. PowerInfer-2’s neuron cluster connects processor scheduling, caching, and storage access. A mathematical matrix remains useful for describing the calculation, but it need not be the runtime’s indivisible task. This idea applies to graph processing, document analysis, and database execution whenever a smaller unit can expose useful parallelism without violating dependencies.
Treat sparsity as a changing workload property. The set of neurons needed by a batch depends on all the sequences still active in it. A fixed placement can become inefficient as those sequences finish. More broadly, a scheduler should respond to the amount and structure of useful work remaining, instead of assuming that the conditions observed at startup persist throughout execution.
Match processors to the shape of the work. A powerful accelerator can lose its advantage when the task is too small or irregular. The paper assigns dense work to the NPU and selective sparse work to the CPU, while using them together where beneficial. The transferable lesson is to profile actual task shapes, including movement and coordination costs, before choosing a processor.
Make cache policy reflect reuse and execution granularity. Weights that are always needed, weights used often in groups, and weights accessed occasionally as individuals do not require identical treatment. Separate regions let PowerInfer-2 retain each kind in a suitable form. Similar distinctions can help systems that mix permanent dictionaries, often accessed graph neighborhoods, and infrequent source records.
Remove unnecessary synchronization barriers. Waiting for every part of a matrix can leave processors idle even when dependent work on an already completed cluster is ready. A finer dependency-aware pipeline can overlap more calculation with storage access. The broader opportunity is to schedule from actual readiness, while preserving the dependencies that make the result correct.
Evaluate the complete resource tradeoff. Throughput alone cannot show whether a design saves memory, preserves accuracy, consumes less energy, or produces occasional long pauses. PowerInfer-2 examines all of these dimensions, although with different levels of numerical detail. This evaluation pattern is useful whenever an optimization changes both the speed and the conditions under which a system remains usable.
Deep dive: PowerInfer-2: Fast Large Language Model Inference on a Smartphone
How PowerInfer-2 runs large language models on smartphones by combining sparse computation, CPU–NPU scheduling, caching, and flash storage. · about 39 minutes to read
How Mova uses it
Mova is a transparent language system implemented in Rust, with explicit linguistic rules, learned parameters, graph knowledge, and bounded operational tools. PowerInfer-2 studies a different runtime: neural text generation on smartphone hardware. Its strongest relevance to Mova is therefore in execution planning, storage, selective processing, and measurement. The connections below are proposals assessed against Mova’s documented mechanisms. Their labels indicate an apparent relationship to existing work, not a measured application of PowerInfer-2. Where a proposal is marked new, the available evidence does not establish an existing implementation; that remains subject to source review.
Idea: Choose a shared scheduling unit. Where: “Neuron Cluster and Design Principles” and “Overall Architecture.” Area: execution architecture. Mova could define bounded units of useful work that carry their input references, dependencies, storage requirements, and expected outputs through both computation and I/O scheduling. A document fragment or graph observation might serve this role where a whole corpus batch is too coarse. Mova: частково є (source-bound groupants and the shared document graph in world/src/knowledge/retention/mice.rs). Why Mova: A common unit could make resource coordination explicit without confusing an execution receipt with accepted knowledge.
Idea: Adapt scheduling to the work still active. Where: “LLM Inference with Dynamic Sparsity” and “Dynamic CPU-NPU Adjustment.” Area: scheduling and statistics. Mova’s reader teams or corpus workers could reconsider task allocation when documents finish, queues shrink, or the remaining observations become more selective. The relevant state would be actual unfinished work instead of a neural batch size. Mova: частково є (bounded specialist epochs in world/src/knowledge/retention/mice.rs; resource-estimated queueing remains direction in docs/architecture.md). Why Mova: A shrinking workload may need a different execution strategy from the one that was efficient at the beginning.
Idea: Assign processors using measured task shapes. Where: “Computing Unit Characteristics” and “Adaptive Neuron Engine.” Area: heterogeneous execution. Mova could profile dense batches, sparse graph lookups, parsing stages, and decompression separately before deciding where each belongs. The paper’s particular CPU–NPU division should not be copied into Mova’s different workloads without evidence. Mova: частково є (docs/gpu-exec.md distinguishes CPU execution from GPU stages and measured approximants). Why Mova: Hardware-aware assignment could improve speed while retaining the CPU reference and each stage’s declared correctness boundary.
Idea: Separate cache policies by access behavior. Where: “In-Memory Neuron Cache.” Area: storage and caching. Mova could distinguish permanently required tables, frequently reused graph fragments, and occasional corpus postings when designing bounded caches. These are possible operational categories, not replacements for the existing distinction between compiled knowledge and durable graphs. Mova: частково є (docs/knowledge.md separates storage roles; tools/dictindex already uses compressed records and transactional directories). Why Mova: Explicit cache classes could reduce repeated loading while preserving provenance and keeping permanent knowledge separate from temporary residency.
Idea: Schedule from dependency readiness. Where: “Neuron-Cluster-Level Pipeline.” Area: data processing. A Mova corpus pipeline could allow a validated, independent fragment to proceed while unrelated reads are pending, provided its required inputs are complete and publication remains correctly gated. Mova: частково є (tools/cycle has asynchronous training, and tools/dictindex publishes bounded transactional batches). Why Mova: Finer readiness checks could reduce waiting without letting a partial failure count as completion of an entire pass.
Idea: Measure the complete resource tradeoff. Where: “Evaluation,” including “Accuracy Evaluation,” “Energy Consumption,” and “Decoding Consistency Analysis.” Area: evaluation. A Mova optimization could report throughput alongside memory, correctness, tail latency, and energy where measurable. Mova: частково є (deterministic regression gates, GPU agreement measurements, and tools/twin cost observations). Why Mova: A faster stage is useful only if its resource costs and effects on the admitted result remain visible.
Idea: Profile selective activity before optimizing it. Where: “Execution Plan Generation.” Area: statistics and profiling. Mova could record how frequently rules, dictionary layers, or graph neighborhoods are consulted under representative tasks, then use those observations to propose storage or scheduling changes. Mova: частково є (en rules-audit exposes rule effects, and tools/dictindex records occurrence and feature counts). Why Mova: Measured consultation patterns could identify expensive, reusable structures without treating frequency as evidence of linguistic truth.
Idea: Keep planning data distinct from assessment. Where: “Execution Plan Generation” and “Experimental Setup.” Area: evaluation design. PowerInfer-2 profiles activation behavior before runtime; Mova could similarly derive resource plans from designated operational data while retaining separate assessment material. This is a proposed experimental safeguard instead of a separation the paper documents in full. Mova: вже є (teacher-separated assessment in docs/architecture.md and held-out exclusions in tools/dictindex/README.md). Why Mova: Resource tuning should not become an indirect route for assessment labels to influence the system.
Idea: Prepare several bounded execution plans. Where: “Batch-Adaptive Planning.” Area: operational planning. Instead of constructing a fresh strategy for every workload change, Mova could prepare validated configurations for a small set of observed resource conditions. Each would retain its assumptions, version, and admission checks. Mova: частково є (configured bounded capabilities in docs/hybrid-system.md; automatic general model composition remains direction). Why Mova: Prevalidated choices could make adaptation cheaper and easier to inspect than unrestricted runtime replanning.
Idea: Hide configuration loading behind independent work. Where: “Dynamic CPU-NPU Adjustment.” Area: scheduling. Mova could load a forthcoming dictionary shard, graph partition, or execution configuration while an independent stage runs, then activate it only at a declared boundary. Mova: нове. Why Mova: The proposal could reduce transition delays while making the point at which a new configuration becomes authoritative explicit; a corresponding implementation is not established by the digest.
Idea: Use different strategies for bulk and selective phases. Where: “NPU-Centric Prefill” and “Hybrid CPU-NPU Decoding.” Area: data processing. Mova’s first pass over a document may favor streaming, whereas later questions may favor selective graph or posting access. The correct boundary should follow measured work, not an analogy between Mova reading and autoregressive generation. Mova: частково є (fresh reading and prepared-graph reading in world/src/knowledge/retention/fastread.rs). Why Mova: A phase-aware design could avoid paying the overhead of selective retrieval when most of the material is needed anyway.
Idea: Profile storage on the target device. Where: “Storage I/O Characteristics.” Area: storage measurement. Mova could measure read size, locality, and concurrent access behavior before selecting defaults for packed stores or dictionary indexing. Mova: частково є (tools/dictindex reports storage, timing, and cache scope; pack provides prepared compressed storage). Why Mova: A layout that performs well on one storage device may expose very different bottlenecks elsewhere.
Idea: Treat I/O concurrency as a bounded resource. Where: “Limited Concurrency” within “Storage I/O Characteristics.” Area: concurrency. Mova could test a dedicated storage queue against multiple competing readers and record where added concurrency stops helping. Mova: частково є (tools/dictindex uses an advisory import lock and transactional publication). Why Mova: More worker threads can increase contention rather than throughput, so storage parallelism deserves its own measured limit.
Idea: Include I/O service work in core allocation. Where: “CPU Core Dependencies” and “Neuron-Cluster-Level Pipeline.” Area: hardware scheduling. A Mova resource plan could account for decompression, storage-driver work, and queue handling instead of assigning every capable core to language computation. Mova: нове. Why Mova: Reserving suitable capacity for data delivery might shorten the whole pipeline even when it reduces the number of computation threads; this requires measurement on Mova workloads.
Idea: Distinguish general co-occurrence from useful dependency. Where: “In-Memory Neuron Cache” and “Flexible Neuron Loading.” Area: statistics and data layout. Mova could compare whether records merely occur together or are actually requested together by an operation before bundling them for access. Mova: частково є (tools/dictindex explicitly treats counterpart features as sentence co-occurrence rather than alignment). Why Mova: This distinction prevents a weak statistical association from becoming an unjustified storage or semantic assumption.
Idea: Remove dominant items before analyzing residual association. Where: “In-Memory Neuron Cache.” Area: statistical analysis. PowerInfer-2 finds that associations among cold neurons weaken after hot neurons are excluded. Mova could similarly examine collocate or graph-access statistics after separating very common features, while retaining the original counts for comparison. Mova: частково є (tools/dictindex reports PMI, support, and source-domain strata; this residual analysis is not established). Why Mova: A frequent shared feature can make a group appear more coherent than its less common members actually are.
Idea: Arrange records around the operation that consumes them. Where: “Flexible Neuron Loading.” Area: storage layout. Mova could compare source-oriented storage with operation-oriented bundles for related evidence records, keeping exact source references in either representation. Mova: частково є (pack prepares records before compression, and tools/dictindex groups compressed posting records). Why Mova: The best logical organization for explanation may differ from the best physical layout for retrieving everything an operation needs.
Idea: Delay expensive loading until a cheap check succeeds. Where: “Flexible Neuron Loading,” especially the staged Gate and Up/Down reads. Area: selective execution. Mova could apply inexpensive, semantically safe filters before decompressing large evidence blocks or invoking costly bounded capabilities. Mova: частково є (domain coverage routing in layers, configured capability admission, and selectors in tools/dictindex). Why Mova: Early rejection can save work, provided the filter’s failure behavior is explicit and does not silently discard valid answers.
Idea: Make false-positive selection costs visible. Where: “Flexible Neuron Loading.” Area: prediction and evaluation. PowerInfer-2’s partial bundle activation shows why a useful prediction can still trigger wasted reads. Mova could record unnecessary decompression or irrelevant candidate retrieval separately from missed evidence. Mova: частково є (tools/dictindex exposes candidate selectors, while tools/enrich warns that lexical overlap does not prove a gap). Why Mova: Retrieval quality and resource efficiency require knowing both what was missed and what was needlessly processed.
Idea: Rebalance cache space with workload changes. Where: “In-Memory Neuron Cache.” Area: memory management. Mova could test whether cache allocations among postings, graph fragments, and document text should change between bulk ingestion and question answering. Mova: нове. Why Mova: A fixed allocation may reserve memory for a data type that the current phase rarely accesses; no matching adaptive policy is established by the digest.
Idea: Separate immutable data eviction from durable updates. Where: “In-Memory Neuron Cache.” Area: storage semantics. Mova can preserve the distinction between dropping a cached copy and changing the underlying source or accepted knowledge. Mova: вже є (immutable source versions and separate append-only labels in tools/dictindex/README.md). Why Mova: Making this boundary explicit helps ensure that memory pressure cannot rewrite evidence or turn a cache operation into a knowledge revision.
Idea: Measure the non-cache memory floor. Where: “Performance with Various Memory Capacities.” Area: resource accounting. Mova could report the memory needed before useful cache space becomes available, separating models, graph directories, decompression state, and runtime allocations. Mova: частково є (tools/twin records measured costs, and dictionary-index measurements distinguish storage components). Why Mova: A nominal memory budget can be misleading when most of it is committed before the cache receives any space.
Idea: Evaluate graceful degradation under smaller budgets. Where: “Performance with Various Memory Capacities.” Area: evaluation. Mova could run the same tasks across declared memory limits and report speed, failures, and result agreement. Mova: частково є (tools/jobs provides memory and time limits, and execution modes have declared behavior). Why Mova: A resource-constrained logical module needs predictable failure or slowdown when other applications consume capacity.
Idea: Examine latency tails alongside averages. Where: “Decoding Consistency Analysis.” Area: statistics and evaluation. Mova could associate slow requests with posting rarity, cache misses, parse ambiguity, or decompression work, instead of reporting only mean runtime. Mova: частково є (tools/dictindex already identifies selector rarity and cache scope as latency factors). Why Mova: Occasional long waits can dominate interactive usability even when average performance looks acceptable.
Idea: Separate workload robustness from within-task variability. Where: “Decoding Consistency Analysis.” Area: evaluation design. Mova could test both different task families and repeated operations within a family, because stable task averages do not rule out unstable individual requests. Mova: частково є (multiple native students and readers are assessed separately in docs/architecture.md). Why Mova: The distinction helps locate whether variation comes from the domain, the input, or transient execution state.
Idea: Protect exceptional values when compressing a representation. Where: “Accuracy Evaluation.” Area: numerical representation. For Mova components that use approximate numeric representations, the paper suggests preserving sensitive exceptions rather than applying a uniform lossy policy. This does not justify approximating exact rational mathematics or linguistic identities. Mova: частково є (docs/gpu-exec.md distinguishes exact stages from measured approximants; pack is byte-exact). Why Mova: Selective precision could be considered where approximation is already admitted, with agreement measured against the exact reference.
Idea: Audit incremental ablation arithmetic. Where: “Performance Breakdown.” Area: evaluation integrity. Mova could validate that reported stage throughputs, multiplier claims, and experiment identities agree before publishing an optimization report. Mova: частково є (deterministic repetitions and regression gates in README.md). Why Mova: The paper’s inconsistent multiplier and throughput pairs illustrate why a plausible improvement narrative still needs a mechanical consistency check.
Idea: Test interacting mechanisms beyond one addition order. Where: “Performance Breakdown.” Area: experimental design. Mova could supplement cumulative optimization runs with selected removals from the complete system, especially when caching and pipelining affect each other. Mova: частково є (MOVA_EN_RULES_SKIP and en rules-audit permit controlled rule comparisons). Why Mova: An optimization’s apparent contribution can depend on which other mechanisms are already active.
Idea: Record baseline reconstruction scope. Where: “Experimental Setup,” under “Baselines.” Area: reproducibility. Mova comparisons could explicitly distinguish an original implementation from a reconstruction of selected published mechanisms. Mova: частково є (source and configuration identities are required by groupant and worker evidence contracts). Why Mova: A reader needs to know whether a result compares complete systems or particular implemented ideas.
Idea: Keep portability claims separate from deployment receipts. Where: “Implementation.” Area: operational evidence. Mova should continue treating an interface-compatible design as different evidence from a successful run on a named platform. Mova: вже є (docs/hybrid-system.md distinguishes described capabilities from release receipts and supported configurations). Why Mova: This preserves the boundary between a plausible port and a tested operational capability.
The problem and its context
Why local execution is attractive
The paper begins from a practical motivation: smartphone assistance should remain responsive when connectivity is poor and should be able to process private information locally. A remote service introduces network dependence. Local execution removes that part of the path, although it still leaves the phone responsible for computation, memory management, and energy use.
The authors describe growing interest in incorporating language capabilities into phones. Their examples include Apple Intelligence, Gemini Nano, and initiatives by smartphone manufacturers. These examples establish the deployment setting instead of the effectiveness of PowerInfer-2 itself. The system’s contribution is evaluated through its own experiments.
The obstacle is the mismatch between the size of useful language networks and the resources available to an application. The introduction uses Gemini Nano as an example, describing 3.25B parameters and a memory requirement below 2GB. It contrasts that scale with the much larger systems used on PCs and servers. The authors invoke scaling laws to motivate interest in larger capacity.
That motivation should be read carefully. PowerInfer-2 does not run an experiment proving that a larger network is always preferable for every smartphone task. It asks how a phone can execute larger, suitably sparse networks at practical speeds. The quality advantages motivating that question and the systems evidence answering it are related but distinct.
Why feed-forward layers matter
The architecture under discussion is a decoder-only transformer. Its layers contain attention and a feed-forward network, typically abbreviated FFN. Attention relates positions in the sequence. The FFN applies learned transformations within the layer and holds a substantial part of the parameters.
According to the paper, feed-forward weights account for approximately 80% of parameters in examples including Qwen2-7B and Mistral-7B. This makes them an important target for memory reduction and selective computation. Optimizing a small component would leave most of the storage problem untouched.
Activation sparsity offers a possible escape. A network can contain many parameters without using every associated neuron meaningfully for each token. ReLU-family activation functions are particularly relevant because they produce substantial inactivity. If the runtime can identify unnecessary neurons early enough, it can avoid both their calculations and some transfers of their weights.
The paper places this approach alongside earlier work on contextual sparsity. Deja Vu is among the cited studies showing that useful activity can be anticipated. MoEfication belongs to the broader background on structure within feed-forward layers. PowerInfer-2 builds on this line of work instead of introducing sparse activation as a new phenomenon.
Why a successful PC design can fail on a phone
The predecessor PowerInfer divides frequently and infrequently activated neurons between a GPU and a CPU. Its setting benefits from a discrete GPU capable of handling both dense and sparse work efficiently. That hardware relationship does not carry over unchanged to a smartphone.
The mobile NPU is strong at sufficiently large dense operations but poor at the irregular sparse primitives tested by the authors. Sending all sparse work to the CPU avoids that weakness, yet leaves the NPU underused. It also fails to exploit the shared memory system as effectively as coordinated execution.
Storage creates another mismatch. LLM in a flash reduces transfers through sparsity prediction, caching, and related layout techniques. PowerInfer-2 argues that a phone still suffers because UFS random-read performance differs sharply from the NVMe storage used in a PC.
The introduction contrasts sequential bandwidth of 4GB/s and 7.5GB/s for the storage classes it discusses. For random reads, it gives 100K IOPS and 1,200K IOPS, where IOPS means input/output operations per second. These are motivation measurements, not end-to-end generation speeds. They explain why avoiding bytes and avoiding waiting are both necessary.
The authors test adapted versions of the earlier approaches on OnePlus 12 with Mistral 7B. They move 50% of the feed-forward weights to flash. PowerInfer’s decoding speed falls by 89%, while the decline for LLMFlash is 82%. Because the original PowerInfer did not support this offloading arrangement, the authors extend it for the comparison.
Those tests identify substantial waiting rather than only insufficient arithmetic throughput. The paper attributes 82% of latency to I/O in the PowerInfer case and 77% in the LLMFlash case. CPU utilization during loading falls to 41%. A faster calculation kernel alone would not remove the central problem if the kernel often lacked its weights.
Why changing batch size matters
Generating one response and generating several alternatives together create different activity patterns. A neuron counts as active for a batch if any token in that batch needs it. As a consequence, individually sparse requests can collectively require a much denser set of neurons.
According to the paper’s analysis of Bamboo-7B, the proportion of highly active neurons rises from below 1% when the batch size is 1 to approximately 75% when it is 32. These observations motivate adaptation rather than a permanent hot–cold split. The useful split changes as the aggregate workload changes.
This matters for Best-of-N generation, where several candidate responses are produced and a ranking procedure chooses among them. The authors connect that setting to work including Let’s Verify Step by Step and Scaling LLM Test-Time Compute Optimally. PowerInfer-2 evaluates the execution of parallel candidates; it does not evaluate a new ranking procedure or establish an improvement in answer quality from that procedure.
Sequences also stop at different times. Even if generation begins with a dense aggregate workload, its remaining activity can become sparse as candidates finish. A runtime optimized only for the initial batch may therefore become progressively less suitable.
The method, step by step
From a matrix to a schedulable cluster
The paper’s main abstraction is simple to state: a whole matrix is frequently too large a unit for deciding when work can proceed. A neuron cluster provides a smaller unit that can be assigned to a processor, retained in cache, or loaded from storage.
Clusters come from the same feed-forward layer and collect neurons with similar activity. Their size reflects the target execution path. Larger hot clusters make dense NPU operations worthwhile. Smaller cold clusters let CPU cores skip work and access only predicted active weights.
This is a systems abstraction instead of a new language-training objective. The paper does not introduce a general mathematical formula defining the optimal cluster or an optimization equation for the planner. Its specification is procedural: profile activity and hardware, prepare execution configurations, then adapt among them during inference.
The method can be followed through this sequence:
How PowerInfer-2 prepares and executes inference
The steps in order.
The diagram describes the major responsibilities. At runtime, caching, loading, and calculation are interleaved rather than performed as isolated phases for an entire response.
Profile the network and the phone
The offline planner runs the network on 10M+ tokens drawn from Wikipedia and RefinedWeb. It records how often neurons activate under different batch sizes. The purpose is to identify recurring activity patterns that can guide execution before a user request arrives.
The planner also measures the target phone. Relevant observations include NPU performance for different matrix dimensions, CPU performance on sparse operations, shared-memory bandwidth, and storage behavior at different read sizes. Thus a classification is not based on activation frequency alone.
A neuron might be often useful yet still be costly to assign to the NPU if its weights cannot arrive in time. The planner therefore considers the interval available for prefetching during attention. It limits hot-neuron work so that the associated reads can fit behind that computation.
For decoding, the planning discussion examines batch sizes 1-4. It describes larger hot assignments at 3-4 and larger cold assignments at 1-2. These are the stated planning examples, whereas the motivating activity analysis also examines larger batches. Those scopes should not be treated as identical.
The planner produces both a neuron arrangement and a hardware configuration. The latter determines such details as the number of computation threads and their core placement. The paper describes the inputs to these choices but does not supply a complete search algorithm, planning-time measurement, or proof that the selected assignment is globally optimal.
Use dense execution for prompt processing
Prefill processes the input prompt before ordinary token-by-token continuation. Many tokens are available together, giving the NPU enough dense work to use its strength. Even when each token activates only part of a layer, their combined requirements can cover nearly everything.
PowerInfer-2 therefore avoids the selective predictor during prefill. It gathers the neurons into a large execution unit and uses dense operations on the NPU. This sacrifices the opportunity to skip some individual activity in exchange for a more efficient aggregate calculation.
A CPU core supplies the weights. The implementation uses a big core to read the next layer while the NPU calculates the current one. Reads are sequential and use large blocks, matching the storage’s stronger access pattern.
This arrangement does not require the CPU to contribute matrix arithmetic during prefill. Its useful role is data delivery. That distinction matters: cooperative execution can mean assigning different pipeline responsibilities, not necessarily splitting the same calculation across processors.
The hardware characterization gives a concrete reason for this choice. For a 7B INT4 network, the NPU prefill measurement is 770 tokens/s, compared with 37 tokens/s for the GPU and 8 token/s for the CPU. These measurements concern the stated device characterization and should not be substituted for every end-to-end prefill result.
Divide decoding work by activity
Decoding repeatedly generates a continuation token. The amount of work available in a single sequence is smaller, and sparsity becomes more valuable. PowerInfer-2 gives the NPU a dense hot portion and the CPU a selectively executed cold portion.
The paper illustrates the division with an FFN matrix of 14336×4096. At batch size 1, the example assigns 7168×4096 to each processor path. The NPU calculates its assigned matrix densely; the CPU uses an activation predictor to select useful cold neurons.
The CPU then subdivides its portion into smaller work chunks, with 512×4096 given as an example. ARM Neon instructions provide vectorized arithmetic. After the separate calculations finish, the CPU combines their outputs.
The split is therefore not a claim that the CPU and NPU calculate identical kinds of work at identical efficiency. Their assignments deliberately have different execution properties. The NPU benefits from regularity, while the CPU benefits from skipping unnecessary operations.
Attention receives a separate treatment in the detailed design. That account distributes attention heads between the CPU and NPU. However, the workflow figure’s caption describes attention as residing completely on the NPU. The paper therefore gives inconsistent descriptions of attention placement. The FFN hot–cold division is explained more consistently and carries the main argument.
Change the split as sequences finish
The runtime monitors the creation and completion of decoding sequences. A larger active batch needs a broader union of neurons, which favors dense NPU work. A smaller batch exposes more sparsity, making selective CPU execution relatively attractive.
For larger batches, the paper describes an allocation of about 70% to the NPU and about 30% to the CPU. At batch size 1, the CPU portion can rise to 50%. These proportions illustrate the adaptive strategy; they are not a universal partition guaranteed for every layer and device.
A complication is that the NPU executes static computation graphs. Changing the matrix shape cannot simply be handled as arbitrary CPU control flow. PowerInfer-2 prepares alternative graphs offline, each corresponding to a batch configuration and a hot-neuron allocation.
When a change is required, graph loading overlaps attention computation. The paper describes a typical graph as 10KB and says that the replacement becomes active after attention finishes. Within the demonstrated arrangement, the loading is hidden by existing work.
This strategy moves analysis out of the critical path. The runtime detects a condition and selects a prepared configuration instead of rebuilding its execution plan from scratch. Its effectiveness depends on the prepared options adequately covering the workload encountered.
Keep different weights in different cache regions
The cache has separate roles for persistently needed data, hot clusters, and cold neurons. Attention weights and the key–value cache remain in the fixed region. The hot region supplies dense NPU work. The cold region supports selective CPU execution.
The distinction affects representation as well as retention. Hot weights are organized into dense clusters spanning the relevant Gate, Up, and Down components. Cold weights receive individual management, allowing a rarely needed neuron to be retained without bringing an entire hot-style cluster with it.
Both variable regions use least-recently-used replacement, abbreviated LRU. The eviction unit differs: a cluster in the hot region and a neuron in the cold region. Since these cached weights are copies of stored parameters, eviction simply removes the copy; it does not require writing altered weights back.
Cache allocation changes with batch size. A denser workload expands the hot region, displacing cold entries. A more selective workload makes room for cold-neuron caching by discarding hot clusters. Memory management thus follows the same changing activity that drives processor assignment.
This design also responds to a statistical finding. The authors argue that grouping broadly co-activated neurons can repeatedly load dominant hot items. Once those hot items are excluded, the remaining within-matrix co-activation falls below 20%. Individual cold-neuron management becomes more attractive than assuming strong residual groups.
Pipeline actual dependencies across matrices
Caching reduces reads but does not eliminate them. A matrix-level pipeline can calculate cached parts while loading missing parts, yet still impose a barrier before the next matrix starts. That barrier can leave usable dependent work waiting unnecessarily.
PowerInfer-2 schedules at cluster granularity. Once a cluster has produced the information required by a following operation, the associated ready work can proceed while unrelated clusters are still waiting for storage. The point is to relax the matrix-wide barrier, not to ignore mathematical dependencies.
The paper describes a cluster’s progress through named stages. Pred predicts activity. GIO obtains Gate weights. GC calculates the Gate result. UDIO obtains the corresponding Up and Down weights. UDC performs the remaining associated calculations.
Multiple computation threads execute ready arithmetic, while a dedicated I/O thread handles loading. The offline plan selects their number and placement. Separating these responsibilities also reflects the storage characterization: competing I/O issuers can contend for UFS’s limited command-queue resources.
The explanatory pipeline figure assumes 8 clusters per matrix, with 4 initially in memory and 4 in flash. Its purpose is to show why partial overlap inside a matrix still permits idle intervals. It is an architectural illustration rather than an additional measured throughput result.
Lay out weights around useful access relationships
PowerInfer-2 distinguishes unrelated neurons that sometimes activate together from corresponding positions across Gate, Up, and Down. For the latter relationship, the authors report 80% co-activation. This motivates storing the associated weights together by neuron position.
Storage layout follows the work that consumes the data. Rather than preserving matrix boundaries as the only physical organization, the runtime can retrieve the weights associated with a particular neuron’s path through the FFN.
The appropriate read strategy depends on precision. For Mistral-7B-FP16, the paper describes 8KB for a neuron’s weights in an individual matrix and a 24KB read for the combined bundle. A larger random read is suitable for this representation.
The quantized case differs. The combined representation occupies 7.5KB, including INT4 weights and FP16 scales. It is aligned to 8KB in storage, but the runtime uses separate 4KB reads rather than always fetching the entire aligned bundle together.
The first read supplies Gate information after the predictor indicates likely activity. The second supplies Up/Down data only if the calculated Gate output is non-zero. This combines physical proximity with conditional loading: related data is arranged together without assuming that all of it must always be transferred.
Preserve accuracy under NPU constraints
Weight quantization reduces memory requirements, but the hardware’s supported quantization scheme can affect accuracy. QNN uses a per-channel scale, whereas llama.cpp’s comparison configuration uses groups of 32 weights. The paper attributes QNN’s lower accuracy to difficulty representing outlier values with the coarser scheme.
PowerInfer-2 uses a mixed approach. It retains outliers in INT8 and represents the remaining weights with INT4 per-channel quantization. This allows it to use the NPU while protecting values that would otherwise be poorly approximated.
The paper connects this choice to earlier mixed-precision ideas. It does not provide a complete calibration recipe or numerical optimization objective in the method description. As a consequence, the reproducible explanation is the stated representation policy and its reported evaluation, rather than an invented quantization formula.
The implementation extends PowerInfer with 12K lines of C++ code. It runs on Android with root privileges for system interfaces such as memory locking. The authors do not modify the kernel. Their claim that the design could move to other operating systems is a portability argument, not a report of an evaluated iOS implementation.
Experiments and results
Devices, systems, and workloads
The experiments use OnePlus 12 with Snapdragon 8 Gen 3 and OnePlus Ace 2 with Snapdragon 8+ Gen 1. The introduction identifies their physical memory capacities as 24GB and 16GB. Physical memory and the amount available to an application are separate quantities, a distinction that becomes important in the memory-budget experiments.
The evaluated architectures include Bamboo-7B, sparse Qwen2-7B, and sparse Llama-13B. Mistral(SiLU)-7B provides a different activation setting, while TurboSparse-Mixtral-47B tests the largest parameter count. These choices explore variation in both size and active computation.
The comparison systems cover different execution paths. llama.cpp supplies a CPU-oriented baseline with flash offloading through memory mapping. QNN represents Qualcomm’s proprietary NPU runtime. MLC-LLM uses the mobile GPU. LLMFlash supplies the main comparison for sparsity-aware flash access.
The LLMFlash result requires a qualification: the authors implement its main described mechanisms within llama.cpp because its original implementation is unavailable to them. The comparison therefore concerns that reconstruction, including prediction, bundling, and caching. It should not be represented as an unrestricted comparison against every possible LLMFlash implementation.
Workloads include dialogue and code generation, together with mathematical problems and role-playing requests. Prefill uses prompts of 128 and 512 tokens. The decoding setup uses inputs up to 64 tokens and generates 1,024 output tokens. The authors average experiments across 10 runs.
Hardware measurements explain the design
The shared-memory results show why processor cooperation can matter beyond arithmetic. On OnePlus 12, the CPU-only test achieves 43.9GB/s, and NPU-only execution reaches 56GB/s. Running them together raises the observed aggregate bandwidth.
OnePlus 12 matrix-operation memory bandwidth for a 7B network
Coordinated CPU–NPU execution uses more shared-memory bandwidth than either processor alone.
The numbers
| System or setting | GB/s |
|---|---|
| CPU only | 43.9 |
| NPU only | 56 |
| CPU–NPU cooperation (this paper) | 59.6 |
These measurements support the hybrid design, but they are not application-level generation speeds. They identify a resource advantage that the complete runtime then tries to exploit.
The storage tests provide similarly specific guidance. Sequential bandwidth rises from 450 MB/s with 4KB blocks to 4 GB/s with 512KB blocks. Random access reaches 3.5 GB/s with 512KB blocks, while small reads perform much less favorably.
Locality also matters. Random 4KB reads within 128MB achieve 1 GB/s; expanding the range to 512MB pushes throughput below 850 MB/s. A big core operating at 3.3GHz supports 1 GB/s in the stated test, whereas a little core at 2.2GHz reaches 760 MB/s.
More concurrent issuers do not necessarily solve this problem. The authors observe degradation of up to 40% when multiple cores contend over I/O. This result explains the dedicated loading thread and reinforces the need to profile the complete storage path.
Decoding with weights in flash
For the principal offloading comparison, the runtime retains 50% of FFN weights in DRAM. TurboSparse-Mixtral-47B on OnePlus Ace 2 is the exception: its memory constraint requires 75% offloading. These conditions matter because the amount of flash traffic strongly affects the result.
On OnePlus 12, PowerInfer-2’s average decoding advantage is 3.84× over the LLMFlash reconstruction and 24.6× over llama.cpp. The largest reported advantages are 4.63× and 27.8×, respectively. On OnePlus Ace 2, the corresponding average improvements are 2.93× and 14.1×.
The comparison is not simply sparse execution against dense execution. LLMFlash already benefits substantially from avoiding unnecessary transfers and using a neuron cache. The paper reports a 5.35× advantage for that approach over llama.cpp’s direct memory-mapping path.
PowerInfer-2’s additional benefit comes from reducing exposed waiting. In the Bamboo-7B critical-path analysis, LLMFlash spends 76.7% on I/O and 23.3% on computation. The I/O share for PowerInfer-2 is 13.7%. That does not mean storage access disappears; more of it is hidden behind useful calculation.
Parameter count alone does not explain the cross-architecture speeds. TurboSparse-Mixtral-47B has about 3B active parameters per token in the paper’s account, giving it behavior comparable to the much smaller Bamboo-7B. Sparse Llama-13B activates more work and consequently runs more slowly.
Prefill under offloading
For 512-token prompts on OnePlus 12, the paper reports speedups of 48.97× over LLMFlash, 44.23× over llama.cpp, and 1.99× over QNN. The OnePlus Ace 2 comparison reports 29.98× against LLMFlash and 16.67× against llama.cpp.
The 128-token results follow a similar pattern, with the stated maximum advantage over LLMFlash reaching 22.47×. The paper does not provide every underlying per-architecture throughput in its prose, so those missing values should not be reconstructed from the headline multipliers.
The explanation differs from sparse decoding. Prefill combines many prompt tokens, making most neurons useful somewhere in the batch. The paper reports activation approaching 99.99% for TurboSparse-Mixtral-47B at batch size 128. Selectively issuing many reads is then less attractive than streaming complete layers.
Sequential access and prefetching work together. Larger reads improve storage efficiency, while preparing the next layer during current computation hides delivery time. The layer-level timing analysis reports complete overlap for the illustrated prefill cases; that is evidence for those measurements, not a universal claim that all loading is free.
Memory budget changes the achievable speed
The memory sweep runs TurboSparse-Mixtral-47B on OnePlus 12 with application budgets from 7GB to 19GB. At the lower endpoint, the system still runs, but little memory remains for the neuron cache.
The paper accounts for that lower-budget configuration explicitly. Non-FFN weights and related state require 1GB. Predictor weights occupy 2.6GB, quantization scales use 2.7GB, and runtime memory takes 300MB. The stated total is 6.6GB, leaving 400MB for cached neurons.
That cache holds only 1.8% of the FFN weights. As a result, many useful weights must come from storage during each generation step. The system reaches 2.13 tokens/s at this budget, demonstrating operation under a severe constraint instead of the headline interactive speed.
TurboSparse-Mixtral-47B decoding on OnePlus 12 at memory-budget endpoints
A larger neuron cache substantially improves decoding throughput.
The numbers
| System or setting | tokens/s |
|---|---|
| PowerInfer-2 with 7GB | 2.13 |
| PowerInfer-2 with 19GB (this paper) | 11.68 |
At 7GB, the reported advantage over LLMFlash is 1.84×. At 19GB, PowerInfer-2 is 3.12× faster than LLMFlash and 21.2× faster than llama.cpp. The authors describe throughput as scaling linearly over the tested memory range.
The 11.68 tokens/s headline therefore belongs to the larger cache configuration. The separate offloading discussion reports 9.96 tokens/s for TurboSparse-Mixtral-47B. These values describe different memory conditions and should not be treated as conflicting measurements of a single setup.
Consistency across requests and tokens
With all available memory used, TurboSparse-Mixtral-47B maintains at least 11.4 tokens/s across the evaluated task categories. The authors attribute small differences among tasks to variation in activation sparsity.
Token-level behavior is less uniform. Under the configuration with 50% of FFN weights in DRAM, the slowest 10% of TurboSparse-Mixtral-47B tokens are generated at a speed 16.5% below the average. The paper also reports P99 latency as 40.9% worse than the mean.
Cache behavior offers an explanation. The average miss rate is 3.5%, but the P99 miss rate reaches 18.9%. Consecutive tokens with similar activity reuse cached neurons effectively; a change in activity can require substantially more loading.
This analysis prevents a misleading reading of the task-level result. Stable averages across task categories do not imply uniform latency for every token. The system can be broadly consistent across applications while still producing occasional pauses.
In-memory execution and less sparse activation
PowerInfer-2 also helps when the full network fits in memory. For Bamboo-7B decoding, it reports advantages of 2.24× over llama.cpp, 2.48× over MLC-LLM, and 1.86× over QNN. These gains combine selective execution with improved processor and bandwidth use.
For in-memory prefill, both PowerInfer-2 and QNN exceed 700 tokens/s. PowerInfer-2 is somewhat slower because its mixed-precision representation protects accuracy. With 50% FFN offloading, it maintains 404.6 tokens/s.
The paper also examines a memory-saving operating point. Offloading 50% of FFN weights reduces memory consumption by 1.5GB, described as 40%, while keeping decoding performance comparable to llama.cpp and MLC-LLM. The useful result is therefore sometimes a resource tradeoff instead of the highest possible speed.
SiLU-based execution receives a smaller reported benefit: 2.4×. The authors connect this to approximately 50% activation sparsity reported by the cited CATS and CHESS studies. More neurons remain active than in the highly sparse ReLU-based cases, so loading places a stronger limit on throughput.
Accuracy and energy
Accuracy is evaluated through OpenCompass. The named tasks include ARC, MMLU, and GSM8K. The paper reports accuracy comparable to llama.cpp and better than QNN for the examined quantization settings.
Its prose does not supply numerical task scores or confidence intervals for those comparisons. The supported conclusion is therefore the authors’ reported qualitative comparison, together with the explained mixed-precision mechanism. There is no basis for inventing a numerical accuracy loss.
Energy measurement uses 100 randomly selected prompts from lmsys/lmsys-chat-1m. PowerInfer-2 consumes 0.257 J/token. The reported reductions are 31.1% relative to QNN and 61.8% relative to llama.cpp.
The authors attribute the energy benefit to faster completion with similar peak power. That is different from claiming a lower instantaneous power draw. The paper’s metric measures energy per output token, which combines power consumption with the time required to generate it.
What the ablations show
Cumulative additions identify useful mechanisms
The main ablation uses Bamboo-7B on OnePlus 12 with 50% of FFN weights offloaded. Starting from a CPU configuration, the authors add bundling, caching, cluster-level pipelining, and heterogeneous execution.
The absolute throughputs stated for these configurations are:
Bamboo-7B cumulative decoding optimizations on OnePlus 12 with FFN offloading
Each reported addition raises throughput, with storage organization and overlap providing substantial gains.
The numbers
| System or setting | tokens/s |
|---|---|
| CPU baseline | 0.4 |
| Bundle added | 1.1 |
| Neuron cache added | 4.181 |
| Cluster pipeline added | 9.60 |
| CPU–NPU execution added (this paper) | 11.07 |
Bundling improves the efficiency of bringing related weights from flash. Caching then removes repeated transfers for weights likely to be used again. The authors associate the cache configuration with a 95% hit rate, showing how strongly repeated access matters in this workload.
The cluster pipeline attacks a different problem: waiting that remains even after unnecessary reads have been reduced. It allows useful calculation to overlap outstanding transfers. Finally, CPU–NPU cooperation improves use of the available computation and shared-memory path.
The order is informative because storage optimizations make heterogeneous computation more useful. If processors are largely waiting for data, accelerating their arithmetic has limited effect. Once the data path improves, processor cooperation can contribute more effectively.
The incremental multipliers do not reconcile
The prose assigns a 2.82× improvement to the cache addition and a 1.29× improvement to the pipeline addition. Those multiplier claims do not agree with the adjacent absolute throughputs in the same sequence. The paper provides no explanation that resolves the mismatch.
The safest reading retains the reported absolute settings while treating the precise incremental multipliers as uncertain. It would be inappropriate to silently replace them with newly calculated values, or to choose an undocumented configuration that makes them appear consistent.
This reporting problem does not erase the direction of the ablation: every stated absolute throughput is higher than the preceding one. It does weaken confidence in the exact contribution attributed to each intermediate stage. Reproduction would need the configurations and raw measurements behind both presentations.
The study is also cumulative instead of a complete interaction analysis. It shows what happens when mechanisms are added in the authors’ selected order. It does not establish how much each contributes when removed from the final system, or whether a different addition order would produce the same apparent contribution.
Best-of-N tests adaptation rather than answer selection
The Best-of-4 experiment uses Bamboo-7B with all parameters in memory. It compares PowerInfer-2 against QNN and a CPU-only variant of PowerInfer-2. The active batch decreases by one after every four iterations, giving a controlled way to change aggregate activity.
While all four candidates remain active, PowerInfer-2 is 1.84× faster than QNN and 1.28× faster than the CPU-only variant. As the active set shrinks, the paper reports a continuing 1.42× advantage through adaptive dispatch.
At N equal to 1, the hybrid runtime remains 1.1× faster than its CPU-only counterpart and 1.77× faster than QNN. The NPU-only approach becomes less attractive as sparsity increases, while selective CPU execution gains relative value.
This comparison supports the mechanism behind dynamic assignment. It does not measure whether Best-of-4 produces better answers, whether the ranking procedure is effective, or whether this execution policy is optimal for every possible termination pattern.
Other analyses explain where benefits come from
The memory sweep is not a conventional component-removal ablation, but it exposes cache capacity as a major performance variable. The storage microbenchmarks explain why read size, locality, and issuing core matter. The activation analysis explains why a static hot–cold allocation is insufficient.
Together, these analyses connect the system’s design choices to observed bottlenecks. Their strength is that they examine several layers of the execution path rather than reporting only a final speedup. Their limit is that not every design choice receives an isolated controlled comparison.
Limitations
Limits acknowledged by the authors
PowerInfer-2 depends strongly on useful activation sparsity. The authors explicitly report smaller gains for SiLU-based execution because more neurons remain active. The system therefore does not remove the cost of dense activity; it exploits conditions under which activity can be skipped or scheduled more effectively.
The memory-budget experiment also exposes a substantial fixed requirement. Predictor weights, scales, and non-FFN state consume most of the smallest tested budget before neuron caching begins. A large parameter count can become executable without becoming equally fast at every memory allocation.
Latency varies with changing activation patterns. The cache-miss analysis shows that an attractive mean rate can coexist with slower individual tokens. The authors identify this variability and connect it to additional movement between flash and memory.
The implementation requires a rooted Android environment for privileged interfaces. Although no kernel changes are made, that is still a deployment condition. The authors’ portability argument does not demonstrate an installation path, performance result, or equivalent privileges on another operating system.
The related-work discussion identifies speculative decoding as an open integration problem in memory-constrained heterogeneous environments. Work such as EAGLE and Lookahead Decoding is discussed as complementary. PowerInfer-2 does not demonstrate a complete combined system or establish that the benefits would multiply.
Limits visible in the experimental setup
The hardware evaluation covers particular Qualcomm-based phones. This is useful evidence across the tested performance tiers, but it does not establish identical behavior on every smartphone processor, NPU runtime, or flash controller. The architecture deliberately relies on hardware profiling, which itself acknowledges that device characteristics matter.
The largest-capacity result uses a network with sparse expert activity and about 3B active parameters per token. It should not be presented as evidence that arbitrary dense 47B networks achieve the same throughput. Stored capacity, active computation, and required transfers must remain separate in interpreting the headline.
The LLMFlash baseline is reconstructed from its published design. That is a reasonable experimental response to unavailable code, but it introduces implementation choices made by the PowerInfer-2 authors. The reported speedups apply to that comparison.
Accuracy reporting lacks numerical scores in the prose, and the ablation has inconsistent multiplier claims. These are different weaknesses: the former limits the precision of the quality conclusion, while the latter complicates attribution of performance gains. Neither should be concealed behind the broad statement that accuracy is preserved and every component helps.
The planner’s cost and robustness receive limited treatment. The paper describes representative profiling data and hardware measurements, but it does not quantify planning time or establish how well the resulting activity classifications transfer to substantially different inputs. Runtime batch adaptation addresses one source of change, not every possible shift in usage.
The experiments also do not establish sustained everyday behavior under prolonged thermal pressure, competing applications, or changing operating-system policies. The memory sweep approximates an important resource constraint, but varying a budget is narrower than demonstrating long-term operation within a busy phone.
Finally, local execution is a motivation instead of a complete privacy analysis. Avoiding a remote inference service changes where computation happens. The paper does not evaluate application permissions, retained conversations, or every other route through which sensitive information might be exposed.
What came after
A citation connection does not establish technical inheritance
The associated citing works place PowerInfer-2 near several discussions: compact language systems, resource efficiency, inference-time algorithms, and selective parameter use. Their titles establish those subject areas, but the available descriptions do not explain how each work uses PowerInfer-2. It is therefore possible to identify the connections without inventing an adoption of neuron clusters, a reproduced smartphone result, or a new performance comparison.
Chronology also needs care. The associated list includes PowerInfer, which PowerInfer-2 explicitly treats as its predecessor and implementation base. That connection is well established by PowerInfer-2’s own account, but it should not be retold as a later invention caused by the successor.
PowerInfer supplies the established implementation lineage
PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU is the clearest technical relationship. PowerInfer-2 extends its code and retains the broad idea of separating often and infrequently active neurons. It changes the execution strategy for smartphone NPUs, shared memory, and flash storage.
The contrast explains the successor’s contribution. A hot–cold distinction remains valuable, but static placement and PC-oriented sparse execution do not adequately address the mobile setting. Cluster-level pipelining, batch-dependent assignment, and differentiated loading are the additional mechanisms described by PowerInfer-2.
Small-system discussions broaden the deployment question
Small Language Models are the Future of Agentic AI is connected through citation, but no account of its technical use of PowerInfer-2 is supplied. Its title places the connection in the discussion of smaller systems for agentic workloads. It does not establish that the work adopts PowerInfer-2’s scheduler or agrees with its preference for enabling larger local capacity.
That distinction matters because efficient execution and reduced network size answer related but different questions. PowerInfer-2 asks how far hardware-aware execution can stretch a phone’s usable capacity. A discussion centered on small language systems may examine a different deployment choice. The citation alone does not settle the relationship.
Small Language Models: Survey, Measurements, and Insights likewise belongs to the surrounding measurement landscape. The available entry establishes its title and citation relationship, not particular measurements or conclusions derived from PowerInfer-2. No direct replication or comparative result can be attributed to it on that basis.
Resource-efficient inference remains the broader setting
A Survey of Resource-efficient LLM and Multimodal Foundation Models also appears in PowerInfer-2’s discussion of earlier resource-efficient execution. Its presence among associated citing works should therefore not be forced into a simple one-direction chronology.
The established connection is thematic and bibliographic: PowerInfer-2 belongs to a broader effort to reduce the resources required for deployment. Its own contribution is a runtime design linking sparse computation to storage and heterogeneous processors. The survey entry does not identify which of those mechanisms it analyzes or how it assesses them.
Inference-time algorithms create scheduling questions
From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Models is another citation connection without a supplied technical description. Its title concerns algorithms used while producing outputs. PowerInfer-2’s Best-of-N experiment provides a concrete interface to that subject: algorithms that keep several candidates active change the runtime’s aggregate neuron activity.
That is a connection demonstrated within PowerInfer-2’s own analysis. It is not evidence that the citing work adopts the same batch scheduler or evaluates the same phone hardware. Establishing such a claim would require details beyond the citation entry.
Density and parameter selection are adjacent questions
Densing Law of LLMs is listed as citing PowerInfer-2, but its title alone does not specify a result that can be compared with the smartphone measurements. The relevant distinction to retain from PowerInfer-2 is between all stored parameters and those active for a token. The connection does not establish that the citing work uses the same definition, execution abstraction, or experimental setting.
Tiny Budgets, Big Gains: Parameter Placement Strategy in Parameter Super-Efficient Fine-Tuning names a parameter-placement problem during fine-tuning. PowerInfer-2 studies placement and access during inference. The citation establishes an association, but it does not justify equating those settings or attributing the neuron-cache design to the fine-tuning work.
Across these connections, the strongest demonstrated lineage remains the move from PowerInfer’s PC-oriented sparse execution to PowerInfer-2’s mobile runtime. The other entries show where the work is cited, while leaving the precise technical inheritance unresolved. PowerInfer-2’s lasting research question is concrete: when useful computation is selective, how should a system organize its processors, memory, and storage so that selectivity becomes an execution advantage?
Cite
Cite as Zhenliang Xue, Yixin Song, Zeyu Mi, Xinrui Zheng, Yubin Xia and Haibo Chen. 2024. PowerInfer-2: Fast Large Language Model Inference on a Smartphone. arXiv 2024.
@misc{xue2024powerinfer,
title = {{PowerInfer-2: Fast Large Language Model Inference on a Smartphone}},
author = {Zhenliang Xue, Yixin Song, Zeyu Mi, Xinrui Zheng, Yubin Xia and Haibo Chen},
year = {2024},
eprint = {2406.06282},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2406.06282}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/xue-2024-powerinfer-2-fast-large-language/
References
- Multitasking the Android Way. https://android-developers.googleblog.com/2010/04/multitasking-android-way.html, 2010. OpenAlex ↗ · Scholar ↗
- Huawei's LLM on Mate 70 Series. https://www.huaweicentral.com/huawei-mate-70-series-launched-with-new-camera-design-5700mah-battery-generative-ai-and-more/, 2024. OpenAlex ↗ · Scholar ↗
- Ollama: Get up and running with large language models locally. https://github.com/ollama/ollama, 2024. OpenAlex ↗ · Scholar ↗
- OPPO Announces Commitment to Making AI Phones Accessible to Everyone. https://www.oppo.com/en/newsroom/press/oppo-make-ai-phones-accessible/, 2024. OpenAlex ↗ · Scholar ↗
- Samsung's LLM on Galaxy S24. https://www.samsung.com/global/galaxy/s24/, 2024. OpenAlex ↗ · Scholar ↗
- Abien Fred Agarap. Deep Learning using Rectified Linear Units (ReLU), 2019. OpenAlex ↗ · Scholar ↗
- Keivan Alizadeh, Iman Mirzadeh, Dmitry Belenko, Karen Khatamifard, Minsik Cho, Carlo C Del Mundo, Mohammad Rastegari, and Mehrdad Farajtabar. LLM in a Flash: Efficient Large Language Model Inference with Limited Memory, 2024. our card
- Android. Android 15. https://www.android.com/, 2024. OpenAlex ↗ · Scholar ↗
- Anthropic. https://www.anthropic.com/news/claude-3-family, 2024. OpenAlex ↗ · Scholar ↗
- Apple. Apple Intelligence. https://www.apple.com/apple-intelligence/, 2024. OpenAlex ↗ · Scholar ↗
- ARM. Arm Big.LITTLE. https://www.arm.com/zh-TW/technologies/big-little, 2024. OpenAlex ↗ · Scholar ↗
- Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads. arXiv preprint arXiv: 2401.10774, 2024. our card
- Jerry Chee, Yaohui Cai, Volodymyr Kuleshov, and Christopher M De Sa. QuIP: 2-bit quantization of large language models with guarantees. Advances in Neural Information Processing Systems, 36, 2024. OpenAlex ↗ · Scholar ↗
- Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating Large Language Models Trained on Code, 2021. our card
- Yidong Chen, Chen Zhang, Rongchao Dong, Haoyuan Zhang, Yonghua Zhang, Zhonghua Lu, and Jidong Zhai. MixQ: Taming Dynamic Outliers in Mixed-Precision Quantization by Online Prediction. In 2024 SC24: International Conference for High Performance Computing, Networking, Storage and Analysis SC, pages 1161–1175. IEEE Computer Society, 2024. OpenAlex ↗ · Scholar ↗
- Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018. our card
- Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems, 2021. URL https://arxiv. org/abs/2110.14168, 2021. our card
- Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training Verifiers to Solve Math Word Problems. arXiv preprint arXiv:2110.14168, 2021. our card
- OpenCompass Contributors. OpenCompass: A Universal Evaluation Platform for Foundation Models. https://github.com/open-compass/opencompass, 2023. OpenAlex ↗ · Scholar ↗
- Yichao Fu, Peter Bailis, Ion Stoica, and Hao Zhang. Break the Sequential Dependency of LLM Inference Using Lookahead Decoding, 2024. our card
- Georgi Gerganov. ggerganov/llama.cpp: Port of Facebook's LLaMA model in C/C++. https://github.com/ggerganov/llama.cpp, 2024. OpenAlex ↗ · Scholar ↗
- Google. Get started with Gemini Nano on Android (on-device). https://ai.google.dev/gemini-api/docs/get-started/android_aicore, 2024. OpenAlex ↗ · Scholar ↗
- Liwei Guo, Wonkyo Choe, and Felix Xiaozhu Lin. STI: Turbocharge NLP Inference at the Edge via Elastic Pipelining. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, ASPLOS 2023, page 791–803, New York, NY, USA, 2023. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
- Junhui He, Shangyu Wu, Weidong Wen, Chun Jason Xue, and Qingan Li. CHESS: Optimizing LLM Inference via Channel-Wise Thresholding and Selective Sparsification. arXiv preprint arXiv:2409.01366, 2024. OpenAlex ↗ · Scholar ↗
- Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300, 2020. our card
- iOS. iOS 17. https://www.apple.com/ios/ios-17/, 2024. OpenAlex ↗ · Scholar ↗
- Ajay Jaiswal, Shiwei Liu, Tianlong Chen, Zhangyang Wang, et al. The emergence of essential sparsity in large pre-trained models: The weights that matter. Advances in Neural Information Processing Systems, 36, 2024. OpenAlex ↗ · Scholar ↗
- Joo Seong Jeong, Jingyu Lee, Donghyun Kim, Changmin Jeon, Changjin Jeong, Youngki Lee, and Byung-Gon Chun. Band: coordinated multi-DNN inference on heterogeneous mobile processors. In Proceedings of the 20th Annual International Conference on Mobile Systems, Applications and Services, MobiSys '22, page 235–247, New York, NY, USA, 2022. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
- Jaehun Jung, Peter West, Liwei Jiang, Faeze Brahman, Ximing Lu, Jillian Fisher, Taylor Sorensen, and Yejin Choi. Impossible distillation: from low-quality model to high-quality dataset & model for summarization and paraphrasing. arXiv preprint arXiv:2305.16635, 2023. our card
- Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling Laws for Neural Language Models, 2020. our card
- Je-Yong Lee, Donghyun Lee, Genghan Zhang, Mo Tiwari, and Azalia Mirhoseini. CATS: Contextually-Aware Thresholding for Sparsity in Large Language Models. arXiv preprint arXiv:2404.08763, 2024. OpenAlex ↗ · Scholar ↗
- Luchang Li, Sheng Qian, Jie Lu, Lunxi Yuan, Rui Wang, and Qin Xie. Transformer-Lite: High-efficiency Deployment of Large Language Models on Mobile Phone GPUs, 2024. OpenAlex ↗ · Scholar ↗
- Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty. arXiv preprint arXiv:2401.15077, 2024. our card
- Zonglin Li, Chong You, Srinadh Bhojanapalli, Daliang Li, Ankit Singh Rawat, Sashank J. Reddi, Ke Ye, Felix Chern, Felix Yu, Ruiqi Guo, and Sanjiv Kumar. The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformers, 2023. OpenAlex ↗ · Scholar ↗
- Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. arXiv preprint arXiv:2305.20050, 2023. our card
- Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration. Proceedings of Machine Learning and Systems, 6:87–100, 2024. OpenAlex ↗ · Scholar ↗
- Zichang Liu, Jue Wang, Tri Dao, Tianyi Zhou, Binhang Yuan, Zhao Song, Anshumali Shrivastava, Ce Zhang, Yuandong Tian, Christopher Re, and Beidi Chen. Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Time, 2023. our card
- Xudong Lu, Yinghao Chen, Cheng Chen, Hui Tan, Boheng Chen, Yina Xie, Rui Hu, Guanxin Tan, Renshou Wu, Yan Hu, et al. BlueLM-V-3B: Algorithm and System Co-Design for Multimodal Large Language Models on Mobile Devices. arXiv preprint arXiv:2411.10640, 2024. OpenAlex ↗ · Scholar ↗
- Yuqi Luo, Chenyang Song, Xu Han, Yingfa Chen, Chaojun Xiao, Zhiyuan Liu, and Maosong Sun. Sparsing Law: Towards Large Language Models with Greater Activation Sparsity, 2024. OpenAlex ↗ · Scholar ↗
- Xinyin Ma, Gongfan Fang, and Xinchao Wang. LLM-Pruner: On the structural pruning of large language models. Advances in neural information processing systems, 36:21702–21720, 2023. our card
- Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, Chunan Shi, Zhuoming Chen, Daiyaan Arfeen, Reyna Abhyankar, and Zhihao Jia. SpecInfer: Accelerating Generative Large Language Model Serving with Speculative Inference and Token Tree Verification, 2023. OpenAlex ↗ · Scholar ↗
- NVIDIA. https://www.nvidia.com/en-us/data-center/h100/, 2024. OpenAlex ↗ · Scholar ↗
- NVIDIA. NVIDIA GB200. https://www.nvidia.com/en-us/data-center/gb200-nvl72, 2024. OpenAlex ↗ · Scholar ↗
- OnePlus. OnePlus Global. https://www.oneplus.com/global, 2024. OpenAlex ↗ · Scholar ↗
- OpenAI. https://openai.com/gpt-4, 2023. OpenAlex ↗ · Scholar ↗
- Qualcomm. Qualcomm Neural Processing SDK. https://developer.qualcomm.com/software/qualcomm-neural-processing-sdk, 2023. OpenAlex ↗ · Scholar ↗
- Konstantinos I Roumeliotis, Nikolaos D Tselikas, and Dimitrios K Nasiopoulos. Llama 2: Early Adopters' Utilization of Meta's New Open-Source Pretrained Model. 2023. OpenAlex ↗ · Scholar ↗
- Noam Shazeer. GLU Variants Improve Transformer, 2020. OpenAlex ↗ · Scholar ↗
- Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling llm test-time compute optimally can be more effective than scaling model parameters. arXiv preprint arXiv:2408.03314, 2024. our card
- Chenyang Song, Xu Han, Zhengyan Zhang, Shengding Hu, Xiyu Shi, Kuai Li, Chen Chen, Zhiyuan Liu, Guangli Li, Tao Yang, and Maosong Sun. ProSparse: Introducing and Enhancing Intrinsic Activation Sparsity within Large Language Models. arXiv preprint arXiv:2402.13516, 2024. OpenAlex ↗ · Scholar ↗
- Yixin Song, Zeyu Mi, Haotong Xie, and Haibo Chen. PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU. In Proceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles, SOSP '24, page 590–606, New York, NY, USA, 2024. Association for Computing Machinery. our card
- Yixin Song, Haotong Xie, Zhengyan Zhang, Bo Wen, Li Ma, Zeyu Mi, and Haibo Chen. Turbo Sparse: Achieving LLM SOTA Performance with Minimal Activated Parameters. arXiv preprint arXiv:2406.05955, 2024. OpenAlex ↗ · Scholar ↗
- MLC team. MLC-LLM. https://github.com/mlc-ai/mlc-llm, 2024. OpenAlex ↗ · Scholar ↗
- Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro von Werra, Clémentine Fourrier, Nathan Habib, Nathan Sarrazin, Omar Sanseviero, Alexander M. Rush, and Thomas Wolf. Zephyr: Direct Distillation of LM Alignment, 2023. our card
- Zekun Moore Wang, Zhongyuan Peng, Haoran Que, Jiaheng Liu, Wangchunshu Zhou, Yuhan Wu, Hongcheng Guo, Ruitong Gan, Zehao Ni, Man Zhang, Zhaoxiang Zhang, Wanli Ouyang, Ke Xu, Wenhu Chen, Jie Fu, and Junran Peng. RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Models. arXiv preprint arXiv: 2310.00746, 2023. our card
- Jie Xiao, Qianyi Huang, Xu Chen, and Chen Tian. Large Language Model Performance Benchmarking on Mobile Platforms: A Thorough Evaluation. arXiv preprint arXiv:2410.03613, 2024. OpenAlex ↗ · Scholar ↗
- Daliang Xu, Hao Zhang, Liming Yang, Ruiqi Liu, Gang Huang, Mengwei Xu, and Xuanzhe Liu. Empowering 1000 tokens/second on-device llm prefilling with mllm-npu. arXiv preprint arXiv:2407.05858, 2024. OpenAlex ↗ · Scholar ↗
- Mengwei Xu, Wangsong Yin, Dongqi Cai, Rongjie Yi, Daliang Xu, Qipeng Wang, Bingyang Wu, Yihao Zhao, Chen Yang, Shihe Wang, et al. A survey of resource-efficient LLM and multimodal foundation models. arXiv preprint arXiv:2401.08092, 2024. our card
- An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. Qwen2 technical report. arXiv preprint arXiv:2407.10671, 2024. OpenAlex ↗ · Scholar ↗
- Di Zhang, Xiaoshui Huang, Dongzhan Zhou, Yuqiang Li, and Wanli Ouyang. Accessing gpt-4 level mathematical olympiad solutions via monte carlo tree self-refine with llama-3 8b. arXiv preprint arXiv:2406.07394, 2024. OpenAlex ↗ · Scholar ↗
- Zhengyan Zhang, Yankai Lin, Zhiyuan Liu, Peng Li, Maosong Sun, and Jie Zhou. MoEfication: Transformer Feed-forward Layers are Mixtures of Experts. In Findings of ACL 2022, 2022. our card
- Zhengyan Zhang, Yixin Song, Guanghui Yu, Xu Han, Yankai Lin, Chaojun Xiao, Chenyang Song, Zhiyuan Liu, Zeyu Mi, and Maosong Sun. ReLU$^2$ Wins: Discovering Efficient Activation Functions for Sparse LLMs, 2024. OpenAlex ↗ · Scholar ↗
- Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Tianle Li, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zhuohan Li, Zi Lin, Eric. P Xing, Joseph E. Gonzalez, Ion Stoica, and Hao Zhang. LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Dataset, 2023. our card
- Zihan Zhou, Chong Li, Xinyi Chen, Shuo Wang, Yu Chao, Zhili Li, Haoyu Wang, Rongqiao An, Qi Shi, Zhixing Tan, Xu Han, Xiaodong Shi, Zhiyuan Liu, and Maosong Sun. LLM$\times$MapReduce: Simplified Long-Sequence Processing using Large Language Models, 2024. OpenAlex ↗ · Scholar ↗