Back to exam

AAIA Cheatsheet

Advanced in AI Audit

Download free PDF

AI governance and risk

Business purpose and accountability

  • **Problem framing** defines the decision, intended users, affected people, permitted uses and unacceptable outcomes before model selection. Trace requirements to measurable business results.
  • **AI governance** directs responsible use, value delivery and risk oversight throughout the lifecycle. Integrate AI with enterprise risk, security, privacy and business process governance.
  • **Board and senior management** oversee strategy, risk appetite and resources. Business and model owners manage outcomes; data owners govern data; independent audit evaluates controls.
  • A **RACI matrix** assigns responsibility, accountability, consultation and information duties. Committees support decisions; a committee's existence alone does not prove effective oversight.
  • An **AI inventory** records each use case, owner, model/provider, data sources, dependencies, risk tier and deployment status. A **system map** shows end-to-end flows and organizational dependencies.

Risk assessment and performance

  • Assess **likelihood and impact** across safety, discrimination, privacy, security, operations, legal exposure, reputation and societal effects. Reassess when uses, data, models or integrations change.
  • **Risk appetite** guides the amount and type of risk accepted; **tolerance** sets operating limits. Escalate residual risk to its authorized owner; defer deployment when required controls cannot meet those limits.
  • **Avoid** removes an activity; **mitigate** reduces likelihood or impact; **transfer/share** allocates some consequences contractually; **accept** records an authorized decision to retain risk.
  • **KPIs** measure outcomes such as downtime reduction, turnaround time and loss rates. **KRIs** track exposure such as harmful outputs or threshold breaches. Training frequency and user counts are activity measures.
  • Link technical metrics to **business requirements** and compare with a baseline. Optimize loan growth alongside defaults and loss, rather than rewarding approvals alone; model confidence does not establish correctness.

Ethical design and human oversight

  • **Fairness, transparency, accountability, privacy and safety** require explicit controls from design through retirement. Legal compliance is one part of responsible AI governance.
  • Assess **human and societal impacts**: discriminatory hiring or pricing, exclusion from public services, misinformation, manipulation, workforce displacement and environmental resource use.
  • **Human-in-the-loop** places review before consequential action. Give reviewers competence, time, relevant explanations, override authority and escalation paths; measure whether review changes unsafe decisions.
  • **Human-centered design** includes affected stakeholders, accessibility, feedback and avenues to challenge decisions. Plan workforce communication, reskilling and role changes alongside technical implementation.
  • Define context-specific **fairness criteria** before testing. Review outcomes across demographic, language and regional groups; equal overall accuracy cannot establish equal treatment.

Policies, people and external providers

  • An **acceptable use policy** defines approved tools and purposes, prohibited data, review obligations, permitted automation and reporting of misuse. Reinforce it through technical restrictions and ongoing role-based training.
  • Teach **probabilistic outputs**, hallucinations, confidential-data handling, prompt injection and human accountability. Include developers, users, executives and incident responders in appropriate training.
  • Perform **vendor due diligence** before onboarding: intended use, data provenance and licensing, security, privacy, performance evidence, explainability, model changes, dependencies and independent assurance scope.
  • Contracts should define **data use and retention**, training on customer inputs, subprocessors, processing locations, access, incident notification, audit rights, model updates, support and exit/deletion arrangements.
  • Set measurable **SLAs** for availability, end-to-end latency, quality and support. Monitor them after release; a certification or attestation covers only its stated systems, controls and period.
  • Under **shared responsibility**, outsourcing does not remove the organization's accountability for authorized use, user access, data disclosure and risk acceptance. Verify the provider's actual responsibilities.

