프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

GPT Understands, Too

GPT도 이해한다

  • 연구 문제 사람이 작성한 이산 프롬프트는 표현 변화에 따라 성능이 크게 흔들려 언어모델 적응을 불안정하게 만듭니다.
  • 연구 방법 이산 프롬프트 토큰에 학습 가능한 연속 프롬프트 임베딩을 덧붙이고, 프롬프트 인코더로 그 임베딩 사이의 의존성을 모델링하여 작업 손실로 갱신합니다.
  • 주요 결과 LAMA 지식 탐색에서 동결 모델 기준 최고 결과를 개선하고, few-shot SuperGLUE에서 PET보다 평균 1점 이상 높으며, 수동 프롬프트 간 표준편차를 줄입니다.

수동 이산 프롬프트의 불안정성

pre-training 언어모델에 자연어 패턴을 덧붙이는 프롬프트 방식은 자연어 이해 과제에서 효과가 확인되었습니다. 그러나 사람이 작성한 이산 프롬프트는 단어 하나를 바꾸는 것만으로도 성능이 크게 떨어질 수 있습니다. 원문의 Table 1에서 LAMA P17 과제에 BERT-base-cased를 동결한 설정으로 보면, 같은 관계를 묻는 프롬프트라도 P@1이 19.8에서 51.1까지 흔들립니다. 이 문제는 프롬프트를 자동으로 탐색하는 기존 방법들이 탐색 결과를 얻더라도 이산 공간의 불안정한 성질 자체를 바꾸지 못한다는 점에서 남습니다.

Table 1: Discrete prompts suffer from instability (high
variance), while P-Tuning stabilizes and improves per-
formance. Results are precision@1 on LAMA-TREx
P…

Table 1 : Discrete prompts suffer from instability (high variance), while P-Tuning stabilizes and improves per- formance. Results are precision@1 on LAMA-TREx P17 with BERT-base-cased. “PT” refers to P-Tuning, which trains additional continuous prompts in concate- nation with discrete prompts.

원문 · CC BY 4.0 · Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang · GPT Understands, Too · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

이 논문은 이 불안정성을 줄이기 위해 프롬프트를 이산 토큰으로만 구성하지 않고, 학습 가능한 연속 프롬프트 임베딩을 이산 프롬프트와 함께 입력에 넣는 방법을 다룹니다.

연속 프롬프트 임베딩과 프롬프트 인코더

P-Tuning은 이산 프롬프트 토큰과 연속 프롬프트 임베딩을 이어 붙여 언어모델에 입력합니다. 연속 프롬프트 임베딩은 작업 손실의 역전파로 갱신되며, 원문은 이 학습 가능성이 이산 프롬프트의 작은 변화에 따른 영향을 상쇄하여 학습을 안정시킬 수 있다는 직관을 제시합니다.

Figure 2: An example of prompt search for “The capital of Britain is [MASK]”. Given the context (blue zone,
“Britain”) and target (red zone, “[MASK]”), the ora…

Figure 2 : An example of prompt search for “The capital of Britain is [MASK]”. Given the context (blue zone, “Britain”) and target (red zone, “[MASK]”), the orange zone refer to the prompt. In (a), the prompt generator only receives discrete rewards; on the contrary, in (b) the continuous prompt embeddings and prompt encoder can be optimized in a differentiable way.

원문 · CC BY 4.0 · Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang · GPT Understands, Too · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

원문의 템플릿은 프롬프트 토큰 P0부터 Pk까지를 입력 시퀀스 사이에 배치하는 형식입니다. 연속 프롬프트 [Pi]는 매핑 함수 f를 통해 hi로 변환되며, 이 hi가 모델 입력 임베딩으로 들어갑니다. 원문은 f를 LSTM 또는 MLP로 구현하여 연속 프롬프트 임베딩 사이의 의존성을 모델링한다고 설명하며, Section 3의 ablation에서는 identity 매핑인 EMB도 함께 비교합니다. 이산 프롬프트와 연속 프롬프트를 함께 쓰는 설정이 실험 전반에 채택되었다고 원문에 기록되어 있습니다.

LAMA 지식 탐색에서의 검증

LAMA 지식 탐색 실험은 언어모델을 동결하고 연속 프롬프트만 학습하는 설정으로 수행되었습니다. 평가는 LAMA-34k와 LAMA-29k에서 Precision@1을 사용합니다. LAMA-29k는 GPT와 BERT의 어휘 교집합을 쓰는 부분집합으로, 두 모델 계열을 직접 비교하기 위해 선택되었습니다.

그 결과 P-tuning은 기존 최고 결과인 43.3%를 LAMA-34k에서 50.6%로, 45.2%를 LAMA-29k에서 64.2%로 끌어올립니다. 같은 크기의 모델에서 AutoPrompt와 LPAQA 같은 이산 프롬프트 탐색 방법보다도 높다고 보고됩니다. 이 결과는 동결된 언어모델과 해당 설정에서 얻은 것이며, 다른 모델 계열이나 다른 과제에 그대로 일반화되지는 않습니다.

