A seguirPróximo guia
Ajuste fino vs RAG vs prompt
IA de linguagem
GUIA de IA de linguagem
Prefix-tuning is a parameter-efficient adaptation method studied by Li and Liang.
Ouça este guiaNarrado por IA · ~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.
Boletim informativo gratuito
Três histórias verificadas de IA a cada manhã de dia útil, escritas em linguagem simples. Gratuito para sempre, sem anúncios.
Um e-mail a cada dia útil. Cancele a inscrição com um clique. Nunca vendemos ou compartilhamos seu endereço.
Teste você mesmo
Feedback instantâneo sobre cada resposta e um certificado compartilhável com um ID verificável assim que você concluir um curso.
Apoie a educação gratuita em IA. O AI Understanding é uma organização sem fins lucrativos 501(c)(3) — sem anúncios, sem paywall, nunca. Faça uma doação
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.
O ajuste de prefixo congela o backbone e aprende apenas um pequeno conjunto de vetores de prefixo contínuos, mantendo-o eficiente em termos de parâmetros.
O ajuste de prefixo acrescenta vetores de chave/valor treináveis na autoatenção de cada camada do transformador, não apenas na entrada.
O ajuste do prefixo foi proposto por Xiang Lisa Li e Percy Liang em Stanford em 2021.
Como apenas o prefixo pequeno é específico da tarefa, você armazena um pequeno arquivo por tarefa em vez de duplicar o modelo inteiro.
Um pequeno MLP gera o prefixo durante o treinamento para estabilidade e depois é descartado, deixando apenas as matrizes de prefixo aprendidas.
Continue aprendendo
Mais guias escolhidos para este tópico
A seguirPróximo guia
Ajuste fino vs RAG vs prompt
IA de linguagem