# Adaptacyjne zatrzymanie obliczeń

EN: **Adaptive computation time** · id `acthalt` · aliases: ACT, halting mechanism, ponder cost

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Sieci i modele generatywne](https://aiatlasgraph.com/t/neural.md) › [Rozumowanie w modelach językowych](https://aiatlasgraph.com/t/reasoningmodels.md) › [Pętle głębokości i myśli ukryte](https://aiatlasgraph.com/t/latentloops.md) › Adaptacyjne zatrzymanie obliczeń

## Description

- PL: Różniczkowalna reguła, która uczy sieć rekurencyjną liczby kroków między wejściem a wyjściem.
- EN: A differentiable rule that teaches a recurrent network how many steps to take between input and output.

## In one sentence

- PL: Sieć sama decyduje, ile razy jeszcze policzyć, zanim odda wynik.
- EN: The network decides how many more times to compute before it emits a result.

## Problem it solves

- PL: Stała liczba kroków marnuje pracę na łatwych miejscach i nie wyrabia na trudnych.
- EN: A fixed step count wastes work on easy spots and falls short on hard ones.

## What it does

- PL: Przy każdym kroku model wystawia pewność zakończenia, a suma tych decyzji ucina dalsze liczenie.
- EN: At each step the model emits a halt confidence, and the sum of those decisions cuts off further compute.

## Everyday example

- PL: W modelu znakowym sieć przeznacza więcej kroków na trudniejsze przejścia, na przykład granice słów i końce zdań.
- EN: In a character model, the network spends more steps on harder transitions, such as word boundaries and sentence endings.

## This concerns you if you…

- PL: trudność zmienia się w środku zadania
- PL: płacisz za każdy dodatkowy krok
- PL: stała głębokość jest źle dobrana
- EN: difficulty changes inside a task
- EN: you pay for every extra step
- EN: a fixed depth is poorly matched

## Keywords

adaptive computation time · ponder cost · halting unit · per-position halting · Graves ACT · dynamic depth

## How it works

- PL: W każdym kroku sieć wytwarza sygnał zatrzymania i kontynuuje obliczenia, dopóki nie spełni kryterium końca. Reguła jest deterministyczna i różniczkowalna oraz dodaje koszt za zbędne kroki. W transformerze w pętli podobny mechanizm może zatrzymywać pozycje osobno.
- EN: At each step the network produces a halting signal and continues until the stopping criterion is met. The rule is deterministic and differentiable and adds a cost for unnecessary steps. In a looped transformer, a similar mechanism can halt positions separately.

## Limits

- PL: Zły próg kończy za wcześnie albo liczy w kółko. Zysk nie pojawia się na każdym zbiorze. Mechanizm trzeba trenować razem z siecią, a nie dokleić po fakcie bez kosztu.
- EN: A bad threshold stops too early or loops. Gains do not appear on every dataset. The mechanism must be trained with the network, not glued on afterwards for free.

## Key terms

- PL: **waga zatrzymania**: Liczba mówiąca, jak blisko jest koniec liczenia w tym kroku.
- PL: **kara za kroki**: Dodatkowy koszt treningu za zbędne powtórzenia.
- EN: **halting weight**: A number saying how close this step is to stopping.
- EN: **ponder cost**: An extra training penalty for unnecessary repeats.

## Know first

- [Strategie dekodowania (Decoding strategies)](https://aiatlasgraph.com/t/decoding.md)

## Related topics

Untyped, symmetric "see also" links.

- [Sterowanie budżetem myślenia (Thinking budget control)](https://aiatlasgraph.com/t/budgetcontrol.md)

## Sources

- [Universal Transformers](<https://arxiv.org/abs/1807.03819>) `dehghani-ut-2018` · by Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, Łukasz Kaiser
- [Adaptive Computation Time for Recurrent Neural Networks](<https://arxiv.org/abs/1603.08983>) `graves-act-2016` · by Alex Graves

---

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