# Klonowanie zachowań (behavioral cloning)

EN: **Behavioural cloning** · id `behaviorcloning`

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Uczenie ze wzmocnieniem i decyzje](https://aiatlasgraph.com/t/decisions.md) › [Uczenie przez imitację](https://aiatlasgraph.com/t/imitation.md) › Klonowanie zachowań (behavioral cloning)

## Description

- PL: Uczenie nadzorowane na parach obserwacja→akcja z demonstracji. To podstawowa metoda uczenia polityk robotów z pokazów; jej słabością jest kumulowanie się błędów poza rozkładem sytuacji widzianych w danych.
- EN: Supervised learning on observation→action pairs from demonstrations. It is a foundational way to learn robot policies from demonstrations; a weakness is compounding error outside the distribution represented in the data.

## In one sentence

- PL: To uczenie robota lub programu wybierania działań podobnych do pokazanych przez człowieka.
- EN: This teaches a robot or program to choose actions resembling those demonstrated by a person.

## Problem it solves

- PL: Umiesz wykonać zadanie, ale trudno rozpisać wszystkie reguły ruchu i rozpoznawania odpowiedniego momentu.
- EN: You can perform a task but find every movement rule and timing condition difficult to describe.

## What it does

- PL: Uczy mapowania obserwowanej sytuacji na pokazany ruch; poza poznanymi sytuacjami błędy mogą prowadzić do kolejnych błędów.
- EN: It learns to map an observed situation to a demonstrated action; in unfamiliar situations, mistakes can lead to further mistakes.

## Everyday example

- PL: Robot ogląda zapis układania ręcznika i uczy się dobierać ruch ramienia do obrazu materiału w kolejnych chwilach.
- EN: A robot learns from recorded towel folding to choose arm movements matching the cloth's appearance at each step.

## This concerns you if you…

- PL: masz pokazy z zapisem sytuacji i wykonanych ruchów
- PL: chcesz zacząć naukę działania od naśladowania
- EN: have demonstrations recording situations and actions
- EN: want action learning to start from imitation

## Keywords

supervised policy learning · expert demonstrations · covariate shift · compounding errors · behavioral cloning loss

## How it works

- PL: Polityka minimalizuje błąd predykcji akcji eksperta z jego obserwacji. Podczas wykonania używa własnych predykcji, więc jej działania wpływają na rozkład kolejnych wejść.
- EN: A policy minimises prediction error on expert actions given observations. During execution it uses its own predictions, so its actions affect the distribution of subsequent inputs.

## Limits

- PL: Małe błędy mogą narastać w kolejnych krokach. Wiele poprawnych akcji dla tej samej obserwacji wymaga modelowania rozkładu, a jakość zależy od pokrycia demonstracji.
- EN: Small errors can compound across steps. Multiple correct actions for the same observation require distribution modelling, and quality depends on demonstration coverage.

## Key terms

- PL: **błąd imitacji**: Rozbieżność między działaniem modelu a zarejestrowanym działaniem eksperta.
- PL: **covariate shift**: Zmiana rozkładu wejść względem przykładów użytych do treningu.
- EN: **imitation error**: A discrepancy between the model's action and the recorded expert action.
- EN: **covariate shift**: A change in input distribution relative to training examples.

## Know first

- [Uczenie nadzorowane (Supervised learning)](https://aiatlasgraph.com/t/supervised.md)
- [Proces decyzyjny Markowa (MDP) (Markov decision processes (MDP))](https://aiatlasgraph.com/t/mdp.md)

## Examples

- PL: Demonstracje eksperta · przesunięcie rozkładu · kumulacja błędów
- EN: Expert demonstrations · distribution shift · compounding errors

## Related topics

Untyped, symmetric "see also" links.

- [Modele wizja–język–akcja (VLA) (Vision-language-action models (VLA))](https://aiatlasgraph.com/t/vla.md)
- [Planery uczone na nagraniach jazdy (Learning-based motion planning)](https://aiatlasgraph.com/t/learnedplanning.md)
- [Teleoperacja i zbiory demonstracji robotów (Teleoperation and robot demonstration datasets)](https://aiatlasgraph.com/t/teleopdata.md)

## Sources

- [Berkeley CS185/285 · Deep Reinforcement Learning (2026)](<https://rail.eecs.berkeley.edu/deeprlcourse/>) `rl` · reference: Uczenie przez wzmacnianie, imitacja, sterowanie i RL dla LLM.
- [Hugging Face Deep Reinforcement Learning Course — unit list](<https://huggingface.co/learn/deep-rl-course/unit0/introduction>) `hf-deep-rl-course` · by Hugging Face
- [A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning](<https://arxiv.org/abs/1011.0686>) `dagger-2011` · by S. Ross, G. J. Gordon, J. A. Bagnell
- [LeRobot documentation](<https://huggingface.co/docs/lerobot/index>) `lerobot-docs` · by Hugging Face

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/behaviorcloning · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
