A Goal-Oriented Chat-Like System for Evaluation of Large Language Models

Guilherme S. Teodoro, Sarajane Marques Peres, Marcelo Fantinato, Anarosa A. F. Brandão, Fábio Gagliardi Cozman2024 · DOI

TL;DR

This paper proposes a shift from static benchmarks to a "goal-oriented" evaluation framework that tests how Large Language Models (LLMs) perform in complex, multi-turn dialogues. By using a system of "creator" and "inspector" prompts to guide and monitor interactions, the researchers found that even top-tier models like GPT-4 struggle to meet strict accreditation standards for specialized, real-world tasks.

What Problem Does This Paper Address?

Standard LLM benchmarks (like MMLU or HumanEval) typically measure performance on isolated, single-turn requests. However, real-world applications—like customer service bots or educational assistants—require sustained, interactive dialogues where the model must stay on topic, maintain a specific persona, and guide the user toward a goal.

The authors argue that we lack a systematic way to "accredit" LLMs for these specific, complex roles. A model might be great at trivia but fail to keep a 10-year-old engaged in a lesson about marine biology without drifting off-topic. This paper introduces a framework to measure that "functional competence" in a controlled, goal-driven environment.

Methods

The researchers developed a system architecture that combines imperative programming with prompt engineering to manage the dialogue flow. The core of their method relies on two types of prompts:

  1. Creator Prompts: These are responsible for generating the actual response to the user. They include "memory" of the last interaction, a definition of the model's persona, and a step-by-step "Chain of Thought" instruction for the response.
  2. Inspector Prompts: These act as a quality control layer. They analyze the user’s intent and the model’s previous behavior to decide which "creator" prompt should be triggered next. For example, an inspector might check if a user is trying to change the subject and then trigger a "creator" prompt designed to politely bring the conversation back to the target topic.

This "supervisor-worker" loop allows the system to enforce specific goals, such as maintaining a child-friendly tone or ensuring a user completes a specific task (like a quiz).

Datasets

The paper does not use a standard pre-existing dataset. Instead, it introduces a custom evaluation scenario called "Blabinha: Blue Amazon’s Superhero Challenge."

  • The Context: A gamified chatbot designed for 10-year-old children to learn about the "Blue Amazon" (Brazil's maritime territory).
  • The Evaluation Protocol: A group of 26 human testers (ranging from undergrads to postdocs) interacted with the system. They followed a protocol of 56 questions designed to probe the model's behavior across six specific goals, such as "Persuasion and Engagement" and "Topic Analysis."

Key Insights and Ideas

  • Accreditation vs. Performance: The authors set a high bar for "accreditation"—a 90% success rate across all evaluation aspects. Interestingly, while the models performed "well," neither GPT-3.5 nor GPT-4 met this threshold for all goals, suggesting they aren't quite "production-ready" for highly regulated or specific educational tasks without further refinement.
  • The Nuance of "Off-Topic": One of the most interesting failures was in "Scope Restriction." Models were good at spotting completely unrelated topics, but they often erroneously flagged topics indirectly related to the theme (like "oil" or "the Navy" in a maritime context) as being divergent.
  • Persona Consistency: GPT-4 showed a significant leap over GPT-3.5 in maintaining a "child-friendly" and informal discourse, proving that model scale directly impacts the ability to sustain a specific social persona.
  • Interactive Complexity: The study highlights that "success" in a chatbot isn't just about the right answer; it's about the "flow." Models struggled when users gave very brief answers (like "Ok" or "Yes"), often failing to comprehend the intent without more context.

Key Results

The researchers compared GPT-3.5-turbo and GPT-4-turbo across several metrics:

  • Correctness: Both models scored high (91.7% for GPT-3.5 and 92.9% for GPT-4), showing they are generally reliable for factual information.
  • Formulation Quality: GPT-4 was a clear winner here, achieving a 92.9% success rate compared to GPT-3.5’s 50%. This indicates GPT-4 is much better at following complex formatting or stylistic instructions.
  • Multiple Choice Logic: In the "One correct" answer goal (generating a quiz), GPT-4 reached 85.7% success, while GPT-3.5 lagged significantly at 16.7%, often providing multiple correct answers or none at all.
  • Statistical Confidence: Using the Wilson method for confidence intervals, the researchers noted that the gap between the models in quiz formulation and quality was statistically significant, providing a clear "accreditation" signal.

Limitations and Future Work

The authors acknowledge several hurdles:

  • Sample Size: With only 26 testers, the statistical power is limited.
  • Ablation Studies: It’s currently unclear how much of the success is due to the underlying LLM versus the specific prompt engineering strategies used. Future work will need to "unplug" certain prompts to see where the system breaks.
  • Evaluator Fatigue: The protocol involved 56 questions per tester, which can lead to "criteria drift" as humans get tired or bored.
  • Subjectivity: Despite the structured protocol, human evaluation of "engagement" or "appropriateness" remains inherently subjective.

The researchers suggest that future iterations should include more specialized testers and automated "red-teaming" to stress-test the models more rigorously.

Summary updated

Abstract

Large language models have changed the way various applications are developed. Interactions with large language models have reached a new level of complexity and now act as real problem solvers. However, despite their apparent competence, it is still necessary to accredit them with respect to the tasks they are assigned. In this paper, we discuss a systemic approach to accredit large language models through their integration with a goal-oriented chat-like system. An experiment involving prompt engineering for two models from the GPT family illustrates our evaluation scheme when applied to a real-world chatbot use case; our evaluation scheme reveals, that the resulting chatbots perform well but are not yet ready for real-world dialogues under specific requirements.
BibTeX
@misc{teodoro2024goal,
  author = {Guilherme S. Teodoro and Sarajane Marques Peres and Marcelo Fantinato and Anarosa A. F. Brandão and Fábio Gagliardi Cozman},
  title = {{A Goal-Oriented Chat-Like System for Evaluation of Large Language Models}},
  year = {2024},
  doi = {10.5753/eniac.2024.245208},
}
Figure