Skip to content

Bench: deepseek-v4-1-flash vs zai-glm-5-3 (dual-MA, three market windows) - #58

Merged
OnePunchMonk merged 3 commits into
OnePunchMonk:mainfrom
avayaaggarwal:bench/two-model-dual-ma
Dec 3, 2026
Merged

OnePunchMonk merged 3 commits into
OnePunchMonk:mainfrom
avayaaggarwal:bench/two-model-dual-ma

Conversation

@avayaaggarwal

@avayaaggarwal avayaaggarwal commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Compares the two proposer models on the same unmodified harness and scoring engine
(src.backtest.simple_backtest.basic_momentum_backtest), gates Sharpe 0.3 / DD 0.20.

  • A — anchor: SPY daily, search 2021-12-03..2025-12-02 (1003 bars), sealed trailing 20% holdout 2025-12-03..2026-12-02.
  • B — new universe: SPY, QQQ, AAPL, NVDA, XLE, TLT, GLD, 2015-01-02..2019-12-30 from yf.download(..., auto_adjust=True).
  • C — breadth and holding horizon: 50 large caps (all listed before 2015) daily 2015-2019, position sampled every H bars and held H bars, at H=7 and H=30 (sector-diverse 10 names). H=1 reproduces the engine exactly — asserted before the bench ran.

Headline

A: mean IS (SPY) A: best pick / holdout B: mean IS C: mean IS (50 names, H=7)
deepseek-v4-1-flash-1017 0.662 30/150 @ 0.947 / -0.194 0.426 0.388
zai-glm-5-3 0.934 40/150 @ 1.216 / -0.179 0.409 0.387
  • GLM proposes better in-sample picks on the SPY anchor, but no top pick from either model clears the 0.3 gate on the sealed holdout (both ~-0.18 to -0.19, IS-to-holdout gap ≥ 1.0).
  • That edge does not survive breadth: over 50 names the models tie (0.388 vs 0.387). The anchor gap was five correlated configs on one instrument.
  • The holding horizon is nearly free but adds no edge: H=7 moves mean IS by 0.001 vs H=1 while cutting turnover ~7x. The H=30 ten-name column is too thin to read (~42 rebalances).
  • Config rankings are unstable across universes — 100/200 leads the breadth test, 40/150 won the SPY anchor, 10/200 leads the 30-bar run.

Methodology caveat

The harness's in-process planners have no credentials here (GOOGLE_API_KEY, OPENAI_API_KEY,
ANTHROPIC_API_KEY unset; create_planner() returns FallbackPlanner, which is why every recorded
strategy_runs row is generation_method: grid_search). Both models acted as proposers via Vibe
sessions pinned to them
, as in #56, and the deterministic engine did all scoring. No model was
called over HTTP
— this benches the models as proposers, not the provider adapters.

Also: the deepseek set is the one from #56, reproduced bit-for-bit first as a scoring-path check. Each
holdout is graded once; there is no multiplicity correction across ten proposals, two models and three
windows, so no in-sample Sharpe here is a validated score. Protocol C was designed after A and B were
scored, so it is a robustness check rather than a pre-registered test.

Files: bench/BENCH_TWO_MODEL_DUAL_MA.md, bench/bench_two_model_report.json.

Generated by Mistral Vibe.

avayaaggarwal and others added 2 commits December 3, 2026 16:16
…ndows

Same unmodified harness and scoring engine; only the proposer changes.
Anchor: SPY 2021-12-03..2026-12-02 (search 80% / sealed trailing 20%).
New: SPY/QQQ/AAPL/NVDA/XLE/TLT/GLD 2015-01-02..2019-12-30 from yfinance.

GLM proposes stronger in-sample picks (mean 0.934 vs 0.662; best 1.216
vs 0.947), but neither model's top pick clears the 0.3 Sharpe gate on the
sealed holdout (-0.18 vs -0.19), and on the fresh universe the ranking is a
dead heat (mean IS 0.409 vs 0.426). Both models converge on 20/100 and
50/200 regardless of regime prompt.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
A 7-bar daily series cannot support an SMA200, so the 7/30-day span became a
holding horizon instead: identical signal rule to the engine, position sampled
every H bars and held H bars. H=1 reproduces basic_momentum_backtest exactly.

50 large caps (all listed pre-2015), daily 2015-01-02..2019-12-30, search to
2018-12-28, trailing 20% holdout. Sector-diverse 10 names for the 30-bar run.

Across breadth the two proposers tie: 0.388 vs 0.387 at H=7, noise at H=30 on
ten names. The anchor's 0.662-vs-0.934 gap does not survive a cross-section.
Holding 7 bars instead of 1 costs 0.001 Sharpe and cuts turnover ~7x. Config
rankings shift again (100/200 leads H=7), and 34/50 names clear the gate.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@avayaaggarwal avayaaggarwal changed the title Bench: deepseek-v4-1-flash vs zai-glm-5-3 (dual-MA, two market windows) Bench: deepseek-v4-1-flash vs zai-glm-5-3 (dual-MA, three market windows) Dec 3, 2026
@OnePunchMonk
OnePunchMonk merged commit 25b86b0 into OnePunchMonk:main Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants