RareSense: Rarity-Aware Similarity Search for Anomaly Retrieval in Transactional Data
Abstract
Similarity search over sparse set-valued data is often dominated by frequent background attributes because classical measures such as Jaccard, cosine, and Hamming compare objects through atomic overlap. IDF (Inverse document frequency) weighting partially reduces this effect but remains atom-wise and cannot explicitly represent informative higher-order co-occurrences. We introduce RareSense, a rarity-aware similarity framework for sparse transactional anomaly data. RareSense mines minimal rare itemsets as intermediate structures, derives reliable rare association rules, maps objects into sparse rare-rule profiles, and compares them using weighted Jaccard similarity. Rule weights combine inverse support, confidence, lift, structural complexity, and stability, so that neighborhoods are determined by shared rare evidence rather than uniform feature overlap. We show that IDF-weighted Jaccard is a restricted singleton case of RareSense, and that the induced distance is a pseudometric on the original objects and a metric over equivalence classes defined by identical rule profiles. Experiments across four benchmark families spanning cybersecurity and general categorical domains show that RareSense attains the highest observed macro-average query-conditioned retrieval performance among the evaluated similarity measures. The statistical analysis indicates significant overall differences, with corrected paired comparisons favoring RareSense over the atomic baselines. The gains remain workload-dependent and are strongest when anomalies share repeatable rare higher-order structure. For global anomaly ranking, RareSense achieves the highest observed macro-average performance while remaining statistically comparable to several strong dedicated detectors.
Create a lesson
Metadata
- Categories
- cs.IR, cs.AI, cs.LG
Related papers
Structure-Aware Multimodal Retrieval Under Data Scarcity, Privacy Constraints and Out-of-Domain Content
Shared title terminologycs.IRArgyrios Zafeiriou, Dionysios Koulouris, Ilias Maglogiannis
Search, Inspect, Fetch: Exploiting Structure-Aware Boolean Retrieval for Deep-Search Agents
Shared title terminologycs.IRShuai Wang, Haodong Chen, Yu Yin et al.
SPEAR: Selection-aware Personalized End-to-end Adaptive Rewriting and Retrieval for Community Search
Shared title terminologycs.IRWenbin Wu, Yuzhong Wu, Yufan Xu et al.
Privacy-Aware Adaptive Client Selection for Federated Retrieval-Augmented Generation
Shared title terminologycs.IRAli Shams Saryazd, Abolfazl Gandomi
Can Search Agents Correct Their Own Errors? Evaluating Retrieval, Evidence Delivery, and Answer Completion
Shared title terminologycs.IRVenkata Pagadala, K. Rajasekhara Rao, Pratyay Ganguly
PROSPER: LLMs as Sparse Retrievers for First-Stage Product Search
Shared title terminologycs.IRHongru Song, Yu-An Liu, Ruqing Zhang et al.