Solving NP-Complete Problems via Language Models: A Case Study with BERT
Year: 2025
Type: conference-paper
Abstract: NP-complete issues provide a considerable challenge in computational complexity owing to their extensive solution spaces and the absence of fast strategies for obtaining precise solutions. Concurrently, extensive language models like as BERT have exhibited robust proficiency in pattern recognition, sequence modeling, and reasoning with structured data. This work examines the viability of utilizing BERT to approximate solutions for NP-Complete problems by recontextualizing them as sequence prediction tasks. Encoding techniques are devised to encode instances of the Boolean Satisfiability Problem (SAT) and the Traveling Salesman Problem (TSP) as token sequences compatible with BERT processing. Experiments performed on benchmark datasets entail fine-tuning BERT to forecast variable assignments for the SAT and city tours for the TSP. Results demonstrate that BERT can provide viable, and frequently near-optimal, solutions for small to moderate problem sizes, providing considerable time benefits over traditional solvers. Nonetheless, challenges persist concerning scalability due to restrictions on sequence length and computational resources, with issues related to the interpretability of model outputs and the lack of theoretical assurances for solution quality. This research enhances the emerging convergence of machine learning and computational complexity, demonstrating how natural language processing techniques may provide innovative solutions to challenges traditionally deemed intractable within conventional computing frameworks.
Source: Procedia Computer Science
Authors: Aigerim Aitim, Anel Auyezova
Institution: International Information Technologies University
Language: English
Topic: Topic Modeling
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: diamond
OpenAlex ID: W4416640583
