Article Complete
AIM
Thanks to Google AI, Robots Can Now Generate Their Own Code
Thanks to Google AI, Robots Can Now Generate Their Own Code

Thanks to Google AI, Robots Can Now Generate Their Own Code

The new model extends their prior research—PaLM-SayCan—which will enable language models to finish complex robotic tasks using the general-purpose code of Python.

Published Updated

Key takeaways

  • Robots can now generate their own code, enhancing their ability to perform complex tasks autonomously.
  • The new framework, Code as Policies, enables language models to write programmes for robotic systems.
  • Language models like PaLM are capable of generating both code and instructions for robot actions.
  • Using few-shot prompting, language models can improve robots' generalisation and task performance.
  • This innovation reduces the time and effort required for programming robots for specific tasks.
5 min

One of the more common approaches used to control robots is to programme them with code on detecting objects and feedback loops to specify if they should perform certain tasks. These programmes come at a cost, where reprogramming policies for each task can become time consuming. 

When provided with natural language instructions, language models at present are highly proficient at not only writing generic code but also generating instructions that let the user control the actions of the robots as well. 

What if robots could autonomously write their own code to interact with the whole world? One such latest language model, like PaLM, is capable of complex reasoning and has been trained on millions of codes. 

As an advancement to this innovation, Google AI has developed Code as Policies (CaP)—a robot-centric framework consisting of programmes generated by language models executed on physical systems. The new model extends their prior research—PaLM-SayCan—which will enable language models to finish complex robotic tasks using the general-purpose code of Python. 

With CaP, the researchers have proposed using the language models to write the robot code directly through the method of few-shot prompting. The blog read, “Our experiments demonstrate that outputting code led to improved generalization and task performance over directly learning robot tasks and outputting natural language actions. CaP allows a single system to perform a variety of complex and varied robotic tasks without task-specific training.”

Source: Google AI

The team has released the code along with a demo of the interactive simulated robot on their project website. 

Further, Google funds have also open sourced silicon manufacturing shuttles for GlobalFoundries PDK. The company released the Process Design Kit (PDK) for the GlobalFoundries 180nm MCU technology platform earlier in August 2022. This open source PDK would offer open source silicon designers with new capabilities for affordability and high volume production.

Read the whole blog here. 

Membership

Stay ahead with AI insights.

Unlimited access to premium articles, exclusive analysis, and the stories shaping India's AI economy.

Subscribe now

AIM Americas

1190 Miraloma Way Suite P, Sunnyvale, CA 94085

AIM India

1st Floor, Sakti Statesman, Bellandur, Bengaluru – 560103

© 2026 AIM. All rights reserved.