“Hi HN, Standard RAG retrieves semantic noise when confronted the logic of specialist domains like maths. I wanted to see if we could treat language models more like compilers by anchoring them to a structural ground truth. I built a neuro-symbolic pipeline that grounds smaller models (<9B parameters, like Gemma2 and Qwen2.5-Math) in the OpenMath ontolog…”
Ontology-Guided Neuro-Symbolic Inference: Grounding Language Models with Mathematical Domain Knowledge
Language models exhibit fundamental limitations -- hallucination, brittleness, and lack of formal grounding -- that are particularly problematic in high-stakes specialist fields requiring verifiable reasoning. I investigate whether formal domain ontologies can enhance language model reliability through retrieval-augmented generation. Using mathematics as proof of concept, I implement a neuro-symbolic pipeline leveraging the OpenMath ontology with hybrid retrieval and cross-encoder reranking to inject relevant definitions into model prompts. Evaluation on the MATH benchmark with three open-source models reveals that ontology-guided context improves performance when retrieval quality is high, but irrelevant context actively degrades it -- highlighting both the promise and challenges of neuro-symbolic approaches.
候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。
HN 书评
没有评论直接链到它;下面是它被提交的讨论串里回复最多的评论(不计入统计)- Ontology-Guided LLMs: Grounding Inference with OpenMath Knowledge ↗rkovashikawa · 2026-02-26 · 1 分
- OpenMath: Ontology-Guided Neuro-Symbolic Inference ↗marcelolabre · 2026-03-23 · 3 分