기술 가이드

Llama Guard and Safety Classifiers

Llama Guard is a family of safety classifiers that labels prompts and model responses against a defined hazard policy.

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

이 페이지에서3분 읽기
  1. 개요
  2. 심층 분석
  3. 실제 구현
  4. The Future of Llama Guard and Safety Classifiers
  5. 실천에 옮기기
  6. 계속 탐색하세요
  7. 자주 묻는 질문

개요

The current Llama Guard 4 12B release is a multimodal classifier for text and images, while earlier versions have different capabilities; a classifier result is one safety signal, not a complete moderation or security system.

심층 분석

Llama Guard is a safety-classification model intended to work alongside a generative model. It can classify an incoming prompt, a generated response, or both, and returns a safe/unsafe label with category information for unsafe content. That output can support a product’s moderation decision, but the application still has to define what to do with each label: block, transform, escalate, or permit. A classifier’s categories and training policy are not automatically identical to an organization’s legal duties or product rules. Capabilities depend on the version. Meta’s current Llama Guard 4 12B model card describes a natively multimodal classifier for text and one or more images, based on a hazard taxonomy, with prompt and response classification. It also describes an added text-only code-interpreter-abuse category. Earlier Guard versions are different; do not transfer Guard 4’s image support, parameter size, or language claims to them. The official documentation gives model-specific prompt formats and compatibility guidance, so deployments should verify the exact checkpoint and interface they use. Use input filtering when a product wants to stop certain requests before generation, and output filtering when it wants to inspect what the model actually produced. Using both provides two decision points, but can also increase refusals or latency. Meta documents limitations including imperfect policy coverage, dependence on training knowledge for some categories, and susceptibility to adversarial or prompt-injection attacks. Evaluate the full application with representative examples, inspect false positives and misses, and add other controls for sensitive decisions. A safety label is evidence for a workflow, not proof that all unsafe content has been caught.

실제 구현

An application checks a user prompt before generation, then separately checks the generated response before showing it, recording which stage triggered a block.

A team handling mixed text-and-image requests evaluates both parts together with Llama Guard 4 and tests its behavior on the exact image formats used by the application.

A product maps its moderation policy to the classifier’s supported hazard categories and sends uncovered cases to a separate review path.

A multilingual deployment tests representative languages, policy edge cases, false positives, and adversarial inputs before deciding where the model is suitable.

The Future of Llama Guard and Safety Classifiers

Safety classifiers are likely to remain useful as modular checks in systems that combine models, policy code, and human review. Multimodal checkpoints widen the kinds of input a single classifier can inspect, but broader coverage does not remove evaluation gaps or deployment-specific risks. Teams should track model-card changes, repeat tests when versions or policies change, and avoid treating vendor benchmark results as a substitute for testing their own use case. Publish internal acceptance criteria for the application’s actual language and modality mix.

실천에 옮기기

왜 중요한가요?

  • 비용 및 예산. 아키텍처 결정은 수년 동안 성능과 운영 비용을 결정합니다.
  • 더 명확한 결정들. 기술 교육은 팀이 최신 스택뿐만 아니라 올바른 스택을 선택하는 데 도움이 됩니다.
  • 품질 관리. 더 나은 엔지니어링 선택은 생산 시 신뢰성 사고를 줄입니다.

조심하세요

  • 하나의 벤치마크를 최적화하면 더 광범위한 시스템 약점을 숨길 수 있습니다.
  • 인프라 및 유지 관리 비용은 종종 과소평가됩니다.
  • 시스템이 더욱 복잡해짐에 따라 보안 및 관찰 가능성의 격차가 커질 수 있습니다.

다음 단계

  1. 구현하기 전에 지연 시간, 품질, 비용 목표를 정의하세요.
  2. 현실적인 로드 및 데이터 조건에서 벤치마킹합니다.
  3. 오류, 드리프트 및 사용자 영향에 대한 계측기 모니터링.
  4. 확장하기 전에 롤백 및 사고 대응 경로를 준비하세요.

계속 탐색하세요

무료 뉴스레터

일일 AI 브리핑 받기

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

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

자신을 테스트해 보세요

Take the Llama Guard and Safety Classifiers quiz

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

퀴즈 시작

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

자주 묻는 질문

What is Llama Guard and Safety Classifiers?

Llama Guard is a family of safety classifiers that labels prompts and model responses against a defined hazard policy. The current Llama Guard 4 12B release is a multimodal classifier for text and images, while earlier versions have different capabilities; a classifier result is one safety signal, not a complete moderation or security system.

Llama Guard 분류자는 애플리케이션에 무엇을 제공합니까?

모델 카드는 안전하거나 안전하지 않은 콘텐츠와 위험 카테고리에 대한 라벨을 설명합니다. 여전히 애플리케이션 정책에 따라 다음 작업이 결정됩니다.

Meta는 Llama Guard 4 12B에 대해 어떤 양식을 설명합니까?

Meta는 Guard 4를 기본적으로 다중 모드로 설명하고 하나 이상의 이미지와 함께 텍스트를 분류합니다. 이미지 전용 분류가 아닙니다.

혼합된 요청을 검토할 때 팀은 Llama Guard 4 이미지 지원을 어떻게 사용해야 합니까?

현재 카드는 공동 텍스트 및 이미지 입력을 설명하고 모델이 이미지 전용 분류용으로 설계되지 않았다고 말합니다.

입력 필터링은 출력 필터링과 어떻게 다릅니까?

모델 카드는 생성 전의 프롬프트 분류와 생성 후 응답 분류를 구별합니다.

시스템이 입력 및 출력 확인을 결합하는 이유는 무엇입니까?

Meta는 두 가지 필터링 모드를 모두 설명하고 두 가지를 모두 사용하면 추가적인 보안을 제공하지만 제한 사항은 남아 있다는 점을 설명합니다.