Harnessing LLMs for Educational Content-Driven Italian Crossword Generation

Kamyar Zeinalipour, Achille Fusco, Asya Zanollo, Marco Maggini, Marco Gori

Abstract

In this work, we unveil a novel tool for generating Italian crossword puzzles from text, utilizing advanced language models such as GPT-4o, Mistral-7B-Instruct-v0.3, and Llama3-8b-Instruct. Crafted specifically for educational applications, this cutting-edge generator makes use of the comprehensive Italian-Clue-Instruct dataset, which comprises over 30,000 entries including diverse text, solutions, and types of clues. This carefully assembled dataset is designed to facilitate the creation of contextually relevant clues in various styles associated with specific texts and keywords. The study delves into four distinctive styles of crossword clues: those without format constraints, those formed as definite determiner phrases, copular sentences, and bare noun phrases. Each style introduces unique linguistic structures to diversify clue presentation. Given the lack of sophisticated educational tools tailored to the Italian language, this project seeks to enhance learning experiences and cognitive development through an engaging, interactive platform. By meshing state-of-the-art AI with contemporary educational strategies, our tool can dynamically generate crossword puzzles from Italian educational materials, thereby providing an enjoyable and interactive learning environment. This technological advancement not only redefines educational paradigms but also sets a new benchmark for interactive and cognitive language learning solutions.

Introduction

Crossword puzzles are recognized as powerful educational tools that enhance vocabulary retention, critical thinking, and cognitive development. However, the manual creation of crosswords tailored to specific educational materials—such as a history chapter or a science article—is a labor-intensive process. While English-language Natural Language Processing (NLP) tools for crossword generation have seen significant progress, the Italian language has lacked sophisticated, context-driven solutions. This research addresses this gap by introducing a system that leverages Large Language Models (LLMs) to automatically generate high-quality Italian crossword puzzles directly from educational texts.

Methodology

The researchers developed a multi-stage pipeline to automate the "text-to-crossword" process, ensuring that every generated clue is grounded in the source material.

The multi-stage pipeline for Italian crossword generation, from data collection to model training.
  1. Data Extraction: The process begins by scraping introductory sections of Italian Wikipedia articles, focusing on high-traffic pages to ensure quality and relevance.
  2. Clue Generation (The "Teacher"): GPT-4o was utilized to generate an initial set of clues based on the extracted text and specific keywords. Through prompt engineering, the model was constrained to produce clues in four distinct linguistic styles: Unrestricted, Definite Determiner Phrases, Copular Sentences, and Bare Noun Phrases. This syntactic diversity is vital for language learners as different structures elicit different cognitive responses.
  3. Fine-Tuning (The "Students"): To create open-source, specialized models, the team fine-tuned Mistral-7B-Instruct-v0.3 and Llama3-8b-Instruct using LoRA (Low-Rank Adaptation). This allowed smaller models to mimic the high-quality, syntactically constrained output of the teacher model. The training was performed efficiently using 4-bit quantization on NVIDIA A6000 GPUs.

The Italian-Clue-Instruct Dataset

A core contribution of this study is the Italian-Clue-Instruct dataset. It contains over 30,000 entries derived from 5,000 Wikipedia articles across 29 thematic categories, including History, Geography, and Entertainment. Each entry includes the source text, a solution keyword, and multiple types of clues.

Token distribution of unique clues within the Italian-Clue-Instruct dataset, showing the frequency of different sequence lengths.

As shown in the distribution analysis, the clues are typically concise, with most falling between 10 and 25 tokens, making them ideal for standard crossword formats while maintaining sufficient descriptive power.

Key Results and Insights

The fine-tuned models demonstrated a massive jump in performance compared to their base versions. Quantitatively, the fine-tuned Mistral-7B model achieved a ROUGE-L score of 0.556, more than doubling the performance of its base version (0.261). This indicates a high degree of alignment with the "gold standard" clues generated by GPT-4o.

Qualitatively, human evaluations by linguistics experts confirmed the effectiveness of the pipeline. The majority of clues generated by the fine-tuned models received an "A" rating, meaning they were coherent, valid, and accurately aligned with the provided context. This contextual grounding ensures the system avoids "hallucinating" general knowledge that wasn't present in the assigned reading, a critical feature for educational applications.

Limitations and Future Work

While the current system represents a significant advancement, several areas for future development remain:

  • Clue Variety: Future iterations could expand beyond definition-style clues to include "fill-in-the-blank" or cryptic, wordplay-based clues.
  • Category Balance: The dataset is currently weighted toward History and Geography; future work will aim to bolster underrepresented fields like Mathematics and Architecture.
  • Educational Integration: The ultimate goal is to integrate this generator into interactive platforms where teachers can upload documents (like PDFs) and receive ready-to-use digital crosswords instantly.

