Manuscript Offprint

arXiv:2610.13568

Rationally Linearized MLPs

Arijit Sehanobish, Byeongchan Kim, Avinava Dubey, Min-hwan Oh, Krzysztof Choromanski

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 INTRODUCTION AND RELATED WORK

Nonlinear processing modules are at the heart of modern deep learning and are critical to modeling complex phenomena with machine learning (ML) approaches (Goodfellow et al., 2016; Hinton et al., 2006). Virtually all modern ML systems are built around one or both of the fundamental building blocks: multi-layer perceptrons (MLPs) and the attention layers. Both are highly nonlinear functions of their inputs, and their combination yields high-capacity models that can approximate complex functions while remaining amenable to robust training.

However that expressiveness comes at the cost: a non-negligible computational footprint which is quadratic in the sequence of the input length for the attention layers and quadratic in the dimensionality of the input for the MLPs. That poses practical challenges and led to fruitful research on efficient attention layers in Transformers(Tay et al., 2023; Elouargui et al., 2023; Choromanski et al., 2021; Kitaev et al., 2020). With recent improvements to efficient attention mechanism, reducing the computational cost of MLPs has become increasingly important. This is in part because the highly optimized attention computation often makes MLPs the new computational bottlenecks for Transformers, in particular when d2≫Ld^2 \gg L for the input dimensionality dd and sequence length LL. Furthermore, MLPs are ubiquitous in ML and are present also in modern ML architectures that are not attention-based, e.g. implicit 3D-models such as Neural Radiance Fields (NeRFs) (Mildenhall et al., 2022), Signed Distance Fields (SDFs) (Ortiz et al., 2022) or in Physics Informed Neural Networks (PINNs) (Raissi et al., 2019).

A single layer of the MLP processing unit for the input vector x∈Rd\mathbf{x} \in \mathbb{R}^d, can be seen as a map:

x→f(Wx)∈Rdout,(1)\mathbf{x}\to f(\mathbf{W}\mathbf{x})\in\mathbb{R}^{d_{\mathrm{o u t}}}, \tag{1}

where W∈Rl×dout\mathbf{W} \in \mathbb{R}^{l \times d_{\text{out}}} is a learned matrix of weights and f:R→Rf : \mathbb{R} \to \mathbb{R} is a fixed non-linear activation function applied element-wise. The mapping defined in Eq. 1 is a non-linear function of x\mathbf{x} but it can be approximated by a product of two feature maps, f(Wx)≈Ψ(W)Φ(x)f(\mathbf{W}\mathbf{x}) \approx \Psi(\mathbf{W})\Phi(\mathbf{x}) where Φ(x)\Phi(\mathbf{x}) depends only on the input and Ψ(W)\Psi(\mathbf{W}) depends only on the weights. More specifically, we consider layers of the form

x→Ψ(W)Φ(x),(2)\mathbf{x}\to\Psi(\mathbf{W})\Phi(\mathbf{x}), \tag{2}

where Φ,Ψ:Rd→RF\Phi, \Psi : \mathbb{R}^d \to \mathbb{R}^F are nonlinear, potentially randomized feature maps, with Ψ\Psi applied row-wise to W\mathbf{W}. We will refer to the map defined above as the (Ψ,Φ)(\Psi, \Phi)-linearized PL (perceptron layer). It

∗^{*}Equal Contribution was shown in (Sehanobish et al., 2024) that for large classes of the activation functions ff, randomized maps Φ=Φf\Phi = \Phi_f, Ψ=Ψf\Psi = \Psi_f can be constructed with the use of Random Fourier Features (RFFs) (Rahimi & Recht, 2007; 2008) in such a way that the mechanism proposed in Eq. 2 provides an unbiased estimation of the map from Eq. 1:

f(Wx)=E[Ψf(W)Φf(x)],(3)f(\mathbf{W}\mathbf{x})=\mathbb{E}[\Psi_{f}(\mathbf{W})\Phi_{f}(\mathbf{x})], \tag{3}

with the expectation taken with respect to the randomness in Ψf\Psi_f, Φf\Phi_f (often one can take: Ψf=Φf\Psi_f = \Phi_f). Note that Eq. 2 is linear in Φ(x)\Phi(\mathbf{x}) and that fact itself directly leads to straightforward computational improvements (Sehanobish et al., 2024). The key observation is that even though the map x→Ψ(W)Φ(x)\mathbf{x} \to \Psi(\mathbf{W})\Phi(\mathbf{x}) is still non-linear in x\mathbf{x}, as a linear transformation of Φ(x)\Phi(\mathbf{x}), it disentangles the input x\mathbf{x} from the weight matrix W\mathbf{W}, only to entangle them at the end of the entire computational process via simple dot-product calculations.

However achieving an approximation that is not only unbiased, but is also highly accurate, i.e. characterized by low variance, is in general a difficult problem. This challenge directly translates to the accuracy gap that is observed between multi-layer modules using (Ψ,Φ)(\Psi, \Phi)-linearized PLs and regular MLPs. For particular classes of activation functions, such as polynomials, random features based on tensor products can replace RFFs to provide a simple linearized mechanism with low variance (Kim et al., 2025).

Several other approaches were proposed to improve the computational efficiency of MLPs, yet most of them departure from the low-variance estimation of the regular MLPs. Many of these approaches focus on replacing W with its structured counterpart (Dao et al., 2019; Sindhwani et al., 2015; Li et al., 2025b), supporting sub-quadratic matrix-vector multiplication. For instance, Monarch-matrices (Dao et al., 2022) are defined as products of block-diagonal and permutation matrices. Their successors, the so-called Block Tensor-Train (BTT) matrices (Qiu et al., 2024) (containing Monarch-matrices as special cases), derive from the rich theory on Tensorized Neural Networks (Novikov et al., 2015), leveraging sums over Kronecker products.

In this paper, we revisit the (Ψ,Φ)(\Psi, \Phi)-linearized MLP framework in the context of recent work

Figure

Figure 1: Compression–quality trade-off across diverse model families. Each point represents a model family compressed using RaLiMPs.

suggesting that rational functions are particularly effective choices for MLP activations (Tang & Townsend, 2026). We show that ( Ψ\Psi, Φ\Phi)-linearized MLPs can achieve high accuracy while maintaining an attractive computational footprint when approximating low-degree rational activation functions. To the best of our knowledge, this combination has not been explored previously. Low-degree rational functions are also substantially easier to approximate accurately than the higher-degree functions considered in much of the prior work, making them well suited to random feature methods. Our contributions are as follows:

• We present Rationally Linearized Multilayer Perceptrons (RaLiMP), a novel ( Ψ\Psi, Φ\Phi) linearized layer and prove results on unbiasedness, variance and approximation errors (Sec. 2).

• We comprehensively test RaLiMP across various tasks like 3D modeling, vision and language modeling against other linearized MLPs and the baselines (Sec. 3).

References (100)

Couldn't load all references. Reload the page to try again.