Git Product home page Git Product logo

jetclr's Introduction

JetCLR

Core codebase for JetCLR, a high-energy-physics tool for the self-supervised contrastive learning of jet representations.

JetCLR uses a permutation-invariant transformer-encoder network and a contrastive loss function to map jet constituents to a representation space which is approximately invariant to a set of symmetries and augmentations of the jet data, and is discriminant within the dataset it is optimised on. The symmetries and augmentations are coded in scripts/modules/jet_augs.py, they are:

  • symmetries:
    • rotations in the rapidity-azimuthal plane, around the transverse-momentum-weighted centroid of the jet
    • translations in the rapidity-azimuthal plane
    • permutation invariance of the jet constituents, this is ensured by the network architecture
  • augmentations:
    • smearing of constituent coordinates, inversely proportional to their transverse momentum
    • collinear splittings of jet constituents

The scheme for optimising the network is inspired by the SimCLR1 paper, and is coded here in scripts/run_jetclr.py. The mapping to the new representation space is entirely self-supervised, using only the physically-motivated invariances to transformations and augmentations of the data. Truth labels are not used in the optimisation of the JetCLR network.

For questions/comments about the code contact: [email protected]


This code was initially written for the paper:

Symmetries, Safety, and Self-Supervision
https://arxiv.org/abs/2108.04253
Barry M. Dillon, Gregor Kasieczka, Hans Olischlager, Tilman Plehn, Peter Sorrenson, and Lorenz Vogel


1: 'A Simple Framework for Contrastive Learning of Visual Representations', Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton (arxiv:2002.05709)

jetclr's People

Contributors

javierzhao avatar bmdillon avatar yariazen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.