YanboCheng.

I study language models, visual representations, and how they support prediction and planning.

MASc student · Systems Design Engineering · University of Waterloo

Seeking ML research internships and research engineering opportunities.

Dynamical systemsLorenz
Why attractors?

A different perspective.

Some of my favourite ideas in mathematics come from looking at a familiar problem differently. Fourier analysis expresses a complicated signal as a sum of sine waves, complex exponentials turn rotations into multiplication, and dual spaces turn our attention from vectors to the linear functions acting on them.

I see dynamical systems as another perspective on neural networks. That interest also led to my Reservoir Computing + SINDy project.

01 / Language models

Language models

Interactive technical essays

Attention, transformers, and beyond.

Essays on the foundations of attention and transformers, their extensions, and the miscellaneous topics surrounding them: hardware, training, inference, and the practice of working with models.

I started writing these because other explanations often gave me a formula before I understood why it was needed. I want each part to be motivated, then worked through with concrete examples and diagrams.

Begin with Foundations
A golden retriever chases a tabby; in the next scene, the tabby chases the dog.
02 / Selected research

Research projects

I designed and built each of these projects. Reused methods and baselines are credited in the project notes.

01Research pipeline

Honorable MentionGoogle’s All Things Agentic HackathonOne of 16 prize-winning projects · 10,000+ participantsUS$2,000 cash + US$500 in Google Cloud creditsSolo project. Award ↗ · Event ↗

CURI

CURI: from a research question to a checked finding A proposed study passes an admission gate before execution. Rejected proposals return for revision. The experiment is independently checked, then interpreted. Interpretation informs the next question, and every verdict stays in the research record. reviseadmitnext question Research questionCompeting explanations Run experimentCollect evidence Independent checkRerun decisive tests Interpret resultWhat does it establish? Admit? Research record

Supported, bounded, refuted, or inconclusive—every verdict stays.

Fig. 04CURI’s research loop. Each result returns to interpretation before another experiment begins.

A better benchmark score is not much use if I cannot explain why it improved. CURI runs experiments around competing explanations and keeps the evidence, including failed tests.

What I built
I built the research runtime and its execution, verification, record-keeping, and cost-tracking tools. The runtime separates running an experiment from deciding what its result supports.
Results
At half the cache budget, cumulative-attention retention scored 0% needle retrieval, matching random eviction in a three-sample test. The same run found speculative decoding slower despite 38–54% acceptance. These are bounded reproductions of known results; the case study shows the measurements.
Run report and limits of the findings ↗
Inside the research loop

A loop that changes code until a benchmark improves can be useful engineering. I wanted to explore a different loop: ask what is happening, consider competing explanations, and design a check that can tell them apart.

How the system works

A watcher reads and admits relevant sources. An orchestrator chooses a question and proposes an experiment. A gate rejects proposals that have no connection to prior evidence or repeat an earlier study. An executor implements the admitted experiment in its own Git worktree, and the runtime independently reruns the decisive checks.

The result returns to the orchestrator for interpretation. Findings accumulate in a persistent record, and later evidence can revise a synthesis. If there is nothing worth investigating, the system can pause. A higher score is not required for an experiment to leave a useful result.

A concrete example

The attention direction investigated KV-cache eviction, quantization, and speculative decoding. One study found that a draft model could make decoding slower even with a reasonable token acceptance rate. Another refuted the run’s own hypothesis about cumulative attention as a way to retain information needed by later questions.

These were bounded reproductions and engineering studies. The attention experiments used 0.5B–1.5B models at context lengths up to 4,096 on one RTX 3060 Ti. They do not establish new general laws about frontier models.

The part I wanted to make inspectable

The question, the proposed falsifier, the code, the checks, and the interpretation should stay connected. CURI keeps that record, accounts for model-call costs, and publishes a redacted, read-only mirror. The contribution I am exploring is the research process; whether it can produce findings beyond the existing literature remains an open question.

Run report ↗ · Implementation and postmortem ↗ · Research record ↗

Read the complete CURI case study Repository ↗Published research record ↗
02Ongoing research

Long Horizon Planning for UAV Navigation

Captured starting view from the UAV simulator: an aerial view along a city street.Start
Goal imageThe captured goal view for the same city navigation task.
Fig. 01Captured start and goal images from the simulator task setup.

A drone given only a goal image must work out where it is and how to get there. I’m studying how memory of earlier observations can help it choose a route.

What I built
I built the simulator task, training code, and evaluation pipeline, and reproduced a released navigation baseline. My current study asks how the model should retain and use its earlier observations.
Results
An earlier eight-step predictor had 14.57% lower feature error than copying the current observation, across 688 overlapping validation windows. In a separate longer-goal PPO experiment, the policy reached the goal in 0 of 24 training flights. Reliable navigation remains the research objective.
Evaluation conditions (research repository, currently private) ↗
Read the research note

