Skip to content

test(symbolic): neuro-symbolic acceptance benchmark + CI gate (#733) - #912

Merged
AmitoVrito merged 1 commit into
mainfrom
feat/neuro-symbolic-gate-733
Aug 2, 2026
Merged

AmitoVrito merged 1 commit into
mainfrom
feat/neuro-symbolic-gate-733

Conversation

@AmitoVrito

@AmitoVrito AmitoVrito commented Aug 2, 2026 •

Copy link
Copy Markdown
Collaborator

Closes the #733 quantitative acceptance criterion (verified-reasoning uplift + CI gate).

  • benchmarks/neuro_symbolic_bench.py — 20 arithmetic/algebra problems, comparing an LLM-only direct answer (a FakeLLM that slips on multi-digit math, like real LLMs) vs the real NeuroSymbolicAgent + SympyBackend. Solver-grounded answers: 100%; direct baseline: 60% → 40pp uplift. Deterministic, offline, no keys.
  • benchmarks/test_neuro_symbolic_bench.py + the neuro-symbolic-gate CI job — enforces neuro-symbolic >=95%, uplift >=25pp, and a genuinely-fallible baseline.
  • Found & filed a real bug while building this: verify() ignores the answer (NeuroSymbolicBackend.verify ignores the answer — wrong LLM answers pass verification #911) — the benchmark reads the solver-grounded proof.raw_output, so it's unaffected.

Refs #733.

Add benchmarks/neuro_symbolic_bench.py comparing LLM-only direct answers
against the real NeuroSymbolicAgent + SympyBackend on 20 arithmetic problems.
The solver-grounded answer is 100% correct vs ~60% for the direct baseline —
a 40pp uplift. benchmarks/test_neuro_symbolic_bench.py enforces neuro-symbolic
>=95%, uplift >=25pp, and a genuinely fallible baseline, via a new
neuro-symbolic-gate CI job (uv sync ... --extra symbolic).

Refs #733. (The benchmark reads the solver-grounded proof.raw_output; the
separate verify() answer-checking gap is tracked in #911.)
@AmitoVrito
AmitoVrito merged commit 37ef130 into main Aug 2, 2026
22 checks passed
@AmitoVrito
AmitoVrito deleted the feat/neuro-symbolic-gate-733 branch August 2, 2026 08:34
ayushbhatt1224 pushed a commit to ayushbhatt1224/SynapseKit that referenced this pull request Aug 12, 2026
…it#919)

The Benchmarks workflow ran the full benchmarks/ suite (which since SynapseKit#912
includes the neuro-symbolic gate importing SympyBackend) without the
symbolic extra, so nightly and v*-tag runs failed with "sympy is
required". Add --extra symbolic to the uv sync, matching the
neuro-symbolic-gate job in ci.yml. Verified locally: `make bench` -> 35
passed.

Closes SynapseKit#919
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.

1 participant