Logo for AiToolGo

AWS Generative AI Best Practices Framework v2: A Guide to Auditing Amazon Bedrock and SageMaker AI

In-depth discussion
Technical
 0
 0
 5
本記事は AWS Audit Manager の「AWS 生成 AI ベストプラクティスフレームワーク v2」を解説する公式ユーザーガイドである。Amazon Bedrock と Amazon SageMaker AI における生成 AI 実装が、責任、安全、公正、持続可能、レジリエンス、プライバシー、精度、セキュアの 8 原則に沿っているかを証拠収集によって評価する方法を示す。フレームワークの構成(自動コントロール 72、手動コントロール 38、コントロールセット 8)、評価の作成と証拠の確認手順、Amazon Bedrock での InvokeModel によるプロンプト手動検証(HTTP、AWS CLI、CloudWatch Synthetics)、テスト用サンプルプロンプトを含む。
  • main points
  • unique insights
  • practical applications
  • key topics
  • key insights
  • learning outcomes
  • • main points

    • 1
      8 つの原則(責任・安全・公正・持続可能・レジリエンス・プライバシー・精度・セキュア)ごとに実装例を対応づけており、抽象的なガバナンス要件を具体的な監視項目に落とし込んでいる
    • 2
      自動コントロールと手動コントロールの区別、証拠の収集元(AWS Config ルール等)、対象リージョンの制約など、運用上の前提条件が明記されている
    • 3
      InvokeModel の 3 つの実行方法(HTTP、AWS CLI、CloudWatch Synthetics)と具体的なコマンド・コードが示されている
  • • unique insights

    • 1
      生成 AI のガバナンスを「自動証拠収集」と「プロンプトレベルの手動検証」の二層で捉えており、モデル出力の PII 漏えいや不適切応答を継続的にテストするという実務的な発想が含まれている
    • 2
      カスタムモデルの使用状況証拠が特定リージョンでのみ取得可能という制約を明示し、監査範囲の設計に直接影響する注意点を提示している
  • • practical applications

    • 生成 AI を業務利用する組織が、コンプライアンス監査に備えて Amazon Bedrock / SageMaker AI の利用状況を証拠化する際の実務マニュアルとして直接使える。特にプロンプトテストのサンプルは、PII・不適切コンテンツ・冒涜表現の検出テストを自前で構築する出発点になる。
  • • key topics

    • 1
      生成 AI ベストプラクティスの 8 原則と各原則に対応する監視・証拠収集の例
    • 2
      AWS Audit Manager での評価作成、証拠の確認、評価レポートの生成
    • 3
      Amazon Bedrock の InvokeModel によるプロンプトの手動・自動検証と PII・不適切コンテンツのテスト
  • • key insights

    • 1
      AWS 公式の監査フレームワークとして、Amazon Bedrock と SageMaker AI の生成 AI ガバナンスを一貫したコントロールセットで評価できる
    • 2
      プロンプトテストの具体例(PII マスキング、冒涜表現の伏せ字化など)を含み、監査証拠として使える形でモデル応答を検証する手順が示されている
  • • learning outcomes

    • 1
      生成 AI ベストプラクティスの 8 原則と、それぞれに対応する AWS 上の監視・証拠収集の方法を説明できる
    • 2
      AWS Audit Manager で生成 AI フレームワークを用いた評価を作成し、証拠を確認・エクスポートできる
    • 3
      InvokeModel を用いて PII 漏えいや不適切応答を検証するプロンプトテストを設計・実行できる
examples
tutorials
code samples
visuals
fundamentals
advanced content
practical tips
best practices

“ Introduction to the AWS Generative AI Best Practices Framework v2

AWS Audit Manager has upgraded its generative AI framework to version 2 on June 11, 2024. The framework helps organizations monitor and demonstrate how their generative AI workloads on Amazon Bedrock and Amazon SageMaker AI follow recommended best practices. While v2 adds Amazon SageMaker AI coverage alongside Amazon Bedrock, v1 is no longer supported. Existing v1 assessments continue to function, but new assessments should be created from v2. Note that AWS Audit Manager is no longer open to new customers, though existing customers can continue using the service as usual.

“ What Are Generative AI Best Practices on AWS?

