paper-with-me

홈 › Papers

KEN: Kernel Extensions using Natural Language

2023-12-09 · Yusheng Zheng, Yiwei Yang, Maolin Chen, Andrew Quinn

The ability to modify and extend an operating system is an important feature for improving a system's security, reliability, and performance. The extended Berkeley Packet Filters (eBPF) ecosystem has emerged as the standard mechanism for extending the Linux kernel and has recently been ported to Windows. eBPF programs inject new logic into the kernel that the system will execute before or after existing logic. While the eBPF ecosystem provides a flexible mechanism for kernel extension, it is difficult for developers to write eBPF programs today. An eBPF developer must have deep knowledge of the internals of the operating system to determine where to place logic and cope with programming limitations on the control flow and data accesses of their eBPF program enforced by the eBPF verifier. This paper presents KEN, an alternative framework that alleviates the difficulty of writing an eBPF program by allowing Kernel Extensions to be written in Natural language. KEN uses recent advances in large language models (LLMs) to synthesize an eBPF program given a user's English language prompt. To ensure that LLM's output is semantically equivalent to the user's prompt, KEN employs a combination of LLM-empowered program comprehension, symbolic execution, and a series of feedback loops. KEN's key novelty is the combination of these techniques. In particular, the system uses symbolic execution in a novel structure that allows it to combine the results of program synthesis and program comprehension and build on the recent success that LLMs have shown for each of these tasks individually. To evaluate KEN, we developed a new corpus of natural language prompts for eBPF programs. We show that KEN produces correct eBPF programs on 80% which is an improvement of a factor of 2.67 compared to an LLM-empowered program synthesis baseline.

📄 PDF Abstract BibTeX arXiv:2312.05531

Code (1)

eunomia-bpf/ken 공식 구현

Tasks

Program Synthesis

Similar Papers 제목 키워드 기반

A Structural Smoothing Framework For Robust Graph Comparison

2015-12-01 · NeurIPS 2015 12 · Pinar Yanardag, S. V. N. Vishwanathan

In this paper, we propose a general smoothing framework for graph kernels by taking \textit{structural similarity} into account, and apply it to derive smoothed variants of popular graph kernels. Our framework is inspi…

Rational Kernels: A survey

2019-10-20 · Abhishek Ghose

Many kinds of data are naturally amenable to being treated as sequences. An example is text data, where a text may be seen as a sequence of words. Another example is clickstream data, where a data instance is a sequence …

Survey

Bayesian Extensions of Kernel Least Mean Squares

2013-10-20 · Il Memming Park, Sohan Seth, Steven Van Vaerenbergh

The kernel least mean squares (KLMS) algorithm is a computationally efficient nonlinear adaptive filtering method that "kernelizes" the celebrated (linear) least mean squares algorithm. We demonstrate that the least mean…

Band-Limited Gaussian Processes: The Sinc Kernel

2019-09-16 · NeurIPS 2019 12 · Felipe Tobar

We propose a novel class of Gaussian processes (GPs) whose spectra have compact support, meaning that their sample trajectories are almost-surely band limited. As a complement to the growing literature on spectral design…

Gaussian Processes

Bayesian Kernel and Mutual $k$-Nearest Neighbor Regression

2016-08-04 · Hyun-Chul Kim

We propose Bayesian extensions of two nonparametric regression methods which are kernel and mutual $k$-nearest neighbor regression methods. Derived based on Gaussian process models for regression, the extensions provide …

regression