Soft and pneumatic robots are usually controlled by a simple feedback controller combined with a learned "feedforward" model. The feedback controller reacts to errors after they happen. The feedforward model is a network that predicts, from the planned trajectory, the extra command the actuator will need, and it is trained on the corrections the feedback controller had to make. The current best of these feedforward models is a convolutional network, one whose output depends only on a short sliding window of the trajectory. That is a poor match for actuators with hysteresis, where the force a muscle produces depends on its path and not only on its current state. In pneumatic artificial muscles, the right command now can depend on where the trajectory last reversed direction, and that reversal may have happened long before the window began. No window length is safe. A short window misses the reversal, and a long dense one feeds the network mostly redundant history.
We propose a feedforward inverse model with two parts. A short dense window handles delay compensation by looking ahead along the future reference. A small memory holds only the past turning points of the reference that still matter, and the model reads it by attention. Physics bounds the size of that memory: in Preisach-type hysteresis, a larger reversal erases the memory of the smaller reversals inside it, so only a short staircase of dominant extrema stays relevant. The central test is a set of "memory probe" trajectories that are identical inside any finite window and differ only in an earlier excursion. A model limited to a window must give the same command for all of them. The real plant needs different commands. This turns the receptive-field question from computer vision into a falsifiable control experiment.
Core Claim
Residual inverse dynamics for hysteretic actuators depends on sparse, arbitrarily old events in the reference history. A model that can see a few such events beats both short-window convolutions and dense long-history models when trained and run under the same budget. The gap should grow with how far back the relevant reversal lies. A second claim is that this long-range dependence can be learned from the feedback controller's own corrections, without per-trajectory iterative learning control (ILC: repeating a trajectory many times and refining the command after each run).
Relation to Prior Work
The direction of residual learning from feedback supplies our training signals. Feedback-error learning, introduced by Gomi and Kawato, uses the feedback controller's corrective torque as the error for a feedforward network. Kappler et al. refine this by pairing the corrective torque with the desired rather than the actual acceleration, which keeps the labels clean under compliant, low-gain control. We use both signals unchanged. What we change is the architecture's access to history.
The work closest to ours is Ma et al.. They distill ILC-optimized commands for a 4-DOF pneumatic-muscle arm into a convolutional network with a 1-second look-ahead window, used alongside a PID controller. Their window is aimed at future delay. It has no mechanism for the hysteretic state left by the trajectory's past, and that is the gap we target.
Zhou, Helwa and Schoellig show the opposite design choice working well on quadrotors. Cutting the inputs from 36 to 12 local features preserved performance. Their stability argument assumes smooth dynamics with stable zero dynamics, an assumption hysteresis violates. We read their result as a constraint: extra context must be sparse and targeted, or it costs data efficiency. Alora et al. add a second constraint. Long delay embeddings act like a band-pass filter that blurs fast transients in soft robots. This argues against simply feeding the network dense long history, and it is why our memory stores events rather than samples.
From the vision literature on receptive fields we borrow the diagnosis and part of the method. Guanbin Li et al. describe how stacked local operators dilute long-range dependencies. Dense non-local blocks (Compact Generalized Non-local Network) and factorized attention (CCNet) restore global context. CCNet restricts each token to its own row and column of the image grid. For the multi-actuator case we adapt this pattern to a time-by-actuator grid, so each actuator attends along its own history and across the other muscles at the same instant. Our main departure from all of these is that the global context is a physically selected sparse set of tokens rather than every position.
Research Program
The model takes three inputs: the reference over a short window of recent past and up to one second ahead, matching Ma et al.'s look-ahead; the current feedback error; and an event buffer. The buffer is maintained online by a simple rule. When the reference for an actuator reverses direction, its position, time and pressure are pushed onto the buffer. Entries erased under the wiping-out rule are popped. Each step, a local convolution encodes the window into a query, the query attends over the buffer entries, and a small head outputs the residual command. Cost per step is constant in trajectory length, which matters for real-time pneumatic control.
We train in two regimes. In the first, ILC-distilled targets follow Ma et al., to compare architectures under clean labels. In the second, online feedback-error learning uses the PID output, or Kappler et al.'s desired-acceleration labeling, as the only teacher, to test whether long-range dependence survives a noisy, delayed teaching signal. For analysis, we compute each trained model's effective receptive field, meaning the gradient of its output with respect to inputs at each past time. We compare this to the plant's actual memory, measured from the probe trajectories.
The plants are, in increasing realism:
- a simulated 1-DOF antagonistic pneumatic-muscle joint in the style of Zhang et al., with a Preisach hysteresis model and pneumatic transport delay;
- a variant with asymmetric, rate-dependent hysteresis, where the clean wiping-out property does not strictly hold;
- a simulated 4-DOF pneumatic arm following the table-tennis interception protocol of Ma et al.;
- Ma et al.'s 44-trajectory interception set or hardware, only if we can obtain access. If not, we report simulation only and say so.
Baselines
The naive reference point is the PID controller alone with no feedforward model. It shows how much residual there is to learn.
The strongest existing method is Ma et al.'s convolutional feedforward network with a 1-second look-ahead, trained on ILC targets and paired with PID. On their hardware it reached an average tracking RMSE under 4 cm at 5 m/s with a near-100% interception rate (Ma et al.). Because their hardware data may not be available to us, the comparison that counts is our reimplementation on the same simulated plants. Both models get identical training trajectories, identical ILC or feedback-error labels, matched parameter counts within 10%, and the same hyperparameter search budget. Beating it means lower tracking RMSE on held-out trajectories, with the gap concentrated on probe trajectories whose decisive reversal lies outside the 1-second window. An average win without that pattern would not support our claim.
We also compare against the compact local-feature network of Zhou et al., which reported a 54% average RMS error reduction across 30 hand-drawn quadrotor trajectories, run as a residual on the same plants. The remaining comparisons are ablations, each removing one ingredient:
- the same model with its event buffer removed, which isolates the memory;
- the buffer filled with uniformly spaced past samples instead of reversal points, which isolates event selection from added context;
- dense non-local attention over the full history, which tests whether sparsity matters;
- for the 4-DOF arm, the cross-actuator attention axis removed.
No reported result was found on Lacuna for any learned feedforward model on a simulated Preisach pneumatic-muscle joint. All numbers there will come from our own runs.
Why not just…?
Why not just widen or dilate the convolution window? A dilated temporal convolution covering the longest trajectory sees everything in principle. It must still learn, from dense samples, which few moments matter, and Alora et al.'s band-pass observation suggests long dense history degrades transients. The uniform-sample ablation and the dilated-convolution variant directly test this. If a window tuned to the measured plant memory matches our model, the honest conclusion is that measuring memory length is what matters, and we will report that.
Why not just use a recurrent network? A recurrent network has unbounded memory at constant cost and is a real threat. Its weakness is learning to keep an exact reversal amplitude across seconds of unrelated motion from noisy feedback-error labels. We include a matched recurrent network as a baseline. The probe trajectories, plotting error against reversal age, will show whether its memory fades where the event buffer's does not.
Why not just add a classical hysteresis operator model as an input? A fitted Prandtl–Ishlinskii or Preisach inverse fed into a local network may capture most of the effect. On the clean Preisach plant we expect it to be very competitive. Its advantage should shrink on the asymmetric, rate-dependent plant, where the parametric form is misspecified and our learned read-out of the same events can adapt. If it matches us on both plants, the contribution narrows to the event-buffer design, and we will say so.
Why not just reduce the model order, as with spectral submanifolds? Alora et al. report up to 150 times better tracking on continuum robots from a 6-dimensional model. Their method assumes smooth, equilibrium-based dynamics identified offline. History-dependent hysteresis is not a smooth function of a low-dimensional instantaneous state, so we treat their method as complementary rather than as a competitor on this question.
Decisive Checks
The first check is the memory probe. Families of trajectories share their final 1.5 seconds and differ only in an earlier excursion placed 1 to 10 seconds back. We plot tracking error against excursion age. Window models should plateau at a high error once the excursion leaves their window. Our model should stay flat. A flat curve for the convolutional baseline would falsify the premise.
The second check is supervision. We repeat the probe with online feedback-error training only. If the long-range advantage disappears without ILC labels, the result is that the teaching signal, not the architecture, is the bottleneck.
The third check is real-time cost. We measure inference time per step against a 1 kHz pneumatic control loop.
The fourth check is robustness on the asymmetric plant, which shows whether the gains depend on the idealized wiping-out structure.
References
- Recognition of Manipulated Objects by Motor Learning
- A new data source for inverse dynamics learning
- A Learning-based Iterative Control Framework for Controlling a Robot Arm with Pneumatic Artificial Muscles
- Deep neural networks as add-on modules for enhancing robot performance in impromptu trajectory tracking
- Discovering dominant dynamics for nonlinear continuum robot control
- Non-locally Enhanced Encoder-Decoder Network for Single Image De-raining
- Compact Generalized Non-local Network
- CCNet: Criss-Cross Attention for Semantic Segmentation
- Control of Pneumatic Artificial Muscles with SNN-based Cerebellar-Like Model