+ All Categories
Home > Documents > Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell,...

Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell,...

Date post: 06-Sep-2021
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
55
Tess Smidt Berkeley Lab 1 Tensor Field Networks: rotation-, translation-, and permutation-equivariant convolutional neural networks for 3D point clouds Google Accelerated Science Team Stanford Patrick Riley Steve Kearnes Lusann Yang Kai Kohlhoff Li Li Nate Thomas NeurIPS Molecules and Materials Workshop 2018.12.08
Transcript
Page 1: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Tess SmidtBerkeley Lab

1

Tensor Field Networks:rotation-, translation-, and permutation-equivariant convolutional neural networks for 3D point clouds

Google Accelerated Science Team Stanford

Patrick Riley

Steve Kearnes

Lusann Yang

Kai Kohlhoff

LiLi

Nate Thomas

NeurIPS Molecules and Materials Workshop2018.12.08

Page 2: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

2

Mot

ivat

ion

Page 3: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

3

Atomic systems form geometric motifs that can appear at multiple locations and orientations.

How can we identify these rotated and translated motifs using the same filters?

Mot

ivat

ion

Page 4: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

4

Atomic systems form geometric motifs that can appear at multiple locations and orientations.

The properties of physical systems transform predictably under rotation.

Can we construct a network that naturally handles these data types?

How can we identify these rotated and translated motifs using the same filters?

Mot

ivat

ion

Two point masses with velocity and acceleration.

Same system, with rotated coordinates.

Page 5: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

5

We created a network that can naturally handle 3D geometry and features of physical systems.

arXiv:1802.08219

● It can be applied to any type of atomic system (molecules, materials, proteins, hybrid systems, nanoclusters, etc.)

● And preserves geometric information (lengths and angles).

Page 6: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

We use points. Images of atomic systems are sparse and imprecise.

vs.

We encode the symmetries of 3D Euclidean space (3D translation- and 3D rotation-equivariance).

Other atoms

Convolution center

We use continuous convolutions with atoms as convolution centers.

K. T. Schütt, P.-J. Kindermans, H. E. Sauceda, S. Chmiela, A. Tkatchenko, and K.-R. Müller, Adv. in Neural Information Processing Systems 30 (2017). (arXiv: 1706.08566)

6

Page 7: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

We use points. Images of atomic systems are sparse and imprecise.

vs.

We encode the symmetries of 3D Euclidean space (3D translation- and 3D rotation-equivariance).

Other atoms

Convolution center

We use continuous convolutions with atoms as convolution centers.

K. T. Schütt, P.-J. Kindermans, H. E. Sauceda, S. Chmiela, A. Tkatchenko, and K.-R. Müller, Adv. in Neural Information Processing Systems 30 (2017). (arXiv: 1706.08566)

7

Page 8: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

We use points. Images of atomic systems are sparse and imprecise.

vs.

We encode the symmetries of 3D Euclidean space (3D translation- and 3D rotation-equivariance).

Other atoms

Convolution center

We use continuous convolutions with atoms as convolution centers.

K. T. Schütt, P.-J. Kindermans, H. E. Sauceda, S. Chmiela, A. Tkatchenko, and K.-R. Müller, Adv. in Neural Information Processing Systems 30 (2017). (arXiv: 1706.08566)

8

Page 9: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Translation equivariance

Rotation equivariance

9

Page 10: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Translation equivarianceConvolutional neural network ✓

Rotation equivariance?

10

Page 11: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Translation equivarianceConvolutional neural network ✓

Rotation equivarianceData augmentationRadial functions Want a network that both preserves geometry and exploits symmetry.

11

Page 12: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Previous work on 2D rotation-equivariance uses filters based on circular harmonics.

To extend to 3D, we use spherical harmonics.

Rotated image CNN filter output Harmonic filter output 12http://visual.cs.ucl.ac.uk/pubs/harmonicNets/

Page 13: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

with no symmetry:

with 2D circular harmonics:

with 3D spherical harmonics:

Convolutional kernels... LearnedParameters

13

Page 14: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

L = 0

m = -1

L = 1

m = 0 m = 1

L = 2

L = 3Inigo.quilezhttps://en.wikipedia.org/wiki/Spherical_harmonics

m = 2 m = 3m = -2m = -3

Spherical harmonics angular portion of hydrogenic wavefunctions

basis functions for (2l + 1) dimensional irreducible representations of SO(3)

basis functions for signals on a sphere

Page 15: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Let g be a 3d rotation matrix.

a-1 +a0 +a1

= b-1 +b0 +b1

D is the Wigner-D matrix. It has shape and is a function of g.

Spherical harmonics of a given L transform together under rotation.

g

15

Page 16: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

16

Going from 2D to 3D rotation-equivariance involves more than changing filters.

Page 17: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

17

Going from 2D to 3D rotation-equivariance involves more than changing filters.

Irreducible representations of SO(2) are all 1D.Irreducible representations of SO(3) are (2l + 1) dimensional

For rotation matrices A and B...

In 2D:AB = BA (abelian)

In 3D:AB ≠ BA (nonabelian)

Page 18: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Our filter choice requires the input, filters, and output of our network to be geometric tensors and our network connectivity to be compatible with tensor algebra.

18

Irreducible representations of SO(2) are all 1D.Irreducible representations of SO(3) are (2l + 1) dimensional

Going from 2D to 3D rotation-equivariance involves more than changing filters.

For rotation matrices A and B...

In 2D:AB = BA (abelian)

In 3D:AB ≠ BA (nonabelian)

Page 19: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

19

Page 20: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

MultidimensionalArray

20

Page 21: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Geometric tensors transform predictably under 3D rotation.

Two point masses with velocity and acceleration.

Same system, with rotated coordinates.

21

