Datasets:
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- reinforcement-learning
|
| 7 |
+
tags:
|
| 8 |
+
- federated-learning
|
| 9 |
+
- reinforcement-learning
|
| 10 |
+
- participant-selection
|
| 11 |
+
- intrusion-detection
|
| 12 |
+
- IoT
|
| 13 |
+
pretty_name: RAMPART-FL
|
| 14 |
+
---
|
| 15 |
+
# RAMPART-FL: A Dataset for Offline Reinforcement Learning in Federated Participant Selection
|
| 16 |
+
|
| 17 |
+
## Dataset Summary
|
| 18 |
+
|
| 19 |
+
This repository contains a dataset package generated by the **RAMPART-FL** framework, a system for researching Reinforcement Learning (RL) based participant selection in Federated Learning (FL) for intrusion detection. The data originates from a **400-round, 25-client simulation** where an RL agent used a Multi-Criteria strategy to select clients.
|
| 20 |
+
|
| 21 |
+
This package provides two distinct files to serve different research needs:
|
| 22 |
+
1. **`rampart_fl_400r_25c_multicriteria_event_log.csv`**: A detailed, event-driven log that is ideal for in-depth analysis, custom feature engineering, and understanding the step-by-step behavior of the FL process.
|
| 23 |
+
2. **`rampart_fl_400r_25c_multicriteria_rl_transitions.csv`**: A pre-processed, analysis-ready dataset of `(State, Action, Reward, Next_State)` tuples that has been enriched with contextual client and reward information.
|
| 24 |
+
|
| 25 |
+
The scripts used to generate these files from the raw experimental output are available in the associated GitHub repository.
|
| 26 |
+
|
| 27 |
+
## Associated Research
|
| 28 |
+
|
| 29 |
+
This dataset is a key contribution of a master's thesis focused on creating robust and adaptive security solutions for IoT networks using Federated Learning.
|
| 30 |
+
|
| 31 |
+
* **Thesis & Framework:** [RAMPART-FL on GitHub](https://github.com/LCS-FS/RAMPART-FL)
|
| 32 |
+
* **Hugging Face Dataset:** [RAMPART-FL on Hugging Face](https://huggingface.co/datasets/LCS-FS/RAMPART-FL)
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
## File 1: The Refined Event Log (`rampart_fl_400r_25c_multicriteria_event_log.csv`)
|
| 37 |
+
|
| 38 |
+
This file provides a detailed log of all relevant events that occurred during the simulation. It is best suited for researchers who need to perform detailed analysis beyond standard RL transition data.
|
| 39 |
+
|
| 40 |
+
The dataset is structured in a sparse, event-driven format. This means that for any given row, **only the columns relevant to its `event_type` will contain data**. All other columns in that row will be empty.
|
| 41 |
+
|
| 42 |
+
### Event Log Columns
|
| 43 |
+
|
| 44 |
+
| Column Name | Description | Data Type |
|
| 45 |
+
| :--- | :--- | :--- |
|
| 46 |
+
| **Core Identifiers** | | |
|
| 47 |
+
| `elapsed_seconds_since_start` | Time in seconds since the simulation began. | Float |
|
| 48 |
+
| `server_round` | The FL training round number. | Integer |
|
| 49 |
+
| `event_type` | The type of event being logged (`selection_info`, `learning_update`, etc.). | String |
|
| 50 |
+
| `client_cid` | The unique identifier for the client. | Integer (Large) |
|
| 51 |
+
| **State, Action & Policy (`selection_info`)** | | |
|
| 52 |
+
| `s_client_state_tuple` | The state vector \(S\) representing the client's condition. | String |
|
| 53 |
+
| `s_was_selected` | The action \(A\) taken by the agent (`1` or `0`). | Integer |
|
| 54 |
+
| `s_available_cids_count`| The number of clients available for selection. | Integer |
|
| 55 |
+
| `s_client_q_value` | The Q-value of the state-action pair from the original agent. | Float |
|
| 56 |
+
| `s_client_selection_prob`| The selection probability from the original agent's policy. | Float |
|
| 57 |
+
| **Reward & Learning (`learning_update`)** | | |
|
| 58 |
+
| `l_state_at_selection` | The state \(S\) for which the reward is being applied. | String |
|
| 59 |
+
| `l_reward_for_action` | The total global reward \(R\) for the round's actions. | Float |
|
| 60 |
+
| `l_reward_*_component` | The different components (performance, fairness, etc.) of the total reward. | Float |
|
| 61 |
+
| **Client Evaluation Metrics (`client_eval_metrics`)**| | |
|
| 62 |
+
| `c_eval_partition_id`| The client's static data partition ID. | Integer |
|
| 63 |
+
| `c_eval_profile_name` | The client's hardware profile name. | String |
|
| 64 |
+
| `c_eval_cores` | Number of CPU cores available to the client. | Integer |
|
| 65 |
+
| `c_eval_f1`, `_accuracy`, etc. | The client's local evaluation performance metrics. | Float |
|
| 66 |
+
| `c_eval_num_samples` | Number of samples in the client's local test set. | Integer |
|
| 67 |
+
| **Client Fit Metrics (`client_fit_metrics`)**| | |
|
| 68 |
+
| `c_fit_time_seconds` | Time taken for the client's local training task. | Float |
|
| 69 |
+
| `c_fit_cpu_percent`| The client's average CPU usage during training. | Float |
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
## File 2: Enriched RL Transitions Dataset (`rampart_fl_400r_25c_multicriteria_rl_transitions.csv`)
|
| 74 |
+
|
| 75 |
+
This file provides a clean, analysis-ready dataset where each row is a complete, enriched `(State, Action, Reward, Next_State)` tuple. It is designed for direct use in most offline RL training libraries and workflows. Contextual columns (like `c_eval_f1`) will only contain data if the `action` for that row was `1`.
|
| 76 |
+
|
| 77 |
+
### Transitions Dataset Columns
|
| 78 |
+
|
| 79 |
+
| Column | Data Type | Description |
|
| 80 |
+
| :--- | :--- | :--- |
|
| 81 |
+
| **Core Transition** | | |
|
| 82 |
+
| `server_round` | Integer | The server round `N` in which the state was observed and the action was taken. |
|
| 83 |
+
| `client_cid` | String | The unique identifier for the client. |
|
| 84 |
+
| `state` | String | The state vector \(S_t\) representing the client's condition at the start of round `N`. |
|
| 85 |
+
| `action` | Integer | The action \(A_t\) taken for the client: `1` if selected, `0` otherwise. |
|
| 86 |
+
| `reward` | Float | The global reward \(R_{t+1}\) received after the completion of round `N`. |
|
| 87 |
+
| `next_state` | String | The subsequent state vector \(S_{t+1}\) for that same client at the start of round `N+1`. |
|
| 88 |
+
| **Reward Components** | | |
|
| 89 |
+
| `l_reward_performance_component` | Float | The portion of the reward attributed to the global model's performance. |
|
| 90 |
+
| `l_reward_fairness_penalty_component`| Float | The portion of the reward attributed to the fairness penalty. |
|
| 91 |
+
| `l_reward_resource_cost_component`| Float | The portion of the reward attributed to the resource cost of selected clients. |
|
| 92 |
+
| **Client Context (for the round)** | | |
|
| 93 |
+
| `c_eval_profile_name` | String | The client's hardware profile name (e.g., `High-End Edge CPU`). |
|
| 94 |
+
| `c_eval_cores` | Float | Number of CPU cores available to the client (Float due to possible NaNs). |
|
| 95 |
+
| `c_eval_f1` | Float | The client's local F1-score from its evaluation in this round. |
|
| 96 |
+
| `c_eval_num_samples` | Float | Number of samples in the client's local test set. |
|
| 97 |
+
| `c_fit_time_seconds` | Float | Time taken for the client's local training in this round. |
|
| 98 |
+
| `c_fit_cpu_percent`| Float | The client's average CPU usage during training. |
|