Monty with Touch! And other fun stuff

Touch and hearing for Monty: links, graphs, points

Everything here is measured on tbp.monty main at v0.58.0 (335c1aa), 2026-11-14.

OK. So I finally think I’ve got the brain in a place where I want it. Below you will find links to my forks and my results from all the coding on Monty I’ve been doing lately. Now that I think I get how different senses help one another, I’m going to head back into the shop to work on some more robots!

Below you will find the camera-free touch, instructions on how the MuJoCo stuff is wired in, and the limitations of the experiments. Its seems clear to me that thinking creatively about what a sense is doing and how that transforms into a graph in Monty can result in fewer steps before recognition.

Please let me know if y’all have any questions, and if I did anything wildly wrong here. Its been a busy hunting season at the ol’ wildlife management agency, but I’m glad to have my nose back in this gut pile.

Git links

Touch, the files worth pointing at:

Hearing:

Graphs

The files are in this folder: /home/bryan/MontySAI/experiments/touch/forum/. forum_graphs.py one folder up redraws them.

1. The finger gets rid of the eye’s long tail

1_recognition_race.png

2. Any one sense sometimes gets stuck. Two never did.

2_every_episode.png

3. Which objects the finger rescues

3_object_by_object.png

4. Hearing: every miss gets the tune right

4_hearing.png

Two more hearing pictures are already in the fork and can be linked directly:

The main points

Touch

  • Monty was already computing touch and throwing it away. MuJoCo’s contact solver works out every contact on every step. The finger reads it: where it touches, which way the surface faces, how hard it pushes back, how slick it is. Nothing is fitted on top. Texture is the one part that needs outside data (recorded strokes from the Penn Haptic Texture Toolkit).
  • The finger has no camera in it and names 49 YCB objects by itself: 147 of 147 on rotations it trained on, 145 of 147 on rotations it never saw.
  • Eye and finger voting: 300 of 300 on trained rotations, 298 of 300 on new ones. The one miss is a Phillips screwdriver called a flat one.
  • The finger gets rid of the eye’s long tail. On new rotations every eye + finger episode settles by step 52. The eye alone runs out the 500-step clock 7 times in 150.
  • Mean steps halve, 57.7 to 27.5. The typical episode does not change (median 27.5 against 27). The gain is all in the stuck ones.
  • The stuck ones are thin tools. Eye alone, then with the finger: flat screwdriver 457 to 32 steps, Phillips screwdriver 349 to 33, spoon 290 to 33, knife 192 to 27, fork 191 to 33.
  • Every sense alone gets stuck sometimes. The pair is the only row with no episode at the limit.
  • Shape alone is enough, slowly: contact normal and felt curvature name all 49 objects on both sets of rotations, in about 100 steps.
  • One it cannot do: the finger alone cannot learn the skillet lid. It keeps slipping off the rim.
  • It runs on the current release with 26 new tests. Eye + finger scores exactly what it did on the older base from previous surface-policy fixes; the finger alone lost two objects on new rotations (the two screwdrivers, confused with each other).

Hearing

  • An ear as a sensor module: a CARFAC cochlea and a stabilized auditory image, turned into feature-at-location like any other sensor. Learning and recognition are stock Monty. No learning module code changed.
  • A sound is a graph. x is the pitch period in octaves, y is the place on the cochlea, so the same riff in another key is the same graph shifted. Key is pose.
  • Seven guitar takes, played by me: 7 of 7 on the clips it learned, 5 of 7 on later clips it was never given, 1 of 2 on C minor having only learned A minor.
  • Every miss gets the tune right and the key or mode wrong.
  • Same on v0.58 as in October: the same answers and the same step counts.
  • Known limit: a held note is a single point, and stock evidence cannot say no on a feature mismatch.

How touch is wired into MuJoCo

  • The world gets materials. MuJoCoSimulator(materials=...) takes a table of friction and stiffness per object. With convex_decomposition=True each object collides with convex pieces (CoACD), so the finger meets the surface the camera sees and not the hull around it.
  • The agent gets a fingertip. TouchConfig on the surface agent adds a hidden sphere at the sensor. Every step its observation carries what the contact solver already worked out: whether it is touching, how hard, how deep, the contact point, and which way the surface faces.
  • Three readings are taken without moving anything. Grip is read by a virtual drag through the friction cone. Curvature comes from four virtual presses beside the contact. Texture is a virtual stroke over a recorded surface.
  • The sensor module has no camera. TouchSM makes a percept from the contact: location is the contact point, pose is the contact normal plus the felt curvature directions, features are grip, stiffness, curvature, roughness and vibration.
  • The policy steers by touch. TouchSurfacePolicy reaches until it touches, follows the surface, and goes back to the last touch when it slips off.
  • Everything after that is stock Monty. DisplacementGraphLM learns, EvidenceGraphLM recognizes, and the eye and the finger are two columns that vote.