Data rights and privacy controls

  • Establish the **lawful basis**, permitted purposes and rights to collect, train on and share data. Public availability does not by itself establish permission, licensing or ethical suitability.
  • Use **clear notices and consent controls** where consent is required, with meaningful choices and withdrawal mechanisms. Evaluate applicable obligations before secondary use, cross-border processing or automated decisions.
  • Apply **privacy by design**, data minimization and a privacy impact assessment before sensitive processing. Inventory and classify data; assign owners and enforce retention and secure disposal.
  • **Masking** hides selected values; **pseudonymization** replaces identifiers while retaining potential re-linking; **anonymization** seeks to prevent identification. Assess re-identification from combinations, clusters and outputs.
  • **Encryption** protects data at rest and in transit; **least privilege** limits who can use it. Neither prevents an authorized model or user from disclosing sensitive information through an output.
  • **Differential privacy** bounds an individual's influence using calibrated randomness and a privacy budget. **Federated learning** keeps training data distributed, but updates and models still need privacy protections.
  • For **deletion requests**, trace raw records, derived features, indexes, caches and retained copies. Assess model influence and the need for validated unlearning or retraining; deleting raw data alone may leave learned information.

AI operations

Learning methods and model families

  • **Supervised learning** learns from labeled examples: classification predicts categories; regression predicts quantities. **Unsupervised learning** finds structure in unlabeled data, including clusters and anomalies.
  • **Reinforcement learning** trains an agent through actions and rewards. A **policy** selects actions; a **reward** scores an outcome; a **value function** estimates expected cumulative return. Misaligned rewards can drive harmful behavior.
  • **Deep learning** uses multilayer neural networks. Hidden layers learn representations and features; weights are learned parameters, while learning rate, architecture and batch size are hyperparameters.
  • **CNNs** exploit spatial patterns in images; **RNNs/LSTMs** model sequences; **transformers** use attention to model relationships across tokens. **NLP** handles text and speech; **computer vision** interprets visual inputs.
  • **Linear models** can make relationships easier to interpret; decision trees express conditional paths. **Random forests** aggregate trees; **boosting** sequentially combines learners to improve errors. Complexity does not guarantee suitability.
  • **Transfer learning** adapts a pretrained model to a new task, often helping when labeled data is scarce. Validate provenance, domain fit, licensing and performance on the target population.

Data governance and preparation

  • A **data inventory and dictionary** describe sources, owners, sensitivity, fields, types, units and intended uses. A **feature store** manages reusable model inputs and their transformations.
  • **Provenance** establishes origin; **lineage** traces collection, transformations and downstream use. Maintain dataset versions, permissions, quality rules and ownership across training and inference pipelines.
  • Profile **accuracy, completeness, consistency, validity, uniqueness, timeliness and representativeness**. Check missing values, duplicates, types, labels, ranges and stale inputs; standardize formats, units and sensor timing across sources.
  • **Referential integrity** checks key relationships between tables. Cross-column rules test related fields; reconcile record counts and totals to validate completeness across ingestion, joins and filtering.
  • Investigate **outliers** before removing them: they may be data errors, attacks or genuine rare events. Automatic percentile or standard-deviation deletion can erase important risks and minority behavior.
  • **Imputation** fills missing data using justified estimates. Fit it on training data and examine subgroup effects; means can reduce variability and obscure informative missingness.

Feature engineering and balanced data

  • **One-hot encoding** suits nominal categories without a natural ranking. **Ordinal encoding** represents genuine order; arbitrary numeric codes can imply false distance or hierarchy. Preserve meaning when converting types.
  • **Scaling and standardization** prevent large-unit features from dominating distance-based methods. **Binning** simplifies numeric data but loses detail and may create threshold artifacts.
  • **Tokenization** divides text into model units. Normalize language and format for the task without erasing meaningful context; test sentiment and multilingual models on domain-specific terminology.
  • **K-means** groups observations around centroids and requires a chosen number of clusters. Results depend on scaling, initialization and outliers; unsupervised learning can still reproduce bias.
  • **PCA/dimensionality reduction** compresses features, sometimes trading interpretability and rare signals for simpler representations. **Correlation** measures association, not causation; strength depends on magnitude, not sign.
  • **Class imbalance** can hide poor minority detection behind high accuracy. Consider representative collection, class weights or resampling; assess both rare-event performance and subgroup coverage.
  • **Oversampling/SMOTE** adds minority examples; **undersampling** discards majority examples and may lose information. Resample within training folds, keeping evaluation data representative of deployment.
  • **Augmentation and synthetic data** can expand variation or rare scenarios. Validate realism, labels, subgroup coverage, privacy leakage and results on independent real data; synthetic data is not automatically unbiased or anonymous.

