Elamur Research

ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models

Paper · 2024 · Yash Akhauri, Ahmed F. AbouElhamayed, Jordan Dotzel et al.

Summary

A language system may need different parts of its computation for different requests. Permanently deleting a component makes every future request live with that decision. Choosing what to omit separately for each input offers more flexibility, but creates another expense: the system must decide what it can safely skip. ShadowLLM studies how to make that decision useful enough to protect answer quality and inexpensive enough to accelerate execution. Its subject is contextual sparsity, an approach to efficient inference in which the active attention heads and feed-forward neurons change with the input.

The authors investigate two questions that are frequently entangled. What makes a component important, and how can its importance be estimated before the component runs? Their starting point is that activation size gives an incomplete answer to the first question. A large internal value does not, by itself, establish that removing it would seriously damage the result. The paper compares magnitude scores with criteria incorporating derivatives of the prediction loss. Its target of choice is plainact, which pairs a component’s value with information on how sensitive the loss is to that value. In the experiments, this target offers a favorable combination of pruning quality and ease of prediction.

The second contribution concerns predictor placement. DejaVu distributes sparsity prediction through the main network. ShadowLLM gathers an early observation instead: the output of the initial attention layer, at the last position of the input sequence. An auxiliary predictor uses that representation to estimate importance throughout the later computation. The initial layer stays unpruned because it provides the predictor’s evidence. This arrangement avoids repeatedly invoking predictors between layers and supports global selection, where layers need not receive identical retained budgets.

Quality experiments cover OPT variants and Llama 2, with different scopes for different comparisons. The authors examine downstream answer accuracy, WikiText2 perplexity, and the correspondence between predicted and measured importance rankings. Their OPT-13B comparison lists average zero-shot accuracy of 61.19% for ShadowLLM, against 59.28% for the DejaVu comparison. The associated latency entries are 2562 ms and 2981 ms. Separate generation measurements report an average 16.2% improvement over DejaVu when producing 128 tokens at 50% sparsity, while the decoding analysis reports an average advantage of 21.25%.

These findings support a specific design argument: a useful sparsity system needs both a good importance target and an economical way to approximate it. More sophisticated sensitivity measures are not automatically preferable, because some are difficult to learn or unsuitable for individual inputs. More frequent prediction is not automatically preferable either, because scheduling and memory costs can outweigh a small arithmetic budget. The authors release their implementation as ShadowLLM. Their experiments demonstrate a practical improvement in the studied settings, while leaving broader architectural coverage, training-data requirements, and deployment generality unresolved.

Interesting ideas

Consequences make better targets than activity alone. An intermediate quantity can be large without being decisive. ShadowLLM tests importance scores that connect internal values to changes in the final objective, giving selection a more relevant target than magnitude by itself. Similar reasoning can guide feature selection, optional analysis, retrieval, or search: estimate what an operation contributes to the outcome, rather than rewarding how often it runs or how much output it produces.

A target must survive approximation. The best score available during expensive analysis may be a poor training target for a cheap operational predictor. The paper therefore examines both the quality obtained from a criterion and the predictor’s ability to reproduce its ordering. This distinction applies whenever detailed inspection supervises a lightweight policy. A theoretically attractive target has little practical value if its important distinctions disappear when estimated from available evidence.

Shared early evidence can simplify coordination. ShadowLLM asks whether a representation already produced near the beginning can support decisions across later stages. This changes the scheduling problem as well as the arithmetic. Document pipelines, query planners, and bounded reasoning systems can test the same possibility: prepare a useful observation once, then reuse it, while checking which later decisions actually require fresher information.

A common budget should allow unequal allocations. Requiring every layer to discard the same proportion assumes that their needs are interchangeable. Global pruning relaxes that constraint, letting importance determine where computation remains. The general lesson applies to competing analysis stages or search branches. A shared allocation policy can be better than uniform quotas, provided its scores are comparable and its mandatory dependencies remain protected.

Decision overhead belongs in the performance result. A predictor can account for little arithmetic and still impose appreciable latency through repeated launches, memory traffic, and coordination. Adaptive systems should therefore be evaluated as complete processes. The cost of selecting an operation, delivering its inputs, and consuming its result matters alongside the operation’s nominal computational saving.

Context boundaries define the measurement. ShadowLLM evaluates language likelihood separately within documents, making its perplexity values different from results obtained with concatenated text. This is a broader lesson about experimental comparability. A score depends on what information the system was allowed to see, including previous documents, demonstrations, and persistent state. Those boundaries should be explicit whenever two results are compared.

Deep dive: ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models

ShadowLLM learns input-dependent pruning decisions, using gradient-informed importance scores and early prediction to improve inference efficiency. · about 37 minutes to read

How Mova uses it

Mova’s native language processing combines explicit structure, rules, statistical parameters, and graph knowledge in Rust. Its main CPU parser is not the transformer being sparsified in ShadowLLM. The useful connections therefore range from possible experiments on its separate GPU parser to broader principles for selecting optional work. The status marks below identify correspondences with documented mechanisms; they do not record a measured application of ShadowLLM. In particular, a proposed “нове” extension means that the specific experiment is not established by the available implementation evidence, instead of a claim that no related work exists.

Idea: Rank operations by their effect on answers. Where: Pruning Criteria and the comparisons in Figures 15–16. Area: evaluation and rule selection. Mova: частково є (world self-play and regression checks for extensions to compiled knowledge). Those mechanisms already judge proposed changes through results. A further experiment could estimate how withholding an optional rule family changes the same answers, distinguishing contribution from firing frequency. ShadowLLM supplies the motivation for consequence-sensitive ranking, not evidence that derivatives are appropriate for symbolic rules. Why Mova: this could direct repair effort toward changes that alter useful outcomes.

Idea: Require useful supervision to be learnable. Where: Learning Pruning Criteria with Predictors and Figure 14. Area: training. Mova: частково є (annot, tools/cycle, and reviewed enrichment in tools/enrich). Mova separates preparation of teaching material from later native assessment. A proposed additional check would ask whether the intended learner’s actual features can recover the distinctions in a reviewed target. Targets requiring unavailable evidence could remain review judgments without becoming operational labels. Why Mova: this would help distinguish insufficient representation from an unsuitable supervision scheme.

