cs.AISep 28, 2026

APOLO: Automatic Prompt Optimization for Ontology Learning

Authors: Huu Tan Mai, Roman Kochnev, Cuong Xuan Chu, Lukas Lange, Heiko Paulheim, Daria Stepanova

Organizations: Bosch Center for Artificial Intelligence, Robert-Bosch-Campus 1, 71272 Renningen, Germany · University of Mannheim, Schloss, 68131 Mannheim, Germany · University of Würzburg, Sanderring 2, 97070 Würzburg, Germany · Bosch Research North America, Sunnyvale, California, USA

Abstract

Ontology Learning (OL) from text has advanced with the emergence of Large Language Models (LLMs), but it remains challenging due to the limited availability of annotated training data and the difficulty of adapting LLMs to perform OL effectively. We address this via APOLO - Automatic Prompt Optimization for Ontology Learning, by casting OL as an explicit prompt optimization problem over LLM modules. To obtain training data, we employ a multi-agent system that generates text-ontology pairs from existing expert-curated ontologies. We then propose two ontology learner architectures: a greedy and an autoregressive learner, and optimize both using GEPA, a greedy evolutionary prompt optimizer built on DSPy. Experiments on two ontologies - a biomedical (DOID) and a plant ontology (PO) show consistent improvements after optimization across nearly all model and mode combinations, with autoregressive learners achieving the largest gains. Our results demonstrate that prompt optimization is a viable and lightweight alternative to fine-tuning for OL, and that the autoregressive formulation better captures ontological structure than the greedy approach.

Figures & tables

Explore similar work

CardsList
  1. OntoLearner: A Modular Python Library for Ontology Learning with Large Language Models

    Jul 2, 2026Hamed Babaei Giglou, Jennifer D'Souza, Andrei Aioanei +2OntologyLearn

  2. pro-team at LLMs4OL 2026 Tasks Flagship and Reuse: Retrieval-Augmented Generation and Vocabulary-Constrained Filtering for Ontology Learning

    Aug 27, 2026Shivam Mishra, Dhannu Ram Meena, Muneendra Ojha +2OntologyReusable Knowledge

  3. When Does Bigger Help? A Controlled Study of LLM Scale for Ontology Learning

    Aug 31, 2026Hamed Babaei Giglou, Sören Auer, Jennifer D'SouzaModel SizeLearn