arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.07144cs.DBcs.DC
收藏

文本分析中的相似性驱动近似

Similarity Driven Approximation for Text Analytics

Guangyan Hu, Yongfeng Zhang, Sandro Rigo, Thu D. Nguyen

摘要:

随着企业越来越多地寻求从文本数据集中提取决策见解,文本分析已成为商业智能的重要组成部分。然而,处理大型文本数据集在计算上是昂贵的,特别是如果它涉及复杂的算法。当需要对一个数据集运行不同类型的查询时,这个挑战会加剧,这使得构建多个索引以加快查询处理的成本很高。在本文中,我们提出并评估了一个名为EmApprox的框架,该框架使用近似来加快处理大范围的查询,在大型文本数据集。关键的见解是,不同类型的查询可以通过处理与查询最相似的数据子集来近似。EmApprox通过学习自然语言处理模型为数据集构建通用索引,生成一组高度压缩的向量,表示单词和文档子集。然后,在查询处理时,EmApprox使用索引来指导数据集的采样,选择文档的每个子集合的概率与其与查询的{ \em相似度}成比例,如使用向量表示所计算的。我们已经实现了EmApprox的原型作为Apache Spark系统的扩展,并使用它来近似三种类型的查询:聚合,信息检索和推荐。实验结果表明,EmApprox的相似性引导的采样实现了更好的精度比随机采样。此外,如果用户可以容忍少量的不准确性,EmApprox可以实现显著的加速。例如,当采样率为10%时,EmApprox将一组查询的速度提高了近10倍,同时对90%的查询实现了小于22%的估计相对误差。

英文摘要:

Text analytics has become an important part of business intelligence as enterprises increasingly seek to extract insights for decision making from text data sets. Processing large text data sets can be computationally expensive, however, especially if it involves sophisticated algorithms. This challenge is exacerbated when it is desirable to run different types of queries against a data set, making it expensive to build multiple indices to speed up query processing. In this paper, we propose and evaluate a framework called EmApprox that uses approximation to speed up the processing of a wide range of queries over large text data sets. The key insight is that different types of queries can be approximated by processing subsets of data that are most similar to the queries. EmApprox builds a general index for a data set by learning a natural language processing model, producing a set of highly compressed vectors representing words and subcollections of documents. Then, at query processing time, EmApprox uses the index to guide sampling of the data set, with the probability of selecting each subcollection of documents being proportional to its {\em similarity} to the query as computed using the vector representations. We have implemented a prototype of EmApprox as an extension of the Apache Spark system, and used it to approximate three types of queries: aggregation, information retrieval, and recommendation. Experimental results show that EmApprox's similarity-guided sampling achieves much better accuracy than random sampling. Further, EmApprox can achieve significant speedups if users can tolerate small amounts of inaccuracies. For example, when sampling at 10\%, EmApprox speeds up a set of queries counting phrase occurrences by almost 10x while achieving estimated relative errors of less than 22\% for 90\% of the queries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