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.

Where learning sits in a position-controlled arm, and how far PhysR climbs a five-rung ladder of evidenceFour places for learning: task policy, reference, outgoing goal, model. A learned goal offset beats Classical in simulation, 0.446 versus 1.117 mrad, by learning the lead a 33 ms hold needs, and loses to Fitted on moving paths. Repeat learning stores one path. PhysR adds a Kalman estimate and a GRU residual to the physics. Two ways a model goes wrong: a wrong parameter and too little data. On the ladder, PhysR reaches rung 1, held-out prediction, with shoulder_lift error 4.78 to 4.19 mrad. PhysR holds its disturbance estimate constant within each offline prediction. Rung 2, ranking candidate goals, is untested and shown with a toy. Rung 3, closed-loop tracking, has no PhysR result. Rungs 4 and 5 are open.WHERE LEARNING CAN SITtaskpolicyr(t)controllermodelgoalservo+ armq, encoder angleABCDAtask policy picks the next poseBadjust the reference r(t)Ccorrect the outgoing goalDfix the model: PhysRr(t): the target path. q: the joint angle the encoder reads.CLEARN AN OFFSET ON THE GOALBoth controllers preview one target ahead, r(k+1):Classicalr(k+1) + τ̂/kp + 4e + 10ILearnedr(k+1) − 0.25e + NN + 3Ie tracking error · I its running sum · τ̂ model torqueClassical already knows gravity. It treats each goal asinstant, but the servo holds it for 33 ms. A moving goalneeds extra lead that depends on speed, acceleration andthat hold. The network takes the τ̂/kp slot and learns it.tracking error in simulation (mrad):Classical model + PID1.117learned offset0.446Against Fitted, which inverts the fitted servo model withthe 33 ms hold built in (network error ÷ Fitted error):holds 0.83–0.99×moving paths 1.05–1.70×Holds need only a steady offset; moving paths need the lead.COR LEARN ONE PATH BY REPEATING ITRun the same path again and again. After each run, add halfthe error seen one servo delay later to the correction u(k)at step k, then smooth it. The correction fits that path only.fast repeated motions at 100 Hz, surrogate, error (mrad):mpc: search with the servo model1.15ilcmpc: mpc + repeat correction1.04pi: preview + PI feedback, no model4.15The surrogate shares the planner’s servo model, so thistest favors planners. There is no real-arm result.DFIX THE MODEL: PHYSRPhysR’s model of each joint; the goal search runs it forward:M q̈ + C q̇ + G + d q̇ + f sign(q̇)= kp(goal(t−D) − q̂)+ d̂+ rθ(history)servo push, delay DKalmanGRUM inertia · C Coriolis · G gravity · d damping · f frictionq angle · q̇ speed · q̈ acceleration · q̂ estimated anglekp servo stiffness · D servo delay · θ network weightsd̂ · Kalman estimateone slow number per joint.Each tick, measured minuspredicted angle nudges it.Follows a steady unknownload, like a new tool, butlags fast changes.rθ · GRU, 64 unitsEncoders read angles only.Train on recorded runs:compare predicted andmeasured angles throughthe physics. Learns fastspeed, direction and poseeffects, where it saw data.Set rθ = 0 and you get phys, the plain physics controller.TWO WAYS A MODEL GOES WRONGWrong parameter: servo lag off by 30%tracking error (mrad), correct lag → wrong lag:solve2.3 → 4.11.78×pi6.7 → 7.91.18×solve searches the fitted servo model, so the wrong laghurts it more, and it still beats pi.Too little data: 1 to 16 min of real-arm logsoffline error 0.2 s ahead (mrad), mean of 3 seeds:1 min2 min16 minservo model alone30.619.0≈7.4network, no physics12.011.03.9servo model + observer–4.73.7servo + observer + GRU10.7–3.0The fitted gain, offset and sag do not carry over to newposes when data is scarce. With 1 min, the residual beatsboth the servo model and the network alone.HOW FAR THE GAIN REACHES1PREDICT HELD-OUT MOTION✓ PhysR reached this rungshoulder_lift: held-out real-arm logs, offline.6 ticks (0.1 s at 60 Hz); PhysR holds d̂ fixedwithin each prediction. Error in mrad; lower is better:physics with d̂ held constant (weaker on a moving arm)5.62physics alone4.78PhysR: physics + GRU residual4.19fair baseline: 1 − 4.19/4.78 = 12.3% betteragainst the constant-d̂ variant it would read about 25%all five joints, physics alone → PhysR:pan 7.5% lift 12.3% elbow 2.4%wrist_flex 8.1% wrist_roll 7.5%Other controllers generated these logged windows.2RANK CANDIDATE GOALS? not tested yetThe search tries many goals and keeps the best-scored one.The logs only hold goals some controller actually sent.Toy joint at rest: inertia I = 0.1 kg·m², Δt = 0.1 s.Δq = Δt²·τ/(2I) = 0.05·ττ: torquesent 0.6 N·mnew 1.2 N·mA: extra torque −0.2 N·m0.02 rad0.05 radB: inertia is 0.15 kg·m²0.02 rad0.04 radBoth explain the log; they split on the new goal.PhysR adds one shared residual to every candidate goal.3TRACK BETTER IN CLOSED LOOP✗ no closed-loop result for PhysR yetNow the controller’s own goals become its next inputs.The learned offset (C) reached this rung, in simulation.First residual: servo model + observer + small GRUerror (mrad)offline 0.2 sclosed loop*servo model alone7.37–+ observer3.702.76+ small GRU residual3.013.12network, no physics3.905.50*a software copy of the servo model, not the real arm.It shares the model’s structure, so it favors physics-only.The observer gives most of the offline gain.History net: learned offset + last 4 readings, 4 goalsoffline label error: 6.19 → 3.03 mradtracking error on nominal sim paths: 81.3× Classical + PID(the same net without history: 0.552×)torque saturated on 77% of stepsnominal: the unchanged default robotRetrained on 0.2–14 Hz wiggles, one past step:0.834× the old no-history net.4KEEP THE GAIN AFTER A CHANGEBolt on a 200 g tool (illustrative). What can adapt:memory, weights fixedPhysR’s GRU, TAMthe weights themselvesOSRAMa classical estimateKalman d̂, RLSPast its training range the GRU probably fails; theKalman d̂ can still follow a steady unfamiliar torque.5HELP A REAL TASKa task the arm performs gets measurably better
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 draw
The 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.

goal(t) = q*(t+T) + [M̂q̈* + Ĉq̇* + Ĝ(q*) + d̂q̇* + f̂ sign(q̇*)]/kp + ŵ + KPe + KI∫e dt + uk

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.
Learned-offset network inputs and how its output joins the command
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.
Encoder readings and the hindsight training label arithmetic
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 board
Ratio of learned-offset error to Fitted error on holds and on moving paths
Learned-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 correct and 30 percent wrong lag for solve and pi
Tracking error with the correct lag and with the lag 30% wrong, for solve and pi.
Offline prediction error against minutes of training data for four models
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.
Frozen servo model with observer and GRU residual, with offline and surrogate errors
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.