Table 3: Knowledge probing Precision@1 on LAMA-34k (left) and LAMA-29k (right). P-tuning outperforms all
the discrete prompt searching baselines. (MP: Manual p…

Table 3 : Knowledge probing Precision@1 on LAMA-34k (left) and LAMA-29k (right). P-tuning outperforms all the discrete prompt searching baselines. (MP: Manual prompt; PT: P-tuning).

원문 · CC BY 4.0 · Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang · GPT Understands, Too · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

few-shot SuperGLUE와 안정성 평가

few-shot SuperGLUE 실험은 FewGLUE 설정에서 ALBERT를 기반 모델로 사용하고, PET 및 Prompt Tuning과 비교합니다. 원문은 평가 결과의 분산이 크다는 점을 고려하여 여러 데이터 분할로 평균을 내며, P-Tuning은 PET와 같은 수동 프롬프트를 기반으로 연속 프롬프트 토큰을 추가하는 방식으로 구성됩니다. 이 설정에서 P-Tuning은 평균에서 PET보다 1점 이상, Prompt Tuning보다 13점 이상 높습니다.

Table 5: The few-shot performance of PET (Schick and Schütze, 2020), Prompt Tuning (Lester et al., 2021) and our
P-tuning over seven tasks based on ALBERT. Eac…

Table 5 : The few-shot performance of PET (Schick and Schütze, 2020), Prompt Tuning (Lester et al., 2021) and our P-tuning over seven tasks based on ALBERT. Each result is averaged over 4 runs with different data splits. Results show that P-tuning consistently improves average few-shot performance by more than 1 point compared to PET and by more than 13 points compared to Prompt Tuning.

원문 · CC BY 4.0 · Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang · GPT Understands, Too · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

안정성 측면에서는 LAMA P17의 수동 프롬프트 여섯 개에 연속 프롬프트를 추가했을 때 표준편차가 10.1에서 0.46으로 줄어든다는 결과가 제시됩니다. 같은 Table 6의 few-shot 부분에서도 P-Tuning이 최악 패턴의 성능을 개선하고 표준편차를 줄인다고 보고됩니다. 다만 이 안정성 결과는 LAMA P17 설정과 few-shot 설정이 각각 따로 측정된 것입니다.

Table 6: Upper table: Few-shot learning (FSL) of PET and P-tuning in terms of each pattern on SuperGLUE with
ALBERT; Lower table: Manual prompt (MP) and P-tuni…

Table 6 : Upper table: Few-shot learning (FSL) of PET and P-tuning in terms of each pattern on SuperGLUE with ALBERT; Lower table: Manual prompt (MP) and P-tuning performance on LAMA-P17 with BERT-base-cased. For each column, P-tuning and compared methods share the same manual prompts, while P-tuning additionally concatenates continuous prompt tokens. We report the standard deviation over multiple results of different patterns. Results show that P-tuning achieves smaller standard deviation, proving that P-tuning can improve stability w.r.t. the choice of discrete patterns.

원문 · CC BY 4.0 · Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang · GPT Understands, Too · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

프롬프트 인코더와 절제 실험

프롬프트 인코더의 선택은 few-shot 설정의 절제 실험에서 검토됩니다. LSTM, MLP, EMB를 비교하며, 원문에 따르면 LSTM과 MLP는 WiC, CB, BoolQ에서 대체로 잘 작동하지만 EMB는 일부 과제, 특히 WiC와 CB에서 크게 낮은 성능을 보입니다. 따라서 원문은 새로운 과제에서 LSTM과 MLP를 함께 고려하는 것이 바람직하다고 제안합니다.

Table 8: The few-shot performance on WiC, CB and
BoolQ tasks with ALBERT using different prompt en-
coders. Results show that both LSTM and MLP gener-
ally wor…

Table 8 : The few-shot performance on WiC, CB and BoolQ tasks with ALBERT using different prompt en- coders. Results show that both LSTM and MLP gener- ally work well on these tasks, while EMB is unstable and can substantially under-perform the other two on some tasks (e.g,. WiC and CB). “EMB” means using an identity mapping for the prompt encoder.

원문 · CC BY 4.0 · Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang · GPT Understands, Too · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

연속 프롬프트 토큰의 위치와 개수도 CB 과제의 ALBERT 설정에서 분석됩니다. 프롬프트가 문장을 끊지 않는 위치에 놓일 때 더 낫다는 관찰과, 토큰 수가 많아질수록 항상 좋아지지는 않는다는 관찰이 함께 보고됩니다.

Table 7: The few-shot performance of P-tuning on the CB task on ALBERT with different prompt patterns. “Seg.”
means whether the inserted prompt tokens segment…

Table 7 : The few-shot performance of P-tuning on the CB task on ALBERT with different prompt patterns. “Seg.” means whether the inserted prompt tokens segment complete sentences. “Pos.” indicates inserting the prompt tokens at the edge or in the middle of the inputs. “[P]” is continuous prompt token. “[M]” is the mask token.

원문 · CC BY 4.0 · Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang · GPT Understands, Too · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

논문 정보

저자
Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang
학회·저널
arXiv · 프리프린트
최초 공개일
2021년 3월 18일
등록일
2026년 11월 6일
수정일
2023년 10월 25일
버전
v2
arXiv
2103.10385
분류
cs.CL · cs.LG
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

초록

Prompting a pretrained language model with natural language patterns has been proved effective for natural language understanding (NLU). However, our preliminary study reveals that manual discrete prompts often lead to unstable performance -- e.g., changing a single word in the prompt might result in substantial performance drop. We propose a novel method P-Tuning that employs trainable continuous prompt embeddings in concatenation with discrete prompts. Empirically, P-Tuning not only stabilizes training by minimizing the gap between various discrete prompts, but also improves performance by a sizeable margin on a wide range of NLU tasks including LAMA and SuperGLUE. P-Tuning is generally effective for both frozen and tuned language models, under both the fully-supervised and few-shot settings.

원문 인용

Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, Jie Tang (2021). GPT Understands, Too. arXiv:2103.10385v2. https://arxiv.org/abs/2103.10385v2

BibTeX
@misc{liu2021understands,
  title = {{GPT Understands, Too}},
  author = {Xiao Liu and Yanan Zheng and Zhengxiao Du and Ming Ding and Yujie Qian and Zhilin Yang and Jie Tang},
  year = {2021},
  eprint = {2103.10385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.10385v2}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입