Towards Improved Sentence Representations using Token Graphs

Krishna Sri Ipsit Mantri, Carola-Bibiane Schönlieb, Zorah Lähner, Moshe Eliasof
3/3/2026
2 citations
cs.LG

Official code: ipsitmantri/GLOT (3 stars, Python, MIT, last commit 2026-03-09).

Abstract

Obtaining a single-vector representation from a Large Language Model's (LLM) token-level outputs is a critical step for nearly all sentence-level tasks. However, standard pooling methods like mean or max aggregation treat tokens as an independent set, discarding the rich relational structure captured by the model's self-attention layers and making them susceptible to signal dilution.

Show full abstract

To address this, we introduce GLOT, a lightweight, structure-aware pooling module that reframes pooling as relational learning followed by aggregation. Operating on the outputs of a frozen LLM, GLOT first constructs a latent token-similarity graph, then refines token representations with a graph neural network, and finally aggregates them using a readout layer. Experimentally, our approach is remarkably robust and efficient: on a diagnostic stress test where 90% of tokens are random distractors, GLOT maintains over 97% accuracy while baseline methods collapse. Furthermore, it is competitive with state-of-the-art techniques on benchmarks like GLUE and MTEB with 20x fewer trainable parameters and speeds up the training time by over 100x compared with parameter-efficient fine-tuning methods. Supported by a theoretical analysis of its expressive power, our work shows that learning over token graphs is a powerful paradigm for the efficient adaptation of frozen LLMs. Our code is published at https://github.com/ipsitmantri/GLOT.

View on arXivView PDF

Code Implementations(1)

ipsitmantri/GLOTOfficial100%
MIT

Towards Improved Sentence Representations Using Token Graphs (ICLR 2026)

32Python, HTMLJan 28, 20268 months agoMIT

Similar Papers

Cite this paper

@article{mantri2026towards,
  title  = {Towards Improved Sentence Representations using Token Graphs},
  author = {Krishna Sri Ipsit Mantri and Carola-Bibiane Schönlieb and Zorah Lähner and Moshe Eliasof},
  year   = {2026},
  eprint = {2603.03389},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.03389v1},
  journal = {ICLR 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.03389.svg)](https://codeofpaper.com/paper/2603.03389)

Discussion