Madelyn Mathai sitting on a rock outcrop above a mountain valley

Madelyn Mathai

PhD Student, Data Science · University of Virginia

I study what AI models learn internally. My research is in mechanistic interpretability for AI safety: understanding models' internal representations well enough to verify them, test them causally, and selectively remove them, across models of different modalities.

I've also brought these methods to AI weather and climate models, helping introduce them to the climate science community. Beyond my core research, I apply data science to civic and equity-focused work with nonprofits, and I want my technical work to inform AI policy.

I have worked on projects with Aikyam Lab, Mamalakis Lab, and Sloane Lab.

Before my PhD, I was a data analyst at Ubisoft and an investment analyst at Cambridge Associates.

  • Mechanistic interpretability
  • AI safety
  • Sparse autoencoders
  • AI for climate
  • AI policy

Research

Mechanistic Interpretability of Atmospheric Rivers in GraphCast

Jan – Aug 2026 · with Dr. Chirag Agarwal (Aikyam Lab) and Dr. Antonios Mamalakis (Mamalakis Lab)

AI weather models now rival operational forecasts, yet how they represent the atmosphere internally remains an open question. Feature attribution shows which inputs matter, not what the model computes. This work trains standard and Matryoshka sparse autoencoders (SAEs) on GraphCast, using atmospheric rivers as the phenomenon of focus, and finds that GraphCast computes atmospheric river intensity (integrated vapor transport) as a stable internal variable, even though it is neither an input nor a target. The Matryoshka SAE also orders concepts by importance and exposes their relations. These concepts persist across depth, and direct interventions confirm they are causal. The method identifies which internal variables a model actually relies on, a prerequisite for asking whether they remain meaningful as the climate warms.

Data Efficiency in Sparse Autoencoders

Jun – Aug 2026 · with Dr. Chirag Agarwal (Aikyam Lab)

Sparse autoencoders (SAEs) are typically trained on hundreds of millions to billions of activation tokens, but little work has tested whether that scale is necessary. This work trains four SAE architectures on three language models, with budgets from 5M tokens up to a 500M-token reference, and measures two kinds of convergence: functional behavior on standard evaluations, and one-to-one reproducibility of learned features. How much data an SAE needs depends strongly on the metric. Reconstruction often approaches the full-data reference at much smaller budgets, while feature reproducibility keeps improving with more data. For Gemma-2-2B BatchTopK, strictly matched features rise from 2% at 5M tokens to 29% at 50M. Data selection matters too: random sampling better preserves the activation distribution and generally favors reconstruction, while diversity-based sampling often improves AutoInterp. A theoretical analysis separates statistical consistency of subsampled training from the stronger conditions needed for one-to-one feature recovery. Together, the results show SAE training can be far more data-efficient when budgets match the goal and feature-level claims are backed by explicit reproducibility checks.

Publications

Mathai, M., Higgins, T. B., Grise, K. M., Agarwal, C., & Mamalakis, A. (2026). Mechanistic Interpretability of Atmospheric Rivers in GraphCast. NeurIPS 2026 Tackling Climate Change with Machine Learning Workshop. Spotlight arXiv · PDF
Ghosh, S., Mathai, M., Babu, R. V., & Agarwal, C. (2026). Diminishing Returns of Data in Sparse Autoencoders: Functional Behavior does not Guarantee Feature Reproducibility. Under review arXiv · PDF

Fellowships & Service

Standing Committee on AI in Teaching and Learning, UVA Provost's Office

2026 – present

The only student on a university-wide committee advising on AI policy, pedagogy, and responsible use in education.

Community Data Fellowship, University of Virginia

2025 – 2026

One of four graduate fellows who led a community-centered data science project with the Center for Community Partnerships. I partnered with The Fountain Fund, a nonprofit providing low-interest loans to formerly incarcerated people, on data analysis that supported their lending and advocacy.

Fox Research and Service Fellowship, University of Pennsylvania

2019 – 2020

Analyzed U.S. political outcomes using public opinion and election data with Penn Opinion Research Election Studies faculty.

Volunteer Data Associate, Correctional Association of New York

2023

Built a Python text extraction tool to pull text from images of death records in New York prisons.

Experience & Education