Abstract
Crossword puzzles are effective tools for language acquisition and cognitive development, yet their manual creation is a labor-intensive task for educators. This paper presents a novel pipeline designed to automatically generate high-quality Italian crossword puzzles from educational texts using Large Language Models (LLMs). By introducing the Italian-Clue-Instruct dataset and fine-tuning open-source models like Mistral-7B and Llama-3, the research demonstrates a method for transforming static learning materials into interactive, syntactically diverse vocabulary exercises.
Introduction
While English-centric tools for crossword generation are relatively common, there is a significant gap in sophisticated, context-aware generators for the Italian language. The primary challenge in an educational setting is not merely finding a word and its dictionary definition, but generating clues that are contextually relevant to specific source material, such as a textbook chapter. Furthermore, educational tools require linguistic variety to tailor difficulty levels. Standard LLMs often struggle to adhere to specific syntactic constraints—such as "bare noun phrases" or "copular sentences"—without specialized training.
Methodology
The researchers developed a multi-stage pipeline to bridge the gap between raw educational text and functional crossword clues.
As illustrated in the pipeline above, the process involves:
- Data Curation: Extracting and filtering introductory sections from Italian Wikipedia to ensure high-quality source material.
- Prompt Engineering: Utilizing GPT-4o with specialized prompts to generate training data across four distinct clue styles: Unrestricted, Definite Determiner Phrases, Copular Sentences, and Bare Noun Phrases.
- Fine-Tuning: Applying Low-Rank Adaptation (LoRA) to fine-tune Mistral-7B-Instruct-v0.3 and Llama3-8b-Instruct. This specialization allows smaller models to handle the nuances of Italian crossword syntax with high precision.
The Italian-Clue-Instruct Dataset
A key contribution of this work is the Italian-Clue-Instruct dataset, which contains over 30,000 entries and 15,000 unique clues derived from 5,000 refined Wikipedia articles. The dataset spans 29 thematic categories, providing a broad base for educational applications.
Analysis of the dataset shows that the generated clues are typically concise, with the majority falling under 20 tokens, which is ideal for the spatial constraints of crossword grids.
Key Results
Performance was evaluated using both automated metrics and expert human review:
- Quantitative Gains: Fine-tuning resulted in substantial performance improvements. Mistral-7B's ROUGE-L score increased from 0.261 to 0.556 after training on the new dataset.
- Qualitative Excellence: Human linguistics experts assigned an "A" rating (coherent, valid, and context-aligned) to the majority of clues generated by the fine-tuned Mistral model.
- Model Comparison: Mistral-7B-Instruct-v0.3 emerged as the superior model for this task, consistently outperforming Llama-3 in generating syntactically correct and contextually appropriate Italian clues.
Conclusion and Future Work
This research demonstrates that fine-tuning open-source LLMs on specialized datasets is essential for achieving the linguistic precision required for educational crossword generation. While the current system is robust, future work will focus on addressing category imbalances (e.g., increasing representation for Mathematics and Architecture) and integrating clue generation with automated grid-layout algorithms to create a fully end-to-end "text-to-puzzle" pipeline.
Summary updated