OntoBook Creates Synthetic Medical Textbooks for Enhanced AI Pretraining

Rian Touchent (ALMAnaCH), \'Eric de la Clergerie (ALMAnaCH)· July 22, 2026 View original

Summary

OntoBook is a new method that converts medical ontology structures into pretraining signals for encoder language models, generating synthetic textbook-style prose. This approach significantly improves performance on French medical coding benchmarks by combining masked language modeling with relation prediction.

Researchers have introduced OntoBook, an innovative method designed to improve the pretraining of language models for medical applications. The system leverages existing medical ontologies, which are structured representations of medical knowledge, to generate synthetic textbook content. This process involves performing random walks through ontology graphs to capture hierarchical and causal relationships between medical codes, then using a large language model to rephrase these walks into fluent, textbook-like prose. The generated text is then used to train encoder models, such as ModernCamemBERT, with two objectives: masked language modeling and predicting relationships between code pairs. This dual-objective training, when aligned with the same data, has shown substantial performance gains on various French medical coding benchmarks. The project has released 1.3 million LLM-reformulated medical textbooks and pretrained model checkpoints, offering a valuable resource for the medical AI community.

Why it matters

Healthcare AI developers can use this method to create more accurate and context-aware language models for medical coding, clinical documentation, and research, potentially streamlining processes and improving data quality.

How to implement this in your domain

  1. 1Investigate the OntoBook framework and released resources for medical language model pretraining.
  2. 2Apply the synthetic textbook generation method to your organization's specific medical ontologies or knowledge graphs.
  3. 3Experiment with dual-objective pretraining using masked language modeling and relation prediction for medical encoders.
  4. 4Evaluate the performance improvements on internal medical coding or text analysis tasks.

Who benefits

HealthcarePharmaceuticalsMedical ResearchHealth Insurance

Key takeaways

  • OntoBook generates synthetic medical textbooks from ontologies to enhance language model pretraining.
  • The method combines masked language modeling and relation prediction for improved performance.
  • It significantly boosts accuracy on medical coding benchmarks, especially for French.
  • Alignment between training objectives is crucial for effective knowledge transfer.

Original post by Rian Touchent (ALMAnaCH), \'Eric de la Clergerie (ALMAnaCH)

"arXiv:2607.18927v1 Announce Type: new 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 relation…"

View on X

Originally posted by Rian Touchent (ALMAnaCH), \'Eric de la Clergerie (ALMAnaCH) on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses