Leveraging Decoder Architectures for Learned Sparse Retrieval
Jingfen Qiao, Thong Nguyen, Evangelos Kanoulas, Andrew Yates
TL;DR
The paper studies learned sparse retrieval (LSR) across encoder-only, decoder-only, and encoder-decoder transformers to generate lexical sparse representations for first-stage retrieval. It compares sparse representation heads (MLP and MLM, with single-token and multi-token variants) and introduces a multi-tokens decoding scheme to enable aggregate term expansion from input tokens. Results show zero-shot LLMs struggle with term expansion and noise; decoder-only LSR requires very large parameters to approach encoder performance. Encoder-decoder backbones with multi-tokens decoding deliver the strongest effectiveness, outperforming encoder-only and decoder-only under comparable training and distillation settings, while scaling and training signals such as MarginMSE distillation and FLOPs regularization play architecture-dependent roles. Overall, the work highlights the importance of backbone choice and targeted training strategies for practical, scalable sparse retrieval using inverted indexes.
Abstract
Learned Sparse Retrieval (LSR) has traditionally focused on small-scale encoder-only transformer architectures. With the advent of large-scale pre-trained language models, their capability to generate sparse representations for retrieval tasks across different transformer-based architectures, including encoder-only, decoder-only, and encoder-decoder models, remains largely unexplored. This study investigates the effectiveness of LSR across these architectures, exploring various sparse representation heads and model scales. Our results highlight the limitations of using large language models to create effective sparse representations in zero-shot settings, identifying challenges such as inappropriate term expansions and reduced performance due to the lack of expansion. We find that the encoder-decoder architecture with multi-tokens decoding approach achieves the best performance among the three backbones. While the decoder-only model performs worse than the encoder-only model, it demonstrates the potential to outperform when scaled to a high number of parameters.