Training, tuning and generalization

  • **Training data** fits parameters; **validation data** guides hyperparameters and model selection; an untouched **test set** estimates final generalization. Split by time or entity when random rows would leak related information.
  • Prevent **data leakage** from overlapping people/events, future information, target-derived features or preprocessing fitted to the full dataset. Learn transformations on training data and apply them consistently elsewhere.
  • **K-fold cross-validation** repeats training and evaluation across folds to estimate stability. Use stratification for suitable classification tasks and time-respecting folds for forecasting; it does not guarantee fairness or remove bias.
  • **Overfitting** fits training details or noise and performs worse on unseen data; **underfitting** fails to capture useful patterns even in training. Compare training and validation performance in the same metric.
  • **Regularization, early stopping, simpler models and appropriate data** can improve generalization. Tune with validation or nested cross-validation; repeated decisions using the test set contaminate its independence.
  • **Grid, random and Bayesian search** explore hyperparameters. Record search ranges, results, data splits, seeds and chosen settings; a common seed helps comparisons but does not guarantee full reproducibility.
  • **Backpropagation** computes gradients to update neural-network weights. **Online/continual learning** changes a deployed model as data arrives; bound update authority, validate changes and retain rollback capability.

Metrics and decision thresholds

  • A **confusion matrix** counts true positives (TP), true negatives (TN), false positives (FP) and false negatives (FN). Define which class is positive before interpreting any measure.
  • **Accuracy = (TP + TN) / total**; it can look excellent when rare positives are missed. **Precision = TP / (TP + FP)** measures the reliability of positive alerts.
  • **Recall/sensitivity = TP / (TP + FN)** measures detection of actual positives. **Specificity = TN / (TN + FP)** measures correct rejection of negatives; **false-positive rate = 1 - specificity**.
  • **F1 = 2 x precision x recall / (precision + recall)** balances precision and recall. Review precision-recall curves and class-specific results for imbalanced data; F1 does not describe every error cost.
  • Choose **thresholds** using the cost of misses versus false alarms. Higher recall supports rare disease or failure detection; higher precision reduces unnecessary investigations. Validate the tradeoff on realistic data.
  • For **regression**, MAE measures average absolute error, MSE squares errors and RMSE returns to the outcome's units. Review error distributions and time-based backtests alongside averages.
  • **ROUGE** measures text overlap for tasks such as summarization; **BLEU** measures n-gram overlap often used in translation. Neither establishes factual truth, fairness or business suitability; use task-specific human evaluation.

Fairness and explainability evidence

  • Bias can arise from **historical decisions, sampling gaps, inconsistent labels, measurement choices, proxies or objectives**. Removing protected attributes alone leaves correlated features such as postal codes.
  • Compare **selection rates, error rates and calibration** across relevant groups, including intersections and languages. **Disparate impact** flags outcome disparities for investigation; no single metric proves an unbiased model.
  • Validate suspected bias using adequate sample sizes, appropriate ground truth and reproducible tests. Identify impact and root causes before selecting representative data, relabeling, feature changes or other remediation.
  • **Model cards** summarize intended use, limitations, training context and evaluation results. Data documentation describes datasets; development logs record experiments. These artifacts support, but do not replace, testing.
  • **Global explanations** describe overall behavior; **local explanations** address one prediction. **Feature importance** identifies influential inputs; permutation methods measure performance changes when a feature is shuffled.
  • **LIME** fits a local surrogate near an example; **SHAP** assigns feature contributions relative to a reference. **Partial dependence plots** show average prediction changes; counterfactuals explore changes that would alter an outcome.
  • Check explanation **fidelity, stability and relevance** to the audience. Correlated inputs can distort importance; logs reconstruct events but do not alone explain why a model is correct or fair.

