
HEA-Bench
io.github.dfieser由 GitHub 帳號 dfieser 發布v2.9.3更新於 Nov 7, 2026
High-entropy alloy and oxide descriptors, phase rules, corpus, properties, and design tools.
概覽
把 hea-bench 材料科學函式庫包裝成 24 個確定性工具,用於高熵合金與氧化物描述符、相規則、語料資料與成分設計搜尋。
- 可以做什麼
- 解析成分並計算合金描述符、Miedema 混合焓與九條經驗相規則,支援自訂元素與元素對數值
- 產生高熵氧化物與陶瓷(碳化物、氮化物、二硼化物)報告,含氧化態與可成形性判定
- 在本機建置、查詢、描述並匯出實驗語料,讀取實測性質資料
- 預測硬度與相集合,附上共形區間與適用範圍標記
- 在限制條件下搜尋成分,並為主動學習實驗建議下一批樣品
- 執行並評分相預測基準與覆蓋度研究,回報目前環境可用的功能
- 適用情境
- 適合需要為合金或氧化物成分提供有憑據、可引用的數值而非猜測值的情況,也適合依內建語料篩選候選成分並規劃實驗。
- 執行需求
- 透過 stdio 在本機執行;需安裝帶 mcp 額外項目的 PyPI 套件並啟動 hea-bench-mcp 指令,例如使用 uvx。部分功能依賴選用額外項目(擬合模型、硬度、互通後端),缺少時會給出明確訊息。未宣告需要帳號、API 金鑰或網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 HEA-Bench,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
hea-bench
[Paper] [DOI] [PyPI] [Python] [CI] [License: MIT]
Open, interpretable tools for computing the standard high-entropy-alloy (HEA) and high-entropy-oxide (HEO) thermodynamic and geometric descriptors and the classic empirical phase-prediction rules, from any composition. Every descriptor is a transparent closed-form expression over a curated element-property table, validated against the primary literature. The fitted predictions (hardness, phase prediction sets) carry calibrated uncertainty and flag alloys unlike their training data.
Try it now: https://dfieser.github.io/hea-bench/. It needs no install, runs entirely in your browser, and has every library feature: the calculator for alloys, oxides and ceramics with property and phase predictions, the experimental dataset, alloy search and experiment planning, and the benchmark.
[The HEA-Bench browser calculator showing the equimolar Cantor alloy CoCrFeMnNi, with the composition on the left and the computed descriptors on the right.]The equimolar Cantor alloy CoCrFeMnNi, as the browser app reports it. The Python library, the desktop app and this page print the same digits, and a parity suite keeps it that way.
Using an AI coding agent to integrate this? See AGENTS.md for a machine-oriented guide to the API, exact return types and units, the fastest path to each task, and the mistakes to avoid.
What it computes
For any composition it reports:
- Core descriptors: mixing entropy ΔSmix, atomic-size mismatch δ, mean melting temperature Tm, Miedema mixing enthalpy ΔHmix, valence-electron concentration VEC, Yang–Zhang Ω, Pauling electronegativity mismatch Δχ, Mansoori excess entropy SE, ΔGss, ΔGmax, King Φ, Ye φ.
- Phase-prediction rules: Yeh entropy, Zhang δ, Guo–Liu VEC, Yang–Zhang Ω, King Φ, Ye φ, Senkov–Miracle κ, the Tsai σ-phase window and Sheikh ductility.
- Miedema formation enthalpies: compound / solid-solution / amorphous, decomposed into chemical, elastic, structural, and topological terms.
- Your own elements and pair values: any descriptor or rule, for a composition with an element or pair enthalpy that is not tabulated.
- High-entropy oxides (
hea_bench.oxides+ the apps' Oxides mode): rock-salt, perovskite, fluorite, and pyrochlore formability descriptors over Shannon ionic radii with automatic charge-balance oxidation-state assignment: per-sublattice configurational entropy, cation size disorder, Goldschmidt t / octahedral μ / Bartel τ, the fluorite radius-dispersion rule, and the pyrochlore radius-ratio window.
Element coverage: 55 elements for alloys (Ag Al Au Be Bi Ca Ce Co Cr Cu Dy Er Fe Ga Gd Ge Hf Ho In Ir La Li Lu Mg Mn Mo Nb Nd Ni Os Pb Pd Pr Pt Re Rh Ru Sb Sc Si Sm Sn Sr Ta Tb Th Ti Tm U V W Y Yb Zn Zr, covering the full experimentally active rare-earth HEA palette plus the nuclear, solder, and HE-BMG corners). The Miedema pair table covers 75 elements and 1484 of our 1485 pairs. The one missing pair, Th-U, is reported, never zeroed. The oxide module's Shannon table covers 94 elements.
How a number gets made
No fitted model sits anywhere in this chain. Each descriptor is a closed-form expression over curated tables, and the report carries the literature source of every input alongside the value.
Four ways to run it, each with every feature
Every feature is in all four parts, so pick whichever suits you and you lose nothing. This parity is a standing project rule, and CI enforces it four ways:
tests/test_feature_parity.pyfails whenever a public feature lacks its library function, its MCP tool or a working app surface.- A headless browser uses every tab of the built site.
- The built desktop exe goes through the same steps before it is attached to a release.
- A freshly installed wheel answers every MCP tool.
pip install hea-bench alone has no dependencies and covers everything
except the fitted models and the MCP server. The [all] extra adds
scikit-learn and the MCP SDK for those.
All four share one calculation core. The browser/desktop
core (web/hea-calculator-core.js) is a pure-JS port of the Python
library. tests/test_web_parity.py guarantees the two match on all
1484 binary pairs and the canonical multi-element fixtures, and
tests/test_web_oxides_parity.py does the same for the oxide module,
down to identical warning messages. The app's Dataset, Design and
Benchmark tabs and its predictions panel run the Python package itself,
unchanged, inside the page (Pyodide, web/hea-engine-worker.js).
tests/test_web_engine.py checks that the in-page package returns
exactly what CPython returns.
Quick start (Python)
These Cantor-alloy values are pinned in the test suite as the canonical sanity check. The rules are simple empirical surrogates, fast screens rather than predictions, so treat their output accordingly.
Descriptor backends (optional interop)
A pluggable backend can also compute the descriptors. The default
(native) is this package's own stdlib implementation. With
pip install "hea-bench[interop]", the same interface drives an
installed HEACalculator
(GPLv3, installed at the user's choice). A workflow standardized on
HEACalculator's numbers can then keep them while using everything
downstream here:
The two backends vendor different reference data (radius conventions differ most), so same-named values legitimately differ. docs/backend-agreement.md gives the measured comparison for each descriptor. Quantities whose implementations differ structurally are deliberately not mapped onto each other. The benchmark's published baselines use the native backend unchanged.
Quick start (oxides)
Each describe_* report carries the solved oxidation states, the
Shannon radii actually used, every descriptor, the formability
verdicts with their windows, and any warnings. See
examples/02_oxides_walkthrough.py
for the full tour, including the fluorite and pyrochlore screens and
oxidation-state overrides.
Quick start (ceramics, experimental)
hea_bench.ceramics extends the calculator to rock-salt carbides and
nitrides and AlB2-type diborides, composition-only and honest about
what that buys:
Reports carry the metal-sublattice entropy in every published normalization convention, because papers switch between them without warning. They give VEC with annotated reference points rather than a verdict, since the literature marks points, not one window. They also state what is deferred. The size-mismatch descriptor waits because the field computes it from DFT binary-cell bond lengths, and adopting a cited table is real curation work. Entropy-forming-ability and DEED are DFT-ensemble quantities that this package cannot and does not claim to reproduce. Background, citations, and a license audit of candidate ceramics datasets: docs/ceramics.md.
Quick start (AI agents, MCP)
LLM agents hallucinate descriptor values. This server grounds them.
hea_bench.mcp_server exposes every feature of the package over the
Model Context Protocol as 24
deterministic tools. The calculator: parse_composition, batch
alloy_descriptors (with the Miedema enthalpies) and alloy_rules,
both taking custom elements and pair values, omega_sensitivity,
oxide_report, ceramic_report, element_data and
element_coverage. The dataset: corpus_build (once, to build the
corpus locally), corpus_query, corpus_describe, corpus_export and
measured_properties. Predictions: predict_properties with
intervals and predict_phase_set with prediction sets, both carrying
the domain flag, and check_applicability. Design:
design_search, with hard caps on palette, step and candidate count,
and campaign_suggest, on a campaign file or an inline campaign. The
benchmark: benchmark_summary, benchmark_run, benchmark_folds,
benchmark_score and coverage_study. And about. Every response
carries units or uncertainty fields, citation keys where a
parametrization is involved, and the library version. An agent's
reasoning trace then contains auditable receipts rather than bare
floats. The about() tool reports which capabilities are available in
the running environment, and a missing optional extra comes back as a
clear message naming the exact install.
Register it with any MCP client (Claude Desktop, Cursor, ...), for
example in claude_desktop_config.json:
The omega_sensitivity tool is worth singling out: it reports the
per-pair Miedema contributions and how far Ω moves when the dominant
element's pair enthalpies are shifted within the spread of published
compilations, so an agent can ask not just for a number but for how
much to trust it.
Quick start (browser, no install)
The app runs entirely client-side. Its tabs:
- Calculator. Every descriptor, all nine phase rules, the Miedema decompositions, the robustness of Ω to the pair table, density, cost, hardness with its interval, the phase prediction set and the domain flag. Oxides and Ceramics (carbides, nitrides, diborides) are modes of the same tab.
- Dataset. The consolidated experimental corpus with every source's label and paper, filters and CSV download, plus the measured hardness and density data.
- Design. Composition search with property limits, rule filters and the Pareto front, and experiment planning from your own measurements.
- Benchmark. The frozen random and family-grouped splits, live baseline reruns, scoring of your own predictions, and the coverage study.
Two ways to open it:
- Open the hosted site: https://dfieser.github.io/hea-bench/.
- Or clone the repo, run
python tools/build_web_engine.pyonce (assembles the pinned in-page engine, about 30 MB), thenpython -m http.server -d weband open http://localhost:8000. Openingweb/index.htmldirectly from disk also works for the calculator, but browsers block the engine onfile://pages, so the other tabs need the local server.
The calculator ships its own documentation: a Theory view deriving
every alloy and oxide formula with citations, a grouped, filterable
Equations reference, and a grouped References bibliography.
Deep links open a view directly (index.html#theory,
#equations, #refs). The parity-critical math lives in
web/hea-calculator-core.js and is regression-checked against Python
by the two parity test suites.
Paired evaluation: the phase-prediction benchmark (experimental)
Published HEA phase-prediction accuracies are mostly measured with
random train/test splits over corpora full of stoichiometric series, so
models are tested on close variants of alloys they trained on. That
largely measures interpolation within known systems.
hea_bench.benchmark ships frozen, family-grouped and random paired
splits over a consolidated experimental corpus (~7,700 alloys) and an
evaluator that reports both side by side:
A stock random forest over this package's own descriptors scores 0.941
balanced accuracy under the random split and 0.734 under the grouped
one. Neither number is wrong. They answer different questions (new
stoichiometries of known systems versus unseen element systems). The
gap between them quantifies how much of the random-split score
comes from testing on close relatives of training alloys. For this
interpolation-versus-extrapolation reading of grouped evaluation, see
Li et al., Commun. Mater. 6:9 (2025),
doi:10.1038/s43246-024-00731-w.
Baselines, split digests, and full provenance:
docs/benchmark-baselines.md.
Every source dataset ships with the package under CC BY 4.0 (see
data/raw/README.md), and the corpus is built
from them on your machine, once, with no download.
hea_bench.corpus.build_corpus() checks the largest source against its
pinned SHA-256 and builds every corpus version. The apps and the MCP
server's corpus_build tool do the same.
The corpus as a standalone product
The consolidated experimental corpus behind the benchmark is also addressable directly, with no task or split machinery involved:
Every row carries per-source canonical and verbatim labels, Borg's
processing route and primary-literature DOI where available, and
upstream record identifiers, so a label can be audited without leaving
the package. Provenance chains, per-source license status,
harmonization rules, and known limitations are documented in the
corpus card. load_corpus() opens the largest
version, v0.2.0, which adds the LLM-extracted Chizhevskiy database.
load_corpus(version="0.1.0") is the hand-curated reference (7,783
alloys) that the benchmark, the phase predictions and the domain flag
always use, so every published number stays put.
Uncertainty and domain of applicability
hea_bench.uncertainty is the trust layer for anything fitted on the
corpus. Conformal prediction wraps any sklearn-style model with
sets or intervals carrying a distribution-free finite-sample coverage
guarantee, and a domain-of-applicability model says whether that
guarantee's exchangeability assumption plausibly holds for your query:
The novelty output is several deliberately orthogonal signals plus one
conservative in_domain flag, because the signals fail differently and
a single scalar invites misreading. Empirical coverage of the conformal
sets on unseen alloy systems, in and out of domain and by element
count, is measured in
docs/uncertainty-coverage.md. The
released phase sets calibrate by cross-validation over whole alloy
systems, separately for alloys with fewer than four and with four or
more elements. Their 90 percent sets cover 0.900 of unseen-system
alloys on the single-phase task and 0.884 on the phase-structure task.
Read the flag together with the set size rather than either alone.
These tools describe this package's confidence about your composition
on this corpus, nothing else.
Property predictions, in explicit tiers
hea_bench.properties predicts what experimentalists ask about first,
with the data quality stated in the API rather than implied:
Tier A (density, melting_temperature, and an explicitly indicative
cost_per_kg over a date-stamped, per-element-sourced price table) is
closed-form arithmetic over cited tables, validated where experiment
exists (docs/property-tier-a.md).
Tier B (hardness, behind pip install "hea-bench[properties]") is a
seeded random forest over this package's descriptors wrapped in a
family-grouped conformal interval and a domain flag.
docs/property-hardness.md states its
held-out error, its interval calibration, and the decisions that error
does and does not support. Intervals are wide because the public data
is small and heterogeneous. The wide interval is the honest outcome,
shown rather than hidden. Properties whose public data
cannot support a defensible held-out error (yield strength across
uncontrolled test temperatures, ductility, corrosion) are deliberately
not shipped, and the model card says why.
Constrained composition search
hea_bench.design.search answers "what should I make" as a screening
aid: a deterministic composition lattice over your palette, filtered by
rule, property, composition, and domain constraints, returning a Pareto
front where every candidate carries its full receipt:
The domain constraint is on by default, because optimizers exploit
model error hardest where data runs out. Opting out is explicit.
optimize_bound="lower" ranks fitted objectives by the conservative
end of their intervals. The search is exhaustive within a hard budget
and refuses loudly rather than sampling silently, so a result is
reproducible by construction.
docs/design-recovery.md studies where
measured alloys land relative to a recovered front. The front is a
prioritization aid, not a set of answers.
Active-learning campaigns (bring your own measurements)
hea_bench.design.campaign.Campaign runs the active-learning loop:
observe your own measurements, get a ranked next batch, and keep
everything in a plain JSON file on your disk (no accounts, no server,
no telemetry):
The surrogate is a seeded random forest. Each suggestion carries a 90 percent conformal interval set from the forest's out-of-bag errors, so calibration costs none of your measurements. Acquisition is expected improvement or UCB, with batched picks via the believer heuristic. Hardness campaigns warm start from the Borg records inside your palette, so the loop is useful before your tenth sample. Below 10 informative rows it refuses rather than pretending. docs/campaign-replay.md has two replays on the Borg hardness record: the loop against random selection, with the intervals' coverage, and a year-ordered replay on Al-Co-Cr-Fe-Ni.
A note on Ω near ΔHmix ≈ 0
Ω = Tm·ΔSmix / |ΔHmix| diverges as ΔHmix → 0, so for
near-ideal alloys (|ΔHmix| ≲ 1–2 kJ/mol) the Ω magnitude is
extremely sensitive to the choice of Miedema pair table (sources
disagree most on Mn). The phase verdict (Ω ≫ 1.1) stays robust even when
the number does not, so read Ω qualitatively in that regime.
Project layout
Development
The HTML calculator (web/index.html over
web/hea-calculator-core.js) is an independent JavaScript
implementation of the same descriptors and rules. When you modify the
Python descriptor code, update the JS core to match and re-run
tests/test_web_parity.py and tests/test_web_oxides_parity.py so the
surfaces don't drift. The element data tables inside the JS core are
generated from the Python library by tests/data/_sync_js_tables.py
and tests/data/_sync_js_oxide_tables.py. Regenerate them, never
hand-edit them.
License
MIT. The vendored
matminer Miedema data files remain
under their upstream BSD-3-Clause license, preserved at
descriptors/data/LICENSE.matminer.txt.
Contributing and support
Contributions and bug reports are welcome. See CONTRIBUTING.md for development setup and the testing convention.
Report a bug or request a feature in the
issue tracker. Ask a
question or float an idea in
Discussions, where
the Q&A category is the right place for how a descriptor is defined,
which rule applies to a composition, or why two sources disagree.
Answers there stay findable for the next person with the same question.
For direct contact, email the maintainer at [email protected].
Participation is governed by the Code of Conduct.
Acknowledgements
Yen-Ming Horng (@infinitus01),
Independent Researcher, Taiwan. External reproducibility and
documentation review. Reported the delta_g_max documentation contract
mismatch corrected in v2.1.4.
External reviews of this kind cover reproducibility and documentation-to-implementation consistency. They are not a validation or endorsement of the underlying scientific conclusions.
Citation
If you use hea-bench in your work, please cite the paper that describes it:
Fieser, D.; Dewanjee, U.; Hu, A. HEA-Bench: An AI-Agent-Optimized Calculator of High-Entropy Alloy and Oxide Descriptors and Phase-Prediction Rules. Materials 2026, 19, 3075. https://doi.org/10.3390/ma19143075
Machine-readable metadata, including this preferred citation, is in
CITATION.cff (GitHub's "Cite this repository"
button uses it). To reference the exact software version you used,
additionally cite the Zenodo archive: the concept DOI
10.5281/zenodo.20346287
always resolves to the latest version.
When citing hea-bench, please also cite the primary sources for the parametrizations it implements: de Boer et al. 1988 for the Miedema model, the rule papers (Yeh 2004, Zhang 2008, Guo–Liu 2011, Yang–Zhang 2012, King 2016, Ye 2015), the oxide primaries (Shannon 1976, Goldschmidt 1926, Bartel 2019, Spiridigliozzi 2021, Subramanian 1983), matminer for the vendored pair table, and pymatgen for the Shannon-radius digitization. The full grouped bibliography is in the calculator's References view.
Disclaimer
Descriptor values and rule predictions reported by hea-bench are empirical estimates for research and informational purposes only. The rules and descriptors are semi-empirical surrogates with known limitations. No warranty is made as to accuracy, completeness, fitness for any particular purpose, or suitability for material qualification. Do not use these outputs as the sole basis for engineering design or material qualification without independent verification by validated thermodynamic methods (e.g. CALPHAD or DFT).
Software is provided "as is" under the MIT License.
Vendored Miedema elemental parameters from
matminer remain under
their upstream BSD-3-Clause license. See
src/hea_bench/descriptors/data/LICENSE.matminer.txt.
來源:README.md,提交 0a4d6a4
工具
0版本歷史
6- v2.9.3最新Nov 7, 2026
- v2.9.1Nov 7, 2026
- v2.9.0Oct 8, 2026
- v2.7.3Oct 6, 2026
- v2.6.2Oct 6, 2026
- v2.5.6Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分