Generative AI focuses on enabling machines to create content resembling their training examples, supporting use cases such as conversational AI, creative content generation, data analysis, and process automation. Because this technology introduces new governance and responsibility challenges, AWS provides tooling and guidance to help build and manage applications responsibly. The framework was developed with input from AI experts, compliance practitioners, AWS security assurance specialists, and Deloitte. Each automated control maps to an AWS data source from which Audit Manager collects evidence.

“ The Eight Core Principles of Responsible Generative AI

The framework evaluates implementations against eight principles: Responsibility (establishing and following ethical guidelines for deploying and using models), Safety (setting clear parameters to prevent harmful outputs), Fairness (considering how AI affects different user subgroups), Sustainability (improving efficiency and pursuing more sustainable power sources), Resilience (maintaining integrity and availability mechanisms), Privacy (protecting sensitive data from theft or leakage), Accuracy (building reliable and robust AI systems), and Security (preventing unauthorized access to generative AI systems).

“ Practical Examples of Applying the Framework

Consider an application that uses a third-party foundation model available through Amazon Bedrock. The framework can collect evidence showing that usage aligns with best practices. For instance, controls can help demonstrate that organizations document data sources and quality, periodically evaluate models against accuracy and safety benchmarks, use automated monitoring to detect biased outputs in real time, track model usage and permissions, establish breach notification procedures for inadvertent PII exposure, implement real-time monitoring with alerts for anomalies, conduct error analysis to identify root causes of inaccuracies, and apply end-to-end encryption to model inputs and outputs.

“ Setting Up Your Audit Environment and Prerequisites

Amazon Bedrock and SageMaker AI customers can use the framework directly in AWS Audit Manager. Run assessments in the AWS accounts and Regions where generative AI models and applications operate. If CloudWatch logs for Bedrock or SageMaker AI are encrypted with a customer-managed KMS key, ensure Audit Manager can access that key by selecting it in the Audit Manager data encryption settings. The custom model usage evidence relies on the Bedrock ListCustomModels operation, which is currently supported only in US East (N. Virginia) and US West (Oregon), so custom model evidence may not appear for Asia Pacific (Tokyo), Asia Pacific (Singapore), or Europe (Frankfurt). Additionally, enable the required AWS Config rules, since the framework depends on them to collect intended evidence.

“ Using the Framework to Prepare for Audits

The framework contains prebuilt controls with descriptions and testing procedures, grouped into eight control sets aligned with generative AI best practices. To begin, create an assessment in Audit Manager, which starts evaluating AWS resources against the framework's controls. When audit time arrives, reviewers can browse the assessment's evidence folders or select evidence to include in an assessment report. With Evidence Finder enabled, specific evidence can be searched, exported as CSV, or used to generate a report. The framework can be customized by creating an editable copy of an existing framework to meet specific internal audit requirements. Note that the framework does not validate that systems comply with generative AI best practices, nor does it guarantee a passing audit result, and manual evidence collection controls are not checked automatically.

“ Manually Validating Prompts with Amazon Bedrock

Some prompts may need to be evaluated against a specific model. Organizations can create a predefined prompt list covering their use cases, then use the Bedrock InvokeModel operation to test each prompt and collect responses as manual evidence for an Audit Manager assessment. InvokeModel can be used through HTTP requests (for example, with Postman), the AWS CLI invoke-model command, or automated validation with CloudWatch Synthetics canaries that periodically test prompts and monitor model behavior. Sample test prompts cover inappropriate content, PII disclosure (for example, verifying that a phone number is masked as {PHONE}), and profanity filtering.

“ Limitations and Important Considerations

The framework's controls are designed to support evidence collection and do not verify that a system is compliant with generative AI best practices. Using the framework does not guarantee passing an audit. Procedural controls requiring manual evidence are not checked automatically by AWS Audit Manager. Organizations should treat the framework as a starting point and supplement it with their own governance processes, reviews, and legal or compliance guidance as appropriate.

“ Next Steps and Additional Resources

To learn more, review the list of standard controls included in the framework in AWS Audit Manager, create an assessment based on the framework, or customize an existing framework to support specific requirements. Further reading includes the Amazon Bedrock User Guide, the Amazon SageMaker AI User Guide, the AWS guidance on turning responsible AI from theory into practice, and the guide to responsible use of machine learning.

 Original link: https://docs.aws.amazon.com/ja_jp/audit-manager/latest/userguide/aws-generative-ai-best-practices.html

Comment(0)

user's avatar

      Related Tools