OntoAct: Hypothesis-Based Neuro-Symbolic Agents through Ontological Abstraction
Organizations: Interdisciplinary Program in Artificial Intelligence, Seoul National University, Seoul, South Korea · Department of Electrical and Computer Engineering, Seoul National University, Seoul, South Korea
Abstract
Learning from experience requires recovering reusable knowledge and determining when it applies to a new situation. We introduce OntoAct, a hypothesis-based neuro-symbolic framework built on ontological abstraction. OntoAct turns individual experiences into axioms over entity types, relations, and conditions, making their underlying patterns reusable across situations. A large language model (LLM) uses this world knowledge to propose hypotheses and actions, while a symbolic verifier assesses their supporting conditions against current observations. Verification identifies missing evidence, and new observations and intervention outcomes update hypothesis assessments and guide subsequent actions. We also introduce Tacit-FLE, a benchmark built on the Factorio Learning Environment (FLE) for diagnosing and repairing hidden faults in existing factories using inherited operational records. Its synthetic maintenance corpus distributes evidence across records, and an executed repair may leave the fault unresolved, requiring agents to reassess their diagnoses through interaction. Across Tacit-FLE, Mars, and ALFWorld, OntoAct achieves leading task performance with efficient interaction and inference.
Figures & tables
| Repair success (%) | |||||||
|---|---|---|---|---|---|---|---|
| Scale | Method | Chain | Conjunction | Elimination | All | SI | Turns |
| Small | ReAct | 0.0 | 71.4 | 75.0 | 39.3 | 4.6 | 22.2 |
| ReAct * | 15.4 | 85.7 | 37.5 | 39.3 | 7.2 | 22.9 | |
| Reflexion | 7.7 | 71.4 | 75.0 | 42.9 | 5.3 | 23.2 | |
| IfR | 38.5 | 100.0 | 75.0 | 64.3 | 6.4 | 17.4 | |
| NeSyC | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 30.0 | |
| OntoAct | WALL-E | IfR | |
|---|---|---|---|
| Distinct candidates/episode | 3.36 | 5.14 | 9.00 |
| Fault in candidate set | 32/36 | 17/36 | 24/36 |
| Fault in first 3 | 25/36 | 10/36 | 4/36 |
| World | ReAct | ReAct * | Reflexion | IfR | NeSyC | WALL-E | OntoAct |
| Reward | |||||||
| Default | |||||||
| Terrain | |||||||
| Survival | |||||||
| Task dep. | |||||||
| Terr. surv. | |||||||
| Method | Luna | Luna | Terra |
|---|---|---|---|
| ReAct | 7.95 | 13.06 | 13.91 |
| ReAct * | 10.64 | 15.23 | 16.48 |
| Reflexion | 7.33 | 12.91 | 12.09 |
| IfR | 9.57 | 20.60 | 18.86 |
| WALL-E | 6.47 | 9.93 | 7.79 |
| OntoAct (ours) | 15.92 | 22.99 | 21.57 |
| OntoAct | IfR | |
|---|---|---|
| Initial candidate violations | 70/245 (28.6%) | 20/107 (18.7%) |
| Redirected before execution | 70/70 (100%) | 0/20 (0%) |
| Issued command violations | 0/136 (0%) | 20/107 (18.7%) |
| Method | SR (%) | Steps | Calls | Tokens (k) |
|---|---|---|---|---|
| NeSyC † | 26.1 | 38.6 | 9.3 | 281.32 |
| WALL-E | 96.3 | 14.8 | 28.8 | 47.70 |
| OntoAct (ours) | 98.5 | 13.5 | 13.7 | 32.16 |
Appendix figures & tables35 assets
Supplementary material from the paper’s appendix.
Appendix
| Source | Available information |
|---|---|
| Initial task | Turn budget, normal production rate (final products/minute), unit kinds, and coordinates. |
| Inherited records | Local incident observations, checks, repairs, and outcomes; buffer policy for Chain; planned outputs for Conjunction. |
| Current observations | Machine states, storage totals and changes, shipping; inspections and itemized readings on request. |
| Repair feedback | Episode termination after an accepted repair; continued interaction otherwise. |
| Evaluator only | Injected fault, accepted repair targets, full original plant specification, and coverage annotations. |
| Command | Game seconds | Effect or returned information |
|---|---|---|
| inspect unit | 5 | External state; power and material-transfer device readings require this probe. |
| open unit | 10 | Itemized storage or input contents; configured output in Conjunction. |
| wait seconds | specified | Advance the plant and receive an updated status board. |
| replace unit | 15 | Restore the addressed unit to its original specification. |
| refill storage item count | 10 | Insert the selected item into storage; success also depends on the repair target and item. |
| Evidence source | Exact excerpt |
|---|---|
| Log log_6056 | [OBSERVED] mat-193 stopped, input buffer empty. [CHECKED] site visit — mat-205 found destroyed. |
| Log log_7299 | [OBSERVED] mat-228 stopped, input buffer empty. [CHECKED] site visit — mat-193 found destroyed. |
| Ops note buffer-policy | [NORM] Line-internal feed buffers are pulled just-in-time and normally sit empty; an empty internal buffer during a stall is expected, not evidence. [NORM] Raw-material intake buffers are kept stocked by the yard at all times. An intake buffer found empty with nothing arriving means its supply feed is severed — replace that storage. |
| Command responses | mat-205_in_W opened: empty. flat at zero. |
| Interpretation | The two logs connect mat-205 to mat-193 and mat-193 to mat-228. The operating note distinguishes an intake supply cut from normal internal-buffer emptiness. |
| Evidence source | Exact excerpt |
|---|---|
| Log log_5841 | [CHECKED] opened st-04 — configured output does not match the plan. [ACTION] replaced st-04 with a fresh unit (as-built configuration restored). |
| Plan norm_3982 | - unit st-05: planned output mat-231 |
| Command responses | st-05 opened: input buffer empty. configured output: mat-232. |
| Interpretation | A repair precedent on st-04 applies to a different unit: st-05 is planned to output mat-231 but currently outputs mat-232. |
| Evidence source | Exact excerpt |
|---|---|
| Log log_7360 | [CHECKED] site visit — mat-027 found destroyed. |
| Log log_8680 | [CHECKED] opened storage mat-070_in_W — found empty, no inbound material. |
| Log log_3569 | [OBSERVED] multiple machines in the zone stopped at once. [CHECKED] zone-wide simultaneous stoppage — power distribution loss confirmed. |
| Command responses | mat-027 opened: input buffer mat-089 x5, mat-074 x3. mat-027: old unit removed, replacement installed to plan. [SHIFT] not fixed yet; the shift goes on. st-00 opened: input buffer empty. mat-070: running. |
| Interpretation | Replacing mat-027 did not end the episode, which rejects the destroyed-unit explanation of log_7360. A running machine (mat-070) is incompatible with the zone-wide power loss of log_3569. The stopped st-00 matches none of the recorded incidents and becomes the unit to investigate. |
| Scale | Products | Type | Worlds | Documents/world | Episodes | |
|---|---|---|---|---|---|---|
| Small | 1 | Chain | 5 | 7–16 | 13 | 30 |
| Conjunction | 5 | 5 | 7 | 30 | ||
| Elimination | 5 | 4–5 | 8 | 30 | ||
| Medium | 2 | Chain | 5 | 32–40 | 14 | 60 |
| Conjunction | 5 | 30 | 14 | 60 | ||
| Elimination | 5 | 30 | 8 | 60 |
| Check | Evidence | What it establishes |
|---|---|---|
| Plant behavior | Healthy production, followed by stalled shipping or a persistent change in operating readings after fault injection. | The injected fault has an observable effect on an operating plant. |
| Corpus construction | Required document fields and vocabulary, declared evidence coverage, and exclusion of test-fault repair records. | Compliance with the corpus construction conditions. |
| Reproducibility | Exact regeneration of all 45 evaluation corpora. | Consistent corpus inputs for the 104 evaluation episodes. |
| Origin | Content | Role |
|---|---|---|
| Task inputs | Reference corpus, task description, observations, action interface | Use and any observation controls follow the experimental protocol. |
| Given representation | Schema , observation map , template semantics | Method-specific representation and interpretation choices; fixed before learning. |
| Induced knowledge | , , source records | Constructed from the reference corpus and fixed during evaluation. |
| Episode evidence | Grounded in public observations; reset for each episode. | |
| LLM proposals | Action ; structural and diagnostic claims where supported | Checked against the current knowledge and evidence. |
| Case | Proposal | Admission and reason |
|---|---|---|
| Complete | Established supply relation; both required conditions retained; inflow still unread. | Admitted: Missing readings can be investigated after admission. |
| Missing relation | The proposal names a supplier relation that has no supporting evidence. | Not admitted: Establish the relation before applying this pattern. |
| Missing condition | The proposal cites the pattern but checks only whether storage is empty. | Not admitted: Retain the required no-inflow condition. |
| No conditions | The explanation supplies no observable conditions. | Not admitted: An explanation needs a nonempty set of testable conditions. |
| Case | Stock | Inflow | Values (stock, inflow) Eq. 7 | Status Eq. 8 | Reason and next step |
|---|---|---|---|---|---|
| A | 0 | Unread | Open | Empty stock supports one condition; inspect incoming supply to resolve the other. | |
| B | 0 | None | Confirmed | Both expected conditions are supported. Check the proposed repair next. | |
| C | 0 | Arriving | Refuted | Observed inflow contradicts the no-inflow condition. Revise the explanation. | |
| D | 5 | Unread | Refuted | Nonzero stock already contradicts the claim; the unread inflow cannot rescue it. | |
| E | Unread | Unread | Open | Neither condition has been resolved. Obtain an informative observation. |
| Case | Proposal | Recorded status | Conditions (stock, inflow) Eq. 7 | Backed | Reason |
|---|---|---|---|---|---|
| R1 | refill ( ) | Confirmed | Yes | Prescribed verb, matching target, and both conditions supported. | |
| R2 | replace ( ) | Confirmed | No | The pattern prescribes a refill, not replacement. | |
| R3 | refill ( ) | Confirmed | No | The target is neither the cause nor an entity tested by this hypothesis. | |
| R4 | refill ( ) | Confirmed | No | Stored confirmation is insufficient when a current condition is unresolved. | |
| O1 | inspect ( ) | Open | Not required | An observation does not require a confirmed repair hypothesis. |
| Event | Result | Meaning |
|---|---|---|
| The refill executes and the episode terminates successfully. | Task completed | The episode ends; no additional hypothesis status is needed. |
| The refill executes, but another episode turn follows. | Hypothesis refuted | Under the diagnostic outcome rule, the intervention contradicts this candidate-cause claim. |
| The environment refuses the refill command. | No intervention evidence | Refusal alone does not refute the hypothesis; inspect the feedback and current evidence. |
| Element | Tacit-FLE | Mars | ALFWorld |
|---|---|---|---|
| Corpus | One plant’s maintenance logs and operating documents | Recorded transitions from one world | Recorded transitions from training games |
| Vocabulary | Component types, material-flow relations, statuses, and public readings | Materials, items, creatures, action and effect templates | Action verbs and five observation predicates |
| Induced knowledge | Structural facts, diagnostic patterns, non-evidence axioms, practices, aggregate priors | Collect, make, place, walk, drink, creature, neighborhood, and blocked-action conditions | Necessary action conditions |
| Evidence batch | One document; practices and service samples over the joined corpus | The supplied transition buffer | By action, at most 24 transitions per batch |
| Corpus checks | Type-specific source, structure, support, and counterexample checks | Subject-linked citations; at most one contradictory transition | Action-linked citations; positive support; no successful counterexample |
| Observation map | Roster, layout, public readings; stock changes inform inflow | Position, inventory, vitals, visible cells | Parsed scene, inventory, and receptacle state |
| Small | Medium | Large | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | Chain | Conj. | Elim. | Chain | Conj. | Elim. | Chain | Conj. | Elim. |
| ReAct | 0/13 | 5/7 | 6/8 | 4/14 | 9/14 | 6/8 | 1/17 | 8/11 | 9/12 |
| ReAct * | 2/13 | 6/7 | 3/8 | 3/14 | 9/14 | 7/8 | 4/17 | 4/11 | 8/12 |
| Reflexion | 1/13 | 5/7 | 6/8 | 3/14 | 6/14 | 3/8 | 2/17 | 1/11 | 6/12 |
| IfR | 5/13 | 7/7 | 6/8 | 4/14 | 12/14 | 8/8 | 4/17 | 10/11 | 12/12 |
| NeSyC | 0/13 | 0/7 | 0/8 | 0/14 | 0/14 | 0/8 | 0/17 | 0/11 | 0/12 |
| ReAct | ReAct * | Reflexion | IfR | OntoAct | |
| Luna | |||||
| SR | 52.8 | 52.8 | 33.3 | 66.7 | 83.3 |
| SI | 11.3 | 13.4 | 15.4 | 11.9 | 2.4 |
| T | 41.8 | 38.7 | 46.4 | 31.7 | 19.4 |
| Luna | |||||
| SR | 44.4 | 38.9 | 52.8 | 86.1 | 97.2 |
| World | ReAct | ReAct * | Reflexion | IfR | NeSyC | WALL-E | OntoAct |
|---|---|---|---|---|---|---|---|
| Reward | |||||||
| Default | |||||||
| Terrain | |||||||
| Survival | |||||||
| Task dep. | |||||||
| Terr. surv. | |||||||
| World | ReAct | ReAct * | Reflexion | IfR | NeSyC | WALL-E | OntoAct |
|---|---|---|---|---|---|---|---|
| Reward | |||||||
| Default | |||||||
| Terrain | |||||||
| Survival | |||||||
| Task dep. | |||||||
| Terr. surv. | |||||||
| World | Method | Seed 0 | Seed 1 | Seed 2 | Seed 3 | Seed 4 | Mean SD |
|---|---|---|---|---|---|---|---|
| Default | ReAct | 7.10 | 17.10 | 7.10 | 13.10 | 6.10 | |
| ReAct * | 10.10 | 11.10 | 7.10 | 8.10 | 10.10 | ||
| Reflexion | 8.10 | 3.10 | 8.10 | 11.10 | 9.10 | ||
| IfR | 6.10 | 7.10 | 11.10 | 6.10 | 10.10 | ||
| NeSyC | 1.10 | 0.10 | 1.10 | 1.10 | 0.10 | ||
| WALL-E | 5.10 | 16.10 | 7.10 | 0.10 | 3.10 |
| World | Method | Seed 0 | Seed 1 | Seed 2 | Seed 3 | Seed 4 | Mean SD |
|---|---|---|---|---|---|---|---|
| Terr. surv. | ReAct | 4.10 | 8.10 | 3.10 | 7.10 | 8.10 | |
| ReAct * | 7.10 | 6.10 | 12.10 | 7.10 | 8.10 | ||
| Reflexion | 3.10 | 7.10 | 6.10 | 1.10 | 8.10 | ||
| IfR | 3.10 | 2.10 | 6.10 | 6.10 | 13.10 | ||
| NeSyC | 3.10 | 5.10 | 0.10 | 2.10 | 3.10 | ||
| WALL-E | 7.10 | 0.10 | 3.10 | 2.10 | 7.10 |
| Standard observations | Initial-state disclosure | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Method | Success | Steps | Calls | In (k) | Out (k) | Success | Steps | Calls | In (k) | Out (k) |
| NeSyC | 0/134 | 49.0 | 1.0 | 5.82 | 0.06 | 35/134 | 38.6 | 9.3 | 269.33 | 11.99 |
| WALL-E | 129/134 | 14.8 | 28.8 | 47.08 | 0.61 | 133/134 | 7.8 | 15.6 | 27.83 | 0.38 |
| OntoAct (ours) | 132/134 | 13.5 | 13.7 | 32.00 | 0.15 | 134/134 | 6.7 | 8.3 | 23.28 | 0.15 |
| Method | Pick (24) | Clean (31) | Heat (23) | Cool (21) | Examine (18) | Pick two (17) | All |
|---|---|---|---|---|---|---|---|
| NeSyC † | 75.0 | 0.0 | 34.8 | 0.0 | 0.0 | 52.9 | 26.1 |
| WALL-E | 100.0 | 96.8 | 95.7 | 100.0 | 88.9 | 94.1 | 96.3 |
| OntoAct (ours) | 100.0 | 96.8 | 100.0 | 100.0 | 94.4 | 100.0 | 98.5 |
| Construction (per plant) | Evaluation (per episode) | |||
| Method | Calls | Tokens (k) | Calls | Tokens (k) |
| Small | ||||
| ReAct | 0 | 0 | 22.2 | 154.6 |
| ReAct * | 0 | 0 | 22.9 | 166.6 |
| Reflexion | 6.8 | 2.3 | 23.2 | 170.4 |
| IfR | 6.8 | 3.7 | 13.8 | 135.3 |
| Method | Steps | Calls | In (k) | Out (k) | Input/call (k) | Total tokens (k) |
|---|---|---|---|---|---|---|
| Luna | ||||||
| ReAct | 198.6 | 60.8 | 109.13 | 1.42 | 1.79 | 110.55 |
| ReAct * | 252.5 | 83.0 | 354.22 | 2.12 | 4.27 | 356.35 |
| Reflexion | 249.5 | 75.8 | 174.74 | 2.05 | 2.31 | 176.79 |
| IfR | 218.2 | 55.2 | 298.10 | 12.45 | 5.40 | 310.55 |
| NeSyC | 177.9 | 183.1 | 2237.98 | 13.65 | 12.22 | 2251.63 |
| Method | Calls | In (k) | Out (k) | Input/call (k) | Total tokens (k) |
|---|---|---|---|---|---|
| Luna | |||||
| ReAct | 0 | 0 | 0 | — | 0 |
| ReAct * | 0 | 0 | 0 | — | 0 |
| Reflexion | 20.0 | 12.76 | 2.61 | 0.64 | 15.38 |
| IfR | 20.0 | 18.28 | 3.88 | 0.91 | 22.16 |
| NeSyC | 63.5 | 3768.39 | 33.08 | 59.34 | 3801.47 |
| Method | Calls | In (k) | Out (k) | Total tokens (k) |
|---|---|---|---|---|
| NeSyC | 79 | 1989.08 | 8.62 | 1997.70 |
| WALL-E | 254 | 349.37 | 14.84 | 364.21 |
| OntoAct (ours) | 15 | 116.43 | 0.94 | 117.36 |
| Scale | Method | Targets | C@1 | C@3 | C@5 | C@all | Precision |
|---|---|---|---|---|---|---|---|
| Small | OntoAct (ours) | 2.68 | 50.0 | 75.0 | 82.1 | 82.1 | 23/75 |
| WALL-E | 4.79 | 3.6 | 35.7 | 50.0 | 50.0 | 14/134 | |
| IfR | 5.79 | 10.7 | 28.6 | 50.0 | 64.3 | 18/162 | |
| Medium | OntoAct (ours) | 3.36 | 33.3 | 69.4 | 75.0 | 88.9 | 32/121 |
| WALL-E | 5.14 | 0.0 | 27.8 | 36.1 | 47.2 | 17/185 | |
| IfR | 9.00 | 0.0 | 11.1 | 38.9 | 66.7 | 24/324 |
| Checkpoint / measure | Small | Medium | Large |
|---|---|---|---|
| All tracked | 20/140 | 28/272 | 34/192 |
| Checkpoint +1 | 19/68 | 23/112 | 31/98 |
| Checkpoint +2 | 19/48 | 21/61 | 28/68 |
| Checkpoint +3 | 19/32 | 20/36 | 28/42 |
| Final | 18/21 | 20/21 | 25/32 |
| True-target retention | 18/20 | 20/28 | 25/34 |
| Method | Small | Medium | Large |
|---|---|---|---|
| OntoAct (ours) | 29.3% (22/75) | 25.4% (29/114) | 36.4% (36/99) |
| WALL-E | 2.3% (3/133) | 5.2% (12/232) | 3.8% (14/364) |
| IfR | 9.9% (18/182) | 5.6% (24/426) | 3.7% (26/694) |
| ReAct | 8.9% (11/124) | 4.7% (15/321) | 3.5% (17/482) |
| ReAct * | 5.6% (11/197) | 4.3% (17/392) | 2.2% (15/688) |
| Reflexion | 8.6% (12/140) | 3.1% (12/387) | 1.3% (8/600) |
Ontology-Constrained Neural Reasoning in Enterprise Agentic Systems: A Neurosymbolic Architecture for Domain-Grounded AI Agents
AGEL-Comp: A Neuro-Symbolic Framework for Compositional Generalization in Interactive Agents
Retro Quest simulation environment to probe for compositional generalization scenarios to evaluate our AGEL agent. Our findings clearly indicate the better performance of our AGEL model over pure LLM-based models. Our framework presents a principled path toward agents that build an explicit, interpretable, and compositionally structured understanding of their world.