Papers › INViT: A Generalizable Routing Problem Solver with Invariant Nested View Transformer

INViT: A Generalizable Routing Problem Solver with Invariant Nested View Transformer

4 Feb 2024arXiv:2402.02317archive 2025-07-28

Han Fang, Zhihao Song, Paul Weng, Yutong Ban

Recently, deep reinforcement learning has shown promising results for learning fast heuristics to solve routing problems. Meanwhile, most of the solvers suffer from generalizing to an unseen distribution or distributions with different scales. To address this issue, we propose a novel architecture, called Invariant Nested View Transformer (INViT), which is designed to enforce a nested design together with invariant views inside the encoders to promote the generalizability of the learned solver. It applies a modified policy gradient algorithm enhanced with data augmentations. We demonstrate that the proposed INViT achieves a dominant generalization performance on both TSP and CVRP problems with various distributions and different problem scales.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.02317")

Code

Syntology Ran 8 of 12 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kasumigaoka-utaha/invit officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 8 ran; 1 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
5ran
4unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kasumigaoka-utaha/invit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Scale kasumigaoka-utaha/invit/utils/utils_for_model.py official repository ran no licence file found · pointer only · e0a166dca4c52b70 · report
count_identical_elements kasumigaoka-utaha/invit/utils/utils_for_model.py official repository ran no licence file found · pointer only · 367529155ea96828 · report
create_parser kasumigaoka-utaha/invit/utils/utils_for_model.py official repository ran no licence file found · pointer only · 797fad5ede15d1a2 · report
myMHA kasumigaoka-utaha/invit/blocks.py official repository ran no licence file found · pointer only · bef6d297cd8d3b81 · report
read_cvrp_instances_from_file Kasumigaoka-Utaha/INViT/load_data.py official repository ran · our draft was wrong no licence file found · pointer only · a85a0f5335ab636b · report
read_solutions_from_file Kasumigaoka-Utaha/INViT/load_data.py official repository ran · our draft was wrong no licence file found · pointer only · 9dc70752fb3689f8 · report
read_solutions_from_file kasumigaoka-utaha/invit/load_data.py official repository ran no licence file found · pointer only · 0c06a4baa49d8aee · report
read_tsp_instances_from_file Kasumigaoka-Utaha/INViT/load_data.py official repository ran · honoured contract no licence file found · pointer only · 789efe45deac8e0d · report
read_cvrp_instances_from_file kasumigaoka-utaha/invit/load_data.py official repository unverified no licence file found · pointer only · 9605372dd5b48ee8 · report
read_lkh_outputs kasumigaoka-utaha/invit/baselines/solve_cvrp_baselines.py official repository unverified no licence file found · pointer only · ee05b200953e00d2 · report
read_tsp_instances_from_file kasumigaoka-utaha/invit/load_data.py official repository unverified no licence file found · pointer only · 059e9855d5b8e0e9 · report
solve_cvrp_instance_by_LKH3 kasumigaoka-utaha/invit/baselines/solve_cvrp_baselines.py official repository unverified no licence file found · pointer only · 79560f35c4e05b23 · report

Tasks

Deep Reinforcement Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections