Integrating Artificial Intelligence into Operating Systems: A Survey on Techniques, Applications, and Future Directions

Yifan Zhang, Xinkui Zhao, Ziying Li, Guanjie Cheng, Jianwei Yin, Lufei Zhang, Zuoning Chen

TL;DR

This comprehensive survey maps out the rapidly evolving, mutually reinforcing relationship between Artificial Intelligence (AI) and Operating Systems (OS). It categorizes the landscape into two core paradigms: AI for OS (using machine learning, LLMs, and autonomous agents to optimize kernel subsystems) and OS for AI (rearchitecting operating systems to accelerate heavy AI training and inference workloads). Finally, the paper outlines a progressive three-stage roadmap transitioning from today's AI-augmented systems to fully autonomous, AI-driven operating systems.

What Problem Does This Paper Address?

Traditional operating systems are built on static, human-designed heuristics and rule-based policies. While algorithms like the Linux Completely Fair Scheduler (CFS) or Least Recently Used (LRU) cache replacement have served us well for decades, they are increasingly inadequate for modern computing environments. Today's systems face highly heterogeneous hardware (co-existing CPUs, GPUs, and NPUs) and highly dynamic, unpredictable workloads. Static heuristics fail to adapt to these complexities, resulting in severe performance bottlenecks, resource contention, and massive manual maintenance overhead.

At the same time, fragmented efforts have emerged to apply machine learning (ML) and Large Language Models (LLMs) to various OS tasks, or to optimize the OS data path for AI workloads. However, the research community has lacked a unifying perspective, a standardized taxonomy, and a clear evolutionary roadmap. This paper addresses this fragmentation by providing a comprehensive, structured overview of the entire AI-OS intersection.

Figure 3: A categorization of integration of AI and OS.

Methods

As a survey paper, the authors' primary methodology lies in creating a structured framework to classify and analyze existing literature. They organize the intersection of AI and OS along three main axes:

  1. AI for OS (Core & Ecosystem): Investigating how traditional ML (e.g., Random Forests, LSTMs, Multi-Layer Perceptrons), LLMs, and agent-based intelligence enhance core kernel modules (process scheduling, memory management, I/O, storage, networking, and security) as well as the broader software ecosystem (automated coding, formal verification, system tuning, and education).
  2. OS for AI (Component & Architecture Level): Analyzing how operating systems can be optimized to support modern AI pipelines. This includes component-level tuning for short-context and long-context (RAG) inference, and architecture-level innovations like kernel-bypass networking, device-driven I/O, and Library OSs (LibOS) to maximize accelerator utilization.
  3. The Maturity Roadmap: Proposing a three-stage evolutionary path for intelligent operating systems:
  4. AI-Powered OS: Traditional architectures that append auxiliary AI modules to enhance user experience or optimize specific resource policies without altering core designs.
  5. AI-Refactored OS: Deeper architectural restructuring where kernel components are modularized and decoupled into micro-libraries, allowing AI to dynamically configure and self-adapt the system at runtime.
  6. AI-Driven OS: A radical paradigm shift where traditional heuristic logic is completely supplanted by embedded AI models at the core, enabling autonomous generation, evolution, and unified orchestration of all computing resources.

Datasets

Because this is a survey paper, it reviews various datasets and benchmarks utilized across the literature rather than introducing a new training dataset. Notable benchmarks and evaluation traces highlighted include:

  • LinuxFLBench: A newly introduced benchmark constructed from real-world Linux kernel bugs, specifically designed to evaluate LLM agents in fault localization.
  • SWE-bench: An external benchmark used to evaluate the software engineering capabilities of LLM agents.
  • VulnLoc & SAN2VULN: Datasets used to train and validate automated vulnerability repair systems like SAN2PATCH.
  • UnixBench: A standard baseline used to measure performance gains from automated kernel configuration tools like AutoOS.
  • Selene: A benchmark based on the industrial-grade seL4 microkernel used for evaluating automated proof generation in formal software verification.
  • Production Traces: Real-world system traces from Microsoft, Alibaba, and Tencent used to evaluate I/O admission and storage management models.