Summary updated

Abstract

In this work, we unveil a novel tool for generating Italian crossword puzzles from text, utilizing advanced language models such as GPT-4o, Mistral-7B-Instruct-v0.3, and Llama3-8b-Instruct. Crafted specifically for educational applications, this cutting-edge generator makes use of the comprehensive Italian-Clue-Instruct dataset, which comprises over 30,000 entries including diverse text, solutions, and types of clues. This carefully assembled dataset is designed to facilitate the creation of contextually relevant clues in various styles associated with specific texts and keywords. The study delves into four distinctive styles of crossword clues: those without format constraints, those formed as definite determiner phrases, copular sentences, and bare noun phrases. Each style introduces unique linguistic structures to diversify clue presentation. Given the lack of sophisticated educational tools tailored to the Italian language, this project seeks to enhance learning experiences and cognitive development through an engaging, interactive platform. By meshing state-of-the-art AI with contemporary educational strategies, our tool can dynamically generate crossword puzzles from Italian educational materials, thereby providing an enjoyable and interactive learning environment. This technological advancement not only redefines educational paradigms but also sets a new benchmark for interactive and cognitive language learning solutions.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Italian-Clue-Instruct dataset; generated clues compared with input sentences extracted from WikipediaItalian-Clue-Instruct cluesROUGE-10.159Crossword Clue Generation
Source quote
L125: Producing accurate and engaging Italian educational crossword clues is inhibited by the absence of a reference corpus, making it difficult to draw comparisons using standard measures, such as ROUGE scores. Our evaluation strategy adapts uniquely to the task requirements. Specifically, effective clues should represent contextually accurate paraphrases of text information. To accommodate this, we adopted an extractive method, using the ROUGE-L score to gauge the adequacy of clues in reflecting the input context that we extracted from Wikipedia. By comparing input sentences to the generated clues, the evaluation aimed to attain high scores to ensure strict adherence to the original text, minimizing irrelevant content and avoiding clues that merely replicate the input or improperly introduce the target keyword. Results indicated a substantial connection between the context and the clues, with an average ROUGE-1, ROUGE-2, and ROUGE-L score of 0.159, 0.114, and 0.146 respectively.
Italian-Clue-Instruct dataset; generated clues compared with input sentences extracted from WikipediaItalian-Clue-Instruct cluesROUGE-20.114Crossword Clue Generation
Source quote
L125: Producing accurate and engaging Italian educational crossword clues is inhibited by the absence of a reference corpus, making it difficult to draw comparisons using standard measures, such as ROUGE scores. Our evaluation strategy adapts uniquely to the task requirements. Specifically, effective clues should represent contextually accurate paraphrases of text information. To accommodate this, we adopted an extractive method, using the ROUGE-L score to gauge the adequacy of clues in reflecting the input context that we extracted from Wikipedia. By comparing input sentences to the generated clues, the evaluation aimed to attain high scores to ensure strict adherence to the original text, minimizing irrelevant content and avoiding clues that merely replicate the input or improperly introduce the target keyword. Results indicated a substantial connection between the context and the clues, with an average ROUGE-1, ROUGE-2, and ROUGE-L score of 0.159, 0.114, and 0.146 respectively.
Italian-Clue-Instruct dataset; generated clues compared with input sentences extracted from WikipediaItalian-Clue-Instruct cluesROUGE-L0.146Crossword Clue Generation
Source quote
L125: Producing accurate and engaging Italian educational crossword clues is inhibited by the absence of a reference corpus, making it difficult to draw comparisons using standard measures, such as ROUGE scores. Our evaluation strategy adapts uniquely to the task requirements. Specifically, effective clues should represent contextually accurate paraphrases of text information. To accommodate this, we adopted an extractive method, using the ROUGE-L score to gauge the adequacy of clues in reflecting the input context that we extracted from Wikipedia. By comparing input sentences to the generated clues, the evaluation aimed to attain high scores to ensure strict adherence to the original text, minimizing irrelevant content and avoiding clues that merely replicate the input or improperly introduce the target keyword. Results indicated a substantial connection between the context and the clues, with an average ROUGE-1, ROUGE-2, and ROUGE-L score of 0.159, 0.114, and 0.146 respectively.
BibTeX
@inproceedings{zeinalipour2024harnessing,
  author = {Kamyar Zeinalipour and Achille Fusco and Asya Zanollo and Marco Maggini and Marco Gori},
  title = {{Harnessing LLMs for Educational Content-Driven Italian Crossword Generation}},
  booktitle = {CLiC-it},
  year = {2024},
  url = {https://openreview.net/forum?id=RbsM9DKYJn},
}
Figure