Back to search

McGill University

Automated crossword solver using GPT-4 and logic constraints

Abstract

dc:description.abstract

With extraordinary advancements in Natural Language Processing (NLP) and crosswords being more popular than ever, the current era of Machine Learning (ML) and NLP has reinvigorated interest in automating crossword solving. Crossword puzzles are intellectual games that are popular all over the world. To solve them, they require a large vocabularyand deductive reasoning. Crosswordclues are often less straightforward, involve many different types of reasoning, and could contain multiple different linguistic complexities. Furthermore, they are often considered an ideal testing ground for AI and NLP tasks as they are an abundant, diverse and validated type of data.In fact, they are often used for QA and constraint satisfaction. However, solving them involves more than just generating answers. It is essential to take into account intersecting letters and length constraints. Nevertheless, crossword solvers often encounter the following two problems: a vast search space needed to generate candidate solutions and having multiple valid possible solutions. Therefore, developing models capable of accurately interpreting and resolving linguistic ambiguity incrossword clues can help contribute to advancements in NLP, particularly in tasks that involvedeciphering natural language. As previously mentioned, despite advancements, challenges persist. Automated crossword solvers have been built in the past and can outperform most humans. Some of the best are Proverb, Dr. Fill, and Berkeley Solver. Despite their success, they still struggle to solvedifficult linguistic instances present in crosswords and fail to outperform expert humans. In pursuit of improving crossword-solving accuracy, previous models using BERT,T5, and GPT2 still faced difficulties when it came to QA due to clue ambiguity and crossword gridconstraints. By leveraging GPT-4 alongside the findings of pastexplorations in this field, the goal of this thesis is to develop a cutting-edge crossword solver that achieves higheraccuracy than previous models and potentially address the remaining challenges in crossword solving,making our approach a promising avenue for further improvement in the field.To achieve this, we developed a crossword solver model incorporating GPT-4 forthe generation of answers along with grid constraints to take care of the crossing letter and length constraints. We tested our work using a collection of crosswords extracted from the New York Times. Our experiments show that our model achieved an accuracy that is on more than 20% higher than the latest crossword solver presented in at the 2022 ACL conference and about 2% higher than the Berkeley Solver

Degree

thesis:*
Name thesis:degree_name
Master of Science
Grantor dc:publisher
McGill University
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Tao, Hillary
Advisor dc:contributor.advisor
  • Liu, Xue (Supervisor)

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
Language dc:language.iso
en

Identifiers

dc:identifier.*
OCLC
1443781343
Dc Identifier Other
hyrax:9306t472j

Chain of custody

source
Harvested from
McGill University
Base URL
mcgill.scholaris.ca/server/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Tao, Hillary. Automated crossword solver using GPT-4 and logic constraints. McGill University, 2024. https://doi.org/10.82308/31223