Proving that Cryptic Crossword Clue Answers are Correct

Martin Andrews, Sam Witteveen

Abstract

Cryptic crossword clues are challenging cognitive tasks, for which new test sets are released on a daily basis by multiple international newspapers. Each cryptic clue contains both the definition of the answer to be placed in the crossword grid (in common with regular crosswords), and 'wordplay' that proves that the answer is correct (i.e. a human solver can be confident that an answer is correct without needing crossing words to confirm it). Using an existing cryptic wordplay proving framework (operating on Python proofs created by an LLM), we show that it is possible to distinguish between correct answers and almost-correct ones based upon whether the wordplay 'works'.

The Challenge of Cryptic Crosswords

Cryptic crosswords are a unique challenge for AI. Unlike "regular" crosswords, which rely primarily on synonyms, a cryptic clue is a dual-layered puzzle. It contains a definition (a standard synonym) and wordplay (a recipe for building the word using anagrams, deletions, or hidden letters).

Example of a cryptic crossword clue breakdown showing the definition and wordplay components.

While Large Language Models (LLMs) have become adept at many natural language tasks, they often struggle with the "obliqueness" of cryptic clues. They frequently fall for the "surface reading"—the literal meaning of the clue—rather than the hidden logic. Current models score poorly on benchmarks like the Cryptonite dataset because they lack a mechanism to verify if their proposed answer actually "works" according to the rules of wordplay. This research addresses the need for a rigorous, verifiable reasoning chain to confirm crossword solutions.

A Formal Framework for Verification

The proposed system utilizes a multi-stage pipeline that moves from natural language to formal logic:

  1. Annotation: A fine-tuned Llama-3-8B model takes a clue and a candidate answer, then generates an informal "wordplay" explanation (e.g., identifying which part is the definition and which part is an anagram).
  2. Formalization: A more capable model (Gemini-Pro or Gemini-Flash) translates this informal explanation into a Python script using a custom Domain Specific Language (DSL). This DSL includes functions like is_synonym(), is_abbreviation(), and is_anagram().
  3. Verification (The Prover): A Python-based prover executes the script. If an assertion fails, the prover returns a "hint" to the LLM.
  4. Iterative Refinement: The LLM is given up to five attempts to re-write the Python proof based on the prover’s feedback, effectively "debugging" its own reasoning.

Key Insights and Results

The core "aha!" moment of a cryptic crossword is essentially a verification step. The research shows that while an LLM might struggle to find the answer, it is much better at proving an answer is correct once a candidate is provided. By forcing the LLM to write Python assertions, the system bypasses the "hallucination" tendencies of standard text generation. Code either runs or it doesn't, providing a "ground truth" for linguistic logic.

Performance metrics for different LLM versions (1.0P and 1.5F) across various solving methods.

As shown in the results table, the system was evaluated on its ability to be more "provable" for correct answers than for distractors:

  • True Positives: The system successfully proved the correct answer was more valid than a distractor in 38% to 42% of cases.
  • False Negatives: It incorrectly favored the wrong answer in only 3% to 6% of cases.
  • Draws: In about 53% to 59% of cases, the system either proved both or neither.

Surprisingly, the smaller, cheaper Gemini-Flash (1.5F) model slightly outperformed Gemini-Pro (1.0P) in proving ground-truth answers, suggesting that for structured formalization tasks, speed and efficiency might not come at the cost of logic.

Limitations and Future Work

The current prover doesn't yet enforce the "Ximenean" rule that every word in a clue must be used in the wordplay. Additionally, LLMs can sometimes write "proofs" where the lines of code aren't logically connected or attempt to "cheat" by writing assertions that simply force a pass. Future work aims to integrate this verification loop into a Reinforcement Learning setting, where the model is rewarded for creating valid, elegant proofs that use all elements of the clue.

Summary updated

Abstract

Cryptic crossword clues are challenging cognitive tasks, for which new test sets are released on a daily basis by multiple international newspapers. Each cryptic clue contains both the definition of the answer to be placed in the crossword grid (in common with regular crosswords), and `wordplay' that proves that the answer is correct (i.e. a human solver can be confident that an answer is correct without needing crossing words to confirm it). Using an existing cryptic wordplay proving framework (operating on Python proofs created by an LLM), we show that it is possible to distinguish between correct answers and almost-correct ones based upon whether the wordplay `works'.
BibTeX
@inproceedings{andrews2024proving,
  author = {Martin Andrews and Sam Witteveen},
  title = {{Proving that Cryptic Crossword Clue Answers are Correct}},
  booktitle = {LLMs and Cognition @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=y9LGfi0ZZz},
}
Figure