• Stars
    star
    348
  • Rank 117,969 (Top 3 %)
  • Language
    Julia
  • License
    MIT License
  • Created about 5 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Geometric Deep Learning for Flux

GeometricFlux.jl

codecov

GeometricFlux is a geometric deep learning library for Flux. This library aims to be compatible with packages from JuliaGraphs ecosystem and have support of CUDA GPU acceleration with CUDA. Message passing scheme is implemented as a flexbile framework and fused with Graph Network block scheme. GeometricFlux is compatible with other packages that are composable with Flux.

Suggestions, issues and pull requsts are welcome.

Installation

]add GeometricFlux

Features

  • Extending Flux deep learning framework in Julia and seamlessly integration with regular Flux layers.
  • Support of CUDA GPU with CUDA.jl and mini-batched training leveraging advantages of GPU
  • Integration with existing JuliaGraphs ecosystem
  • Support Message-passing and graph network architectures
  • Support of static graph and variable graph strategy. Variable graph strategy is useful when training the model over diverse graph structures.
  • Integration of GNN benchmark datasets
  • Support dynamic graph update towards manifold learning 2.0

Featured Graphs

GeometricFlux handles graph data (the topology plus node/vertex/graph features) thanks to FeaturedGraph type.

A FeaturedGraph can be constructed from various graph structures, including adjacency matrices, adjacency lists, Graphs' types...

fg = FeaturedGraph(adj_list)

Graph convolutional layers

Construct a GCN layer:

GCNConv(input_dim => output_dim, relu)

Use it as you use Flux

model = Chain(
    WithGraph(fg, GCNConv(fg, 1024 => 512, relu)),
    Dropout(0.5),
    WithGraph(fg, GCNConv(fg, 512 => 128)),
    Dense(128, 10)
)
## Loss
loss(x, y) = logitcrossentropy(model(x), y)
accuracy(x, y) = mean(onecold(model(x)) .== onecold(y))

## Training
ps = Flux.params(model)
train_data = [(train_X, train_y)]
opt = ADAM(0.01)
evalcb() = @show(accuracy(train_X, train_y))

Flux.train!(loss, ps, train_data, opt, cb=throttle(evalcb, 10))

Roadmap

To achieve geometric deep learning raised by Bronstein et al, 5G fields of deep learning models will be supported in GeometricFlux.jl. For details, you could check the geometric deep learning official website.

5(+1)G including the following fields:

  • Graphs and Sets
    • including classical GNN models and networks over sets.
    • Transformer models are regard as a kind of GNN with complete graph, and you can check chengchingwen/Transformers.jl for more details.
  • Grids and Euclidean spaces
    • including classical convolutional neural networks, multi-layer perceptrons etc.
    • for operators over functional spaces of regular grid, you can check SciML/NeuralOperators.jl for more details.
  • Groups and Homogeneous spaces
    • including a series of equivariant/invariant models.
  • Geodesics and Manifolds
  • Gauges and Bundles
  • Geometric algebra

Discussions

It's welcome to have direct discussions in #graphnet channel or in #flux-bridged channel on slack. For usage issues, it's welcome to post your minimal working examples (MWE) on Julia discourse and then tag maintainer @yuehhua.

More Repositories

1

Flux.jl

Relax! Flux is the ML library that doesn't make you tensor
Julia
4,359
star
2

Zygote.jl

21st century AD
Julia
1,431
star
3

model-zoo

Please do not feed the models
Julia
878
star
4

FastAI.jl

Repository of best practices for deep learning in Julia, inspired by fastai
Julia
578
star
5

Metalhead.jl

Computer vision models for Flux
Julia
314
star
6

MacroTools.jl

MacroTools provides a library of tools for working with Julia code and expressions.
Julia
301
star
7

Torch.jl

Sensible extensions for exposing torch in Julia.
Julia
200
star
8

NNlib.jl

Neural Network primitives with multiple backends
Julia
188
star
9

MLJFlux.jl

Wrapping deep learning models from the package Flux.jl for use in the MLJ.jl toolbox
Julia
137
star
10

ONNX.jl

Read ONNX graphs in Julia
Julia
137
star
11

FluxTraining.jl

A flexible neural net training library inspired by fast.ai
Julia
114
star
12

IRTools.jl

Mike's Little Intermediate Representation
Julia
107
star
13

Functors.jl

Parameterise all the things
Julia
107
star
14

Flux3D.jl

3D computer vision library in Julia
Julia
100
star
15

Mjolnir.jl

A little less conversation, a little more abstraction
Julia
87
star
16

Optimisers.jl

Optimisers.jl defines many standard optimisers and utilities for learning loops.
Julia
68
star
17

DaggerFlux.jl

Distributed computation of differentiation pipelines to use multiple workers, devices, GPU, etc. since Julia wasn't fast enough already
Julia
65
star
18

Gym.jl

Gym environments in Julia
Julia
54
star
19

FluxML-Community-Call-Minutes

The FluxML Community Team repo
51
star
20

Tracker.jl

Flux's ex AD
Julia
50
star
21

XLA.jl

"Maybe we have our own magic."
Julia
47
star
22

FluxJS.jl

I heard you like compile times
Julia
42
star
23

DataAugmentation.jl

Flexible data augmentation library for machine and deep learning
Julia
41
star
24

HuggingFaceApi.jl

Julia
33
star
25

Hydra.jl

SPMD + Neural Nets
Julia
31
star
26

ParameterSchedulers.jl

Common hyperparameter scheduling for ML
Julia
28
star
27

Alloc.jl

Julia
26
star
28

Trebuchet.jl

throw stuff
Julia
21
star
29

fluxml.github.io

Flux Website
HTML
20
star
30

YaoFlux.jl

Differentiable programming on quantum circuits with Flux
Julia
19
star
31

OneHotArrays.jl

Memory efficient one-hot array encodings
Julia
17
star
32

ZygoteRules.jl

Julia
15
star
33

FluxBench.jl

Benchmarks for the FluxML ecosystem for deep learning, scientific machine learning, differentiable programming etc including AD and CUDA accelerated workloads
Julia
14
star
34

NNlibCUDA.jl

CUDA integration for the NNlib API
Julia
14
star
35

DiffImages.jl

Differentiable Computer Vision using pure Julia
Julia
14
star
36

Fluxperimental.jl

Experimental features for Flux.jl
Julia
13
star
37

SafeTensors.jl

Julia
9
star
38

MetalheadWeights

Pre-trained model weight artifacts for Metalhead.jl
Julia
7
star
39

FluxMLBenchmarks.jl

A benchmarking suite for the FluxML org
Julia
6
star
40

IArrays.jl

Julia
5
star
41

differentiable.dev

HTML
3
star
42

FluxCUDA.jl

Julia
3
star
43

FluxMLDocs

Unified documentation across the FluxML ecosystem
Julia
1
star
44

.github

Repository for default community health files
1
star