Generative AI and retrieval

  • **Generative AI** predicts plausible content and can fabricate products, citations, test results or conclusions. Confidence, fluent language and repeated agreement do not establish truth.
  • **Temperature** changes sampling randomness; **top-p** restricts the cumulative probability mass sampled. Lower randomness may improve consistency but cannot guarantee factual or safe outputs.
  • A **context window** limits tokens available to a request, including instructions, documents and output allowance. Tokens are not rows; verify full ingestion, chunk coverage and aggregation rather than assuming all data was analyzed.
  • **Prompt templates and contextual anchoring** specify task, scope, evidence and output structure. Require uncertainty handling and verify material claims against source records; prompts are not an authorization boundary.
  • **RAG** retrieves passages and supplies them as context before generation. Check retrieval relevance, freshness, coverage, document permissions and source authenticity; grounding reduces some errors but can still produce hallucinations.
  • Protect **embeddings, vector stores, caches and retrieved context** as sensitive assets. Enforce access at retrieval and tool layers; internal context sent to external search or model services can disclose confidential information.
  • Label and review **AI-generated training content** to avoid reinforcing fabricated claims and shrinking diversity. Keep provenance and validate against trusted real-world data.

Threats and layered controls

  • **Data poisoning** manipulates training or fine-tuning inputs; **model poisoning/backdoors** alters artifacts or embeds triggers. Validate provenance, labels, pipeline permissions and artifact signatures or hashes before use.
  • **Evasion/adversarial examples** manipulate inference inputs to induce errors. Test realistic obfuscation, perturbations and edge cases; strong clean-data accuracy does not demonstrate adversarial robustness.
  • **Prompt injection** uses instructions in user input or retrieved content to redirect a model. Emails, hidden worksheet cells and invisible text can carry indirect attacks; treat external content as untrusted data.
  • Use **controlled extraction, input/output checks, isolation, restricted tools and external authorization**. Templates, sanitization and adversarial training help, but no one filter guarantees prompt injection prevention.
  • **Model extraction/theft** copies behavior or artifacts; **model inversion** reconstructs sensitive information; **membership inference** estimates whether a record was in training. Apply access controls, query monitoring, rate limits and privacy safeguards.
  • Protect **weights, architecture, configuration and hyperparameters** with least privilege, encryption and change control. White-box attacks assume internal knowledge; security must remain effective beyond concealment of model details.
  • **Agentic AI** plans and executes actions through connected tools. Limit agency with narrow permissions, transaction bounds, human approval for consequential actions, independent privilege checks and a tested stop mechanism.
  • **Deepfakes** enable impersonation and misinformation. Combine liveness/anti-spoofing, independent identity checks and trusted-channel verification; watermarking and provenance labels help disclosure but are not proof of authenticity.

Testing and controlled release

  • **Verification** checks implementation against specifications; **validation** checks fitness for intended use. Establish performance, fairness, security and safety acceptance criteria before staging and release.
  • Test **unit components, integrations, end-to-end behavior, load, failure modes and edge cases**. Include diverse users, rare conditions, malformed inputs and dependency changes; feed findings into remediation and retest.
  • **Black-box testing** examines inputs and outputs without internals; **white-box testing** uses internal access; **gray-box testing** uses partial knowledge. Select methods based on audit objectives and available evidence.
  • **Adversarial/red-team tests** simulate misuse and attacks. **Metamorphic testing** checks expected relations between transformed inputs and outputs when exact answers are difficult to specify.
  • Version **code, data, features, model artifacts, dependencies, prompts and inference settings** together. Retain approvals, test evidence, release notes and traceable pipeline activity tied to individual identities.
  • Apply **segregation of duties** across development, testing and production promotion. Test patches, APIs and infrastructure updates for model compatibility; use controlled rollout, acceptance gates and verified rollback artifacts.
  • Treat **AI-generated code** as untrusted contribution: peer review, security scanning, dependency/license checks and functional tests remain necessary. Rapid prompt-driven coding can introduce vulnerabilities and maintenance problems.

