Papers › Learning Solution-Aware Transformers for Efficiently Solving Quadratic Assignment Problem

Learning Solution-Aware Transformers for Efficiently Solving Quadratic Assignment Problem

14 Jun 2024arXiv:2406.09899archive 2025-07-28

Zhentao Tan, Yadong Mu

Recently various optimization problems, such as Mixed Integer Linear Programming Problems (MILPs), have undergone comprehensive investigation, leveraging the capabilities of machine learning. This work focuses on learning-based solutions for efficiently solving the Quadratic Assignment Problem (QAPs), which stands as a formidable challenge in combinatorial optimization. While many instances of simpler problems admit fully polynomial-time approximate solution (FPTAS), QAP is shown to be strongly NP-hard. Even finding a FPTAS for QAP is difficult, in the sense that the existence of a FPTAS implies P = NP. Current research on QAPs suffer from limited scale and computational inefficiency. To attack the aforementioned issues, we here propose the first solution of its kind for QAP in the learn-to-improve category. This work encodes facility and location nodes separately, instead of forming computationally intensive association graphs prevalent in current approaches. This design choice enables scalability to larger problem sizes. Furthermore, a \textbf{S}olution \textbf{AW}are \textbf{T}ransformer (SAWT) architecture integrates the incumbent solution matrix with the attention score to effectively capture higher-order information of the QAPs. Our model's effectiveness is validated through extensive experiments on self-generated QAP instances of varying sizes and the QAPLIB benchmark.

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="2406.09899")

Code

Syntology Ran 12 of 15 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 8 ran with no contract checked.

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

pkutan/sawt officialmentioned in paperpytorch 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

15 samples harvested; 12 ran; 0 honoured the contract we drafted; 3 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 · violated contract
2ran · our draft was wrong
1ran · fixture could not drive it
8ran
3unverified

Licence: 15 of the 15 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 pkutan/sawt. “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.

Decoder pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 344126b9167b8820 · report
MixEncoderLayer pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository ran no licence file found · pointer only · ad1592f8418dd699 · report
MultiHeadAttentionMixedScore pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 1f4519e85832b377 · report
PositionwiseFeedForward pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 9c08d66abe21cb78 · report
ScaledDotProductAttention pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 4c3e30be7eb37800 · report
batch_pair_squared_dist_no_norm pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · a58ececd126c8848 · report
generate_erdos_qap_instances PKUTAN/SAWT/QAP_DataGenerator.py official repository ran no licence file found · pointer only · cd5ef304a9b9e96e · report
generate_erdos_qap_instances_0_1 PKUTAN/SAWT/QAP_DataGenerator.py official repository ran no licence file found · pointer only · b37ca5512ebfa749 · report
generate_erdos_qap_instances_int PKUTAN/SAWT/QAP_DataGenerator.py official repository ran no licence file found · pointer only · 41a05afe6cb8cabe · report
get_pad_mask PKUTAN/SAWT/transformer/Models.py official repository ran · our draft was wrong no licence file found · pointer only · 733cd4727b4ed611 · report
get_subsequent_mask PKUTAN/SAWT/transformer/Models.py official repository ran · violated contract fingerprinted no licence file found · pointer only · 1eedfb10edb08c8a · report
reshape_by_heads PKUTAN/SAWT/transformer/Layers.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 459fe521069329c6 · report
ActorCriticNetwork pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository unverified no licence file found · pointer only · dcb619a621a712da · report
Encoder pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository unverified no licence file found · pointer only · 995fc2d49101be12 · report
batch_pair_squared_dist pkutan/sawt/ActorCriticNetwork_qap_mixEncoder.py official repository unverified no licence file found · pointer only · f9a43158498be829 · report

Tasks

Combinatorial Optimization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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