# AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts

AutoPrompt: 자동 프롬프트로 모델 지식 꺼내기

Taylor Shin, Yasaman Razeghi, Robert L. Logan, Eric Wallace, Sameer Singh · arXiv · 2020년 10월 29일

- **연구 문제** 사람이 직접 쓴 빈칸 채우기 프롬프트는 많은 수작업이 들고, 문구가 조금만 달라져도 모델 성능이 크게 흔들립니다.
- **연구 방법** AutoPrompt는 입력을 템플릿에 넣고, 모든 입력이 공유하는 트리거 토큰을 기울기로 고른 후보로 바꿔 가며 프롬프트를 자동으로 만듭니다.
- **주요 결과** 사실 검색 벤치마크 LAMA 원래 테스트에서 AutoPrompt가 수동으로 만든 프롬프트보다 사실 지식을 더 정확히 꺼냈습니다. AutoPrompt 7 토큰은 P@1 43.34를 기록했습니다.

## 프롬프트를 사람이 쓰는 한계

언어 모델이 pre-training 중 무엇을 아는지 확인하려면 과제를 빈칸 채우기 형태로 바꾸는 방법이 자연스럽습니다. 하지만 이 방식은 사람이 프롬프트 문구를 직접 써야 하고, 그 문구가 조금만 달라져도 모델의 성능이 크게 흔들립니다. 이 논문은 이 수작업과 민감성을 줄이기 위해 과제마다 프롬프트를 자동으로 만드는 문제를 다룹니다.

## 그래디언트로 트리거 토큰 찾기

AUTO PROMPT는 입력 문장을 템플릿에 넣고, 모든 입력이 공유하는 트리거 토큰을 프롬프트에 붙입니다. 트리거 토큰은 처음에 \[MASK\]로 초기화한 뒤, 각 위치마다 기울기로 상위 k개의 교체 후보를 고르고 후보로 바꾼 프롬프트의 레이블 가능도를 다시 계산해 가장 높은 것을 유지합니다. 분류 과제에서는 레이블 토큰 집합 V\_y의 예측 확률을 합산해 클래스 확률 p(y\|x\_prompt)를 얻습니다. 레이블 토큰 집합은 감정 분석과 NLI에서 \[MASK\] 임베딩을 입력으로 한 로지스틱 분류기로 자동 선택합니다. 사실 검색과 관계 추출은 레이블이 어휘의 엔티티에 직접 대응하므로 이 단계를 건너뜁니다.

## 감정 분석과 NLI 결과

SST-2 감정 분석에서 RoBERTa의 AUTO PROMPT 프롬프트는 테스트 정확도 91.4를 기록했습니다. 같은 표에서 수동 프롬프트 RoBERTa는 85.2였습니다. 저데이터 설정에서는 감정 분석의 경우 fine-tuning이 AUTO PROMPT보다 높았지만, NLI에서는 AUTO PROMPT가 fine-tuning보다 높은 경우가 있었습니다. SICK-E 2-way에서 AUTO PROMPT는 fine-tuning BERT와 비슷한 수준을 보였습니다.

## 사실 검색 결과

LAMA 원래 테스트 세트에서 AUTO PROMPT(7 토큰)는 P@1 43.34를 기록했고, LPAQA Top1은 34.10이었습니다. 5 토큰 설정은 42.94였습니다. 이 비교는 관계마다 하나의 프롬프트를 쓰는 AUTO PROMPT와 여러 프롬프트를 평균하는 LPAQA를 대조한 결과입니다. 관계별 결과에서는 수동 프롬프트가 잘 맞는 관계도 있었고, AUTO PROMPT가 특히 강한 관계도 있었습니다.

## 관계 추출과 교란 문장

관계 추출에서 BERT의 AUTO PROMPT는 원래 설정에서 P@1 90.73을 기록했습니다. 지도 학습 LSTM 베이스라인은 57.95였습니다. 객체를 무작위 다른 객체로 바꾼 교란 문장에서는 BERT의 AUTO PROMPT가 56.43으로 떨어졌고, LSTM은 58.81로 거의 변하지 않았습니다. 이 결과는 MLM의 성능이 문맥 문장에서 관계를 추출하는 능력만이 아니라 배경 지식에도 기대고 있음을 보여 줍니다.

## 레이블 데이터와 불균형 한계

AUTO PROMPT는 레이블이 있는 학습 데이터가 필요합니다. 수동 프롬프트가 도메인 지식에 기대는 것과 달리 이 방법은 데이터에 의존합니다. 생성된 프롬프트는 사람이 읽고 해석하기 어렵습니다. 학습 데이터가 심하게 불균형하면 다수 레이블의 가능도를 높이는 경향이 있다고 저자들은 봅니다. 탐색이 큰 이산 공간에서 욕심쟁이 방식으로 이루어지므로 결과가 불안정할 수 있다는 점도 밝혔습니다.

