paper-with-me

홈 › Papers

VRSD: Rethinking Similarity and Diversity for Retrieval in Large Language Models

2024-07-05 · Hang Gao, Yongfeng Zhang

Vector retrieval algorithms are essential for semantic queries within the rapidly evolving landscape of Large Language Models (LLMs). The ability to retrieve vectors that satisfy both similarity and diversity criteria substantially enhances the performance of LLMs. Although Maximal Marginal Relevance (MMR) is widely employed in retrieval scenarios requiring relevance and diversity, variations in the parameter $\lambda$ lead to fluctuations that complicate the optimization trajectory in vector spaces. This obscures the direction of improvement and highlights the lack of a robust theoretical analysis regarding similarity and diversity constraints in retrieval processes. To address these challenges, this paper introduces a novel approach that characterizes both constraints through the relationship between the sum vector and the query vector. The proximity of these vectors ensures the similarity constraint, while requiring individual vectors within the sum vector to diverge in their alignment with the query vector satisfies the diversity constraint. We first formulate a new combinatorial optimization problem, selecting k vectors from a candidate set such that their sum vector maximally aligns with the query vector, and demonstrate that this problem is NP-complete. This result underscores the inherent difficulty of simultaneously achieving similarity and diversity in vector retrieval, thereby providing a theoretical foundation for future research. Subsequently, we present the heuristic algorithm Vectors Retrieval with Similarity and Diversity, VRSD, which features a clear optimization objective and eliminates the need for preset parameters. VRSD also achieves a modest reduction in time complexity compared to MMR. Empirical validation confirms that VRSD significantly outperforms MMR across various datasets.

📄 PDF Abstract BibTeX arXiv:2407.04573

Code (0)

등록된 구현이 없습니다.

Tasks

Combinatorial OptimizationDiversityRetrieval

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…

Similar Papers 제목 키워드 기반

Rethinking Similarity Search: Embracing Smarter Mechanisms over Smarter Data

2023-08-02 · Renzhi Wu, Jingfan Meng, Jie Jeff Xu, Huayi Wang 외

In this vision paper, we propose a shift in perspective for improving the effectiveness of similarity search. Rather than focusing solely on enhancing the data quality, particularly machine learning-generated embeddings,…

Retrieval

COBRA: COmBinatorial Retrieval Augmentation for Few-Shot Adaptation

2024-12-23 · CVPR 2025 1 · Arnav M. Das, Gantavya Bhatt, Lilly Kumari, Sahil Verma 외

Retrieval augmentation, the practice of retrieving additional data from large auxiliary pools, has emerged as an effective technique for enhancing model performance in the low-data regime. Prior approaches have employed …

DiversityFew-Shot Learningimage-classificationImage Classification+1

DF-RAG: Query-Aware Diversity for Retrieval-Augmented Generation

2026-01-23 · Saadat Hasan Khan, Spencer Hong, Jingyu Wu, Kevin Lybarger 외 arxiv

Retrieval-augmented generation (RAG) is a common technique for grounding language model outputs in domain-specific information. However, RAG is often challenged by reasoning-intensive question-answering (QA), since commo…

Two-stage Discriminative Re-ranking for Large-scale Landmark Retrieval

2020-03-25 · Shuhei Yokoo, Kohei Ozaki, Edgar Simo-Serra, Satoshi Iizuka

We propose an efficient pipeline for large-scale landmark image retrieval that addresses the diversity of the dataset through two-stage discriminative re-ranking. Our approach is based on embedding the images in a featur…

DiversityImage RetrievalLandmark RecognitionRe-Ranking+2

Quality analysis and evaluation prediction of RAG retrieval based on machine learning algorithms

2025-11-22 · Ruoxin Zhang, Zhizhao Wen, Chao Wang, Chenchen Tang 외 arxiv

With the rapid evolution of large language models, retrieval enhanced generation technology has been widely used due to its ability to integrate external knowledge to improve output accuracy. However, the performance of …

Semantic SimilarityFeature Engineering