Idea: Reuse a preliminary observation across later choices. Where: Predictors For Neuron Ranking and Figure 4. Area: routing. Mova: частково є (the layers conductor and configured planning in tools/octopus). A structured observation already participates in bounded capability selection. A new comparison could measure whether one native interpretation supports several subsequent routing decisions with less repeated processing. Its scope would remain the configured task families. Why Mova: avoiding redundant interpretation could reduce cost while preserving a record of the evidence used.

Idea: Let optional stages compete for a shared budget. Where: Figure 6 and the local-versus-global analysis. Area: resource allocation. Mova: нове. The specific proposal is an allocator that compares estimated benefit across optional stages, rather than assigning the same allowance to each. Existing worker limits do not establish such a policy. Candidate allocations would need declared score meanings and protected prerequisites before being tested. Why Mova: different texts may justify spending more effort on reference resolution, numerical interpretation, or knowledge access.

Idea: Include the selector in timing comparisons. Where: Performance and Figures 10–12. Area: systems evaluation. Mova: частково є (tools/jobs records estimates and actual consumption; tools/twin supports prediction and calibration). An adaptive experiment should time the whole supported request, including observation, dispatch, and result inspection. It should compare equivalent tasks under the alternative policy. Why Mova: a reduction in selected operations is valuable only if the resulting task is actually cheaper or faster.

Idea: Record exactly what context an assessment permits. Where: Appendix B and Table 4. Area: evaluation. Mova: вже є (retained-school examination in a new process, using questions without lesson replay). That mechanism already separates present input from previously retained knowledge. ShadowLLM reinforces documenting the same boundary for other readers and workers: which graph, document, earlier state, and supplied evidence were accessible. Why Mova: the interpretation of a score changes when extra context is available, even when the question wording stays fixed.

Idea: Keep reversible omission separate from deletion. Where: Introduction and Figure 2. Area: architecture. Mova: частково є (context-dependent domain use through layers). A domain can remain available without being invoked for every request. The proposed extension is to make this distinction equally explicit for other optional analyses, so an efficiency policy suppresses an invocation rather than removing the capability. Why Mova: uncommon linguistic cases may still require machinery that contributes little on ordinary workloads.

Idea: Establish that contextual needs actually vary. Where: Figure 3. Area: statistical analysis. Mova: нове. ShadowLLM measures changing importance before arguing for adaptive selection. Mova could test whether the contribution of reader profiles or rule groups varies across documents and question types. Such a study would require an outcome-based definition of contribution, rather than simply counting activations. Why Mova: a dynamic allocator adds complexity that needs justification; stable preferences might be served adequately by a fixed policy.

Idea: Evaluate rankings independently of confidence bins. Where: Figure 5 and the predictor-learning analysis. Area: statistics. Mova: частково є (prag/src/eval.rs reports correctness across confidence groups). Confidence diagnostics and ordering fidelity answer different questions. A proposed selector study could compare its ordering with an independently reviewed or more expensive reference ranking, then assess final answers separately. Why Mova: alternative rankings become important when the execution budget changes, even if the highest-ranked option is frequently correct.

Idea: Calibrate scores before comparing modules. Where: the normalization discussion preceding Figure 6. Area: mathematics and allocation. Mova: нове. A global selector for Mova would need to know what scores from different operations mean. Raw confidence, retrieval frequency, and estimated answer benefit should not become interchangeable merely because they are numeric. A candidate calibration would itself need validation through outcomes. Why Mova: otherwise a module’s scoring convention could determine resource allocation more strongly than its actual usefulness.

Idea: Preserve the evidence on which omission depends. Where: the main predictor design in Predictors For Neuron Ranking. Area: dependency management. Mova: частково є (typed language stages and explicit operational interfaces). ShadowLLM leaves its observation-producing layer available. An analogous optimization in Mova should identify which parse, frame, or source check makes a downstream omission defensible, then protect that prerequisite. Why Mova: removing the observation step can undermine the very decision that was supposed to justify skipping work.

Idea: Compare lightweight and richer selectors fairly. Where: the Full Sequence alternative and Figure 5. Area: architectural evaluation. Mova: нове. A bounded routing experiment could contrast a cheap structural observation with a more extensive document analysis, holding the task and admitted capabilities fixed. The comparison should include both selection quality and execution cost. Why Mova: additional context and a more elaborate selector should demonstrate enough benefit to justify their expense.

Idea: Move costly supervision into preparation. Where: Pruning Criteria and Predictors For Neuron Ranking. Area: learning architecture. Mova: вже є (teacher review during annotation and training preparation, separated from native school answers). The correspondence concerns timing and responsibility. ShadowLLM uses gradient-derived targets; Mova uses reviewed teaching material and native learners. These are different mechanisms with a similar separation between expensive preparation and deployed execution. Why Mova: the deployed system must be evaluated on what it can do itself, rather than credited with its teacher’s work.

Idea: Inspect score distributions before increasing predictor complexity. Where: Figure 14. Area: statistical diagnostics. Mova: нове. The proposed diagnostic would examine extreme target values, concentration, and variation before attributing poor routing predictions to insufficient capacity. ShadowLLM’s analysis of grasp motivates this check, without prescribing a treatment for Mova’s discrete scores. Why Mova: problematic supervision may need a different representation or explicit exceptional handling instead of a larger predictor.

Idea: Keep operational allocation separate from local justification. Where: Figure 6 and the global pruning discussion. Area: reasoning and control. Mova: частково є (explanations from frames and world state, with routing in layers). An allocator could decide which optional check runs while retaining the check’s own source and reason. The resource decision and the substantive conclusion should remain distinguishable. Why Mova: an explanation of why work was admitted does not replace the evidence supporting its result.

Idea: Test broad quality alongside task-specific success. Where: Figures 15–16. Area: evaluation. Mova: вже є (separate language, story, school, and mathematical assessments). ShadowLLM finds that criteria can differ between downstream accuracy and perplexity. The corresponding practice in Mova is to assess the consumers affected by a shared change rather than letting one favorable benchmark settle the decision. Why Mova: a useful local improvement can still damage another reader that relies on the same representation.

Idea: Compare adaptation with simple fixed policies. Where: the static criterion studies and Table 2. Area: experimental design. Mova: частково є (documented rules-off comparisons and controlled linguistic evaluations). An optional-stage experiment could compare always invoking the stage, always omitting it, and selecting it from context. Those baselines would reveal whether adaptation adds value beyond a simpler default. Why Mova: a complicated router should earn its place through quality or cost improvements over understandable alternatives.

