VolgendeVolgende gids
Begeleid zoeken naar liggers met beperkingen
Taal AI
Taal AI-GIDS
Beam search is a decoding algorithm that retains a fixed number of high-scoring partial sequences at each step.
Luister naar deze gidsAI-verteld · ~2 min
It is used in sequence generation tasks, with results shaped by model scores and any normalization or penalties.
At each decoding step, beam search expands the current partial candidates and retains the top-scoring continuations. A wider beam explores more options but increases search cost and does not necessarily improve perceived quality. GNMT uses length normalization to mitigate short-output bias and a coverage penalty to encourage source-word coverage in translation. Diverse beam search modifies group selection to reduce redundant candidates.
A beam of width k keeps up to k partial sequences rather than only one greedy continuation.
GNMT used length normalization and a coverage penalty in its translation system.
Diverse beam search adds a penalty to reduce overlap among candidate sequences from beam groups.
For open-ended text, compare beam outputs with sampling because likelihood-ranked outputs can be repetitive or bland in the evaluated settings.
Select decoding criteria for the task and measure both search cost and output quality. For translation, report source coverage and reference-based metrics; for open-ended generation, include human evaluation where appropriate. The cited sources describe particular methods and experiments rather than a single universally best beam configuration.
Gratis nieuwsbrief
Drie verifieerde AI-verhalen elke weekdagmorgen, geschreven in eenvoudig Engels. Gratis voor altijd, geen advertenties.
Eén e-mail elke weekdag. Afmelden met één klik. We verkopen of delen je adres nooit.
Test jezelf
Directe feedback op elke antwoord, en een deelbare certificaat met een verifieerbare ID zodra je een cursus hebt afgerond.
Ondersteun gratis AI-onderwijs. AI Understanding is een 501(c)(3) non-profit — geen advertenties, geen betaalmuur, nooit. Doe een donatie
Beam search is a decoding algorithm that retains a fixed number of high-scoring partial sequences at each step. It is used in sequence generation tasks, with results shaped by model scores and any normalization or penalties.
De bundelbreedte is het aantal bovenste deelreeksen dat bij elke stap wordt behouden en uitgebreid; grotere breedtes verkennen meer kandidaten.
Hebzuchtige decodering neemt bij elke stap alleen het bovenste token; bundelzoekheggen door verschillende veelbelovende sequenties tegelijkertijd te volgen.
Elk extra token voegt een negatieve log-waarschijnlijkheid toe, dus zonder normalisatie scoren kortere reeksen onterecht hoger.
Beam search blinkt uit als het doel één nauwkeurige, vloeiende weergave is. Daarom werd het standaard in vertalingen.
Contra-intuïtief is dat bredere bundels bij het genereren van neurale tekst vaak de voorkeur geven aan generieke, repetitieve sequenties in plaats van interessante.
Blijf leren
Er zijn meer handleidingen voor dit onderwerp geselecteerd
VolgendeVolgende gids
Begeleid zoeken naar liggers met beperkingen
Taal AI