[GH-ISSUE #4959] [Benchmark] Field report: answer quality of DeepSeek-V4.1-Flash (IST-DAS 2.25 bpw) vs Qwen3.8-Flash-Next on Strata, with an ArXivMath problem you can try #2285

Closed
opened 2026-11-04 01:58:10 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @enkynakamura on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4959

I've been running Qwen3.8-Flash-Next on Strata as my daily model for a few weeks. With DeepSeek-V4.1-Flash support landing, I ran both models through the same tasks to compare answer quality: a research-level math problem with a Python sandbox, and research answers with sources. Short version: even at 2.25 bpw, DeepSeek reasoned more cleanly, needed about half the tokens and made clearly fewer mistakes. It is now my main model.

This is one user's report, not a benchmark: small samples, my own strict system prompt and my own scoring. I'm sharing it because it may help others choose between the two.

Setup

  • RTX 5080 16 GB, Xeon w7-2475X (20 cores), 128 GB DDR5, Windows
  • DeepSeek-V4.1-Flash-1017, IST-DAS 2.25 bpw set, KV fp4; engine strata-dsv41 0.1.54 / 0.1.55
  • Qwen3.8-Flash-Next, Unsloth UD-Q4_K_XL, KV int8; Strata 0.2.3.1 (engine 0.1.48)
  • Client: Jan, with tools (web search/fetch, a Python sandbox in Docker). Both models used the same system prompt of about 16k characters, with strict rules on sources and verification: every number needs a link to a page that actually contains it, quotes must be verbatim, no invented identifiers, and claims about "all" cases only after they have been checked.

The math problem (try it yourself)

From the MathArena ArXivMath dataset (Hugging Face, competition = arxiv/december, problem_idx = 6). The problem comes from arXiv 2512.05487, and the official answer is 45. Statement as in the dataset (math delimiters adapted for GitHub):

Let \overrightarrow{C_3} denote the oriented 3-cycle (a directed cycle of length 3). An oriented graph G is a finite simple directed graph with no loops, no multiple arcs, and no pair of opposite arcs. For a vertex v\in V(G), let N_G(v) be the number of (not necessarily induced) subgraphs of G that are isomorphic to \overrightarrow{C_3} and contain v. Call G $\overrightarrow{C_3}$-irregular if for every two distinct vertices u\neq v one has N_G(u)\neq N_G(v). Call an oriented graph non-trivial if it has at least 2 vertices. Let S\subseteq\mathbb{Z}_{>0} be the set of all positive integers m for which there exists a non-trivial $\overrightarrow{C_3}$-irregular oriented graph G with |V(G)|=m. Determine the sum of all positive integers that are not in S.

If you try it, turn web search off: the source paper is easy to find. With web on, both models found it and used it. I ran it with the sandbox only and an explicit "solve it without searching" instruction.

It's a good test because the answer can't be guessed from a pattern. You have to prove that no such graph exists for every m ≤ 9 (beyond m = 5 that means exhaustive search or a solver), and to construct one for every m ≥ 10.

Both models got 45. The cost was very different:

Qwen3.8-Flash-Next DeepSeek-V4.1-Flash
answer 45 45
generated tokens (reasoning + answer) 289,413 ~154,000
sandbox calls (timed out at 300 s) 124 (14) 43 (1)
time running tools ~12,800 s ~1,000 s
total time 17,694 s (~4.9 h) ~8,400 s (~2.3 h)

Qwen generated almost twice as many tokens. On my machine it decodes about 3x faster than DeepSeek, yet it still took twice as long: most of its time went into running and re-running its own search code, including 14 calls that hit the 300 s limit. Total time is measured from first request to final answer; for Qwen I excluded a period when the PC was asleep.

How they got there:

  • DeepSeek:

    • handled m ≤ 5 by hand;
    • enumerated all 3^15 oriented graphs for m = 6;
    • built an exact MILP model (scipy/HiGHS) that returned infeasible for m = 7, 8, 9;
    • gave an explicit 10-vertex tournament for m = 10, which I recomputed and checked.

    Its one weak step: it claimed the construction extends to all m ≥ 10, while it had verified it only up to m = 21. When this was pointed out, it accepted the correction and restated the result within what it had actually checked.

  • Qwen:

    • also looked for OR-Tools/PySAT (not installed in my sandbox at the time), but never tried the MILP solver that was available;
    • wrote its own exhaustive search instead (numba + multiprocessing, several solver versions);
    • one search version was invalidated by its own planted-solution test;
    • several times declared cases excluded by hand and later withdrew those claims.

Research answers with sources

The same literature-research prompt, 5 runs in Italian and 5 in English per model. Each answer was checked with a script that compares every number, quote and link against the tool results in the thread, plus a manual review.

Qwen IT Qwen EN DeepSeek IT DeepSeek EN
runs with real provenance defects 2/5 2/5 0/5 0/5
values checked / not found in the cited source 127 / 8 246 / 22 136 / 1 (false alarm) 194 / 0
quotes not verbatim 0 3 0 0

DeepSeek is not error-free. On a second prompt (a nutrition question, 5 runs) it had:

  • one run with study data attributed to a page that doesn't contain them;
  • one link with two digits swapped;
  • one shortened quote;
  • two runs with quotation marks around a paraphrase.

Still, it made clearly fewer of these mistakes than Qwen.

Thanks for the DeepSeek support: on this hardware it has become my main model.

Originally created by @enkynakamura on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4959 I've been running Qwen3.8-Flash-Next on Strata as my daily model for a few weeks. With DeepSeek-V4.1-Flash support landing, I ran both models through the same tasks to compare answer quality: a research-level math problem with a Python sandbox, and research answers with sources. Short version: even at 2.25 bpw, DeepSeek reasoned more cleanly, needed about half the tokens and made clearly fewer mistakes. It is now my main model. This is one user's report, not a benchmark: small samples, my own strict system prompt and my own scoring. I'm sharing it because it may help others choose between the two. ### Setup - RTX 5080 16 GB, Xeon w7-2475X (20 cores), 128 GB DDR5, Windows - DeepSeek-V4.1-Flash-1017, IST-DAS 2.25 bpw set, KV fp4; engine `strata-dsv41` 0.1.54 / 0.1.55 - Qwen3.8-Flash-Next, Unsloth UD-Q4_K_XL, KV int8; Strata 0.2.3.1 (engine 0.1.48) - Client: Jan, with tools (web search/fetch, a Python sandbox in Docker). Both models used the same system prompt of about 16k characters, with strict rules on sources and verification: every number needs a link to a page that actually contains it, quotes must be verbatim, no invented identifiers, and claims about "all" cases only after they have been checked. ### The math problem (try it yourself) From the MathArena ArXivMath dataset ([Hugging Face](https://huggingface.co/datasets/MathArena/arxivmath/viewer/default/train), `competition = arxiv/december`, `problem_idx = 6`). The problem comes from [arXiv 2512.05487](https://arxiv.org/abs/2512.05487), and the official answer is **45**. Statement as in the dataset (math delimiters adapted for GitHub): > Let $\overrightarrow{C_3}$ denote the oriented 3-cycle (a directed cycle of length 3). An oriented graph $G$ is a finite simple directed graph with no loops, no multiple arcs, and no pair of opposite arcs. For a vertex $v\in V(G)$, let $N_G(v)$ be the number of (not necessarily induced) subgraphs of $G$ that are isomorphic to $\overrightarrow{C_3}$ and contain $v$. Call $G$ $\overrightarrow{C_3}$-irregular if for every two distinct vertices $u\neq v$ one has $N_G(u)\neq N_G(v)$. Call an oriented graph non-trivial if it has at least 2 vertices. Let $S\subseteq\mathbb{Z}_{>0}$ be the set of all positive integers $m$ for which there exists a non-trivial $\overrightarrow{C_3}$-irregular oriented graph $G$ with $|V(G)|=m$. Determine the sum of all positive integers that are not in $S$. If you try it, **turn web search off**: the source paper is easy to find. With web on, both models found it and used it. I ran it with the sandbox only and an explicit "solve it without searching" instruction. It's a good test because the answer can't be guessed from a pattern. You have to prove that no such graph exists for every m ≤ 9 (beyond m = 5 that means exhaustive search or a solver), and to construct one for every m ≥ 10. Both models got 45. The cost was very different: | | Qwen3.8-Flash-Next | DeepSeek-V4.1-Flash | |---|---|---| | answer | 45 | 45 | | generated tokens (reasoning + answer) | 289,413 | ~154,000 | | sandbox calls (timed out at 300 s) | 124 (14) | 43 (1) | | time running tools | ~12,800 s | ~1,000 s | | total time | 17,694 s (~4.9 h) | ~8,400 s (~2.3 h) | Qwen generated almost twice as many tokens. On my machine it decodes about 3x faster than DeepSeek, yet it still took twice as long: most of its time went into running and re-running its own search code, including 14 calls that hit the 300 s limit. Total time is measured from first request to final answer; for Qwen I excluded a period when the PC was asleep. How they got there: - **DeepSeek:** - handled m ≤ 5 by hand; - enumerated all 3^15 oriented graphs for m = 6; - built an exact MILP model (scipy/HiGHS) that returned infeasible for m = 7, 8, 9; - gave an explicit 10-vertex tournament for m = 10, which I recomputed and checked. Its one weak step: it claimed the construction extends to all m ≥ 10, while it had verified it only up to m = 21. When this was pointed out, it accepted the correction and restated the result within what it had actually checked. - **Qwen:** - also looked for OR-Tools/PySAT (not installed in my sandbox at the time), but never tried the MILP solver that was available; - wrote its own exhaustive search instead (numba + multiprocessing, several solver versions); - one search version was invalidated by its own planted-solution test; - several times declared cases excluded by hand and later withdrew those claims. ### Research answers with sources The same literature-research prompt, 5 runs in Italian and 5 in English per model. Each answer was checked with a script that compares every number, quote and link against the tool results in the thread, plus a manual review. | | Qwen IT | Qwen EN | DeepSeek IT | DeepSeek EN | |---|---|---|---|---| | runs with real provenance defects | 2/5 | 2/5 | 0/5 | 0/5 | | values checked / not found in the cited source | 127 / 8 | 246 / 22 | 136 / 1 (false alarm) | 194 / 0 | | quotes not verbatim | 0 | 3 | 0 | 0 | DeepSeek is not error-free. On a second prompt (a nutrition question, 5 runs) it had: - one run with study data attributed to a page that doesn't contain them; - one link with two digits swapped; - one shortened quote; - two runs with quotation marks around a paraphrase. Still, it made clearly fewer of these mistakes than Qwen. Thanks for the DeepSeek support: on this hardware it has become my main model.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6564961503 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6564972385 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): Thanks, this follows the format now.
Author
Owner

