Skip to content
tezvyn:

Generative ai

69 bites tagged Generative ai: interview questions with model answers, and 60-second explainers.

Test yourself: Top 30 Generative ai interview questions →Multiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.
LLMs & Generative AI2 min read

How does text guide Stable Diffusion via U-Net cross-attention?

Tests whether you know text embeddings condition the U-Net through cross-attention. Good answers explain that image features query text keys and values at every layer. Red flag: claiming the prompt is concatenated to the image latent.

LLMs & Generative AI2 min read

Explain Denoising Diffusion models and forward/reverse processes.

This tests if you see diffusion as iterative latent generation, not GANs. Forward: add Gaussian noise over T steps until data is pure noise. Reverse: a network iteratively denoises random noise into data.

LLMs & Generative AI2 min read

Few-Shot Prompting

Few-shot prompting embeds task examples directly in the prompt to guide output format without retraining. It excels at niche tasks and consistent formatting, but mismatched examples degrade performance more than no examples at all.

LLMs & Generative AI2 min read

AI Coding Assistants: Your LLM Pair Programmer

AI coding assistants are like pair programmers powered by large language models. They assist in tasks across the software lifecycle, from code generation and testing to debugging and documentation. The key footgun is over-reliance; they assist, not replace.

LLMs & Generative AI2 min read

Modality Gap: When Multimodal LLMs Don't Trust Their Senses

A multimodal LLM has a modality gap when it trusts one input type (like text) over another (like images), even with identical information. This bias causes performance drops, like ignoring visual data if conflicting text is present.

LLMs & Generative AI2 min read

LLMs as Tool Makers: Write Once, Solve Many

LLMs can create their own tools, not just use them. A powerful model writes a reusable function once, and a cheaper model calls it many times. This gives top-tier results at a lower cost for repetitive tasks.

LLMs & Generative AI2 min read

LangChain Agents: Giving LLMs a Toolkit

A LangChain Agent is an LLM given a toolkit and a goal. The agent's 'harness' prompts the model to pick tools, call them in a loop, and reason about the results until the task is complete. Use it to query databases or call external APIs.

LLMs & Generative AI2 min read

Agent Memory: Short-Term vs. Long-Term Recall

Agent memory gives an LLM a sense of history, separating fleeting conversation context from persistent knowledge. Short-term memory tracks the current chat, while long-term memory recalls user facts across sessions.

LLMs & Generative AI2 min read

Agentic Reasoning: LLMs that Plan, Act, and Learn

Agentic reasoning treats an LLM as an autonomous agent that interacts with its environment. It plans tasks, uses tools like APIs, and learns from feedback to solve complex problems. The footgun is assuming its plans are optimal or actions are always correct.

LLMs & Generative AI2 min read

World Models: An AI's Internal Simulator for Planning

A world model is an AI's internal simulator, letting it 'dream' about how actions change its environment. This powers robots and autonomous cars, letting them plan complex tasks without real-world trial and error.

LLMs & Generative AI2 min read

Model Merging: Combine LLM Skills Without Retraining

Model merging blends specialized LLMs into one, like creating a custom alloy from different metals. It's used to combine a coding expert with a legal expert, for example, without costly retraining.

LLMs & Generative AI2 min read

Amazon Bedrock: One API for Many AI Models

Amazon Bedrock is an API gateway for foundation models, letting you switch AI providers without rewriting code. It's used to build generative AI apps while avoiding vendor lock-in.

LLMs & Generative AI2 min read

The OpenAI API: Access to Foundational AI Models

The OpenAI API provides access to influential models like GPT and DALL-E. It enables developers to integrate generative AI into commercial applications and research, building on technology that catalyzed the current AI boom.

LLMs & Generative AI2 min read

Deepfakes: AI-Generated Media Impersonations

Deepfakes are AI-generated media that convincingly impersonate people. Think of it as digital puppetry, where an AI manipulates a face or voice. They're used for film effects and satire, but also for misinformation. The footgun: assuming you can spot one.

LLMs & Generative AI2 min read

Data Bias: When AI Inherits Our Flaws

Generative AI learns patterns from its training data. Data bias occurs when this data contains skewed perspectives or stereotypes, which the model then reproduces and amplifies. This is why an image generator might default to stereotypes.

LLMs & Generative AI2 min read

Speculative Decoding: A Small LLM Speeds Up a Big One

Speculative decoding uses a small, fast 'draft' LLM to guess the next few words, which a larger 'target' LLM verifies in one batch. This cuts inference latency 2-3x in production systems.

LLMs & Generative AI2 min read

LLM Guardrails: Keeping Model Outputs on Track

LLM guardrails are safety policies that steer model outputs, acting like bumpers in a bowling alley to prevent responses from going off-topic, leaking data, or generating harmful content. They are crucial for topic control and preventing prompt injections.

LLMs & Generative AI2 min read

LLM Red Teaming: Adversarial Security Testing

LLM Red Teaming is a simulated attack where you proactively try to break your own AI to find security flaws. It's used to test for vulnerabilities like prompt injection or data leakage, which traditional security tools miss.

LLMs & Generative AI2 min read

LLM-as-a-Judge: Using Models to Grade Models

Instead of paying humans to rate AI outputs, LLM-as-a-Judge uses a powerful 'judge' model to do it automatically. This is used to evaluate chatbot responses or summarization quality, but the main footgun is assuming the judge model is unbiased or perfectly…

LLMs & Generative AI2 min read

Inception Score: Judging AI Art for Quality and Variety

Inception Score judges an AI image generator on quality and variety, using a classifier to check if images are distinct and the overall set is diverse. Its main footgun is that it only measures what another AI can classify, not what a human finds appealing.

LLMs & Generative AI2 min read

Human Evaluation: Judging AI When Metrics Aren't Enough

Human evaluation is the ultimate reality check for AI, using people to judge qualities like fluency and coherence that automated scores can't capture. It's essential for tasks like summarization but is too slow and costly to use for everything.

LLMs & Generative AI2 min read

Text-to-Video Generation: From Prompt to Picture Show

Text-to-video models are like a film director in a box, turning written descriptions into moving pictures. This tech, powered by video diffusion models, is used for creating short-form content or prototyping visual ideas from a simple text prompt.

LLMs & Generative AI2 min read

BLIP: Bootstrapping Better Vision-Language Models

BLIP is a pre-training framework that masters both image understanding and generation by creating its own training data. It uses a captioner and filter to generate clean image-text pairs from noisy web data.

LLMs & Generative AI2 min read

Text-to-Speech (TTS): Turning Text into Spoken Audio

Text-to-Speech (TTS) systems are digital voice actors, converting written language into artificial human speech. They are the core of any system that needs to speak text aloud.

Get Generative ai bites daily.

Five a day, five minutes, offline. With quizzes so it sticks.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon