ls ~/work

Work

Nearly everything I do circles back to decision-making under uncertainty: quantitative trading and markets, Bayesian modeling, and getting language models to know what they don't know. Consider this a running index of all of it – the research, the work, and the side projects alike.

29 entries
LLM Faithfulness

Ask Before You Summarize: NLI-Guided Clarification

[Feb 2026 – Present]

BAIR research on language models that stay fluent when they shouldn't. Sample summaries, build a probability-weighted NLI entailment graph to localize the unstable proposition, and ask one targeted question when calibrated uncertainty crosses threshold. Pending submission to ACL Rolling Review.

NLP · NLI · LLMs
Quantitative Research

Bayesian Calibration of Stochastic Volatility Models

[May 2026]

Graduate Bayesian statistics project benchmarking KSC Gibbs, NUTS, and flowMC samplers: mixing, efficiency, and posterior calibration across classical MCMC and normalizing flows.

MCMC · NUTS · flowMC code
Computational Neuroscience

GRU Models of Human Visuomotor Adaptation

[Feb 2025 – May 2025]

In Rich Ivry's Cognition and Action Lab: recurrent networks learning to reach for targets under rotated and mirror-reversed visual feedback. Built custom Gym environments with configurable perturbation dynamics and probed the GRUs' latent dynamics against human adaptation curves.

PyTorch · GRUs · Gym
LLM Inference

Speculative Decoding in a Custom vLLM Fork

[Feb 2024 – May 2024]

At MyMagic AI: a 7B draft model proposing tokens for a 70B verifier inside a custom vLLM fork. 2.6× speedup, 35 to 90 tok/s at a 78% draft acceptance rate, output equivalent to greedy decoding.

vLLM · PyTorch · LLMs
Teaching

Head TA, EE 156 @ UC Berkeley

[Jan 2026 – Present]

Head TA for Business and Finance for Engineers; helped shape it from the EE 194 pilot into a permanent course. Wrote most problem sets, including the derivatives, options, and personal finance ones, built the PrairieLearn and PrairieTest infrastructure and grade report generation, and wrote a reusable LaTeX package so the course outlives me, plus speakers from Sequoia and the finance world.

Finance · PrairieLearn · LaTeX
LegalTech

Machine Learning Engineer @ Texas Title

[May 2025 – Present]

Sole contract engineer on a document intelligence platform for title insurance: DocumentAI OCR, NER-guided correction, human-in-the-loop validation, and a RAG layer drafting commitments at over 90% field-level accuracy. Cut examiner effort 96%; piloted by 20+ examiners across three insurers. Nothing too glamorous, but it's honest work.

RAG · DocumentAI · NER
Sports Analytics

Founding Engineer @ Tail

[Apr 2024 – Apr 2025]

Founding engineer on a sports prediction startup. Built a TensorFlow ensemble of XGBoost and neural nets with 23 engineered features for NFL over/unders: 64% accuracy and 4.2% ROI across 400+ games, with Monte Carlo backtesting over 10k+ scenarios and Kelly sizing to separate real edge from variance. Accepted to Y Combinator's X25 batch, but the founding team went separate ways.

TensorFlow · XGBoost · Monte Carlo
Quant Finance

Quantitative Analyst Intern @ Expat Capital

[Summer 2023]

A kid who'd just learned what an LSTM was, with a good mentor. It backtested around 5% annualized excess returns and got used by half a dozen analysts making real allocation calls. The unglamorous part I'm proudest of: a pipeline parsing 1,000+ semi-structured statements into 50+ IFRS-aligned features.

LSTM · Forecasting · IFRS
Algorithmic Trading

IMC Prosperity 4

[Apr 2026]

Top 1% globally in IMC's trading competition. Found a basket-sum invariant and cross-product lead-lag, priced options with Black-Scholes, and gamed the manual rounds by mining competitor Discord chatter into a Gaussian mixture over the field's likely picks.

Algo Trading · Options · Game Theory
Agentic Trading

Natural-Language Trading Terminal & Voice Agent

[Mar 2026]

Plain-English trading for Hyperliquid perps, built for the Trading Track at BaB Hacks 2026. You say or type an order and it parses your intent, checks the live market, places the trade, and logs your thesis, then calls you out when you start contradicting yourself. Best of all is Jim, the voice agent who runs the whole thing by phone and rings you when a position drifts toward liquidation.

Claude · Liquid SDK · ElevenLabs live code
Loop Engineering

This Portfolio

[Jun 2026]

Mostly built on vibes.

Web · Vanilla JS · No Build
CS 288

n-gram Language Models and Neural Networks

