Sequential query prediction based on multi-armed bandits with ensemble of transformer experts and immediate feedback

Shameem Ahamed Puthiya Parambath, Christos Anagnostopoulos, Roderick Murray-SmithData Min. Knowl. Discov 2024

Introduction

In modern information retrieval, predicting a user's next query is crucial for enhancing the search experience. However, traditional sequence-to-sequence (seq2seq) models often fall short in interactive settings because they are static and fail to adapt to immediate user feedback. This paper introduces TEF (Transformer-based Experts and Feedback), a framework that bridges the gap between powerful Transformer ensembles and the real-time adaptability of Multi-Armed Bandits (MAB).

The TEF Framework

The core of TEF is an extension of the Exp3 (Exponential-weight algorithm for Exploration and Exploitation) bandit algorithm. The framework operates through several key components:

  • Ensemble of Experts: TEF leverages five state-of-the-art Transformer models—GPT2, CTRL, Transformer-XL, BERT, and BART—as "experts."
  • Dynamic Candidate Sets: Unlike standard MAB problems with a fixed set of "arms," TEF generates a new set of candidate queries at each step by pooling the top-$k$ suggestions from each expert.
  • Immediate Feedback Loop: User interactions (clicks or skips) are treated as rewards. TEF uses an exponential weighting scheme to dynamically adjust the trust placed in each expert or query type based on this feedback.
  • Theoretical Rigor: The authors proved that TEF’s cumulative regret matches the best attainable bounds for adversarial settings, even with a dynamically changing set of candidate queries.

Experimental Setup

The researchers evaluated TEF using a massive dataset of online literature discovery logs, comprising 4.5 million queries across 547,000 user sessions. To simulate user behavior in an offline setting, the BLEU metric was employed. A predicted query was considered a "click" (reward = 1) if it shared more than 50% of its tokens with the user's actual subsequent query.

Key Insights and Results

The study yielded several significant findings. Notably, Causal Language Models (CLMs) like GPT2 and CTRL were found to be superior to Masked Language Models (MLMs) like BERT. This is attributed to the "look-ahead" nature of query prediction, which aligns better with the training objective of CLMs.

Comparison of query predictions between two models.

Furthermore, TEF achieved a substantial reduction in per-round regret. While individual models maintained regret levels between 0.7 and 0.8, TEF’s regret decreased toward 0.1 as it learned from feedback. The strategy of maintaining a distribution over a set of candidates proved more effective than simply recommending the top prediction from a single model.

Conclusion and Future Work

TEF demonstrates that combining the linguistic depth of Transformers with the adaptive nature of bandits significantly improves sequential query prediction. Future research will explore non-linear reward structures through "deep bandits" and methods to reduce the computational overhead of running large ensembles in real-time.

Summary updated

BibTeX
@article{parambath2024sequential,
  author = {Shameem Ahamed Puthiya Parambath and Christos Anagnostopoulos and Roderick Murray-Smith},
  title = {{Sequential query prediction based on multi-armed bandits with ensemble of transformer experts and immediate feedback}},
  journal = {Data Min. Knowl. Discov.},
  year = {2024},
  doi = {10.1007/s10618-024-01057-4},
}
Figure