Guest on AI Engineer.

Persona Engineering: A Field Guide to AI Synthetic Personas — Ishan Anand, InsightSciences.ai
Jul 29, 2026 · 21:09
Ishan Anand of InsightSciences argues that synthetic personas, powered by LLMs, can predict human survey responses with 83% alignment when normalized against human noise (humans are only 80% consistent with themselves over time). However, they fail in three critical ways: models invent confounders (e.g., price as a proxy for quality, creating an inverted U-shaped purchase curve), exhibit extreme order bias in answer choices, and predict stated attitudes far better than actual behaviors. Techniques like fine-tuning on human distributions (the subpop paper) or mapping model-generated text to human-scaled responses via semantic similarity can recover accurate distributions, not just averages. To validate, Anand recommends using correlation plus shape metrics and establishing a noise floor by splitting human data against itself. The takeaway: synthetic personas are forecasts, not ground truth, and work best as a complement to human research—extending data to unasked questions and simulating human-plus-agent ecosystems.

How LLMs work for Web Devs: GPT in 600 lines of Vanilla JS - Ishan Anand
Jul 13, 2025 · 1:41:34
Ishan Anand shows that GPT-2 small implemented in 600 lines of vanilla JavaScript makes LLMs understandable for web developers without ML backgrounds. He explains tokenization via byte-pair encoding, 768-dimensional embeddings representing semantic meaning via co-occurrence, and the Transformer's attention mechanism that lets tokens share context. The multi-layer perceptron learns next-token prediction through backpropagation, while the language head converts embeddings to token probabilities using softmax. Anand demonstrates each step—tokenization, embedding lookup, positional encoding, attention, MLP, and output—in a browser debugger, and notes that GPT-2's architecture underpins ChatGPT, with innovations like scale, supervised fine-tuning, and RLHF. The workshop provides an intuitive mental model of Transformers, turning perceived AI magic into understandable machinery.

Decoding the Decoder LLM without de code: Ishan Anand
Aug 9, 2024 · 17:08
Ishan Anand demonstrates how decoder-based LLMs like GPT-2 work internally using a fully functional spreadsheet implementation. He explains tokenization (e.g., 're-injury' splitting into 'rain' and 'injury' due to subword units), 768-dimensional embeddings, multi-headed attention where tokens look backward (e.g., 'he' focuses 0.48 on 'Mike'), and the multi-layer perceptron with matrix multiplies (MMULT). He shows residual connections creating an information superhighway and uses logit lens to reveal layer-by-layer predictions (e.g., 'Wednesday' appears early but only rises to top probability at later layers). Finally, he injects a sparse autoencoder feature vector for 'Jedi' into the residual stream, steering GPT-2 to output 'lightsaber' instead of 'phone', and contrasts this with alternative steering methods like representation engineering and activation steering.
Powered by PodHood