Google wants to let robots write their own code

Robot hand making contact with human hand on dark background 3D rendering
(Image credit: Shutterstock / sdecoret)

Google has released an new open source benchmark that it says will allow robots to perform tasks by writing their own code in response to human-written instructions. 

The company has launched a new website to reveal “Code as Policies” (CAP), whereby prompts written in plain English can be interpreted into language-model generated programs (LMPs) written in Python code.

CAP is the successor to PaLM-SayCan, a project that similarly allowed a physical helper robot to be directed through commands in plain English. CAP promises to allow for more complex tasks to be completed with increased accuracy, in part due to allowing machines to write their own code.

Self-coding robots

In a blog post discussing CAP’s release, Google Research Intern Jacky Liang and Research Scientist Andy Zeng describe the motivation for the technology, and what it might mean for the future.

“What if when given instructions from people, robots could autonomously write their own code to interact with the world? [...] Given natural language instructions, current language models are highly proficient at writing not only generic code but, as we’ve discovered, code that can control robot actions as well.”

But it might not be the time to throw away your laptop for programming just yet. In testing, Google’s researchers demonstrated simple commands with a similar structure. Test robots were able to “draw a 5 cm hexagon around the middle” [of a whiteboard], and “put the blocks in a horizontal line near the top” [of a square boundary].

In the accompanying paper, titled “Code as Policies: Language Model Programs for Embodied Control”, the project team concede that CAP currently doesn’t have the ability to deal with especially abstract or complex commands or perceive descriptions of trajectory. The team’s approach also didn’t account for impossible commands being fed though CAP. 

In theory, the open source nature of Google’s “robot-centric” implementation of LMPs in Python could result in much quicker implementation of solutions to these issues. The CAP website also contains releases via Github, and an interactive demo via Google Colab to describe how robots "write" code in response to commands.

TOPICS
Luke Hughes
Staff Writer

 Luke Hughes holds the role of Staff Writer at TechRadar Pro, producing news, features and deals content across topics ranging from computing to cloud services, cybersecurity, data privacy and business software.

Read more
ChatGPT
ChatGPT wants to write your next novel, and readers and writers alike should be very worried
AI writer
Coding AI tells developer to write it himself
Google Gemini Robotics
Gemini just got physical and you should prepare for a robot revolution
AI Education
AI in 2025: Moving beyond code generation to intelligent development platforms
A person holding out their hand with a digital AI symbol.
Same skills, new tools: why developer fundamentals endure in the AI era
Abstract image of robots working in an office environment including creating blueprint of robot arm, making a phone call, and typing on a keyboard
Humans optional: Tomorrow's Internet of Agents is being planned today and will bypass homo sapiens almost entirely
Latest in Software & Services
woman listening to computer
AWS vs Azure: choosing the right platform to maximize your company's investment
Autonomous finance
Quickbooks vs Quicken: what are the main strengths and weaknesses for your business
Group of people meeting
Zoom vs Google Meet: which is the best video conferencing tool for your business?
Person at laptop
Windows 11 vs Windows 365: which is the best choice for businesses?
A man sitting at his desk in the evening and using a desktop computer
Office 2021 vs Office 2024: is it time to upgrade?
Microsoft 365 Business app logos
Office 2024 LTSC vs Microsoft 365 Business: what are the differences?
Latest in News
Super Mario Odyssey
ChatGPT is the ultimate gaming tool - here's 4 ways you can use AI to help with your next playthrough
Brad Pitt looks over his right shoulder with 'F1' written behind him
Apple Original Films will take you behind-the-scenes of a racing cockpit in this new thrilling F1 movie trailer
AI writer
Coding AI tells developer to write it himself
Reacher looking down at another character from the Prime Video TV series Reacher
Reacher season 3 becomes Prime Video’s biggest returning show thanks to Hollywood’s biggest heavyweight
Finger Presses Orange Button Domain Name Registration on Black Keyboard Background. Closeup View
I visited the world’s first registered .com domain – and you won’t believe what it’s offering today
Image showing detail of the Leica D-Lux 8
Still can't get a Fujifilm X100VI? This premium Leica compact costs less, and it's in stock