SetBERT: Enhancing Retrieval Performance for Boolean Logic and Set Operation Queries
We introduce SetBERT, a fine-tuned BERT-based model designed to enhance query embeddings for set operations and Boolean logic queries, such as Intersection (AND), Difference (NOT), and Union (OR).SetBERT significantly improves retrieval performance for logic-structured queries, an area where both traditional and neural retrieval methods typically underperform.We propose an innovative use of inversed-contrastive loss, focusing on identifying the negative sentence, and fine-tuning BERT with a dataset generated via prompt GPT.Furthermore, we demonstrate that, unlike other BERT-based models, fine-tuning with triplet loss actually degrades performance for this specific task.Our experiments reveal that SetBERT-base not only significantly outperforms BERT-base (up to a 63% improvement in Recall) but also achieves performance comparable to the much larger BERT-large model, despite being only one-third the size. CCS Concepts
Authors
- Douglas Adams (ORCID: https://orcid.org/0000-0002-5807-4892)
- Susan Gauch (ORCID: https://orcid.org/0000-0001-5538-7343)
- Quan Mai
Institutions
- University of Arkansas at Fayetteville (US)
Publication Details
- Published
- 2024-12-13
- DOI
- https://doi.org/10.1145/3711542.3711548
- Citations
- 3
- Primary Topic
- Advanced Database Systems and Queries
- Type
- article
- Field-Weighted Citation Impact
- 1.05
Funders
- National Science Foundation