Contrastive Representations for Combinatorial Reasoning

Abstract

Contrastive learning (CL) has emerged as a powerful framework for learning structured representations that enable a wide range of downstream tasks. Its applications span sample-efficient reinforcement learning (RL), retrieval-augmented generation, and improved selection of model-generated samples, among others. Despite these successes, its potential for combinatorial reasoning problems remains largely untapped. In this paper, we take a step in this direction by using temporal contrastive learning to learn representations conducive to solving planning problems, which will reduce our reliance on planning. Our analysis reveals that standard CL approaches struggle to capture temporal dependencies over complex trajectories. To address this, we introduce a novel method that leverages negatives from the same trajectories. Across three complex reasoning tasks, our approach outperforms traditional supervised learning.

Cite

Text

Ziarko et al. "Contrastive Representations for Combinatorial Reasoning." ICLR 2025 Workshops: Re-Align, 2025.

Markdown

[Ziarko et al. "Contrastive Representations for Combinatorial Reasoning." ICLR 2025 Workshops: Re-Align, 2025.](https://mlanthology.org/iclrw/2025/ziarko2025iclrw-contrastive/)

BibTeX

@inproceedings{ziarko2025iclrw-contrastive,
  title     = {{Contrastive Representations for Combinatorial Reasoning}},
  author    = {Ziarko, Alicja and Bortkiewicz, Michał and Zawalski, Michał and Eysenbach, Benjamin and Miłoś, Piotr},
  booktitle = {ICLR 2025 Workshops: Re-Align},
  year      = {2025},
  url       = {https://mlanthology.org/iclrw/2025/ziarko2025iclrw-contrastive/}
}