Idea: Vary the context used to derive supervision. Where: Enhancing Pruning with Few-Shot Examples and Figure 13. Area: annotation. Mova: частково є (annot supplies an agreed draft and document-world information to the teacher). A controlled experiment could change the bounded context shown during review while keeping later questions and scoring fixed. ShadowLLM’s demonstration analysis motivates examining this preparation choice. Why Mova: changes in teaching material may reflect the reviewer’s evidence conditions rather than changes in the native learner.

Idea: Distinguish population evidence from occurrence evidence. Where: the discussions of jacov and epenas. Area: statistics and provenance. Mova: вже є (tools/dictindex separates occurrence witnesses, aggregated features, labels, and admission). A corpus association can support a proposal without establishing an individual occurrence’s meaning. The paper offers a parallel distinction: an importance measure requiring several examples cannot automatically serve as an isolated-input score. Why Mova: preserving that distinction protects dictionary work from treating statistical patterns as admitted definitions.

Idea: Recheck assumptions when transferring a criterion. Where: Limitations and Appendix A.2. Area: methodological transfer. Mova: вже є (groupant domains, conformance declarations, and regression gates). A proposed measure should state the structures and assumptions that made it meaningful in its original setting. Its behavior in a new consumer then requires separate evidence. Why Mova: a neural sensitivity score and a symbolic rule contribution can share an intuition without sharing a valid mathematical interpretation.

Idea: Break dispatch cost into observable parts. Where: Predictors For Neuron Ranking and Performance. Area: operational diagnostics. Mova: частково є (persistent workers and explicit request protocols). A further profiling study could distinguish time spent preparing input, transferring requests, waiting, executing, and interpreting receipts. Persistent execution may reduce some costs, but the size of that benefit is not established here. Why Mova: measured decomposition would identify whether optimization should target the operation or the machinery around it.

Idea: Retain taskwise evidence behind averages. Where: Figure 8 and Model Quality. Area: reporting. Mova: вже є (individual course reports and question traces). A future adaptive-execution report should preserve outcomes for each supported task alongside its aggregate. The point is already consistent with Mova’s documented assessment practice. Why Mova: a favorable overall score should remain inspectable for systematic failures affecting a particular task family.

Idea: Add a conservative response to uncertain selection. Where: the deployment problem in Predictors For Neuron Ranking. Area: operational reliability. Mova: частково є (explicit gaps, escalation routes, and failures for unsupported requests). ShadowLLM does not demonstrate a general uncertainty fallback. A Mova-specific hypothesis is to retain fuller optional analysis when a selector cannot justify omission, or to escalate within the configured protocol. Why Mova: experimental savings should not depend on silently treating missing evidence as permission to skip necessary reasoning.

Idea: Share prepared structure among specialists. Where: the early predictor architecture. Area: data processing. Mova: вже є (the document parse and retained graph shared by the mouse team in retention/mice.rs). This is an architectural correspondence rather than a neural sparsity implementation. The existing specialists use their own bounded observation profiles over shared material. Why Mova: reusing a common representation can avoid duplicated preparation, while each specialist still needs evidence that the representation supports its task.

Idea: Examine several operating budgets. Where: Figures 6–7 and Figure 12. Area: evaluation and resource control. Mova: нове. A proposed optional-analysis policy should be tested across declared allowances, measuring both answer behavior and actual cost. No specific budget schedule or expected gain is established by ShadowLLM for Mova. Why Mova: a policy that works when most operations remain available may behave differently when only a small subset can run.

Idea: Separate selector imitation from answer quality. Where: Figures 5 and 14, followed by the quality evaluations. Area: evaluation methodology. Mova: частково є (prag prediction diagnostics and independent native assessments). A future selector could closely reproduce its reference ordering while still making poor task decisions if the reference is unsuitable. Both measurements are needed. Why Mova: reliable copying of a flawed target should not be mistaken for reliable language understanding.

Idea: Document the granularity of the selection unit. Where: Pruning Criteria and Appendix A.2. Area: representation. Mova: частково є (typed frames, rule families, and source-bound groupants). The paper adapts criteria differently for head activations and feed-forward parameters. A Mova experiment should likewise state whether it selects individual rules, complete analyses, graph lookups, or task handlers. Why Mova: an importance claim has little operational meaning until the removable unit and its dependencies are explicit.

Idea: Validate the composition of selected operations. Where: Equation 1 and the subsequent proxy-based approach. Area: mathematics and checks. Mova: частково є (invariants and compatibility checks in groupants). Ranking individual contributions does not exhaustively test every collection retained together. An adaptive symbolic pipeline would need checks for dependencies and incompatible omissions in addition to individual scores. Why Mova: several apparently dispensable steps may jointly supply information that no retained step can reconstruct.

Idea: Keep estimation experiments distinct from execution receipts. Where: Table 1 and Performance. Area: measurement. Mova: вже є (cost prediction and measured runs in tools/twin, with declared evidence roles in the hybrid architecture). ShadowLLM’s predictor-operation formulas and its elapsed-time measurements support different claims. Mova can preserve the same distinction when reporting a prospective saving and an observed run. Why Mova: a cheaper arithmetic expression does not establish a faster completed task.

Idea: Explore neural sparsity only within the appropriate component. Where: the OPT and Llama quality experiments. Area: GPU parsing. Mova: частково є (gparse is a separate transformer-based parser, assessed as an approximant where applicable). Context-dependent head or neuron selection could be investigated there, but the paper supplies no parser-specific result. Any experiment would need syntax-quality checks and CPU-agreement measurements under Mova’s existing execution contract. Why Mova: this confines a potentially relevant neural technique to a component with matching computational structures.

The problem and its context

Deployment turns component selection into a prediction problem

The paper begins from a tension between flexibility and execution cost. Large language models can respond to tasks specified through their input. Demonstrations can describe what to do without changing the system’s parameters, a capability discussed through Language Models are Few-Shot Learners and Rethinking the Role of Demonstrations. That flexibility is attractive in applications, but substantial parameter counts and latency requirements make deployment expensive.

Sparsification attempts to reduce this burden by leaving some computation inactive. ShadowLLM concentrates on attention heads and neurons within feed-forward layers of a transformer. An attention head contributes a part of the attention operation. A feed-forward neuron contributes within the layer’s multilayer perceptron, abbreviated MLP. Selecting these structures changes which operations the inference implementation must carry out.