Monitoring, incidents and recovery

  • **Data/covariate drift** changes input distributions; **concept drift** changes the input-outcome relationship; **schema drift** changes fields or formats. A performance drop is a symptom requiring investigation, not proof of a specific attack.
  • Establish **baselines, thresholds and owners** for quality, subgroup errors, drift, anomalous queries, latency and availability. Compare predictions with actual outcomes when available and monitor input freshness before labels arrive.
  • Investigate **training-serving skew**, stale feeds, retraining changes, poisoning and dependency failures. Retrain with trusted relevant data only after diagnosis, validation and approval; a fixed retraining schedule alone is insufficient.
  • An **AI incident playbook** assigns severity, containment, escalation, communications and recovery responsibilities. Include data science, engineering, security, privacy and business owners; exercise cross-functional scenarios.
  • When harm or disclosure occurs, **limit affected decisions and access**, preserve evidence and assess impacted processes, users and data. Investigate prompts, outputs, artifact versions, lineage and integrations before restoring trusted service.
  • **Audit trails** link identities, inputs, retrieved context, actions, outputs and configuration versions. Protect logs from tampering and excessive sensitive-data retention; integrate meaningful alerts with security monitoring.
  • **Root cause analysis** drives corrective controls and lessons learned. Follow notification requirements and verify effective recovery; retraining is not the automatic response to every incident.
  • **Business impact analysis** sets recovery priorities, RTO and RPO. Test backups and restoration of models, datasets, feature stores, configurations and dependencies; include vendor outage, manual fallback and cascading failures.
  • **Replication** improves data availability but can copy corruption; backups preserve recoverable history. **Deduplication and compression** reduce storage costs without justifying removal of required audit trails or recovery points.

AI auditing tools and techniques

Planning and evidence collection

  • Start a **risk-based audit** with business objectives, system maps, model inventory, data flows, model cards and prior issues. Include data, model lifecycle controls, integrations and human decisions within a justified scope.
  • Preserve **auditor independence** in pre-implementation work: evaluate risk and control design while management owns technology selection, controls, deployment and acceptance of risk.
  • Use **NLP** to extract terms and compare narratives, clustering to group unlabeled contracts, computer vision for visual classification and graph analytics for links suggesting collusion or conflicts of interest.
  • For **smart contracts**, static analysis examines code for vulnerabilities; dynamic analysis executes controlled scenarios to observe actions. Compare actual execution with contractual requirements and retain independently verifiable evidence.
  • **Rules and anomaly detection** identify unusual transactions; isolation forests isolate unusual observations. Correlation matrices and visualizations help focus analysis, but associations and anomaly scores are leads requiring corroboration.
  • Reconcile **population completeness** before analysis: extraction limits, omitted files or sheets, joins, duplicates, OCR/transcription errors and token limits can hide relevant evidence. Compare extracted records with source documents.
  • Check **evidence authenticity, reliability, relevance and sufficiency**. Validate public or retrieved material and preserve source traceability privately in workpapers; AI summaries and synthetic examples are not independent factual evidence.

Sampling, analysis and professional judgment

  • **AI risk scores** can prioritize targeted testing and adapt to emerging signals. Explain criteria and selection logic; prior-year errors alone can miss new fraud, qualitative materiality and small repeated claims.
  • A **targeted sample** supports investigation of selected risk characteristics; statistical inference requires an appropriate sampling design. Review representation, exclusions and blind spots before relying on AI selection.
  • Validate **false positives and false negatives** against independently checked cases. Tune thresholds for audit objectives and workload while retaining coverage of rare, consequential failures.
  • Challenge **automation bias**: a second model or a fluent explanation is not independent corroboration. Apply professional skepticism and source-based verification before turning a pattern into a finding.
  • Measure tool value through **coverage, evidence errors, time saved and validated findings**. AI can analyze complex large-scale patterns and improve resource allocation, but quality of audit conclusions remains the auditor's responsibility.

Reporting and follow-up

  • Use AI to **draft summaries, improve readability and consolidate narratives** from verified findings. Check that wording preserves exceptions, scope, significance and management's actual commitments.
  • Review every material **claim, citation and conclusion** against approved workpapers. Hallucinated evidence or overstated control effectiveness can mislead management; grammar edits can also change intended meaning.
  • Explain **criteria, condition, cause, impact and recommended action** in business terms. For AI audits, describe model evaluation methods, limitations and relevant performance/fairness results supporting each finding.
  • Protect **audit confidentiality** before uploading reports, interviews or plans. Use approved services with suitable data terms and safeguards; verify transcript consent, access, retention and processing location.
  • Assign **remediation owners and due dates**, prioritize by validated severity and retest control effectiveness. NLP can help categorize overdue actions, but risk-based follow-up requires human confirmation.