Nathan Sankaran
Résumé

Nathan Sankaran

Data scientist and ML engineer. I build machine-learning systems and audit the data underneath them.

Read the findings Résumé (PDF) Email

Degree
MS in Data Science, University at Buffalo, December 2026
Looking for
Data science, ML and AI roles: remote, on-site or hybrid
Based in
Buffalo, New York; open to relocation
Start
February 2027, subject to work authorization
Latest
An LLM benchmark for SEC earnings releases. Finding 01

Findings

Five projects, written up like findings: the question, what I built, what the evidence says, and where it stops. Each one starts in plain language; the technical detail follows.

Finding 01Oct – Nov 2026LLM evaluation · Fine-tuning · Serving

Can an LLM read an earnings release without getting the numbers wrong?

Every quarter, companies announce their results in press releases, and pulling the key numbers out of them is routine work in finance. I tested whether AI models can do it without mistakes, checking every answer automatically against what the company officially files with the SEC. Then I trained a small open model that gets within two points of the best paid models at under half the cost of the cheapest one.

Under the hood

A pipeline links about 4,700 earnings releases from the S&P 500’s non-financial companies, filed 2023 to 2026, to the XBRL figures in each company’s matching 10-Q or 10-K, and a grader scores every revenue, net income and EPS figure a model extracts and labels each error. Across 9 models, open models mostly failed on units; asking for each figure as printed plus its unit, and converting in code, cut their errors 65%. A LoRA fine-tune of Qwen3-8B on 2,000 releases labelled from XBRL raised accuracy on 37 companies it never saw from 89.1% to 99.2% (+10.1 points, 95% interval +5.1 to +15.6), with the test protocol fixed before any test prediction. Served in FP8 with vLLM on one H100, it reads 6,143 releases an hour for $0.56 per 1,000, against $1.24 to $24.11 for the API models; on later releases from the training companies it still trails them by 1.8 to 2.0 points.

  • LLM evaluation
  • LoRA
  • vLLM
  • FP8 · AWQ
  • XBRL
  • Python
Read the write-up and code

Fig. 1

One release, two prompts

Apple · quarter ended March 29, 2025 · in millions, except per share

Open models: share of 293 figures correct

One A100 per run. Unit slips across open models: 355 → 34.

Show the numbers

Finding 02Oct – Nov 2026Data quality · Time series · Statistics

US grid forecasts looked like they were getting worse. Three errors in the public data explain it.

Every day, the organizations that run the US power grid forecast tomorrow’s electricity demand, and the federal Energy Information Administration (EIA) publishes those forecasts next to what actually happened. Taken at face value, the national numbers say forecasting is getting worse. I audited ten years of that data and traced the apparent decline to three errors in what was published. Once they’re fixed, the trend is flat.

Under the hood

6.1 million hourly records for 50+ operators from EIA’s hourly grid data (EIA-930), an analysis plan committed to Git before any results, and 138 automated tests.

Fig. 2

In 2025, 19 of 53 US grid operators lost to a naive forecast. Two only looked that way.

Each dot is one operator’s day-ahead demand forecast in EIA-930, the federal government’s hourly grid data, scored against a naive forecast that repeats demand from 24 hours earlier. Left of zero, the naive forecast wins.

19 of 53 lose to the
naive forecast

As published. California ISO and Southwest Power Pool both lose to the naive forecast. Press Corrected to apply the three data fixes explained below. Skill = 1 − (forecast error ÷ naive error) on the same hours. Two operators sit off the left edge: Puget Sound Energy (−5.32) and Duke Energy Florida (−2.75). Source: grid-forecast-audit, main run and “All corrections” variant.
Show the numbers

Fig. 3 · Step 1 of 5

National forecast error by year

Total absolute error ÷ total demand, 50 operators present every year

As published

The national number says forecasts got worse.

Across the 50 operators present every year, national forecast error creeps up by 0.061 percentage points a year (Mann–Kendall p = 0.049), and 2025 is the worst of the ten years.

But the typical operator shows no clear trend, and three of the five robustness checks I committed to in advance don’t confirm the rise. So, as the plan required, I checked the largest operators that lose to the naive forecast against their own published data. In both that could be checked, the published data had errors.

Error 1 and 2 · California ISO

California’s demand ran an hour late.

In EIA’s data, the California ISO’s forecast matches the operator’s own, but its demand runs an hour behind the operator’s records, so the forecast looks worse than it is. That holds on 333 of 334 days checked in 2025, and for about four of the ten years in all.

It also counts electricity used to charge grid batteries, which the forecast leaves out. In 2025 the gap between forecast and demand follows battery charging almost megawatt for megawatt (R² = 0.91).

Error 3 · Southwest Power Pool

Southwest Power Pool’s forecast changed in May 2025.

Before 7 May 2025, the forecast in EIA’s data for Southwest Power Pool matched SPP’s own day-ahead forecast (within 2% on 122 of 125 days). After that, the two were more than 2% apart on 219 of 238 days, while the demand figures still agreed. The jump in error comes from the published forecast, not from SPP’s forecasting. Why it changed isn’t visible in the files.

