{"id":69788,"date":"2022-11-09T13:29:02","date_gmt":"2022-11-09T11:29:02","guid":{"rendered":"https:\/\/forklog.com\/en\/?p=69788"},"modified":"2025-09-07T22:04:54","modified_gmt":"2025-09-07T19:04:54","slug":"google-teaches-a-robot-to-program-itself","status":"publish","type":"post","link":"https:\/\/u1f987.com\/en\/google-teaches-a-robot-to-program-itself\/","title":{"rendered":"Google teaches a robot to program itself"},"content":{"rendered":"<p>Researchers at Google have developed an algorithm that can write its own software for robots from natural-language instructions.<\/p>\n<blockquote class=\"twitter-tweet\" data-conversation=\"none\">\n<p lang=\"en\" dir=\"ltr\">PaLM, our latest &#038; most capable language model, can unlock new possibilities in robotics.<\/p>\n<p>For example, read about Code as Policies, an approach that, when given natural language instructions, uses language models to write code that controls robots\u2192 <a href=\"https:\/\/t.co\/hTJ9kbgMdq\">https:\/\/t.co\/hTJ9kbgMdq<\/a> (2\/3) <a href=\"https:\/\/t.co\/5j11oPVSsJ\">pic.twitter.com\/5j11oPVSsJ<\/a><\/p>\n<p>\u2014 Google AI (@GoogleAI) <a href=\"https:\/\/twitter.com\/GoogleAI\/status\/1587800467349774336?ref_src=twsrc%5Etfw\">November 2, 2022<\/a><\/p><\/blockquote>\n<p> <script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>The Code as Policies (CaP) language model, built on PaLM, is designed to interpret natural-language instructions and turn them into code that a robot can execute.<\/p>\n<p>Researchers trained the algorithm by giving it examples in the form of programmer comments and the code that accompanies them. This enabled CaP to learn new instructions.<\/p>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;The model autonomously generates code that refactors API calls, synthesizes functions, and expresses feedback loops to create new behavior at runtime,&#8221; the developers said.<\/p>\n<\/blockquote>\n<p>To prompt CaP to write new code for specific tasks, the team supplied it with &#8216;hints&#8217; such as API availability or tools, along with several paired instruction examples. This enables the model to compose programs for the robot.<\/p>\n<p>According to the developers, CaP can recursively define new functions, accumulate its own libraries, and autonomously build a dynamic code base.<\/p>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;Having received a single set of instructions once, it can develop some code that can then be repurposed for similar instructions later,&#8221; they added.<\/p>\n<\/blockquote>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"669\" src=\"https:\/\/u1f987.com\/wp-content\/uploads\/image3-187-1024x669.png\" alt=\"Google taught a robot to program itself\" class=\"wp-image-190298\" srcset=\"https:\/\/u1f987.com\/wp-content\/uploads\/image3-187-1024x669.png 1024w, https:\/\/u1f987.com\/wp-content\/uploads\/image3-187-300x196.png 300w, https:\/\/u1f987.com\/wp-content\/uploads\/image3-187-768x502.png 768w, https:\/\/u1f987.com\/wp-content\/uploads\/image3-187-1536x1004.png 1536w, https:\/\/u1f987.com\/wp-content\/uploads\/image3-187.png 1616w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Example of code written by the language model for a robot. Source: Google AI.<\/figcaption><\/figure>\n<p>CaP can employ arithmetic operations and the logic of certain languages. For example, a Python-trained model uses the appropriate if\/else and for\/while loops as needed. It can also apply external libraries for additional functionality.<\/p>\n<p>The engineers note that CaP&#8217;s capabilities remain heavily constrained. It relies on the language model to provide context for its instructions. If prompts do not make sense, CaP will not be able to write code.<\/p>\n<p>The model cannot handle dozens of parameters at once.<\/p>\n<p>In June 2021, GitHub introduced <a href=\"https:\/\/u1f987.com\/en\/news\/github-unveils-ai-powered-copilot-code-autocompletion-tool\">an AI-powered code-autocompletion tool<\/a> Copilot. The language model for the tool was developed by OpenAI.<\/p>\n<p>In October 2022, programmers announced plans to <a href=\"https:\/\/u1f987.com\/en\/news\/developers-to-sue-microsoft-over-training-ai-with-their-code\">sue Microsoft<\/a> for training AI with their code.<\/p>\n<p>Follow ForkLog on Telegram: <a href=\"https:\/\/t.me\/forklogAI\">ForkLog AI<\/a> \u2014 all the news from the world of AI!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Researchers at Google have developed an algorithm that can write its own software code for robots from natural-language instructions.<\/p>\n","protected":false},"author":1,"featured_media":69789,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"select":"1","news_style_id":"1","cryptorium_level":"","_short_excerpt_text":"","creation_source":"","_metatest_mainpost_news_update":false,"footnotes":""},"categories":[3],"tags":[438,738,652],"class_list":["post-69788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news-and-analysis","tag-artificial-intelligence","tag-google","tag-robots"],"aioseo_notices":[],"amp_enabled":true,"views":"10","promo_type":"1","layout_type":"1","short_excerpt":"","is_update":"","_links":{"self":[{"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/posts\/69788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/comments?post=69788"}],"version-history":[{"count":1,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/posts\/69788\/revisions"}],"predecessor-version":[{"id":69790,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/posts\/69788\/revisions\/69790"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/media\/69789"}],"wp:attachment":[{"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/media?parent=69788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/categories?post=69788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/u1f987.com\/en\/wp-json\/wp\/v2\/tags?post=69788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}