Pentium.Labs

System全家桶:https://zhuanlan.zhihu.com/c_1238468913098731520

导航

Paper Reading_ML for system

最近(以及预感接下来的一年)会读很多很多的paper......不如开个帖子记录一下读paper心得

SysML相关的文章很多来源于上学期的8980课。有些和具体field(比如DB/architecture/...)相关的就放到各个field的分类里啦,这里放一些不好分类的

Class Blog

Mark一个大神的Blog

再Mark一个大神的Blog


Virtual Address Translation via Learned Page Table Indexes

在页表中使用learned index。

笔记在这里:Link

 

Representation Learning for Resource Usage Prediction

用lstm跟踪进程的运行情况(cpu/mem/disk使用情况),并预测

 

Selecta: Heterogeneous Cloud Storage Configuration for Data Analytics

根据观测VPS的应用程序负载来推荐VPS配置(eg: SSD还是HDD)

 

REX: A Development Platform and Online Learning Approach for Runtime Emergent Software Systems

The idea in this paper is similar to a paper[http://www-users.cselabs.umn.edu/classes/Spring-2019/csci8980/papers/tuning.pdf] we have discussed on class before. In the paper[Auto DBMS Tuning...], the author use ML model to automatically tune database knobs, while in this paper the author use ML model to optimize the combination of components in a complex software system to achieve better performance.

The whole framework could be divided into 3 parts:

  1. Dane: A light weight programming language for implementing small components. These components could be assembled together to build a large scale software system. Some of these components may have the same function but do jobs in different ways. The main contribution of Dane is that it is fast so that different component could be dynamically rewired with very low cost.
  2. A perception, assembly and learning framework (PAL): It contains 2 modules: 1). Assembly Module. It could assemble different components to implement a feature. 2). Perception Module. It could monitor the performance of the software system, as well as the runtime environment.
  3. The online learning part. It uses reinforcement learning model “multi-armed bandit” to optimize the selection of components. Also, like the [Auto DBMS Tuning...] paper, some selection of components are related so they could share information. Thus, the author uses regression model to reduce the search space.

Application of ML method:

It used a continuous way when updating configuration. First, the software will run with a random combination of components. After several seconds, the PAL will collect perception data, and the online learning part will update estimates and update the model. Then the software will run under the new configuration for several seconds, and update the model again. In this way we could better shape the software system to the environment.

Positive Points:

  1. The idea is interesting. It used an automatic ML model to replace manually written rules in previous work. This idea could also apply to other computer system problems where configurations and performance are linked.
  2. The usage of regression factor model reduces the search space, which achieved balancing exploration and exploitation.
  3. Compared to [Auto DBMS Tuning...] paper, this paper considered how to adapt to the changes in deployment environment.

Negative Points:

  1. The performance of the model deeply relies on the components implemented by Dane. Firstly, it means that this model could not be applied to present software systems that are written in more common languages, like C++ and java. Secondly, this requires that the whole software could be disassembled into multiple irrelevant, small, dynamic components. In some situations it may not be guaranteed.
  2. For a specific tasks(like web server), the author could have built a configuration dataset, so when first running the model, the application could be have a less optimal, but not bad combination of components. This could be better than choosing randomly at first.

Related Links:

https://blog.acolyer.org/2016/12/05/rex-a-development-platform-and-online-learning-approach-for-runtime-emergent-software-systems/

https://www.usenix.org/conference/osdi16/technical-sessions/presentation/porter

 

 

StormDroid: A Streaminglized Machine Learning-Based System for Detecting Android Malware

Introduction

This paper focuses on detecting malware android applications based on machine learning method. They defined 4 types of features to be extracted from applications:

  • 1. well-received features
    • 1.1 Permission: Some malicious applications need some specific types of permissions.
    • 1.2 Sensitive API Calls: They extracted sensitive API calls from Snail files, and found the top types of sensitive API calls which could best distinguish malicious and benign applications.
  • 2. newly-defined features
    • 2.1 Sequence: Malicious apps tend to have drastically different sensitive API calls. They defined 3 metrics to quantify the number of sensitive API calls.
    • 2.2 Dynamic Behavior: Monitor the activities triggered by each application from their log file.

In both of these features, they removed the common ones which are shared by malicious and benign apps, and left the most distinguishable features.

Application of ML methods

They compared several ML methods: SVM, decision tree, Multi-Layer Perceptron, Naïve Bayes, KNN, Bagging predictor. They also compared the performance of different feature selection methods (Only well-received features / well-received and newly-defined features). Finally, they found that KNN classifier + well-received and newly-defined features achieved the best performance.

Pros

  1. They contributed to define new features for monitoring dynamic behavior of malicious applications, which achieved better performance than using static analysis only.
  2.  

Cons

  1. When analyzing features, they used the same APP dataset which is also used in testing ML classifier. So they removed the common features and selected most distinguishable features based on their analyzing results, before testing their ML classifier. I think there will be a kind of “over-fitting” in this process. They should use different APP dataset for analyzing and testing.
  2. Decompiling and analyzing the application on Android device may use too many system resources, since the performance of mobile CPU and memory are comparatively lower. Actually I think this method is more suitable for detecting malicious applications on PC.

 

 

 

...

posted on 2020-04-02 00:14  Pentium.Labs  阅读(246)  评论(0编辑  收藏  举报



Pentium.Lab Since 1998