AutoOntologyBench: A Task-Grounded Benchmark for Agentic Knowledge Engineering
Organizations: Durham University · Alibaba DAMO Academy, Alibaba Group · Shanghai University of Finance and Economics · Peking Union Medical College Hospital, Peking Union Medical College
Abstract
Foundation-model agents are increasingly extending beyond software engineering (SWE) into autonomous scientific research, where acquiring and integrating domain knowledge remains a critical challenge. Recent industrial advances have increasingly adopted knowledge graphs and ontology-based semantic layers to organize heterogeneous knowledge into reusable representations. We ask: Can autonomous agents construct ontologies that help them solve real tasks, and do they offer measurable benefits over alternative knowledge representations? Existing benchmarks evaluate ontology correctness or agent task success in isolation, leaving the value of autonomously acquired knowledge unresolved. We therefore introduce AutoOntologyBench, a task-grounded benchmark comprising 19,947 audited tasks grounded in 18 real-world knowledge sources across 7 domains, with source-native verification. Spanning Application, Repair, Organization, and Construction, AutoOntologyBench compares nine frontier-model agents under matched knowledge representations. Layered on retrieval, agent-built ontologies add 6.1 points of task success, yet trail an expert-derived reference by 13.0, identifying autonomous knowledge acquisition as the bottleneck to scalable scientific research. Code and resources are available at https://github.com/VinyehShaw/AutoOntologyBench.
Figures & tables
| TSR (%) | Cost per valid success | Mapping (Common-7) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Model | Application | Repair | Organization | Construction | Overall | Tokens | API calls | Wall (s) | Macro-F1 | Coverage |
| Claude Opus 5.5 | 38.6 | 65.1 | 36.0 | 55.8 | 47.3 | 51.8k | 2.41 | 212 | 0.461 | 88.7% |
| GPT6-sol | 38.9 | 67.4 | 28.9 | 50.3 | 45.8 | 46.7k | 2.52 | 176 | 0.443 | 87.8% |
| Gemini 3.5 Flash | 30.8 | 60.3 | 22.6 | 57.2 | 39.6 | 19.2k | 2.95 | 36 | 0.372 | 82.9% |
| DeepSeek v4-pro | 26.0 | 58.2 | 18.6 | 47.7 | 35.5 | 34.9k | 2.88 | 304 | 0.324 | 78.2% |
| DeepSeek-V4.1-Flash | 24.6 | 53.8 | 24.4 | 38.0 | 34.5 | 17.9k | 3.02 | 98 | 0.291 | 74.0% |
| Task regime | Domain | Overall | Per valid success | ||||||||||||
| Condition | Applic. | Repair | Organ. | Constr. | Chem. | Bio. | Clin. | Workf. | Home | Policy | Web | TSR | RAG | Tokens | API |
| Direct | 28.3 | 56.0 | 21.3 | 43.1 | 16.8 | 34.8 | 30.0 | 52.3 | 57.4 | 50.8 | 79.1 | 36.0 | 2.7 | 37.9k | 2.91 |
| RAG only | 30.9 | 58.6 | 24.1 | 46.5 | 18.5 | 38.0 | 33.9 | 54.6 | 61.6 | 54.2 | 81.7 | 38.7 | – | 44.3k | 2.97 |
| Native DSL | 31.6 | 59.6 | 22.7 | 47.2 | 19.9 | 37.0 | 33.4 | 55.3 | 60.3 | 55.4 | 82.4 | 39.0 | +0.3 | 51.0k | 3.46 |
| Ontology only | 30.8 | 60.6 | 33.2 | 48.8 | 26.0 | 41.6 | 32.7 | 57.9 | 57.8 | 52.1 | 78.8 | 41.9 | +3.2 | 52.0k | 3.39 |
| RAG + Ontology | 33.8 | 63.6 | 35.7 | 52.2 | 30.4 | 45.1 | 35.8 | 56.5 | 60.5 | 53.7 | 80.8 | 44.8 | +6.1 | 53.7k | 3.27 |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Definition |
|---|---|
| Task instance: pinned source snapshots of the lane, user goal, initial state, public evidence, permitted tools, probe budget, private oracle. | |
| P0, P1 | The single-answer protocol of the released benchmark (Direct) and the two-phase research and execution protocol of the representation study. |
| Model and representation condition (Direct, RAG only, Native DSL, Ontology only, RAG + Ontology, expert-derived reference, namespace-only stub, or an intervention Gold/Corrupt/Repaired). | |
| Probe issued in the research phase, the label returned by the native executor, its declared cost, and the number of probes. | |
| Research behavior of model under condition , and the knowledge artifact it produces (retrieved passages, a lane-native declarative artifact, or an ontology ; Direct has none). | |
| Private oracle (reference solution, rules, hidden tests) and the native verifier that checks answer or final state against it with the native executor on the pinned snapshots . |
| Audit outcome / rejection reason | Count |
| Candidates submitted | 20,000 |
| Qualified (released) | 19,947 |
| Pending / missing | 0 |
| Goal mismatch | 35 |
| Mutation insensitive | 7 |
| No positive witness | 5 |
| ID | Domain | Lane and official source | Native executor (verifier) | Tasks | Fam. | Native knowledge acquired | Representative task |
| L01 | Policy | Gatekeeper library Open Policy Agent contributors (2026) | OPA/Rego admission | 1,196 | 28 | Rego, ConstraintTemplate, parameters, official tests | make an object satisfy requiredlabels without touching guarded siblings |
| L02 | Policy | Kubernetes CEL / VAP The Kubernetes Authors (2026) | cel-go evaluation | 700 | 20 | CEL expressions, referenced schema, admission context | validate a replica bound under a CEL admission expression |
| L03 | Workflow | Camunda examples (700) + DMN TCK (300) Camunda contributors (2026) | DMN engine | 1,000 | 16 | DMN XML, hit policy, typed inputs, cross-table relations | read a decision table to authorize an order |
| L04 | Chemistry | Rhea + ChEBI downloads Rhea (2026) ; EMBL-EBI (2026b) | curated join | 3,500 | 43 | reaction RDF, participants, cross-references, ChEBI ontology | list Rhea reactions involving a given ChEBI compound |
| L05 | Chemistry | RDKit + licensed molecule set RDKit contributors (2026) | SMARTS query DSL | 1,300 | 23 | functional-group hierarchy, SMARTS, SDF/SMILES entities | select molecules matching a functional-group SMARTS |
| L06 | Biology | Gene Ontology + annotations Gene Ontology Consortium (2026) | OWL RL + Jena | 2,299 | 32 | go-basic/go-plus, GAF annotations, term hierarchy | decide an entailment over the GO hierarchy |
| Condition | Artifact | Initial state | Consumer |
|---|---|---|---|
| Direct | none | public task | model answer |
| RAG only | retrieved passages | public task | model |
| Native DSL | lane-native DSL artifact | public task | lane executor |
| Ontology only | ontology built by the agent | public task | ontology consumer |
| RAG + Ontology | populated from retrieved evidence | public task | ontology consumer |
| Expert-derived reference | curated rule layer | public task | frozen executor |
| Corpus | R@5 | R@10 | Tok/q | ms |
|---|---|---|---|---|
| Chemistry | 0.58 | 0.74 | 820 | 48 |
| Biology | 0.66 | 0.81 | 760 | 40 |
| Clinical | 0.55 | 0.71 | 840 | 51 |
| Workflow | 0.60 | 0.76 | 800 | 45 |
| Home tasks | 0.57 | 0.73 | 810 | 47 |
| Policy | 0.62 | 0.78 | 780 | 42 |
| Cohort | Condition | Launches | Successes | TSR (%) | vs Gold | vs Corrupt |
|---|---|---|---|---|---|---|
| Governed | Gold | 13,500 | 10,683 | 79.13 | +0.00 | +23.67 |
| Corrupt | 13,500 | 7,488 | 55.47 | -23.67 | +0.00 | |
| Repaired | 13,500 | 9,909 | 73.40 | -5.73 | +17.93 | |
| Equivalent | 13,500 | 10,656 | 78.93 | -0.20 | +23.47 | |
| Irrelevant | 13,500 | 10,665 | 79.00 | -0.13 | +23.53 | |
| Unaffected | Gold | 8,100 | 6,390 | 78.89 | +0.00 | +0.56 |
| Statistic | Median | Range | Mean |
|---|---|---|---|
| Concepts | 3 | 0–14 | 5.3 |
| Object relations | 4 | 0–8 | 4.9 |
| Datatype properties | 7 | 0–17 | 10.0 |
| Relations and properties | 11 | 0–24 | 14.9 |
| SHACL node shapes | 3 | 0–12 | 4.9 |
| Property constraints | 11 | 0–25 | 12.5 |
| TSR (%) | Per valid success | ||||||||
| Model | Applic. | Repair | Organ. | Constr. | Overall | V-TSR | RAG | Tokens | API |
| RAG only | |||||||||
| Claude Opus 5.5 | 40.7 | 66.8 | 37.3 | 57.5 | 49.0 | 48.4 | – | 59.7k | 2.52 |
| GPT6-sol | 40.1 | 69.8 | 31.1 | 53.6 | 47.8 | 47.5 | – | 61.4k | 2.57 |
| Gemini 3.5 Flash | 31.9 | 62.2 | 24.9 | 59.3 | 41.3 | 41.1 | – | 25.8k | 3.15 |
| DeepSeek v4-pro | 28.7 | 60.4 | 21.0 | 51.5 | 38.1 | 37.6 | – | 40.7k | 3.09 |
| Domain | Lane | Direct | RAG | DSL | Onto. | RAG+Onto. | Ref. | Stub † | ||
|---|---|---|---|---|---|---|---|---|---|---|
| Chemistry | Rhea–ChEBI | 3,500 | 14.7 | 16.9 | 17.4 | 27.1 | 31.1 | 64.2 | 8.6 | +14.3 |
| RDKit | 1,300 | 26.5 | 27.5 | 31.8 | 30.0 | 33.1 | 52.6 | 18.3 | +5.6 | |
| ChEMBL | 1,500 | 13.1 | 14.4 | 15.1 | 19.7 | 26.1 | 56.5 | 7.8 | +11.8 | |
| Biology | Gene Ontology | 2,299 | 29.5 | 32.1 | 31.4 | 34.0 | 36.4 | 40.9 | 17.8 | +4.3 |
| BioModels | 950 | 15.3 | 18.2 | 17.6 | 23.0 | 26.5 | 33.7 | 4.3 | +8.3 | |
| Reactome | 1,500 | 78.0 | 81.5 | 80.3 | 84.5 | 88.9 | 91.2 | 52.9 | +7.4 |
| Source (domain) | Claude Opus 5.5 | GPT6-sol | Gemini 3.5 Flash | DeepSeek v4-pro | DeepSeek-V4.1-Flash | Kimi k3 | Qwen 3.8-max | GLM 5.3 | Qwen 3.7 Flash | |
|---|---|---|---|---|---|---|---|---|---|---|
| Rhea–ChEBI (Chemistry) | 3,500 | 33.8 | 36.1 | 19.5 | 1.4 | 26.4 | 6.8 | 0.7 | 0.2 | 7.5 |
| RDKit (Chemistry) | 1,300 | 45.2 | 39.5 | 30.4 | 23.6 | 33.7 | 17.9 | 21.8 | 8.7 | 17.8 |
| ChEMBL (Chemistry) | 1,500 | 29.6 | 24.3 | 18.9 | 0.4 | 32.8 | 5.6 | 1.2 | 0.2 | 4.8 |
| Gene Ontology (Biology) | 2,299 | 48.6 | 44.2 | 34.7 | 36.8 | 22.6 | 22.0 | 24.8 | 20.7 | 10.7 |
| BioModels (Biology) | 950 | 31.6 | 27.4 | 14.5 | 19.1 | 10.8 | 6.6 | 11.0 | 10.2 | 6.4 |
| Reactome (Biology) | 1,500 | 86.0 | 88.3 | 78.7 | 83.8 | 57.3 | 78.9 | 80.2 | 82.0 | 66.4 |
| Model / domain | Applic. | Repair | Organ. | Constr. | All |
|---|---|---|---|---|---|
| Tasks | |||||
| Chemistry | 1,825 | 1,412 | 2,866 | 198 | 6,300 |
| Biology | 2,168 | 1,906 | 1,635 | 340 | 6,049 |
| Clinical | 559 | 528 | 105 | 108 | 1,300 |
| Workflow | 786 | 742 | 394 | 222 | 2,144 |
| Home tasks | 457 | 431 | 29 | 191 | 1,108 |
| Gatekeeper | Kubernetes CEL | Both lanes | |||||
| Condition | TSR | V-TSR | TSR | V-TSR | TSR | V-TSR | |
| Direct | 53.9 | 53.9 | 45.6 | 45.6 | 50.8 | 50.8 | +0.0 |
| RAG only | 57.2 | 53.2 | 49.3 | 45.1 | 54.2 | 50.2 | 4.0 |
| Native DSL | 58.4 | 56.3 | 50.4 | 48.7 | 55.4 | 53.5 | 2.0 |
| Ontology only | 55.1 | 53.6 | 47.1 | 45.0 | 52.1 | 50.4 | 1.8 |
| RAG + Ontology | 56.4 | 54.4 | 49.1 | 47.0 | 53.7 | 51.7 | 2.1 |
| Model | RDKit sets (72) | GO aspect (53) | BioMod. traj. (40) | BioMod. role (40) | PM4Py relab. (35) | PM4Py dual (42) | UniProt EC (80) | Macro-F1 | Cov. (%) |
|---|---|---|---|---|---|---|---|---|---|
| Claude Opus 5.5 | 0.950/86 | 0.970/99 | 0.210/92 | 0.120/90 | 0.470/100 | 0.400/100 | 0.107/71 | 0.461 | 88.7 |
| GPT6-sol | 0.930/83 | 0.960/98 | 0.170/90 | 0.090/88 | 0.490/100 | 0.370/100 | 0.091/73 | 0.443 | 87.8 |
| Gemini 3.5 Flash | 0.900/78 | 0.940/97 | 0.130/85 | 0.060/80 | 0.310/98 | 0.190/95 | 0.074/65 | 0.372 | 82.9 |
| DeepSeek v4-pro | 0.910/33 | 0.930/98 | 0.070/95 | 0.040/95 | 0.150/100 | 0.120/100 | 0.049/68 | 0.324 | 78.2 |
| DeepSeek-V4.1-Flash | 0.701/70 | 0.734/96 | 0.107/80 | 0.122/76 | 0.148/88 | 0.106/86 | 0.119/47 | 0.291 | 74.0 |
| Kimi k3 | 0.675/40 | 0.750/98 | 0.102/22 | 0.063/5 | 0.114/20 | 0.082/45 | 0.079/95 | 0.267 | 53.6 |
| OpenCode (default) | Codex CLI | Claude Code | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | TSR | Tok. | API | Wall | TSR | Tok. | API | Wall | TSR | Tok. | API | Wall |
| Claude Opus 5.5 | 47.3 | 51.8k | 2.41 | 212 | 47.6 | 47.7k | 2.67 | 193 | 49.9 | 56.6k | 2.65 | 223 |
| GPT6-sol | 45.8 | 46.7k | 2.52 | 176 | 48.0 | 38.8k | 2.33 | 146 | 45.4 | 49.7k | 3.14 | 199 |
| Gemini 3.5 Flash | 39.6 | 19.2k | 2.95 | 36 | 39.4 | 18.8k | 3.55 | 33 | 37.7 | 25.8k | 3.86 | 44 |
| DeepSeek v4-pro | 35.5 | 34.9k | 2.88 | 304 | 34.2 | 38.9k | 3.18 | 290 | 32.8 | 37.9k | 3.91 | 423 |
| DeepSeek-V4.1-Flash | 34.5 | 17.9k | 3.02 | 98 | 31.2 | 19.9k | 4.47 | 109 | 33.8 | 21.8k | 4.52 | 102 |
| Study | Question | Primary measure |
|---|---|---|
| E0 Admission | Is every released task backed by a trustworthy native oracle? | admission checks passed ( Tab. S2 ) |
| E1 Regimes | Can agents apply, repair, organize, and construct knowledge? | TSR per regime (Table 1 of the main paper) |
| E2 Mapping | Are authored cross-source mappings correct where they can be scored? | Common-7 macro-F1 with scoring coverage |
| E3 Representation | Does an agent-built ontology add value on top of retrieval? | TSR; paired (RAG + Ontology, RAG only) ( Tab. S16 ) |
| E4 Intervention | Does a certified semantic fault cause task loss? | damage and recovery on governed vs. unaffected tasks |
| E5 Lanes | Which lanes are hard for every model, and which favor one? | per-lane TSR ( Tab. S10 ) |
| Contrast | Task-weighted | Source-balanced |
|---|---|---|
| RAG + Ontology RAG only | ||
| Ontology only RAG only | ||
| Ontology only Direct | ||
| Ontology only Native DSL | ||
| Expert-derived reference RAG + Ontology | ||
| Damage, governed (Gold Corrupt) | ||
KG Construction
Knowledge graph construction turns text, tables, images, and databases into structured entities and relationships that machines can query and reason over.
See all 213 papers