A fixed sparse configuration makes the same omissions for every request. Its operational simplicity is useful: no input-specific selector needs to run. Its weakness is equally direct. Anything removed is unavailable even when a later request could benefit from it. The authors describe task-specific static pruning, including research represented by Are Sixteen Heads Really Better than One?, as potentially damaging to the flexible task behavior they want to preserve.

Contextual sparsity replaces that permanent commitment with a decision conditioned on the current input. The retained subset can change from one request to another. However, the selector cannot wait until all the expensive computation has finished before deciding what should have been skipped. It must obtain useful evidence early enough, make the decision quickly enough, and deliver a pattern that the execution system can exploit.

This creates a coupled problem. The decision rule needs a definition of importance, and the implementation needs a cheap approximation to that definition. Improving either part while ignoring the other can fail. An accurate importance calculation may cost too much to perform during deployment. An inexpensive predictor may produce masks quickly while omitting the wrong structures.

Earlier pruning work supplies candidate definitions

The authors draw on a broader history of pruning criteria. Some methods use parameter magnitude, treating large values as evidence of relevance. Others use gradients, which describe how the objective changes when an internal quantity is perturbed. More elaborate approaches incorporate second-order information or measures of sensitivity.

The paper also turns to neural architecture search. In that setting, inexpensive proxies help compare possible architectures without fully training every candidate. Such proxies can encode information about activation patterns, derivative behavior, or relationships among examples. ShadowLLM asks whether these ideas can also guide the removal of structures from an existing language system.

The transfer is not automatic. A measure designed to compare complete architectures may have different assumptions from a measure used to decide whether a head should run for one prompt. Likewise, a statistic requiring several examples does not immediately become an input-specific target. The paper’s comparisons are valuable in part because they expose these mismatches instead of treating every importance criterion as interchangeable.

The key distinction is between a quantity that describes internal activity and one intended to approximate consequences. Activation magnitude reports how large an internal contribution is. A loss derivative reports local sensitivity to changes in that contribution. Their combination may provide a more relevant estimate of what omission would do, although it remains an approximation rather than an exhaustive removal experiment.

Sparse arithmetic is only part of sparse execution

The systems context includes quantization as well as pruning. Quantization lowers numerical precision in parameters or other stored quantities; sparsity omits selected work. The authors present these as different optimization directions, citing quantization research including Atom. ShadowLLM’s experiments focus on the selection mechanism for contextual sparsity rather than establishing a combined quantization method.

DejaVu is the immediate baseline because it already combines predicted sparsity with efficient execution. Its implementation uses optimizations such as kernel fusion and memory coalescing. These reduce the overhead of sparse matrix operations, making the prediction schedule an increasingly consequential part of the remaining cost.

A layerwise arrangement can exploit information close to the operation being selected. Yet repeated predictors introduce repeated coordination. The GPU must launch additional work, access data, and make prediction results available at the right time. ShadowLLM therefore questions whether this locality is worth its operational expense.

The proposed alternative is deliberately simpler: observe the computation near its beginning and predict a broader pattern at once. This sacrifices some access to later local representations in exchange for reduced scheduling burden. Whether that trade is worthwhile depends on empirical ranking quality, retained task quality, and measured execution time—the three kinds of evidence the paper subsequently examines.

The method, step by step

Start with the effect of removing a subset

The ideal decision would identify the subset whose removal least damages performance under the desired sparsity. The authors formulate the selection objective as follows.

arg min over C ⊂ M [P_M(D) − P_(M∖C)(D)]

M denotes the complete system, D denotes data containing inputs and target sequences, and C denotes the components removed. P_M(D) is the performance of the complete system on D. M∖C is the system with C omitted, so P_(M∖C)(D) gives performance after that omission.

The expression captures the desired outcome, but it is not a practical search procedure. It also needs an intended amount of pruning: otherwise retaining every component avoids removal damage. The paper illustrates the combinatorial obstacle with a layer containing 64 heads and a plan to prune 56. Evaluating all possible retained subsets is already expensive within that layer, before considering the rest of the network.

Importance criteria replace this search with scores. Rather than executing every possible sparse configuration, the preparation stage estimates which structures matter, then uses their relative scores to choose a retained subset. ShadowLLM adds another approximation by learning to predict those scores from early evidence.

Preparing and applying ShadowLLM

The steps in order.

Preparing and applying ShadowLLMStep 1: Assemble prompts with target sequences1. Assemble prompts with target sequencesStep 2: Record values and loss derivatives2. Record values and loss derivativesStep 3: Derive component importance scores3. Derive component importance scoresStep 4: Fit an early importance predictor4. Fit an early importance predictorStep 5: Run the initial attention layer5. Run the initial attention layerStep 6: Select structures from predicted rankings6. Select structures from predicted rankingsStep 7: Execute the selected sparse computation7. Execute the selected sparse computation

Measure activity and sensitivity during preparation

A calibration example provides both an input and a target output. This permits calculation of a prediction loss, written L. The preparation process can inspect activations and calculate derivatives of L. Ordinary deployment cannot assume that these expensive measurements, or the target output needed for them, will be available before the sparse computation runs.

For layer l and component k, the paper writes A_l,k for the activation. Its magnitude baseline is:

L2Norm_l,k = ‖A_l,k‖₂

The subscripts identify the layer and the head or neuron. The L2 norm summarizes the size of the activation. The score varies with the input, but contains no explicit information about how the loss would respond to a change.

GradNorm instead uses derivative magnitude. For an attention head:

GradNorm_head(l,k) = ‖∂L/∂A_l,k‖₂

The derivative ∂L/∂A_l,k describes local loss sensitivity to that head’s activation. The norm converts the derivative values into an importance score. This exchanges the question “how large is the contribution?” for “how sensitive is the objective here?”

For a feed-forward neuron, the paper also works with the parameters of the up-projection:

GradNorm_neuron(l,k) = ‖∂L/∂θ_l,k‖₂

θ_l,k represents the relevant parameters for neuron k at layer l. The derivative is now taken with respect to those parameters. This distinction matters: the adaptation does not use exactly the same underlying quantity for attention heads and feed-forward neurons.

Combine values with their derivatives

plainact brings activity and sensitivity together. For a head, its score is:

plainact_head(l,k) = ‖A_l,k · (∂L/∂A_l,k)‖₁

A_l,k supplies the activation values, and ∂L/∂A_l,k supplies their loss derivatives. Multiplication pairs each value with its local sensitivity. The L1 norm aggregates absolute contributions, producing a scalar importance estimate.

