arXiv Science⌕ Search

arXiv subjects

Zhuohui Duan

Publications and source records attributed to Zhuohui Duan.

4 recordsLinked to original sources

RedMem-Store: Characterizing and Optimizing Storage Engine for LLM User Memory at Production Scale

Memory systems enable LLM applications to personalize question answering, recommendation, and semantic search using information retained from previous interactions. At RedNote, a global social networking platform serving 400 million users, the workload is heavily skewed: the vast majority of users hold only a few memories and often remain idle. Existing memory frameworks store memories in general-purpose vector databases, posing a fundamental scalability dilemma: isolating each user incurs prohibitively high storage overhead, whereas pooling all users into a shared index significantly increases query I/Os to the global corpus rather than the target user's data. We present RedMem-Store, a storage engine for production-scale user memory that resolves this dilemma through a virtual collection abstraction, providing logical per-user isolation over physically shared storage. This design eliminates per-user fixed storage overhead while keeping memory usage proportional to active users and confining each request's I/O to individual user data. Specifically, RedMem-Store incorporates three novel designs: 1) an access-aware virtual collection layout to locate active users in memory and read only required disk blocks, 2) user-batched in-place updates to coalesce small writes and amortize update I/Os, and 3) in-collection hybrid retrieval to filter vectors and search keywords over shared ordinals, deferring the read of texts in users' memory to mitigate unnecessary I/Os. Across production-scale workloads, RedMem-Store preserves P99 query latency at about 1ms regardless of the number of users. Compared with Qdrant and Milvus, RedMem-Store reduces P50 query latency by up to 25.8X and 14.8X, respectively. RedMem-Store has been deployed and served 400 million users stably for several months, significantly reducing the hardware cost of RedNote's production memory service by over 90%.

cs.DB↗

FlowBlock: Wavefront-Parallel Decoding for Self-Correcting Diffusion Language Models

Block-wise diffusion large language models (dLLMs) decode sequentially at the block level, enabling effective KV-cache reuse across blocks but making inter-block decoding strictly serial. Prior work has attempted to unlock inter-block parallelism through post-training methods, but achieves only modest speedups and often degrades accuracy. We observe that self-correcting dLLMs offer a training-free alternative: token-to-token (T2T) editing can repair tokens drafted with a slightly stale upstream context, so a downstream block requires only an informative draft rather than a finalized predecessor. This turns block finality from a hard dependency into a scheduling resource. We propose \textbf{\flowblock{}}, a training-free parallel decoding framework built on two mechanisms. (i) \emph{Gated Wavefront Decoding} admits blocks into a bounded wavefront only when a readiness gate is satisfied, jointly refines active blocks via T2T editing, and commits blocks in order under a windowed block-causal mask that preserves exact frozen-prefix KV caches reuse. (ii) \emph{Heterogeneous Wavefront Packing} assigns each request an independent wavefront while packing asynchronous windows into dense, shape-stable batched forwards. Across different benchmarks, \flowblock{} improves tokens per second (TPS) over LLaDA-2.1 and LLaDA-2.0, two serial block-wise dLLMs, by up to 2.95$\times$ and 4.01$\times$, while reducing latency by up to 53.6\% and 77.1\%, respectively. It also improves average accuracy by 1.3 points. Compared with D2F, a training-based inter-block-parallel baseline, \flowblock{} achieves higher accuracy and up to 16$\times$ higher batched serving throughput.

cs.AI↗

FusionANNS: An Efficient CPU/GPU Cooperative Processing Architecture for Billion-scale Approximate Nearest Neighbor Search

Approximate nearest neighbor search (ANNS) has emerged as a crucial component of database and AI infrastructure. Ever-increasing vector datasets pose significant challenges in terms of performance, cost, and accuracy for ANNS services. None of modern ANNS systems can address these issues simultaneously. We present FusionANNS, a high-throughput, low-latency, cost-efficient, and high-accuracy ANNS system for billion-scale datasets using SSDs and only one entry-level GPU. The key idea of FusionANNS lies in CPU/GPU collaborative filtering and re-ranking mechanisms, which significantly reduce I/O operations across CPUs, GPU, and SSDs to break through the I/O performance bottleneck. Specifically, we propose three novel designs: (1) multi-tiered indexing to avoid data swapping between CPUs and GPU, (2) heuristic re-ranking to eliminate unnecessary I/Os and computations while guaranteeing high accuracy, and (3) redundant-aware I/O deduplication to further improve I/O efficiency. We implement FusionANNS and compare it with the state-of-the-art SSD-based ANNS system -- SPANN and GPU-accelerated in-memory ANNS system -- RUMMY. Experimental results show that FusionANNS achieves 1) 9.4-13.1X higher query per second (QPS) and 5.7-8.8X higher cost efficiency compared with SPANN; 2) and 2-4.9X higher QPS and 2.3-6.8X higher cost efficiency compared with RUMMY, while guaranteeing low latency and high accuracy.

cs.IR↗

CPSAA: Accelerating Sparse Attention using Crossbar-based Processing-In-Memory Architecture

The attention mechanism requires huge computational efforts to process unnecessary calculations, significantly limiting the system's performance. Researchers propose sparse attention to convert some DDMM operations to SDDMM and SpMM operations. However, current sparse attention solutions introduce massive off-chip random memory access. We propose CPSAA, a novel crossbar-based PIM-featured sparse attention accelerator. First, we present a novel attention calculation mode. Second, we design a novel PIM-based sparsity pruning architecture. Finally, we present novel crossbar-based methods. Experimental results show that CPSAA has an average of 89.6X, 32.2X, 17.8X, 3.39X, and 3.84X performance improvement and 755.6X, 55.3X, 21.3X, 5.7X, and 4.9X energy-saving when compare with GPU, FPGA, SANGER, ReBERT, and ReTransformer.

cs.AR↗