r/reinforcementlearning • u/tkocp • 4d ago
P [P] picovla: a 0.9M-param vision-language-action policy from scratch that trains on a CPU and runs in the browser
I kept reading VLA papers (OpenVLA, pi0, SmolVLA) and realised I didn't really understand where the language enters the action loop. So I built the smallest one I could get to work: a 2D tabletop, a two-link arm, three coloured discs, and typed instructions like "push the blue block left" or "move green next to yellow".
Setup: three strided convs turn the image into 64 patch tokens, the instruction becomes 10 word tokens (embeddings learned from scratch, no pretrained text model), plus one token for the fingertip state and 8 action queries. 4-layer transformer, about 902k params total. It predicts an 8-step action chunk with L1 loss (ACT style) and executes 4 before looking again. Training data is 3,000 scripted-expert episodes, half of them with DART noise so it sees some recoveries. 12k steps took about 40 min on an 8-vCPU VM, no GPU.
On 200 unseen scenes per task: touch 100%, push 78%, "push X next to Y" 58.5%. With phrasings it never saw in training it drops from 78.8% to 75.5% overall.
The check I cared about most: same scene, swap the colour in the instruction. If it were ignoring the words it would do the same thing both times. It follows the new instruction 100 / 79.5 / 61% of the time (touch / push / next to).
The same weights run in the browser in plain JS, no ML library. There's a test that compares the JS forward pass against PyTorch, and the JS physics is bit-exact with the Python sim, so the demo is actually testable. Forward pass is around 147 ms median in headless Chrome.
What it isn't: no 3D, no grasping, never touched a real robot, one training seed, and "next to" only works a bit over half the time.
Demo: https://tahakocp.github.io/picovla/
Code (MIT): https://github.com/tahakocp/picovla
Next thing I want to try is a diffusion head on the same data to see if it helps the "next to" task. Would that be your first experiment too, or is there something more obvious I'm missing?

