Forward-Propagation-Driven Adaptive Rank Reduction for LLM Inference
This article introduces an adaptive rank reduction method for Large Language Model (LLM) inference that operates entirely within the forward propagation phase. By decomposing weight matrices using Singular Value Decomposition (SVD) and measuring the angle concentration between rank-one component activations and hidden states, this approach identifies low-contribution rank components for safe pruning. Unlike gradient-based methods that require backpropagation or expensive exhaustive searches, this forward-only strategy significantly reduces peak memory usage and search costs while maintaining comparable accuracy across various reasoning tasks.
I. Background and Challenges
Large Language Models (LLMs) face practical constraints regarding high memory usage and significant computational latency during inference services. To improve throughput without significantly sacrificing accuracy, techniques such as low-rank approximation, dynamic sparsification, and adaptive weight pruning have become common approaches. The core challenge lies in determining at a low cost which weight matrices and rank components can be safely pruned.
Traditional solutions typically rely on gradient information for importance evaluation, requiring backpropagation. This leads to high peak memory usage and makes real-time execution difficult during inference services. Another category of solutions employs exhaustive search, attempting various pruning configurations through multiple forward passes. While accuracy is acceptable, the search cost is too high to meet online adaptive requirements. The method discussed in this article restricts the search within the forward propagation itself. It leverages the differences in activation behavior among Singular Value Decomposition (SVD) components and uses angle concentration as a contribution metric to achieve adaptive rank reduction with low peak memory and a high speedup ratio.
II. Core Concept: Measuring Rank Contribution via Angle Concentration
After performing SVD on a weight matrix, it can be decomposed into multiple rank-one components. In standard forward propagation, the sum of the activations induced by all components is equivalent to the activation of the original weight matrix. By individually observing the angle relationship between the activation induced by each component and the current hidden state, it becomes evident that different components affect the direction of the hidden state differently. Some components significantly disperse the activation direction, while others keep the activation direction highly concentrated.
Angle concentration is used to characterize this difference: if the angle distribution between the activation induced by a component and the hidden state is relatively concentrated, it indicates that the component contributes little to changing the hidden state’s direction and can be considered a low-contribution rank. Conversely, if the angle distribution is dispersed, the component significantly impacts the hidden state’s direction and should be prioritized for retention. Consequently, the angle concentration of each SVD component translates into a contribution metric for the hidden state’s angle concentration. The forward search only needs to measure the angle concentration of components across weight matrices and select the weight matrix with the highest dispersion for rank reduction, thereby completing the adaptive pruning decision in a forward-only manner.
III. Method Details
3.1 SVD Decomposition and Component Activation
Let (W) be a weight matrix and (h) be the hidden state. Perform SVD on (W):
[
W = U \Sigma V^T
]
Expand it into several components (W_r = u_r \sigma_r v_r^T). Calculate the activation for each component individually:
[
a_r = W_r h
]
Due to the linear additivity of SVD, the sum of all component activations satisfies:
[
\sum_r a_r = W h
]
This ensures that “component decomposition and aggregation” does not alter the standard forward propagation result, providing a recoverable baseline for subsequent angle concentration calculations.
3.2 Definition and Calculation of Angle Concentration
For each component (r), calculate the angle relationship between its activation (a_r) and the hidden state (h), such as the cosine of the angle or normalized directional difference. Angle concentration can be defined as the concentration degree of this angle distribution across sample or channel dimensions, for instance, using variance, entropy, or quantile statistics of the angle distribution. High concentration indicates that the direction change induced by the component is aggregated, implying a small contribution; high dispersion indicates a significant change to the hidden state’s direction, implying a large contribution.
The key advantage of this metric is that it requires only forward activations, without needing gradients or a backward graph. In practical implementation, angle concentration can be statistically evaluated over a batch of inputs, or it can be calculated in parallel by caching component activations during a single forward pass.
3.3 Forward Search Workflow
The forward search includes the following steps:
- SVD Decomposition: Perform SVD on candidate weight matrices to obtain multiple rank components.
- Component Activation Aggregation: Calculate the activation for each component and verify that their sum recovers the standard forward propagation.
- Angle Concentration Calculation: Compute the angle concentration between the activation and the hidden state for each component.
- Weight Matrix Selection: Measure the angle dispersion of each weight matrix during forward propagation and select the matrix with the highest dispersion for rank reduction in the current round.
- Adaptive Rank Reduction: Prune the ranks in the selected matrix that have high angle concentration (low contribution), then proceed with subsequent inference.
The core logic can be illustrated with the following pseudocode:
Input: weight matrix set {W_l}, hidden state h, candidate rank setOutput: rank-reduced weight matrixfor each candidate W:(U, Σ, V^T) = SVD(W)for each rank component r:a_r = u_r * σ_r * v_r^T * hc_r = angle_concentration(a_r, h)verify sum(a_r) ≈ W * hrecord the angle dispersion of W: D(W) = dispersion(c_r)select the weight matrix W* with the highest D(W)prune the ranks in W* with high c_r (concentrated)return the rank-reduced W*
3.4 Comparison with Gradient and Exhaustive Search Methods
Gradient-based methods require constructing a backpropagation graph, so peak memory is typically higher than forward-only solutions. The forward search does not store gradients, resulting in lower memory usage, and it can reuse activation caches from the inference process. Compared to exhaustive search, the forward search does not require executing full forward passes repeatedly for numerous candidate combinations. Instead, it evaluates component contributions all at once via angle concentration, yielding a higher speedup ratio. Experiments show that across tasks such as knowledge reasoning, knowledge intervention, multi-hop reasoning, fact verification, fairness and bias evaluation, hallucination detection, and information retrieval, the forward search method achieves lower peak memory and higher speedup ratios than gradient methods, and higher speedup ratios with comparable accuracy than exhaustive search methods.
IV. Experimental Results and Analysis
The experiments cover various reasoning and evaluation tasks, focusing on three metrics: task accuracy, peak memory usage, and end-to-end speedup ratio. The trend of the results indicates that the forward search significantly reduces computation during the search phase while maintaining accuracy comparable to exhaustive search. Compared to gradient methods, omitting backpropagation and gradient storage results in a notable decrease in peak memory and an increase in speedup. This is because angle concentration relies solely on forward activation statistics, and its computational granularity aligns with the inference process, facilitating dynamic execution per batch or per request in services.
It is worth noting that the effectiveness of this method depends on the alignment between the angle concentration metric and the task distribution. For tasks sensitive to directional changes, pruning must be more conservative; for weight matrices with high redundancy, rank reduction can be more aggressive. In actual deployment, calibration set statistics and online monitoring can be combined to set concentration thresholds and rank reduction limits to prevent accuracy regression caused by excessive pruning.
V. Advantages, Limitations, and Future Directions
Advantages: The forward-only search reduces memory and implementation complexity; the additivity of SVD component activations ensures consistency with standard forward propagation; angle concentration provides an interpretable metric for rank contribution; and adaptive weight matrix selection makes pruning more targeted.
Limitations: SVD itself incurs a certain computational overhead, which can be mitigated through offline pre-decomposition or incremental updates; angle concentration is a statistical metric sensitive to distribution shifts and needs to be paired with threshold strategies; the contribution differences across different layers and matrices are significant, requiring the design of hierarchical search strategies.
Future Directions: Integrating angle concentration with signals like activation magnitude and gradient approximations; dynamically adjusting rank reduction budgets based on request types in services; and combining caching with parallel computing to further reduce search latency.
VI. Conclusion
This article focused on the concept of “achieving adaptive rank reduction using forward propagation only” and introduced a method that utilizes the differences in angle concentration between SVD component activations and hidden states to measure rank contributions. The workflow includes SVD decomposition, component activation aggregation, angle concentration calculation, weight matrix selection, and rank reduction. Experimental results demonstrate that this method achieves lower peak memory and higher speedup ratios than gradient methods, and higher speedup ratios with comparable accuracy than exhaustive search methods across multiple reasoning tasks. For scenarios that require dynamic model compression during inference services while controlling search overhead, this forward search paradigm provides a practical and interpretable technical path.
