# Self\-Guided LLM Reasoning for Error Diagnosis in Vehicle Routing Problems


Vehicle routing problems &#40;VRPs&#41; are fundamental to many real-world applications, and recent large language model advances have spurred progress on these NP-hard problems. Most existing approaches, however, assume that input instances are error-free and neglect faults commonly found in real-world data.

This work systematically studies whether LLMs can detect and correct errors in VRP instances, and identifies key limitations, particularly on complex instances or errors that substantially increase the model's reasoning burden. To address them, the authors propose a self-guided reasoning framework in which LLMs autonomously generate code that provides structured insights to aid error diagnosis.

Experiments across diverse problem settings and LLMs show that the framework significantly improves error detection, achieving near-perfect accuracy.
