Forward-Pass-Only Adaptation for LLM Inference: Measuring Singular Value Contributions via Angular Concentration

    Large language models often need task-level adaptation after pretraining, but conventional approaches either require expensive backpropagation or leave model weights untouched. This article explains an emerging forward-pass-only approach that uses the angular concentration of activations to identify which rank components of a weight matrix's SVD contribute most to a downstream task—and prunes the most disruptive ones. It covers the three major adaptation paradigms, the core insight behind angular concentration, the gradient-free three-step workflow, and the experimental trade-offs among memory, speed, and accuracy compared with gradient-based and exhaustive search baselines.

    Forward-Pass-Only Adaptation for LLM Inference: Measuring Singular Value Contributions via Angular Concentration

    Background: Three Technical Routes to Inference-Time Adaptation

    After pretraining, large language models typically need some form of adaptation to perform at their best on diverse downstream tasks. In current industry practice, mainstream adaptation approaches fall roughly into three categories:

    Route 1: Parameter tuning. Represented by parameter-efficient fine-tuning (PEFT) and prompt tuning, these methods update a subset of model parameters (or introduce a small number of trainable parameters) via backpropagation to fit a target task. They deliver stable results but carry two notable drawbacks. First, they depend on gradient backpropagation, which means extra GPU memory (activations, gradients, and optimizer states must be stored) and additional compute overhead. Second, the tuning process is separated from inference: the model cannot adapt while actively serving requests, and an offline training phase is unavoidable.

    Route 2: Knowledge augmentation. Represented by retrieval-augmented generation (RAG) and prompt engineering, these methods improve model performance by injecting external knowledge into the input context. The advantage is that no model weights are modified, making the approach lightweight and easy to deploy. But at its core it is merely “relocating external information”—the model’s internal representations remain unchanged, and it often falls short on tasks that require deeper capability adjustment.

    Route 3: Forward-pass-only learning. This is an emerging path in recent research: by relying solely on forward propagation and introducing no backpropagation at all, the model can adapt to downstream tasks during inference. This route combines the strengths of the previous two—it can reach down to the level of internal parameters while avoiding the resource costs of gradient computation—making it a highly promising adaptation strategy for LLM inference services.

    The core idea in one sentence: let the model keep evolving during inference, achieving downstream-task adaptation under a forward-only (backpropagation-free) computation mode.

    Core Idea: Using “Angular Concentration” to Measure the Contribution of Singular Value Components

    The key contribution of this method can be summarized as follows: it leverages the angular concentration of activations in a model’s forward pass to measure how much each rank component of a weight matrix’s singular value decomposition (SVD) contributes to those activations, and then prunes the corresponding rank components accordingly.

    Two prerequisite concepts are needed to understand this idea.

    1. Singular value decomposition of weight matrices. Applying SVD to a weight matrix W in a linear layer yields W = UΣVᵀ, where each singular value corresponds to a rank-1 component. The entire matrix can be viewed as a superposition of these rank-1 components. Intuitively, components with larger singular values seem more “important,” but a substantial body of existing research shows this intuition does not always hold at the downstream-task level—some high-singular-value components actually encode information that is harmful or redundant for the current task, and pruning them can even improve task accuracy. The open question is: how can we efficiently identify which components should be pruned?

    2. Angular concentration of activations. During the forward pass, an input passing through an SVD component produces a corresponding activation vector. Looking at how these activation vectors are distributed in angle across high-dimensional space, an interesting pattern emerges: some components produce activations whose directions are highly dispersed, while others produce highly concentrated ones. This difference in “angular concentration” happens to measure the component’s contribution to the overall angular structure of the final hidden state—whether it makes the representation more dispersed (introducing noise and disturbing the representation) or more concentrated (reinforcing the task-relevant principal direction).

    The key insight follows from these two concepts: the component with the highest angular dispersion is often the one that interferes most with the current task. Applying rank reduction to its corresponding weight matrix can compress computation without hurting accuracy—and sometimes even improves it.

    The entire forward search process requires no gradient information. One or a few forward passes are enough to identify the target components, in three steps.

    Step 1: Multi-component SVD decomposition. Perform singular value decomposition on each candidate weight matrix in the model (typically the linear projection matrices in attention layers or feed-forward networks), decomposing it into a sum of rank-1 components.

    Step 2: Reconstruct the standard forward pass by summing component activations. Exploiting the additivity of linear operations, let each SVD component act on the input independently to produce its own partial activation; the sum of all component activations exactly reconstructs the output of the standard forward pass. This guarantees that the decomposition does not alter the model’s original computation semantics—the analysis happens under an “equivalent transformation.” The following illustrative pseudocode helps clarify the idea:

    1. # Pseudocode: decompose the forward pass and compute per-component activations
    2. U, S, Vt = svd(W) # SVD decomposition of the weight matrix
    3. acts = []
    4. for i in range(len(S)):
    5. w_i = outer(U[:, i], Vt[i, :]) * S[i] # the i-th rank-1 component
    6. acts.append(x @ w_i) # forward pass through each component independently
    7. hidden = sum(acts) # sum reconstructs the standard output

    Step 3: Compute and rank angular concentration. Compute an angular concentration metric for each component’s activation vectors (for example, the variance or entropy of the cosine-similarity distribution against the principal direction of the hidden state). Rank all candidate weight matrices accordingly, identify the matrices with the highest dispersion and their corresponding high-interference rank components, and apply rank reduction to them.

    Because the whole process involves only forward matrix operations, it can naturally leverage the existing computation graphs and memory-management strategies of inference frameworks—no backward graph, gradient cache, or optimizer states are needed. This is the fundamental source of its resource efficiency.

    Experimental Results: A Three-Way Trade-off of Memory, Speed, and Accuracy

    The research team evaluated the method systematically on datasets spanning multiple capability dimensions, including knowledge reasoning, knowledge intervention, multi-hop reasoning, fact verification, fairness and bias assessment, hallucination detection, and information retrieval. They compared it against two classes of baselines:

    Comparison with gradient-based search. The conventional approach uses gradient information to estimate the importance of each rank component before deciding what to prune. Experiments show that the forward-only search method achieves substantially lower peak memory usage (because the large intermediate states required by backpropagation are eliminated) while delivering a higher speedup. This makes the method better suited for resource-sensitive online inference services.

    Comparison with exhaustive search. The exhaustive method finds the optimal solution by trying to prune each component one at a time and evaluating the result. It offers reliable accuracy but carries an extremely high search cost. Forward-only search uses angular concentration as an efficient “contribution proxy metric,” drastically compressing the search overhead. It achieves a far greater speedup than exhaustive search while maintaining comparable task accuracy.

    Taken together, without sacrificing effectiveness, the method simultaneously achieves a memory advantage over gradient-based methods and a speed advantage over exhaustive search—demonstrating that angular concentration is an effective proxy metric in engineering practice.

    Engineering Takeaways and Outlook

    This research offers several takeaways worth noting for LLM inference services:

    First, adaptation is not exclusive to training. With carefully designed forward-pass signals (such as angular concentration), parameter-level dynamic adjustment can be completed entirely within the inference pipeline—opening up new possibilities for a “serve-and-evolve” model operations model.

    Second, proxy metrics are the key to efficiency. Whether gradient-based or exhaustive, the bottleneck of existing approaches lies in “evaluating the true contribution of each component,” which is prohibitively expensive. The success of angular concentration shows that a cheap-to-compute proxy metric that correlates strongly with true contribution is often more valuable in engineering than an exact evaluation method.

    Third, the potential for integration with inference infrastructure is significant. Its forward-only nature means the method can be embedded relatively smoothly into existing inference engines and containerized deployment pipelines. Combined with general-purpose monitoring, alerting, and logging services, it becomes plausible to build elastic inference systems that automatically prune and optimize models based on traffic distribution.

    Going forward, exploring how to combine this forward-only adaptation with dynamic batching, model quantization, and cache reuse to further reduce the total cost of ownership of LLM serving will be a direction well worth pursuing.