@bob-u commented on GitHub (Nov 2, 2026):

Swift 1.5 IQ3_S did it in 2h4m (gfx1201; 3975 experts cached; 0.1.54 engine)

`(For full transparency: this is a computer-assisted solution. m ≤ 5 is hand-proved above; m = 6, 7, 8 are exhaustively certified by computation; m = 9 is certified by extensive search, not exhaustively; m ≥ 10 is constructive.)

Here's the full session ledger (from Hermes' own usage DB):

Wall-clock

Session: ~2 hours 4 minutes total, the last 30 min were verification hardening + write-up.
Model usage (state.db, exact)

Metric
Value
API calls 71 (+1 title-gen, +4 approval-class)
Input tokens (uncached) 68,816
Output tokens 90,578
Cache-read tokens 6,655,059
Total tokens processed ≈ 6.81 M
Reasoning tokens 0
Cost $0.00 (local endpoint at 127.0.0.1:8080)
Conversation shape

Messages: 152 (9 user, 71 assistant, 72 tool results)
Tool calls: 73 (≈35 terminal/program runs, 11 file writes/patches, ~15 process polls, the rest queries)
Files produced: 10 programs (2 Python exhaustive searchers, 2 Python hill-climbers, 3 JS solvers — srch.js, iso.js, seed.js, hc.js, beam.py, chain/extension scripts) + SOLUTION.md
Computation burned (from the programs' own counters)

m=6 exhaustive: 14,348,907 nodes (Python, 21 s)
m=7 exhaustive: 150.7 M nodes (JS, 14.6 s) + 24.6 M isomorphism-free (2.9 s, cross-checked)
m=8 exhaustive: ≈6.5 ·10⁹ nodes across 20 canonical seeds (~7 min)
m=7/8/9 hill-climb/annealing: 3,380 restarts (~15 min CPU)
m=9 seeded DFS probe: 9.35 ·10⁸ nodes in 125 s
Total: ~7.6 billion search-tree nodes, zero internet calls
Rough efficiency summary: 6.8M tokens and 7.6G search nodes → one number: 45.`

