复习清单
Guidelines for Responsible AI
这个领域的要点,几屏读完,考前再看一遍。
这份复习清单暂时以英文显示。
4.1Features and guardrails
- Responsible AI features: bias, fairness, inclusivity, robustness, safety, veracity.
- AWS core dimensions: fairness, explainability, privacy and security, safety, controllability, veracity and robustness, governance, transparency.
- Controllability: monitor and steer the system. Governance: policies and processes manage AI risk.
- Bias is the problem. Fairness is the goal: similar people, similar outcomes.
- Inclusivity: works for every kind of user. Robustness: reliable with odd or hostile input.
- Safety: no harm. Veracity: true and accurate output.
- Amazon Bedrock Guardrails checks the prompt going in and the answer coming out.
4.1Features and guardrails
- Content filters include prompt attacks (jailbreaks, prompt injection). You set the strength.
- Automated Reasoning checks: answers must follow rules you define.
- One guardrail can protect many applications and models.
Content filters
- Block harmful text: hate, insults, sexual, violence, misconduct
Denied topics
- Refuse subjects you describe, such as investment advice
Word filters
- Block exact words, phrases and profanity
Sensitive information filters
- Find personal data, then block or mask it
Contextual grounding checks
- Flag answers not backed by the source
Automated Reasoning checks
- Test answers against rules you define
| Safeguard | What it does |
|---|---|
| Content filters | Block harmful text: hate, insults, sexual, violence, misconduct |
| Denied topics | Refuse subjects you describe, such as investment advice |
| Word filters | Block exact words, phrases and profanity |
| Sensitive information filters | Find personal data, then block or mask it |
| Contextual grounding checks | Flag answers not backed by the source |
| Automated Reasoning checks | Test answers against rules you define |
1 / 2
Content filters
- Block harmful text: hate, insults, sexual, violence, misconduct
Denied topics
- Refuse subjects you describe, such as investment advice
Word filters
- Block exact words, phrases and profanity
Sensitive information filters
- Find personal data, then block or mask it
| Safeguard | What it does |
|---|---|
| Content filters | Block harmful text: hate, insults, sexual, violence, misconduct |
| Denied topics | Refuse subjects you describe, such as investment advice |
| Word filters | Block exact words, phrases and profanity |
| Sensitive information filters | Find personal data, then block or mask it |
2 / 2
Contextual grounding checks
- Flag answers not backed by the source
Automated Reasoning checks
- Test answers against rules you define
| Safeguard | What it does |
|---|---|
| Contextual grounding checks | Flag answers not backed by the source |
| Automated Reasoning checks | Test answers against rules you define |
4.1Model choice, legal risks and data
- Responsible model choice: smallest model that works, reuse a pre-trained model, adapt before you build.
- Greener Regions and clear model documentation also count.
- Legal risks: IP infringement claims, biased outputs, loss of customer trust, end user risk, hallucinations.
- Also: toxicity, plagiarism and cheating, nondeterminism (same prompt, different answers), disruption of work.
- Lower the risks with data checks, bias testing, grounding, guardrails and human review.
- Good datasets are inclusive, diverse, curated and balanced.
- Missing groups in the data mean poor results for those groups.
- A large dataset can still be biased. Size does not fix imbalance.
4.1Model choice, legal risks and data
- Balance a thin group by adding or resampling examples. SageMaker Data Wrangler can help.
4.1Bias, variance and detection
- High bias leads to underfitting: the model is too simple.
- High variance leads to overfitting: it memorizes the training data.
- Strong on training data, weak on new data points to overfitting.
- Unfair bias is a different meaning of the same word. Read the question.
- Too few examples of a group can make the model less accurate for that group.
- Label quality analysis: are human labels accurate and consistent?
- Human audits: people review a sample of outputs.
- Subgroup analysis: the same metric for each group, then look for gaps.
- Keep monitoring after launch, because data and behaviour change.
Also called
- Underfitting
- High bias
- Good fit
- Balanced
- Overfitting
- High variance
Training data
- Underfitting
- Poor
- Good fit
- Good
- Overfitting
- Excellent
New data
- Underfitting
- Poor
- Good fit
- Good
- Overfitting
- Poor
| Compare | Underfitting | Good fit | Overfitting |
|---|---|---|---|
| Also called | High bias | Balanced | High variance |
| Training data | Poor | Good | Excellent |
| New data | Poor | Good | Poor |
4.1Amazon SageMaker Clarify
- Finds bias in the data before training and in predictions after training.
- Explains predictions with feature attributions (based on SHAP).
- SageMaker Model Monitor can watch a deployed model for bias drift. It is also closed to new customers.
- Closed to new customers since 30 July 2026. Existing customers can continue.
- For generative AI evaluation, AWS points to Amazon Bedrock Evaluations and Guardrails.
Bias before training
- Check the data first
Bias after training
- Do predictions differ between groups?
Explain a prediction
- Which inputs drove this result?
Bias drift
- Is bias growing in production? Model Monitor (closed to new customers)
| Job | The question says |
|---|---|
| Bias before training | Check the data first |
| Bias after training | Do predictions differ between groups? |
| Explain a prediction | Which inputs drove this result? |
| Bias drift | Is bias growing in production? Model Monitor (closed to new customers) |
4.2Transparent and explainable
- Transparent: you can see how the model reaches a result.
- Interpretable: see how it works inside. Explainable: give reasons from inputs and outputs.
- Partial dependence plot: how the prediction changes as one input changes.
- Black box: you get an answer but cannot say why. Most foundation models are black boxes.
- Explanations help with trust, bias checks, regulation and fixing errors.
- Amazon SageMaker Model Cards documents intended use, risk rating, training details and evaluation results.
- A model card describes a model. Amazon Bedrock Model Evaluation scores models.
- AWS AI Service Cards: AWS documents intended use and limits of its own AI services.
4.2Transparent and explainable
- Open weights: download and run it yourself. Fully open: weights, code and data published.
- Always check the licence: commercial use, changes, sharing, banned uses.
How it decides
- Transparent or explainable
- You can see the steps
- Black box
- Hidden inside
Examples
- Transparent or explainable
- Decision tree, linear model
- Black box
- Deep neural network, LLM
Accuracy on hard tasks
- Transparent or explainable
- Often lower
- Black box
- Often higher
Choose it when
- Transparent or explainable
- Decisions must be justified
- Black box
- Accuracy matters most
| Compare | Transparent or explainable | Black box |
|---|---|---|
| How it decides | You can see the steps | Hidden inside |
| Examples | Decision tree, linear model | Deep neural network, LLM |
| Accuracy on hard tasks | Often lower | Often higher |
| Choose it when | Decisions must be justified | Accuracy matters most |
1 / 2
How it decides
- Transparent or explainable
- You can see the steps
- Black box
- Hidden inside
Examples
- Transparent or explainable
- Decision tree, linear model
- Black box
- Deep neural network, LLM
Accuracy on hard tasks
- Transparent or explainable
- Often lower
- Black box
- Often higher
| Compare | Transparent or explainable | Black box |
|---|---|---|
| How it decides | You can see the steps | Hidden inside |
| Examples | Decision tree, linear model | Deep neural network, LLM |
| Accuracy on hard tasks | Often lower | Often higher |
2 / 2
Choose it when
- Transparent or explainable
- Decisions must be justified
- Black box
- Accuracy matters most
| Compare | Transparent or explainable | Black box |
|---|---|---|
| Choose it when | Decisions must be justified | Accuracy matters most |
4.2Tradeoffs and human-centered design
- Simple models are clearer. Complex models are often more accurate.
- Open details help reviewers and attackers alike.
- Strict filters stop harm but can block good requests.
- The riskier the use case, the more safety and explanation it needs.
- Measure performance and interpretability for each candidate model.
- Decision transparency: say when AI is used and why it decided.
- Feedback mechanisms: ratings, report buttons, ways to correct a result.
- Keep a human able to review or override important decisions.
4.2Tradeoffs and human-centered design
- Amazon A2I sends low-confidence predictions to human reviewers. It is now closed to new customers. RLHF trains on human rankings.
Interpretability
- More of this gives
- Easy to explain
- But it can cost
- Lower accuracy on hard tasks
Transparency
- More of this gives
- Easier to inspect
- But it can cost
- Easier to attack or misuse
Safety
- More of this gives
- Less harmful output
- But it can cost
- More blocked good requests
| Tradeoff | More of this gives | But it can cost |
|---|---|---|
| Interpretability | Easy to explain | Lower accuracy on hard tasks |
| Transparency | Easier to inspect | Easier to attack or misuse |
| Safety | Less harmful output | More blocked good requests |
考试陷阱
- “Block harmful or off-topic content in a generative AI app” → Amazon Bedrock Guardrails, not Model Evaluation
- “Hide personal data in model answers” → sensitive information filter, not a word filter
- “Catch answers not supported by the source documents” → contextual grounding check, not a content filter
- “Document a model’s intended use, risk and training data” → Amazon SageMaker Model Cards, not Bedrock Model Evaluation
- “Score and compare foundation models” → Amazon Bedrock Model Evaluation, not a model card
考试陷阱
- “Great on training data, poor on new data” → overfitting (high variance), not underfitting
- “Poor on both training and new data” → underfitting (high bias), not overfitting
- “Compare accuracy for each demographic group” → subgroup analysis, not a human audit
- “Detect bias in the data before training” → Amazon SageMaker Clarify, not Model Evaluation
- “Stop jailbreaks and prompt injection in an app” → Guardrails prompt attack filter, not a word filter
- “Monitor and steer the system” → controllability. “Policies manage AI risk” → governance
考试陷阱
- “Intended use and limits of an AWS AI service” → AWS AI Service Cards, not a model card
- “Send low-confidence predictions to people” → Amazon A2I
- “Check labelers were accurate and consistent” → label quality analysis
- “Cut the environmental cost of a generative AI app” → a smaller or reused model, not training a new one
- “Regulator wants a reason for each decision” → a transparent or explainable model, not a black box
- “Can we use the open model in a paid product?” → check the licence