Ontology-Driven Control of Conversational Agents with a Use-Case for Job Interview Practice

Barbara Gendron, Gaël Guibon, Mathieu D'aquinarXiv 2026

TL;DR

Researchers have developed a hybrid framework that uses formal ontologies to "steer" Large Language Models (LLMs), ensuring they follow specific conversational strategies and stylistic constraints. By combining ontological reasoning with reinforcement learning (GRPO), they successfully controlled small LLMs (7B-8B parameters) to act as job interviewers that adapt their language level and tone based on the candidate's performance.

What Problem Does This Paper Address?

While LLMs are impressive conversationalists, they are notoriously difficult to control. In domain-specific settings—like a job interview or medical consultation—an agent needs to follow a specific "strategy" (e.g., moving from small talk to technical grilling) and maintain a specific "style" (e.g., matching the user's proficiency level).

Currently, developers usually achieve this through ad hoc prompt engineering or by fine-tuning on massive, manually labeled datasets. These methods are often "black boxes": they aren't reusable, they lack transparency, and they struggle with complex, multi-turn logic. This paper tackles the challenge of creating a transparent and formal control layer that allows developers to define conversation rules externally to the model itself.

Methods

The authors propose a system that bridges the gap between structured knowledge (ontologies) and unstructured generation (LLMs). The architecture consists of three main pillars:

  1. Ontology Engineering: They built a "Conversation Ontology" that defines the phases of a job interview (e.g., Phase 1: Small Talk, Phase 3: Technical Discussion) and "Utterance Characteristics" like emotional load, polarity, and CEFR language proficiency levels (A1 to C2).
  2. Descriptor Extraction: To understand the state of the conversation, the system uses "classifiers" (BERT-based models for emotion and a decision tree for language level) to extract features from the user’s input.
  3. Ontology-Guided Fine-Tuning: This is the "secret sauce." Instead of standard supervised fine-tuning, they used Group Relative Policy Optimization (GRPO)—a reinforcement learning technique—combined with LoRA (Low-Rank Adaptation). The model was trained to follow "control codes" (e.g., [ProficiencyLevel: A2, Polarity: positive]) derived directly from the ontology’s reasoning.
A detailed overview of the system architecture, showing how user utterances are processed through descriptors and the ontology to guide the LLM.

Datasets

Interestingly, the authors avoided the need for a massive, human-annotated domain-specific dataset.

  • Training: They used a data-free learning approach. The ontology itself was used to automatically annotate a generated dataset during the reinforcement learning process.
  • Evaluation: To test the system, they collected a custom corpus of 30 full conversations where three human evaluators (with CS backgrounds) role-played as job candidates with varying expertise levels.

Key Insights and Ideas

  • Ontologies as a "Control Panel": By defining the conversation strategy in an ontology (as seen in Figure 2), the logic becomes transparent and reusable. If you want to change the interview flow, you update the ontology, not the model's weights.
  • The "Sycophancy" Hurdle: One of the most interesting findings was the difficulty in controlling "emotional load." LLMs are so heavily RLHF’d (Reinforcement Learning from Human Feedback) to be pleasing and polite that they struggle to generate neutral or critical responses, even when explicitly instructed to do so.
  • Small Models, Big Control: The study proves that 7B and 8B parameter models (Llama 3.1 and Qwen 2.5) are capable of following complex, multi-phase strategies if guided correctly, suggesting that massive 70B+ models aren't always necessary for sophisticated task-oriented behavior.
Visualization of the conversation ontology, showing the hierarchy of UtteranceCharacteristics and ConversationPhases.

Key Results

The researchers compared their fine-tuned models against vanilla pre-trained baselines:

  • Proficiency Control: For Llama 3.1, the Mean Absolute Error (MAE) for language level control dropped from 1.92 to 1.31, showing a much tighter alignment with the requested CEFR level.
  • Polarity Alignment: Accuracy in matching the requested emotional polarity (positive/negative/neutral) jumped from 0.42 to 0.62.
  • Human vs. Machine: Interestingly, human evaluators often perceived the model as being more compliant with the strategy than the automatic classifiers suggested. This highlights a gap between how machines "measure" tone and how humans "feel" it.

Limitations and Future Work

The authors identify two primary roadblocks:

  1. Overly Positive Bias: Current LLMs are "too nice." Future work will need to investigate stronger alignment techniques to allow models to adopt neutral or critical tones without triggering safety filters or ingrained politeness.
  2. Ontology Bottleneck: While the framework is reusable, designing the initial ontology still requires significant "knowledge modeling" effort. It’s not yet a "plug-and-play" solution for someone without expertise in Semantic Web technologies.
  3. Scaling: The authors plan to test if larger models can handle even more intricate conceptual relationships and more complex conversation strategies.

Summary updated

Abstract

Large Language Models (LLMs) have been widely used as conversational agents in both domain-specific and open-domain situations. In domain-specific context, it is often necessary to adapt those LLMs to obtain conversations with desired characteristics, whether those apply at the level of each response (e.g. for tone or style) or more globally (i.e. at the level of a conversational strategy). Such adaptations are, however, generally realized in an ad hoc way, through specific, non-reusable, and non-transparent developments. In this paper, we propose an ontology-based approach to design conversational strategies that rely on the desired and measured characteristics of textual utterances in the conversation. Through a use case related to job interview practice, we show how this approach can be used to control LLMs to follow the strategy defined in the ontology. To this end, we automatically fine-tune the LLM to improve its compliance with ontologically-defined conversation characteristics. Our results show that training the LLM from formally defined concepts effectively enhances alignment with the requested characteristics. Hence, this work demonstrates how ontology-guided conversation control can be achieved while taking into account multiple, concurrent conversation aspects that are formally and transparently defined.
BibTeX
@misc{gendron2026ontology,
  author = {Barbara Gendron and Gaël Guibon and Mathieu D'aquin},
  title = {{Ontology-Driven Control of Conversational Agents with a Use-Case for Job Interview Practice}},
  year = {2026},
  eprint = {2611.09282},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.09282},
}
Figure