SearcharxivSearch

arXiv subjects

Weihao Xu

Publications and source records attributed to Weihao Xu.

3 recordsLinked to original sources

ProfInfer: An eBPF-based Fine-Grained LLM Inference Profiler

As large language models (LLMs) move from research to production, understanding how inference engines behave in real time has become both essential and elusive. Unlike general-purpose engines such as ONNX Runtime, today's LLM inference systems offer little operator-level visibility, leaving developers blind to where time and resources go. Even basic questions -- is this workload memory-bound or compute-bound? -- often remain unanswered. To close this gap, we develop a fine-grained, non-intrusive profiling framework for modern LLM inference engines, exemplified by llama-cpp but applicable to similar runtime architectures. Built on extended Berkeley Packet Filter (eBPF) technology, our system dynamically attaches probes to runtime functions across multiple layers -- without modifying or recompiling the source. It transforms collected traces into rich visualizations of operators, graphs, timelines, and hardware counter trends, exposing how dense inference, Mixture-of-Experts routing, and operator offloading behave in practice. With less than 4% runtime overhead and high profiling fidelity, our framework makes LLM inference both transparent and diagnosable, turning performance profiling into a practical tool for optimization, scheduling, and resource-aware deployment.

cs.SE

ASTRA: Let Arbitrary Subjects Transform in Video Editing

While existing video editing methods excel with single subjects, they struggle in dense, multi-subject scenes, frequently suffering from attention dilution and mask boundary entanglement that cause attribute leakage and temporal instability. To address this, we propose ASTRA, a training-free framework for seamless, arbitrary-subject video editing. Without requiring model fine-tuning, ASTRA precisely manipulates multiple designated subjects while strictly preserving non-target regions. It achieves this via two core components: a prompt-guided multimodal alignment module that generates robust conditions to mitigate attention dilution, and a prior-based mask retargeting module that produces temporally coherent mask sequences to resolve boundary entanglement. Functioning as a versatile plug-and-play module, ASTRA seamlessly integrates with diverse mask-driven video generators. Extensive experiments on our newly constructed benchmark, MSVBench, demonstrate that ASTRA consistently outperforms state-of-the-art methods. Code, models, and data are available at https://github.com/XWH-A/ASTRA.

cs.CV

Compact and robust design of the optical system for cold atom interferometer in space

The optical system is a complex and precise subsystem for the atom interferometer (AI), especially for those used in field or space applications. Here, we introduce the design of the optical system of the China Space Station atom interferometer (CSSAI). The scheme is optimized to reduce the complexity while maintaining the capability to achieve the dual-species AI. It features a fused silica optical bench with bonding technology, ensuring compactness and smaller thermal deformation. Spatial structures are designed to isolate the vibration and transfer the heat. After assembling, the optical system has a size of 250 mm * 240 mm * 104 mm and weighs 5.2 kg. After installing in the CSSAI, it passed the thermal and mechanical tests and then launched to the China Space Station (CSS). The output laser power changes are less than 15% from ground to space, and its long-term fluctuations are less than 2.5% for months in space. Cold atom preparation and interference are also realized in space. This optical system is extremely integrated and robust, which provides a foundation for the design of future cold atom payloads in space.

physics.atom-ph