Abstract
Large Language Models (LLMs) excel at general reasoning but often struggle with character-level constraints due to tokenization. This paper introduces SweepClip, a novel search algorithm that enables off-the-shelf LLMs to solve New York Times crossword puzzles with 93.1% character accuracy. By combining iterative grid-filling with reasoning-based clue solving, LLMs outperform previous state-of-the-art specialized solvers by 2-3x on cryptic benchmarks.
Introduction
Crossword puzzles represent a unique challenge for artificial intelligence, requiring a combination of deep world knowledge, mastery of wordplay (puns, anagrams), and adherence to strict spatial constraints. While LLMs have shown remarkable capabilities in general language tasks, they frequently fail at "constrained language generation" because they process text as tokens rather than individual characters. This paper investigates whether current LLMs can overcome these "tokenization traps" to solve full crossword grids without specialized fine-tuning.
Methodology: The SweepClip Algorithm
To bridge the gap between semantic reasoning and structural requirements, the authors propose SweepClip, an iterative algorithm:
- Sweep: The LLM generates candidate answers for all clues in the grid.
- Clip: A graph-based criterion identifies and eliminates "bad-fitting" candidates that conflict with high-confidence answers at grid intersections.
- Iterate: Remaining answers serve as constraints (providing known letters as hints) for the next round of LLM prompting.
Additionally, Chain-of-Thought (CoT) prompting is utilized to help models decipher cryptic clues, which often involve complex indicators like anagrams or hidden words.
Experimental Setup and Datasets
The study evaluated models across several challenging benchmarks:
- NYT Dataset: 100 Monday puzzles from the New York Times (1969–2023).
- Cryptonite & word-init-disjoint (Init): Benchmarks for cryptic crossword clues.
- Post-Cutoff Datasets: Puzzles from The Guardian and Lovatts published after May 2024 to rule out data contamination.
- Sub-token Counting Dataset: A set of 3,000 words used to test character-counting abilities.
Key Results
The integration of SweepClip significantly boosts LLM performance across all benchmarks. GPT-4 Turbo achieved 93.1% character accuracy on Monday NYT puzzles, solving nearly half (48%) of the grids perfectly. On the cryptic Init dataset, the model reached 20.85% accuracy, a 2.2x improvement over the previous state-of-the-art specialized solver (9.5%).
Analysis and Insights
- The Tokenization Bottleneck: Accuracy in character counting drops as words become rarer, suggesting LLMs rely on memorized lengths for common words rather than true counting.
- Constraints as a Feature: While length constraints are difficult, grid intersections provide vital hints. Providing partially filled words (e.g.,
_ T _ P) leads to significant performance jumps. - Reasoning vs. Retrieval: Human evaluation shows GPT-4 Turbo provides sound logical rationales for its answers 74% of the time, indicating it applies solving skills rather than just recalling solutions.
Conclusion and Future Work
This research demonstrates that LLMs, when paired with structured search algorithms like SweepClip, are formidable crossword solvers. However, limitations remain, including the "greedy" nature of the pruning process and the high computational cost of solving cryptic puzzles. Future work should address how models can better internalize character-level information during pre-training to overcome fundamental tokenization limitations.
Summary updated