QiMeng-PerceptOS: Semantic-Aware Kernel Optimization for OS-Intensive Workloads via Hardware-Software Alignment

Huilai Chen, Yuanbo Wen, Liangfeng Li, Shaohui Peng, Jingzhe Zhu, Jun Bi, Xuzhi Zhang, Qi Guo, Ling Li, Yunji ChenICML 2026

TL;DR: QiMeng-PerceptOS is an autonomous framework that leverages Large Language Models (LLMs) to optimize operating system kernels by "perceiving" real-world hardware and software behavior. By bridging the gap between low-level system telemetry and high-level reasoning, it achieves massive performance gains—such as boosting Redis throughput to 296.6% of its default state—within just 15 iterations.

The Challenge: Tuning the Modern OS

Modern operating systems like Linux are incredibly complex, featuring over 15,000 compile-time configuration parameters. Tuning these "knobs" for a specific application—whether a database or a web server—can unlock massive performance improvements. However, navigating this vast search space is a nightmare for human experts and traditional algorithms alike.

Recent attempts to use LLMs for kernel tuning have run into a "Semantic Mismatch." Current approaches are largely "open-loop": they feed an LLM a list of parameters and ask for improvements without the model ever observing how the system actually behaves under load. This disconnect leads to three major pitfalls:

  1. Runtime Blindness: LLMs lack context about the specific hardware architecture or software bottlenecks of the target machine.
  2. Configuration Fragmentation: The sheer size of the search space overwhelms the LLM's context window, resulting in localized, suboptimal choices.
  3. Search Drift: LLMs often hallucinate correlations or suggest invalid parameters. Because each kernel recompile and test cycle can take 40–70 minutes, these wasted evaluations are highly costly.

The Solution: Perception-Driven Optimization

To overcome these limitations, QiMeng-PerceptOS shifts the paradigm from static guessing to a "perception-driven" closed-loop architecture. The framework is built on three core modules:

1. Perception Module

Instead of overwhelming the LLM with raw, noisy telemetry, this module distills hardware descriptors and software "hot call stacks" into Semantic Fingerprints. By using specialized templates, it compresses millions of data points into a concise summary that fits easily within an LLM’s context window while retaining the architectural essence of the workload.

2. Global Search Module (BHIT)

To efficiently navigate the 15,000+ parameters, the system employs a Bi-level Hierarchical Induction Tree (BHIT). This approach treats the kernel configuration like a directory tree. It allows the LLM to "prune" entire branches of irrelevant settings (e.g., ignoring drivers for absent hardware) before diving into specific, high-impact optimizations.

3. Posterior Enhancement Module

Acting as a final sanity check, this module audits the "Elite Configuration Memory"—the best-performing settings discovered so far. It identifies and removes hallucinated parameters that may have provided fluke gains but do not logically align with the system's semantic fingerprints.

Key Insights and Performance Breakthroughs

The framework was rigorously evaluated across diverse OS-intensive workloads, including Redis (memory-intensive), Apache (I/O and network-intensive), PostgreSQL, AES Encryption, and RAG/ChromaDB. Testing spanned multiple hardware environments, from AMD laptops to high-end 24-core Intel Xeon workstations.

The results highlight several critical insights into system optimization:

  • Massive Performance Gains: QiMeng-PerceptOS achieved 296.6% of default throughput for Redis on Ubuntu and reached 323.5% of default performance for Apache (using the Gemini-3-pro-preview model).
  • Setting a New SOTA: The framework surpassed the leading baseline (AutoOS) by an average of 32.6% across all tested workloads.
  • Efficiency Over Brute Force: While traditional Bayesian optimization or Reinforcement Learning requires thousands of samples, QiMeng-PerceptOS reaches a performance plateau in just 15 iterations. This makes it highly practical for environments where testing is computationally expensive.
  • The "Perception Gap" is the Real Bottleneck: The experiments prove that LLMs already possess the knowledge to tune kernels; they simply need the semantic context of what the specific system is doing. Furthermore, the system is model-agnostic—even smaller models like GPT-4o-mini outperformed larger models that relied on open-loop methods.
  • Adaptability: Because the system re-characterizes the semantic fingerprint after every successful optimization, it tracks "behavioral drift." As the kernel gets faster and bottlenecks shift, QiMeng-PerceptOS adapts its strategy in real-time. It also successfully optimized kernels for applications running inside Docker containers.

Limitations and Future Directions

While QiMeng-PerceptOS represents a major leap forward, the authors note a few limitations. The system has less impact on purely compute-heavy tasks (like neural network training), where bottlenecks are tied to raw GPU/CPU math rather than OS-level scheduling or I/O. Additionally, optimizing a kernel for one specific application can degrade performance for another, highlighting the need for aggregate metrics in multi-app environments.

Future work will focus on scaling the framework from single-node setups to distributed clusters and real-time systems capable of switching between pre-optimized profiles on the fly. Ultimately, the long-term vision is to move beyond merely tweaking existing "knobs" and empower LLMs to synthesize entirely new, high-performance kernel primitives.

Summary updated

BibTeX
@inproceedings{chen2026qimeng,
  author = {Huilai Chen and Yuanbo Wen and Liangfeng Li and Shaohui Peng and Jingzhe Zhu and Jun Bi and Xuzhi Zhang and Qi Guo and Ling Li and Yunji Chen},
  title = {{QiMeng-PerceptOS: Semantic-Aware Kernel Optimization for OS-Intensive Workloads via Hardware-Software Alignment}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=aKN6UpjSnc},
}
Figure