Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 852 Bytes

File metadata and controls

36 lines (29 loc) · 852 Bytes

CEGA

This is the open-source code for ICML 2025 paper CEGA: A Cost-Effective Approach for Graph-Based Model Extraction and Acquisition.

Setup Environment

conda create --name my_env --file requirements.txt

Running the Experiments

To run a single experiment, use the command:

python main.py --dataset amazoncomputer --method random

To run ALL attack experiments, use the command:

bash run_bash.sh

The outputs of the experiment are recorded in a timestamped directory under ./output/.

./output/{timestamp}/{dataset}/log/{dataset}/settings.txt

Visualize Results

Results can be visualized by using ./plots/model_performance.ipynb. Before running it, update the results folder paths:

datasets = [
    '{timestamp}/{dataset}'
]
cega_results = [
    '{timestamp}/{dataset}'
]