Suman Dey (@datawithsuman) header
Suman Dey (@datawithsuman) profile picture

🤖 Applied AI @jpmorgan 🎓 Masters in Data Science @IITHyderabad 💡 Bite-Sized AI Wisdom 📩 DM for Collaboration

India
Joined June 2022
Photo by Suman Dey (@datawithsuman)Photo by Suman Dey (@datawithsuman)Photo by Suman Dey (@datawithsuman)Photo by Suman Dey (@datawithsuman)Photo by Suman Dey (@datawithsuman)Photo by Suman Dey (@datawithsuman)Photo by Suman Dey (@datawithsuman)Photo by Suman Dey (@datawithsuman)Photo by Suman Dey (@datawithsuman)
Everyone should listen to this.
Dr. Pratosh at IISc Bengaluru tells his students that rapid advances in AI are commoditizing intellectual labour. He raises an unsettling question: if companies stop recruiting on campus in the next 5–10 years—even at India’s top universities—what will the purpose of a university education be ? A must watch video for everyone in tech
3
22
266
116,848
Suman Dey retweeted
Weekend hack: HackerTube. I was annoyed with YouTube's recommendations so I had Claude filter down 43M comments over 20 years of HN to 6,454 videos that keep being recommended. *Significantly* better viewing experience, ~2 hours with Opus 5.5: hackertube.org/ - Excellent recs without any logins (state is kept in local browser session) - Thumbnail is a representative frame from middle of the video instead of the super duper A/B test hyper-optimized user uploads - Underlying data from the comment analysis as one zip file, point your Claude at it and ask for your own version - HackerTube Longs ✊ A bit more on the process: I use Claude Code (desktop app for Mac), Opus 5.5 on Medium effort as my default. I only talk to Claude and have it do everything, the only "manual work" I helped with in tandem was in the browser (reminiscent of MenuGen): 1) I had to create some kind of API key from Google Cloud UI to query YouTube for video metadata, 2) I booted up a VPS box for serving and 3) I bought the domain name. Once the box was up I gave Claude the IP and told it update, secure, harden, deploy and optimize the code, and it did the whole thing. Many awesome projects that would have normally taken weeks/months even can now be few-shotted for breakfast. What else are we not thinking of.
2,019
4,359
1,587
48,011
4,428,230
Suman Dey retweeted
Here's how to actually master LLM evals, step by step, with real projects to prove what you've learned: 1. Build something to break first Don't learn evals in the abstract. Build a small LLM app with a real failure surface: RAG over a docs site, a text-to-SQL bot, or a tool-using agent. Ugly is fine. You need traces, not polish. 2. Read 100 traces by hand Dump input, output, retrieved chunks, and tool calls into a spreadsheet. Write one line per failure in plain English. Cluster them. Count them. Most people skip this and build metrics for problems they don't have. Project: publish your failure taxonomy with counts per category. 3. Build your first golden dataset 50 cases from your top 3 failure categories, 20 easy happy-path cases, 10 adversarial ones. Columns: input, expected output or rubric, category, difficulty, segment. Commit it to git and tag every prompt change with the dataset version it was scored on. 4. Generate synthetic data properly Write your dimensions (persona × intent × complexity × edge case), generate the tuples with a script, then have an LLM turn each tuple into a natural query. Review and throw out the bad ones. Dedupe near-duplicates with embeddings. Project: a 300-case synthetic set with a coverage matrix showing which combinations you tested. 5. Write code checks before judges pytest + pydantic for schema validation, regex, required fields, length limits. Run generated SQL against a real SQLite test DB. Execute generated code in a sandbox. Try to make at least half your failure categories checkable without an LLM. 6. Build and align an LLM judge Hand-label 100+ examples pass/fail. Split into train/dev/test. Binary verdict, written rubric, critique before verdict. Iterate the prompt on dev until TPR and TNR are both high, then report on test once. Pin the judge model version. Project: a judge-alignment notebook with a confusion matrix and every prompt iteration you tried. 7. Split your RAG evals Label the relevant chunks for 50 queries. Compute recall@5, MRR, and nDCG. Then score faithfulness by breaking each answer into claims and checking each one against the retrieved context. Change chunk size or embedding model and watch which number moves. 8. Score agent trajectories Log tool name, args, result, and tokens for every step. Write reference paths for 30 tasks. Score tool precision/recall, argument correctness, step count, and error recovery. Make a tool fail 20% of the time on purpose and see if your agent recovers or spirals. 9. Simulate users for multi-turn Give a simulator LLM a persona, a hidden goal, and constraints ("won't share the order number unless asked twice"). Run 50 conversations with a 15-turn cap. Grade goal completion, turns-to-resolution, and policy violations. 10. Measure reliability, not luck Run every case 5x at your production temperature. Report pass@1 and pass^5 side by side. The cases that flake are your real production bugs. 11. Learn enough stats to not fool yourself Bootstrap your confidence intervals. Compare models paired on the same examples (McNemar's test works for pass/fail). If your test can't separate the two runs, you didn't improve anything, you got lucky. 12. Debias pairwise judging Run every A/B comparison in both orders and only count verdicts that agree. Plot win rate against answer length. If longer always wins, your judge is grading word count. 13. Wire it into CI A GitHub Action on every PR that touches prompts, models, tools, or retrieval config. Fast deterministic checks on every PR, the full judge suite nightly or on a label. Per-category thresholds. Post the score diff as a PR comment. Project: a PR where CI blocks a real regression. Screenshot it. That's your proof. 14. Go online Sample 5% of live traffic, run judges async, build a per-category dashboard, and alert on drift. Shadow-deploy a new model before switching. Build the loop: thumbs-down → triage queue → new labeled test case. 15. Make cost a metric Log tokens, cost per successful task, and p50/p95 latency. Swap in a cheaper model; if quality holds in CI, chart the savings. "Same quality, 40% cheaper" is the easiest win to sell to any team. Tools: pytest, pydantic, promptfoo, DeepEval, Ragas, Inspect, Langfuse, LangSmith, Braintrust, Arize Phoenix. Pick one stack, learn the concepts. Tools change. Read: Hamel Husain and Shreya Shankar on evals, Eugene Yan's posts on LLM evaluation, and the τ-bench paper (where pass^k comes from).
Evals are the most underrated skill in AI engineering. 1. Start with error analysis, not metrics Sample 100+ production traces. Annotate each failure in free text (open coding), then cluster them into failure categories (axial coding). Count frequency per category. Your top 3 categories are your first metrics. 2. Build a versioned golden dataset Store inputs, expected outputs or rubrics, and metadata (intent, difficulty, user segment) in a versioned dataset. Stratify it so rare but critical cases aren't drowned out by easy ones. Version it alongside your prompts so every score is reproducible. 3. Generate synthetic data along explicit dimensions Don't just ask an LLM for "test questions." Define dimensions (persona × intent × complexity × edge case), generate combinations as tuples, then turn each tuple into a natural input. You get coverage instead of 200 near-identical examples. 4. Deterministic assertions first JSON schema validation, regex checks, required fields, length limits, code execution, SQL that actually runs against a test DB. These are cheap, fast, and have zero variance. Reserve model-based grading for what code genuinely can't check. 5. Evaluate retrieval separately from generation For RAG, measure retrieval with recall@k, MRR, or nDCG against labeled relevant chunks. Measure generation with faithfulness (is every claim supported by retrieved context?). If you only score the final answer, you can't tell which half is broken. 6. Trajectory evals for agents Log every step: tool name, arguments, result, tokens. Score tool-call precision and recall against a reference path, argument correctness, step count, and error recovery. An agent that reaches the right answer in 14 calls when 3 would do is a cost and latency bug. 7. pass@k vs pass^k pass@k = succeeded at least once in k runs. pass^k = succeeded in all k runs. At 80% per-run success, pass^5 drops to roughly 33%. Production reliability lives in pass^k, so run each case multiple times at your real temperature. 8. Simulated users for multi-turn Give an LLM a persona, a hidden goal, and constraints, then let it converse with your system until the goal is met or a turn limit hits. Grade goal completion, turns-to-resolution, and policy violations. Single-turn evals miss most state and memory bugs. 9. Align your LLM judge like a classifier Hand-label 100+ examples as pass/fail. Split into train/dev/test. Iterate on the judge prompt using dev, then report TPR and TNR on test. Use binary outputs with a written rubric, require a short critique before the verdict, and pin the judge model version. 10. Control judge bias in pairwise comparisons LLM judges have position bias and often prefer longer answers. Run every A/B comparison twice with swapped order and only count consistent verdicts. Normalize or cap length if verbosity is skewing results. 11. Respect statistics With 100 examples at 80% accuracy, your 95% confidence interval is about ±8 points. A jump from 80% to 83% is probably noise. Use bootstrapped confidence intervals, or a paired test on the same examples, before declaring a win. 12. Gate deploys in CI Run the eval suite on every PR that touches prompts, models, tools, or retrieval config. Set per-category thresholds instead of one global score, so a big win in one area can't hide a regression in another. Fail the build on a regression. 13. Online evals in production Sample a percentage of live traffic, run your judges asynchronously, and alert on drift per failure category. Use shadow deployments to run a new prompt or model on real traffic without showing users the output. 14. Make cost and latency first-class metrics Track tokens per request, cost per successful task (not per call), and p50/p95 latency next to quality. A change that keeps quality flat while cutting cost 40% is a real win and deserves to ship. 15. Close the loop Every production failure becomes a new labeled test case. Every new model release gets run against the full suite before anyone debates switching. Over time your eval set becomes the most valuable asset in the codebase. Prompts are disposable. Models get replaced every few months. Your eval infrastructure is what compounds.
26
25
1
497
21,585
Very cool feature from @askalphaxiv to let users listen to papers even when they are on the go.
Introducing NotebookLM for arXiv Papers 🚀 Transform dense AI research into engaging convos you can hear on the go With context from thousands of related papers, it captures motivations, draws connections to SOTA, and explains key ideas like a prof who's read the entire field
1
678
Suman Dey retweeted
alphaXiv Mobile 2.0 is here 📱 • Mobile friendly PDF reader • Library with sharable folders • Custom feeds with research curated to your interests • Al visual overviews for papers • Support for iPhone Duo + iPad iOS: apps.apple.com/us/app/alphax… Android: play.google.com/store/apps/d…
16
39
5
321
18,875
Some useful advices here 👇🏻
The coding interview is dead, at least for my team at Anthropic. I've seen enough to know that it no longer provides signal. I removed it from loops this month. I have a spicy, optimistic take - I think there's an opportunity for junior engineers: felixrieseberg.com/hunger-be…
863
FREE AI Harness crash course from Google 👇🏻
1
875
Suman Dey retweeted
The ultimate guide to interpretability is here 🔥 Are we actually on the verge of reverse engineering LLMs or is the excitement outpacing what interpretability methods can actually deliver? We put together an illustrated walkthrough of the field, from early vision research to the latest debates about understanding LLMs. The recent viral essay Neural Networks Are Already Clean has ignited long essays and online debates. In this guide, we build the foundation from the ground up starting with computer vision: - Feature visualization - SHAP and integrated gradients - Circuit tracing Then we move to language models where we go over: - Attention heads, the residual stream, induction heads - Activation steering: amplifying a Golden Gate Bridge feature to mitigating evaluation awareness - Ablation, activation patching, and probe experiments - Polysemanticity, superposition, and SAEs We also discuss the shortcomings and open questions of the field that can be easy to miss if you’re only following the latest interpretability breakthroughs from Anthropic blogs. Read the full guide at alphaxiv.org/trends/interpre…
7
34
3
277
14,420
Suman Dey retweeted
We believe voice is the most natural way to interact with intelligence, so we created Dessa, the most authentic full-duplex speech model ever built. Talking with it feels like talking with a person…full of emotion, nuance, pauses, and a natural cadence. block.xyz/dessa
4,186
7,144
4,753
69,125
13,648,556
Suman Dey retweeted
Looking for a fun weekend read? Introducing the Illustrated NeurIPS 🌎 We indexed all 9000+ NeurIPS papers and built a visual way to explore the whole landscape Search your favorite topics, open a cluster, and dive right in Check it out here! alphaxiv.org/conferences/neu…
10
52
1
370
17,069
Suman Dey retweeted
Pay close attention to agentic search. LLM agents get much better at specialized tasks when you give them structured, expert knowledge. Xerj Corpus Hub lets you do this for any agent with no retraining. You connect a ready-made corpus of docs, guidelines, or real source code, and the agent searches it while it works. It's free, open source, and runs locally. nitter.gq/d0znpp/status/21100388…
🤝 Paid partnership
introducing XERJ Corpus Hub, reference memory for AI agents. give your agent a corpus for your task. watch it become superintelligent. > finds the answers in indexed expert knowledge > applies them to your code, research, and projects > works with any model. free and OSS forever/Apache 2 install in one prompt: >Install XERJ (docs: xerj.org/llms.txt), index this project’s sources, docs, and logs, and connect hub.xerj.org as reference memory hub
24
14
162
14,915
Great blog. Must read.
New on our Engineering blog: Creating in-house source control. In May, we merged around 2,500 code changes per day. In September, we merged more than 30,000 per day. As a result, we became bottlenecked by developer infrastructure built for human (rather than agent) scale. Here, we share how we built a new version control system—and fully migrated our monorepo from git—in five months: anthropic.com/engineering/re…
3
4,075
Woahh!! Sneaky.
We discovered a sophisticated recording device that was hidden inside one of our offices. We used our models to understand the device and where it had come from, identifying that a specific employee had planted it a few days earlier. We referred the matter to the FBI, and we’re grateful to the agents and prosecutors who moved quickly to make an arrest. The FBI’s investigation is ongoing and we will continue to support their work. At this time, we have no indications of this individual inappropriately accessing or exfiltrating model weights, source code, or customer data. The employee was terminated. We take protecting our technology, data, and people seriously, and as a matter of national importance. Our security program is designed to protect against a wide range of threat actors, from insider risks to cybercriminals to nation states, and this case is an example of how AI can help address these sophisticated security threats.
1,311
The best agents keep the big model for planning and writing and route the rest. This is what makes that routing actually work once the agent has been running long enough for the context to pile up.
Introducing SubQ Snap, the first long-context decision model for real enterprise work. Snap is the only decision model or LLM where compute per token stays constant as context grows. • 384K tokens of multimodal context, 12x larger than Jev. • 61.7 on Decision Index v0.2.1 vs Jev’s 57.9, outperforming on 13 of 16 enterprise benchmarks. •Processes 100K tokens and returns a decision in under one second. •$0.05/MM input tokens. Output is free. Available today to anyone. The first 10,000 sign-ups get 100M free input tokens. We’ll likely hit capacity fast and will add users as we add compute. Compute offers welcome 🙂. Latency will be variable as we tune the platform to this new model and category of users. Model speeds are 80ms for minimal context, 250ms for 32k, 660ms for 100k, and 2.5 seconds for 384k. Visit: subq.ai/
1
711
Suman Dey retweeted
🎥 Sharing my talk at the Simons Institute, UC Berkeley, on "Understanding the Structure of Reasoning in Language Models": youtube.com/live/gAwCSHujtGo Thinking tokens are becoming a new scaling axis for AI. But does more thinking mean smarter thinking? In this talk, I discuss four of our recent papers: - Reasoning has structure. Reasoning traces reveal a shared "heartbeat" and recurring loops that can predict correctness. ThinkARM (ACL 2026 Oral): arxiv.org/abs/2512.19995 - Better reasoning without reward-model training. A larger model guides a smaller model's reasoning, matching a trained process reward model without reward-model training. EMNLP 2026 Main Conference: arxiv.org/abs/2606.01682 - Knowing when to stop matters. Models can learn to stop based on their confidence, using up to 25% fewer thinking tokens at matched accuracy. ConfSFT: arxiv.org/abs/2609.31619 - Thinking harder isn't always thinking smarter. Models struggle to allocate compute across problems based on their importance, following prompts rather than payoffs. Thinking Hard, Not Smart: arxiv.org/abs/2608.07968 The key takeaway is that more compute doesn't guarantee better reasoning. What matters is how, when, and where models think. Thanks to the @SimonsInstitute for hosting and to my wonderful students and collaborators!
3
41
1
241
17,844
Hoping the next retrieval process would improve faithfulness.
Introducing EmbeddingGemma 2! 🚀 Our lightweight, multimodal embedding model maps text, code, images, video, and audio into a single, unified embedding space. Optimized for on-device use cases, it features: - 740M parameter form factor with modular encoders - Flexible dimension sizes (768dim-128dim) via Matryoshka Representation Learning (MRL) - 8K context window (4x larger than text-only EmbeddingGemma) - A commercially permissive Apache 2.0 license
818
Very useful for keeping upto date, been using for few days.
If doomscrolling X is part of your research workflow, we built something for you. Introducing Paperscrolling, now on iOS and Android 🚀 Follow the latest research with key ideas, figures, and audio explanations from alphaXiv Briefs Check it out here! play.google.com/store/apps/d…
1
1
786
New paper from Meta Superintelligence Labs and the University of Washington (with MIT and Trillium Labs). Most AI agents don't manage their own memory. A script does. This paper lets the model edit its own context like a text file. Result on deep research: 11.4% higher accuracy with 21.5% less compute. How it works đź§µ
1
1
2
964
8/ Worth knowing: → With a bigger 128K budget, the gap to summarization mostly closes on EdgeBench-10 (47.3 vs 47.8), though cost stays lower. → Some math results are single runs. → An editable context is a new place for prompt injection, which the authors flag.
1
45
9/ Why it matters: context management moves from the harness into the model, so it can be steered, evolved and trained instead of hand-coded. Paper: arxiv.org/abs/2609.37725 Every week I break down one AI paper or concept, simply and visually. 🔖 Bookmark this, 📤 send it to a friend building agents. @datawithsuman · AI & ML, explained simply
47