AITeky Learn

AiTeky Original Interactive Learning & Practice Advanced

Vision-language models: AI that reads pictures and answers in words

See how a picture becomes tokens, build a miniature CLIP that puts pictures and words in one space, learn how to test any picture-and-language model with known answers and baselines, and decide with numbers when such a model is worth its cost.

A vision-language model (VLM) takes a picture and a question in words, and answers in words: "what does this chart show?", "is anything missing from this shelf?", "does this photo match its listing?". They are the reason you can photograph a bill or a whiteboard and ask a chatbot about it. They are also easy to over-trust: a fluent answer about a picture is not the same thing as a correct one.

This course teaches you to understand and judge them, using small pieces you can run yourself rather than a giant model you cannot open. You start with the plumbing: how a picture is cut into patches and turned into tokens, and why the size of the picture sets both the cost and what the model can read at all. You build a miniature version of CLIP, which puts pictures and sentences into one space so that they can be compared, and find its blind spots (negation, and things it never saw). You read charts with a few lines of code, to learn what a picture does and does not carry, and then build a test harness that can be pointed at any picture-and-language model: questions with known answers, scoring rules, a blind guesser and a careful piece of code as the floor and the ceiling. The industry lessons check records against their photos, and decide, with a cost sheet you can change, when a vision-language model is the right tool and when a classifier, a data source or OCR with rules is better.

Everything in this course runs in the browser on small stand-ins. The real models are far larger, but the questions you ask of them are the same, and the harness and the cost sheet are the ones you would use. You need the Python, machine learning and computer vision courses; the deep learning course helps.

  • Learn lessons explain one idea at a time, with code you can run in the browser.
  • Industry ready lessons build a record-checking queue and a tool choice. Each ends with the interview questions that go with it.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min Free sample πŸ”’ AiTeky Pass From pixels to tokens Cut a picture into patches the way a vision model does, count how many tokens a picture costs at different sizes, see what resizing does to small text on a chart, and learn why tiling a big image helps.
  2. 02 40 min πŸ”’ AiTeky Pass Pictures and words in one space Build a miniature CLIP with NumPy: two small encoders, a contrastive loss on pairs of handwritten-digit pictures and captions, then use it to classify pictures it was never given labels for, and see its two blind spots, negation and concepts it never met.
  3. 03 35 min πŸ”’ AiTeky Pass Reading charts: geometry survives, text does not Draw bar charts with known values at different resolutions, read the bars back from the pixels alone, compare the error with the size of the printed labels, and see why a truncated axis makes any reader, human or model, exaggerate differences.
  4. 04 40 min πŸ”’ AiTeky Pass Testing a picture-and-language model Build a test harness for any system that answers questions about pictures: questions with known answers, scoring rules, a no-picture baseline and a simple-code baseline, results split by question type and by chart design, and a way to count answers a model should have declined.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 05 45 min πŸ”’ AiTeky Pass On the job: checking labels against photos Use a picture-and-text model to find records whose text does not match their picture, rank them by similarity, size the review queue, split the misses by kind of mistake, and compare with a plain classifier before choosing.
  2. 06 40 min πŸ”’ AiTeky Pass On the job: which tool for which picture Compare a picture-and-language model with a classifier, OCR and rules, and a cascade of the two, using token counts for the model's cost, assumed error and review costs, and a break-even calculation, then write the rules a team can follow when a new picture task arrives.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in