The SETAREH Transform: Sorting-Assisted Haar Wavelet Sparsification for Accelerated Inner Product Computation

SETAREH uses sorting plus Haar wavelets to concentrate energy, compressing input vector inner product computation with controllable error.
SETAREH (Sorting-assisted Haar Wavelet Energy-concentrating Transform) addresses the representation cost of recurring input vectors in high-dimensional inner products by using sorting to cluster elements with similar values, then applying the Haar wavelet transform to compress energy onto a few coefficients; after truncating many near-zero coefficients, inner products can still be well approximated. Since the same transform sequence is applied to both coefficient and input vectors, the inner product is exactly preserved before truncation, and the error comes only from transform-domain truncation and can be adjusted by the number of retained pairs. Synthetic Gaussian experiments and the APPA-REAL apparent age estimation task show that the method can approximate inner products with far fewer coefficient-input pairs than the original dimension, but the storage and transmission cost of sorting metadata offsets some of the benefit. Unlike model-side compression such as pruning, quantization, and knowledge distillation, SETAREH focuses on data-side compression, suitable for edge inference and distributed scenarios with fixed weights and frequent input arrivals; its experimental scale is limited, and error propagation and hardware co-design remain to be studied.
In deep learning systems, high-dimensional vector inner products are ubiquitous—from fully connected layers to attention mechanisms to model inference on edge devices. However, when input vectors need to be repeatedly stored, transmitted, and processed, memory bandwidth and communication overhead often become bottlenecks. Traditional compression methods such as pruning, quantization, and knowledge distillation mainly target model parameters, but pay less attention to the representation cost of the input vectors themselves. A new paper proposes the SETAREH transform, which attempts to start from structured sparsification of input vectors, significantly reducing the number of dimension pairs involved in computation while maintaining the accuracy of inner product approximation.

