Haoran Zhang

Software Engineer · LLM Systems & AI Infrastructure

I build LLM systems across the stack: the infrastructure they run on, the evaluation that measures them, and the products people use.

Recently: cluster scheduling and GPU serving, benchmarks for multimodal LLMs, and LLM pipelines and RAG apps over biomedical literature.

M.S. Yale · B.S. Computer Science, University of Washington - Seattle

Portrait of Haoran Zhang

Latest Work

FleetLab

v0.4.0 · Open Source

Accelerator cluster scheduling simulator and control plane

A deterministic discrete-event simulator for accelerator cluster scheduling: gang placement on a TPU-style 3D torus with priority preemption, quotas, and node failures. The same planner runs inside a gRPC controller/agent runtime that detects failures by heartbeat timeout and reassigns jobs under epoch fencing.

Result
Best-fit packing cut p99 queue delay 15% vs. first-fit and 9× vs. random placement on 1,000 nodes. The ordering held on all 3 workload seeds.
Correctness
Invariants are checked after every event across a 10,000-seed randomized sweep. A guard fails the sweep unless placement, preemption, and failure eviction all occur. 381 tests pass under ASan/UBSan.
Control plane
One controller and 20 agent processes over gRPC, with heartbeat failure detection, epoch-fenced reassignment, and operation-ID dedup. A fault test delays a live agent's heartbeats and asserts 8 recovery events in order.
Known limits
The preempting policy does not finish within 180 s under contention, because its planner re-runs the placement search for every candidate victim. Topology-heavy runs top out near 1,000 nodes. All workloads are synthetic.
FleetLab split-brain recovery demo: a terminal log of the eight-event chain — a live agent's heartbeats are delayed, it is falsely suspected, its task is reassigned under a higher epoch, and the returning agent is fenced by its stale epoch

C++20 · gRPC · CMake · Docker Compose · FastAPI · Next.js

Work Experience

Org:
Yale School of Medicine
Role:
Applied AI Engineer
Type:
Research
Period:
2025.06–2026.02
Location:
New Haven, CT
Accepted:
npj Emerging Contaminants '26

Applied AI Engineer — NIH-Funded PFAS Water Project

Accepted

Three-stage LLM pipeline that narrowed 18.7M PubMed records to 1,044 PFAS water-contamination studies and extracted 10,996 entities across 8 types. I co-designed the pipeline, owned prompt engineering and evaluation, and built the public geographic evidence map.

  • Funnel: 18.7M records → regex prefilter → 7,726 candidates → GPT-5.2 screening → 1,425 abstracts → JSON extraction → 1,044 studies, 10,996 entities. The prefilter cut LLM calls ~2,400x, so a screening pass cost ~$50.
  • Evaluation: iterated prompts on a 50-abstract dev set with two domain annotators, then scored once on human-reviewed held-out sets: screening F1 0.95 (P 0.93 / R 0.98, n=200); extraction macro-F1 0.87 exact / 0.92 relaxed (n=100). Most extraction errors were span boundaries, not missed entities.
  • Baselines and model choice: with only 50 labeled abstracts, zero-shot GPT-5.2 beat the best of 12 fine-tuned encoder configs (BERT / BiomedBERT / PubMedBERT × full fine-tuning, LoRA, adapters; 5 seeds) by 0.10 F1 (0.85 vs 0.75). Chosen over Claude Opus 4.5 and Sonnet 4.5 on comparable screening quality and lower list price.
  • Geographic evidence map: Google Maps geocoding onto a Leaflet/OpenStreetMap frontend with chemical/year filters, citation-weighted markers, and entity-highlighted abstract popups. Also integrated the corpus into MedViz, another Yale group’s semantic map, so its LLM assistant can answer over user-selected clusters.
  • Negative result: UMLS concept normalization (BM25 retrieval + LLM reranking) reached only 47.5% exact matches on 550 reviewed mappings, so we used expert-defined categories with synonym lists instead.

