
MSCS UMass Amherst
Manning College of Information and Computer Sciences
University of Massachusetts Amherst
Email: sagnikchatte@umass.edu
Research interests
I want to know why a language model does what it does, in enough detail to say in advance where it will break. Most of my work is mechanistic interpretability: probing and steering what a model represents internally, in circuits, features and attention patterns, then checking whether what a probe can read off is really what the model uses. My recent work sits on that distinction. A probe can decode that a reasoning trace has gone wrong far more reliably than it can name the step that went wrong, and the gap between the two is easy to miss if you only report the first number. I am now extending this to tool-using agents, where one bad step is something every later step builds on.
Research
Code and figures for each are on its own page. Also on Google Scholar.
Refusal Steering with Sparse Autoencoders

When is a sparse autoencoder worth its cost over a single linear direction for detecting and steering refusal? Mostly it is not, except for category-selective control, and a well-parameterized linear method closes most of the gap on its own.
News
- Released a study of when sparse-autoencoder features are worth their cost over linear directions for refusal steering.
- Reproduced CRISP and found a flat line where the paper reports a 25-point drop.
- Built anchora, a Go workflow engine for running small DAGs of dependent agent calls as durable jobs.
- Started the MS in Computer Science at UMass Amherst.
Engineering
- cerberus, a monitoring plane for agents
A Go control plane that takes events from AI agents, runs pluggable guardrail checks over them in cost-ordered tiers, applies per-agent policy, and routes the ambiguous cases to human review. Every check reports measured precision and recall, enforced in CI.
- miniserve, a small vLLM written to understand the big one
An LLM inference server built from scratch in Python, with a paged KV cache and prefix caching, continuous batching with chunked prefill, and an SDPA attention backend that runs on Apple Metal. It benchmarks itself against static batching, so the scheduler's wins are measured rather than assumed.
- Fine-Tuning Qwen2.5 with LoRA and Unsloth
A small end-to-end fine-tuning pipeline for a 4-bit Qwen2.5 chat model, written to find out what each part of LoRA training actually does.
- anchora, a workflow engine for agents
A Go service that runs small DAGs of dependent agent calls, inline in the request or as durable jobs backed by PostgreSQL and Redis. Leases, fenced writes, and resume-from-progress mean a worker dying costs only the work actually lost.
Writing
- Reproducing CRISP: a flat line where the paper has a 25-point drop
- My Teeny Tiny Understanding of Diffusion Models
All posts, including course projects