Learning what physics misses, and how far the gain reaches
Where a neural network fits in a robot controller. A network that learns only what the physics model gets wrong does the same job as a Kalman disturbance estimate, with more freedom, and this is where recent research is going.
The SO-101 arm never gets a torque command. On every control tick you send each joint a position goal, and its servo pushes with a torque proportional to the gap between that goal and where the joint actually is. Gravity, damping and whatever the gripper holds all change how big that gap has to be, so the controllers in the previous post place goals with a physics model of the arm. That model is a little wrong, in ways that repeat. The obvious move is to bolt on a neural network and let it learn whatever the physics misses. There are four places to bolt it on (top of the board), and we tried learning at two of them: on the outgoing goal and inside the model.
The most complete attempt is PhysR. It keeps the full five-joint physics model and the Kalman estimate of missing torque from part 2, then adds a small recurrent network that supplies one more learned torque. Set the network to zero and you get the plain physics controller back, so it seems like it can only help. But suppose the network does predict recorded motion more accurately. Does that tell us which goal to send next? And once we start following its advice, will its predictions still hold up? Let's follow one joint, shoulder_lift, and see which of these questions the experiments actually answer.
The torque example on rung 2 and the 200 g tool on rung 4 are illustrative. Error measurements are reported results; percentages are calculated from the displayed errors.
Predicting a recording is the easiest test to run: another controller already moved the arm, so we compare our prediction with what happened. Choosing a goal asks more of the model. The search scores commands nobody sent, and the recordings give us no answer for those. Then we let the controller act. Now the network gets histories produced by its own choices. If it makes a mistake, that mistake can change the next input and lead to another mistake. This can make tracking worse even when predictions on recordings improve, as they did for the history network on rung 3.
Three experiments would move PhysR up the ladder. First, run phys, phys with a better d̂ forecast, and PhysR on the real arm with identical motions, timing and limits. I expect PhysR's advantage to sit near direction reversals, and a better forecast to recover part of it with no network at all. Second, the network currently gives every candidate goal the same torque correction. Let's also show it the goal we're considering, so it can predict a different correction for each choice, then check whether it ranks candidates the way the arm actually responds: when the joint reverses, when a small command produces no movement, and when the servo hits its torque limit. An aerial-robot study feeds its network the candidate command too, and its authors tested it in real flight, though it did not improve every trajectory. Third, let PhysR collect its own trajectories, retrain and repeat, keeping whichever round tracks best on the real arm. The ladder gives you one question to ask of any learned controller, mine included: which rung did it reach?
Watch the arm drawThe real SO-101 traces a kitten with a pen on a Wacom tablet, filmed from above on 11 October 2026. The 88 s run plays at 4×, so it lasts 22 s. Treat it as a demonstration: it compares no controllers. Open the video file.One goal equation for every controller
Every controller in this series fits one decomposition of the goal it sends. Pick a controller to see which terms it uses and where its learning sits.
q* is the target path, T the preview time, e the tracking error and uk a stored correction for step k. Inside the bracket, d̂ multiplies speed: it is the nominal damping, a different quantity from the Kalman missing torque d̂ on the board.
Classical model + PID: T = one step. The bracket is a fixed model with nominal masses, friction and damping. KP = 4, KI = 10. No learning.
Learned offset: T = one step. The network NN takes the bracket's slot and trains with the 33 ms hold. KP = −0.25, KI = 3.
Repeat learning: uk is learned across repeats of one path, on top of pi-style commands (ilc) or mpc commands (ilcmpc).
PhysR: the learned residual rθ sits inside the plant model, and the goal comes from a search through that model.
The offset network reads q, rk, rk+1 and the previous goal. The command is goal = q + step* + offsetNN + 3I, with step* = (rk+1 − rk) + 0.75(rk − q). Since q + step* = rk+1 − 0.25e, this is the learned row on the board.How the offset network gets its labels, in encoder ticks: start at q = 100, send u = 150, read q′ = 110. The joint moved 10, and the label is u − q′ = 40, measured from where the joint ended up.Predict before you look
We gave the learned-offset network 4 past readings and 4 past goals. Its offline label error fell from 6.19 to 3.03 mrad. On nominal simulated validation paths (the unchanged default robot), how did its tracking error compare with Classical model + PID?
Better than Classical
About the same
Far worse
Far worse: 81.3× the Classical error, with torque saturated on 77% of steps. The same network without history tracked at 0.552× Classical. It trained on histories another controller made, then ran on histories it made itself.
Feedback drift, a toy. This is an illustrative model, not the measured network. Offline, every input comes from the log, so a one-step error of 1 stays 1. In closed loop the network's previous goal is one of its inputs, so the error follows e(k) = a·e(k−1) + 1. With a = 0.8 it settles at 5; with a of 1 or more it keeps growing.
PhysR predicts shoulder_lift 0.1 s ahead with 4.19 mrad error. Which baseline gives the fair gain?
Physics with d̂ held constant: 5.62 mrad
Physics alone: 4.78 mrad
Against physics alone, the fair gain is 1 − 4.19/4.78 = 12.3%. The constant-d̂ physics variant is a weaker baseline on a moving arm: against that variant the gain reads about 25% (1 − 4.19/5.62), and an earlier summary on that baseline reported 8 to 26% across joints.
The figures behind the boardLearned-offset error divided by Fitted error in simulation: 0.83 to 0.99 on holds, 1.05 to 1.70 on moving paths.Tracking error with the correct lag and with the lag 30% wrong, for solve and pi.Offline error over 0.2 s (R200) against 1 to 16 min of real-arm training data, mean of 3 seeds. Both axes are logarithmic.The frozen servo model plus observer with a small GRU residual, and its offline and surrogate closed-loop errors.Other work at each spot
A, task policy.RECAP and π0.7 choose grasps and next poses. They could supply references to phys or PhysR, and a good task policy says nothing about the quality of the actuator model.
B, reference.OSRAM models the combined robot and controller response, adjusts the reference and updates its weights after deployment, on a Tron1. Its error summaries cover successful trials only.
C, command.TAM (CoRL 2026) corrects torque after the controller, with a fixed-weight history encoder that infers context at about 5 Hz, on a Franka Panda. It needs a torque interface and simulation teacher labels, and the SO-101 takes position goals.
D, model.NeuralActuator (RSS 2026) predicts effort with a Transformer inside a differentiable simulator, supervised through position, and includes SO-101 STS3215 servos. Its offline rollouts condition on recorded future effort, which a new candidate goal does not have. PG-RSSNN (IFAC 2026) adds a recurrent correction to physics state equations, trained on multi-step prediction error from KUKA recordings with measured torque inputs. It reports prediction only, which puts it on rung 1 with PhysR. The aerial-robot study above conditions its learned acceleration correction on the candidate input, adds an energy-consistency penalty and reaches real control.