arXiv ScienceSearch

arXiv subjects

Jun You

Publications and source records attributed to Jun You.

3 recordsLinked to original sources

Taming Asynchronous CPU-GPU Coupling for Frequency-aware Latency Estimation on Mobile Edge

Precise estimation of model inference latency is crucial for time-critical mobile edge applications, enabling devices to calculate latency margins against deadlines and trade them for enhanced model performance or resource savings. However, the ubiquity of Dynamic Voltage and Frequency Scaling (DVFS) renders traditional static profiling invalid in real-world deployments, as inference latency fluctuates with varying processor (CPU and GPU) frequencies. While extensive profiling across frequency combinations is theoretically possible, it is prohibitively expensive, particularly for emerging Small Language Models (SLMs), where variable context lengths explode the profiling up to days. We observe that simple analytic scaling fails to predict these fluctuations due to the complex asynchronous coupling between CPU (kernel launching) and GPU (execution). In this paper, we introduce FLAME to accurately estimate inference latency across frequency combinations. It features a novel layer-wise modeling that quantifies the overlapping parallelism and then aggregates dynamic pipeline bubbles caused by asynchronous processor interactions when extending to the full model. This bottom-up approach ensures generalizability across diverse models from DNNs to SLMs, and its precise modeling allows for profiling a sparse subset of samples, cutting DNN profiling from hours to minutes and SLM profiling from days to mere minutes, while maintaining small estimation errors across frequencies. We further showcase FLAME's utility in a deadline-aware DVFS, outperforming the state-of-the-art approach in both power efficiency and latency guarantees.

cs.AR

CML-Bench: A Framework for Evaluating and Enhancing LLM-Powered Movie Scripts Generation

Large Language Models (LLMs) have demonstrated remarkable proficiency in generating highly structured texts. However, while exhibiting a high degree of structural organization, movie scripts demand an additional layer of nuanced storytelling and emotional depth-the 'soul' of compelling cinema-that LLMs often fail to capture. To investigate this deficiency, we first curated CML-Dataset, a dataset comprising (summary, content) pairs for Cinematic Markup Language (CML), where 'content' consists of segments from esteemed, high-quality movie scripts and 'summary' is a concise description of the content. Through an in-depth analysis of the intrinsic multi-shot continuity and narrative structures within these authentic scripts, we identified three pivotal dimensions for quality assessment: Dialogue Coherence (DC), Character Consistency (CC), and Plot Reasonableness (PR). Informed by these findings, we propose the CML-Bench, featuring quantitative metrics across these dimensions. CML-Bench effectively assigns high scores to well-crafted, human-written scripts while concurrently pinpointing the weaknesses in screenplays generated by LLMs. To further validate our benchmark, we introduce CML-Instruction, a prompting strategy with detailed instructions on character dialogue and event logic, to guide LLMs to generate more structured and cinematically sound scripts. Extensive experiments validate the effectiveness of our benchmark and demonstrate that LLMs guided by CML-Instruction generate higher-quality screenplays, with results aligned with human preferences.

cs.CV

Integrated Energy System Optimal Operation in Coal District With Hydrogen Heavy Trucks

The coal industry contributes significantly to the social economy, but the emission of greenhouse gases puts huge pressure on the environment during mining, transportation, and power generation. In the integrated energy system (IES), current research on power-to-gas (P2G) technology mainly focuses on injecting hydrogen generated from renewable-energy-powered electrolysis into natural gas pipelines. However, hydrogen injection may cause irreversible hydrogen embrittlement of pipelines. In this paper, sufficient hydrogen is produced through both P2G technology and coal-to-hydrogen (C2H) based on coal gasification, considering the typical scenario where coal-producing regions are rich in both coal and renewable energy resources. To transport mined coal, hydrogen heavy-duty trucks provide a promising solution by consuming hydrogen in a timely manner, thereby avoiding potentially dangerous hydrogen injection into pipelines and reducing the need for relatively expensive hydrogen storage. An optimal scheduling model for an electric-gas IES is proposed based on second-order cone programming (SOCP). The proposed model innovatively studies a closed industrial loop including coal mining, hydrogen production, coal transportation by hydrogen trucks, and integrated energy systems to enhance renewable energy utilization and coordinate multiple energy carriers. Finally, a case study based on the IEEE 30-bus power system and the Belgium 24-node natural gas network is conducted. The results show that the proposed hydrogen production technology reduces typical daily operating costs by 7.7%. Under China's carbon emissions trading system, the operating costs of hydrogen heavy-duty trucks are reduced by 0.95% and 4.68% compared with electric vehicles and diesel trucks, respectively. Under Europe's stricter carbon emissions trading system, ...

eess.SY