Enhancing Transformer-based Routing by Encoding Distance via Relative Positional Encoding
Leyre Encío, Daniel Fuertes, Carlos R. del-Blanco, Fernando Jaureguizar
Abstract
This paper explores Relative Positional Encoding (RPE) as an additive bias in Transformer architectures to solve the Team Orienteering Problem. By embedding in the attention mechanism pairwise spatial relationships among nodes of the graph that represents the routing problem, the transformer encoder can compute a richer spatial-aware graph embedding that allows the decoder to estimate better routes. Experimental results involving instances up to 100 nodes demonstrate consistent improvements in collected rewards and optimality gaps over vanilla Transformer architectures used by other state-of-the-art works. These findings highlight that explicit relational modeling significantly enhances scalability and generalization for complex combinatorial optimization.
Create a lesson
Metadata
- Comments
- This work was accepted to be presented at the Graph Signal Processing Workshop 2026
Related papers
MeterRouter: Budget-Aware Dynamic Routing for Multi-Agent Systems
Shared title terminologycs.AIYue Xu, Leikun Yin, Ruiming Min et al.
Faster and Better Query (FBQ): Learning Future-Position Probes from the First Generated Token
Shared title terminologycs.AIJiankun Zou, Daixing Chen, Tongtong Yuan
Partial Routing: Trace-Tuned Delegation for Resource-Efficient Agentic Workflows
Shared title terminologycs.AISiddharth Arya, Kshitij Jain
The Control-Flow Tax: Specialized Decision Routing for LLM Agent Workflows
Shared title terminologycs.AIZhikai Cheng, Shuanghu Wang, Li Jiang
Agent-Guided Relational Concept Discovery: Toward Interpretable Surgical Margin Assessment
Shared title terminologycs.AINooshin Maghsoodi, Amoon Jamzad, Robert Policelli et al.
Identifying Good Rules for Efficient SAT Encodings of Single-Constant Multiplication Using Machine Learning
Shared title terminologycs.AIChufeng Jiang, Neng-Fa Zhou