<!-- gh-comment-id:6566975565 --> @bob-u commented on GitHub (Nov 2, 2026): Swift 1.5 IQ3_S did it in 2h4m (gfx1201; 3975 experts cached; 0.1.54 engine) `(For full transparency: this is a computer-assisted solution. m ≤ 5 is hand-proved above; m = 6, 7, 8 are exhaustively certified by computation; m = 9 is certified by extensive search, not exhaustively; m ≥ 10 is constructive.) Here's the full session ledger (from Hermes' own usage DB): Wall-clock Session: ~2 hours 4 minutes total, the last 30 min were verification hardening + write-up. Model usage (state.db, exact) Metric Value API calls 71 (+1 title-gen, +4 approval-class) Input tokens (uncached) 68,816 Output tokens 90,578 Cache-read tokens 6,655,059 Total tokens processed ≈ 6.81 M Reasoning tokens 0 Cost $0.00 (local endpoint at 127.0.0.1:8080) Conversation shape Messages: 152 (9 user, 71 assistant, 72 tool results) Tool calls: 73 (≈35 terminal/program runs, 11 file writes/patches, ~15 process polls, the rest queries) Files produced: 10 programs (2 Python exhaustive searchers, 2 Python hill-climbers, 3 JS solvers — srch.js, iso.js, seed.js, hc.js, beam.py, chain/extension scripts) + SOLUTION.md Computation burned (from the programs' own counters) m=6 exhaustive: 14,348,907 nodes (Python, 21 s) m=7 exhaustive: 150.7 M nodes (JS, 14.6 s) + 24.6 M isomorphism-free (2.9 s, cross-checked) m=8 exhaustive: ≈6.5 ·10⁹ nodes across 20 canonical seeds (~7 min) m=7/8/9 hill-climb/annealing: 3,380 restarts (~15 min CPU) m=9 seeded DFS probe: 9.35 ·10⁸ nodes in 125 s Total: ~7.6 billion search-tree nodes, zero internet calls Rough efficiency summary: 6.8M tokens and 7.6G search nodes → one number: 45.`
Author
Owner

