OntoBook: Ontology-Grounded Synthetic Textbooks for Medical Encoder Pretraining
Abstract
We present OntoBook, a method that converts medical ontology structure into pretraining signal for encoder language models. Our approach has three stages: random walks through ontology graphs capture hierarchical and causal relations between medical codes, a large language model reformulates these walks into fluent textbook-style prose, and the resulting text is used to train ModernCamemBERT, a 149M-parameter French encoder, with two objectives on the same data: masked language modeling and relation prediction between code pairs. On three French medical coding benchmarks (FRACCO, Cantemist-FR, Distemist-FR), OntoBook achieves significant improvements over MLM-only pretraining, with +2.5 micro-F1 on FRACCO and +8.0 micro-F1 on Distemist. We find that alignment between objectives is necessary: misaligned training, where each task uses different data, causes a 30-point degradation. We release 1.3 million LLM-reformulated medical textbooks across three French ontologies (CIM-10, CCAM, ATC) and pretrained model checkpoints.
Create a lesson
Metadata
- Journal
- Proceedings of Knowledge Graphs and Large Language Models Workshop, May 2026, Palma de Mallorca, Spain
Related papers
EGSE: Evidence-Grounded Skill Evolution for Medical Reasoning Agents
Shared title terminologycs.AIMingyuan Li, Tong Jia, Ziyuan Yang et al.
Evaluating Aviation Safety Knowledge Extraction with SmolLM2: From Zero-Shot to Retrieval-Grounded Prompting
Shared title terminologycs.AIAziida Nanyonga, Mustafa Tahsin Yilmaz, Amir Hussain et al.
MedSkill-E^{2}: Evaluating and Evolving Skills for Medical Agents
Shared title terminologycs.AIJingjing Hua, Shaocong Wei, Jianghan Shen et al.
Navigent: A Geometry-Grounded Agentic Framework for Vision Language Navigation
Shared title terminologycs.AIXinyu Zhou, Weiren Cai, Yitong Chen et al.
EATS: Scaling Tool-Use Experience for Medical Reasoning Agents
Shared title terminologycs.AIMingyuan Li, Tong Jia, Haoran Wang et al.
WhatIf: Counterfactual World Models over Action-Grounded Causal Graphs for Robotic Manipulation
Shared title terminologycs.AIXu Yang, Kailai Sun, Qianchuan Zhao