A goal image tells the drone where it should arrive. Its current view says where it is looking now. Neither tells it what it has already seen, which directions it has tried, or where an earlier turn led.

The research explores how memory of previous observations can condition navigation. The question is how that history can support decisions over longer routes.

A recorded simulator reference flight compared with its waypoints in a top-down plot, with altitude over time below. The route travels 152.2 metres in 102.6 seconds.
Recorded positions from an earlier flight in AerialVLN training scene 5, using a privileged waypoint follower. This is a different task from the start/goal pair above; it shows the flight infrastructure, not a result from the current memory model.

Earlier prediction experiments

The earlier model used a frozen visual encoder and an action-conditioned transformer to predict future features. These experiments preceded the current focus on memory.

What has been measured

The earlier study reproduced released-checkpoint offline UA-NWM evaluation on all 1,000 AirGoal test cases, separately from its experimental architecture. An eight-step feature-prediction run reached mean validation MSE 0.0350100, against 0.0409792 for copying the current features, on 688 overlapping validation windows.

That is a 14.57% lower aggregate feature error in this setting. It is not a navigation success rate. Early horizons and vertical-only predictions still trailed persistence, and the recorded longer-goal PPO arm had zero successes in 24 training flights under its strict arrival criterion.

Why this distinction matters

A lower average feature error can coexist with poor decisions. The current focus is what the model retains from earlier observations, and how that memory conditions its next action. Comparing navigation outcomes will matter more than the prediction loss alone.

Measured results and conditions — research repository, currently private ↗

Earlier public navigation work ↗

Earlier navigation work ↗
033D object detection

DifficultyPainting

DifficultyPainting’s reported road-scene example, with object boxes coloured by predicted detection difficulty.
Fig. 02Predicted detection difficulty in a KITTI scene. Original project visualization.

Point painting attaches information from a 2D image to a 3D point cloud. I used this method to give a LiDAR detector an estimate of how difficult each object is to recognize.

What I built
I built the difficulty-prediction model and camera-to-LiDAR projection, then adapted PointPillars and SECOND to use the estimate during training and prediction.
Results

Largest improvement: pedestrian detection

Pedestrian 3D AP · KITTI validation · moderate · IoU 0.5 · 80 epochs

PointPillars +8.78 AP points
Semantic baseline · no entropy58.13
Semantic baseline + entropy59.56
DifficultyPainting68.34
SECOND +5.81 AP points
Semantic baseline · no entropy67.90
Semantic baseline + entropy67.19
DifficultyPainting73.71

Across all three classes, mean AP rises to 80.03 for PointPillars (+3.51) and 82.51 for SECOND (+2.34). Cyclist AP also improves; car AP falls slightly.

Gains are measured against each backbone’s stronger prior run in UncertaintyPainting. Both earlier variants are shown. Input features and database sampling differ in the published configs, so these gains compare complete runs and do not isolate the difficulty signal. Baseline runs ↗ · DifficultyPainting runs ↗
DifficultyPainting scores and method ↗
Inspect the experiment

Point painting transfers information from a 2D image into a 3D point cloud. Using the camera calibration, we project each LiDAR point into the image and attach the features at that pixel to the point. A 3D detector can then use image information alongside the point’s spatial coordinates.

DifficultyPainting applies this idea to detection difficulty. A distant, partly occluded object may be difficult to recognise even when its location is known; the image helps estimate that difficulty before the estimate is painted onto the points.

From an image to a difficulty estimate

The training target is one minus the 2D intersection-over-union between a projected detection and its matched image-space ground-truth box. A ResNet-18 predicts this difficulty from a 64 × 64 image crop, the object’s depth, and its box dimensions. The estimate is projected onto LiDAR points as an additional feature.

The detector aggregates these features into its bird’s-eye-view representation. During training, difficult examples receive more weight; at inference, the estimate adjusts detection confidence. These are separate uses of the same signal, rather than an independently demonstrated guarantee of calibration.

Compared with my UncertaintyPainting runs

The baseline is my earlier semantic-painting implementation: four LiDAR measurements plus 21 semantic class scores. I include both variants, with and without the entropy channel. These are my own trained baselines, not results copied from the PointPainting paper.

All scores below are reported KITTI validation moderate 3D AP after 80 epochs. The IoU thresholds are 0.7 for cars and 0.5 for pedestrians and cyclists. Mean AP averages the three classes. I use the primary AP tables consistently here; the separately reported R40 scores are not mixed into this comparison.

PointPillars · moderate 3D AP