@enkynakamura commented on GitHub (Nov 2, 2026):

Thanks for adding your run, @bob-u. One note: since 1 + ... + 9 = 45, the answer needs m = 9 to be non-realizable, and in your run that rests on a non-exhaustive search. In my DeepSeek run an exact MILP (HiGHS) returned infeasible for m = 7, 8, 9, and an independent CP-SAT check needed under 2 s for m = 9. How did you cover m >= 10: a general construction, or explicit tournaments up to some bound?

<!-- gh-comment-id:6579945945 --> @enkynakamura commented on GitHub (Nov 2, 2026): Thanks for adding your run, @bob-u. One note: since 1 + ... + 9 = 45, the answer needs m = 9 to be non-realizable, and in your run that rests on a non-exhaustive search. In my DeepSeek run an exact MILP (HiGHS) returned infeasible for m = 7, 8, 9, and an independent CP-SAT check needed under 2 s for m = 9. How did you cover m >= 10: a general construction, or explicit tournaments up to some bound?
Author
Owner

@bob-u commented on GitHub (Nov 2, 2026):

I've made a mistake of pasting your question verbatim and spoiled the session. Anyway, here's what I got back:
How m ≥ 10 was covered: not a closed-form construction — three tiers:

  1. Explicit examples at 10, 11, 12 — general oriented graphs, not tournaments (many pairs are non-adjacent; e.g. the m=11 example has 39 of 55 pairs present). Found by annealing, recounted by two independent checkers, values {2..10,12}, {1..11}, {2..13}.

  2. A constructive step for 13: add an isolated vertex to G₁₂ (its count is 0, all old values ≥ 2).

  3. Verified extension chain 14→20: new vertex w with out-set O, in-set I (|O|,|I| ≤ 3); each existing arc x→y across the O×I cut creates triangle wxy, adding 1 to w, 1 to x, 1 to y per incident pair. Every step's value vector is recomputed from scratch and must be all-distinct. That's a shadow of the official induction, not the induction itself — the proof for unbounded m needs the invariant form (value set containing an interval + a high vertex with the K_{p,q} structure preserved by the gadget). So my status is: membership certified up to 20, general construction only sketched.
    On m = 9: correct — that's the one non-exhaustive tier on my side (3,380 annealing restarts, seeded DFS from the 4-in/4-out hub for 9.4·10⁸ nodes, all 21 deletions from the m=10/11 examples; raw DFS can't reach the ≈10¹⁵ iso-classes, vs the 6.5·10⁹ that certified m=8). CP-SAT in 2 s vs my 10¹⁵ is exactly the all-different propagation + symmetry advantage — your HiGHS infeasibility for 7, 8, 9 closes my weakest link and is consistent with my exhaustive 7 and 8 (good cross-check).

