VOOZH about

URL: https://thenewstack.io/mit-machine-learning-uses-graph-grammar-to-automate-and-optimize-robot-design/

⇱ MIT Machine Learning Uses 'Graph Grammar' to Automate and Optimize Robot Design - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2021-01-06 12:20:18
MIT Machine Learning Uses 'Graph Grammar' to Automate and Optimize Robot Design
news,
AI / Edge Computing / Software Development

MIT Machine Learning Uses ‘Graph Grammar’ to Automate and Optimize Robot Design

Dubbed RoboGrammar, the system is based on what's called graph grammar, a technique borrowed from computer science where a series of related objects — or 'graph' — are algorithmically transformed into new 'graphs', thus generating new abstractions that adhere to a set of transformational rules, much like how grammar rules affect the way human languages are structured.
Jan 6th, 2021 12:20pm by Kimberley Mok
👁 Featued image for: MIT Machine Learning Uses ‘Graph Grammar’ to Automate and Optimize Robot Design

Over the last few years, we’ve seen quite a few interesting projects emerge from the field of robotics. From multifunctional robots that shapeshift by melting their own joints, to multifluidic soft robots and nano-scale DNA robots, it’s seemingly possible to create some kind of robotic solution for almost any situation. Of course, some experts have pointed out that these hyper-customized approaches can result in a kind of piecemeal fragmentation in the evolution of robotics: different teams are “re-inventing the wheel” each time a robot is designed, creating divergent kinds of hardware and software. In response, some are suggesting using alternatives like modular robotic systems, or even a broader open source approach to designing robots.

👁 Image

Grammar structural “rules” represented by letters, and the actual robotic components they represent.

Over at MIT, researchers are proposing yet another possible course of action: using a kind of “robot grammar” system to create robots that can be automatically optimized to the needs of the moment, and for different kinds of terrain.

Dubbed RoboGrammar, the system is based on what’s called graph grammar, a technique borrowed from computer science where a series of related objects — or “graph” — are algorithmically transformed into new “graphs”, thus generating new abstractions that adhere to a set of transformational rules, much like how grammar rules affect the way human languages are structured. Graph grammars essentially provide rule-based mechanisms for generating, manipulating and analyzing such structures.

“RoboGrammar is a framework for finding specialized robot designs for different terrains,” explained Allan Zhao, a Ph.D. student who is part of Professor Wojciech Matusik’s group in MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL), and lead author of the paper. “We express the designs using a ‘graph grammar’, which restricts how robot parts can be put together and helps avoid nonsensical designs.”

Flexible and Creative Grammar System

The idea behind RoboGrammar is to leverage machine learning algorithms to find more innovative robot designs, and to automatically optimize them for whatever terrain they are needed in. But to make the process more efficient, the number of possible outcomes and arrangements is constrained by a small set of rules. For example, a grammar-based system can stipulate the leg segments of a robot prototype should be linked up by joints, not to an arm or another leg.

Accordin” to the team, the RoboGrammar system was initially inspired by the forms of arthropods — segmented organisms with exoskeletons, which include specimens like insects, spiders, and lobsters. Evolutionarily speaking, these organisms are some of the most successful on Earth, as they make up more than 80 percent of known animal species. So the notion here was to adapt some of nature’s best design ideas, while still allowing for novel schemes to emerge, rather than wasting time on developing prototypes that might not prove feasible in the long run.

“Other existing systems for robot design do not constrain the way the parts can be put together, meaning that very few of the possible combinations will work,” said Zhao. “The graph grammar helps reduce the number of combinations that need to be searched over while still leaving room for creativity.”

Narrowing Down the Possibilities

In particular, the team’s system uses what they call “graph heuristic search” — a new method for efficiently searching through a design space populated with many different possible combinations, and prioritizes the exploration of the most promising options, while also mapping out any incomplete designs, and the best performance levels that might be achieved by further developing them.

“Our graph heuristic search is inspired by the A-star algorithm [one of the best techniques used in path-finding and graph traversals], with some ideas borrowed from reinforcement learning,” explained Zhao. “We use a learned heuristic function based on a graph neural network to decide which design to try in each iteration. After getting the performance of a design, we update the heuristic function using backpropagation. The idea is that the heuristic function will become more accurate over time, and narrow down the search to more promising branches of the design space.”

Overall, the RoboGrammar system first defines the problem — noting what kind of terrain is present, how slippery it is and so on — and then generates possible robot designs, before selecting the best solutions. A human user can also input other factors into the process, like specifying how many robotic components like arms, legs, wheels and motors are available. In doing so, the system can then come up with thousands of possibilities, which human users can then choose to develop further.

But a robot doesn’t move on its own; it also needs a system to control it. So in addition, the team also used an algorithm called model predictive control, which tailors the control system to each robot’s particular form, thus rapidly optimizing the control system toward a stable, forward gait, no matter its shape.

To test out their system, the team generated simulated robots, and found that in general, the best design solutions came in quadruped form. “This didn’t really come as a surprise, but many of the best designs ended up having four legs in the end. Perhaps four legs offer a good balance between stability and weight,” Zhao surmised.

The team’s intention is to provide RoboGrammar as a tool to help robot engineers streamline their design process, but there could be other potential applications.

“It could be useful in the early stages of designing a robot, when trying to decide on a general form,” added Zhao. “But it could also be used to quickly populate virtual worlds with many different creatures. The results so far are only based on simulation, and translating them to the real world would be a logical next step, which we are currently working on. The grammar could also be expanded to include an even greater variety of forms, such as sea creatures.”

👁 Image

One prototype generated by RoboGrammar’s system, and two graphs showing how several different prototypes perform in two terrains.

Read the team’s paper here, or download the code on GitHub.

TRENDING STORIES
Kimberley Mok is a tech and design reporter who covers artificial intelligence, robotics, quantum computing, tech culture and science stories for The New Stack. Trained as an architect, she is also an illustrator and multidisciplinary designer who has been passionate...
Read more from Kimberley Mok
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.