RunCarPedestrianCyclistMean
Semantic baseline87.5358.1381.6975.78
Semantic + entropy87.8159.5682.2076.52
DifficultyPainting86.5368.3485.2180.03
Change vs. best prior run-1.28+8.78+3.01+3.51

The best prior run by mean AP is semantic + entropy. Changes are AP points, computed from the reported rounded scores.

SECOND · moderate 3D AP

RunCarPedestrianCyclistMean
Semantic baseline88.4667.9084.1480.17
Semantic + entropy88.6267.1981.4379.08
DifficultyPainting88.3373.7185.4982.51
Change vs. best prior run-0.13+5.81+1.35+2.34

The best prior run by mean AP is semantic baseline. Changes are AP points, computed from the reported rounded scores.

The main change is pedestrian detection: +8.78 AP for PointPillars and +5.81 for SECOND against each backbone’s stronger prior run. Cyclist AP also rises, while car AP falls by 1.28 and 0.13 points. Against the no-entropy baseline alone, the mean increases are +4.25 and +2.34 points; against the entropy variant, they are +3.51 and +3.43.

What the comparison establishes

DifficultyPainting has higher reported mean AP than both earlier variants on both backbones. This compares the complete configurations. It does not establish how much of the change comes from the difficulty feature, loss weighting, or confidence adjustment individually.

The published model configs use 80 epochs, batch size 4, and learning rate 0.003. However, the earlier baselines use 25 or 26 input features and enable database sampling; DifficultyPainting uses five input features and disables database sampling. UncertaintyPainting documents 5,979 training and 1,497 validation samples. The DifficultyPainting result tables do not include the evaluated sample IDs, so identical validation membership is not independently verified.

To isolate the difficulty signal, the next comparison needs the same training and validation IDs, augmentation, and training schedule, with each difficulty component toggled separately.

UncertaintyPainting: baseline scores ↗ · DifficultyPainting: scores ↗ · Baseline evaluation setup ↗

Semantic-baseline config ↗ · DifficultyPainting dataset config ↗

Difficulty-predictor input ablation

The difficulty predictor has its own evaluation. The following figures are reported correlations with the difficulty target, expressed as percentages; they are not detector AP.

Predictor inputsCorrelation (%)
Image only64.3
Image + depth78.2
Image + box dimensions71.5
Image + depth + box dimensions89.0
All features, including truncation and occlusion85.3

The image, depth, and box-size combination had the highest reported correlation. Adding the annotation-level truncation and occlusion inputs did not improve it.

A related ablation: uncertainty

In UncertaintyPainting, I asked whether semantic entropy helps when appended to camera-painted LiDAR features. With the same rich semantic features, adding entropy changed moderate mAP from 75.78 to 76.52 for PointPillars, but from 80.17 to 79.08 for SECOND.

The mixed outcome is useful: uncertainty is not automatically useful just because we can measure it. These are separate experiments, rather than a controlled comparison between entropy and difficulty.

Original difficulty report and input ablation ↗ · DifficultyPainting: method, results, and visualizations ↗ · UncertaintyPainting ablation ↗

Code & reported results ↗
04Equation discovery

Reservoir Computing + SINDy

The reference Lorenz x-equation compared with SINDy fits using original data and reservoir-augmented data.
Fig. 03Lorenz coefficients reported in the project. More data did not necessarily give a better equation.

When observations are noisy or incomplete, identifying a governing equation becomes harder. I tested whether trajectories generated by a reservoir computer could supply useful additional data for SINDy.

What I built
I used an echo state network to generate additional trajectories from incomplete, noisy observations, filtered them using rollout uncertainty, and compared the equations SINDy recovered with and without that extra data.
Results
The additional data gave only marginal gains in equation recovery. The Lorenz fits above are almost unchanged, despite the extra generated trajectories.
Reported equation fits ↗
Read the experiment

Suppose a few sensors go missing and the remaining readings are noisy. We would like to recover the equations behind the motion, but first we have to decide what information the measurements actually contain.

The construction

I combined an echo state network with SINDy, using simulated trajectories with controlled masking and noise. The reservoir model fits the observed trajectory; repeated noisy rollouts supply an uncertainty estimate for generated points. The pipeline filters those points and compares equation discovery on the original observations with equation discovery on the augmented data.

SINDy fits state derivatives to a library of candidate functions and uses sparse regression to select a small set of terms. For Lorenz, the useful terms include x, y, z, xy, and xz. Recovering those terms gives an equation we can inspect, as well as a predictor we can simulate.

What the comparison found

The repository reports marginal improvements across its nine configured systems. The displayed Lorenz fits are almost identical. For the x-equation, the original-data fit is 0.065 − 9.956x + 9.955y; the augmented-data fit is 0.075 − 9.956x + 9.956y. The reference is −10x + 10y.

