Nick Rui

I'm a math undergrad at Stanford and a researcher at SAIL. Previously, I built software at AWS and caught frogs working in outdoor swimming pool management and operations.

Email  /  LinkedIn  /  X  /  GitHub

profile photo

Research

I am broadly interested in data, reasoning, and interpretability.

Where's the Plan? Locating Latent Planning in Language Models with Lightweight Mechanistic Interventions
Nicole H. Ma, Nick Rui
Preprint, 2026

arXiv

We investigate where activation-level representations of future tokens form in open-source language models and whether it changes with scale.

Test-Time Meta-Adaptation with Self-Synthesis
Zeyneb N. Kaya, Nick Rui
ICLR Workshop on AI with Recursive Self-Improvement, 2026

arXiv

We introduce a bilevel optimization framework to train language models to self-adapt at inference time using reinforcement learning and meta-gradients.

Projects

Hackathons and side projects.

Vital Cue

Voice and AI-powered platform for patient care documentation. Built for EMS.
Acquired by First Due.

Power Lever

Agentic inference optimization with dynamic speculative decoding and GPU orchestration.
Winner at TreeHacks.

XiaoPrompt

Prompt distillation and translation API to optimize token efficiency.
Winner at HackMIT.

AgenTeX

Cursor for LaTeX.
Winner at AgentOps x Stanford Hackathon.

Math

Some notes and short expository writeups.

Topological and Spectral Connectivity in Random Graphs
Bertrand's Postulate
Derangements and Rubik's Cubes
Probabilistic Estimation of Prime Number Density

Template from Jon Barron.