To run the small version (four objects, a few minutes):

uv sync --extra dev --extra simulator_mujoco --extra touch
uv run python run.py experiment=touch_both_pretrain
uv run python run.py experiment=touch_both_eval
uv run python run.py experiment=touch_both_eval_novel
uv run python run.py experiment=touch_only_pretrain      # the finger alone, no camera on the agent
uv run python run.py experiment=touch_only_eval

The 50-object experiments are touch50_*. They also need the Penn Haptic Texture Toolkit model files in $MONTY_DATA/hatt, which cannot be redistributed.

Limits

  • One run per number. No seeds swept. Each 50-object number is 150 episodes (147 for the finger alone).
  • I chose the materials. Each object’s friction and stiffness come from a table I filled in, and the finger reads them back with no noise.
  • Texture is recorded, not simulated. It comes from models of a steel tool dragged over real surfaces, at one fixed light stroke. Which object gets which surface is my choice.
  • The stock evaluation rotations are three of the training rotations. The new-rotation numbers are the fairer ones.
  • Voting stops before the pose settles. Eye + finger mean rotation error is 21 degrees on trained rotations and 40.5 on new ones, against 2.2 and 8.5 for the eye alone. The medians are 0 and 7.8.
  • The finger alone has gaps. It cannot learn the skillet lid, it confuses the two screwdrivers on new rotations, and texture by itself is the weakest of its senses (142 of 147).
  • The 50-object runs were pretrained in 8 parallel pieces and merged, and the eye-alone row uses the eye column cut out of the voting model. The scripts for that are in my own repo, not in the fork.

The Q4 roadmap, in TBP’s words

The video: 2026/09 Q4 Research Roadmap. Places where it lines up with this work:

  • 10:29 Jeff: run a fast learner that assumes everything is new beside a slow one that assumes everything is old, and decide later.
  • 27:02 Niels: representing visual texture (“marble or fur”) is parked for now.
  • 30:11 Jeff on touch: a finger moves slowly and continuously, with no saccades.
  • 33:14 Jeff on sound: we parse it by events, the attack of a note.
  • 42:33 Jeff: “You just keep groping around until you find something interesting.”
  • 52:52 Niels: learning that is always happening, with no separate learn step, filed as nice to have.
  • 71:33 Jeff: the cortex seems to need sleep to take in what the fast learner stored.
  • 76:46 Niels: where does an object end, and how to represent that.

On this machine

  • Results write-up with both tables: /home/bryan/MontySAI/experiments/touch/README.md
  • The fork: /home/bryan/MontySAI/tbp.monty (branches touch-mujoco and audio-sensor-module-v058)
  • The always-learning ear in REAPER: /home/bryan/LMS/lms_monty.jsfx
3 Likes

I finally got a break in my remodeling and upgrading of the RV and dropped in to see what’s happening with the TBP. I’ve been wondering what wild stuff you discovered while I was swapping the 1/2 ton rear axle for one from a 3/4 ton pickup.:grinning_face_with_smiling_eyes: I occasionally reply to posts about ai on Instagram to tell people about the project and I want to tell them about what you’re doing just because it has happened so rapidly. It’s inspiring because you’re basically a smart hobbyist with a vivid imagination who quickly grasped the potential of Monty and had the software chops to put it to use, and there’s a lot of people out there like you. But just trying to describe the TBP is way too much for people to digest. I’m looking forward to seeing what the next wild thing you will have discovered when I’m done replacing all the front end parts :grinning_face_with_smiling_eyes:

2 Likes

buddy, its not hard.

time is the organizer. Everything happens at the same time. Just like a 12v circuit, just like a tube amp, just like real life. if you can rewire that hawg you can rewire monty.

1 Like

also that was really nice of you to say, thanks.

1 Like

That’s what I would like to get across to other people, that the brain is simpler than people imagine.

1 Like

it has to be, otherwise they would have never existed.

1 Like

yeah, there’s not much in the genome that codes for brain development, so it has to be extremely simple

1 Like

not to mention the blind dumb process that shat it out.

1 Like

Sea stars and sea slugs have a complex distributed network of neurons that has little resemblance to a brain, and when a sea star loses a “limb” it loses part of its “brain”. When it grows back, the subnetwork grows back with it. The network also enables social behaviors in addition to problem solving, which is pretty wild.

Wow, very cool. Thanks for putting all of this together @Bryan_Leavelle

Before proceeding, would you mind if we split the discussion of the touch work and sound work into two threads? I think that will be more manageable, and then we can focus on the touch discussion here.

Re. the touch sensor, the results you’ve shared look very promising and interesting. Thank you for the clear plots, I particularly like Figure 3, that’s a great breakdown visualization to show the benefit coming from the touch agent.