LLM-Assisted Evidence Synthesis: A Case Study on Forever Chemicals — accepted, npj Emerging Contaminants, 2026. Supported by NIH grants R24ES036135 and P42ES033815.

LLM extractionPrompt engineeringNERFine-tuning (LoRA)Human-in-the-loop evalGeospatial visualization
Org:
JICHUANG Technology Co., Ltd.
Role:
Data Scientist Intern
Type:
Industry
Period:
2023.06–2023.09
Location:
Taiyuan, China

Data Scientist Intern

Built, shipped and A/B-tested a multi-stage course recommender for an online education platform (~17K pilot students, ~11K items).

  • Redefined ground truth after finding 57% of interactions were teacher-assigned, reversing a “popularity beats CF” result; data and signal fixes drove 60% of the offline gain.
  • Built a multi-stage hybrid recommender (ALS + text-embedding + popularity retrieval, fusion, rule re-ranking) with cold-start fallbacks; offline Precision@5 +21% vs. production CF on leakage-guarded time-split evaluation.
  • Shipped a daily batch pipeline to Redis with versioned rollback and monitoring; specified impression logging that enabled the first CTR and position-bias measurements.
  • Led the 2-week readout of a 50/50 A/B test (11K users): effective CTR (click + 60s study) +17%, settling to +12% at 6 weeks, with no significant drop in task completion.
RecSysA/B testingALSEmbeddingsXGBoostRedisPython
Org:
Yale University
Role:
Research Engineer, LLM Evaluation
Type:
Research
Period:
2024.12–2025.06
Location:
New Haven, CT
Published:
ACM Trans. Computing for Healthcare '26

Research Engineer, LLM Evaluation — LMOD+ Benchmark

Published

A 32,633-instance multimodal ophthalmology benchmark evaluating 24 MLLMs (GPT-4o, InternVL, Qwen, LLaVA, DeepSeek) across 4 task families. I built the unified PyTorch evaluation harness and extended the curation pipeline across 10 public datasets, a ~50% expansion. Even the best models barely beat chance, while supervised baselines on the same data reached 83–98%.

  • Unified evaluation harness: one interface across 24 models (open-weight + GPT-4o via API), fixed prompts and output parsers, each model’s native preprocessing and default decoding, class-balanced evaluation subsets with known chance levels, 3-seed stability sweeps.
  • Curation pipeline: 10 public datasets with heterogeneous annotations (masks, boxes, ordinal stages, metadata) → one benchmark, 5 imaging modalities, 12 conditions; auto-generated prompt–response pairs; 1,000-instance fast subset + live leaderboard.
  • Prompting study (zero-shot / 3-shot / CoT / self-consistency) on InternVL-1.5-2B: CoT raised recall 0.109 → 0.237 but collapsed hallucination resistance 1.0 → 0.02 by citing regions that don’t exist; 3-shot gave the best F1 (0.235).
  • Error analysis: 5-category taxonomy over 100 sampled failures (GPT-4o-as-judge + manual review): 50% traced to misread visual features, only 6% to missing medical knowledge.

LMOD+: A Comprehensive Multimodal Dataset and Benchmark for Developing and Evaluating Multimodal Large Language Models in Ophthalmology — ACM Transactions on Computing for Healthcare, 2026 (arXiv:2509.25620). Extends LMOD, Findings of NAACL 2025.

MLLM benchmarkingPyTorchLLM-as-judgeDataset curation
Org:
University of Washington
Role:
ML Research Assistant
Type:
Research
Period:
2023.01–2023.12
Location:
Seattle, WA

ML Research Assistant — Edge Vision MoE

