Beyond Flesch-Kincaid: Prompt-based Metrics Improve Difficulty Classification of Educational Texts

Donya Rooein, Paul Röttger, Anastassia Shaitarova, Dirk Hovy

Abstract

Traditional readability formulas, such as Flesch-Kincaid, often fail to capture the nuances of modern, dialogue-based educational content generated by Large Language Models (LLMs). This paper presents a novel hybrid approach that combines traditional "static" metrics with "prompt-based" metrics—features extracted by LLMs regarding abstract text qualities like conceptual complexity and topic relevance. By using these features as inputs for a multinomial logistic regression classifier, we demonstrate a significant improvement in grade-level difficulty classification accuracy. Our findings show that while LLMs struggle with direct classification, they excel as feature extractors, with our combined model achieving a macro-F1 score of 0.95 on the ScienceQA dataset.

Introduction

As Large Language Models (LLMs) become central to personalized tutoring and automated content generation, the ability to adapt language to a student's specific educational level is paramount. A pedagogical explanation of "gravity" must differ significantly when addressed to a third-grader versus a high school senior. However, determining the appropriateness of a text remains a challenge.

Historically, educators have relied on static readability formulas like Flesch-Kincaid, Gunning Fog, or the SMOG index. These metrics are primarily based on surface-level heuristics such as word length, syllable counts, and sentence structure. While effective for long-form textbooks, these formulas are increasingly "brittle" when applied to short, conversational, or AI-generated texts. They often fail to account for semantic depth or the pragmatic context of a lesson. This research seeks to bridge the gap by leveraging the linguistic intuition of LLMs to create more nuanced, interpretable difficulty metrics.

Methodology

The researchers developed a hybrid classification framework that moves beyond simple word-counting to incorporate semantic analysis. The methodology consisted of four primary stages:

1. Feature Identification via User Study

To determine what makes a text "difficult," the authors conducted a study with university students who evaluated 60 educational texts. Participants provided qualitative reasoning for their difficulty assignments (e.g., "contains technical jargon" or "requires prior knowledge of physics"). These insights were synthesized into 63 distinct prompt-based metrics.

2. Prompt-based Metrics

Unlike standard classification, these metrics function as binary "Yes/No" queries directed at an LLM. Examples include:

  • "Does this text contain simple examples?"
  • "Is this text about natural science?"
  • "Is the vocabulary suitable for an 8-year-old?"

3. Static Metrics

In parallel, the researchers calculated 46 traditional metrics, including lexical diversity scores and standard readability indices, to capture the mechanical complexity of the text.

4. The Hybrid Classifier

Rather than asking an LLM to perform direct zero-shot classification (e.g., "What grade level is this?"), the researchers used the outputs of the 109 combined metrics as features in a multinomial logistic regression model. This approach allows for greater interpretability, as the model can explicitly weight the importance of specific linguistic or conceptual features.

Experimental Setup

The study utilized the ScienceQA dataset, a comprehensive collection of over 21,000 science questions and explanations. For the purposes of this study, the original K-12 grade levels were aggregated into three broader categories:

  • Elementary School (Grades 1-5)
  • Middle School (Grades 6-8)
  • High School (Grades 9-12)

A balanced subset of 4,548 texts was used for training and evaluation across various LLM backends, including Gemma-7b, Mistral, and Llama2.

Key Results and Discussion

Superiority of the Hybrid Approach

The "COMBO" model, which integrated both static and prompt-based metrics, significantly outperformed all other baselines. Using Gemma-7b as the feature extractor, the COMBO model achieved a macro-F1 score of 0.95. In contrast, a model relying solely on static metrics achieved an F1 score of 0.81.

LLMs as Feature Extractors vs. Classifiers

A pivotal finding of this research is that LLMs are far more effective at identifying specific text features than they are at making final classification decisions. Direct zero-shot classification by LLMs yielded poor results, with F1 scores ranging from 0.34 to 0.51. Even GPT-4 Turbo, in a few-shot setting, only reached an F1 of 0.65. This suggests that the "intuition" of the LLM is best utilized as a component of a larger, more structured statistical model.

Interpretability and Feature Weighting

The use of regression allowed the authors to identify which features were most predictive for each educational level. For elementary school content, suitability based on the Automated Readability Index was a primary factor. For middle school, "relevance to curriculum" emerged as a key signal, demonstrating that as students progress, the subject matter itself becomes a stronger indicator of difficulty than just sentence length.

Conclusion and Future Work

This research demonstrates that prompt-based metrics can significantly enhance our ability to categorize educational content. By combining the mechanical precision of traditional formulas with the semantic "understanding" of LLMs, we can create more robust tools for educational adaptation.

However, limitations remain. The current prompt set was derived from a small group of university students; future iterations could benefit from the expertise of professional educators. Additionally, the computational cost of running 63 prompts per text is high. Future work will focus on identifying the most impactful 5-10 prompts to reduce latency and cost, making this hybrid approach more viable for real-time classroom applications and automated tutoring systems.

Summary updated

BibTeX
@inproceedings{rooein2024beyond,
  author = {Donya Rooein and Paul Röttger and Anastassia Shaitarova and Dirk Hovy},
  title = {{Beyond Flesch-Kincaid: Prompt-based Metrics Improve Difficulty Classification of Educational Texts}},
  booktitle = {BEA},
  year = {2024},
}
Figure