taolicheng / VAE-Jet

Variational Autoencoders for Anomalous Jet Tagging at the Large Hadron Collider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VAE-Jet

Code repository for Variational Autoencoders for Anomalous Jet Tagging. Talk links: part1, part2

Variational Autoencoder for jet physics at the Large Hadron Collider. Low-level information of jet constituents are taken as input. We employ simple fully connected networks for embedding architecture. (There is also a LSTM alternative in tensorflow v1). Inputs should be pt-ordered four-vector momenta of jet constituents. VAE is trained on background QCD jets. Then the trained VAE is used to tag anomalous jets as an anomaly detector.

Due to historical reasons, versions for tensorflow v1 and v2 are both presented. In tf2, all training components including basic VAE, DisCo-VAE and OE-VAE are facilitated.

└── tf2
    ├── disco.py
    ├── train_disco.py # DisCo-VAE
    ├── train_oe_resample.py # OE-VAE
    ├── train.py # beta-VAE
    └── vae.py

Dependencies

  • tensorflow: tensorflow-gpu 1.13.1 or tensorflow-gpu 2.1.0
  • scikit-learn
  • (ROOT): only for specific parts (preprocessing) of the code.

Training

tf1

  • To train the model: ./train_betaVAE.py --train [path of training dataset] --model [path to save the model] --train_number [sample number of training set] --epochs 100 --vae 'fcn' --beta 0.1
    • Options
      • pt-scaling: --pt_scaling
      • annealing training (slowly increase the beta weight across several interations): --annealing
      • beta: KL divergence weight beta for beta-VAE

tf2

Currently one needs to specify the data paths (QCD training samples in utils and outlier samples in train_oe_resample.py) manually. This will be fixed soon.

  • OE-VAE: ./train_oe_resample.py [path to save the model] [pre-trained model, set to null for scratch training] --n_train [sample number of training set] --beta 0.1 --lam 2.0 --epochs 50 --oe_type 2 --margin 1

    • Options:
      • beta: KL divergence weight beta for beta-VAE
      • lam: weight lambda for OE loss
      • to apply early stopping: --early_stopping
      • oe_type: 1 MSE-OE; 2 KL-OE
      • mse_oe_type: 1: sigmoid 2: margin
      • margin: margin for KL-OE or type-2 MSE-OE
  • DisCo-VAE:./train_disco.py [path to save the model] --n_train [sample number of training set] --beta 0.1 --lam 100.0 --epochs 100 --annealing

    • Options:
      • beta: KL divergence weight beta for beta-VAE
      • lam: DisCo regularizer weight

Testsets

  • We released a series of test sets for general performance examination of anomalous jet tagging: https://zenodo.org/record/4614656#.YFUACe1KgkI, in which boosted W jets (2-prong), Top jets (3-prong), and Higgs jets (THDM Heavy Higgs, 4-prong decayed) are included.
  • The QCD background samples can be found here.

Citation

@article{Cheng:2020dal,
    author = "Cheng, Taoli and Arguin, Jean-François and Leissner-Martin, Julien and Pilette, Jacinthe and Golling, Tobias",
    title = "{Variational Autoencoders for Anomalous Jet Tagging}",
    eprint = "2007.01850",
    archivePrefix = "arXiv",
    primaryClass = "hep-ph",
    month = "7",
    year = "2020"
}

About

Variational Autoencoders for Anomalous Jet Tagging at the Large Hadron Collider

License:MIT License


Languages

Language:Python 100.0%