paper-with-me

홈 › Papers

Teaching Transformers to Solve Combinatorial Problems through Efficient Trial & Error

2025-09-26 · Panagiotis Giannoulis, Yorgos Pantis, Christos Tzamos arxiv

Despite their proficiency in various language tasks, Large Language Models (LLMs) struggle with combinatorial problems like Satisfiability, Traveling Salesman Problem, or even basic arithmetic. We address this gap through a novel trial & error approach for solving problems in the class NP, where candidate solutions are iteratively generated and efficiently validated using verifiers. We focus on the paradigmatic task of Sudoku and achieve state-of-the-art accuracy (99%) compared to prior neuro-symbolic approaches. Unlike prior work that used custom architectures, our method employs a vanilla decoder-only Transformer (GPT-2) without external tools or function calling. Our method integrates imitation learning of simple Sudoku rules with an explicit Depth-First Search (DFS) exploration strategy involving informed guessing and backtracking. Moving beyond imitation learning, we seek to minimize the number of guesses until reaching a solution. This is achieved using depth-1 guessing, showing empirically that almost all Sudoku can be solved using the puzzle's rules with at most one guess. We provide a rigorous analysis of this setup formalizing its connection to a contextual variant of Min-Sum Set Cover, a well-studied problem in algorithms and stochastic optimization.

📄 PDF Abstract BibTeX arXiv:2509.22023

Code (0)

등록된 구현이 없습니다.

Tasks

Stochastic Optimization

Similar Papers 제목 키워드 기반

KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problems

2025-09-17 · Stjepan Požgaj, Dobrik Georgiev, Marin Šilić, Petar Veličković arxiv

Neural algorithmic reasoning (NAR) is a growing field that aims to embed algorithmic logic into neural networks by imitating classical algorithms. In this extended abstract, we detail our attempt to build a neural algori…

Teaching Temporal Logics to Neural Networks

2020-03-06 · ICLR 2021 1 · Christopher Hahn, Frederik Schmitt, Jens U. Kreber, Markus N. Rabe 외

We study two fundamental questions in neuro-symbolic computing: can deep learning tackle challenging problems in logics end-to-end, and can neural networks learn the semantics of logics. In this work we focus on linear-t…

USCO-Solver: Solving Undetermined Stochastic Combinatorial Optimization Problems

2021-07-15 · NeurIPS 2021 12 · Guangmo Tong

Real-world decision-making systems are often subject to uncertainties that have to be resolved through observational data. Therefore, we are frequently confronted with combinatorial optimization problems of which the obj…

Combinatorial OptimizationDecision Making

Teaching Algorithmic Reasoning via In-context Learning

2022-11-15 · Hattie Zhou, Azade Nova, Hugo Larochelle, Aaron Courville 외

Large language models (LLMs) have shown increasing in-context learning capabilities through scaling up model and data size. Despite this progress, LLMs are still unable to solve algorithmic reasoning problems. While prov…

In-Context Learning

N(CO)$^2$: Neural Combinatorial Optimization with Chance Constraints to Solve Stochastic Orienteering

2026-06-16 · Anas Saeed, Marcos Abel Zuzuárregui, Stefano Carpin arxiv

Neural combinatorial optimization (NCO) offers a promising alternative to traditional heuristic-based methods for solving complex graph optimization problems by proposing to learn heuristics through data. This class of p…

Reinforcement Learning