Skip to content

alphaPlan · Cybersecurity · Cheat-sheet 05

How AI Actually Works

AI is a tool that learns patterns from data and produces confident guesses, so its answers still need a human to check them.

Ideas to remember

  1. 01AI, machine learning and deep learning nest like boxes: all deep learning is machine learning, and all machine learning is AI, but not the other way round.
  2. 02Machine learning learns from examples instead of hand written rules; a spam filter is the classic case.
  3. 03You already use AI in maps, recommendations, autocomplete and photo tagging, and each result is a best guess that can be wrong.
  4. 04A large language model predicts the next word, so it can write a fluent, confident answer that is simply false, called a hallucination.
  5. 05Training is the slow, costly learning done once by the builder; inference is the quick everyday use, and the model does not keep learning from you.
  6. 06A model knows only its training data, so gaps and slants in that data shape and can bias every answer.

Words

Artificial intelligence (AI)
The broad goal of getting computers to do tasks that normally need human intelligence.
Machine learning (ML)
A method where the system is shown many examples and works out the patterns for itself.
Deep learning
Machine learning with neural networks built in many stacked layers.
Large language model (LLM)
AI trained on enormous amounts of text that builds an answer one word at a time.
Hallucination
An answer that sounds right but is false, written in the same assured style as a correct one.
Training vs inference
Training builds the model from data once; inference is each everyday use of it.

Do this

  • Pick one app you used today and decide which box it sits in: fixed rules, learns from data, or a deep network.
  • Check a name, number, date or quote against a trusted, independent source before you rely on it or pass it on.
  • Never paste passwords, personal data or confidential work material into a public or unapproved AI tool.
  • Describe a sensitive situation in general terms or with placeholder names, then add the real details yourself on your own systems.
  • Treat every AI output as a first draft: read it critically, correct it, and own the result.

Watch out

  • Fluency is not knowledge and confidence is not accuracy; you cannot tell a hallucination from a fact by tone alone.
  • A prompt typed into a public AI tool leaves your device and may be stored, reviewed or used for training.
  • 'AI powered' is a label, not an answer; ask what the product actually does.

From the lessons: AI, ML, and deep learning, AI you already use, LLMs and hallucinations, Prompting safely, Training vs using a model. codeforalbania.com/en/learn/cybersecurity/05-how-ai-works

shënim: ky material u krijua në kuadër të projektit 'U.S. Cybersecurity Leadership in AI for Albania', financuar nga departamenti i shtetit i shteteve të bashkuara. mendimet, gjetjet dhe përfundimet e paraqitura këtu janë të autorit(ëve) dhe nuk pasqyrojnë domosdoshmërisht ato të departamentit të shtetit të shteteve të bashkuara.

Disclaimer: This material was created on behalf of the 'U.S. Cybersecurity Leadership in AI for Albania' project, funded by the United States Department of State. The opinions, findings, and conclusions stated herein are those of the author(s) and do not necessarily reflect those of the United States Department of State.

Disclaimer

Found something unclear, outdated or improvable? Suggest an improvement