Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
- tabular-regression
|
| 6 |
+
- reinforcement-learning
|
| 7 |
+
tags:
|
| 8 |
+
- active-learning
|
| 9 |
+
- bayesian-deep-learning
|
| 10 |
+
- out-of-distribution
|
| 11 |
+
- uncertainty-estimation
|
| 12 |
+
pretty_name: DCPV Experimental Artifacts
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100M<n<1G
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# DCPV: Density-Clustered / OOD-Aware Predictive Variance Artifacts
|
| 18 |
+
|
| 19 |
+
This repository contains the experimental artifacts, results, and datasets for the paper **"Mitigating the Density Paradox in Bayesian Active Learning"** (DCPV).
|
| 20 |
+
|
| 21 |
+
These artifacts support the reproducibility of our findings, demonstrating that standard Bayesian Active Learning methods (like Predictive Variance) often fail in Out-of-Distribution (OOD) settings, and that our proposed method (**Robust PV**) effectively mitigates this issue.
|
| 22 |
+
|
| 23 |
+
## Repository Structure
|
| 24 |
+
|
| 25 |
+
The repository is organized into three main directories:
|
| 26 |
+
|
| 27 |
+
### 1. `results/` (Experimental Metrics)
|
| 28 |
+
Contains raw `.npy` files recording the performance metrics for every round of Active Learning (up to 50 rounds).
|
| 29 |
+
- **Structure**: `results/{metric}_{method}.npy`
|
| 30 |
+
- **Key Metrics**:
|
| 31 |
+
- `ood_rate_*.npy`: Percentage of selected samples that were OOD (Lower is better).
|
| 32 |
+
- `rmse_*.npy`: Root Mean Squared Error on the Test Set (Lower is better).
|
| 33 |
+
- **Methods**:
|
| 34 |
+
- `random`: Random Sampling (Baseline).
|
| 35 |
+
- `predictive_variance`: Standard PV (Fails in OOD).
|
| 36 |
+
- `robust_pv`: Our proposed method (Weighted by Mahalanobis density).
|
| 37 |
+
- `robust_pv_gmm`: Our proposed method (Weighted by GMM density).
|
| 38 |
+
|
| 39 |
+
### 2. `plots/` (Visualizations)
|
| 40 |
+
Generated figures illustrating the "Density Paradox" and the effectiveness of our solution.
|
| 41 |
+
- **Key Figures**:
|
| 42 |
+
- `ood_composite_2x4.png`: Comprehensive view of OOD selection rates and RMSE across all datasets (MNIST, Fashion-MNIST, CIFAR-10, SVHN).
|
| 43 |
+
- `summary_tradeoff_v2.png`: Trade-off analysis between OOD robustness and ID performance.
|
| 44 |
+
|
| 45 |
+
### 3. `data/` (Source Datasets)
|
| 46 |
+
Contains the processed datasets used in the experiments to ensure exact reproducibility of splits and preprocessing.
|
| 47 |
+
- **Datasets**:
|
| 48 |
+
- `CIFAR-10` / `CIFAR-100` (Python version)
|
| 49 |
+
- `SVHN` (Format 2, 32x32)
|
| 50 |
+
- `MNIST` / `Fashion-MNIST` (Raw binaries)
|
| 51 |
+
|
| 52 |
+
## Usage
|
| 53 |
+
|
| 54 |
+
You can download these artifacts directly or use the `huggingface_hub` library.
|
| 55 |
+
|
| 56 |
+
### Option 1: Download via Python
|
| 57 |
+
```python
|
| 58 |
+
from huggingface_hub import snapshot_download
|
| 59 |
+
|
| 60 |
+
# Download the entire repository
|
| 61 |
+
path = snapshot_download(repo_id="darcook/DCPV-Artifacts", repo_type="dataset")
|
| 62 |
+
print(f"Artifacts downloaded to: {path}")
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
### Option 2: Load Results with `datasets`
|
| 66 |
+
(Example for listing files)
|
| 67 |
+
```python
|
| 68 |
+
from huggingface_hub import list_repo_files
|
| 69 |
+
|
| 70 |
+
files = list_repo_files(repo_id="darcook/DCPV-Artifacts", repo_type="dataset")
|
| 71 |
+
print(files)
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
## Citation
|
| 75 |
+
|
| 76 |
+
If you use these artifacts, please cite our work (Anonymized for Blind Review).
|