Description of the project
-
Deploy the server: setup-server.md
-
Deploy the client: setup-client.md
-
OPTIONAL Update the LTTng headers if necessary: update-header.md
-
Collect the trace: trace.md
-
Generating OOD behaviors setup-ood.md
A toy dataset is available in data/toy
and a large dataset is available at https://zenodo.org/record/7378420.
-
Deploy the analysis environment:
- Locally setup-analysis.md
- On Compute Canada setup-graham.md
-
Execute the experiment script:
bash experiments.sh
python main.py --log_folder logs/bigram --data_path data/toy --train_folder "Train:train_id" --valid_id_folder "Valid ID:valid_id" --test_id_folder "Test ID:test_id" --valid_ood_folder "Valid OOD (Connection):valid_ood_connection,Valid OOD (CPU):valid_ood_cpu,Valid OOD (IO):valid_ood_dumpio,Valid OOD (OPCache):valid_ood_opcache,Valid OOD (Socket):valid_ood_socket,Valid OOD (SSL):valid_ood_ssl" --test_ood_folder "Test OOD (Connection):test_ood_connection,Test OOD (CPU):test_ood_cpu,Test OOD (IO):test_ood_dumpio,Test OOD (OPCache):test_ood_opcache,Test OOD (Socket):test_ood_socket,Test OOD (SSL):test_ood_ssl" --generate_dataset --dataset_stat --model ngram --order 3 --analysis
python main.py --log_folder logs/lstm --data_path data/toy --train_folder "Train:train_id" --valid_id_folder "Valid ID:valid_id" --test_id_folder "Test ID:test_id" --valid_ood_folder "Valid OOD (Connection):valid_ood_connection,Valid OOD (CPU):valid_ood_cpu,Valid OOD (IO):valid_ood_dumpio,Valid OOD (OPCache):valid_ood_opcache,Valid OOD (Socket):valid_ood_socket,Valid OOD (SSL):valid_ood_ssl" --test_ood_folder "Test OOD (Connection):test_ood_connection,Test OOD (CPU):test_ood_cpu,Test OOD (IO):test_ood_dumpio,Test OOD (OPCache):test_ood_opcache,Test OOD (Socket):test_ood_socket,Test OOD (SSL):test_ood_ssl" --max_token 8192 --model lstm --n_hidden 256 --n_layer 2 --dim_sys 48 --dim_proc 48 --dim_entry 12 --dim_ret 12 --dim_pid 12 --dim_tid 12 --dim_time 12 --dim_order 12 --optimizer adam --n_update 100000 --eval 100 --lr 0.001 --ls 0.1 --dropout 0.1 --batch 32 --gpu "0" --amp --reduce_lr_patience 5 --early_stopping_patience 10 --clip 10 --analysis
python main.py --log_folder logs/transformer --data_path data/toy --train_folder "Train:train_id" --valid_id_folder "Valid ID:valid_id" --test_id_folder "Test ID:test_id" --valid_ood_folder "Valid OOD (Connection):valid_ood_connection,Valid OOD (CPU):valid_ood_cpu,Valid OOD (IO):valid_ood_dumpio,Valid OOD (OPCache):valid_ood_opcache,Valid OOD (Socket):valid_ood_socket,Valid OOD (SSL):valid_ood_ssl" --test_ood_folder "Test OOD (Connection):test_ood_connection,Test OOD (CPU):test_ood_cpu,Test OOD (IO):test_ood_dumpio,Test OOD (OPCache):test_ood_opcache,Test OOD (Socket):test_ood_socket,Test OOD (SSL):test_ood_ssl" --max_token 1024 --model transformer --n_hidden 672 --n_layer 2 --n_head 4 --dim_sys 48 --dim_proc 48 --dim_entry 12 --dim_ret 12 --dim_pid 12 --dim_tid 12 --dim_time 12 --dim_order 12 --activation "swiglu" --optimizer adam --n_update 100000 --eval 100 --lr 0.001 --warmup_steps 1000 --ls 0.1 --dropout 0.1 --batch 16 --gpu "0,1" --chk --amp --reduce_lr_patience 5 --early_stopping_patience 10 --analysis
python main.py --log_folder logs/longformer --data_path data/toy --train_folder "Train:train_id" --valid_id_folder "Valid ID:valid_id" --test_id_folder "Test ID:test_id" --valid_ood_folder "Valid OOD (Connection):valid_ood_connection,Valid OOD (CPU):valid_ood_cpu,Valid OOD (IO):valid_ood_dumpio,Valid OOD (OPCache):valid_ood_opcache,Valid OOD (Socket):valid_ood_socket,Valid OOD (SSL):valid_ood_ssl" --test_ood_folder "Test OOD (Connection):test_ood_connection,Test OOD (CPU):test_ood_cpu,Test OOD (IO):test_ood_dumpio,Test OOD (OPCache):test_ood_opcache,Test OOD (Socket):test_ood_socket,Test OOD (SSL):test_ood_ssl" --valid_ood_folder "Valid OOD (CPU):valid_ood_cpu" --test_ood_folders "Test OOD (CPU):valid_ood_cpu" --max_token 8192 --model longformer --n_hidden 672 --n_layer 2 --n_head 4 --window "32,64" --dilatation "1,1" --global_att "0" --dim_sys 48 --dim_proc 48 --dim_entry 12 --dim_ret 12 --dim_pid 12 --dim_tid 12 --dim_time 12 --dim_order 12 --activation "gelu" --optimizer adam --n_update 100000 --eval 100 --lr 0.001 --warmup_steps 1000 --ls 0.1 --dropout 0.1 --batch 32 --gpu "0" --amp --reduce_lr_patience 5 --early_stopping_patience 10 --analysis