Corrected

With the three errors fixed, the trend is flat.

National error now moves just 0.009 points a year (p = 0.721, no detectable trend), and 2025 falls from the worst of the ten years to 8th-worst. California’s 2025 error drops from 8.28% to 2.35%.

Limits

Where the audit stops.

The corrections came after the pre-registered results, and only operators that looked bad were checked against their own data, which tilts the corrected trend down. The write-up says both, along with what is still open.

Read the write-up and code
Show the numbers behind Fig. 3
Hourly records audited
6.1M
Data errors, verified with operators’ records
3
Automated tests
138
Years of hourly data, 2016–2025
10
  • Python
  • pandas
  • Time series
  • Mann–Kendall
  • Theil–Sen
  • pytest
  • Pre-registration
Code & write-up

Finding 03Aug 2026Vision-language · Evaluation

Grounding DINO + SAM finds “the dog.” It mostly misses “not.”

Some AI tools can find and outline an object in a photo from a typed request like “the dog,” and they’re used to label data and edit images automatically. I tested whether they understand the small words that change the meaning: “the dog that is not on the sofa,” “the cup left of the plate,” “the red one.” With “not” and “left of” they mostly fail, and I pinned the failures to one part of the system.

Under the hood

I built a benchmark of 914 human-verified test prompts across 608 images from COCO, LVIS and Visual Genome, covering negation, spatial relations, attribute binding and fine-grained categories. Grounding DINO + SAM scored 20.7% on negation, below chance, against 93% on control prompts. On 51 left/right pairs it never got both right: it picks the same object whichever side is asked for. Given the correct boxes, SAM scored 99.6%, so every failure is in reading the text, not in drawing the outline.

  • PyTorch
  • Grounding DINO
  • SAM
  • COCO · LVIS · Visual Genome
  • CUDA
  • pytest
Code

Fig. 4

Grounding DINO + SAM, share of probes answered correctly

93%

Control prompts

20.7%

Negation prompts

0 of 51 paired spatial queries right

SAM given ground-truth boxes

99.6%

Each square is 1% of probes. The failures are in matching text to the image, not in drawing the mask.

Finding 04Feb–Nov 2026MLOps · Experiment

Drift alarms didn’t beat a schedule. On $4.2B of real loans, quarterly retraining matched monthly with 69% fewer retrains.

A model that was accurate at launch can slowly go wrong as the world it sees changes. The usual advice is to watch for that change and retrain when it shows up. I tested whether that beats simply retraining on a schedule, on 36 months of Lending Club loans replayed month by month, with each loan’s outcome arriving 1, 3 or 6 months late, the way real labels do. Retraining paid: a lender turning down its riskiest 10% of loan dollars would have declined $8–14M more in loans that later defaulted. What triggered the retraining barely mattered.

Under the hood

Eight policies, five seeds, three label delays. Against never retraining, retraining declined $8–14M more in loans that later defaulted over $4.2B of applications, and approved about as much more in loans that were repaid. A quarterly schedule kept 98–102% of monthly retraining’s gain (within 0.001 PR-AUC) with 69% fewer retrains (11 vs 35). Drift-triggered retraining needed about 60% more retrains than quarterly for the same result, because KS and domain-classifier tests alarmed in 35–36 of 36 months; PSI ≥ 0.1 stayed quiet and left $2.7–3.2M on the table. In a benchmark with injected drift (10 seeds), those input-only tests did no better than chance on concept drift, while a label-based calibration test caught every case, one label delay late, and 89–97% of its alarms preceded real degradation. The rules plug into an MLOps pipeline I built: FastAPI serving with every prediction logged to PostgreSQL, Evidently drift checks on those logged predictions, retraining run by Airflow and tracked in MLflow, a promotion gate on held-out data (it rejected 13–14 of 35 monthly candidates in the replay) and one-step rollback. Rechecking that pipeline, I found and fixed a train/test overlap that had inflated an earlier reported gain.

  • XGBoost
  • SciPy
  • FastAPI
  • PostgreSQL
  • Evidently
  • Airflow
  • MLflow
  • Prometheus
  • Grafana
  • Docker
Code

Fig. 5

The retraining loop

  1. 1ServeXGBoost behind FastAPI
  2. 2LogEvery prediction to PostgreSQL
  3. 3WatchEvidently drift checks on the logged predictions
  4. 4RetrainAirflow runs it, MLflow tracks it
  5. 5GateMust beat the current model on held-out new data, ≤ 0.03 ROC-AUC lost on held-out older data
  6. 6ShipThe new model takes over; one step rolls it back

Lending Club, 3-month label delay · 36 months, $4.2B of applications

Monthly schedule

35 · $8.1M

Drift-triggered

18 · $7.9M

Quarterly schedule

11 · $7.9M

Never retrain

0 · –