A mixture-of-experts design for compact vision transformers that replaces softmax routing with parallel input-dependent sigmoid gates — keeping a static execution graph with deterministic latency on edge accelerators (ANE, Edge TPU) — and lifts iNat'21 fine-grained accuracy +8.9 points at ~2% FLOPs overhead.

  • Mechanism: 1×1-conv bottleneck adapter experts wrap the final two backbone stages of MobileViT / EfficientFormer; each expert weighted by an independent sigmoid gate computed from globally average-pooled features. All experts run in parallel — no dynamic routing, full gradient flow, deterministic latency.
  • Results: EfficientFormer-S0 +8.9 on iNat'21 (61.5 → 70.4) at 0.413B → 0.422B FLOPs; +4.8 on RareSpecies; MobileViT-0.5 +4.9 on iNat'21 at slightly fewer FLOPs. Consistent gains across iNat'21, iWildCam, RareSpecies, SSW60.
  • Training: entropy-regularized gating loss prevents expert collapse; two-stage protocol (dense HP search on a 10% subset → joint gate+expert optimization) with Optuna sweeps (4 experts, C/16 adapter dim, entropy weight 0.02), layer-wise gradient scaling, fixed-seed reproducibility.
Efficient MLMoEEdge inference

Projects

VibeCourt — Justice Ruby's Relationship Court: a storybook relationship casebook for archives, agreements, and guided reflection
Status:
v1.0.0 · Open Source
Stack:
Next.js · TypeScript · Tailwind CSS · Dexie / IndexedDB · Provider-agnostic AI (OpenAI-compatible)
Type:
4-stage pipeline · Local-first

VibeCourt

v1.0.0 · Open Source

AI mediation platform · 4-stage pipeline · Local-first, privacy-preserving

An AI-guided mediation platform that interviews each side privately, transforms unstructured narratives into structured case intelligence, and produces a transparent resolution brief — including uncertainty-aware responsibility analysis. All data stays in the browser; no accounts, no server database.

  • Built a 4-stage LLM pipeline — adaptive interviewing, structured extraction, statement generation, and comparative ruling — with outputs validated in code, not prompts: 35 runtime rules across 5 per-stage validators reject bad output before acceptance.
  • Enforced no-fallback semantics for AI calls: a failed call stays pending for explicit retry and is never silently replaced by local imitation.
  • Kept 100% of case data client-side across 13 typed IndexedDB tables — no accounts, no server database — verified by 784 test cases that run fully network-disabled.
Status:
Open Source · Personal project
Stack:
Python · LangChain · Llama 3.1 8B · ChromaDB · Redis · Django · React
Type:
Retrieval-augmented assistant · Reproducible evaluation harness

FitNutri AI

Open Source

Local RAG over biomedical literature · Deterministic nutrition lookups · Frozen-baseline ablation

A retrieval-augmented nutrition assistant over 5,907 PubMed abstracts and a pinned USDA FoodData Central snapshot, running entirely on one 6 GB laptop GPU. Two answer paths: literature questions go through retrieval and generation, while nutrient lookups resolve to a SQL query against the snapshot. Built around a frozen baseline and a nine-arm ablation.

  • The model never produces a nutrient value — it extracts two strings and SQL does the rest, which is why the deterministic path scores 88.3% (106/120) on a held-out split with 0 out-of-tolerance values and 0 unit errors. Every failure is food-name resolution.
  • Froze the baseline's inputs, not just its function: a digest covering the prompt, model tag, top_k, and the PubMed query that decides what is in the index at all. A test fails on any drift, checked before and after each of nine arms.
  • Reported a negative result: the improved pipeline (rewrite → hybrid → rerank) measured worse than the frozen baseline it was built to beat — 0.5823 vs 0.7983 across 39 human-reviewed questions. A judge-free measurement found the cause: arms containing the reranker retrieve the known-relevant abstract in 29–30 of 36 questions, arms without it in 34. The demo ships the baseline's retrieval.

WhisperNote Agent

A privacy-first tool that converts local audio and video into timestamped transcripts, summaries, and structured analysis notes.

GPU-accelerated transcription with automatic CUDA-to-CPU fallback · modular AI provider layer (local / manual / API) · reproducible sessions with speaker segments, timestamps, metadata

Stack: Python · faster-whisper · CTranslate2 · Typer · OpenAI SDK · CUDAStatus: Personal project

Contact

Open to Software, AI/ML, and Infrastructure Roles — 2026

Yale M.S. · building AI products independently · open to full-time roles. Reach me by email.