The corresponding feed-forward expression is:

plainact_neuron(l,k) = ‖θ_l,k · (∂L/∂θ_l,k)‖₁

Here the product uses up-projection parameters and their derivatives. The authors connect such criteria to approximations of the loss change associated with removal. The practical claim is empirical: these scores can identify useful sparse configurations better than activation size alone.

The formula should not be interpreted as a proof that any jointly removed collection is safe. It estimates local contributions and aggregates them. Interactions among components remain outside an exhaustive subset evaluation. The later quality tests are therefore essential evidence, rather than optional confirmation of something already guaranteed mathematically.

Compare alternative aggregations and higher-order information

fisher uses the same broad ingredients as plainact but aggregates them differently. For attention heads:

fisher_head(l,k) = ⟨(A_l,k · (∂L/∂A_l,k))²⟩

The angle brackets indicate a mean. Squaring the value–derivative products changes how their distribution influences the score, compared with the absolute-value aggregation in plainact.

For feed-forward neurons:

fisher_neuron(l,k) = ⟨(θ_l,k · (∂L/∂θ_l,k))²⟩

θ_l,k and its derivative retain their earlier meanings. The paper keeps both fisher and plainact because the aggregation choice can affect pruning quality and predictor training, even when their source information is similar.

grasp incorporates second-order sensitivity:

grasp_l,k = ‖−(H_l,k · (∂L/∂A_l,k)) ⊙ A_l,k‖₁

H_l,k denotes the Hessian term used in the criterion. A Hessian contains second derivatives, describing changes in first-order sensitivity. The symbol ⊙ indicates elementwise multiplication. The score aims to approximate how removal changes gradient behavior.

Other candidates depend on relationships across examples. jacov examines covariance among Jacobian matrices, where a Jacobian collects first derivatives. epenas examines related derivative correlations, including relationships within and between classes. The authors adapt its class interpretation to next-token identities. These measures can supply aggregate importance information, but their dependence on several examples complicates a direct contextual interpretation.

The appendix also gives snip through a limiting loss perturbation:

snip = lim as ε → 0 [(L_θ − L_(θ+εδ_q)) / ε]

L_θ is the loss at parameters θ. ε is the perturbation size, and δ_q is the perturbation direction appearing in the expression. The surrounding explanation associates the criterion with sensitivity to removing an individual neuron. The paper does not fully define δ_q in that displayed account, so a more detailed construction should not be inferred from the notation alone.

nwot is described through binary patterns associated with ReLU, the rectified linear activation function. Its account involves a kernel based on Hamming distance, which measures disagreement between binary codes, and a logarithmic score. The appendix’s displayed expression does not make the relationship between its sequence aggregation and the described kernel construction sufficiently explicit for a full derivation. More importantly, the authors acknowledge that a ReLU-based criterion may not naturally apply to attention maps. They include it as a comparison, rather than resolving that transfer assumption.

Build training pairs for the auxiliary predictor

Once a criterion is chosen, preparation can associate an input representation with measured importance scores. The main comparisons use 2720 input–output examples drawn across the downstream evaluations, with task demonstrations supplied in a five-shot context. The criterion values become supervision for the predictor.

The predictor does not need to reproduce the target sequence. Its job is to estimate the relative importance of the structures that will participate in producing that sequence. This separates ordinary language prediction from the smaller auxiliary problem of deciding which computations should remain active.

The appendix gives a shared predictor-training configuration. It specifies 1 hidden layer, 2048 hidden neurons, and ReLU activation. Optimization uses AdamW with learning rate 0.001, together with CosineAnnealingLR. Training runs for 100 epochs at batch size 32, using MSELoss.

The predictor’s input size follows the underlying embedding dimension. Its outputs cover the component-importance quantities to be estimated. Though training minimizes a value-prediction loss, the paper also evaluates whether the resulting values induce the right ordering, because pruning ultimately depends on relative selection.

Obtain the deployment observation early

ShadowLLM uses the output of the initial attention layer at the final sequence position. That representation becomes the input to the importance predictor. The predictor estimates a sparsity pattern for later layers without waiting for their local activations.

The initial layer remains dense. This is an operational dependency, not an incidental exception: the predictor needs the representation produced there. A selection system cannot omit its own evidence source without replacing it with another source.

The DejaVu-style arrangement instead uses a small MLP repeatedly through the network. The paper describes observations taken at alternating layers for prediction of subsequent sparsity. This offers later representations, but requires interleaving prediction with the main execution.

The authors also test Full Sequence ShadowLLM, which applies a small transformer to the complete embedded sequence. Because that auxiliary computation occurs before the main initial layer, it could permit pruning there too. Its ranking performance is similar to the simpler design, but the extra work makes it unattractive in the authors’ assessment.

Account for predictor arithmetic

The paper expresses the repeated predictor’s cost as:

FLOPs_DejaVu = N(Ep₁ + p₁(H + F))

N is the layer count, E is the embedding dimension, and p₁ is the hidden size of the predictor. H counts heads within a layer, while F counts feed-forward neurons. The repeated input transformation contributes Ep₁ at each layer in this accounting.

For the unified predictor:

FLOPs_ShadowLLM = Ep₁ + p₁N(H + F)

The meanings of the symbols are unchanged. The shared hidden transformation appears once, while the output covers structures across layers.

The stated arithmetic saving is:

Saved predictor FLOPs = (N − 1)Ep₁

This expression isolates the duplicated transformations removed by the design. It does not predict elapsed-time improvement on its own. GPU launches, memory movement, and coordination can make the runtime impact different from the arithmetic fraction.

The Full Sequence alternative incurs an additional cost written as:

Additional FLOPs = 2(2E² + ES²)

E again denotes embedding size. S denotes sequence length here; it corresponds to the sequence-length symbol in the paper’s cost expression and is distinct from the loss L used above. The authors compare this additional work with executing a dense attention layer, explaining why similar ranking quality does not make the alternative preferable.

Turn importance estimates into a sparse allocation

Local pruning compares candidates inside each layer. Every layer receives the same target sparsity, regardless of how important its retained computation appears relative to other layers.

Global pruning allows competition across layers. It can leave more structures active in one place while omitting more elsewhere. This is the mechanism behind the paper’s claim that a unified predictor can support a more flexible allocation.

