WL-Benchmark
A new general benchmark.
A benchmark for CUHK Shenzhen with its unique context and background information, packaged as a self-contained CLI tool (wlb). However, it's not exclusive for a single university, since it could somehow tell the real ability of a model, regardless the background information (university).
This benchmark cares about general agent tasks, not only coding capability. Scoreable parts are graded programmatically; taste-bound parts (essays, drawings, research notes) are left to human review.
What makes a good benchmark (for us)?
A Benchmark shouldn't be easily obtained by AI manufacturers or service providers. In other words, AI companies don't have to specifically pre-train with our tests. Hence, our tests should not be general to cover every user nor every field. We only care about where we, as LGUers, will use AI to solve problems.
Meanwhile, the test problems are narrowed down to the CUHKSZ context, which means every problem is made of CUHKSZ. This does not actually prevent pre-train cheats. It would be even better if they could have a domain-specific pre-train towards CUHKSZ.
As a benchmark in a "NewAPI/Sub2API/CliProxyAPI" era, we do not put too much weight on API testers like hvoy, since such providers may have special techniques to game potential problems. But we keep the possibility of using them as a reference.
How scoring works
- Programmatic scoring (no model judge): scheduling (ten weighted rule checks) and the numeric answers of the quant research task (per-question tolerances against an answer key computed at generation time).
- Human review: essays (graded against the RUBIC) and SVG drawings (graded from the rendered PNG). The harness only generates the artifacts and saves them; a human opens them and scores.
Benchmark domains
Scheduling Problems
The AI plays a Financial Engineering (Quantitative Finance stream) student planning the 2026-27 Term 1 registration. It receives:
- a condensed study scheme (major requirements, university core, GE structure and rules, CEC rule, registration rules) — grounded in the official study scheme circular and the Registry pages 选课和改选 (/page/24: term load 9-18 units) and 通识教育 (/page/21: GE = foundations GFH+GFN + one course from each area A/B/C/D; GEW does not count toward the GE core),
- the transcript through 2025-26 Term 2 (extracted from the official unofficial transcript; the 2026-27 in-progress rows are ignored — Term 1 has not been selected yet),
- the course offering list for 2026-27 Term 1 with fully randomized session times (15-min grid starts, mixed durations). Every offered section pairs one Lecture with one Tutorial session (2-3 sessions, optionally a Lab).
This task also carries the tool use and function calling dimension: the four research tools are unlabeled (opaque names, no descriptions, terse parameter names — the model must infer what each does and how to use it, the same treatment once planned for a standalone tool-use domain), and the plan must be submitted through the documented enroll tool.
The raw materials are NOT given in the prompt. The model must gather every fact itself through four pseudo tools — search_registry (rule documents), query_transcript, query_prerequisite, search_course_offering — and the search corpus contains noise: the OLD GE rule version (2017-22 admits: "GEW counts toward the GE core") next to the current one, the FinTech-stream study scheme next to the Quantitative Finance one, and the offering search hides the not-offered courses behind explicit "not offered" responses.
After researching, the AI must audit its own remaining requirements and submit the plan through the only documented tool, enroll (batch or one call per course) — the opaque research tools stay undescribed, but the answer channel is explicit. The enroll tool accepts any well-formed submission blindly (no conflict/prereq validation feedback — otherwise a model could brute-force the unique solution through the SIS). A text-JSON fallback exists for models that never call enroll. The plan:
- retake the two withdrawn (W) courses — ECO3121 and MAT3007;
- take every offered major-required course whose prerequisites are completed — and exclude the prerequisite trap FIN4120 (its prereq FIN3080 is only in progress);
- complete the last GE foundation course GFH1000 (与人文对话);
- take the remaining CEC course CEC4000 (GEW-type: it does not count toward the GE core or the 2-GE-per-term limit);
- add exactly one GE-area course (area B/C/D still remaining — decoy area courses conflict with everything);
- fit the full 18-unit load with zero time conflicts.
The instance is constructed plant-then-noise with a fixed seed: the unique solution is planted first (pairwise non-overlapping sessions), then noise sections are added that deliberately overlap planted sessions — so exactly one valid plan exists (verified by a solver at generation time). Two more binding constraints raise the difficulty: the timetable must leave Friday completely free (a same-feasibility decoy area course sits entirely on Friday — dropping this rule yields 3 valid plans instead of 1, verified at generation time), and the GE-area course must be chosen under that rule. Scores are computed programmatically as ten weighted rule checks: required coverage (0.15), prerequisite-trap avoidance (0.10), no unknown/extra courses (0.10), GE foundation (0.10), CEC4000 (0.15), GE-area course (0.10), GE per-term limit (0.05), zero conflicts (0.10), exact 18-unit load (0.10), Friday-free timetable (0.05).
Quantitative Research Practice (multi-factor mining, inference, out-of-sample test)
A math-heavy agentic research task, scored 80% programmatically + 20% by human review of the written note. No data is given in the prompt: the model must discover the data universe through two opaque tools (meta_list, series_fetch) — the universe contains 10 series including a revised-index decoy (SZTECH_V2), a BTC distraction, and a five-candidate factor library (MOM / VAL / SIZE / VOL / LIQ) where three factors are pure noise.
The true driver of SZTECH (estimation window 2024, 12 observations) is the market plus exactly two library factors (MOM + VAL) — verified at generation time (t(MOM) = 15.2, t(VAL) = 6.1, every noise factor |t| < 1.5 when appended to the true model, corr(MOM, VAL) = 0.10, seeded by rejection sampling). The model must:
- slice the 2024 window out of the 24-month histories (the fetch returns everything — window-slicing noise);
- mine the factor library as a subset-selection problem: screen candidates, keep the two real factors, exclude decoys;
- estimate the four-unknown OLS by hand (const + MKT + MOM + VAL — 4x4 normal equations) for alpha, the three betas and R-squared;
- compute the t-statistics of both factor betas — this requires the (X'X)^-1 diagonal and the residual variance, i.e. formal inference, not just point estimates;
- compute the annualized Sharpe (RF series), sample standard deviation, maximum drawdown, and the 3-worst-observation expected shortfall;
- pass the out-of-sample test: apply the 2024 coefficients to each 2025 month (the second year of history is no longer dead weight) and report the RMSE of the prediction errors;
- write a 200-450-word research note (mining method, identification evidence, out-of-sample performance, limitation) — human-reviewed.
Numeric answers are checked with per-question tolerances against an answer key computed programmatically (4x4 normal equations, matrix inverse, compounding, drawdown); percent/decimal-fraction scale confusion is tolerated. Final score = 80% x auto + 20% x note. A wrong factor subset (missing one true factor or keeping a decoy) immediately drops 12 points of auto weight, and the beta/t-stat answers become unanswerable correctly — factor identification is the gate.
SVG Drawing
All three stages carry machine-checked structural constraints on the SVG reply: root <svg> with BOTH viewBox and explicit width/height, minimum labeled-text counts (5 / 6 / 8 per stage), font-size >= 14 everywhere, explicit arrowheads (marker or triangle) for relation/architecture stages, the picked subjects must appear as labels, and a legend/caption box must exist. Results are printed as a PASS/FAIL table in the review PDF (suggested -5 per violation, reviewer confirms). The prompts additionally demand scene composition requirements per stage (environmental props with labels + caption for riding; >= 3 intermediate dated hops for relation; >= 8 components + legend + grouping boundary for architecture).
Stage One
We have a bunch of nouns A and B. For Set A, there are some words referring to an animal/person, e.g. Xu Yangsheng (President) or Qin Shi Huang. For Set B, there are some words referring to a physical and biological non-animal, e.g. iPhone or Teaching Building.
The benchmark randomly selects one word from A and one word from B, and asks the model to draw an SVG of A riding B, e.g. President Xu riding GPA.
Set A includes: Xu Yangsheng (President), The First Emperor of Qin (Qin Shi Huang), Confucius, Qu Yuan (屈原), Zheng He (郑和), Zhang Heng (张衡)
Set B includes: iPhone, Fridge, Rocket, Wi-Fi, GPA, Bicycle, Cybertruck, Drone, WeChat
The benchmark does this once and moves on.
Stage Two
The benchmark selects two random persons in A, and lets the AI draw a COMPLETE illustration of how these two persons are indirectly related.
The AI is asked once. The output is still an SVG file.
Stage Three
The benchmark selects a random item in B, and lets the AI draw an architecture diagram.
The AI is asked once. The output is still an SVG file.
Essay Writing with RUBRIC
RUBICs for the three writing tests are adapted from the school-provided RUBIC1.docx (same dimensions, weights, level bands and deduction rules). The rubric is provided to the model as a photo (multimodal) by default; text/PDF modes are switchable.
Every writing task now carries machine-checked hard constraints on top of the rubric quality dimensions: language-section headings, English word-range and Chinese character-range windows, required scene/section headings, typed evidence tags, boundary conditions, method-rigor keywords. The harness verifies each constraint programmatically and the result table is printed in the review PDF (suggested -5 per violated constraint, reviewer confirms).
Story Telling
The benchmark asks the AI to write a story about Qin Shi Huang riding a Polar Bear and looking at his phone — in exactly three scenes (parallel ### Scene N — / ### 场景 N — headings), where the phone must create the conflict once and resolve it once, and every modern object needs an in-world explanation.
The output should be in markdown format, in both English and Chinese (中英双语): English 800-1200 words, Chinese 1200-2000 characters.
Argument Writing
The benchmark asks the AI to write an argument essay about why we could use smartphones while walking inside the campus.
The AI must provide at least four typed evidences (**[Statistic]**, **[Campus observation]**, **[Analogy]**, **[Authority]**, **[Counterfactual]** — at least three distinct types), a rebuttal of "走路不看手机" that states the strongest opposing version and concedes one point before refuting, and a boundary-conditions paragraph naming where the position does NOT hold.
The output should be in markdown format, in both English and Chinese (中英双语): English 900-1300 words, Chinese 1400-2200 characters.
Research Proposal Writing
The benchmark transfers the results of the previous two writings as context, and asks the AI to design research towards the topic: whether we could use smartphones while walking inside the campus.
The proposal must carry full method rigor: sampling frame and target N, operationalized IV/DV, instrument, identification strategy, a pre-registered falsifiable H1, at least three expected outcomes each paired with its refuting observation, the story cited as motivation plus at least two Task-2 claims converted into hypotheses tagged [from Task 2], and two validity threats with mitigations.
The output should be in markdown format, in both English and Chinese (中英双语): English 1100-1600 words, Chinese 1700-2600 characters.
Installation
Pick any one of the three channels:
# PyPI (recommended)
pip install wl-benchmark # or: pipx install wl-benchmark
# Homebrew (macOS / Linux)
brew tap 0x3st/tap https://github.com/0x3st/homebrew-tap
brew install wlb
# From source
pip install .
# or run directly from a checkout, no install:
./wlb
The package is Python >= 3.9 with zero third-party dependencies
(stdlib only). All three channels expose the same command: wlb.
New releases are cut automatically by CI — push a tag vX.Y.Z and it
publishes to PyPI, creates the GitHub Release and updates the Homebrew
tap in one go.
Usage
Bare wlb is the whole interface — a guided flow:
$ wlb
wl-benchmark: a general benchmark
Endpoint (OpenAI-compatible, e.g. https://api.example.com/v1): https://…
API key (input hidden): ********
The endpoint offers 25 models:
1. gpt-4o
2. claude-...
Pick a number, or type a model name: 2
Parallel workers [3] (1 = sequential): ↵
provider agi.tontian.com · claude-sonnet-4-6
output results/20260911-183022
[███████████████░░░░░] 6/8 · 5.2 min · term-plan-2627t1-01, 03-proposal
done 8/8 tasks · 0 failed · 5.4 min
essay 01-storytelling pending human review
scheduling term-plan-2627t1-01 score 0.95
...
[cli] run complete: 8 task results in results/20260911-...
Upload results to the benchmark platform now? [Y/n] y
[cli] share link: https://benchmark.wulei.org/r/20260911-...
[cli] local run data deleted
- The endpoint's model list is fetched after the key is entered, so you pick by number.
- Independent tasks run concurrently (default 3 workers); the research proposal waits for the two earlier writings it consumes. While tasks run, a single-line progress bar is shown — no streaming logs.
- Every run is uploaded automatically when it finishes — the share link
is the last line. A failed upload keeps the data locally
(
wlb --upload results/<timestamp>retries). - If a newer release exists on PyPI,
wlboffers to self-update before testing (pip / pipx / Homebrew aware; a git checkout printsgit pullinstead).
Power flags (undocumented in --help on purpose):
wlb --endpoint https://api.example.com/v1 --key sk-xxx --model model-a
wlb --tasks essay,svg # run a subset of domains
wlb --jobs 6 # more parallel workers (1 = sequential)
wlb --keep # keep local run data after upload
wlb --upload results/<ts> # send a local run to the platform
wlb --report results/<ts> # rebuild summary.md + review.pdf
Run output
Everything lands in results/<timestamp>/:
| File | Purpose |
|---|---|
review.pdf |
one consolidated human-review PDF: summary table + every task's full output (essays, rendered SVGs, scheduling details), each scored section has a blank scoring box |
results.json |
structured results of all tasks (incrementally dumped — a crashed run keeps its data) |
summary.md |
overview table: programmatic scores; essay/svg marked "pending human review" with artifact paths |
artifacts/ |
individual artifacts: essays *.md, drawings *.svg + *.png |
review.pdf is generated automatically at the end of every run; wlb --report results/<timestamp>/ regenerates both files anytime.
Human review flow
- Open
results/<timestamp>/review.pdf— everything is in there: the summary table, each essay with its RUBRIC, each rendered SVG, each scheduling detail, and a blank scoring box per task. - Grade each scored section against the RUBIC (Intellectual Content 25 / Organization 25 / Language Use 50, A–F bands, deductions), fill in the boxes.
- If you prefer raw files, the individual artifacts stay in
artifacts/(*.mdessays,*.svg/*.pngdrawings).
Benchmark platform (share links)
Every run is published to your own WL-Benchmark platform — a one-time-deployed
Cloudflare Worker (site/, KV storage, no build step). The flow:
wlbfinishes → it asks "Upload results now? [Y/n]" (nothing is sent automatically);- on confirmation it builds one self-contained page (images inlined) and
POST <site>/api/runsuploads it (Bearer token); - the share link
https://benchmark.wulei.org/r/<run-id>is printed — send it to anyone; - the local run directory is deleted (the platform is the single source of truth).
The platform accumulates all runs at / (index) with /r/<id> detail pages.
Setup: deploy site/ once (see site/README.md), then either set
WL_BENCH_URL + WL_BENCH_TOKEN or answer the interactive prompt on the first
run (saved to config/site.json, gitignored).
Run parameters
Optional file config/bench.json (see config/bench.example.json) may override: rubric_modality (auto|image|doc|text), tasks_data_root, temperature (by default the parameter is not sent at all — every model is scored under its own default sampling), the limits timeout (seconds per request, default 1800) and task_minutes (wall-clock ceiling per task, default 30 — the ONLY limit; a task may use as many tool turns or tokens as it likes within it). No token budget is sent by default — the model generates until it is done, which is the fair way to measure capability. Set token budgets only to cap cost on a metered API. Provider information is never stored there.
Security
Model output is handled as data — the only place it gets "executed" is headless Chrome (SVG rasterization + the review PDF). Two layers contain it:
- OS sandbox, network included. The CLI prompts for everything,
then spawns the benchmark as a sandboxed child process: macOS
Seatbelt (
sandbox-exec) or Linux bubblewrap (bwrap, probed before use). File writes are confined to the run directory,/tmpand the browser's own support dirs; all network access is denied — the child's only egress is a parent-run Unix-socket proxy whitelisted to the model endpoint (TLS stays end-to-end). The review PDF and the platform upload happen in the trusted parent. Windows has no practical unprivileged sandbox — the run proceeds unsandboxed there. - SVG sanitizer. Scripts, event handlers, embedded HTML and external references are stripped from every SVG before it is saved or rastered; SVGs that fail XML parsing never reach Chrome at all.
Both backends are verified in CI (tools/sandbox_selftest.py runs on
ubuntu-latest with bubblewrap and macos-latest with seatbelt:
write-denial outside the run dir, writes inside, network, and a real
Chrome raster under confinement).
Task data layout
wl_benchmark/tasks_data/
├── essay/
│ ├── 01-storytelling/ task.md + rubric.png|md + spec.json (constraints)
│ ├── 02-argument/ task.md + rubric.png|md + spec.json (constraints)
│ └── 03-proposal/ task.md + rubric.png|md + spec.json (context_from + constraints)
├── quant/ # fe-mining-01.json (generated by tools/gen_quant.py)
├── svg/ # stage1-riding / stage2-relation / stage3-architecture
└── scheduling/term-plan-2627t1.json # generated by tools/gen_scheduling.py
Directory numeric prefixes define execution order (chained tasks read the outputs of earlier ones).
Adding new tasks
- New scheduling instance:
python3 tools/gen_scheduling.py --seed <n> - New quant instance:
python3 tools/gen_quant.py --seed <n> - New essay task: create
essay/<NN-name>/withtask.md+rubric.*; addspec.jsonwithcontext_fromfor chained tasks - New SVG task: add a JSON under
svg/, choosing thestagemode
Roadmap
- Human Evaluation (A/B test system): after a model passes the automated tests, route it to a real-environment A/B system and collect user feedback with tools that cannot affect important messages. (not finished yet)
- Publish to PyPI / Homebrew (auto-release on
vX.Y.Ztags).
Metadata
Release files for wl-benchmark 0.6.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wl_benchmark-0.6.6.tar.gz | 1.2 MB | With provenance | Details for wl_benchmark-0.6.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wl_benchmark-0.6.6-py3-none-any.whl | Python 3 | none | any | Details for wl_benchmark-0.6.6-py3-none-any.whl |
Total release size: 2.4 MB
Release files / wl_benchmark-0.6.6.tar.gz
| Download URL | wl_benchmark-0.6.6.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee57267665accc166f83cb85794934bb2fa0b600523f8a09cdbc351056fa7147
|
|
BLAKE2b-256 checksum How to use checksums |
382486b7e4b607dfb8a2e6fb5ad6b9b90a4b6b4cec4aa294e085a3e89434f213
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / wl_benchmark-0.6.6-py3-none-any.whl
| Download URL | wl_benchmark-0.6.6-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e8a284f960ab95ebd9eb401961af1a769cf52176b9e964e78e15abd524ae580
|
|
BLAKE2b-256 checksum How to use checksums |
fa5e53c73de0375354c81414d5aef7fe3a2418eb3fcfa6acf848dc7d2b52bc68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logSecurity for wl-benchmark 0.6.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for wl_benchmark-0.6.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.