언어 AI 가이드

상황에 맞는 학습

인컨텍스트 러닝(In-context learning)은 가중치를 업데이트하지 않고 프롬프트 내의 정보나 예시를 사용하여 언어 모델의 응답을 조정합니다.

이 가이드를 들어보세요AI 내레이션 · ~3 min

이 페이지에서3분 읽기
  1. 개요
  2. 심층 분석
  3. 실제 구현
  4. 상황 내 학습의 미래
  5. 실천에 옮기기
  6. 계속 탐색하세요
  7. 자주 묻는 질문

개요

It provides a flexible way to show a task or format, while results depend on the model and prompt rather than a guaranteed learning threshold.

심층 분석

Ordinary fine-tuning updates a model's parameters through training. In-context learning instead puts information and demonstrations into the input supplied at inference. The model's weights remain fixed while its internal activations and predictions depend on that input. A zero-shot prompt gives no task demonstrations, a one-shot prompt gives one, and a few-shot prompt gives several. For example, demonstrations can show support messages paired with the labels refund and billing; a new message can then be presented using the same structure. The examples suggest the desired pattern without guaranteeing a correct classification. The GPT-3 paper evaluated task demonstrations supplied through text without gradient updates and reported improvements with scale across many tasks. That evidence does not establish a universal one-hundred-billion-parameter threshold below which in-context learning is impossible. Prompt design also matters. Lu and colleagues demonstrated sensitivity to the order of few-shot examples in their evaluated classification settings, so reordering identical examples can change results without changing model weights. Demonstrations can illustrate a format or task relationship, but they are still input tokens that must be processed. Adding more examples uses more of the supported context budget and can increase per-request work; it is not automatically a quality improvement. For a stable application, compare prompting and fine-tuning using task quality, training effort, request costs, and maintenance needs instead of assuming one method is always cheaper.

실제 구현

챗봇에 세 가지 지원 티켓 예시와 해당 카테고리를 제공한 다음 동일한 방식으로 새 티켓을 분류하도록 합니다.

지저분한 텍스트 쌍의 이전/이후 모델을 깨끗한 JSON으로 다시 포맷하여 나머지를 변환하는 모습을 보여줍니다.

새로운 설명이 스타일과 일치하도록 브랜드 톤에 맞춰 몇 가지 샘플 제품 설명을 붙여넣습니다.

모델이 동일한 추론 형식으로 유사한 문제를 해결할 수 있도록 까다로운 수학 단어 문제를 단계별로 시연합니다.

상황 내 학습의 미래

Larger supported contexts make it possible to supply more examples, but they also create choices about relevance and request cost. Retrieval can help select examples appropriate to the current task. Evaluate the same representative requests under different prompt designs and compare those results with a fine-tuned alternative when relevant. A useful report states the model, examples, ordering, and evaluation task. Greater prompt length is a resource choice rather than a guarantee of learning, and few-shot behavior still needs checks on held-out inputs.

실천에 옮기기

왜 중요한가요?

  • 속도와 규모. 일관성을 유지하면서 언어 워크플로를 더 빠르게 진행할 수 있습니다.
  • 접근 및 도달. 언어와 의사소통 스타일 전반에 걸쳐 접근성을 확장합니다.
  • 더 명확한 결정들. 자동화가 반복을 처리하는 동안 팀은 판단에 더 많은 시간을 할애할 수 있습니다.

조심하세요

  • 환각 사실은 보고서, 지원 흐름 또는 연구 결과에 조용히 포함될 수 있습니다.
  • 신속한 민감도는 유사한 요청 간에 일관되지 않은 결과를 초래할 수 있습니다.
  • 액세스 제어가 약한 경우 민감한 텍스트 데이터가 노출될 수 있습니다.

다음 단계

  1. 출시 전에 출력 형식, 톤, 품질 표준을 정의하세요.
  2. 정확성이 중요할 때마다 신뢰할 수 있는 출처를 통해 대응하세요.
  3. 고위험 결과물에 대한 인적 검토 체크포인트를 유지합니다.
  4. 실패 패턴을 추적하고 프롬프트나 워크플로를 정기적으로 재교육하세요.

계속 탐색하세요

무료 뉴스레터

일일 AI 브리핑 받기

매주 평일 아침마다 3개의 검증된 AI 스토리를 일반 영어로 작성합니다. 무료이며, 광고 없음.

매주 평일마다 한 번 이메일을 받습니다. 한 번 클릭으로 구독 해지. 주소를 판매하거나 공유하지 않습니다.

자신을 테스트해 보세요

Take the In-Context Learning quiz

모든 답변에 즉각적인 피드백과, 과정을 통과하면 검증 가능한 ID가 있는 공유 가능한 인증서를 제공합니다.

퀴즈 시작

무료 AI 교육을 지원합니다. AI Understanding는 501(c)(3) 비영리 단체입니다 — 광고 없음, 유료 장벽 없음, 영원히. 기부하기

자주 묻는 질문

What is In-Context Learning?

In-context learning uses information or demonstrations in a prompt to adapt a language model's response without updating its weights. It provides a flexible way to show a task or format, while results depend on the model and prompt rather than a guaranteed learning threshold.

상황 내 학습 중에 모델 내부에서 근본적으로 변화하는 것은 무엇입니까?

상황 내 학습은 전적으로 추론을 통해 이루어집니다. 프롬프트의 예는 모델의 활성화 및 다음 토큰 예측을 형성하지만 가중치는 업데이트되지 않습니다.

What does GPT-3's reported improvement in few-shot performance with scale establish?

The study reports task and model results, not a universal parameter threshold for in-context behavior.

How should induction-head research be related to broad in-context learning?

The cited work distinguishes stronger findings in small attention-only models from preliminary or indirect broader evidence.

How should an application compare repeated few-shot prompting with fine-tuning?

Stable high-volume use can motivate comparison, but costs and quality depend on the actual setup.

A few-shot ticket prompt demonstrates only refund and billing labels. What do those examples provide for the next ticket?

Demonstrations show a desired input-output pattern, while correctness still needs evaluation.