The predictor analysis includes per-layer output normalization. That detail belongs to the interpretation of global selection: useful within-layer ordering does not automatically establish a valid common scale across layers. The paper tests the resulting allocation empirically instead of deriving its quality from normalization alone.

Finally, the selected pattern must be executed efficiently. ShadowLLM uses the sparse execution improvements associated with DejaVu. Predicting an omission has practical value only when the implementation can avoid the corresponding work without spending an equivalent amount on selection and coordination.

Experiments and results

Tasks, systems, and distinct experimental scopes

The authors use WikiText2 for likelihood-based evaluation and downstream tasks for answer accuracy. Perplexity summarizes how well text is predicted under a specified context policy; lower values indicate better likelihood performance. Accuracy measures whether the selected answer is correct.

The downstream collection includes PIQA and COPA, alongside OpenBookQA and HellaSwag. Another group consists of WinoGrande, RTE, and ARC-Easy from the AI2 Reasoning Challenge. Evaluation is conducted with lm-eval-harness.

OPT-1.3B is the principal platform for criterion analysis and predictor comparisons. Local and global allocation are additionally investigated with OPT-13B and OPT-30B. Llama-2-7b appears in a global-pruning quality comparison. The reported downstream task comparison uses OPT-13B.

Those scopes should remain separate. Evidence that a criterion helps perplexity on Llama-2-7b is not evidence that every downstream experiment was repeated there. Likewise, larger performance profiles do not establish equally broad quality validation.

The tabulated accuracy result

Table 2 combines an explicit quality comparison with latency measurements. The sparse methods are presented at 50% sparsity, with dense execution serving as a reference. Accuracy is averaged over the downstream tasks in the zero-shot setting.

OPT-13B mean zero-shot accuracy across 7 tasks

The contextual ShadowLLM setting leads this reported accuracy comparison.

OPT-13B mean zero-shot accuracy across 7 tasksStatic sparsity: 55.34Static sparsity55.34Dense execution: 58.32Dense execution58.32DejaVu comparison: 59.28DejaVu comparison59.28ShadowLLM (this paper): 61.19ShadowLLM (this paper)61.19
The numbers
System or settingaccuracy %
Static sparsity55.34
Dense execution58.32
DejaVu comparison59.28
ShadowLLM (this paper)61.19

The ordering is informative in several ways. Fixed omission is cheaper to select, but its quality is lower in this experiment. The contextual methods do better, indicating that selection conditioned on the input can preserve useful behavior. ShadowLLM’s result also exceeds the dense reference in this particular aggregate.

That final observation needs restraint. The table does not establish a general rule that deleting computation improves language performance. It records a result for the specified tasks, predictor preparation, and evaluation setting. The experiment is evidence for the usefulness of this particular sparse selection process.

The paper describes ShadowLLM’s accuracy advantage over the DejaVu-style predictor as 1.91%. Its broader statements about improvements beyond 15% belong to other quality–sparsity comparisons and headline summaries. Those formulations should not be treated as interchangeable measurements of this table.

Figure 8 adds taskwise evidence. The authors report a consistent advantage across the downstream evaluations, attributing it to the importance criterion. Because the accompanying prose does not enumerate the task-specific coordinates, the figure supports that qualitative pattern without supplying additional exact scores here.

The corresponding latency result

The same table makes the cost of adaptation visible.

OPT-13B latency in Table 2

Early unified prediction lowers latency relative to the DejaVu comparison.

OPT-13B latency in Table 2Static sparsity: 2014Static sparsity2014Dense execution: 2609Dense execution2609DejaVu comparison: 2981DejaVu comparison2981ShadowLLM (this paper): 2562ShadowLLM (this paper)2562
The numbers
System or settinglatency ms
Static sparsity2014
Dense execution2609
DejaVu comparison2981
ShadowLLM (this paper)2562

Static sparsity remains the fastest entry. Its mask does not need to be predicted for every input, so it avoids a cost borne by both contextual approaches. ShadowLLM improves the adaptive path while maintaining the stronger accuracy result shown separately.

The authors characterize its latency advantage over the DejaVu-style predictor as 14%. The tabulated comparison does not describe every execution condition needed to equate it with the later generation measurements. It is therefore best read as its own experimental result.

The baseline also requires careful naming. To compare criteria within their framework, the authors implement predictors in the style of DejaVu. The performance section then discusses integrating ShadowLLM with DejaVu’s execution optimizations. A controlled comparison of predictor designs and a framework-level generation benchmark are related, but not identical, experimental objects.

Likelihood quality under pruning

For WikiText2, the main comparison trains the magnitude-based predictor with L2Norm targets and ShadowLLM with plainact targets. The predictors learn from 2720 examples collected in five-shot contexts. Evaluation then examines the perplexity response as sparsity increases.

The authors report better preservation with plainact and generally stronger behavior from global allocation. The Llama-2-7b experiment also supports the benefit of gradient-informed importance for global pruning. A further OPT-13B figure extends the favorable plainact comparison beyond the principal small-system analysis.

Exact curve coordinates are not stated in the prose for these figures. Their contribution is therefore the observed relationship among criteria, allocations, and quality, rather than a set of recoverable numerical thresholds. In particular, a statement that one curve is better should not become an invented claim about how much sparsity is harmless.

The document-boundary policy is central to interpreting perplexity. WikiText2, associated with Pointer Sentinel Mixture Models, is processed document by document. Previous documents do not provide continuing context. The authors explain that this differs from commonly concatenating the text.

Table 4 illustrates the resulting comparability problem. For Llama2-7B, their perplexity is 8.82, while the cited report gives 5.47. OPT-1.3B has corresponding entries of 16.4 and 14.6. The OPT-13B entries are 11.5 and 10.1, while OPT-30B is listed at 10.7 and 9.56.

These pairs disclose a methodological discrepancy; they are not a controlled causal experiment isolating document boundaries. The reliable within-paper comparison is between alternatives evaluated under the same document policy. External results need the context procedure checked before their raw perplexities are compared.

Generation performance and profiling

The execution experiments use up to 4 A100 GPUs. ShadowLLM retains the sparse-operation optimizations from DejaVu, including fusion and coalesced access. The reported improvement therefore concerns a predictor integrated into an already optimized sparse execution setting.

With prompt length 128 and generation length 128, the study reports an average 16.2% end-to-end improvement over DejaVu at 50% sparsity. A separate examination varying output length finds that the advantage persists as generation becomes longer.

