Rationally Linearized MLPs
Anonymous authors
ICLR 2027
TL;DR. We present a new approach to efficiently linearizing MLPs using low-degree rational approximations, achieving competitive or improved accuracy.
Abstract. We present Rationally Linearized Multilayer Perceptrons (RaLiMPs), a new approach to efficiently linearizing MLPs using low-degree rational approximations of standard activation functions. Inspired by polynomial-based MLP linearization, we show that rational approximations can provide accurate representations at substantially lower degree. RaLiMPs exploit these approximations to construct kernel representations with narrow bottlenecks, enabling efficient composition across MLP layers. We provide theoretical guarantees for the resulting approximation and evaluate RaLiMPs across applications ranging from implicit 3D models to large language models. Our experiments demonstrate favorable accuracy--efficiency tradeoffs, with RaLiMPs achieving competitive or improved accuracy while substantially reducing inference cost.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 24 Nov 2026, 17:21 UTC.
- Rating
- 3/4
- Confidence
- 3/4
- Soundness
- 3/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper proposes Rationally Linearized Multilayer Perceptrons to approximate MLPs and accelerate the computations. The authors provided detailed mathematical analyses of their methods. Experiments are conducted to show that RaliMPs can save the computation memory.
Strengths
The method is supported by detailed mathematical analyses.
Experiments can also support the claims.
Weaknesses
The description "efficient" across the paper is not clear. Readers may tend to understand it as "time efficiency" rather than "space efficiency". This increased the difficulty for reading.
Questions for the authors
- Why can Eqn 1 be approximated by Eqn 2? I did not find the reason in the context.
- In Figure 2, I believe that the MSE is not small enough---is the task too difficult? I expect the MSE to be lower than
1e-3or even lower. Figure 2 seems to tell me that the networks are not trained sufficiently. Can the author find some easier tasks to compare them? I believe the MSE now is not low enough. - How does RaliMPs perform in CNNs? The authors may consider the parameter sharing in convolutions.
- In Figure 3, can the authors show the accuracy of baselines, namely the MLPs?
- In LLMs, how does the method run? Replace MLPs from the pre-trained models or train the whole models from the start?
- Is RaliMPs easy to train in large models? (including ViTs and LLMs)
3 comments
Dear Reviewer uNmD,
Thank you again for your positive assessment. In our response we clarify the meaning of "efficient", the step from Eq. 1 to Eq. 2 and the scale of the MSE in Fig. 2, add results for CNNs (ResNet-18 on CIFAR-100, 3 seeds). As the discussion period ends soon, we would be grateful for your feedback, and we are happy to clarify anything further. If our response addresses your questions, we would appreciate it if you would consider updating your score.
Sincerely,
The Authors.
Thanks for your detailed reply. All my concerns are addressed. I will maintain my score.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
The paper proposes Rationally Linearized MLPs (RaLiMPs), a replacement for feedforward layers based on separable approximations of rational activation surrogates. The surrogate is decomposed into a polynomial part and irreducible quadratic partial fractions. Polynomial terms use EUGen-style features, while rational terms are represented through Laplace integrals, discretized using Gauss–Laguerre quadrature, and estimated using real and imaginary components of complex Gaussian features. The resulting weight factors can be fused with a subsequent linear layer; a sketched Hadamard-product construction extends the approach to gated feedforward blocks.
The paper derives per-frequency unbiasedness, second-moment formulas, and an approximation-error decomposition. It evaluates the method against SNNK, EUGen, and other baselines across synthetic approximation, vision transformers, GPT-2, Qwen3-8B, point-cloud segmentation, and coordinate networks. The reported results suggest useful compression and inference gains, with accuracy retention varying across tasks and compression levels.
Strengths
-
The rational construction preserves the separability needed for efficient deployment. The partial-fraction and Laplace representation provides a concrete way to incorporate rational activation surrogates while retaining the separation between inputs and weights required for layer fusion (Sections 2.3–2.4 and Appendix C.4). This is a useful extension of existing kernelized MLPs: directly dividing separate approximations of a numerator and denominator would not generally preserve the same inner-product representation. The per-frequency unbiasedness and exact second-moment calculations also provide useful information about the estimator’s behavior and its dependence on input norms.
-
The evaluation provides meaningful evidence across several model families. The experiments include both training from scratch and adapting pretrained models, as well as transformers and coordinate networks. Several comparisons with the closest kernelized-MLP baselines are favorable. For example, at k=22, PTv3 obtains 77.33 ScanNet mIoU versus 77.57 for the dense model, while the summed MLP latency decreases from 12.31 to 6.44 ms (Tables 2–3). For GPT-2 at k=30, perplexity is 15.69 versus 16.44 for SNNK and 18.42 for EUGen (Table 17). These results support the potential practical value of the proposed layer beyond a single benchmark.
Weaknesses
- Several important experimental results do not reconcile with the stated protocols. Appendix D.6.1 specifies 30 problems for each AIME benchmark, and D.6.5 defines pass@16 as the fraction of problems for which at least one of 16 generated answers is correct. Under this definition, one evaluation run must produce a percentage of the form 100s/30 for an integer s. However, Table 1 reports AIME24 pass@16 values of 86.0 and 79.7, and AIME25 values of 77.5 and 75.3, for the two RaLiMP configurations. These values are incompatible with that protocol even after rounding to one decimal place. Independently, MATH500 is described as single-sample evaluation over 500 problems, so accuracy changes in increments of 0.2 percentage points; the reported 94.5 for RaLiMP at k=8 and 89.9 for SNNK at k=4 cannot arise under that description. An unstated average over evaluation runs or a different estimator could explain these discrepancies, but the manuscript does not document either.
There is also an unresolved issue in the synthetic experiment. Appendix D.1 specifies independent Uniform[0,1] entries for 256-dimensional inputs and weights, implying an expected preactivation of 64. This places tanh and sigmoid in their saturated regime. Even a simple rank-one linear predictor of the resulting near-constant target has an expected MSE of approximately 0.0013, whereas the low-rank errors in Figure 2 are approximately 0.2–0.5. Missing preprocessing or baseline constraints therefore need clarification. Together, these issues prevent a reliable interpretation of key evidence for approximation quality and preserved LLM capability.
- The claimed separation of approximation accuracy and cost is stronger than the established theory. The discussion on p. 5 and Theorem 3 in Appendix A.4 suggest that increasing the number of poles improves approximation accuracy without increasing variance, and that the rational method has the asserted accuracy–cost scaling. However, Corollary 1(ii) explicitly depends on pole widths and coefficients through A²/q⁴+B²/q² and an exponential factor involving 1/q. Combining multiple atoms also requires controlling their aggregate variance, while the total feature width F=1+Km+4J n_freq m grows with both the number of atoms and frequencies.
For a fixed rational surrogate and quadrature scheme, increasing m reduces the random estimation error but generally leaves the rational-fit and quadrature errors unchanged. Achieving a smaller total error may require changing the poles, coefficients, cutoff, or frequency count; their dependence on the target accuracy is not tracked in Theorem 3. Consequently, the claimed total accuracy–cost advantage over polynomial linearization is not established by the current argument. This matters because it is a central theoretical justification for the method, although it does not invalidate the basic separable feature construction. Corollary 2 also needs correction: conditioning or truncating Gaussian projections to obtain bounded variables generally changes their mean, so the stated Hoeffding argument requires an appropriate bias and failure-event treatment.
Questions for the authors
-
Clarification of the LLM evaluation protocol. What exact problem counts, numbers of generated samples, numbers of independent evaluation runs, and aggregation formulas produced Table 1? Please explain how the reported AIME pass@16 and MATH500 single-sample percentages arise under the definitions in D.6.1 and D.6.5. Per-problem correctness records, or the corresponding integer counts together with the aggregation code, would directly resolve this concern.
-
Clarification of the synthetic benchmark. What exact centering, scaling, normalization, bias treatment, and target construction were used for Figure 2? Under the distribution written in D.1, the expected preactivation is 64 and tanh/sigmoid are saturated. How does this setup produce the reported low-rank errors, given the much smaller error attainable by a simple rank-one predictor? Please clarify the baseline parameterization and provide the relevant data-generation and evaluation procedure.
-
Clarification and correction of the theoretical guarantee. In Theorem 3, which quantities are held fixed as the target error decreases? Can the claimed result be stated for total approximation error and total feature width, explicitly accounting for rational-fit error, quadrature error, pole widths, coefficient magnitudes, and frequency count? Please also clarify how Corollary 2 handles the change in expectation and exceptional event introduced by bounding Gaussian projections.
-
Clarification of the implemented input scale. Equation (33) prescribes τ² = c RMS(w·x), and Appendix C.1 explicitly explains why scaling τ itself this way is different. However, the experimental overview and Appendix D.2 state τ = c RMS(w·x), including τ = 4 RMS(w·x) for ViT. Which formula was actually used to generate the reported results? Since this changes both the approximated kernel and its variance, a precise implementation description is necessary.
Ethics concerns
Not applicable.
4 comments
We thank the reviewer for their reviews.
Table 1.
Thank you for checking these. The revised Table 1 is recomputed; the counts behind each cell are below.:
- problems per benchmark: AMC23 83, AIME24 30, AIME25 30, GPQA 198, GSM8K 1,319, MATH500 500, Minerva 272, OlympiadBench 674;
- 16 samples per problem for AMC23, AIME and GPQA, one sample for the other benchmarks, and one evaluation run per model;
- avg@16 = (correct samples) / (16 × problems), pass@16 = (problems with at least one correct sample) / (problems), single-sample accuracy = (correct answers) / (problems).
The counts behind every cell of the revised Table 1 (for AMC23, AIME and GPQA: correct samples / solved problems):
| AMC23 (/1328, /83) | AIME24 (/480, /30) | AIME25 (/480, /30) | GPQA (/3168, /198) | GSM8K (/1319) | MATH500 (/500) | Minerva (/272) | Olympiad (/674) | |
|---|---|---|---|---|---|---|---|---|
| k = 4 | ||||||||
| SNNK | 1012 / 73 | 258 / 21 | 228 / 20 | 1527 / 159 | 1221 | 448 | 110 | 447 |
| EUGen | 1050 / 75 | 275 / 22 | 237 / 21 | 1578 / 160 | 1227 | 451 | 117 | 438 |
| RaLiMP | 1092 / 80 | 293 / 26 | 251 / 24 | 1762 / 169 | 1260 | 464 | 124 | 475 |
| k = 8 | ||||||||
| SNNK | 880 / 70 | 215 / 20 | 190 / 18 | 1356 / 154 | 1191 | 437 | 103 | 421 |
| EUGen | 851 / 68 | 222 / 21 | 197 / 19 | 1121 / 141 | 1166 | 431 | 81 | 340 |
| RaLiMP | 1043 / 78 | 279 / 24 | 233 / 23 | 1619 / 166 | 1256 | 472 | 118 | 464 |
The conclusions are unchanged: RaLiMP is the best method on every benchmark at both k.
Synthetic benchmark.
We have added the clarifications about the dataset: Pre-activations are centered, and inputs and targets are standardized per coordinate, so MSE = 1 is the mean predictor; the revised App. D.1 states the full protocol. The target is therefore not near-constant, and the rank-one estimate does not apply. The low-rank baseline is the rank-r map VUx with no bias, and its errors are those of the optimal rank-r map: the trained model matches the closed-form reduced-rank regression solution on the same data (held-out MSE 0.49 vs. 0.50 at r = 16, GELU). The remaining error comes from the nonlinearity: even the full 256×256 linear map leaves 0.38 for GELU. Fig. 2 now reports held-out MSE.
Theorem 3 and Corollary 2.
As the reviewer notes, neither point affects the construction. Lemma 1 (unbiasedness), Prop. 1 (exact second moments), Cor. 1 (variance per atom) and Theorem 1 (total error) are unchanged. Theorem 3 and Corollary 2 are supporting results, and the revision makes their scope explicit.
Theorem 3. We restate it for a fixed surrogate and a fixed quadrature, and let only the number of random features vary; this answers the question of what is held fixed. The notation is that of the paper:
- the surrogate is , with and atoms (Eq. 14);
- the quadrature uses nodes ;
- each block uses m random projections, so the total width is (Sec. 2.4);
- and are the rational-fit and quadrature errors of Theorem 1, where is with its Laplace integral replaced by the retained nodes;
- and are the coefficient scales of Cor. 1(ii).
Here is the input scale of App. C.1 (Eq. 33). Consider inputs x and weight rows with and for a constant , and let , be the RaLiMP feature maps (Eq. 4). Define
where the supremum is over these inputs. comes from Cor. 1(ii) and from Prop. 2. The revised Theorem 3 states that, for every such input, the error , with the expectation over the random projections, is at most
so any target error is reached with total width
The bound depends on each quantity the reviewer asks about: the rational-fit error, the quadrature error, the pole widths , the coefficients through and , and the number of frequencies . The comparison with polynomial features is supported by Prop. 2, which is unchanged, and by the experiments in Fig. 2 and Tables 13–14.
Corollary 2. As in Prop. 1, the estimator of node is , where each summand depends on the -th Gaussian projection only through $\xi_{r} = \sqrt{s_{k}/2}\omega_{r}\cdot(x+w)/\tau. Fix and let . The bounded-projection condition is now the event
On every summand is bounded by , the same constant as in the original statement. Truncating to shifts the mean of each summand; assuming , we bound this shift in closed form by M/(2m), using the tail bound for a standard normal g and z0. The corrected statement is
i.e. the same Hoeffding rate with an added bias term of order .
Input scale.
All experiments use , applied to both towers, so the atom is evaluated at ; Eq. 33 is corrected. It is now Equation 46.
Dear Reviewer yM1E,
Thank you again for checking the protocol and the theory so carefully. In our response we recompute Table 1 and provide the integer counts behind every cell, restate Theorem 3 for a fixed surrogate and quadrature with each quantity you asked about made explicit, correct Corollary 2, and fix the input scale. As the discussion period ends soon, we would be grateful for your feedback, and we are happy to clarify anything further. If our response addresses your concerns, we would appreciate it if you would consider updating your score.
Sincerely,
The Authors.
Dear Reviewer,
With the rebuttal window closing soon, please let us know if our rebuttal has answered your questions. We would appreciate it if the Reviewer can adjust their score if their concerns are answered.
Best,
The Authors.
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 3/3
Read review
Summary
This paper introduces Rationally Linearized Multilayer Perceptrons (RaLiMP), a method for reducing the cost of MLP layers by approximating their activation functions with low-degree rational functions. The rational functions are decomposed into polynomial and quadratic-fraction terms, then represented with separable input and weight features using random projections and frequency quadrature. The authors analyze the estimator’s unbiasedness, variance, and approximation error over bounded pre-activation intervals. The method is motivated by limitations in prior random-feature MLP linearization approaches: Fourier-based constructions can be difficult to apply directly to some activations, while polynomial-feature approaches may require higher degrees and incur greater variance or feature costs.
The paper evaluates RaLiMP on synthetic layer approximation, ViT image classification, PTv3 point-cloud segmentation, GPT-2 and Qwen3 language models, NeRF, SIREN, and a PINN for the Burgers equation. The authors report that RaLiMP generally performs competitively with or better than the compared low-rank, SNNK, and EUGen methods at similar feature or inference budgets, while reducing parameters, memory, or latency in several settings. The Qwen3-8B experiments also apply supervised fine-tuning and on-policy distillation after replacing feedforward layers.
Strengths
RaLiMP addresses a specific limitation of prior random-feature MLP linearization methods. Its rational representation is designed to provide accurate activation approximations with relatively few features, while retaining the separable form needed to reduce MLP computation. The paper supports this design with analyses of approximation error and variance, making the connection between the motivation and the proposed method explicit.
The evaluation spans several model families and tasks, and reports both task performance and efficiency measures. This breadth provides evidence that RaLiMP can be applied beyond a single architecture or benchmark, and helps assess the trade-off between model quality and inference cost.
Weaknesses
1.The paper’s positioning relative to prior rational-function methods could be clearer. It compares RaLiMP mainly with MLP linearization methods such as SNNK and EUGen, but does not directly compare against other rational activation or rational approximation approaches. As a result, it is difficult to determine whether the gains come specifically from the proposed partial-fraction random-feature construction, from using a rational surrogate in general, or from their combination.
2.The theoretical error guarantee concerns a single-layer approximation for an individual input and weight vector, with pre-activations restricted to a bounded interval. The paper does not analyze how approximation errors propagate or accumulate across multiple layers. The theory therefore supports the single-layer approximation, but does not by itself establish an end-to-end error guarantee for deep networks with multiple replaced layers.
3.The Qwen implementation differs from the feature construction analyzed theoretically. The experiments normalize inputs to the unit sphere, clip the random-feature exponent, and train the random projections. These modifications may affect the estimator’s bias and variance, but the paper does not quantify their effects or explain which theoretical guarantees remain applicable to this implementation. The Qwen results are difficult to attribute to RaLiMP alone because the compressed models undergo supervised fine-tuning and on-policy distillation, which substantially improves some long-reasoning results. The paper does not clearly establish whether EUGen and SNNK use the same data, training pipeline, and budget, or provide a complete comparison before and after distillation. In addition, several major experiments lack results across multiple random seeds or uncertainty intervals, and the synthetic experiment primarily reports training MSE.
Questions for the authors
1.How does RaLiMP differ from prior rational activation and rational approximation methods, and can the authors provide a comparison that isolates the contribution of the proposed partial-fraction random-feature construction from the use of a rational surrogate itself?
2.Have the authors analyzed how approximation errors propagate or accumulate across layers? If not, could they report end-to-end output error as the number of replaced layers increases?
3.Could the authors provide separate Qwen ablations for input normalization, exponent clipping, and trainable random projections, quantify their effects on approximation error or variance, and clarify which theoretical results apply to the resulting implementation?
4.Do the Qwen3-8B EUGen and SNNK baselines use the same fine-tuning and distillation data, training budget, and checkpoint-selection criteria as RaLiMP? Could the authors report results before and after distillation for each method?
5.Could the authors report synthetic approximation error on independent test inputs and provide multiple-seed results or uncertainty intervals for the main downstream experiments? This would clarify the generalization and stability of the reported gains.
6 comments
We thank the reviewer for their reviews.
Relation to prior rational methods; surrogate vs. construction.
This is the central contribution, so we answer in detail.
Prior rational methods do not reduce cost. Rational functions have been used in two ways:
- As activations inside a dense MLP (Telgarsky, 2017; Molina et al., 2020; Boullé et al., 2020; Delfosse et al., 2024; Tang & Townsend, 2026). These improve expressivity but keep the full layer.
- As approximants of scalar functions (Padé; Newman, 1964; AAA, Nakatsukasa et al., 2018). These fit but say nothing about evaluating as an inner product.
Prior linearizations are not rational. The only separable constructions for MLPs are Fourier-type (SNNK) and polynomial (EUGen) features. A polynomial cannot represent bounded, saturating activations at low degree and diverges away from its expansion point (Sec. 1, Fig. 2).
The obstacle and our solution. A rational is not linearizable directly: dividing two separable estimates is not separable (as Reviewer yM1E also notes). RaLiMP removes the division. It decomposes the surrogate into partial fractions, writes each atom as a Laplace integral over , discretizes it by Gauss–Laguerre quadrature, and estimates each frequency with Gaussian features (Sec. 2.3–2.4). A sum of separable blocks is separable, so the layer collapses into the next linear map. The estimator is unbiased (Lemma 1), has exact second moments (Prop. 1) and a total-error bound (Thm. 1). App. B shows that polynomial and Fourier constructions are special cases of the same spectral representation. To our knowledge this is the first linearization of rational activations.
Isolating the surrogate from the construction. Two experiments separate the rational surrogate from the separable construction.
- Surrogate without the construction. We replace GELU in the last k layers of a dense ViT by our rational surrogate, with no random features, and train with the same recipe. This model keeps the full 4.72M-parameter MLP in each layer, yet it stays below the dense GELU model in every setting, and RaLiMP matches or exceeds it in five of the six settings with 17× fewer parameters per replaced layer. The rational activation alone therefore does not explain RaLiMP's results (see comment below).
- Construction without the rational term. EUGen is the same kind of separable construction with only the polynomial block, at the same width. RaLiMP outperforms it in every setting of Fig. 2 and Table 13, so the rational term is what improves the linearized layer.
References :
Neural Networks and Rational Functions. Telgarsky, ICML 2017
Padé Activation Units: End-to-end Learning of Flexible Activation Functions in Deep Networks. Molina et al. ICLR 2020
Rational neural networks. Boullé et al., Neurips 2020
Adaptive Rational Activations to Boost Deep Reinforcement Learning. Delfosse et al. ICLR 2024
Rational Neural Networks have Expressivity Advantages. Tang & Townsend ICML 2026
The AAA Algorithm for Rational Approximation. Nakatsukasa et al. SIAM Journal on Scientific Computing Vol 40 2018.
Rational approximation to . Newman 1964
Rational surrogate vs. construction.
Rational activations (PAU; Boullé et al.; Tang & Townsend) keep the dense MLP; RaLiMP makes them collapsible. A dense ViT with GELU replaced by our surrogate (no random features) reaches comparable accuracy to RaLiMP, at 17× more parameters per layer:
| top-1 | CIFAR-100 k=4 | k=11 | ImageNet k=4 | k=11 | Places365 k=4 | k=11 | MLP params / layer |
|---|---|---|---|---|---|---|---|
| Dense, rational surrogate | 87.0 | 76.7 | 80.7 | 73.9 | 57.2 | 55.4 | 4.72M |
| RaLiMP | 89.8 | 80.4 | 80.8 | 73.9 | 58.0 | 55.2 | 0.27M |
Error across layers.
Theorem 1 bounds one replaced layer at one input. We add the following end-to-end bound, with full proof, to the appendix.
Setting. Fix an input . For , let be the reference layer and its RaLiMP approximation, where are the random features of layer and is jointly measurable. Let h0=h0=x, , and . Let be a set that contains and, with probability one, . For a fixed z, write and , with the expectation over only.
Theorem. Assume that for every :
- (A1) for all ;
- (A2) are independent;
- (A3) for every : , and .
Let and . Then
If for all , then , and this bound is attained (identity layers with independent centered noise of variance ). For every , .
Proof. Let . By induction is -measurable, and by (A2) is independent of . Write , so .
Fix and put , which is -measurable. Then
We use a standard fact: if is -measurable, is independent of and is jointly measurable, then with . This follows from Tonelli's theorem, since and are independent for every . Apply it with and . For fixed and , the vector has mean zero and , so expanding the square gives ; every term is integrable. Hence
The cross term vanishes because the noise of layer has mean zero at every input, and the input depends only on the earlier layers. Almost surely , so
by (A1) and (A3). Minkowski's inequality gives , hence with . Since is nondecreasing and , induction gives , the first inequality.
For the second, for , so ; unrolling from gives the sum. If all , then exactly, and unrolling gives the stated bound. Finally, by Markov's inequality on , (if , then almost surely).
Application to RaLiMP. Consider a replaced layer with rows of . Its RaLiMP version is , where is the RaLiMP estimate of the hidden unit . Assume the inputs of the layer are normalized, . Then and for every input, so Theorem 1 and Cor. 1 hold uniformly: each unit has bias at most and variance at most some . Hence (A3) holds with
where is the spectral norm. The variance bound uses only , so the units may share random features. If is -Lipschitz, (A1) holds with , and layers that are not replaced have . If the reference network uses the truncated surrogate in place of , the RaLiMP layers are unbiased and the sharper bound applies.
The bound is additive in the layers when , which is consistent with what we measured empirically. Replacing the last k FFNs of Qwen3-8B at initialization, the KL to the dense model is 0.15, 0.37, 0.78 and 1.47 for , i.e. it grows roughly linearly with no compounding blow-up (which is what the theory predicts).
| k | 1 | 2 | 4 | 8 |
|---|---|---|---|---|
| KL / token | 0.15 | 0.37 | 0.78 | 1.47 |
| Top-1 agreement | 89% | 86% | 77% | 63% |
Fine-tuning then closes the gap (Table 1); Results in F.2.2 show the trained effect of .
Normalization, clipping, trainable projections.
-
Frozen projections.
-
We trained Qwen3-8B Stage 1 with every random projection frozen at its Gaussian initialization, with everything else as in the paper. Freezing changes accuracy by about 2 points and also slightly raises the training loss:
| k=4 trained | k=4 frozen | k=8 trained | k=8 frozen | |
|---|---|---|---|---|
| AMC23 (avg@16) | 75.2 | 73.9 | 71.8 | 70.3 |
| AIME24 (avg@16) | 51.0 | 50.8 | 42.3 | 39.6 |
| AIME25 (avg@16) | 43.3 | 41.5 | 34.2 | 33.3 |
| MMLU | 71.7 | 70.3 | 70.7 | 69.4 |
| Final training loss | 0.832 | 0.841 | 0.839 | 0.843 |
- ViT-B/16. Fine-tuning with the projections frozen at their initialization.
| ViT-B/16 | k=4 trained | k=4 frozen | k=11 trained | k=11 frozen |
|---|---|---|---|---|
| CIFAR-100 | 89.8 | 87.0 | 80.4 | 75.5 |
| ImageNet-1k | 80.8 | 80.6 | 73.9 | 68.6 |
- Normalization. On real Qwen3-8B activations (‖x‖ = 33–67), unnormalized features overflow on 39–99.9% of outputs; with unit-norm inputs, none do.
- Clipping. It never activates on input features; with trained projections it activates on at most 8 of 1.77M weight-side features per layer, and without it training diverges.
- Theory. Normalization is covered as stated: the results hold with , replaced by , , and the variance bound becomes uniform (). The clip is a numerical safeguard, like gradient clipping, that never activates for this estimator. With trained projections the results describe the initialization.
Finally we would like to point out that these choices are standard practice for random-feature models. The spectral distribution of the random features is learned in kernel learning (Yang et al., 2015; Li et al., 2019) and in random-feature attention (Chowdhury et al., 2022), and learned feature maps replace random ones when pretrained Transformers are converted to linear attention (Kasai et al., 2021; Zhang et al., 2024; 2025), as in our Qwen3-8B setting. Performer (Choromanski et al., 2021) fine-tunes a pretrained Transformer after the swap, redraws its projections during training and uses a numerical stabilizer; RFA (Peng et al., 2021) ℓ2-normalizes queries and keys and notes that bounded features stabilize training; and Qin et al. (2022) stabilize kernel attention by normalization. Other types of truncations like Taylor polynomial approximations (Arora et al. 2024, Kacham et al. 2023) and locally sensitive sparse truncations are also common in the literature. (Chen et. al 2021).
References :
Rethinking attention with performers. Choromanski et al. ICLR 2021
Random Feature Attention. Peng et al. ICLR 2021
On Learning the Transformer Kernel. Chowdhury et al. TMLR 2022
The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry. Zhang et al. ICLR 2024
LoLCATs: On Low-Rank Linearizing of Large Language Models. Zhang et al. ICLR 2025
Finetuning Pretrained Transformers into RNNs. Kasai et al. EMNLP 2021
Implicit Kernel Learning. Li et al. AISTATS 2019
The Devil in Linear Transformer. Qin et al. EMNLP 2022
A la Carte – Learning Fast Kernels. Yang et al. AISTATS 2015
Simple linear attention language models balance the recall-throughput tradeoff. Arora et al. 2024
PolySketchFormer: Fast Transformers via Sketching Polynomial Kernels. Kacham et al. 2023
Scatterbrain: Unifying Sparse and Low-rank Attention Approximation. Chen et al. Neurips 2021
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the reviewer for their reviews.
Thank you very much for the comment. We mean here inference cost: deployed parameters, memory and latency (Fig. 3, Tables 3 and 11); the revision says so.
Eq. 2 is a random-feature approximation of Eq. 1 (Eq. 3); Sec. 2 constructs it, Lemma 1 shows it is unbiased and Theorem 1 bounds its error. We will clarify this in the camera ready version of the paper.
Thank you for an excellent question.
The values in Fig. 2 are on a relative scale, so they should not be compared with an absolute threshold such as 10⁻³. Each output coordinate of the target is standardized to mean 0 and variance 1 over the inputs. On this scale:
Without standardization the same fit could show an arbitrarily small MSE simply because the raw targets vary little, so we report the scale-free version. We have added this explanation to App. D.1. The values in Fig. 2 reflect the task, not under-training:
RaLiMP is the only method that goes below the uncompressed linear map: for GELU already at 16 features (0.34) and down to 0.23 at 128; for tanh and sigmoid at 128 features. For comparison, on SIREN image fitting (Fig. 5) RaLiMP reaches 41.0 dB PSNR, i.e. MSE ≈ 8×10⁻⁵.
In a CIFAR ResNet-18 trained on CIFAR-100 (3 seeds), RaLiMP in the last k blocks gives:
The dense ViT is the dashed "baseline" line (92.0 / 81.9 / 58.2, Table 13); we now label it. And we have also added the baseline ViT numbers for VTAB tasks in the caption.
We replace the last k FFNs of pretrained Qwen3-8B and train them (SFT, then distillation); GPT-2 is trained from scratch. We will clarify this in the camera ready version of the paper.
Training is stable for ViT and GPT-2 and generally follows the trajectories of EUGen and SNNK. For LLMs, (1) large model sizes and (2) the fact that no prior random feature method attempted this before need to be taken into account. However with unit normalization and exponent clipping, training is stable.
Finally we would like to point out that the presented recipe to incorporate these linear MLP methods is novel and has not been attempted in the past to the best of our knowledge.