Search arXiv⌕ Search

arXiv subjects

Yunfan Cui

Publications and source records attributed to Yunfan Cui.

3 recordsLinked to original sources

AdaptShift: Reducing GPU Energy in LLM Serving under Changing Loads and Variable Clock Transition Delays

Growing demand for LLM inference increases GPU energy consumption and serving costs. The most energy-efficient GPU frequency varies with the serving load, and a frequency change can take effect after the workload has shifted again. We present Adaptshift, an iteration-level GPU frequency controller that selects energy-efficient operating points under latency service-level objectives (SLOs) and accounts for the time needed to reach them. The Iteration Latency Predictor composes reusable kernel performance models to predict latency across frequencies. The Dual-objective Frequency Selector uses these predictions and GPU power models to choose the lowest-energy frequency within the iteration's latency budget. The Adjustment Decision Maker combines the expected workload duration with a measured distribution of downshift effective times to estimate whether a downshift will take effect early enough to save energy. We implement Adaptshift in SGLang and evaluate it on three GPU types using two production traces, covering dense models, mixture-of-experts models, colocated serving, and prefill--decode disaggregation. Adaptshift saves up to 40.2% GPU energy and achieves up to 1.67$\times$ output tokens per joule (TPJ) relative to NVIDIA's default frequency management. Compared with throttLL'eM and GreenLLM, it achieves up to 1.41$\times$ TPJ while reducing time-to-first-token (TTFT) and time-per-output-token (TPOT) SLO violation rates by up to 2.67$\times$ and 22.5$\times$, respectively.

cs.DC↗

ZifaMem: Structured Memory for Persona, Preference, and Emotional Continuity in AI Companions

AI companions are judged not only by single-turn fluency but by whether they sustain emotional continuity: remembering who the companion is, what the user prefers, and how the relationship has felt. We present ZifaMem, a structured memory system that organizes dialogue into session summaries, episodic memories, and a consolidated user model. Against a deployment-honest comparator that supplies the full raw dialogue history, and under a fixed LLM-as-a-judge protocol with route audits, structured memory raises pooled four-backbone emotional-intelligence scores by 11.4% (95% CI 6.3% to 17.1%), and persona grounding improves on all four backbones (Claude +42% relative). Multi-turn affect context wins a +39% net preference over a single-turn snapshot (exploratory), whereas an additional emotion state machine yields no measurable gain on any of five endpoints. Under an identical preregistered protocol, three memory systems (ZifaMem, Mem0, and filtered verbatim retrieval) each improve significantly over raw-history deployment, and ZifaMem and Mem0 are statistically equivalent within +/-5 points on the preregistered primary preference endpoint. The ZifaMem SDK, CLI, and portable Agent Skills are open-sourced at https://github.com/zifacorp/zifamem.

cs.AI↗

PipeWeave: Synergizing Analytical and Learning Models for Unified GPU Performance Prediction

The rapid expansion of Transformer-based large language models has dramatically increased the need for high-performance GPUs. As a result, there is growing demand for fast, accurate, and widely generalizable GPU performance models to support next-generation hardware selection and system-level exploration. However, current data-driven methods are limited, exhibiting poor generalization across hardware and inadequate modeling of complex production-level kernels common in modern inference stacks. To address these issues, we present PipeWeave, a unified GPU modeling framework. This approach first employs an analytical model to quantify a given kernel's demands on the GPU's heterogeneous instruction pipelines. These analytical features are then fed into a machine learning (ML) model to capture complex cross-pipeline interactions and resource dependencies, enabling high-fidelity performance prediction. Our evaluation across 11 GPU types from four generations of major architectures on two widely-used serving systems demonstrates that PipeWeave delivers high fidelity and strong generalizability. It achieves accurate predictions, with only 6.1% average error at the kernel level and 8.5% for end-to-end inference -- reducing the error of state-of-the-art methods by 6.7x and 4.4x, respectively. We also demonstrate PipeWeave's value "beyond simulation" by utilizing its performance ceiling to diagnose implementation shortcomings and guide the optimization of a production fused MoE Triton kernel, achieving up to 1.7x speedup. Code is available https://github.com/zksainx/pipeweave.

cs.PF↗