NastępnyNastępny poradnik
Dostrajanie vs RAG vs Podpowiadanie
Językowa sztuczna inteligencja
PRZEWODNIK Językowy AI
Prefix-tuning is a parameter-efficient adaptation method studied by Li and Liang.
Posłuchaj tego przewodnikaOpowiadane przez sztuczną inteligencję · ~1 min
It freezes a pretrained language model and learns continuous task-specific prefix vectors that influence the model’s attention computations.
Prefix-tuning prepends trainable continuous vectors to the key and value activations at transformer layers while freezing the pretrained model parameters. Li and Liang evaluate the method on table-to-text generation and summarization. In their reported experiments, the method learns about 0.1% of the model parameters. They also report that prefix-tuning outperformed full fine-tuning in some evaluated low-data settings and performed competitively in other studied conditions. These are results tied to the paper’s model, tasks and data splits, not universal guarantees.
The paper evaluates prefix-tuning on WebNLG table-to-text generation.
The paper evaluates summarization with a pretrained BART model.
A task-specific prefix can be stored separately while the pretrained backbone remains frozen.
The paper compares prefix-tuning with full fine-tuning in full-data and low-data settings.
When reproducing the paper, record the backbone, task, data split, prefix length, and parameter count. Compare against full fine-tuning on the same evaluation and avoid assuming the paper’s results transfer unchanged to other models or deployment settings.
Darmowy newsletter
Trzy zweryfikowane historie AI każdego poranka w dni robocze, napisane prostym angielskim. Bezpłatne na zawsze, bez reklam.
Jedno e‑mail każdego dnia roboczego. Wypisz się jednym kliknięciem. Nigdy nie sprzedajemy ani nie udostępniamy Twojego adresu.
Sprawdź się
Natychmiastowa informacja zwrotna na każde pytanie oraz udostępnialny certyfikat z weryfikowalnym ID po zaliczeniu kursu.
Wspieraj darmową edukację AI. AI Understanding jest organizacją non-profit 501(c)(3) — bez reklam, bez płatnej ściany, zawsze. Przekaż darowiznę
Prefix-tuning is a parameter-efficient adaptation method studied by Li and Liang. It freezes a pretrained language model and learns continuous task-specific prefix vectors that influence the model’s attention computations.
Strojenie prefiksów zamraża szkielet i uczy się tylko małego zestawu ciągłych wektorów prefiksów, utrzymując efektywność parametrów.
Strojenie prefiksów dodaje możliwe do wytrenowania wektory klucz/wartość w samouważności każdej warstwy transformatora, a nie tylko na wejściu.
Strojenie prefiksów zaproponowali Xiang Lisa Li i Percy Liang na Uniwersytecie Stanforda w 2021 roku.
Ponieważ tylko mały przedrostek jest specyficzny dla zadania, przechowujesz jeden mały plik na zadanie, zamiast duplikować cały model.
Mały MLP generuje przedrostek podczas treningu stabilności, a następnie jest wyrzucany, pozostawiając jedynie wyuczone macierze przedrostków.
Ucz się dalej
Wybrano więcej przewodników na ten temat
NastępnyNastępny poradnik
Dostrajanie vs RAG vs Podpowiadanie
Językowa sztuczna inteligencja