Page 22: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Scalars fields

Vectors fields

3x3 Matrix fields

L = 0

L = 1

L = 2

Geometric tensors transform predictably under 3D rotation.

Two point masses with velocity and acceleration.

Same system, with rotated coordinates.

Irreducible representations

22

Page 23: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

=

The input and output of our network is represented as tensors with point (or atom), channel, and representation indices organized by irreducible representation.

23

Page 24: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

=

The input and output of our network is represented as tensors with point (or atom), channel, and representation indices organized by irreducible representation.

24

Page 25: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Filters contribute a representation index due to use of spherical harmonics.

25

Page 26: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Filters contribute a representation index due to use of spherical harmonics.

26

This is where the geometric information is used.

For images this is always the same (a grid). For points, this changes for every example.

Page 27: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

To combine two tensors to create one tensor, we uses Clebsch-Gordan coefficients.

27

Page 28: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

To combine two tensors to create one tensor, we uses Clebsch-Gordan coefficients.

28D. Griffiths, Introduction to quantum mechanics

Same math involved in the addition of angular momentum.

Page 29: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

These are components of tensor field networks

Input Filter Clebsch-Gordan coefficients

Rotation-equivariant Nonlinearity

29

Page 30: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

This is what a two-layer tensor field network looks like:

30

Page 31: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

… and this is what one layer (without NL) looks like with all the indices written out:

31

Page 32: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

… and this is what one layer (without NL) looks like with all the indices written out:

32

Page 33: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

… and this is what one layer (without NL) looks like with all the indices written out:

33

Page 34: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Test of 3D rotation equivariance: Trained on 3D Tetris shapes in one orientation, our network can perfectly identify these shapes in any orientation.

TRA

INTE

ST

34

Page 35: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Test of 3D rotation equivariance: Trained on 3D Tetris shapes in one orientation, our network can perfectly identify these shapes in any orientation.

TRA

INTE

ST

35

Chiral

Page 36: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

We can start with tensor input of any type and use filters to get tensor output of any type. In this task, scalar masses are input and gravitational acceleration vectors are output.

36

Page 37: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Moment of inertia: 0 (trace) + 2 (symmetric traceless)

37

We can start with tensor input of any type and use filters to get tensor output of any type. In this task, scalar masses are input and the moment of inertia tensor (a symmetric matrix) is output.

Page 38: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Given a small organic molecule with an atom removed, replace the correct element at the correct location in space.

DATASETQM9: http://www.quantum-machine.org/datasets/134k molecules with 9 or less heavy atoms (non-hydrogen) and elements H, C, N, O, F.

TRAIN1,000 molecules with 5-18 atoms

TEST1,000 molecules with 19 atoms1,000 molecules with 23 atoms1,000 molecules with 25-29 atoms

Input coordinates with missing atom.

Network outputs (N-1) atom type features (scalars), (N-1) displacement vectors, and (N-1) scalars indicating confidence probability used for "voting".

Learns to replace atoms with over 90% accuracy across train and test by seeing the same 1,000 molecules 200 times.

38

Page 39: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Conclusion

We've created a neural network architecture that operates on points and has the symmetries of 3D Euclidean space (3D translation- and 3D rotation-equivariance).

We use convolutional filters restricted to spherical harmonics with a learned radial function.

As a consequence of this choice of filter, the inputs, filters, and outputs of our network are geometric tensor fields.

We expect this network to be generally useful for tasks in geometry, physics and chemistry.

39

Paper:arXiv:1802.08219

Code for paper:https://github.com/tensorfieldnetworks/tensorfieldnetworks

Refactor coming soon:https://github.com/mariogeiger/se3cnn

Page 40: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Calling in backup (slides)!

40

Page 41: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Missing point task results

41

Page 42: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

3D Tetris classification network diagram

42

Page 43: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

43

Benjamin Crowell, General Relativity, p. 256.

Page 44: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

visual proof of 3d rotation equivariance

44

Page 45: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

To be rotation-equivariant, the following relationship must hold for each layer:

Relative vector matrix

g Relative vector matrix

45

Page 46: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Each component of the network must be individually rotation-equivariant to guarantee the network rotation equivariance.

g

g

46

Page 47: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

More explicitly...

47

Page 48: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

The key property of the Clebsch-Gordan coefficient tensor:

48

Page 49: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Putting it all together, we can show that the layers are equivariant.

=

=

g

49

Page 50: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Math3ma.com

Page 51: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Examples of tensor algebra: How to combine a scalar and a vector? Easy!

51

IrreducibleRepresentations

Page 52: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Examples of tensor algebra: How to combine two vectors? Many ways.

52

Dot product

Crossproduct

Outer product

IrreducibleRepresentations

Page 53: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

To combine two tensors to create one tensor, we uses Clebsch-Gordan coefficients.

0

11

1

10

1

11

1

12

53

Page 54: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Our filter choice requires the structure of our network to be compatible with the algebra of geometric tensors.

L = 0

L = 1

L = 2

54

Page 55: Tensor Field Networks: NeurIPS Molecules and Materials ......2018/12/08  · Benjamin Crowell, General Relativity, p. 256. visual proof of 3d rotation equivariance 44 To be rotation-equivariant,

Stefan Chmiela, Alexandre Tkatchenko, Huziel E. Sauceda, Igor Poltavsky, Kristof T. Schütt and Klaus-Robert Müller, Machine learning of accurate energy-conserving molecular force fieldsScience Advances, Vol. 3, no. 5 e1603015 (2017)DOI: 10.1126/sciadv.1603015

(Smooth, decaying) Vector fields can be decomposed into a conservative field and a solenoid field. A conservative vector field can be expressed as the gradient of a scalar field and the solenoidal field as the curl of a vector field.

55


Recommended