Telegram (AI) YouTube Facebook X
Ру
Google teaches a robot to program itself

Google teaches a robot to program itself

Researchers at Google have developed an algorithm that can write its own software for robots from natural-language instructions.

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.

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.

“The model autonomously generates code that refactors API calls, synthesizes functions, and expresses feedback loops to create new behavior at runtime,” the developers said.

To prompt CaP to write new code for specific tasks, the team supplied it with ‘hints’ such as API availability or tools, along with several paired instruction examples. This enables the model to compose programs for the robot.

According to the developers, CaP can recursively define new functions, accumulate its own libraries, and autonomously build a dynamic code base.

“Having received a single set of instructions once, it can develop some code that can then be repurposed for similar instructions later,” they added.

Google taught a robot to program itself
Example of code written by the language model for a robot. Source: Google AI.

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.

The engineers note that CaP’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.

The model cannot handle dozens of parameters at once.

In June 2021, GitHub introduced an AI-powered code-autocompletion tool Copilot. The language model for the tool was developed by OpenAI.

In October 2022, programmers announced plans to sue Microsoft for training AI with their code.

Follow ForkLog on Telegram: ForkLog AI — all the news from the world of AI!

Подписывайтесь на ForkLog в социальных сетях

Telegram (основной канал) Facebook X
Нашли ошибку в тексте? Выделите ее и нажмите CTRL+ENTER

Рассылки ForkLog: держите руку на пульсе биткоин-индустрии!

We use cookies to improve the quality of our service.

By using this website, you agree to the Privacy policy.

OK