Key Insights and Ideas

  • The Two-Way Street: The relationship between AI and OS is deeply symbiotic. AI introduces data-driven intelligence to break long-standing OS optimization bottlenecks, while innovations in OS design (like removing the CPU from the critical path) provide the foundational infrastructure required to scale next-generation AI.
  • Matching the Tool to the Layer: Traditional ML models (like MLPs and LSTMs) are compact, deterministic, and fast, making them ideal for low-level, latency-critical kernel paths (e.g., per-I/O inference). Conversely, LLMs and autonomous agents excel at high-level, semantic, and cross-module reasoning tasks (e.g., configuration tuning, code generation, and log analysis).
  • The Hybrid Paradigm Imperative: Embedding pure AI models into performance-critical kernel paths introduces risks of non-determinism, model drift, and catastrophic hallucinations. The authors emphasize that practical deployment requires a Hybrid Rules + AI framework, where deterministic rules act as rigid guardrails around adaptive AI decisions.
  • Vertical Specialization: To accelerate AI workloads, modern OS architectures are shifting toward "vertical specialization"—collapsing generic OS abstractions into application-aware building blocks (e.g., letting the GPU initiate storage I/O directly via kernel-bypass), which eliminates costly context switches.

Key Results

The survey highlights several impressive quantitative breakthroughs from the papers it reviews:

AI for OS Performance Gains

  • I/O Optimization: LinnOS embedded a lightweight neural network into the kernel I/O path, reducing I/O latency by up to 40% and boosting throughput by 3× under heavy contention. Heimdall achieved a 93% decision accuracy for I/O admission control with sub-microsecond inference latency and a tiny 28KB memory footprint.
  • Storage Management: LearnedFTL applied learned indexes to flash memory translation, reducing double reads by 55.5% and improving P99 tail latency by up to 12.2×.
  • Automated Tuning: AutoOS leveraged LLMs to optimize Linux kernel configurations, boosting UnixBench scores by up to 25% over vendor defaults. BYOS achieved configuration-driven performance improvements ranging from 7.1% to 155.4%.

OS for AI Acceleration

  • Architecture-level bypass frameworks like BaM allow GPUs to manage storage I/O directly, achieving up to a 5.3× speedup for data-intensive AI workloads by completely removing CPU mediation from the critical path.

Limitations and Future Work

Despite promising prototypes, the paper identifies critical roadblocks preventing widespread production deployment:

  • Methodological Fragility: Most current AI models are trained on static, narrow workload traces, leading to overfitting. Over time, these models suffer from model drift and behave unpredictably when encountering unseen real-world workloads.
  • Engineering Overhead & Security: Running complex models inside the kernel introduces significant computational overhead, disrupts timing determinism, and expands the system's attack surface. Furthermore, current research prototypes lack robust production-grade gating and rollback mechanisms.
  • Governance and Privacy Risks: Model-based decisions are often opaque ("black boxes"), making post-incident analysis exceptionally difficult. Additionally, collecting the massive system logs and telemetry required for continuous training poses severe user privacy risks.

To bridge the gap between research prototypes and production systems, the authors call for:

  1. Unified AI Toolchains: Standardized datasets and benchmarks tailored specifically for OS-centric scenarios to ensure reproducible evaluations.
  2. Modular, AI-Ready Kernels: Shifting toward microkernel-inspired architectures that isolate AI functionalities into user-space daemons or microservices, keeping the core kernel lightweight and auditable.
  3. Explainable AI (XAI) for Systems: Integrating mechanisms that generate traceable, human-readable rationales for automated scheduling or security decisions.
  4. Privacy-Preserving Telemetry: Advancing on-device federated training and differential logging to comply with data protection regulations while maintaining system observability.

Summary updated

BibTeX
@misc{zhang2024integrating,
  author = {Yifan Zhang and Xinkui Zhao and Ziying Li and Guanjie Cheng and Jianwei Yin and Lufei Zhang and Zuoning Chen},
  title = {{Integrating Artificial Intelligence into Operating Systems: A Survey on Techniques, Applications, and Future Directions}},
  year = {2024},
  eprint = {2407.14567},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.14567},
}
Figure