Andrea Clementi, Luciano Gualà, Luca Pepè Sciarria, Alessandro Straziota
{"title":"在全动态数据流上维护具有恢复功能的 $k$-MinHash 签名","authors":"Andrea Clementi, Luciano Gualà, Luca Pepè Sciarria, Alessandro Straziota","doi":"arxiv-2407.21614","DOIUrl":null,"url":null,"abstract":"We consider the task of performing Jaccard similarity queries over a large\ncollection of items that are dynamically updated according to a streaming input\nmodel. An item here is a subset of a large universe $U$ of elements. A\nwell-studied approach to address this important problem in data mining is to\ndesign fast-similarity data sketches. In this paper, we focus on global\nsolutions for this problem, i.e., a single data structure which is able to\nanswer both Similarity Estimation and All-Candidate Pairs queries, while also\ndynamically managing an arbitrary, online sequence of element insertions and\ndeletions received in input. We introduce and provide an in-depth analysis of a dynamic, buffered version\nof the well-known $k$-MinHash sketch. This buffered version better manages\ncritical update operations thus significantly reducing the number of times the\nsketch needs to be rebuilt from scratch using expensive recovery queries. We\nprove that the buffered $k$-MinHash uses $O(k \\log |U|)$ memory words per\nsubset and that its amortized update time per insertion/deletion is $O(k \\log\n|U|)$ with high probability. Moreover, our data structure can return the\n$k$-MinHash signature of any subset in $O(k)$ time, and this signature is\nexactly the same signature that would be computed from scratch (and thus the\nquality of the signature is the same as the one guaranteed by the static\n$k$-MinHash). Analytical and experimental comparisons with the other, state-of-the-art\nglobal solutions for this problem given in [Bury et al.,WSDM'18] show that the\nbuffered $k$-MinHash turns out to be competitive in a wide and relevant range\nof the online input parameters.","PeriodicalId":501525,"journal":{"name":"arXiv - CS - Data Structures and Algorithms","volume":"209 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Maintaining $k$-MinHash Signatures over Fully-Dynamic Data Streams with Recovery\",\"authors\":\"Andrea Clementi, Luciano Gualà, Luca Pepè Sciarria, Alessandro Straziota\",\"doi\":\"arxiv-2407.21614\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We consider the task of performing Jaccard similarity queries over a large\\ncollection of items that are dynamically updated according to a streaming input\\nmodel. An item here is a subset of a large universe $U$ of elements. A\\nwell-studied approach to address this important problem in data mining is to\\ndesign fast-similarity data sketches. In this paper, we focus on global\\nsolutions for this problem, i.e., a single data structure which is able to\\nanswer both Similarity Estimation and All-Candidate Pairs queries, while also\\ndynamically managing an arbitrary, online sequence of element insertions and\\ndeletions received in input. We introduce and provide an in-depth analysis of a dynamic, buffered version\\nof the well-known $k$-MinHash sketch. This buffered version better manages\\ncritical update operations thus significantly reducing the number of times the\\nsketch needs to be rebuilt from scratch using expensive recovery queries. We\\nprove that the buffered $k$-MinHash uses $O(k \\\\log |U|)$ memory words per\\nsubset and that its amortized update time per insertion/deletion is $O(k \\\\log\\n|U|)$ with high probability. Moreover, our data structure can return the\\n$k$-MinHash signature of any subset in $O(k)$ time, and this signature is\\nexactly the same signature that would be computed from scratch (and thus the\\nquality of the signature is the same as the one guaranteed by the static\\n$k$-MinHash). Analytical and experimental comparisons with the other, state-of-the-art\\nglobal solutions for this problem given in [Bury et al.,WSDM'18] show that the\\nbuffered $k$-MinHash turns out to be competitive in a wide and relevant range\\nof the online input parameters.\",\"PeriodicalId\":501525,\"journal\":{\"name\":\"arXiv - CS - Data Structures and Algorithms\",\"volume\":\"209 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-31\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Data Structures and Algorithms\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2407.21614\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Data Structures and Algorithms","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.21614","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Maintaining $k$-MinHash Signatures over Fully-Dynamic Data Streams with Recovery
We consider the task of performing Jaccard similarity queries over a large
collection of items that are dynamically updated according to a streaming input
model. An item here is a subset of a large universe $U$ of elements. A
well-studied approach to address this important problem in data mining is to
design fast-similarity data sketches. In this paper, we focus on global
solutions for this problem, i.e., a single data structure which is able to
answer both Similarity Estimation and All-Candidate Pairs queries, while also
dynamically managing an arbitrary, online sequence of element insertions and
deletions received in input. We introduce and provide an in-depth analysis of a dynamic, buffered version
of the well-known $k$-MinHash sketch. This buffered version better manages
critical update operations thus significantly reducing the number of times the
sketch needs to be rebuilt from scratch using expensive recovery queries. We
prove that the buffered $k$-MinHash uses $O(k \log |U|)$ memory words per
subset and that its amortized update time per insertion/deletion is $O(k \log
|U|)$ with high probability. Moreover, our data structure can return the
$k$-MinHash signature of any subset in $O(k)$ time, and this signature is
exactly the same signature that would be computed from scratch (and thus the
quality of the signature is the same as the one guaranteed by the static
$k$-MinHash). Analytical and experimental comparisons with the other, state-of-the-art
global solutions for this problem given in [Bury et al.,WSDM'18] show that the
buffered $k$-MinHash turns out to be competitive in a wide and relevant range
of the online input parameters.