Core Idea: Concentrating Energy with Sorting and Wavelet Transform
SETAREH stands for "Sorting-assisted Energy-concentrating Transform for Approximate Representation using Haar wavelets." Its goal is clear: given a fixed high-dimensional coefficient vector (e.g., model weights) and a series of input vectors, how can we approximate their inner products using fewer coefficient-input pairs?
The key insight is that the energy of high-dimensional vectors is usually unevenly distributed. By applying a sorting operation to cluster elements with similar values, and then applying the Haar wavelet transform, energy can be compressed onto a small number of transformed coefficients. Thus, after truncating a large number of near-zero coefficients, the inner product can still be well approximated.
You may not have noticed that SETAREH applies exactly the same permutation and Haar transform sequence to both the coefficient vector and the input vector, so before truncation, the inner product is exactly preserved. Truncation only occurs in the transform domain, and the introduced approximation error is controllable.
The Haar wavelet transform is the simplest discrete orthogonal wavelet transform, proposed by Alfréd Haar in 1910. For vectors of length a power of 2, it performs averaging and differencing layer by layer: at each level, adjacent elements are paired, and their sum (approximation coefficients) and difference (detail coefficients) are computed, then the process is recursively repeated on the approximation coefficients. The transform matrix is orthogonal, so the inverse transform only requires transposition, and the computational complexity is only O(n). The Haar wavelet is characterized by extreme simplicity, requiring no multiplication (only addition, subtraction, and division by 2), making it very suitable for hardware implementation and low-power scenarios. However, its frequency-domain localization ability is weak, and its sparse representation of smooth signals is inferior to more complex wavelets such as Daubechies. In SETAREH, the Haar wavelet's role is to further transform the energy-concentrated vector after sorting into a sparse domain, so that a large number of detail coefficients are close to zero and can be truncated without significantly affecting the inner product.
Preservation of inner products in the transform domain is a key property of this method. If the same orthogonal transform T is applied to two vectors, the inner product is preserved: ⟨Tx, Ty⟩ = xᵀTᵀTy = xᵀy. SETAREH exploits this property by truncating only small coefficients in the transform domain after sorting and Haar transform, thereby limiting the approximation error to the truncated terms. Understanding this helps grasp why the method can control error while compressing.
Controllable Approximation Error and Metadata Cost
The appeal of SETAREH lies in its provision of a "tuning knob": how many transformed coefficient-input pairs to retain directly determines the trade-off between approximation accuracy and representation cost. The paper validates this through two complementary experimental scenarios.
The first is a synthetic Gaussian vector baseline, used to observe the trend of approximation error as the number of retained pairs varies under controlled conditions. The second is a real task—apparent age estimation using a convolutional neural network on the APPA-REAL dataset. The results show that SETAREH can approximate inner products using far fewer transformed coefficient-input pairs than the original vector dimension, with error remaining within an acceptable range.
However, this benefit is not without cost. Sorting and transformation require storing or transmitting permutation metadata; when input vectors change frequently, the metadata overhead may offset some of the savings. The paper also explicitly points out that the actual benefit depends on the required approximation accuracy and the cost of metadata management.
Differentiation from Existing Compression Methods
Most current mainstream model compression techniques revolve around parameters: pruning removes unimportant weights, quantization reduces numerical precision, and knowledge distillation uses a large model to guide a small model. These methods have achieved remarkable results in reducing model size and computation, but they usually do not directly address the representation cost of "recurring input vectors."
SETAREH takes a different angle. It assumes that the coefficient vector is fixed (e.g., deployed model weights) while input vectors continuously arrive. In this scenario, structured sparsification of input vectors can reduce the amount of data that needs to be moved for each inner product computation. This is particularly attractive for distributed inference and edge computing environments—where communication bandwidth and memory access are often scarcer than floating-point operations.
Methodologically, SETAREH combines sorting (a classic data rearrangement technique) with the Haar wavelet (a computationally simple, hardware-friendly orthogonal transform). This combination is not complex, but it is specifically designed for the particular pattern of "repeated inner products," reflecting pragmatic engineering considerations.
The distinction between model compression and input representation compression deserves further clarification. Pruning, quantization, and knowledge distillation belong to model-side compression: they change the parameter representation of the deployed model, aiming to reduce computation and memory usage during inference, but input vectors still need to be transmitted and stored at original precision. SETAREH belongs to data-side compression: model parameters remain fixed, but each incoming input vector undergoes structured transformation and sparsification, reducing the dimension pairs that actually participate in inner product computation. The two are not mutually exclusive and can be stacked—for example, quantize model weights first, then apply the SETAREH transform to inputs. This distinction helps understand the applicable boundary of SETAREH: data-side compression yields significant benefits only when input vectors recur and transmission costs are high.
Potential Applications and Open Questions
The paper positions SETAREH as a potential structured data representation method suitable for repeated inner product scenarios with fixed weights. Imaginable applications include real-time inference on edge devices, gradient or feature transmission in federated learning, and any distributed system that needs to frequently exchange high-dimensional vectors.
However, it should be noted that the currently published experimental scale is limited: a synthetic Gaussian baseline and a single real task (apparent age estimation) can only provide preliminary evidence. The performance of SETAREH on larger-scale models and more diverse tasks remains to be verified. In addition, compression and reuse strategies for sorting metadata, as well as co-design with hardware accelerators, are questions that need to be answered before practical deployment.
Another dimension worth attention is error propagation. The approximation error of a single inner product is controllable, but in deep networks, errors accumulate layer by layer. The paper does not deeply discuss end-to-end accuracy loss, leaving room for future research.
Overall, SETAREH offers a perspective different from mainstream model compression approaches: shifting attention from parameters to the representation efficiency of input vectors. Its value lies not in overturning existing methods, but in filling in a often-overlooked piece of the puzzle. For researchers and engineers concerned with edge inference and communication efficiency, this is a direction worth following.
Error propagation and end-to-end accuracy are issues that must be considered when evaluating approximate computing systems. In deep neural networks, the output of each layer is the input of the next, and the approximation error of a single inner product is amplified or attenuated through nonlinear activations and inter-layer connections. Error propagation analysis usually focuses on two metrics: the expected growth rate of error and the worst-case cumulative upper bound. For truncation-based approximations like SETAREH, the error is closely related to the energy distribution of the input vector and the truncation threshold; if the input energy in some layers is dispersed, the truncation error may be large and propagate downstream. Before practical deployment, an end-to-end accuracy-compression rate curve evaluation on the target network is needed, rather than relying solely on the relative error metric of a single inner product.
One-line Summary
SETAREH uses sorting plus Haar wavelets to concentrate energy, compressing input vector inner product computation with controllable error.
Paragraph Summary
SETAREH (Sorting-assisted Haar Wavelet Energy-concentrating Transform) addresses the representation cost of recurring input vectors in high-dimensional inner products by using sorting to cluster elements with similar values, then applying the Haar wavelet transform to compress energy onto a few coefficients; after truncating many near-zero coefficients, inner products can still be well approximated. Since the same transform sequence is applied to both coefficient and input vectors, the inner product is exactly preserved before truncation, and the error comes only from transform-domain truncation and can be adjusted by the number of retained pairs. Synthetic Gaussian experiments and the APPA-REAL apparent age estimation task show that the method can approximate inner products with far fewer coefficient-input pairs than the original dimension, but the storage and transmission cost of sorting metadata offsets some of the benefit. Unlike model-side compression such as pruning, quantization, and knowledge distillation, SETAREH focuses on data-side compression, suitable for edge inference and distributed scenarios with fixed weights and frequent input arrivals; its experimental scale is limited, and error propagation and hardware co-design remain to be studied.
Related articles

Qwen 4 First Test Leaks: Performance Rivals Opus 5.5, DeepSeek V4 Series Surfaces
Early Qwen 4 test outputs leak, with front-end generation said to rival Opus 5.5; DeepSeek V4 Mini, Flash, and Pro names appear in a code repo; Ant Group's Ling-3.1-flash surfaces too. Here's the latest on model tiering and on-device lightweight models.

OpenCode Makes DeepSeek V4.1 Flash Free, AI Daily Roundup
AI daily roundup: OpenCode makes DeepSeek V4.1 Flash free, StepFun Step5 Preview and Ling 3.1 Flash open-sourced, Grok Voice 3.0 tops speech leaderboard, Matrix Game 4.0 open-sourced, and the EU opens its first AI Act enforcement probe into OpenAI and Anthropic.

DeepSeek V4.1 Flash 1017 Released: Reasoning and Coding Upgrades, Search and Fetch API Now Available
DeepSeek releases V4.1 Flash 1017 with major gains in reasoning, coding, and agentic tasks, plus web search and fetch APIs at 5 yuan per 1,000 requests. Tencent Hunyuan open-sources High Memory 2.0, Perplexity open-sources multimodal decision models, and MOFCOM seeks comments on AI export catalog.