A few things I would be interested in as a first step:

  1. For the eye + finger vs. eye alone comparisons, I would recommend configuring the eye with two camera SMs + two LMs that vote (you can make the SMs slightly different e.g. in position or resolution, see the 5LM configs for inspiration). That will help disentangle how much Monty’s faster convergence is just from having any voting (and the subsequent ~doubling in evidence accumulation rate), vs. the specific contribution of multi-modal integration. It would be interesting to see what Figure 1, 2, and 3 look like with this change.
  2. Can you please clarify why you focused on 50 objects, rather than the full YCB dataset? It would be neat if we could apply this to the full dataset, but not sure what issues you ran into with the “lettered variants, chain, dice and the peg”. If we can apply it to all of them, then we could potentially have a new benchmark experiment that demonstrates a reduced number of matching steps in e.g. randrot_noise_77obj_surf_agent
  3. If you are open to it, it would be interesting to do some more digging into the skillet lid and the challenges there. As I recall, Monty does not learn a good model of it because of the transparency of the glass. What I’m not sure however is whether this a fundamental limitation of the 3D scanned, YCB mesh model (i.e. there is nothing where the glass is present in the original, physical object), or whether this is something that your touch sensor could possible address by learning where the depth camera does not.
  4. As I understand it, the touch sensor implements a sphere that looks for the closest contact point. Did you investigate whether you can “shape” this sphere such that it has some directionality, more like a finger? E.g. an elongated ellipsoid that rotates through space?

Thanks glad you liked it!

Re. the touch sensor, the results you’ve shared look very promising and interesting. Thank you for the clear plots, I particularly like Figure 3, that’s a great breakdown visualization to show the benefit coming from the touch agent.

yea! i was happy to see em too. Pretty neat, and I bet we could find more features that might help with the tougher ones.

For the eye + finger vs. eye alone comparisons, I would recommend configuring the eye with two camera SMs + two LMs that vote (you can make the SMs slightly different e.g. in position or resolution, see the 5LM configs for inspiration). That will help disentangle how much Monty’s faster convergence is just from having any voting (and the subsequent ~doubling in evidence accumulation rate), vs. the specific contribution of multi-modal integration. It would be interesting to see what Figure 1, 2, and 3 look like with this change.

excellent idea, I can run this the next time i get get a chance

Can you please clarify why you focused on 50 objects, rather than the full YCB dataset? It would be neat if we could apply this to the full dataset,

agreed, and the only reason is time. Pre training and processing plus thinking and finagling - id say 3 hours ish per run for all fifty or something like that.

If you are open to it, it would be interesting to do some more digging into the skillet lid and the challenges there. As I recall, Monty does not learn a good model of it because of the transparency of the glass. What I’m not sure however is whether this a fundamental limitation of the 3D scanned, YCB mesh model (i.e. there is nothing where the glass is present in the original, physical object), or whether this is something that your touch sensor could possible address by learning where the depth camera does not.

another great idea to add to the list. If I were to cast lots on it, Id side with it gets it.

As I understand it, the touch sensor implements a sphere that looks for the closest contact point. Did you investigate whether you can “shape” this sphere such that it has some directionality, more like a finger? E.g. an elongated ellipsoid that rotates through space?

yep, this was simply a “good enough” shape from me goofing around in MuJoCo for the first time lmao. Yea, I think you can do basically anything you can do in a gaming engine here.

another thing that’s cool is that same brain can be run on other objects. i wonder what it would do if you just let it name the thing itself, with the other objects. it’s not the name of the thing its recognizing afterall it’s the thing, right?

Great, thanks @Bryan_Leavelle , looking forward to hearing more about what you find with the above! And yes if you do have a chance to experiment with a more “digit-shaped” sensor, that could be interesting, as then it could re-orient with the surface agent. That may help avoid some weird/unexpected issues when touching objects with complex surfaces (e.g. near the handle on the mug, where many possible surfaces could intersect with a sphere). The final cool touch would be if it’s possible to visualize the “finger” moving over the surface of a YCB object in Mujoco.

another thing that’s cool is that same brain can be run on other objects. i wonder what it would do if you just let it name the thing itself, with the other objects. it’s not the name of the thing its recognizing afterall it’s the thing, right?

Yes this is an interesting thing to consider - we did an evaluation related to this in Figure 4 of the Thousand Brains systems paper → the tree-diagram basically demonstrates that if you showed something like a knife to Monty, but it didn’t have a model for the knife, then it would say it is most similar to a fork, etc.

aha yes 100 percent. it’s totally possible. i could make it a real finger. i considered also making multiple touch pads down the length of a finger. this could help with edge detection: it moves, distal sensor leaves the edge, the next proximal is still touching, boom you got an edge!

ask and ye shall recieve

digit_mug

digit_power_drill

digit_banana

2 Likes

Very cool, thanks Bryan!

As a neuroscientist, I’m just going to give this comment a :grimacing:

:grinning_face_with_smiling_eyes: But I love this thread! Awesome stuff @Bryan_Leavelle