“Unless you introduce stochasticity, randomness... you would not enable the machine to learn,” said Denis Noble in a lecture on biological intelligence, summarizing Alan Turing’s 1950 paper, which states, “It is probably wise to include a random element in a learning machine.”
I ignored both pieces of advice while designing a simple robotic policy last week, relying completely on a purely deterministic approach, and I failed miserably.
My goal was simple: design a simple, not completely random, policy to accomplish PushT. For the uninitiated, PushT is the “hello world” of robotics where a round pusher tries to push a T-shaped block onto a T-shaped outline. A policy, for the layman, is a function that takes the robot's current state and produces the next action.
I tried to leverage my knowledge of linear motion to design an equation that takes into account the current positions of the pusher and the block, as well as the final goal position, and moves the pusher close to the T-block, then pushes it toward the goal outline in a straight line. Simple linear algebra. I designed my policy as a function and ran the sim.
The end result was hilarious. The pusher, instead of pushing the block in a straight line, pivoted the block at the top and started rotating it in a circle like a cowboy trying to rope something. Thus, I called my policy the Cowboy.
Little did I know that Physics has its own mind, and my sim, while taking into consideration Newtonian mechanics, completely ignores simple real-world phenomena like gravity and friction. So I fell back on using a tried-and-tested policy to produce 1050 episodes (1000 random, 50 diffusion) of simulated data with success labels I can trust.
Key lessons learned:
Include stochasticity in the learning process for machines.
A policy for a Data Engineer can be a black box: observation in, action out.
Plenty of community datasets and models available to use, though take their labels with a grain of salt.
My full experiment and failures are recorded in the GitHub repo: physical-ai-data-architect

