mlsanityData to 7 Oct 2026

Rank It, Then Ask It: Input Reranking for Maximizing the Performance of LLMs on Symmetric Tasks

arXiv 2412.00546 ↗First posted 30 Nov 2024cs.LG cs.DB cs.IRcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have quickly emerged as practical and versatile tools that provide new solutions for a wide range of domains. In this paper, we consider the application of LLMs on symmetric tasks where a query is asked on an (unordered) bag of elements. Examples of such tasks include answering aggregate queries on a database table. In general, when the bag contains a large number of elements, LLMs tend to overlook some elements, leading to challenges in generating accurate responses to the query. LLMs receive their inputs as ordered sequences. However, in this problem, we leverage the fact that the symmetric input is not ordered, and reordering should not affect the LLM's response. Observing that LLMs are less likely to miss elements at certain positions of the input, we introduce the problem of LLM input reranking: to find a ranking of the input that maximizes the LLM's accuracy for the given query without making explicit assumptions about the query. Finding the optimal ranking requires identifying (i) the relevance of each input element for answering the query and (ii) the importance of each rank position for the LLM's attention. We develop algorithms for estimating these values efficiently utilizing a helper LLM. We conduct comprehensive experiments on different synthetic and real datasets to validate our proposal and to evaluate the effectiveness of our proposed algorithms. Our experiments confirm that our reranking approach improves the accuracy of the LLMs on symmetric tasks by up to 99% proximity to the optimum upper bound.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 33 of its 58 references that are in the map. First posted on arXiv 30 Nov 2024.

Builds on

33 of 58 references.

References · 33

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  5. 2020Longformer: The Long-Document Transformercited by 3,362
  6. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  7. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  8. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
  9. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  10. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  11. 2024LLM Evaluators Recognize and Favor Their Own Generationscited by 651
  12. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
21 more
  1. 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 373
  2. 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 318
  3. 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
  4. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  5. 2024Self-Preference Bias in LLM-as-a-Judgecited by 248
  6. 2024RankRAG: Unifying Context Ranking with Retrieval-Augmented Generation in LLMscited by 200
  7. 2018Fairness of Exposure in Rankingscited by 189
  8. 2024Large Language Models are Inconsistent and Biased Evaluatorscited by 146
  9. 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 129
  10. 2023Unlocking Context Constraints of LLMs: Enhancing Context Efficiency of LLMs with Self-Information-Based Content Filteringcited by 62
  11. 2022On the Limitations of Reference-Free Evaluations of Generated Textcited by 52
  12. 2020Mitigating Manipulation in Peer Review via Randomized Reviewer Assignmentscited by 38
  13. 2024A Declarative System for Optimizing AI Workloadscited by 35
  14. 2023Never Lost in the Middle: Mastering Long-Context Question Answering with Position-Agnostic Decompositional Trainingcited by 31
  15. 2020Linear Attention Mechanism: An Efficient Attention for Semantic Segmentationcited by 21
  16. 2023Double Equivariance for Inductive Link Prediction for Both New Nodes and New Relation Typescited by 21
  17. 2024LLM In-Context Recall is Prompt Dependentcited by 15
  18. 2024AXOLOTL: Fairness through Assisted Self-Debiasing of Large Language Model Outputscited by 7
  19. 2016Incentives for Truthful Peer Gradingcited by 3
  20. 2018Removing Bias and Incentivizing Precision in Peer-gradingcited by 2
  21. 2024REQUAL-LM: Reliability and Equity through Aggregation in Large Language Modelscited by 1

Built on by

Not cited yet.