## 논문 정보

- **저자**: Taylor Shin, Yasaman Razeghi, Robert L. Logan, Eric Wallace, Sameer Singh
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 10월 29일
- **등록일**: 2026년 11월 12일
- **수정일**: 2020년 11월 7일
- **버전**: v2
- **arXiv**: 2010.15980
- **분류**: cs.CL · cs.LG
- **원문 이용 조건**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **제공 범위**: 논문 정보, 해설

[논문 원문 ↗](https://arxiv.org/abs/2010.15980v2) · [원문 PDF ↗](https://arxiv.org/pdf/2010.15980v2)

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

## 원문 인용

Taylor Shin, Yasaman Razeghi, Robert L. Logan, Eric Wallace, Sameer Singh (2020). AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts. arXiv:2010.15980v2. https://arxiv.org/abs/2010.15980v2

**BibTeX**

```
@misc{shin2020autoprompt,
  title = {{AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts}},
  author = {Taylor Shin and Yasaman Razeghi and Robert L. Logan and Eric Wallace and Sameer Singh},
  year = {2020},
  eprint = {2010.15980},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.15980v2}
}
```

## 이 논문의 용어

- [accuracy](https://refivu.com/terms/1995c0cd6282-accuracy)
- [미세조정](https://refivu.com/terms/0ac87f78df46-fine-tuning)
- [SST-2](https://refivu.com/terms/8904146eae2e-sst-2)
- [Natural Language Inference](https://refivu.com/terms/6645756fb938-natural-language-inference)
- [LAMA](https://refivu.com/terms/acf6ed8e0c14-lama)
- [Sentiment Analysis](https://refivu.com/terms/dcaa4b0924bc-sentiment-analysis)
- [Mean Reciprocal Rank (MRR)](https://refivu.com/terms/6564b03ec44c-mean-reciprocal-rank-mrr)
- [relation extraction](https://refivu.com/terms/4b54824ca4e3-relation-extraction)
- [T-REx](https://refivu.com/terms/18cb19c22e75-t-rex)

## 다른 논문 해설

- [DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligence](https://refivu.com/papers/a9b5666a-9125-4553-968a-b6f76e0d19db-deepseek-coder-when-the-large-language-model-meets.md)
- [OpenAI GPT-5 System Card](https://refivu.com/papers/678bc558-0d7f-4ee8-9fa0-55c5eb2daf22-openai-gpt-5-system-card.md)
- [Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Models](https://refivu.com/papers/b7a8b2ba-0d8c-47b1-8619-757da5d13fc9-siren-s-song-in-the-ai-ocean-a.md)
- [Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters](https://refivu.com/papers/350f97d7-d2c2-4a88-b5c0-509ed346afa9-scaling-llm-test-time-compute-optimally-can-be.md)
- [Conditional Prompt Learning for Vision-Language Models](https://refivu.com/papers/aafdc9ad-313a-44a6-bed9-42556a8097ea-conditional-prompt-learning-for-vision-language-models.md)
- [Federated Learning for Mobile Keyboard Prediction](https://refivu.com/papers/e56197ce-a521-4965-9369-f978e10dc5fe-federated-learning-for-mobile-keyboard-prediction.md)
- [Session-based Recommendation with Graph Neural Networks](https://refivu.com/papers/62d7225d-cbaa-40dd-937a-e1fda19d331d-session-based-recommendation-with-graph-neural-networks.md)
- [Reconciling modern machine learning practice and the bias-variance trade-off](https://refivu.com/papers/f2bd9be7-d470-425c-9b81-0c8325b04155-reconciling-modern-machine-learning-practice-and-the-bias.md)
- [Inherent Trade-Offs in the Fair Determination of Risk Scores](https://refivu.com/papers/839c2aea-2b24-46f2-8b72-8c5fff96e639-inherent-trade-offs-in-the-fair-determination-of.md)
- [End-to-end Recovery of Human Shape and Pose](https://refivu.com/papers/da029864-5c93-4c98-a8b5-99aa97d36118-end-to-end-recovery-of-human-shape-and.md)
- [Transformers in Time Series: A Survey](https://refivu.com/papers/27ce8af6-dbd0-40be-9dc3-c7b1708ee930-transformers-in-time-series-a-survey.md)
- [InceptionTime: Finding AlexNet for Time Series Classification](https://refivu.com/papers/d38dc30f-c8c7-476b-b7e9-0b2838d7c2a1-inceptiontime-finding-alexnet-for-time-series-classification.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/e3fa3b73-5b1d-4ff0-8f81-98fad2340fa5-autoprompt-eliciting-knowledge-from-language-models-with)