Finding 05Dec 2025Computer vision · Medical imaging · Team of 2

Spotting lung CT scans that AI has tampered with.

AI can now edit medical scans, adding a lung tumor that isn’t there or erasing one that is, which could change a diagnosis. As a team of two, we trained models to flag the parts of a lung CT scan that have been altered.

Under the hood

PyTorch models trained on a public dataset of 100 lung CT scans with 169 labeled locations, where a GAN had injected or removed tumors. Our 3D-to-2D compressor condenses 16 CT slices into one image for an ImageNet-pretrained ResNet-18, and it ranked first of five designs (by best and average validation AUC) on 39 patches from scans held out of training. With no separate test set, that shows a learnable signal, not a finished detector, and the repository says so.

  • PyTorch
  • ResNet-18
  • 3D CNN
  • DICOM · pydicom
  • Transfer learning
Code

Fig. 6

16 slices in, one image out

Peak validation AUC by design

Best of 15 epochs, 39 patches from held-out scans. 0.5 is a coin flip.

Show the numbers

Experience

Six months shipping document-AI services to production at Zolvit.

  1. Feb – Aug 2024

    Machine Learning Engineer Intern

    Zolvit (formerly Vakilsearch) · Chennai, India

    • Eliminated ~23 hours of weekly manual data entry with an automated ingestion pipeline for 350+ complex documents, combining Google Vision OCR with a fine-tuned T5-large model.
    • Drove 99.9% service uptime by deploying Dockerized ML microservices on AWS EC2 with FastAPI, restart policies and Grafana monitoring.
    • Automated routing of customer-uploaded documents at 92% classification accuracy, benchmarking Logistic Regression, SVM and XGBoost on TF-IDF and Doc2Vec features.
    • Improved legal precedent retrieval precision by ~28% with a hybrid search engine combining Elasticsearch keyword search and Pinecone vector embeddings across 10,000+ documents.
    • Handled incident response and debugging for production ML systems, and hardened legacy pipelines.

Education

An MS in Data Science at the University at Buffalo, after a B.Tech in AI and ML at VIT.

  1. Aug 2025 – Dec 2026

    MS, Engineering Science (Data Science)

    University at Buffalo · GPA 3.82

    Statistical Learning I & II · Machine Learning · Probability Theory · Database Data Science · Data Models & Query Languages · Numerical Methods

  2. Aug 2019 – Jul 2023

    B.Tech, Computer Science and Engineering (AI & ML)

    Vellore Institute of Technology

    Machine Learning · Deep Learning · Reinforcement Learning · Computer Vision · Applied Linear Algebra · Statistics · Data Structures & Algorithms · DBMS

Skills, and where I used them

What I use at each step of taking a model from raw data to production. The numbers are the findings where I used them.

  1. Data

    Get it, check it

    • Python
    • SQL, PostgreSQL
    • pandas
    • Statistical testing
    • Time series
    • Matplotlib

    Used in 01, 02, 04

  2. Models

    Train and test

    • PyTorch
    • XGBoost
    • Computer vision
    • Vision-language models
    • NLP, OCR, T5
    • DICOM, medical imaging

    Used in 01, 03, 04, 05, Zolvit

  3. LLMs

    Evaluate and fine-tune

    • LLM evaluation
    • Fine-tuning: LoRA, PEFT
    • RAG, embeddings, search

    Used in 01, Zolvit

  4. Serving

    Ship it

    • vLLM
    • Quantization: FP8, AWQ
    • FastAPI
    • Docker
    • Kubernetes
    • AWS

    Used in 01, 04, Zolvit

  5. Operations

    Keep it working

    • Airflow
    • MLflow
    • Evidently, Prometheus, Grafana
    • pytest
    • Git, GitHub

    Used in 01–05, Zolvit

Also work with

C / C++ · R · NumPy · scikit-learn · Hugging Face · TensorFlow · LangChain · LangGraph · Spark · MySQL · Tableau · Power BI · Linux · CUDA

About

Nathan Sankaran
Nathan Sankaran

I’m happiest when a result looks too good, or too bad, to be true, and I get to find out why.

I’m a Master’s student in Data Science at the University at Buffalo. Before that I spent six months as a machine learning engineer intern at Zolvit, shipping document-AI services to production, and four years studying computer science with a focus on AI and ML at VIT.

Curiosity drives most of what I do: how a system works, why people decide the way they do, and ideas from philosophy, psychology and rationality. I used to be a competitive gamer, which taught me to stay composed and keep improving through practice, and I’m a speedcuber, which explains the love of patterns.

Based in
Buffalo, NY
Graduating
December 2026
Open to
Data science, ML and AI engineering roles
Off the clock
Speedcubing · games · reading

Recognition

Have data you don’t quite trust? Let’s talk.

I’m open to data science, ML and AI engineering roles. Email is the fastest way to reach me.

Index

  1. 01Findings
  2. 02Experience
  3. 03Education
  4. 04Skills
  5. 05About
  6. 06Contact