CertBrain
CoursesBlog
Sign in
← Back to decks
Sign in to save your progress, vote, and build your own decks.Sign in

Transparent vs Opaque Models

Some models let you see exactly how they reach an answer, while others give you an answer with no visible reasoning behind it. This lesson explains the difference between transparent, explainable models and opaque ones, how transparency differs from explainability, and how teams add explanations…

9 cards
Study this deck

Transparent vs Opaque Models

Some models let you see exactly how they reach an answer, while others give you an answer with no visible reasoning behind it. This lesson explains the difference between transparent, explainable models and opaque ones, how transparency differs from explainability, and how teams add explanations to models that can't explain themselves. The exam tests whether you can tell which kind of model, or which kind of explanation, a scenario needs.

Interpretable Models and Black Boxes

An interpretable model is one a person can follow from input to output. In a linear regression you can read how much each input pushes the result up or down. In a small decision tree you can trace the exact path of yes-or-no splits that led to a prediction. Nothing about the decision is hidden.

An opaque model, often called a black box, is one whose internal workings are too complex for a person to follow. A deep neural network spreads what it has learned across millions or billions of numbers, and a foundation model even more so. These models are often more accurate on hard problems such as images, speech and free text, but nobody can point to the rule that produced a particular output.

Transparency and Explainability Are Different Ideas

AWS treats these as two separate responsible AI dimensions.

  • Explainability means having ways to understand the system's behavior: why it produced this output for this input.
  • Transparency means giving people the information they need to make informed choices about using the system at all: what it's for, what it can't do, what data it was built on and how it was tested.

A model can be transparent without being explainable. A company might publish clear documentation about a black-box model's purpose and limits, yet still be unable to say why it made one specific decision. The reverse also happens: a simple model can be fully interpretable while its owner shares nothing about it with the people it affects.

Explaining an Opaque Model After the Fact

When a complex model is needed for accuracy but its decisions must still be explained, teams add post-hoc explanation methods. Feature-attribution techniques such as SHAP and LIME estimate how much each input contributed to one prediction, for example "debt-to-income ratio counted most against this application". These explanations are approximations of the model's behavior, not a view of its true inner logic, so AWS recommends testing them with real users to make sure they help rather than mislead.

Explanations for Generative AI

Generative AI needs different techniques, because there are no tidy input features to rank. Common approaches include:

  • Source attribution: a retrieval augmented generation (RAG) system shows which documents an answer came from. Amazon Bedrock Knowledge Bases returns citations that link each part of an answer to the source chunks it used.
  • Confidence indicators: showing how certain the system is, so users know when to double-check.
  • Agent traces: recording each step an agent took, such as which tool it called and what came back. Amazon Bedrock AgentCore Observability shows this step-by-step path for agents.

On the Exam

Scenario clueLikely answer
Regulators need the exact reason for each decision on tabular dataAn inherently interpretable model, such as a decision tree or linear model
A complex model must stay, but each decision still needs reasonsPost-hoc feature attribution on that model
Users must check where a generated answer came fromSource citations from the RAG system
People need to decide whether to use the system at allTransparency documentation about purpose and limits

A common trap is treating transparency and explainability as the same thing. Published documentation is transparency; a reason for one specific output is explainability.

Quiz me on this
A credit union wants a model whose every prediction a loan officer can trace step by step, from the applicant's data to the final yes-or-no. Which type of model fits this requirement BEST?
  1. A deep neural network with many hidden layers
  2. A large language model accessed through an API
  3. ✓ A small decision tree with a few clear splits
  4. A diffusion model trained on past applications
Before customers sign up, a software company publishes what its AI writing assistant is designed for, what it handles poorly and how it was tested, so customers can decide whether to use it. Which responsible AI dimension does this practice support MOST directly?
  1. ✓ Transparency
  2. Robustness
  3. Controllability
  4. Veracity
A hospital uses a deep learning model to prioritize scans for review, and switching to a simpler model would noticeably reduce accuracy. A new policy requires each prioritization to come with the main factors behind it. What should the hospital do?
  1. Publish a general description of the model's purpose on the hospital website
  2. Replace the model with a rules list written by the IT department
  3. Raise the model's confidence threshold so fewer scans are prioritized
  4. ✓ Keep the model and add per-prediction feature attribution
A law firm's assistant answers questions from the firm's own policy documents using an Amazon Bedrock knowledge base. Lawyers say they won't trust an answer unless they can check where it came from. Which feature addresses this?
  1. A lower temperature setting for the generating model
  2. ✓ Citations linking each part of the answer to its sources
  3. A larger context window so more documents fit in each prompt
  4. Provisioned Throughput for faster responses
Interpretable (transparent) model
A model whose decisions a person can follow from input to output, such as a linear regression or a small decision tree.
Opaque (black-box) model
A model too complex for a person to trace, such as a deep neural network or foundation model. Often more accurate on hard tasks.
Explainability vs transparency (AWS dimensions)
Explainability is understanding why the system produced an output. Transparency is giving people what they need to decide whether to use it.
Post-hoc explanation (SHAP, LIME)
Methods added after training that estimate how much each input contributed to one prediction of a complex model.
Source attribution in RAG
Showing which documents a generated answer came from. Bedrock Knowledge Bases returns citations for this.