Research website · v0 · November 2026

How Much Can LLMs Help Solve Railway Optimization Problems?

LLM4Rail tests whether large language models, working with optimization solvers and independent checkers, can move the best known bounds on open railway benchmarks: periodic timetabling, timetabling with passenger routing, and real-time train dispatching.

No LLM4Rail results have been released yet. Every number on this site describes the public baselines we start from, with a link to its source.
LLM4Rail mark: two rails, the upper and lower bound, converging on an orange point, the optimum
166
Catalogue entries across four libraries, including model variants
32–50%
Gap between best known solution and best lower bound on the 16 core PESPlib railway instances
74 / 112
DISPLIB dispatching instances with 72 optima reported in the literature and 2 matching bounds across sources
21 / 21
Tracked TimPassLib data sets not yet proven optimal

News

  • Website online in English and Chinese.
01

The question

Railway planning problems are hard, valuable, and unusually well benchmarked. That makes them a good test of what LLMs add to optimization.

LLM4Rail studies whether LLMs can help improve feasible timetables and dispatching solutions, tighten lower bounds, and reproduce known optima. Of the 166 model entries in the catalogue, 87 have optima reported by a paper or benchmark library, and 2 have matching bounds across sources. The remaining 77 have no published proof of optimality.

All 18 PESPlib railway instances and all 21 TimPassLib railway and urban rail instances remain open.

Of the 112 DISPLIB instances, 72 are reported optimal in Tables 5–6 of Stärk et al. For two more, nor5_small_1 and nor5_small_5, the verified feasible objective values match the lower bounds reported in Table B.13 of Fuchs et al. The remaining 38 open instances are all 32 Wabtec instances, nor5_small_2, and nor5_large_1 through nor5_large_5.

MIPLIB 2017 marks all 15 tracked railway models as optimal in its official solution file, version 37.

LLM4Rail follows the research design of LLM4MIP, which applied LLM-assisted, solver-backed workflows to the open instances of MIPLIB. We ask the same question for railway problems, where the LLM can also draw on the structure of lines, periods, transfers and track layouts.

Two things we commit to from the start: no result is accepted from LLM output alone, and every reported result names the model, the solvers and the compute it used.

02

Problem library

Planning covers periodic timetabling, passenger routing and railway slot allocation. Operations covers real-time dispatching and timetable rescheduling after delays.

Planning18 instances

PESPlib

Periodic event scheduling: find a timetable that repeats every period and minimises weighted slack. The catalogue covers railway instances R1L1–R4L4 and two railway variants.

  • All 18 tracked instances remain open.
  • The library states that its lower bounds are not verified.
  • Records were last improved in August 2026.
18 instances in the catalogue →
Planning21 data sets

TimPassLib

Periodic timetabling and passenger routing optimised together. Networks include S-Bahn Hamburg, the Athens metro, regional and long-distance railways, and the 16 PESPlib railway networks with passenger demand.

  • All 21 tracked data sets remain open, with gaps from 0.1% to 3.1%.
  • A Python verifier checks a timetable and computes optimal routing.
21 data sets in the catalogue →
Operations112 instances

DISPLIB

Train dispatching: re-route and re-schedule trains after delays. Real instances from Siemens Mobility (Italy), SINTEF (Norway), SBB (Switzerland) and Wabtec.

  • Published results report 72 optima, including 9 SBB instances with objective value 0. Two further instances have matching bounds across sources.
  • All 112 instances have a listed upper and lower bound. For the 9 SBB instances, zero is a lower bound because the objective is nonnegative.
  • JSON format, a solution verifier and a reference MILP solver.
112 instances in the catalogue →
Planning and operations15 instances

MIPLIB rail instances

Models from MIPLIB 2017 for periodic timetabling, railway slot allocation and train rescheduling.

  • 13 Easy and 2 Hard models.
  • MIPLIB publishes optimal values for all 15 models.
15 instances in the catalogue →

