NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Crossword Space: Latent Manifold Learning for Italian Crosswords and beyond

Cristiano Ciaccio, Gabriele Sarti, Alessio Miaschi, Felice Dell'OrlettaCLiC-it 2025

Abstract

Solving crossword puzzles requires navigating a complex landscape of puns, lateral thinking, and cultural references. Traditional language models often struggle with the non-literal nature of these puzzles, particularly in languages like Italian. This paper introduces a retrieval-based framework that maps Italian crossword clues and their solutions into a shared latent manifold. By employing dual-encoder architectures and contrastive learning, the proposed system significantly outperforms traditional lexical methods and demonstrates a unique ability to generalize to modern neologisms.

Introduction

Crossword puzzles represent a unique linguistic challenge where the "cruciverbalist" (the puzzle creator) intentionally uses ambiguity and wordplay to mislead the solver. In Italian, this often involves polysemy—where a single word has multiple meanings—and cultural deep-cuts. Standard Information Retrieval (IR) systems, which rely on lexical overlap, are ill-equipped for this task because clues and answers rarely share common tokens. We propose "Crossword Space," a specialized latent manifold where clues and solutions are positioned based on semantic and associative proximity rather than literal similarity.

Methodology

The core of our approach is a retrieval-based system using Dual Encoder architectures, inspired by the CLIP model used in computer vision. We investigated two primary configurations:

  1. Siamese Dual Encoder (SDE): A single encoder with shared weights processes both the clue and the solution.
  2. Asymmetric Dual Encoder (ADE): Separate encoders process clues and solutions, with their outputs projected into a shared feature space via a final linear layer.
Architecture of SDE and ADE models for crossword retrieval.

The models were trained using Contrastive Learning with the symmetric InfoNCE loss. This objective encourages the model to maximize the cosine similarity between a clue and its correct answer while minimizing similarity with "hard negatives"—incorrect answers that are semantically or lexically similar. We utilized several backbone models, including Italian-specific versions of IT5, ModernBERT, and a multilingual MPNet.

Datasets

Our experiments relied on a diverse set of Italian linguistic resources:

  • ItaCW: A primary dataset of 125,000 unique definition-word pairs, expanded to 416,000 samples through web scraping.
  • Italian Wiktionary: Used to evaluate the model's performance on standard, literal dictionary definitions.
  • ONLI & Neologisms: Datasets of newly coined Italian terms used to test the model's ability to generalize to unseen vocabulary.

Results and Insights

The MPNet-base model emerged as the top performer across most metrics. On the crossword test set, it achieved an Accuracy@1 of 0.33 and a Mean Reciprocal Rank (MRR) of 0.43. When candidate words were filtered by the known length required by a crossword grid (Acc@1*), accuracy increased to 0.54.

Performance metrics across different datasets and model architectures.

A key finding was the impact of architectural symmetry. The ADE architecture performed significantly better on crossword clues, likely because clues (riddles) and solutions (words) represent different "modalities" that benefit from specialized encoding. Conversely, the SDE approach was superior for standard dictionary definitions, where the relationship is more literal and symmetric.

Furthermore, models trained on crosswords showed a surprising proficiency in identifying neologisms. This suggests that the "lateral thinking" captured in Crossword Space aligns with the compositional nature of new journalistic terms, which often rely on reinterpreting word parts.

Conclusion

We have demonstrated that mapping clues and solutions into a shared latent space is an effective strategy for solving Italian crosswords. While current models struggle with character-level wordplay (e.g., anagrams or clues based on specific letter positions), the integration of this retrieval framework with logic solvers like Z3 allows for the autonomous completion of medium-sized grids. Future work will focus on developing character-aware encoders and incorporating cross-encoders for high-precision reranking.

Summary updated

BibTeX
@inproceedings{ciaccio2025crossword,
  author = {Cristiano Ciaccio and Gabriele Sarti and Alessio Miaschi and Felice Dell'Orletta},
  title = {{Crossword Space: Latent Manifold Learning for Italian Crosswords and beyond}},
  booktitle = {CLiC-it},
  year = {2025},
}
Figure