Introduction to AI
Software testing is undergoing a paradigm shift. For decades, testers evaluated deterministic, rule-based software where a specific input always yields a specific output. This topic introduces the foundational AI concepts you need before you can test AI-based systems: how AI is classified, the hardware and frameworks it runs on, and the emerging regulations designed to keep it safe.
~14 min read
The core ideas, explained
AI-based and conventional systems
The most critical concept for an AI tester is the structural difference in how traditional software and AI software are built. In a conventional system, developers code the exact rules and logic, and the system applies those rules to input data to produce an answer. In an AI-based system, developers instead supply data and the desired outcomes, and the system applies algorithms to that data to learn the rules for itself.
| Feature | Conventional systems (deterministic) | AI-based systems (probabilistic) |
|---|---|---|
| How it's built | Developers code the exact rules and logic. | Developers supply the data and desired outcomes. |
| Execution | System applies rules to data to get the answer. | System applies algorithms to data to learn the rules. |
| Output nature | Absolute certainty - e.g. 2 + 2 = 4. | Probabilistic estimate - e.g. "98% confident this is a cat." |
| Testing challenge | Verifying logic against fixed expected results. | Handling non-deterministic outputs and edge cases. |
Conventional: a tax calculator. Input a salary of $50,000 and the code follows a strict mathematical formula to output exactly $5,000 in taxes - run it a million times, the output never changes.
AI-based: a bank's fraud detection system. Developers don't write a rule like "if transaction > $500 at 2 AM, block it." Instead they feed it millions of historical transactions; the system learns fraud patterns on its own, and for a new transaction it outputs something like "87% chance this is fraudulent" rather than a fixed yes/no.
Narrow AI, General AI, and Super AI
AI is classified into three evolutionary stages based on its capabilities and autonomy - from performing one task well, to reasoning like a human across any domain, to (hypothetically) surpassing human intelligence altogether.
| Classification | Definition | Current status | Examples |
|---|---|---|---|
| Narrow AI (ANI) | Designed to perform one specific task, or a narrow range of tasks, exceedingly well. Cannot operate outside its programming. | Exists today - all modern AI is Narrow AI. | Siri, self-driving cars, recommendation engines, ChatGPT. |
| General AI (AGI) | A theoretical system with human-level cognitive ability across all domains - able to learn, reason, and solve novel problems in any field. | Theoretical - does not exist yet. | The android "Data" from Star Trek; a machine that reasons like a human. |
| Super AI (ASI) | A theoretical system that would far surpass human intelligence in every aspect, from creativity to scientific problem-solving. | Theoretical / science fiction. | HAL 9000; a "god-like" AI system. |
ChatGPT feels highly intelligent, but it is strictly Narrow AI (ANI): it is highly optimized for text prediction, yet it cannot independently decide to learn to drive a car or cook a meal - it has no ability outside language tasks.
Different types of AI technologies
"AI" is an umbrella term encompassing several specialized fields. Testers must identify which technology is actually being used in order to design an appropriate test strategy for it.
-
Machine Learning (ML):
Systems that use statistical models to learn from data without being explicitly programmed.
Example: An airline pricing algorithm that adjusts ticket prices based on historical demand trends.
Example: An e-commerce system grouping customers into marketing segments based on purchasing behavior.
-
Deep Learning (DL):
A highly complex subfield of ML that uses multi-layered artificial neural networks inspired by the human brain, requiring massive amounts of data.
Example: Real-time language translation that analyzes live audio streams.
Example: Autonomous vehicles using sensor data to navigate city streets.
-
Natural Language Processing (NLP):
Technology that allows machines to understand, interpret, and generate human language.
Example: A customer service chatbot identifying the sentiment (angry vs. happy) of a user's text message.
-
Computer Vision (CV):
Technology that enables machines to extract information from digital images and video.
Example: A medical AI scanning an MRI image to detect early signs of tumors.
-
Expert Systems:
An older, rule-based form of AI that does not learn from data - it uses a massive, hard-coded database of "if-then" rules created by human experts.
Example: A legacy medical diagnosis tool where doctors programmed 5,000 specific symptom combinations, each mapped to a specific disease.
Generative AI
A major focus of the v2.0 syllabus is the split between systems that categorize existing data and systems that create new data.
| Discriminative AI | Generative AI | |
|---|---|---|
| Function | Analyzes data to classify it, sort it, or predict a value. | Analyzes patterns in training data to create entirely new, original content. |
| Output | A label, category, or number. | Synthetic text, images, audio, or code. |
| Example 1 | A spam filter categorizing an email as "Spam" or "Not Spam." | ChatGPT writing a poem about software testing. |
| Example 2 | FaceID verifying if a face matches the phone's owner. | Midjourney generating an image of a futuristic city. |
- Large Language Models (LLMs): A specific type of Generative AI trained on vast amounts of text. They work by predicting the next most logical word in a sequence, rather than by "understanding" facts.
- The testing challenge: hallucinations: Generative AI suffers from "hallucinations" - instances where the model confidently states fabricated, illogical, or false information as absolute fact. Because the system is only predicting the next word, it lacks actual factual comprehension, so testing for hallucinations requires entirely different approaches than standard functional testing.
Hardware for machine learning systems
Training AI requires massive computational power. Standard Central Processing Units (CPUs) process tasks sequentially - one at a time - which is too slow for the millions of calculations AI training requires.
| Hardware | What it is | Best suited for |
|---|---|---|
| CPU | General-purpose processor optimized for sequential, one-at-a-time operations. | Everyday computing - not efficient for AI training. |
| GPU | Originally built for rendering video games; excels at parallel processing (thousands of small calculations at once). | The primary hardware used for training AI models. |
| TPU | An application-specific integrated circuit (ASIC) developed by Google, purpose-built to accelerate neural network math. | Large-scale ML training and inference, especially on Google Cloud. |
| NPU | A specialized chip increasingly built into consumer hardware (phones, laptops). | Running AI tasks locally on-device without draining the battery. |
Development and hosting of AI models
Where the AI "lives" determines how a tester will verify latency, privacy, and integration - the two main options sit at opposite ends of a trade-off between raw compute power and speed/privacy.
-
Cloud Hosting / MLaaS (Machine Learning as a Service):
The heavy ML model runs on powerful remote servers (AWS, Google Cloud). The local app sends data via an API, and the cloud returns the prediction.
Example: Using the OpenAI API inside a web app. Test focus: network latency, API security, and data transmission.
-
Edge Computing (on-device):
The AI model is shrunk down and deployed directly onto the local device (smartphone, IoT device, car) - it offers ultra-low latency (no waiting on the internet), works offline, and protects privacy because data never leaves the device.
Example: A smartphone's fingerprint scanner. Test focus: device battery drain and offline capability, in addition to the recognition logic itself.
Machine learning development frameworks
Developers do not write the complex matrix calculus behind AI from scratch - they use frameworks, pre-built code libraries that provide the building blocks for creating AI models.
- Key frameworks: TensorFlow (Google), PyTorch (Meta), and scikit-learn (for more standard, non-deep-learning ML) are the most common examples.
- Testing impact: Testers often need to write automation scripts that interact natively with these specific frameworks, requiring some understanding of how data structures (like tensors) are passed into the system.
Regulations and standards for AI
Because AI models are probabilistic, can exhibit severe biases (e.g. learned from biased historical training data), and act as "black boxes," global governments are increasingly regulating them.
- Regulations (the law): The EU AI Act classifies AI systems by risk. A spam filter is low risk; AI used in hiring, loan approvals, or criminal justice is high risk and faces intense legal scrutiny.
- Standards (best practices): Frameworks like ISO/IEC 42001 and the NIST AI Risk Management Framework guide organizations on how to build safe, transparent, and unbiased AI - they are non-mandatory guidance, unlike a binding regulation.
- Testing impact: A tester's job is no longer just finding bugs - it includes verifying legal compliance, auditing datasets for demographic bias, and ensuring the model handles user data according to privacy laws like GDPR.
Key points to remember
- AI is probabilistic: output is a confidence score, not a guaranteed exact match - test strategies must allow for acceptable variance.
- We are in the Narrow AI era: systems like LLMs are highly advanced Narrow AI, not General AI.
- Generative AI creates; Discriminative AI classifies. Know the difference - they require entirely different test oracles.
- Hardware matters: training happens on GPUs/TPUs (parallel processing); execution often happens on Edge NPUs for privacy and speed.
- Regulation is expanding: testers are the last line of defense against algorithmic bias and regulatory non-compliance under frameworks like the EU AI Act.
Terminology
A few terms from this topic worth knowing precisely.
A system whose behavior is derived, fully or partly, from data via a learning process, rather than solely from explicit, human-authored rules.
A system built entirely from explicit, predefined logic/rules, producing the same output for the same input every time.
AI designed and trained to perform one specific task, or a narrow range of tasks - the only form of AI that exists today.
A hypothetical AI possessing human-level cognitive abilities across all domains - it does not currently exist.
A hypothetical AI that would surpass human intelligence in every aspect - the realm of science fiction for now.
AI that analyzes data to classify it or predict a value based on boundaries learned from the data, as opposed to generating new content.
AI that learns the underlying patterns of its training data to create new, original content - text, images, audio, or code - rather than only classifying existing content.
A type of generative AI trained on vast amounts of text to generate human-like language by predicting the next most likely word in a sequence.
When a generative model confidently produces false, illogical, or fabricated information as if it were fact.
AI technology that allows machines to understand, interpret, and generate human language.
AI technology that enables machines to extract information from digital images and video.
An older, rule-based form of AI that does not learn from data - it uses a massive, hard-coded database of "if-then" rules created by human experts.
Deploying and running an AI model directly on the local device, rather than in the cloud - offering low latency, offline capability, and better data privacy.
A pre-built library of code (e.g. TensorFlow, PyTorch, scikit-learn) providing the building blocks developers use to create and train ML models, instead of writing the underlying matrix calculus from scratch.
Binding EU legislation that classifies AI systems by risk level and mandates a risk-based approach to their development and deployment, with real penalties for non-compliance.
Summary
Section 1.1 establishes the technical baseline for AI testing. Testers must adapt from verifying deterministic rules to evaluating probabilistic outcomes. The landscape is currently dominated by Narrow AI, leveraging technologies like Machine Learning, Deep Learning, and Computer Vision. Generative AI introduces major new challenges, particularly hallucinations. Understanding the underlying infrastructure - from parallel-processing GPUs and Edge hosting to development frameworks like TensorFlow - lets testers target their efforts effectively while ensuring systems comply with emerging global safety and bias regulations.
| Concept | One-line memory hook |
|---|---|
| Conventional systems | Rules + data = answers (deterministic) |
| AI-based systems | Data + answers = rules (probabilistic) |
| Narrow AI (ANI) | AI that excels at one specific task (all current AI) |
| General / Super AI (AGI / ASI) | Human-level, then superhuman reasoning - both still theoretical |
| Discriminative vs. Generative AI | Classifies existing data vs. creates new data |
| GPUs / TPUs / NPUs | Parallel training hardware vs. efficient on-device inference |
| Edge vs. Cloud hosting | Local speed and privacy vs. remote scale and power |
| Regulation (EU AI Act) | Higher real-world risk demands stricter bias/compliance testing |
Check your understanding
15 quick questions - click an option to see if you got it right.