LaProx: Proximal Methods in Optimization & LLM Inference
- LaProx is a term designating distinct proximal-based methods applied in long-context LLM inference, sequential feature extraction, and composite convex optimization.
- In long-context LLM inference, LaProx employs an output-aware, layer-wise KV cache eviction strategy to preserve model output accuracy while reducing computational overhead.
- Other variants of LaProx include a proximal-point solver for rank-one submatrix extraction and usage as the proximal gradient method, showcasing its diverse applications.
LaProx is a term used for several technically distinct methods in recent optimization and machine-learning literature. In long-context LLM inference, LaProx denotes an output-aware, layer-wise KV cache eviction strategy that reformulates eviction as a matrix-multiplication approximation problem (Mai et al., 8 May 2026). In earlier optimization work, LaProx denotes the “LAROS Proximal-point” algorithm for sequential feature extraction through approximately rank-one submatrices (Doan et al., 2011). A later French exposition also uses “LaProx” for the proximal gradient method, i.e. Forward–Backward splitting for composite convex minimization (Combettes, 18 Mar 2025). The common lexical element is proximal methodology, but the underlying objectives, operators, and application domains differ substantially.
1. Terminological scope and principal meanings
The main uses of the term can be organized as follows.
| Usage of “LaProx” | Domain | Defining formulation |
|---|---|---|
| LaProx | Long-context LLM inference | Output-aware, layer-wise cache eviction |
| LaProx (“LAROS Proximal-point”) | Sequential feature extraction | Proximal point algorithm for the LAROS problem |
| “LaProx” following “La Méthode du Gradient Proximé” | Composite convex optimization | Proximal gradient / Forward–Backward splitting |
The most recent usage is the cache-eviction method introduced in “Reformulating KV Cache Eviction Problem for Long-Context LLM Inference” (Mai et al., 8 May 2026). That work addresses the memory and runtime overhead created by KV cache growth in long-context decoding. By contrast, the 2011 usage concerns a convex optimization model for finding a “large approximately rank-one submatrix,” with sequential feature extraction from image data as the motivating application (Doan et al., 2011). The 2025 usage is broader and pedagogical: “La Méthode du Gradient Proximé” presents the proximal gradient method as a general splitting algorithm for minimizing the sum of two convex functions, one smooth and one possibly nonsmooth (Combettes, 18 Mar 2025).
A recurrent misconception is to treat “LaProx” as the name of a single canonical algorithm. The literature represented here does not support that interpretation. Rather, the term labels different proximal or approximation-based procedures in different subfields.
2. LaProx in long-context LLM inference: reformulating KV eviction
In the LLM setting, LaProx begins from a critique of conventional head-wise eviction. At layer and head , the cached keys and values induce attention
and a common heuristic assigns token the importance
Eviction then retains the top- tokens in each head according to (Mai et al., 8 May 2026).
LaProx replaces that head-wise, weight-averaging viewpoint with an output-aware, layer-wise approximation objective. The full multi-head output before the residual connection is written as
Cache eviction is therefore viewed as selecting a subset of token rows that best approximates the full product . Remark 1 in the same work states that the MHA output exactly decomposes additively per head: 0
This reformulation changes the object being preserved. Instead of preserving only average incoming attention to a token, LaProx explicitly targets preservation of the layer output after interaction with the projected value states and the output projection matrices. The paper identifies this as the central deficiency of pure attention-weight heuristics: they neglect value representations, output projection, and inter-head interactions.
3. Contribution metric, unified eviction, and computational profile
The LaProx score is motivated by classical Monte Carlo matrix-product sampling theory. For approximating 1 by row/column sampling, the variance is minimized by sampling index 2 with probability proportional to
3
Instantiating this in layer 4, head 5, the method first computes projected values
6
and then defines the raw eviction score
7
Here 8 is the 9-vector of attention weights pointing to token 0, and 1 is the 2-vector of its projected value (Mai et al., 8 May 2026).
The unified eviction algorithm allocates a total budget 3 entries across all layers and heads. It proceeds in three operational stages plus final selection. First, for each layer and head, it forms a prefill-window attention matrix from the last 4 queries,
5
Second, for each token index 6 older than 7, it computes 8 by equation (1), while assigning 9 to the last 0 positions so that a history window is always kept. Third, it flattens across heads via 1 and applies the layer-wise normalization
2
Global Top-3 selection is then performed across all 4, and all other entries are evicted from every layer’s 5.
The computational overhead is specified explicitly. Scoring each layer/head costs 6, flattening and normalization cost 7, and global top-8 over 9 items costs 0. Overall, the method adds only one matrix multiply per window plus a single sort of size 1, which the paper states is small in practice compared to full attention cost. The same discussion also characterizes LaProx as zero-parameter, requiring only one extra mat-mul per window and interoperating with any pretrained Transformer.
The theoretical contrast with head-wise heuristics is explicit. By the matrix-product sampling argument, selecting tokens by 2 aligns directly with preserving each layer’s output under a budget. Pure attention-weight heuristics ignore 3 and inter-head mixing via 4, so they can miss tokens with small attention weights but large projected contributions, or the converse.
4. Empirical behavior in long-context benchmarks and stated limitations
The evaluation in the cache-eviction paper uses LongBench and Needle-In-A-Haystack. LongBench comprises 16 datasets across Single/Multi-doc QA, summarization, few-shot, synthetic, and code completion; Needle-In-A-Haystack includes 1N-1T, 4N-1T, and 4N-4T retrieval tests. The models are Meta-Llama-3.1-8B-Instruct with a 128K window, Mistral-7B-Instruct with 32K, and Qwen3-8B with 32K. Cache budgets are 5 tokens, with history window 6. Metrics are F1, Rouge-L, Accuracy, and EditSim on LongBench as appropriate, retrieval accuracy on NIAH, and efficiency measures including peak GPU memory, prefill+eviction overhead, and per-token latency (Mai et al., 8 May 2026).
For Meta-Llama-3.1-8B at 128 tokens on average LongBench performance, the reported scores are: FullKV 7, SnapKV 8, AdaKV 9, CAKE 0, CriticalKV 1, and LaProx 2.
| Method | Avg. Score |
|---|---|
| FullKV | 49.51% |
| SnapKV | 42.31% |
| AdaKV | 43.12% |
| CAKE | 42.77% |
| CriticalKV | 42.88% |
| LaProx | 45.19% |
Under extreme compression at 128 tokens, the paper states that LaProx reduces accuracy loss by up to 3 compared to the best head-wise baselines. On Mistral-7B with a 256-token budget in Needle-In-A-Haystack retrieval, CriticalKV and LaProx are reported as 4 versus 5 on 1N-1T, 6 versus 7 on 4N-1T, and 8 versus 9 on 4N-4T. For efficiency on Llama-3.1-8B with 128 tokens and 128K context, FullKV memory is 0 and LaProx memory is 1, corresponding to 2; prefill overhead is 3 versus SnapKV 4; and decode is 5 faster than FullKV while being on par with SnapKV and AdaKV. The abstract further states that the method maintains model performance with only 6 of the KV cache across 19 datasets and consistently outperforms prior works across all configurations.
The paper also states limitations and potential extensions. The layer-wise normalization 7 is described as a simple fix for inter-layer scale disparity and may be improved by learned or adaptive normalizers. Proposed extensions include higher-order matrix-approximation bounds, leverage of head covariance in sampling, joint optimization of window size 8 per layer or per head, and combination with quantization for further memory savings. A practical claim in the discussion is that cutting the KV cache to 9 of full size while maintaining accuracy enables inference over 100K-token contexts on a single 80 GB GPU. This suggests that the method is intended not only as a compression heuristic but as a systems-level reformulation of the eviction objective.
5. LaProx as “LAROS Proximal-point” for sequential feature extraction
In the 2011 optimization usage, LaProx is the proximal-point algorithm developed for the LAROS problem, namely finding a “large approximately rank-one submatrix” (Doan et al., 2011). The data matrix 0 is nonnegative, and the target matrix 1 should be large in Frobenius norm while also approximately rank one. Doan and Vavasis proposed the convex formulation
2
where 3 is the nuclear norm, 4 is the entrywise 5 norm, and 6 controls the tradeoff between low rank and sparsity. An equivalent redundant splitting writes 7, 8 and minimizes
9
The proximal-point framework is then applied to 0, with
1
and
2
For 3, the Moreau–Yoshida regularization is
4
and the proximal map is
5
Optimality is equivalent to the fixed-point condition 6.
The evaluation of 7 proceeds by dualization. One forms the inner dual function
8
where 9, 0, and 1 splits into two adjoint parts 2 and 3. One then solves
4
and updates with closed-form proximal operators: 5 which soft-thresholds singular values, and
6
which soft-thresholds entries. The outer proximal-point iteration alternates approximate maximization of 7, primal updates for 8 and 9, and the convergence test
00
A notable aspect of this LaProx variant is its 01-optimality stopping criterion via duality. When the true optimal solution is rank one, 02 with 03, the paper derives exact KKT conditions with dual multipliers 04 satisfying block-wise inequalities and the spectral bound 05. Proposition 4.2 states that the outer loop can stop once an approximate singular triple 06 solves
07
to within 08, while feasible 09 satisfy tightened bounds
10
through a small projected-subgradient subroutine. When these conditions hold, the support of 11 and 12 is guaranteed to be exactly that of a rank-one optimal solution.
The sequential feature-extraction algorithm records the extracted feature, zeros out the identified submatrix 13, resets 14, and continues until no feature remains. On the sailboat bitmap example, 15 is 16, each 17 bitmap column has 3 of 5 possible boat components, and true rank-one submatrices correspond to hull, sails, rudder, and related parts. Dual-PPA plus the 18-test extracted 8 sequential features; using the 19-test allowed stopping after 10–20 outer iterations instead of 50–60, cutting total CPU by approximately 20. On the Frey face database, 21 is 22, the first ten features were extracted, and negative features were obtained by applying LaProx to 23. These experiments situate LaProx as a first-order method for a nuclear-plus-24 model rather than as a general-purpose proximal-gradient routine.
6. LaProx as proximal gradient and broader proximal context
In the 2025 exposition “La Méthode du Gradient Proximé,” LaProx refers to the proximal gradient method for the composite convex problem
25
where 26 is convex and continuously differentiable with 27-Lipschitz-continuous gradient, and 28 is proper, closed, convex, and possibly nonsmooth (Combettes, 18 Mar 2025). The proximal operator is
29
and the basic Forward–Backward update is
30
The text lists assumptions 31–32: 33 has 34-Lipschitz gradient, 35 has a computable proximal map, and optionally 36 is 37-strongly convex. Under 38–39, the method is well-defined and converges sublinearly; under 40, it converges linearly.
The corresponding convergence results are explicit. With fixed 41,
42
and under 43-strong convexity,
44
The same source presents FISTA, backtracking step sizes, block-coordinate proximal gradient, and proximal Newton or variable-metric variants. Applications listed include sparse linear regression, logistic-45 classification, TV-regularized image denoising, and matrix completion. In that usage, “LaProx” is a generic algorithmic framework rather than a task-specific method.
A broader proximal context is given by the U-Lagrangian for prox-regular functions. Liu, Eberhard, and Luo define prox-regularity through the lower quadratic model
46
near 47, construct the UV-decomposition
48
and define the U-Lagrangian
49
They prove prox-regularity, strict differentiability at 50, and strong metric regularity properties for 51 under stated conditions (Liu et al., 2015). Although that construction is not itself named LaProx in the source, it clarifies the proximal and variational background against which the other LaProx usages sit.
Taken together, these usages show that LaProx is best understood as a polysemous label rather than a single method. In long-context LLM inference it denotes an output-aware global eviction strategy; in sequential feature extraction it denotes a proximal-point solver for a nuclear-plus-52 convex program; and in composite optimization it serves as shorthand for the proximal gradient method. The shared theme is the use of proximal or approximation principles to control complexity while preserving the structure most relevant to the target objective.