Operating Systems

2025-06-17 | | Total: 2

#1 Semantic Scheduling for LLM Inference [PDF] [Copy] [Kimi] [REL]

Authors: Wenyue Hua, Dujian Ding, Yile Gu, Yujie Ren, Kai Mei, Minghua Ma, William Yang Wang

Conventional operating system scheduling algorithms are largely content-ignorant, making decisions based on factors such as latency or fairness without considering the actual intents or semantics of processes. Consequently, these algorithms often do not prioritize tasks that require urgent attention or carry higher importance, such as in emergency management scenarios. However, recent advances in language models enable semantic analysis of processes, allowing for more intelligent and context-aware scheduling decisions. In this paper, we introduce the concept of semantic scheduling in scheduling of requests from large language models (LLM), where the semantics of the process guide the scheduling priorities. We present a novel scheduling algorithm with optimal time complexity, designed to minimize the overall waiting time in LLM-based prompt scheduling. To illustrate its effectiveness, we present a medical emergency management application, underscoring the potential benefits of semantic scheduling for critical, time-sensitive tasks. The code and data are available at https://github.com/Wenyueh/latency_optimization_with_priority_constraints.

Subjects: Machine Learning , Artificial Intelligence , Operating Systems

Publish: 2025-06-13 20:15:58 UTC


#2 NaSh: Guardrails for an LLM-Powered Natural Language Shell [PDF] [Copy] [Kimi] [REL]

Authors: Bimal Raj Gyawali, Saikrishna Achalla, Konstantinos Kallas, Sam Kumar

We explore how a shell that uses an LLM to accept natural language input might be designed differently from the shells of today. As LLMs may produce unintended or unexplainable outputs, we argue that a natural language shell should provide guardrails that empower users to recover from such errors. We concretize some ideas for doing so by designing a new shell called NaSh, identify remaining open problems in this space, and discuss research directions to address them.

Subjects: Operating Systems , Artificial Intelligence

Publish: 2025-06-16 01:34:25 UTC