Later extensions: problems from the INFORMS RAS Problem Solving Competition (yards, blocking, switching), and Flatland for comparison with reinforcement-learning methods.

03

Where the gaps are

The tracked PESPlib instances sit 30% to 50% from their lower bounds. The 21 TimPassLib data sets in the catalogue have gaps from 0.1% to 3.1%. DISPLIB has 38 instances with a positive gap.

Relative gap per instance

(best known − best lower bound) ÷ |best known| · hover a bar for the values

Railway and railway variants

Source: PESPlib records table, read 2026-11-11. PESPlib notes that lower bounds are not verified.

04

Method

The LLM proposes. Solvers compute. An independent checker decides what counts.

STEP 1

Instance

The benchmark file, its current best bounds, the official verifier, and what the lines and stations mean.

STEP 2

LLM proposes

Reads the structure, then proposes decompositions, neighbourhoods, reductions and lower-bound arguments.

STEP 3

Backend computes

MIP solvers and dedicated algorithms search for solutions and compute bounds, with full run logs.

STEP 4

Checker accepts

The library's own verifier, exact certificate replay, and hashes of every file. Failures go back to step 2.

Acceptance rule. LLM4Rail publishes experimental results after they pass the benchmark's official verifier or an exact certificate check. We call a result a new record once the library maintainers list it.

Skills

In development

Timetable primal skill

Decompose by line and corridor, re-optimise neighbourhoods around the incumbent, and warm-start from the best known timetable.

In development

Timetable bound skill

Find strong cycle constraints and decompositions, and emit lower-bound certificates that can be replayed in exact arithmetic.

Planned

Dispatching skill

Fast re-routing and re-scheduling for DISPLIB instances, with lower bounds to show how far each solution is from optimal.

Each skill will be compared on equal time and hardware against two arms: the same LLM workflow without the skill, and the solvers alone.

05

Verification and disclosure

LLM4Rail experimental results carry the evidence grades below. The instance catalogue lists the sources of the published baseline bounds.

  1. E1

    Exact certificate

    A bound or optimality proof that replays in rational arithmetic.

  2. E2

    Official verifier

    A solution accepted by the library's own checking program.

  3. E3

    Solver numerical result

    A bound reported by a solver within its default tolerances.

  4. E4

    Tolerance-accepted

    A result that holds only under a stated numerical tolerance.

What LLM4Rail discloses for each result

  • The LLM and version used
  • Solver names and versions
  • Wall-clock time and hardware per instance
  • Tokens consumed per instance
  • SHA-256 of the model and solution files
  • The baseline it is compared with, and its date
06

Roadmap

Four phases. Each ends at a gate that has to be passed before the next starts.

Dec 2026 – Jan 2027

1 · Start

  • Website v0
  • Reproduce current best bounds
  • Fix the disclosure format
Baselines reproduced
Feb – Apr 2027

2 · Core benchmarks

  • All PESPlib instances
  • First TimPassLib runs
  • Primal and bound skills v1
First record listed by a library
May – Jul 2027

3 · Extend

  • DISPLIB and Flatland
  • Dispatching skill
  • Equal-budget comparisons
Report draft complete
Aug – Oct 2027

4 · Release

  • Technical report
  • Skills v2
  • Partner instances, if data allows
Public release
07

Citation

Until the technical report is out, please cite the website.

@misc{cao2026llm4rail,
  author = {Cao, Buyun and Li, Yang and Wang, Jiayi and Shen, Zhaoping and Tian, Weilin and Zhang, Chengwei and Wang, Zhuoyu and Che, Yunzhou and Yao, Shan and Jiang, Huaxiao and Lin, Zhongyang and Li, Xin and Yang, Liner and Ding, Ding and Huang, Yaping},
  title  = {How Much Can {LLMs} Help Solve Railway Optimization Problems?},
  year   = {2026},
  month  = nov,
  url    = {https://llm4rail.github.io/},
  note   = {Research website}
}