Those coefficients illustrate the reported comparison; they are not a new evaluation carried out for this portfolio. The public repository contains the implementation and reported fits, rather than a complete run-by-run results archive.

What I took from it

A predicted trajectory is not an independent observation. When the reservoir has too little reliable data, its predictions can carry the same uncertainty and bias into the equation fit. When the original data is already sufficient, the generated points may add little useful information. The experiment made that distinction much more concrete for me.

Implementation ↗ · Reported fits ↗ · Original SINDy paper ↗

Code & reported results ↗
05Equation discovery

Profiled Joint Subset Search

Given one noisy trajectory, which equations could have produced it? PJSS fits the underlying states and a sparse set of differential equations together, rather than treating denoising as a separate step.

Method
The method screens alternative sets of equation terms with a profiled quadratic approximation, then refits the most promising candidates with nonlinear optimization.
Results
The manuscript reports 89.0% exact support recovery across 6,160 simulated trajectories from 77 in-library chaotic systems. On 49 systems outside the development benchmarks, the reported rate is 85.3%. These results concern uniformly sampled, fully observed simulated dynamics; tests on measured data and misspecified models include negative results.
Benchmark results and audit notes ↗
Read the research note

What is available

The repository contains the code, tests, manuscript sources, saved benchmark results and audit records. This is a research-code release, not a peer-reviewed publication.

Reproduction limits

Large raw trajectory archives are not included. Four secondary-study original archives are missing locally, and the original benchmark software environment has not been recovered. The download is not a complete data release.

AI assistance

Generative AI was used extensively in research and experiment design, code development, and manuscript drafting and revision. The manuscript records that the author takes responsibility for the content.

Code, manuscript & reported results ↗
Code review

Tools for code review

A pull request can change a function while leaving its callers untouched. I wanted to see those callers beside the edit, rather than search for them in another file. Strata brings the dependency graph into the review and lets me read the same change by component, by commit, or by file.

I can follow a call to the exact line that uses the function, leave a note, and mark the code as reviewed. If I load a later snapshot, Strata marks the code touched by new commits as unread, so I can pick up where I left off.

I designed and built the whole application, including the analysis engine and the review interface.

Explore Strata
How Strata works

Start with a pull request

Paste a merged GitHub pull-request URL into Strata. It fetches the relevant commits and compares the code before and after the change. The analysis runs on your machine; the viewer reads the resulting local file.

See what relies on the edited code

Suppose a function changes but another component still calls it. That caller may need checking even though it has no edited lines. Strata shows it beside the function, with an arrow from caller to callee and the actual line where the call occurs. Unchanged code is labelled and kept separate from the changes you need to review.

Choose how to read the change

  • By component: read a changed function or class with the code connected to it. Each item shows its own lines.
  • By commit: see which commit added or removed each line, and how the change developed over time.
  • By file: read every changed file, including documentation, configuration, and code that the symbol analysis does not cover.

Keep notes and resume later

You can attach a note to a diff line and mark code as reviewed. Both are saved in your browser. When you load a newer snapshot, the code touched by later commits becomes unread again, so you can see what needs another look. Notes can be exported to GitHub as one review.

Current limits

The viewer currently works with merged pull requests. Function and class analysis covers TypeScript and JavaScript; other languages remain readable by file. Commit groups use time gaps, so a group may contain unrelated work. Review progress belongs to one local browser.

I built the analysis pipeline and the interface. The repository explains the implementation and setup ↗.

Strata’s code-review interface showing changed components and a dependency graph.
Personal blog

Notes

Mostly gym and food for now.

01

Gym

My training and the road to a 225 bench.

The infamous 225
02

Nutrition

What I eat, how much protein, and what’s in the sauce.

What I eat
A little about me

Away from the screen.

I enjoy the theoretical side of mathematics and machine learning, and building things that help me understand the ideas. Outside research, a lot of my time goes into the gym and music.

I see training as a physical résumé: evidence that I can commit to something and put in the work to back it up.

Gym schedule

I love talking about training. If you want to get fitter or are thinking about starting, I’d be more than happy to talk.

My weekly routine (basically a bro split)
DaySession
1Chest
2Back
3Chest
4Legs
5Shoulders & arms
6Rest
7Back

And if you were wondering, yes, I can bench 225.

Zyzz inspired me to get into the gym, and I enjoy hardstyle music. Training is how I build my discipline. I also meal prep to make sure I meet my daily macronutrient needs.

I also play League of Legends. Teemo main :)
There is, apparently, time for things besides matrices and chest day.

A winged bodybuilding figure with clouds layered over the torso, against a black background.
Gym inspiration.
Attractors Lorenz
scroll / 00