arXiv:2610.39343cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39343

MulClip: A table-free activation function with monotonic and folding regimes for reservoir computing on microcontrollers

Guren Matsumura, Masato Takemoto, Shinzo Koyama

ABSTRACT

This letter proposes MulClip, a lightweight activation function for reservoir computing (RC) on microcontrollers (MCUs). In a ring reservoir, a representative sparse RC topology, multiply-accumulate operations are few, and evaluating tanh accounted for 75% of the state-update time on a Cortex-M4. MulClip introduces curvature into the response using only comparison, absolute value, multiplication, and subtraction, and places its clipping threshold not at the extremum but at the point where the response returns to zero after passing the extremum. As a result, a single function has both a monotonic regime and a nonmonotonic folding regime that increases the expressiveness of a single unit. Which regime is used is determined by the usual hyperparameter search, e.g., over the input scale, so no task-specific threshold tuning is required. The state-update time measured on hardware was 0.34 times that of tanh and shorter than that of any of the 11 evaluated tanh approximations. In PC-based evaluation, third-order MulClip achieved a 22% lower NMSE than tanh on NARMA-20, where the pre-activations remained in the monotonic regime, and on 8-bit parity it raised the accuracy from 0.76–0.78 for the monotonic-clip variant without folding to 0.97–0.98. For these two tasks, on-device inference yielded nearly the same values as on the PC.

Keywords Activation function · embedded machine learning · microcontroller · reservoir computing

I Introduction

In recent years, there has been growing demand for running machine-learning inference on embedded devices, for example, for sequential processing of sensor signals [1]–[3]. However, the microcontrollers (MCUs) widely used in embedded devices have limited computing performance and memory capacity, and it is often difficult to complete inference within the required processing period.

Reservoir computing (RC) [4], [5] is a lightweight approach suited to such environments. RC fixes the reservoir weights and trains only the readout layer. Moreover, sparsifying the reservoir connections reduces the multiply–accumulate operations in the state update. A ring topology, in which connections are restricted to a cycle, achieves performance comparable to that of a randomly connected reservoir while making the number of multiply–accumulate operations roughly proportional to the number of units [6]. However, the fewer the multiply–accumulate operations, the larger the share of the activation function in the state-update cost. The standard tanh is a transcendental function and is expensive relative to multiplication and addition even on MCUs with an FPU [7]. Indeed, for a ring reservoir on a Cortex-M4, tanh evaluated on the FPU (hereafter tanh(FPU)) accounted for 75% of the state-update time (Section III-B).

Alternatives to tanh include implementations that approximate tanh with LUTs, piecewise-linear (PWL) approximations, or rational functions [8], [9], and functions such as hardtanh, softsign [10], and ReLU [11]. The former aim to reproduce tanh, so higher fidelity requires more memory or arithmetic. The latter are inexpensive but have fixed shapes; in our measurements, they increased the NARMA-20 error to 1.6–1.9 times that of tanh(FPU). The shape of the activation function strongly affects RC performance [12], and in particular, responses that are nonmonotonic in the input are

A PREPRINT

Figure

Fig. 1. Response of MulClip (blue: d=2d=2; red: d=3d=3). Small dots mark the extremum at d/(d−1)d/(d-1), and open circles mark the clipping threshold cdc_d. Gray dashed lines show the monotonic-clip variant, whose clipping threshold is set at d/(d−1)d/(d-1). The dotted line is tanh.

known to increase the expressiveness of a single unit [13]. However, most such functions involve transcendental functions and thus suffer from the same problem as tanh on MCUs.

This letter therefore proposes MulClip, an activation function that, rather than approaching tanh, inexpensively provides a response that tanh lacks. MulClip introduces curvature using only comparison, absolute value, multiplication, and subtraction, and places the clipping threshold at the point where the output returns to zero, which is determined by the functional form; thus, a single function has both a monotonic regime and a folding regime without task-specific threshold tuning. This is the central contribution of this letter. With this design, both a monotonic operating point and an operating point that exploits folding can be selected solely through the hyperparameter search over, e.g., the input scale, that is routinely performed in RC. Section II presents the design, and Section III evaluates it in terms of both on-device computational cost and task accuracy.