arXiv Science⌕ Search

arXiv subjects

Lipeng Liang

Publications and source records attributed to Lipeng Liang.

2 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↗

Rethinking Normalization Placement for LLMs: Post-Norm under Curriculum Depth Growing

Pre-norm is the standard normalization placement in modern Transformers because it facilitates joint optimization of full-depth models. We ask whether this preference persists when depth is introduced through a curriculum. In curriculum depth growth, each appended block receives the boundary representation produced by a trained prefix, making normalization placement relevant to forward conditioning. We therefore test whether placement and training curriculum interact. In a controlled distillation study with a Qwen3-8B teacher and a nine-layer student, pre-norm and post-norm are indistinguishable under joint training, differing by $0.0004$ validation CE, while post-norm improves over pre-norm by $0.0328$ under curriculum growth, an order of magnitude larger. A post-joint control matched by student active-layer tokens remains worse than post-grow, which rules out compute as the sole explanation. The ranking crosses over during the curriculum: post-norm takes the lead once blocks are appended. Single-block and freeze controls localize the ranking change to block appending rather than shallow-block quality or retraining. Boundary diagnostics associate post-norm with stable residual scales and pre-norm with structural-token scale drift; on a fixed batch, the final pre-grow block is also nearly identity-mapped. Together with the phase-wise crossover, these observations are consistent with boundary-scale conditioning after new blocks are appended. The results motivate treating normalization placement and training curriculum as coupled design choices in this distillation setting.

cs.AI↗