Skip to main content
QUICK REVIEW

[Paper Review] NLI:Non-uniform Linear Interpolation Approximation of Nonlinear Operations for Efficient LLMs Inference

Jiangyong Yu, Xiaomeng Han|arXiv (Cornell University)|Feb 3, 2026
Natural Language Processing TechniquesComputer Science0 citations
TL;DR

NLI introduces a calibration-free, dynamic-programming–optimal non-uniform linear interpolation to approximate nonlinear operators in LLMs, enabling a reusable lookup-table approach and a plug-and-play hardware engine with substantial efficiency gains.

ABSTRACT

Large Language Models (LLMs) have demonstrated remarkable performance across a wide range of tasks, but their deployment is often constrained by substantial memory footprints and computational costs. While prior work has achieved significant progress in compressing and accelerating linear layers, nonlinear layers-such as SiLU, RMSNorm, and Softmax-still heavily depend on high-precision floating-point operations. In this paper, we propose a calibration-free, dynamic-programming-optimal, and hardware-friendly framework called Non-uniform Linear Interpolation (NLI). NLI is capable of efficiently approximating a variety of nonlinear functions, enabling seamless integration into LLMs and other deep neural networks with almost no loss in accuracy. NLI ingeniously recasts cutpoint selection as a dynamic-programming problem, achieving the globally minimal interpolation error in O(MxN2) time via Bellman's optimality principle. Based on the NLI algorithm, we also design and implement a plug-and-play universal nonlinear computation unit. Hardware experiments demonstrate that the NLI Engine achieves more than 4x improvement in computational efficiency compared to the state-of-the-art designs.

Motivation & Objective

  • Motivate the need for efficient nonlinear operation acceleration in LLMs due to high FP32 cost of nonlinear layers (e.g., Softmax, RMSNorm, SiLU).
  • Propose a calibration-free, globally optimal non-uniform interpolation framework (NLI) that yields reusable LUTs across models and layers.
  • Develop a hardware-friendly NLI Engine with two-level address translation to improve throughput, area, and power.
  • Demonstrate software accuracy retention across LLMs (Qwen, LLaMA) and other DNNs, and hardware efficiency gains against state-of-the-art units.

Proposed method

  • Cast cutpoint placement as a dynamic programming problem to minimize mean relative interpolation error over FP16 grid with M cutpoints, yielding a calibration-free LUT.
  • Solve the DP with Bellman optimality, achieving global optimality in O(M N^2) time (N FP16 points, M cutpoints).
  • Adopt a two-level address translation in hardware to reduce comparators from 259 to 10, enabling efficient LUT lookup and interpolation.
  • Design the NLI Engine as a plug-and-play nonlinear computation unit with a four-stage pipeline for major-interval selection, micro-address generation, LUT read, and interpolation.
  • Evaluate software: substitute NLI for nonlinear operators in Llama and Qwen without calibration and with negligible accuracy loss; evaluate on vision models (ViT, CNNs) for generality.
  • Evaluate hardware: synthesize NLI in SMIC 28nm, compare area, power, throughput, and efficiency against NN-LUT and RI-LUT.
Figure 1: (a) Range of SiLU activations in representative LLMs; values can exceed $\pm 100$ (e.g., Qwen2.5-32B, Qwen3-8B). (b) Wikitext-2 perplexity (log-scale) with FP32, NN-LUT, and our NLI . NN-LUT collapses when outliers occur—perplexity skyrockets up to $7.0{\times}10^{4}$ —whereas NLI matches
Figure 1: (a) Range of SiLU activations in representative LLMs; values can exceed $\pm 100$ (e.g., Qwen2.5-32B, Qwen3-8B). (b) Wikitext-2 perplexity (log-scale) with FP32, NN-LUT, and our NLI . NN-LUT collapses when outliers occur—perplexity skyrockets up to $7.0{\times}10^{4}$ —whereas NLI matches

Experimental results

Research questions

  • RQ1Can a calibration-free, globally optimal non-uniform interpolation scheme approximate nonlinear operators in LLMs with negligible accuracy loss across diverse models?
  • RQ2Does the NLI LUT generalize across LLMs and vision models, and how does its hardware footprint compare to existing nonlinear computation units?
  • RQ3What are the practical software and hardware gains (accuracy, latency, area, power, throughput) when deploying NLI in real LLM/NNP workloads?

Key findings

  • NLI preserves near FP32 fidelity for nonlinear operators across representative LLMs and vision models, with negligible accuracy loss.
  • Replacing nonlinear operators with NLI in Llama and Qwen yields no accuracy drop on zero-shot benchmarks and maintains competitive perplexity on Wikitext-2.
  • Hardware evaluation shows the NLI Engine achieves over 4× efficiency improvements versus state-of-the-art nonlinear units (NN-LUT and RI-LUT).
  • Compared to NN-LUT and RI-LUT, NLI reduces area by ~68–69% while delivering similar throughput at 1 GHz and lower power consumption.
  • A two-level address translation design cuts required comparators from 259 to 10, enabling a compact, fast, and pipelined nonlinear unit.
  • DP-based LUT construction with 11 macro endpoints (plus 259 total cutpoints) yields a globally near-optimal interpolation with worst-case error under 1.2e-3 over FP16 inputs.
Figure 2: Approximation quality of the SiLU activation over the range $[-150,150]$ , which covers $\geq$ 99.9% of activations under our measurement protocol (see Figure. 1 (a) and Appendix. A.4 ). Panel (a) and Panel (b) show the result of NN-LUT, and panel (c) shows our NLI framework. For each meth
Figure 2: Approximation quality of the SiLU activation over the range $[-150,150]$ , which covers $\geq$ 99.9% of activations under our measurement protocol (see Figure. 1 (a) and Appendix. A.4 ). Panel (a) and Panel (b) show the result of NN-LUT, and panel (c) shows our NLI framework. For each meth

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.