Implemented n-gram language models with smoothing alongside a feed-forward neural language model, comparing count-based and neural next-token prediction.

NLP · Language Models · PyTorch spec
CS 180

NeRF Reconstruction

Implemented a Neural Radiance Field from scratch: an MLP learning density and color for 360° view synthesis.

Deep Learning · PyTorch · NeRF write-up
CS 180

The Power of Generative Models

Built diffusion sampling, CFG editing, inpainting, and illusions, then trained a UNet via flow matching on MNIST.

Deep Learning · Diffusion · UNet write-up
CS 180

Auto-Stitching Mosaics

Built a panorama pipeline: feature detection, descriptor matching, RANSAC homographies, and multi-band blending.

Computer Vision · RANSAC write-up
CS 180

Filters & Frequencies in Images

Treated images as functions: filtering, sharpening, hybrid images, and frequency-based blending.

Computer Vision · FFT write-up
CS 180

Images of the Russian Empire

Digitally reconstructed and color-corrected glass plate photographs from the Prokudin-Gorskii collection.

Computer Vision · Alignment write-up
CS 180

Perspectives & The Dolly Zoom

Exploring how focal length, perspective, and camera position shape images.

Computer Vision · Optics write-up
CS 188

End-to-End Neural Network Design

Built neural nets and attention in PyTorch: digit classification, language identification, GPT-style generation.

Deep Learning · PyTorch · Attention
CS 188

Ghostbusters Inference

Built exact and particle-filter inference tracking hidden ghosts with Bayes nets and HMM time-elapse models.

Probabilistic AI · Bayes Nets · HMM
CS 188

RL Pac-Man

Implemented Q-learning and policy gradient methods to train Pac-Man agents.

Reinforcement Learning · Q-Learning
CS 188

Multi-Agent Pac-Man

Implemented Minimax, Alpha-Beta pruning, and Expectimax agents for Pac-Man with stochastic ghost models.

Adversarial Search · Minimax
CS 188

Pac-Man Agents

Built DFS, BFS, UCS and A* search agents with custom heuristics to guide Pac-Man through mazes efficiently.

Graph Search · A*
CS 61C

RISC-V CPU (Logisim)

Built a fully functional RISC-V CPU supporting all 7 instruction types; verified with custom test benches.

Architecture · Logisim · RISC-V spec
CS 61C

RISC-V MNIST Handwritten Digit Classifier

Feedforward neural net with matrix multiply, ReLU, argmax in RISC-V.

ML Systems · RISC-V spec
CS 61C

Convolutions for Video Processing

Implemented 2D convolutions, then accelerated with AVX2 SIMD, OpenMP threading, and an Open MPI coordinator.

Parallel · AVX2 · OpenMP · MPI spec
CS 61C

The Snake Game in C

Built a playable Snake engine in C. Managed game state, rendering, and user input on a terminal interface.

Systems · C spec
CS 288

Build Your Own Language Model

Built a Transformer language model end to end - self-attention, the training loop, and sampling-based decoding.

NLP · Transformers · PyTorch spec
CS 288

Hybrid RAG for Domain-Specific Factoid QA

Built a RAG system answering factoid questions about Berkeley EECS: an 18,706-chunk crawl of eecs.berkeley.edu, dense FAISS and sparse BM25 retrieval fused with reciprocal rank fusion, and few-shot Llama 3.1 8B generation, reaching 61.76% F1 on the held-out test set.

RAG · FAISS · BM25 write-up spec

§Coursework

EECS

  • EECS 16A/BDesigning Information Systems
  • CS 61AIntro to Computer Programs
  • CS 61BData Structures & Algorithms
  • CS 61CGreat Ideas in Computer Architecture
  • CS 70Discrete Mathematics & Probability
  • EECS 120Signals & Systems
  • EECS 126Probability and Random Processes
  • EECS 127Optimization Models in Engineering
  • EE 194-100Business & Finance for Engineers

Statistics & AI

  • STAT 20Intro to Statistics
  • DATA C100Principles of Data Science
  • STAT 153Time Series Analysis
  • CS 180Intro to Computer Vision
  • CS C182Designing, Visualizing and Understanding Deep Neural Networks
  • CS 188Intro to Artificial Intelligence
  • CS 189Intro to Machine Learning
  • CS 288Advanced Natural Language Processing

Economics

  • ECON 1Intro to Micro/Macro
  • ECON 101A/BQuantitative Micro/Macro Theory
  • ECON C103Mathematical Economics
  • ECON C110Introduction to Game Theory
  • ECON 138Financial & Behavioral Economics
  • ECON 139Advanced Financial Economics
  • ECON 140Econometrics
  • ECON N171Econometric Analysis of Economic Development