# Maskowanie obrazu w czasie testu

EN: **Masked autoencoder test-time training** · id `tttmae` · aliases: TTT-MAE

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Trenowanie i dostrajanie](https://aiatlasgraph.com/t/training.md) › [Uczenie w czasie testu](https://aiatlasgraph.com/t/testtimeadapt.md) › Maskowanie obrazu w czasie testu

## Description

- PL: Jednopróbkowe uczenie w czasie testu, w którym celem pomocniczym jest odtworzenie zamaskowanego obrazu.
- EN: One-sample test-time training whose auxiliary objective is reconstructing a masked image.

## In one sentence

- PL: Model zasłania kawałki bieżącego obrazu, uczy się je odtwarzać i dopiero potem rozpoznaje treść.
- EN: A model hides pieces of the current image, learns to restore them, and only then names the content.

## Problem it solves

- PL: Jedno zdjęcie z nowego oświetlenia albo szumu nie ma etykiety, a stary model się myli.
- EN: One photo in new light or noise has no label, and the old model gets it wrong.

## What it does

- PL: Zasłonięte fragmenty trzeba odtworzyć z reszty kadru, a ta naprawa przesuwa wagi przed klasyfikacją.
- EN: Hidden fragments must be restored from the rest of the frame, and that repair shifts weights before classification.

## Everyday example

- PL: Zdjęcie produktu w złym świetle model najpierw uzupełnia w zasłoniętych miejscach, a potem podaje kategorię.
- EN: For a product photo in poor light, the model first fills hidden patches, then gives the category.

## This concerns you if you…

- PL: rozpoznajesz obrazy z innego źródła
- PL: masz pojedynczy kadr bez etykiety
- PL: stały model myli się na nowym wyglądzie
- EN: recognise images from another source
- EN: have a single frame without a label
- EN: a fixed model fails on the new look

## Keywords

masked autoencoder · MAE · one-sample learning · reconstruction loss · bias-variance · visual distribution shift

## How it works

- PL: Z próbki wycina się maskę, a enkoder z dekoderem przewiduje ukryte fragmenty. Gradient z błędu rekonstrukcji aktualizuje wybrane wagi, zwykle wspólny trzon, zanim głowa klasyfikacji wyda etykietę. Autorzy wiążą zysk z kompromisem obciążenia i wariancji.
- EN: A mask is cut from the sample, and an encoder-decoder predicts the hidden fragments. The reconstruction gradient updates selected weights, usually the shared trunk, before the classification head emits a label. The authors link the gain to a bias-variance trade-off.

## Limits

- PL: Cel rekonstrukcji może być słabo związany z klasą, a dodatkowy krok odtwarzania zwiększa koszt odpowiedzi. Metoda została opisana dla obrazów, więc nie przenosi się automatycznie na tekst.
- EN: The reconstruction objective can relate weakly to the class, and the extra restoration step increases answer-time cost. The method was described for images, so it does not transfer automatically to text.

## Key terms

- PL: **maska**: Zasłonięte fragmenty obrazu, które model ma odtworzyć.
- PL: **rekonstrukcja**: Próba odzyskania zasłoniętej treści z widocznej reszty.
- EN: **mask**: Hidden image fragments the model is asked to restore.
- EN: **reconstruction**: An attempt to recover hidden content from the visible rest.

## Know first

- [Samonadzorowane uczenie z obrazów (Self-supervised visual pretraining)](https://aiatlasgraph.com/t/visionssl.md)
- [Uczenie nadzorowane (Supervised learning)](https://aiatlasgraph.com/t/supervised.md)

## Sources

- [Test-Time Training with Masked Autoencoders](<https://arxiv.org/abs/2209.07522>) `gandelsman-tttmae-2022` · by Yossi Gandelsman, Yu Sun, Xinlei Chen, Alexei A. Efros

---

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