# Learning to Solve Compositional Geometry Routing Problems

*Mingfeng Fan, Jianan Zhou, Jiaqi Cheng, Yifeng Zhang, Jie Zhang, Guillaume Sartoretti*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150073) · [OpenReview](https://openreview.net/forum?id=kvdydED2s3) · [alphaXiv](https://www.alphaxiv.org/abs/2605.18094) · [Open on the map](../papers.html#p150073)

Category: [Optimization & Federated Learning](../pcat/13.md) › [Neural Combinatorial Optimization](../pgroup/87.md) · Type: new method · Keywords: geometry routing, compositional problems, differential attention, contrastive learning, action space, plug-and-play

Areas: [LLM Reasoning](../areas/reasoning.md) › Domain-Specific Reasoning › Energy Minimization; [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › Neural Combinatorial Optimization

## Summary
DiCon introduces a differential attention and contrastive learning framework to solve the Compositional Geometry Routing Problem across diverse geometric task types.

## Explained to a 5-year-old
Imagine you have to move things around, but the things can be points, lines, or areas. The usual way only works for single points, but real life is more complicated. We built a smart helper that looks at all the shapes and learns which moves are good. The helper pays attention to the most useful choices and ignores the ones that are not helpful. Now the helper can solve many different kinds of routing puzzles easily.

## Explained to a 5-year-old, longer
In many games and real tasks, you need to move things from one place to another. Sometimes the things you move are just points, like dots on a map. Other times they are lines, like a road, or areas, like a park. When you have a mix of these shapes, the problem becomes harder because there are many possible ways to go. Old methods only know how to handle simple points, so they cannot solve these more complex puzzles. Scientists wanted a new way to solve these puzzles that could work with any shape. They created a system that watches all the shapes and learns which moves are useful. The system pays attention to the best choices and ignores the ones that are not helpful. It also learns from many examples to understand how different shapes relate to each other. By doing this, the system can make good decisions even when there are many possible routes. The new approach can handle many different kinds of puzzles, from simple to very complex. This helps people solve real-world routing problems more efficiently and accurately.

## For a technical reader
The paper addresses routing problems that involve not only points but also lines, areas, and hybrid geometries, which are common in real-world scenarios. Existing solvers are limited to point-based tasks and cannot efficiently handle the enlarged action space created by multiple geometry types. The proposed solution uses a differential attention mechanism to down-weight less competitive actions and a double-level contrastive learning objective to learn robust representations of both global instances and geometry-specific tasks. Experiments show that this approach delivers strong performance, broad versatility, and good generalization across a variety of compositional geometry routing instances. The framework is plug-and-play, making it easy to integrate with existing routing solvers for practical applications.

## Problem
Routing problems that involve not only points but also lines, areas, and hybrid geometries are challenging because they create asymmetric, tightly coupled routes and a large action space. Existing methods struggle to represent and decide among the many feasible yet often irrelevant options in such compositional geometry settings.

## Method
The approach employs a differential attention mechanism that suppresses probability mass on less competitive candidate actions, and a double-level contrastive learning objective that promotes robust global instance representations while regularizing geometry-aware task representations. This plug-and-play framework can be integrated with various solvers to address the problem from representation and decision-making perspectives.

## Results
The approach shows strong performance, broad versatility, and superior generalization across diverse CGRP instances with varying compositions.

## Contributions
It introduces a differential attention mechanism for action suppression and a double-level contrastive learning objective for robust geometry-aware representations, providing a unified framework for compositional geometry routing problems.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150073)