I couldn't rerun MILP locally: no scipy/HiGHS, no OR-Tools, and installing them would require internet, which this session forbids.

Net: with your m ≤ 9 infeasibility + my explicit 10–13 + chain to 20 (extendable by the same code), the classification S = {m ≥ 10} stands, and the answer is 45. The remaining formal gap on my side is only the unbounded induction for m ≥ 21 — say the word if you want me to formalize the gadget invariant.

<!-- gh-comment-id:6584653394 --> @bob-u commented on GitHub (Nov 2, 2026): I've made a mistake of pasting your question verbatim and spoiled the session. Anyway, here's what I got back: How m ≥ 10 was covered: not a closed-form construction — three tiers: 1. Explicit examples at 10, 11, 12 — general oriented graphs, not tournaments (many pairs are non-adjacent; e.g. the m=11 example has 39 of 55 pairs present). Found by annealing, recounted by two independent checkers, values {2..10,12}, {1..11}, {2..13}. 2. A constructive step for 13: add an isolated vertex to G₁₂ (its count is 0, all old values ≥ 2). 3. Verified extension chain 14→20: new vertex w with out-set O, in-set I (|O|,|I| ≤ 3); each existing arc x→y across the O×I cut creates triangle wxy, adding 1 to w, 1 to x, 1 to y per incident pair. Every step's value vector is recomputed from scratch and must be all-distinct. That's a shadow of the official induction, not the induction itself — the proof for unbounded m needs the invariant form (value set containing an interval + a high vertex with the K_{p,q} structure preserved by the gadget). So my status is: membership certified up to 20, general construction only sketched. On m = 9: correct — that's the one non-exhaustive tier on my side (3,380 annealing restarts, seeded DFS from the 4-in/4-out hub for 9.4·10⁸ nodes, all 21 deletions from the m=10/11 examples; raw DFS can't reach the ≈10¹⁵ iso-classes, vs the 6.5·10⁹ that certified m=8). CP-SAT in 2 s vs my 10¹⁵ is exactly the all-different propagation + symmetry advantage — your HiGHS infeasibility for 7, 8, 9 closes my weakest link and is consistent with my exhaustive 7 and 8 (good cross-check). I couldn't rerun MILP locally: no scipy/HiGHS, no OR-Tools, and installing them would require internet, which this session forbids. Net: with your m ≤ 9 infeasibility + my explicit 10–13 + chain to 20 (extendable by the same code), the classification S = {m ≥ 10} stands, and the answer is 45. The remaining formal gap on my side is only the unbounded induction for m ≥ 21 — say the word if you want me to formalize the gadget invariant.
Author
Owner

@enkynakamura commented on GitHub (Nov 3, 2026):

Thanks for running it and for the detailed ledger. Nice to see Swift 1.5 get there too and on AMD.

<!-- gh-comment-id:6613293249 --> @enkynakamura commented on GitHub (Nov 3, 2026): Thanks for running it and for the detailed ledger. Nice to see Swift 1.5 get there too and on AMD.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.

The Strata project

<!-- gh-comment-id:6658911061 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report. The Strata project
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2285
No description provided.