尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
A small vision-language model that computes exactly on its own sheet: the paper and the live demo
翻译准备中
正在加载完整 README。
查看完整 README ↗Sketchpad gives Qwen3.5-0.8B a sheet to compute on, the way a person does long arithmetic on paper. A low-rank adapter (10.2 M parameters, 1.2% of the model) teaches it to read three cells of the sheet as a small image and to answer with a digit, a carry and the next step. Ordinary code writes the answer onto the sheet and moves the view. Every digit is computed by the model itself: there is no calculator and no tool call.
Because each step sees only those three cells, every situation the model can ever meet fits in a finite list of 2,446 views. Checking all of them on the device that runs the model certifies its arithmetic on inputs of every length, and the proofs of that claim are checked in Lean. The demo checks the weakest views again on your own GPU before it starts.
| Project page | https://neovand.github.io/sketchpad/ |
| The film (4:49) | https://youtu.be/RTVMdf301sg |
| Paper (web) | https://neovand.github.io/sketchpad/paper |
| Paper (PDF) | https://neovand.github.io/sketchpad/sketchpad.pdf |
| arXiv | forthcoming |
| Demo (runs in the browser, WebGPU) | https://neovand.github.io/sketchpad/demo |
| Model, adapter and device certificate | mohsenvand/sketchpad-0.8b-preview |
| Training runs and their evaluations | mohsenvand/sketchpad-0.8b-runs |
pnpm install
pnpm dev
Then open http://localhost:5173/.
Checks:
pnpm check
pnpm lint
pnpm test
The Lean proofs need elan. The toolchain (Lean 4.35) is pinned in
paper/lean/lean-toolchain.
cd paper/lean
lake build
lake env lean Paper.lean
lake build checks every proof. lake env lean Paper.lean prints the axioms each of the paper's statements uses.
The paper's LaTeX and the arXiv package are built from the same source as the web page:
node paper/build-tex.ts --pdf
node paper/build-tex.ts --arxiv
--pdf writes paper/tex/main.pdf (it needs tectonic). --arxiv writes paper/arxiv/, the arXiv package.
| Path | What it holds |
|---|---|
src/routes/ | the site: the project page (+page.svelte), the paper (paper/), the demo (demo/) |
src/lib/sketchpad/ | the in-browser runtime: the sheet procedures, the WebGPU worker, the certificate and the panels |
paper/ | the paper's source (paper.md, refs.bib), figures, every number's source (numbers.md), the Lean proofs (lean/), baselines and the arXiv package |
research/ | the scripts that reproduce the paper's numbers |
video/ | the film's sources: script, scenes, narration and score |
static/ | the site's static files, including the recorded runs and the paper's PDF |
The arXiv identifier will be added once the paper is posted.
@misc{mohsenvand2026sketchpad,
title = {Sketchpad: certified exact arithmetic with a small vision-language model},
author = {Mohsenvand, Mostafa},
year = {2026},
url = {https://neovand.github.io/sketchpad/}
}
Code and text are licensed under the Apache License 2.0 (LICENSE). The weights on Hugging Face carry
their own license.