For decoding specifically, the reported average advantage is 21.25%. Decoding repeatedly produces subsequent tokens, so repeated predictor overhead can matter differently there than during initial prompt processing. Separating this phase helps explain why the paper gives several performance numbers rather than one universal speedup.

The performance section describes profiling sizes from 1.3B through 66B and reports a maximum improvement of 21.3% in time per inference. This extends the timing scope beyond the sizes emphasized in the quality study. It does not extend all quality conclusions to the largest profile.

Table 1 provides another kind of result: calculated predictor-FLOP reductions. Its entries are 19.11% for OPT-1.3B, 19.55% for OPT-30B, and 19.76% for OPT-175B. The final entry is an arithmetic comparison, not a claim of full quality evaluation or measured deployment at that scale.

Taken together, these results show why operation counts and timings must remain distinct. Sharing the predictor transformation reduces arithmetic, while removing repeated execution points also changes launch and coordination costs. The observed speed improvement comes from their combination in the tested implementation.

What the ablations show

Input dependence is measured before it is exploited

Figure 3 examines how head importance changes across inputs. The authors use GradNorm to rank OPT-1.3B heads and inspect rank variation over 5000 inputs, drawn from downstream evaluations in five-shot contexts. Their analysis finds particularly noticeable variation near the beginning and end of the network.

This supports the premise of contextual sparsity. A permanent ordering cannot fully represent a criterion whose relative priorities change with the input. Dynamic selection has a possible advantage when the components that deserve computation are themselves context-dependent.

Variation alone is not enough to establish a quality benefit. Rank changes may involve components with similar values, and some ordering changes may have little consequence near a particular budget. The paper therefore follows this diagnostic with actual pruning and quality measurements.

The distinction is useful beyond this experiment: evidence that a selection target varies establishes an opportunity for adaptation, while outcome comparisons establish whether exploiting that variation pays off.

Early prediction is tested against more local and richer alternatives

Figure 5 assesses ranking fidelity with Spearman-ρ. This statistic compares orderings rather than requiring predicted scores to match their exact numerical targets. The analysis covers 500 queries across the downstream task collection.

The result indicates that a representation from the initial attention computation can support useful predictions of importance elsewhere. That is the empirical justification for moving prediction forward. Without it, the simpler schedule would save coordination only by accepting an uncontrolled selection loss.

The Full Sequence alternative provides a second comparison. It uses a small transformer over the embedded sequence and can avoid the main design’s dependence on the initial layer. Yet its ranking quality is similar while its arithmetic cost is greater. The experiment therefore favors the lighter observation strategy in the studied setting.

The comparison with layerwise predictors has an important qualification. The authors note that the DejaVu-style predictors are not trained to solve the same global ordering problem. A weaker global ranking should not be attributed solely to predictor location. Training objectives and output organization also affect what the predictor learns.

Unequal layer allocations preserve quality better

Figure 6 uses ShadowLLM with plainact on OPT-1.3B to compare local and global pruning through WikiText2 perplexity. The local policy enforces its target within every layer. The global policy allows the retained amount to vary between layers.

The authors find that global allocation generally provides a better tradeoff. Their interpretation is that uniform pruning can preserve unnecessary capacity in one layer while removing important structures from another. A common ranking can move computation towards the latter.

This is an allocation result, not a claim that layers cease to matter. Layer identity still shapes the representation, normalization, and available structures. Global pruning simply relaxes the requirement that all layers receive equal proportional treatment.

It also reveals a prerequisite for any transfer of the idea. Scores need to support comparison across the allocation domain. Correct ordering within separate groups is insufficient if incompatible scales determine which group wins the shared budget.

Demonstrations influence the preparation targets

The few-shot analysis measures fisher under 0-shot, 3-shot, and 5-shot conditions. It uses 2720 input–output examples and averages the criterion for each component. The resulting aggregate scores determine static pruning, which is then evaluated through WikiText2 perplexity.

More demonstrations during criterion measurement improve the pruning outcome. This finding concerns how the importance signal is collected, instead of a change in the underlying pruning formula. The input context affects which structures appear important.

The result also separates preparation context from evaluation context. Demonstrations can help produce a better importance estimate even when the later likelihood evaluation is a different task. What is transferred is the sparse selection informed by those measurements, not the demonstrations themselves.

The paper does not establish that adding context indefinitely would continue to help. Its controlled comparison supports the tested conditions and motivates attention to calibration-prompt design.

Aggregate criteria reveal different kinds of quality

The static studies average importance over examples before deleting components. This helps inspect criterion quality without requiring a predictor to estimate every input-specific score. It is a useful diagnostic separation: first ask whether the target contains valuable information, then ask whether that information can be learned.

jacov behaves favorably on the task-accuracy comparison. Its performance is weaker in the broader perplexity analysis, where fisher and plainact preserve quality more successfully. The authors suggest that jacov may be more dependent on the task used to obtain its aggregate statistics.

The criterion also lacks a straightforward contextual counterpart because its covariance depends on several examples. Good aggregate pruning does not remove that mathematical obstacle. An attractive static result therefore does not automatically nominate it as the best target for a per-input predictor.

grasp provides another contrast. It can perform well in downstream evaluation while failing to deliver equally favorable perplexity. The paper’s evidence consequently argues against choosing an importance rule from a single outcome measure.

The appendix broadens these analyses but does not describe one uniform calibration count throughout. Figure 18 refers to 3500 training examples for its static accuracy study. Figure 19 describes 2720 for its perplexity study. These belong to separate reported setups and should remain attached to their own results.

Learnability changes which target is preferable

The predictor analysis collects criterion targets on 2720 examples and evaluates rank correlation over 680 examples. This directly tests whether a target that looks useful under measured scores remains useful when an auxiliary network must approximate it.

fisher produces the best perplexity behavior up to 50% sparsity in the cited comparison. However, its reported Spearman-ρ stays under 0.7. That weakens its appeal for deployment even though its directly measured importance scores are promising.

grasp is also difficult to predict. The paper associates that difficulty with its range and extreme values. Figure 14 describes roughly 4× more outliers in its proxy scores, indicating that target distribution matters alongside target meaning.

plainact occupies a more favorable compromise. Its pruning quality is strong, and its scores are easier for the early predictor to reproduce. The authors’ choice therefore rests on a joint assessment: the target should preserve quality when known, and the prediction process should preserve enough of that benefit when the target is estimated.

