Calibrating LLMs with Preference Optimization on Thought Trees for Generating Rationale in Science Question Scoring

Jiazheng Li, Hainiu Xu, Zhaoyue Sun, Yuxiang Zhou, David West, Cesare Aloisi, Yulan He

Abstract

Generating rationales that justify scoring decisions has been a promising way to facilitate explainability in automated scoring systems. However, existing methods do not match the accuracy of classifier-based methods, and generated rationales often contain hallucinated information. To address these issues, we propose a novel framework capable of generating more faithful rationales while matching the performance of classifier-based black-box scoring systems. We first mimic the human assessment process by querying Large Language Models (LLMs) to generate a thought tree. We then summarize intermediate assessment decisions from each thought tree path to create synthetic rationale and preference data. Finally, we calibrate LLMs through a two-step training process: supervised fine-tuning and preference optimization. Extensive experimental results demonstrate that our framework achieves a 38% assessment performance improvement in the QWK score compared to prior work while producing higher-quality rationales.

Introduction: The Transparency-Accuracy Trade-off

Automated Student Answer Scoring (ASAS) has traditionally faced a frustrating trade-off. On one hand, classifier-based models (like DeBERTa) are highly accurate but offer zero explanation for their scores—a "black box" that teachers and students find hard to trust. On the other hand, Large Language Models (LLMs) can generate rationales, but they frequently "hallucinate" or fail to align their explanations with the actual rubric, leading to inconsistent and unfaithful grading.

The challenge lies in creating a system that is as accurate as a specialized classifier but as articulate and transparent as a human teacher, ensuring the rationale actually matches the logic used to assign the score.

Comparison of human assessment, traditional automated approaches, and the proposed Thought Tree approach which imitates human logic for better explainability.

Methodology: The Thought Tree Framework

The core of our approach is a three-stage framework designed to guide rationale generation through structured "Thought Trees."

Stage 1: Imitating Human Assessment

Instead of asking an LLM to grade an answer in one go, the task is decomposed. The model evaluates a student's response against individual "key elements" of a marking rubric (e.g., "Did the student mention evaporation?"). By sampling the LLM multiple times using Monte Carlo methods, we build a "Thought Tree" representing various possible assessment paths.

Stage 2: Summarizing Thought Tree Paths

These paths are summarized into response-level rationales. Since the ground-truth score is known, we can identify which paths led to the correct score (preferred) and which led to incorrect scores (rejected). This creates a high-quality synthetic dataset of "good" vs. "bad" reasoning.

Stage 3: Calibrating LLMs

We use this synthetic data to fine-tune smaller, open-source models (like Llama 3 8B and Mixtral 8x7B) through Supervised Fine-Tuning (SFT) to learn the format, followed by Direct Preference Optimization (DPO) to calibrate the model to prefer reasoning paths that lead to the correct ground-truth score.

The three-stage process: imitating assessment via thought trees, summarizing paths into synthetic data, and calibrating LLMs via SFT and DPO.

Key Insights

  • Decomposition as an Antidote to Hallucination: By forcing the model to check specific rubric elements before assigning a score, the framework significantly reduces the chance of the model fabricating justifications.
  • Rubric-to-Code Transformation: We utilized GPT-4 to convert text-based marking rubrics into executable Python code. This ensures that once the "key elements" are identified, the final score calculation is deterministic and 100% faithful to the rubric.
  • Synthetic Preference Data: By exploring the Thought Tree, the system naturally discovers which logic paths fail, providing the "negative" examples needed for DPO without requiring thousands of human-written rationales.

Experimental Results

The framework was evaluated on the ASAP (Automated Student Assessment Prize) benchmark and a private biology dataset from a UK examination service (AQA).

  • Performance Gains: The framework achieved a 38% improvement in Quadratic Weighted Kappa (QWK) compared to the previous state-of-the-art explainable model (AERA).
  • Matching Black-Box Baselines: For the first time, an explainable model matched or exceeded the performance of "black-box" DeBERTa classifiers on several datasets (e.g., ASAP 1 and 5).
  • Rationale Quality: In head-to-head comparisons, GPT-4 and human evaluators preferred the rationales generated by this framework nearly 100% of the time over baselines, citing superior detail and more accurate quoting of student responses.

Conclusion

By mimicking the human assessment process and leveraging synthetic preference data, our framework bridges the gap between accuracy and explainability in automated scoring. Future work will explore self-reflection strategies to allow models to correct erroneous intermediate decisions within the thought tree, further enhancing the reliability of AI-driven educational assessment.

Summary updated

BibTeX
@inproceedings{li2024calibrating,
  author = {Jiazheng Li and Hainiu Xu and Zhaoyue Sun and Yuxiang Zhou and David West and Cesare Aloisi and Yulan He},
  title = {{Calibrating LLMs with Preference Optimization on Thought Trees for Generating Rationale in Science Question Scoring}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=ZFaubC6Xbd},
}
Figure