用于在线数据流快速且内存高效管理的结构化下采样
Structured Downsampling for Fast, Memory-efficient Curation of Online Data Streams
AI总结:
提出DStream算法套件,通过单一更新操作和位级计算实现内存高效、固定容量的数据流滚动下采样,支持平稳、拉伸和倾斜三种时间覆盖标准,并在O(1)时间内完成数据摄入。
摘要:
对数据流的操作通常依赖于在滚动基础上聚合或总结历史记录的高效机制。对于高吞吐量的数据流,以快速且内存高效的方式管理状态至关重要——尤其是在资源受限或实时环境中。在这里,我们解决了从数据流中提取固定容量、滚动子样本的问题。具体来说,我们探索了“数据流管理”策略,以满足对保留的样本时间点组成的要求。我们的“DStream”算法套件针对三个时间覆盖标准:(1)平稳覆盖,即保留的样本应在已过去的数据流历史中均匀分布;(2)拉伸覆盖,即早期的数据项应受到比例上的青睐;(3)倾斜覆盖,即最近的数据项应受到比例上的青睐。对于每种算法,我们证明了滚动覆盖质量的下限。我们专注于在给定固定内存容量下最大化覆盖质量的更具实用性的、应用驱动的情况。作为一个核心简化假设,我们将算法设计限制为单一更新操作:从数据流写入到计算出的缓冲区位置——数据从不被回读,不存储元数据(例如,样本时间戳),并且数据驱逐仅通过覆盖隐式发生。仅依赖底层基本操作并确保充分利用可用内存且无额外开销,这个“DStream”框架非常适合资源受限、性能关键且细粒度的领域(例如,单个数据项小至单个位或字节)。所提出的方法通过简洁的位级操作支持 O(1) 数据摄入。为了进一步实际应用,我们提供了针对脚本和编译应用领域的即插即用开源实现。
英文摘要:
Operations over data streams typically hinge on efficient mechanisms to aggregate or summarize history on a rolling basis. For high-volume data steams, it is critical to manage state in a manner that is fast and memory efficient -- particularly in resource-constrained or real-time contexts. Here, we address the problem of extracting a fixed-capacity, rolling subsample from a data stream. Specifically, we explore ``data stream curation'' strategies to fulfill requirements on the composition of sample time points retained. Our ``DStream'' suite of algorithms targets three temporal coverage criteria: (1) steady coverage, where retained samples should spread evenly across elapsed data stream history; (2) stretched coverage, where early data items should be proportionally favored; and (3) tilted coverage, where recent data items should be proportionally favored. For each algorithm, we prove worst-case bounds on rolling coverage quality. We focus on the more practical, application-driven case of maximizing coverage quality given a fixed memory capacity. As a core simplifying assumption, we restrict algorithm design to a single update operation: writing from the data stream to a calculated buffer site -- with data never being read back, no metadata stored (e.g., sample timestamps), and data eviction occurring only implicitly via overwrite. Drawing only on primitive, low-level operations and ensuring full, overhead-free use of available memory, this ``DStream'' framework ideally suits domains that are resource-constrained, performance-critical, and fine-grained (e.g., individual data items as small as single bits or bytes). The proposed approach supports $\mathcal{O}(1)$ data ingestion via concise bit-level operations. To further practical applications, we provide plug-and-play open-source implementations targeting both scripted and compiled application domains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。