This is a stronger conclusion than simply preferring gradients to magnitudes. The study does favor gradient-informed criteria, but it also rejects the idea that increasingly elaborate derivatives necessarily improve the deployed system. Predictability and execution cost constrain the useful sophistication of the target.

Runtime overhead is disproportionate to predictor arithmetic

The authors report that the DejaVu predictor accounts for only 2% of total FLOPs on OPT-1.3B. Nonetheless, repeated prediction can impose a latency increase of 25% relative to static sparsity, with the performance discussion describing degradation beyond 25%.

The explanation involves launches, bandwidth, and interleaved scheduling. An arithmetic fraction does not encode how frequently execution is interrupted, how data must move, or how auxiliary work depends on the main network.

ShadowLLM’s schedule attacks these costs by reducing repeated invocation. Its benefit is not merely a smaller auxiliary calculation. It is also a simpler relationship between the selector and the selected computation.

The fixed sparse baseline makes this visible. It exposes how quickly the retained computation can execute without contextual prediction. The adaptive method then needs to justify its additional cost through better quality, and the unified predictor reduces that cost without abandoning contextual selection.

Limitations

Boundaries acknowledged by the authors

The limitations discussion emphasizes restricted architectural and scale coverage. It describes the main study as reaching 30B parameters and concentrating on OPT-style systems. Elsewhere, the paper includes Llama-2-7b quality results and timing profiles through 66B. These statements are best reconciled by preserving experimental scope rather than adopting the largest number as the boundary for every claim.

The authors also acknowledge that some candidate criteria come from settings with different activation assumptions. nwot is a clear example because its motivation involves ReLU patterns. Attention maps do not automatically satisfy the same assumptions. Including the measure provides a comparison, but does not establish that its original interpretation transfers intact.

Training-set size is another stated constraint. The predictors are trained with fewer than 10,000 input–output examples. The authors suggest that more examples could improve sparsity prediction. That suggestion remains a possibility; the paper does not present a scaling study establishing the effect of increasing the calibration collection.

These limitations qualify the reach of the result without undoing it. The evidence supports the tested combination of targets, predictors, architectures, and execution conditions. Broader conclusions need broader experiments.

Boundaries implied by the setup

The predictor learns importance from a particular distribution of prompts and tasks. Training in five-shot contexts followed by zero-shot evaluation demonstrates useful behavior across that specific change. It does not establish dependable selection for every unfamiliar task, input style, or context length.

The paper also relies on proxy importance. plainact approximates consequences through local derivative information; it does not enumerate every interaction among omitted structures. A collection can behave differently from what individually scored components suggest. Empirical quality measurements support the approximation, but do not turn it into an exact deletion guarantee.

The initial-layer observation is another structural boundary. The principal design must execute that layer before making its later choices. Full Sequence ShadowLLM explores a different dependency, but the authors find its additional cost unattractive. The paper therefore does not demonstrate cost-free selection before all main computation.

Global allocation introduces comparability requirements. The tested normalization and predictor can support useful selection, but the result does not justify globally sorting arbitrary outputs from independently trained local estimators. Scores need a shared operational interpretation.

Neither rank correlation nor value-prediction loss is a complete safety measure. An ordering can be broadly accurate while making consequential errors near the cutoff. Conversely, imperfect rank correlation can coexist with useful task behavior if the relevant retained subset is selected well. This is why final accuracy and perplexity remain necessary.

Hardware, metrics, and comparison limits

The measured speed improvements depend on an implementation using sparse execution techniques and A100 hardware. The paper does not establish identical gains under other hardware, software, batching, or context policies. Its arithmetic formulas explain part of the design advantage, while its timings establish performance only within the profiled setting.

Power consumption motivates the work, but the principal reported measurements concern latency, quality, and FLOPs. Those observations do not establish an equivalent energy reduction. A speed result should retain its measured meaning.

The perplexity policy restricts external comparison. Document-isolated evaluation and concatenated evaluation provide different histories to the predictor. Raw scores from those procedures cannot be treated as interchangeable measurements, even when they share a dataset name.

Several important findings are conveyed through plotted curves rather than exact coordinates in the prose. The defensible conclusions are the reported relationships: better quality preservation, stronger global allocation, or difficult target prediction. Additional numerical thresholds should not be inferred without stated values.

Finally, the later-work connection and the Mova proposals have different evidential roles from the experiments. A citing title establishes a relationship in the research record, while a design analogy proposes a test. Neither supplies a missing ShadowLLM result. The distinction is especially important for symbolic processing, where neural derivative criteria do not directly define the usefulness of rules or graph operations.

What came after

Context-Conditioned Masked LoRA: Dynamic Rank Routing for Compute-Efficient Parameter-Efficient Fine-Tuning is a citing work dated 2026. Its title identifies a related direction: using context to route the active rank in a parameter-efficient fine-tuning method. The conceptual connection is selective computation whose allocation changes with the input.

The relationship is narrower than an implementation lineage can establish from citation alone. The later work’s stated description does not specify whether it uses plainact, an early attention representation, or a predictor covering the entire network. It also supplies no result that can be compared numerically with ShadowLLM. Attributing those mechanisms or gains would go beyond the documented connection.

The named settings nonetheless illustrate a useful change in the object being selected. ShadowLLM studies attention heads and feed-forward neurons during inference. The later title concerns dynamic rank routing within masked LoRA and fine-tuning. Both place context-dependent allocation at the center of an efficiency method, while leaving different structures active.

ShadowLLM’s contribution to that direction is an experimentally grounded way to separate the questions. Importance must be defined, its useful distinctions must be predictable, and the act of prediction must fit the execution budget. The later citation indicates continued work on contextual allocation; the precise mechanisms carried forward remain unspecified.

Cite

Cite as Yash Akhauri, Ahmed F. AbouElhamayed, Jordan Dotzel, Zhiru Zhang, Alexander M. Rush, Safeen Huda and Mohamed S. Abdelfattah. 2024. ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.emnlp-main.1068

@inproceedings{akhauri2024shadowllm,
  title = {{ShadowLLM: Predictor-based Contextual Sparsity for Large Language Models}},
  author = {Yash Akhauri, Ahmed F. AbouElhamayed, Jordan Dotzel, Zhiru Zhang, Alexander M. Rush, Safeen Huda and Mohamed S. Abdelfattah},
  booktitle = {Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.1068},
  url = {https://doi.org/10.18653/v1/2024.emnlp-main.1068}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/akhauri-2024-shadowllm-predictor-based-contextual-sparsity/