ladderlore
  • S3 や IAM などのサービス名を入力してください。

概念

Validating AI training data integrity

Check prompt-response pairs, screen content and PII, and guard against poisoning and noisy labels.

このレッスンはまだ翻訳されていないため、英語で表示しています。

Raw data
Schema checks
Deduplicate
Safety and PII screen
Approved data
Quarantine
fail
  1. 1Collect the files.
  2. 2Validate the format and fields of every line.
  3. 3Remove exact and near duplicates.
  4. 4Screen for harmful content and PII, then approve what passes.
Data passes schema, duplicate and safety checks, or goes to quarantine.

流れ

  1. 1Collect the files.
  2. 2Validate the format and fields of every line.
  3. 3Remove exact and near duplicates.
  4. 4Screen for harmful content and PII, then approve what passes.

Data passes schema, duplicate and safety checks, or goes to quarantine.

  • Personal data

    Check
    Detect and mask
    Tool
    Comprehend, Macie
  • Harmful content

    Check
    Content filters
    Tool
    Guardrails, Rekognition
  • Poisoning

    Check
    Source control, outliers
    Tool
    Versioning, review
  • Label noise

    Check
    Compare labels to a model
    Tool
    Human review
Four risks and how to check them.

概要

Validate data before every customization or training run. For prompt-response pairs, check the schema (valid JSON on every line, required fields present), no empty prompts or answers, length inside the token limit of the model, and no exact or near duplicates. Check that each response answers its prompt, and sample records by hand. One bad line can fail a whole job or teach the model a bad habit.

概要

Screen the content. The Bedrock Guardrails ApplyGuardrail API checks text against your content filters, denied topics and PII rules without calling a model. Amazon Comprehend detects PII and toxic content. Amazon Rekognition content moderation flags unsafe images and video. Remove or fix what is flagged, and send failures to a quarantine prefix so people can review them.

概要

Guard against attack and error. Data poisoning slips malicious or misleading examples into training data to change behavior: accept data from approved sources only, control who can write to the buckets, version the data, and look for outliers and odd clusters. Label noise is wrong labels: compare labels with a model trained on the data and have people review the examples where they disagree. Keep provenance: for each file, record the source, owner, license, collection date and a checksum, so you can trace and remove data later.

覚えること

  • Pair checks: schema, empties, length, duplicates, answer matches prompt.
  • ApplyGuardrail screens text with no model call. Comprehend finds PII and toxicity. Rekognition moderates images.
  • Quarantine failures for review. Do not silently drop them.
  • Poisoning: approved sources, write control, versioning, outlier checks.

覚えること

  • Label noise: compare to a model, review the disagreements.
  • Provenance: source, license, date and checksum per file.

試験では

  • “Screen training text for harmful content without invoking a model” points to the Guardrails ApplyGuardrail API.
  • “Someone may have inserted malicious examples” points to source control, versioning and outlier review.
  • “Prove where each training file came from” points to provenance records with checksums.