Saved in:
Bibliographic Details
Main Authors: Wisznia, Juan, Bolaños, Cecilia, Tollo, Juan, Marraffini, Giovanni, Gianolini, Agustín, Hsueh, Noe, Del Corro, Luciano
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.24643
Tags: Add Tag
No Tags, Be the first to tag this record!
Table of Contents:
  • We introduce a novel framework for analyzing sorting algorithms in pairwise ranking prompting (PRP), re-centering the cost model around LLM inferences rather than traditional pairwise comparisons. While classical metrics based on comparison counts have traditionally been used to gauge efficiency, our analysis reveals that expensive LLM inferences overturn these predictions; accordingly, our framework encourages strategies such as batching and caching to mitigate inference costs. We show that algorithms optimal in the classical setting can lose efficiency when LLM inferences dominate the cost under certain optimizations.