Skip to main content

title: SRHarness emoji: 🔬 colorFrom: blue colorTo: green sdk: docker app_port: 8000 pinned: false license: mit short_description: Agentic symbolic regression workbench

SRHarness: A Harness for Agentic Symbolic Regression

English | 简体中文

GitHub PyPI Docker Documentation Live WebUI Hugging Face Space Hugging Face WebUI arXiv Documentation build Python License

SRHarness is a domain-specific runtime for agentic symbolic regression. It lets language-model agents prepare scientific data, invoke composable analysis and fitting tools, retain evaluated hypotheses, and refine interpretable formulas over long search trajectories. Its interactive workbench also supports persistent conversations, editable task configuration, and task-specific formula evaluation through custom Evaluators.

Highlights

  • Composable scientific actions: analysis, fitting, evaluation, code execution, and formula submission use a shared tool interface.
  • Persistent scientific state: candidates, metrics, complexity, diagnostics, provenance, and Pareto rankings survive beyond one model response.
  • Managed search trajectories: the R-C-L-K lifecycle coordinates restarts, branches, refinement depth, and local sampling.
  • Interactive research workflow: the WebUI connects data preparation, task configuration, Evaluator construction, symbolic search, human guidance, and persistent workspaces.
  • Extensible symbolic modeling: SRHarness Engine supports ordinary expressions as well as indexed graph and hypergraph formulas.

Results

The paper evaluates SRHarness on LLM-SRBench under matched language-model backbones. LSR-Transform measures symbolic recovery on transformed scientific equations, while LSR-Transform-Anon removes scientific descriptions and variable semantics to test whether the search process remains effective without domain-specific textual cues. The table reports symbolic accuracy (SA):

Method / backbone LSR-Transform LSR-Transform-Anon
SRHarness + DeepSeek-v4-flash-0731 93.69% 72.97%
SR-Scientist + DeepSeek-v4-flash-0731 62.16% 39.64%
Codex + DeepSeek-v4-flash-0731 — 20.72%

With the same DeepSeek-v4-flash-0731 backbone, SRHarness substantially improves symbolic recovery over SR-Scientist on both settings. Its accuracy remains comparatively high after descriptions and variable semantics are removed, and it also outperforms Codex on the anonymized benchmark. These results indicate that the structured runtime—scientific actions, persistent hypothesis state, and trajectory management—contributes materially beyond the choice of language model alone. See the paper for the complete evaluation protocol, numerical-generalization results, complexity and resource analyses, and ablation studies.

Installation

SRHarness requires Python 3.12 or newer.

pip install sr-harness

See the installation guide for provider configuration, source installation, development environments, and optional integrations.

Hugging Face Spaces

Try the hosted WebUI at https://yumeow-srharness.hf.space/ or visit its Hugging Face Space.

The repository can also be deployed directly as a Docker Space. See the Hugging Face deployment guide for creation, secrets, persistence, and security guidance.

Quick Start

Discover a known equation: sr-harness synthetic

Set OPENROUTER_API_KEY, then use synthetic to generate data from a known equation and test whether SRAgent can recover it:

sr-harness synthetic \
  --equation 'y = 1 + x1 ** 2 + 2 * x1 * x2' \
  --n-samples 200 \
  --x-low -2 \
  --x-high 2 \
  --seed 42 \
  --llm-provider openrouter \
  --llm-model deepseek/deepseek-v4-flash-0731 \
  --save-path ./logs/quick-start \
  -R 1 -C 1 -L 10 -K 1

If you use another provider, configure its API key and change --llm-provider and --llm-model accordingly.

Interactive workbench: sr-harness run

Use run for the complete interactive research workflow. It starts the WebUI for data preparation, task and evaluator configuration, symbolic-regression search, and human guidance:

sr-harness run \
  --host 127.0.0.1 \
  --port 8000 \
  --workspace-dir ./workspaces \
  --save-path ./logs/webui

Then open http://127.0.0.1:8000/. The workspace registry and conversation workspaces are stored under ./workspaces, while session snapshots and run records are stored under ./logs/webui. Hosted instances are also available at http://sim1.fiblab.tech:30000/ and https://yumeow-srharness.hf.space/.

Documentation

Citation

@article{yu2026srharness,
  title   = {SRHarness: A Harness for Agentic Symbolic Regression},
  author  = {Yu, Zihan and Zhou, Shixuan and Huang, Hao and Ding, Jingtao and Li, Yong},
  journal = {arXiv preprint arXiv:2609.35501},
  year    = {2026}
}

License

SRHarness is released under the MIT License.

Metadata

Release files for sr-harness 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sr-harness 1.0.7
File Size Uploaded Provenance
sr_harness-1.0.7.tar.gz 543.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sr-harness 1.0.7
File Interpreter ABI Platform
sr_harness-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / sr_harness-1.0.7.tar.gz

Download URL sr_harness-1.0.7.tar.gz
Size 543.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5f7ef54ece7e74cc9bd866410691c5bc671475014024920fc1ae4ff481905cf1
BLAKE2b-256 checksum
How to use checksums
04019f3d48dd37ccc38f6e5671728838e1971b08f23765a58cca7731fe3c3111
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sr_harness-1.0.7-py3-none-any.whl

Download URL sr_harness-1.0.7-py3-none-any.whl
Size 616.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44c3100e01fb86fd78621a4f288664a162f90db7326730b428f52716c973f64d
BLAKE2b-256 checksum
How to use checksums
dbc78ce10915709a7042f8448b48ba11eb225e8670125037ff5e393363bb434c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for sr-harness 1.0.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page