Generating Educational Materials with Different Levels of Readability using LLMs

Chieh-Yang Huang, Jing Wei, Ting-Hao 'Kenneth' HuangarXiv 2024

TL;DR

This paper introduces and benchmarks the task of leveled-text generation: using LLMs to rewrite educational content to hit specific Lexile readability targets. The researchers found that while few-shot prompting is essential for success, there is a distinct trade-off between models: LLaMA-2 70B is the most effective at hitting the numerical difficulty target, whereas GPT-3.5 is significantly better at preserving the original meaning and information.

What Problem Does This Paper Address?

In education, "one size fits all" text doesn't work. Students learn best when reading materials match their specific literacy level—a concept often measured by the Lexile Scale. However, manually rewriting a single scientific article into five different versions for different grade levels is incredibly labor-intensive for educators and publishers.

While Large Language Models (LLMs) are famous for summarization and simplification, "simplification" is usually a vague goal. This paper tackles the more rigorous challenge of controlled readability: Can an LLM rewrite a text to hit a specific numerical Lexile target (e.g., 1000L) while ensuring the educational facts remain accurate?

Figure 1: Given (A) a source text, (B) a readability level for the source text, and (C) an intended readability level, the leveled-text generation aims at rewriting the source text in the intended readability level while preserving the meaning. Note that in this paper, we use a widely adopted readability level in the education context, the Lexile Scale. In the provided example, the sentences are longer and the words are less common in the resulting text.

Methods

The authors evaluated three prominent models: GPT-3.5, LLaMA-2 70B, and Mixtral 8x7B. They tested two primary prompting strategies:

  1. Zero-shot: Providing the model with a definition of the Lexile scale and asking it to rewrite the text to a specific target.
  2. Few-shot: Providing the model with a few "gold standard" examples of source/target pairs that have similar Lexile scores to the current task.

To evaluate the results, they used a two-pronged approach. First, they used a proprietary Lexile Analyzer to see if the generated text actually hit the target (measuring Mean Absolute Error and "Match Rate"). Second, they used NLP metrics like BERTScore and Semantic Similarity to ensure the model didn't hallucinate or lose the original meaning during the rewrite.

Datasets

The study utilized a parallel dataset of 30,000 pairs of leveled texts. These were derived from 1,690 sets of articles from language-learning books, where each set contains the same story or topic written at multiple difficulty levels. For this preliminary benchmark, the researchers focused on a test set of 100 samples to perform deep manual and automated analysis.

Key Insights and Ideas

  • LLMs are not "Lexile-native": The models do not inherently understand what "800L" vs "1200L" means. Without few-shot examples to calibrate them, their performance is poor.
  • The Complexity Bias: Models have a persistent tendency to generate text that is more complex than the requested target. It appears easier for an LLM to sound academic than to truly simplify language for a novice reader.
  • The "Meaning vs. Metric" Trade-off: There is no clear winner across the board. LLaMA-2 70B is "braver" with its edits, which helps it hit the readability target but often results in losing the original meaning. GPT-3.5 is more conservative, preserving meaning beautifully but often failing to simplify the text enough.
  • Inconsistent Editing: Manual inspection revealed that models often perform "patchy" edits—rewriting one paragraph extensively while leaving a difficult, jargon-heavy paragraph completely untouched.

Key Results

  • Few-shot prompting is mandatory: Across all models, providing examples significantly improved both readability manipulation and meaning preservation.
  • Readability Accuracy: LLaMA-2 70B (few-shot) achieved the best results in hitting the target difficulty, with a Mean Absolute Error (MAE) of 172.9 and a Match Rate of 22.22% (falling within ±50 points of the target).
  • Meaning Preservation: GPT-3.5 was the clear leader here, achieving a BERTScore F1 of 81.45% and a Semantic Similarity of 0.937, indicating it stays very true to the source material.
  • Directional Success: While hitting the exact "bullseye" is hard, the models are good at moving the needle in the right direction. Directional accuracy (moving toward easier or harder as requested) was as high as 86.87% for LLaMA-2.
Scatter plots showing that while models follow the general trend of the intended Lexile, they consistently skew toward higher difficulty (above the red shaded area).

Limitations and Future Work

The authors identify several hurdles that remain before this can be fully automated:

  1. Hallucinations in Quotes: Models often "simplify" direct quotes, which is a major issue for factual accuracy in educational settings.
  2. Shortening Bias: LLMs tend to shorten text when simplifying, but sometimes educational materials need to be longer at lower levels to explain complex concepts with simpler words.
  3. Context Windows: For LLaMA-2, the 4K token limit proved restrictive when trying to include multiple long few-shot examples.

Future work will likely focus on Retrieval-Augmented Generation (RAG) to prevent misinformation and developing more sophisticated prompting techniques to ensure an even distribution of readability edits throughout an entire article.

Summary updated

BibTeX
@misc{huang2024generating,
  author = {Chieh-Yang Huang and Jing Wei and Ting-Hao 'Kenneth' Huang},
  title = {{Generating Educational Materials with Different Levels of Readability using LLMs}},
  year = {2024},
  eprint = {2406.12787},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.12787},
}
Figure