B-S PLINE CNN S ON L IE G ROUPS
A BSTRACT
Group convolutional neural networks (G-CNNs) can be used to improve classical CNNs by equipping them with the geometric structure of groups.
Central in the success of G-CNNs is the lifting of feature maps to higher dimensional disentangled representations in which data characteristics are effectively learned, geometric data-augmentations are made obsolete, and predictable behavior under geometric transformations (equivariance) is guaranteed via group theory.
Currently, however, the practical implementations of G-CNNs are limited to either discrete groups (that leave the grid intact) or continuous compact groups such as rotations (that enable the use of Fourier theory).
In this paper we lift these limitations and propose a modular framework for the design and implementation of
G-CNNs for arbitrary Lie groups .
In our approach the differential structure of
Lie groups is used to expand convolution kernels in a generic basis of B-splines that is deﬁned on the Lie algebra.
This leads to a ﬂexible framework that enables localized , atrous , and deformable convolutions in G-CNNs by means of respectively localized , sparse and non-uniform B-spline expansions.
The impact and potential of our approach is studied on two benchmark datasets: cancer detection in histopathology slides in which rotation equivariance plays a key role and facial landmark localization in which scale equivariance is important.
In both cases, GCNN architectures outperform their classical 2D counterparts and the added value of atrous and localized group convolutions is studied in detail.
I NTRODUCTION
Group convolutional neural networks (G-CNNs) are a class of neural networks that are equipped with the geometry of groups.
This enables them to proﬁt from the structure and symmetries in signal data such as images (Cohen & Welling, 2016).
A key feature of G-CNNs is that they are equivariant with respect to transformations described by the group, i.e., they guarantee predictable behavior under such transformations and are insensitive to both local and global transformations on the input data.
Classical CNNs are a special case of G-CNNs that are equivariant to translations and, in contrast to unconstrained NNs, they make advantage of (and preserve) the basic structure of signal data throughout the network (LeCun et al., 1990).
By considering larger groups (i.e. considering not just translation equivariance) additional geometric structure can be utilized in order to improve performance and data efﬁciency (see G-CNN literature in Sec. 2).
Part of the success of G-CNNs can be attributed to the lifting of feature maps to higher dimensional objects that are generated by matching kernels under a range of poses (transformations in the group).
This leads to a disentanglement with respect to the pose and together with the group structure this enables a ﬂexible way of learning high level representations in terms of low-level activated neurons observed in speciﬁc conﬁgurations, which we conceptually illustrate in Fig.
From a neuro-psychological viewpoint, this resembles a hierarchical composition from low- to high-level features akin to the recognition-by-components model by Biederman (1987), a viewpoint which is also adopted in work on capsule networks (Hinton et al., 2011; Sabour et al., 2017).
In particular in (Lenssen et al., 2018)
the group theoretical connection is made explicit with equivariant capsules that provide a sparse index/value representation of feature maps on groups (Gens & Domingos, 2014).
Representing low-level features via features maps on groups, as is done in G-CNNs, is also motivated by the ﬁndings of Hubel & Wiesel (1959) and Bosking et al.
(1997) on the organization of orientation sensitive simple cells in the primary visual cortex V1.
These ﬁndings are mathematically modeled by sub-Riemannian geometry on Lie groups (Petitot, 2003; Citti & Sarti, 2006; Duits et al., 2014) and led to effective algorithms in image analysis (Franken & Duits, 2009;
Bekkers et al., 2015b; Favali et al., 2016; Duits et al., 2018; Baspinar, 2018).
In recent work Montobbio et al.
(2019) show that such advanced V1 modeling geometries emerge in speciﬁc CNN architectures and in Ecker et al.
the relation between group structure and the organization of V1 is explicitly employed to effectively recover actual V1 neuronal activities from stimuli by means of G-CNNs.
G-CNNs are well motivated from both a mathematical point of view (Cohen et al., 2018a; Kondor & Trivedi, 2018) and neuro-psychological/neuro-mathematical point of view and their improvement over classical CNNs is convincingly demonstrated by the growing body of G-CNN literature (see
Sec. 2).
However, their practical implementations are limited to either discrete groups (that leave the grid intact) or continuous, (locally) compact, unimodular groups such as roto-translations (that enable the use of Fourier theory).
In this paper we lift these limitations and propose a framework for the design and implementation of G-CNNs for arbitrary Lie groups .
The proposed approach for G-CNNs relies on a deﬁnition of B-splines on Lie groups which we use to expand and sample group convolution kernels.
B-splines are piece-wise polynomials with local support and are classically deﬁned on ﬂat Euclidean spaces R d .
In this paper we generalize
B-splines to Lie groups and formulate a deﬁnition using the differential structure of Lie groups in which B-splines are essentially deﬁned on the (ﬂat) vector space of the Lie algebra obtained by the logarithmic map, see Fig.
The result is a ﬂexible framework for B-splines on arbitrary Lie groups and it enables the construction of G-CNNs with properties that cannot be achieved via traditional
Fourier-type basis expansion methods.
Such properties include localized , atrous , and deformable convolutions in G-CNNs by means of respectively localized , sparse and non-uniform B-splines .
Although concepts described in this paper apply to arbitrary Lie groups, we here concentrate on the analysis of input data that lives on R d and consider G-CNNs for afﬁne groups G = R d (cid:111) H that are the semi-direct product of the translation group with a Lie group H .
As such, only a few core deﬁnitions about the Lie group H (group product, inverse, Log , and action on R d ) need to be implemented in order to build full G-CNNs that are locally equivariant to the transformations in H .
The impact and potential of our approach is studied on two datasets in which respectively rotation and scale equivariance plays a key role: cancer detection in histopathology slides (PCam dataset) and facial landmark localization (CelebA dataset).
In both cases G-CNNs out-perform their classical 2D counterparts and the added value of atrous and localized G-convolutions is studied in detail.
R ELATED WORK
G-CNNs The introduction of G-CNNs to the machine learning community by Cohen & Welling (2016) led to a growing body of G-CNN literature that consistently demonstrates an improvement of G-CNNs over classical CNNs.
It can be roughly divided into work on discrete G-CNNs (Cohen & Welling, 2016;
Dieleman et al., 2016; Winkels & Cohen, 2018; Worrall & Brostow, 2018;
Hoogeboom et al., 2018), regular continuous G-CNNs (Oyallon & Mallat, 2015; Bekkers et al., 2015a; 2018b; Weiler et al., 2018a;
Zhou et al., 2017; Marcos et al., 2017) and steerable continuous G-CNNs (Cohen et al., 2018b; Worrall et al., 2017; Kondor & Trivedi, 2018; Thomas et al., 2018; Weiler et al., 2018a; Esteves et al., 2018a; Andrearczyk et al., 2019).
Since 3D rotations can only be sampled in very restrictive ways (without destroying the group structure) the construction of 3D roto-translation G-CNNs is limited.
In order to avoid having to sample all together, steerable (G-)CNNs can be used.
These are specialized G-CNNs in which the kernels are expanded in circlar/spherical harmonics and computations take place using the basis coefﬁcients only (Chirikjian & Kyatkin, 2000; Franken, 2008; Almsick, 2007; Skibbe & Reisert, 2017).
The latter approach is however only possible for unimodular groups such as roto-translations.
Scale equivariance In this paper we experiment with scale-translation G-CNNs, which is the ﬁrst direct application of G-CNNs to achieve equivariance beyond roto-translations.
Scale equivariance is however addressed in several settings (Henriques & Vedaldi, 2017; Esteves et al., 2018b; Marcos et al., 2018;
Tai et al., 2019; Worrall & Welling, 2019; Jaderberg et al., 2015; Li et al., 2019), of which (Worrall & Welling, 2019) is most related.
There, scale-space theory and semi-group theory is used to construct scale equivariant layers that elegantly take care of moving band-limits due to rescaling.
Although our work differs in several ways (e.g. non-learned lifting layer, discrete group convolutions via atrous kernels, semi-group theory), the ﬁrst two layers of deep scale-space networks relate to our lifting layer by treating our B-splines as a superposition of dirac deltas transformed under the semi-group action of (Worrall & Welling, 2019), as we show in App.
C.1.
Li et al.
(2019) achieve scale invariance by sharing weights among kernels with different dilation rates.
Their approach can be considered a special case of our proposed B-spline G-CNNs with kernels that do not encode scale interactions.
Related work by Tai et al.
and Henriques & Vedaldi (2017) relies on the same Lie group principles as we do in this paper (the Log map) to construct convenient coordinate systems, such as log-polar coordinates Esteves et al.
(2018b),
to handle equivariance.
Such methods are however generally not translation equivariant and do not deal with local symmetries as they act globally on feature maps, much like spatial transformer networks (Jaderberg et al., 2015).
B-splines and vector ﬁelds in deep learning The current work can be seen as a generalization of the B-spline based SE (2) CNNs of Bekkers et al.
(2015a; 2018b), see Sec. 3.3.
Closely related is also the work of Fey et al.
(2018) in which B-splines are used to generalize CNNs to non-Euclidean data (graphs).
There it is proposed to perform convolution via B-spline kernels on R d that take as inputs vectors u
( i, j
) ∈ R d that relate any two points i, j ∈ G in the graph to each other.
How u ( i, j ) is constructed is left as a design choice, however, in (Fey et al., 2018) this is typically done by embedding the graph in an Euclidean space where points relate via offset vectors.
In our work on Lie G-CNNs, two points g, g (cid:48) ∈ G in the Lie group G relate via the logarithmic map u ( g, g (cid:48) ) =
Log g − 1 g (cid:48) .
Another related approach in which convolutions take place on manifolds in terms of ”offset vectors” is the work by Cohen et al.
There, points relate via the exponential map with respect to gauge frames rather than the left-invariant vector ﬁelds as in this paper, see App.
C.2.
L IE GROUP CNN S 3. P RELIMINARIES AND NOTATION
The following describes the essential tools required for deriving a generic framework G-CNNs.
Although we treat groups mostly in an abstract setting, we here provide examples for the rototranslation group and refer to App.
B for more details, explicit formula’s, and ﬁgures for several groups.
Implementations are available at https://github.com/ebekkers/gsplinets .
Group A group is deﬁned by a set G together with a binary operator · , the group product, that satisﬁes the following axioms: Closure : For all h, g ∈ G we have h · g ∈ G ; Identiy : There exists an identity element e ; Inverse : for each g ∈ G there exists an inverse element g − 1 ∈ G such that g − 1 · g = g · g − 1 = e ; and Associativity : For each g, h, i ∈ G we have ( g · h ) · i = g · ( h · i ) .
Lie group and Lie algebra
If furthermore the group has the structure of a differential manifold and the group product and inverse are smooth, it is called a Lie group .
The differentiability of the group induces a notion of inﬁnitesimal generators (see also the exponential map below), which are elements of the Lie algebra g .
The Lie algebra consists of a vector space (of generators), that is typically identiﬁed with the tangent space T e ( G ) at the identity e , together with a bilinear operator called the Lie bracket.
In this work the Lie bracket is not of interest and we simply say g = T e ( G ) .
Exponential and logarithmic map We expand vectors in g in a basis { A i } ni =1 and write A = (cid:80) ni a i A i ∈ g , with components
a =
( a 1 , . .
. , a n ) ∈ R n .
This allows us to identify the Lie algebra with R n .
Lie groups come with a logarithmic map that maps elements from the typically non-ﬂat manifolds G to the ﬂat Euclidean vector space g via A
= Log g (conversely g = Exp A ), see Fig.
Semi-direct product groups In this paper we speciﬁcally consider (afﬁne)
Lie groups of type G = R d (cid:111) H that are the semi-direct product of the translation group R d with a Lie group H that acts on
R d .
Let h (cid:12) x denote the action of h ∈ H on x ∈ R d ; it describes how a vector in R d is transformed by h .
Then the group product of R d (cid:111) H is given by
[Equation]
[Equation]
with g 1 = ( x 1 , h 1 ) , g 2 = ( x 2 , h 2 ) ∈ G , x 1 , x 2 ∈ R d and h 1 , h 2 ∈ H .
For example the special
Euclidean motion group SE (2) is constructed by choosing H =
SO (2) , the group of 2 × 2 rotation matrices with matrix multiplication as the group product.
The group product of G is then given by
[Equation]
with x 1 , x 2 ∈ R 2 and R θ 1 , R θ 2 ∈ SO (2) rotation matrices parameterized by a rotation angle θ i , and in which rotations act on vectors in R 2 simply by matrix vector multiplication.
Group representations We consider linear transformations L G → L 2 ( X ) g :
L 2 ( X ) →
L 2 ( X ) that transform functions (or feature maps)
f ∈ L 2 ( X ) on some space X as representations of a group G if they share the group structure via
[Equation]
with ◦ denoting function composition.
Thus, a concatenation of two such transformations, parameterized by g 1 and g 2 , can be described by a single transformation parameterized by g 1 · g 2 .
For semi-direct product groups G = R d (cid:111)
H such a representation can be split into
[Equation]
Equivariance An operator Φ : L 2 ( X ) → L 2 ( Y ) is said to be equivariant to G when it satisﬁes
[Equation]
3. G ROUP CONVOLUTIONAL NEURAL NETWORKS
Equivariance of artiﬁcial neural networks (NNs) with respect to a group G is a desirable property as it guarantees that no information is lost when applying transformations to the input, the information is merely shifted to different locations in the network.
It turns out that if we want NNs to be equivariant, then our only option is to use layers whose linear operator is deﬁned by group convolutions.
We summarize this in Thm. 1.
To get there, we start with the traditional deﬁnition of NN layers via y
[Equation] ) , with x ∈ X the input vector, K w : X → Y a linear map parameterized by a weight vector w , with b ∈ Y a bias term, and φ a point-wise non-linearity.
In classical neural networks X = R N x
and
Y =
R N y are Euclidean vector spaces and the linear map K w =
R N y × N x is a weight matrix.
In this work we instead focus on structured data and consider feature maps on some domain X as functions f : X → R N , the space of which we denote with ( L 2 ( X )) N .
In this case X =
( L 2 ( X ))
N x and Y =
( L 2 ( Y ))
N y are the spaces of multi-channel feature maps, b ∈ R N y , and K w : X → Y is a kernel operator.
Now when we constrain the linear operator K w to be equivariant under transformations in some group G we arrive at group convolutional neural networks.
This is formalized in the following theorem on equivariant maps between homogeneous spaces (see (Duits & Burgeth, 2007; Kondor &
Trivedi, 2018; Cohen et al., 2018a) for related statements).
Theorem 1.
Let operator K :
L 2 ( X )
→ L 2 ( Y ) be linear and bounded, let X, Y be homogeneous spaces on which Lie group G act transitively, and d µ X a Radon measure on X , then
K is a kernel operator,
i.e., ∃ ˜ k ∈ L
[Equation]
under the equivariance constraint of Eq.
(3) the map is deﬁned by a one-argument kernel
[Equation]
for any g y ∈ G such that y = g y (cid:12) y 0 for some ﬁxed origin y 0 ∈ Y , 3.
if Y ≡ G/H is the quotient of G with H =
Stab G ( y 0 )
= { g ∈ G | g (cid:12) {+y 
+}
= y 0 } then the kernel is constrained via
[Equation]
Proof.
See App.
A
Corollary 1.
If X = R d is a homogeneous space of an afﬁne Lie group G = R d (cid:111) H and d µ X ( x ) =
d x is the Lebesgue measure on R d then the kernel front-factor simpliﬁes to d µ X ( g − 1 (cid:12) x ) d µ X ( x ) = 1 | det [Equation] | with | det h | denoting the determinant of the matrix representation of h , for any g = ( x , h ) ∈ G .
If
X =
G and d µ X ( x ) is a Haar measure on G then d µ X ( g − 1 (cid:12) x ) d µ X ( x ) = 1 .
In view of Thm. 1 we see that standard CNNs are a special case of G-CNNs that are equivariant to translations.
In this case the domain of the feature maps X = R d coincides with the space of translation vectors in the translation group G =
( R d , +) .
It is well known that if we want the networks to be translation and rotation equivariant ( G = R d (cid:111) SO ( d ) ), but stick to planar feature maps, then the kernels should be rotation invariant, which of course limits representation power.
This constraint is due Thm. 1 item 3, since the domain of such features maps is a quotient group R d ≡ G/ { 0 } × SO ( d ) in which rotations ( SO ( d ) ) are factored out of the roto-translation group
G = R d (cid:111) SO ( d ) .
Thus, in order to maximize representation power (without constrains on k ) the feature maps should be lifted to the higher dimensional domain of the group itself (i.e. Y = G ).
We therefore propose to build G-CNNs with the following 3 types of layers (illustrated in Fig.
• Lifting layer ( X = R d , Y = G ):
In this layer K is deﬁned by lifting correlations
[Equation]
with g =
( x , h ) , which by splitting of the representation (Eq.
(2)) can be written as
[Equation]
with k h ( x ) =
[Equation]
| (cid:16)
[Equation]
k (cid:17) ( x ) the transformed kernel.
Lifting correlations thus match a kernel with the input feature map under all possible transformations in G .
• Group correlation layer ( X = G, Y = G ):
In this case K is deﬁned by group correlations
[Equation]
with d µ ( g ) a Haar measure on G .
We can again split this cross-correlation into a transformation of K followed by a spatial cross-correlation via
[Equation]
with K h (˜ x , ˜ h ) =
K ( h − 1 (cid:12) ˜ x , h − 1 · ˜ h ) the convolution kernel transformed by h ∈ H and in which we overload (cid:63) R d to indicate cross-correlation on the R d part of G = R d (cid:111) H .
• Projection layer ( X = G, Y = R d ): In this case K is a linear projection deﬁned by
[Equation]
where we simply integrate over H instead of using a kernel that would otherwise be constant over H and spatially isotropic with respect to H .
App.
B provides explicit formula’s for these layers for several groups.
E.g., in the SE (2) we get:
SE (2) -lifting:
[Equation]
[Table]
3. B-S PLINES ON L IE GROUPS
Central in our formulation of G-CNNs is the transformation of convolution kernels under the action of H as described above in Eqs.
(6) and (7) in the continuous setting.
For the implementation of
G-CNNs the kernels and their transformations need to be sampled on a discrete grid.
We expand on the idea’s in (Bekkers et al., 2015a; 2018b; Weiler et al., 2018b) to express the kernels in an analytic form which we can then sample under arbitrary transformations in G to perform the actual computations.
In particular we generalize the approach of Bekkers et al.
(2015a; 2018b) to expand group correlation kernels in a basis of shifted cardinal B-splines, which are localized polynomial functions on R d with ﬁnite support.
In (Bekkers et al., 2015a; 2018b), B-splines on R d could be used to construct kernels on SE (2) by identifying the group with the space of positions and orientations and simply using periodic splines on the 1D orientation axis S 1 .
However, in order to construct
B-splines on arbitrary Lie groups, we need a generalization.
In the following we propose a new deﬁnition of B-splines on Lie groups H which enables us to construct the kernels on R d (cid:111) H that are required in the G-correlations (Eq.
Deﬁnition 1 (Cardinal B-spline on R n ) .
The 1D cardinal B-Spline of degree n be is deﬁned as
[Equation]
where ∗ ( n ) denotes n -fold convolution of the indicator function 1[ − 12 , 12 ] .
The multi-variate cardinal
B-spline on R d , with coordinates x
= ( x 0 , . .
, x d ) T ∈ R d , is deﬁned via the tensor product
[Equation]
[Equation]
Cardinal B-splines are piece-wise polynomials and are localized on support [ − n +12 , n +12 ] .
Functions can be expanded in a basis of shifted cardinal B-splines, which we simply refer to as B-splines.
Deﬁnition 2 (B-splines on R n ) .
A B-spline is a function f : R d → R expanded in a basis that consists of shifted and scaled copies of the cardinal B-spline
[Equation]
and is fully characterized by spline degree n , scale s x , set of centers { x i } Ni =1 with x i ∈ R d and corresponding coefﬁcients c
= ( c 1 , c 2 , . . .
, c N ) T ∈ R N .
The B-spline is called uniform if the set of centers { x i } Ni =1 forms a uniform grid on R d , in which the distance (cid:107) x
j − x i (cid:107) between neighbouring centers x i , x j ∈ R d is constant along each axis and equal to s x .
Deﬁnition 3 (B-splines on Lie group H ) .
A B-spline on H is a function f : H → R expanded in a basis that consists of shifted (by left multiplication) and scaled copies of the cardinal B-spline
[Equation]
with h ∈ H and Log : H → h the logarithmic map on H .
The B-spline is fully characterized by the spline degree n , scale s h , set of centers { h i } Ni =1 with h i ∈ H and corresponding coefﬁcients c
= ( c 1 , c 2 , . . .
, c N ) T ∈ R N .
The spline is called uniform if the distance (cid:107) Log h − 1 i h j (cid:107) between neighbouring centers
h i , h j ∈ H is constant.
Examples of B-splines on Lie groups H are given in Fig.
In this paper we choose to expand convolution kernels on G = R d (cid:111) H as the tensor product of B-splines on R d and H respectively and obtain functions f : R d × H via
[Equation]
Note that that one could also directly deﬁne B-splines on G via (12), however, this splitting ensures we can use a regular Cartesion grid on the R d part.
In our experiments we use B-splines as in (13) and consider the coefﬁcients c as trainable parameters and the centers ( x i and/or h i ) and scales ( s x and/or s h ) are ﬁxed by design.
Some design choices are the following (and illustrated in Fig. 4).
Global vs localized uniform B-splines The notion of a uniform B-spline globally covering H exists only for a small set of Lie groups, e.g. for any 1D group and abelian groups, and it is not possible to construct uniform B-splines on Lie groups in general due to non-zero commutators.
Nevertheless, we ﬁnd that it is possible to construct approximately uniform B-splines on compact groups either by constructing a grid of centers { h i } Ni =1 on H that approximately uniformly covers H , e.g. by using a repulsion model in which (cid:107) Log h − 1 i · h j (cid:107) between any two grid points h
i , h j ∈ H is maximized (as is done in Fig. 3), or by specifying a uniform localized grid on the lie algebra h and obtaining the centers via the exponential map.
The latter approach is in fact possible for any Lie group and leads to a notion of localized convolution kernels that have a ﬁnite support on H , see Fig. 4.
Atrous B-splines Atrous convolutions, i.e. convolutions with sparse kernels deﬁned by weights interleaved with zeros (Holschneider et al., 1990), are commonly used to increase the effective receptive ﬁeld size and add a notion of scale to deep CNNs (Yu & Koltun, 2016; Chen et al., 2018).
Atrous convolution kernels can be constructed with B-splines by ﬁxing the scale factors s x and s h , e.g. to the grid size, and increasing the distance between the center points x
i and h i .
Non-uniform/deformable B-splines In non-uniform B-splines the centers x
i and h i do not necessarily need to lie on a regular grid.
Then, deformable CNNs, ﬁrst proposed by Dai et al.
(2017), are obtained by treating the centers as trainable parameters.
For B-spline CNNs on R d of order n =this in fact leads to the deformable convolution layers as deﬁned in (Dai et al., 2017).
Modular design The design of G-correlation layers (Eqs.
using B-spline kernels (Eqs. (1113)) results in a generic and modular construction of G-CNNs that are equivariant to Lie groups G and only requires a few group speciﬁc deﬁnitions (see examples in App.
B): The group structure of
H (group product · and inverse), the action (cid:12) of H on R d (together with the group structure of H this automatically deﬁnes the structure of G = R d (cid:111) H ), and the logarithmic map Log : H → h .
Partition of unity (cid:122) (cid:125)(cid:124) (cid:123)
B-Spline (cid:122) (cid:125)(cid:124) (cid:123)
S 1 ≡ SO (2) , N= + + . . .
=
( R + , · ) , N= + + . . .
=
S 2 ≡ SO (3) /SO
(2) , N= + + . . .
=
N= +
[Equation]
[Equation]
E XPERIMENTS 4. R OTO - TRANSLATION CNN S
Data The PatchCamelyon (PCam) dataset (Veeling et al., 2018) consists of 327,680 RGB patches taken from histopathologic scans of lymph node sections and is derived from Camelyon16 (Ehteshami Bejnordi et al., 2017).
The patches are binary labeled for the presence of metastasis.
The classiﬁcation problem is truly rotation invariant as image features appear under arbitrary rotations at all levels of abstraction, e.g. from edges (low-level) to individual cells to the tissue (high-level).
Experiments G-CNNs ensure roto-translation equivariance both locally (low-level) and globally (high-level) and invariance is achieved by means of pooling.
In our experiments we test the performance of roto-translation G-CNNs (with G = R 2 (cid:111) SO (2) ) against a 2D baseline and investigate the effect of different choices (local, global, atrous) for deﬁning the kernels on the SO (2) -part of the network, cf.
Eq.
(13) and Fig. 4.
Each network has the same architecture (detailed in App. D) but the kernels are sampled with varying resolution on H =
SO (2) , denoted with N h , and with varying resolution of the B-splines, which is achieved by varying s h and the number of basis functions on H , denoted with N k .
Each network has approximately the same number of trainable weights.
Each network is trained with data-augmentation (see App.
D for details), but for reference we also compare to a 2D and a SE (2) model ( N k
= N h = 12 ) which are trained without 90 ◦ rotation augmentation.
The results are summarized in Fig.
Here N h
= 1 means the kernels are transformed for only one rotation, which coincides with standard 2D convolutions (our baseline).
A result labeled ”dense” with N h = 16 and N k = 8 means the convolution kernels are rotated 16 times and the kernels are expanded in a B-spline basis with 8 basis functions to fully cover H .
The label ”local” means the basis is localized with N k basis functions with a spacing of s h =
π 16 between them, with s h equal to the grid resolution.
Atrous kernels are spaced equidistantly on H and have s h (cid:28) 2 πN h .
Results We generally observe that a ﬁner sampling of SO (2) leads to better results up until N h
=after which results slightly degrade.
This is line with ﬁndings in (Bekkers et al., 2018a).
The degradation after this point could be explained by overﬁtting; there is a limit on the resolution of the signal generated by rotating 5x5 convolution kernels; at some point the splines are described in more detail than the data and thus an unnecessary amount of coefﬁcients are trained.
One could still beneﬁt from sampling coarse kernels (low N k ) on a ﬁne grid (high N h ), e.g. compare the cases N h > N k for ﬁxed N k .
This is in line with ﬁndings in (Weiler et al., 2018b) where a ﬁxed circular harmonic basis is used.
Generally, atrous kernels tend to outperform dense kernels as do the localized kernels in the low N k regime.
Finally, comparing the models with and without 90 ◦ augmentation show that such augmentations are crucial for the 2D model but hardly affect the SE (2) model.
Moreover, the SE (2) model without outperforms the 2D model with augmentation.
This conﬁrms the theory:
G-CNNs guarantee both local and global equivariance by construction, whereas with augmentations valuable network capacity is spend on learning (only) global invariance.
The very modest drop in the SE (2) case may be due to the discretization of the network on a grid after which it is no longer purely equivariant but rather approximately, which may be compensated for via augmentations.
4. S CALE - TRANSLATION CNN S
Data The CelebA dataset (Liu et al., 2015) contains 202,599 RGB images of varying size of celebrities together with labels for attributes (hair color, glasses, hat, etc) and 5 annotated facial landmarks (2 eyes, 1 nose, 2 corners of the mouth).
We reformatted the data as follows.
All images are isotropically scaled to a maximum width or height of 128 and if necessary padded in the other dimension with zeros to obtain a size of 128x128.
For each image we took the distance between the eyes as a reference for the size of the face and categorized each image into above and below average size.
For each unique celebrity with at least 1 image per class, we randomly sampled 1 image per class.
The ﬁnal dataset consists of 17,548 images of 128x128 of 8,774 celebrities with faces at varying scales.
Each image is labeled with 5 heatmaps constructed by sampling a Gaussian with standard deviation 1.5 centered around each landmark.
Experiments We train a scale-translation G-CNN (with G =
R 2 (cid:111) R + ) with different choices for kernels.
The ”dense” networks have kernels deﬁned over the whole discretization of H = R + and thus consider interactions between features at all scales.
The ”local” networks consider only
[Figure]
interaction between neighbouring scales via localized kernels ( N k = 3 ) or no scale interaction at all ( N k = 1 ).
Either way, each G-CNN is a multi-scale network in which kernels are applied at a range of scales.
We compared against a 2D baseline with ﬁxed-scale kernels which we tested for several scales separately.
In the G-CNNs, H is uniformly sampled (w.r.t.
to the metric on H ) on a ﬁxed scale range, generating the discrete sets H d = { e ( i − 1)
s h } N h
i =1 with s h
= 12 ln 2 .
Each G-CNN is sampled with the same resolution in H with s h , and each B-spline basis function is centered on the discrete grid (i.e. h i ∈ H d ).
We note that the discretization of H is formally no longer a group as it is not closed, however, the group structure still applies locally.
The result is that information may leak out of the domain in a similar way as happens spatially in standard zero-padded 2D CNNs (translational
G-CNNs), in which the discretized domain of translations is also no longer (locally) compact.
This information leak can be avoided by using localized kernels of size N k
= 1 along the H axis, as is also done in (Worrall & Welling, 2019; Li et al., 2019).
The networks are trained without dataaugmentation, except for the 2D network, which for reference we train with and without random scale augmentations at train-time.
Augmentations were done with a random scale-factor betweenand 1 . 4 .
We found that scale augmentations beyond 1 .
4 did not improve results.
Results Fig.
5 summarizes the results.
By testing our 2D baseline at several scales we observe that there is an optimal scale ( h = 2 ) that gives a best trade off between the scale variations in the data.
This set of experiments is also used to rule out the idea that G-CNNs outperform the 2D baseline simply because they have a larger effective receptive ﬁeld size.
For large scale ranges the G-CNNs start to outperform 2D CNNs as these networks consider both small and large scale features simultaneously (multi-scale behavior).
Comparing different G-CNN kernel speciﬁcations we observe that enabling interactions between neighbouring scales, via localized kernels on H (”local”, N h = 3 ), outperforms both all-scale interactions (”dense”) and no-scale interaction at all ( N h = 1 ).
This ﬁnding is in line with those in (Worrall & Welling, 2019).
Finally, although 2D CNNs moderately beneﬁt from scale augmentations, it is not possible to achieve the performance of G-CNNs.
It seems that a multi-scale approach (G-CNNs) is essential.
C ONCLUSION
This paper presents a ﬂexible framework for building G-CNNs for arbitrary Lie groups.
The proposed B-spline basis functions, which are used to represent convolution kernels, have unique properties that cannot be achieved by classical Fourier based basis functions.
Such properties include the construction of localized, atrous, and deformable convolution kernels.
We experimentally demonstrated the added value of localized and atrous group convolutions on two different applications, considering two different groups.
In particular in experiments with scale-translation G-CNNs, kernel localization was important.
The B-spline basis functions can be considered as smooth pixels on
Lie groups and they enable us to design G-CNNs using familiar notions from classical CNN design (localized, atrous, and deformable convolutions).
Future work will focus on exploring these options further in new applications that could beneﬁt from equivariance constraints, for which the tools now are available for a large class of transformation groups via the proposed Lie group B-splines.
A CKNOWLEDGMENTS
Remco Duits (Eindhoven University of Technology (TU/e)) is gratefully acknowledged for his contributions to the formulation and proof of Thm. 1 and for helpful discussions on Lie groups.
I thank Maxime Lafarge (TU/e) for advice on setting up the PCam experiments. This work is part of the research programme VENI with project number 17290, which is (partly) ﬁnanced by the Dutch Research Council (NWO)
A P ROOF OF T HEOREM
The following proofs the three sub-items of Thm. 1.
It follows from Dunford-Pettis Theorem, see e.g. (Arendt Bukhvalov 1994, Thm 1. , (Kantorovich & Akilov, 1982, Ch 9, Thm 5), or (Duits, 2005, Thm 1), that if K is linear and bounded it is an integral operator.
The left-equivariance constraint then imposes bi-left-invariance of the kernel ˜ k as follows, where ∀ g ∈ G and ∀ f ∈
L 2 ( X ) :
[Equation]
Since (14) should hold for all f ∈ L 2 ( X ) we obtain
[Equation]
Furthermore, since G acts transitively on Y we have that ∀ y,y 0 ∈ Y ∃ g y ∈
G such that
y = g y yand thus
[Equation]
for every g y ∈ G such that y = g y y 0 with arbitrary ﬁxed origin y 0 ∈ Y .
Every homogeneous space Y of G can be identiﬁed with a quotient group G/H .
Choose an origin y
∈ Y s.t.
∀ h ∈ H : h y
=
y 0 ,
i
e., H =
Stab G y 0 , then
[Equation]
We further remark that When Y ≡ G = G/ { e } , with e ∈ G the identify element of G , the symmetry constraint of Eq.
(5) vanishes.
Thus, in order to construct equivariant maps without constraints on the kernel the functions should be lifted to the group G .
B E XAMPLES OF L IE GROUPS
In the following sub-sections some explicit examples of Lie groups H are given, together with their actions on R d and the Log operators.
The required tools for building B-spline based G-CNNs for
Lie groups of the form G = R d (cid:111)
H are then automatically derived from these core deﬁnitions.
E.g., the action (cid:12) of H on a space X deﬁnes a left-regular representation on functions on X via ( L H →
L 2 ( X ) g f )( x ) =
f ( g − 1 (cid:12) x ) .
When X = G is the group itself, the action equals the group product.
The group structure of semidirect product groups G = R d (cid:111)
H is automatically derived from the action of H on R d , see Eq.
(1) and is in turn used to deﬁne the representations (see Eq.
Some examples are given below.
B. T RANSLATION GROUP G = ( R d , +)
The group of translations is given by the space of translation vectors R d with the group product and inverse given by
[Equation]
with g = ( x ) , g (cid:48) =
( x (cid:48) )
∈ G with x , x (cid:48) ∈ R d .
The identity element is e = ( 0 ) .
The left-regular representation on d -dimensional functions f ∈ L 2 ( R d ) produces translations of f via ( L G → L 2 ( R d )
[Equation]
Now, since the space of translations can be identiﬁed with R d , the lifting (Eq.
and group correlations (Eq.
(7)) coincide with the standard deﬁnition of cross-correlation.
I.e.,
[Equation]
The logarithmic map is simply given by
Log g
= x , so the convolution kernels can be deﬁned by regular splines on R d , cf.
Eq.
B. T HE 2D ROTATION GROUP H = SO (2)
The special orthogonal group SO (2) consists of all orthogonal 2 × 2 matrix with determinant 1, i.e., rotation matrices of the form
[Equation]
, and the group product and inverse is given by the matrix product and matrix inverse:
[Equation]
with h
= ( R θ ) , h (cid:48)
=
( R θ (cid:48) )
∈ SO (2) with θ, θ (cid:48) ∈ S 1 .
The identity element is e =
( R 0 )
=
( I ) .
The action of H on R 2 is given by matrix vector multiplication:
[Equation]
with x ∈ R 2 .
Combining the group structure of 2D translations with rotations in SO (2) as a semi-direct product group gives us the roto-translation group SE (2)
=
R 2 (cid:111) SO (2) , also known as the special Euclidean motion group.
The group structure of SE (2) is automatically derived from that of SO (2) , see
Sec. 3.1 for details.
The left-regular representation of SO (2) are given by
[Equation]
Note that the latter two representations in terms of the rotation parameters θ, θ (cid:48) ∈ S 1 represents the periodic shift θ (cid:48) − θ mod 2 π along the rotation axis.
See Fig.
6 for an illustration for the transformation of SE (2) convolution kernels via the representation L SO (2)
→ L 2 ( SE (2)) h .
The determinant of the Jacobian of the action of H on R d , see corollary 1, is | det h | = 1 .
Using the above group structure we can write out the explicit forms for the lifting (Eq.
and group correlations (Eq.
as follows:
[Equation] [Equation]
[Equation] [Table]
[Equation]
Which in terms of the Lie algebra basis { A 1 } with A 1 = (cid:18) 0 −  (cid:19) gives a vector with coefﬁcient a 1 = θ mod 2 π .
The B-spline basis, centered around each h i
=
( R θ i ) ∈
H with scale s h ∈ R , as depicted in Fig.
3, is thus computed via
[Equation]
B. S CALING GROUP H = ( R + , × )
We call the positive real line R + , together with multiplication, the scaling group.
The group product and inverse are given by
[Equation]
with h = ( s ) , h (cid:48) =
( s (cid:48) )
∈ H with s, s (cid:
) ∈ R + .
The identity element is e = (1) .
The action of H on R d is given by scalar multiplication
[Equation]
with x ∈ R d .
By combining 2D translations with scaling as a semi-direct product group we obtain the scale-translation group, which we denote with R 2 (cid:111) R + .
The left-regular representation of the scaling group are given by
[Equation]
The scaling of a R 2 (cid:111) R + group convolution kernel is thus achieved by a planar scaling and a logarithmic shift along the scale axis.
This is illustrated in Fig.
The determinant of the Jacobian of this action is | det h | =
s d .
Using the above group structure we can write out the explicit forms for the lifting (Eq.
and group correlations (Eq.
as follows:
[Equation]
The logarithmic map on H is provided by the natural logarithm as follows
[Equation]
The B-spline basis, centered around each h i
= ( s i ) ∈ H with scale s i ∈ R , as depicted in Fig.
3, is thus computed via
[Equation]
B. T HE 3D ROTATION GROUP H = SO (3)
The 3D rotation group is given by space of 3 × 3 orthogonal matrices with determinant 1, with the group product and inverse given by matrix product and matrix inverse:
[Equation]
The action of SO (3) on R 3 is given by matrix-vector multiplication
[Equation]
with x ∈ R 3 .
Combining the group structure of 3D translations with rotations in SO (3) as a semidirect product group gives us the roto-translation group SE (3) =
R 3 (cid:111) SO (3) , also known as the 3D special Euclidean motion group.
The left-regular representation are then
[Equation]
The determinant of the Jacobian of the action of SO (3) on R 3 is | det h | = 1 .
Using the above group structure we can write out the explicit forms for the lifting (Eq.
and group correlations (Eq.
as follows:
[Equation]
d R (cid:48) , with d R (cid:48) denoting the Haar measure on SO (3) , which depends on the parameterization, see details below.
The logarithmic map from the group SO (3) to the Lie algebra so (3) is given by the matrix logarithm and the resulting matrix can be expanded in a basis { A 1 , A 2 , A 3 } for the Lie algebra
Log R = 3 (cid:88) i =
a i A i , with
[Equation] [Equation]
which at the origin represent an inﬁnitisimal rotation around the x , y , and z axis respectively.
A cardinal B-spline centered at some R i ∈
SO
(3) with scale s h can then be computed in terms of these coefﬁcients via B R ,n (cid:16) Log
[Equation]
In practice it is often convenient to rely on a parameterization of the group and deﬁne the group structure in terms of these parameters.
A common choice is to do this via ZYZ Euler angles via
[Equation]
with R e ,θ a rotation of θ around a reference axis e , and α ∈ [0 , 2 π ] , β ∈ [0 , π ] , γ ∈ [0 , 2 π ] .
A Haar measure in terms of this parameterization is then given by d µ ( R ) =
sin β
d α d β d γ .
We will use this parameterization in construction of the quotient group SO (3) /SO
(2) next.
B.
[Equation]
Here we deﬁne the 2-sphere as a group quotient of SO (3) and remark that the same equations as in the SO (3) case (App. B.4) are used for the lifting and group correlations.
This section describes how to construct convolution kernels on the sphere using the logarithmic map of SO (3) , which can then be used to build G-CNNs on R d (cid:111) S 2 .
The 2-sphere is deﬁned as S 2 = { x ∈ R 3 | (cid:107) x (cid:107) = 1 } .
Any point on the sphere can be obtained by rotating a reference vector z
= (0 , 0 , 1) T with elements of SO (3) , i.e., ∀ n ∈ S 2 , ∃ R ∈ SO (3) : n = R .
z .
In other words, the group SO (3) acts transitively on S 2 .
In ZYZ Euler angle parameterization of
SO (3) all angles α leave the reference vector z in place, meaning that for each n ∈ S 2 we have several R ∈ SO (3) that map z to the same n .
As such, we can treat S 2 as the quotient group
SO (3) /SO
(2) , where SO (2) refers to the sub-group of rotations around the z -axis.
In order to deﬁne B-splines on the 2-sphere we need a logarithmic map from a point in S 2 to the (Euclidean) tangent vector space T e ( S 2 ) at the origin.
We will construct this logarithmic map using the Log deﬁne for SO (3) .
Let us parameterize the sphere with
[Equation]
Any rotation R α,β,γ with arbitrary α maps to the same n ( β, γ ) ∈ S 2 .
As such, there are also many vectors A
= Log R α,β,γ ∈ T e ( SO (3)) that map to a suitable rotation matrix via the exponential map
R = exp A .
We aim to ﬁnd the vector in T e ( SO (3)) for which c 3 = 0 , which via the exponential map generate torsion free exponential curves.
The Log of any R α,β,γ with α = − γ results in such a vector (Portegies et al., 2015).
As such we deﬁne
[Equation]
which maps any point in S 2 to a 2-dimensional vector space T e ( S 2 ) ⊂
T e ( SO (3)) .
A B-spline on
S 2 can then be deﬁned via
[Equation]
in which individual splines basis functions are centered around points n ( β i , γ i ) .
We remark that the group product R − 1 α i ,β i ,γ i .
R 0 ,β,γ generates different rotations when varying α i , that however still map to the same n .
The vectors obtained by taking Log S 2 of the rotation matrices rotate with the choice for α i .
Since the B-splines are approximately isotropic we neglect this effect and simply set α i
= 0 in Eq.
Finally, we remark that the superposition of shifted splines (as in
Eq.
(16)) is not isotropic by construction, which is desirable when using the spline as a convolution kernel to lift functions to SO (3) .
When constraining G-CNNs to generate feature maps on S 2 , the kernels are constrained to be isotropic.
Alternatively on could stay on S 2 entirely and resort to gauge-equivariant networks (Cohen et al., 2019), for which the proposed splines are highly suited to move from the discrete setting (as in (Cohen et al., 2019)) to the continuous setting, see also
App.
C.2.
For examples of splines on S 2 see Figs.
3 and 4.
C R ELATED W ORK C. D EEP SCALE - SPACS C.1. S CALE SPACE LIFTING AND CORRELATIONS
In (Worrall & Welling, 2019) images f ∈ L 2 ( R d ) are lifted to a space of positions and scale parameters by constructing a scale space via
[Equation]
with G s ( x ) =
(4 πs ) − d/ 2 e −(cid:107) x (cid:107) 2 4 s .
The kernels and images are sampled on a discrete grid.
Let Ω ⊂ Z d be the support of the kernel.
Then the discrete scale space correlation is given by (Worrall & Welling, 2019, Eq.
[Equation]
(cid:63)
[Equation]
[Equation]
(cid:88)
[Equation]
with H d the discretized set of scales, e.g., H d = (cid:8) 2 i − 1 (cid:9) N h
i =1 , where we remark that here we use the convention of scaling of a function by s ≥ 1 instead of using the dilation parameter a = 1 s in (Worrall & Welling, 2019).
Next we remark that the scale space correlation without any scale interaction ( H d = { 1 } ) is deﬁned by a 2D correlation kernel via
[Equation]
which can be regarded as a discrete atrous/dilated correlation on each of the scale slices of f ↑ ( x , s ) with kernels dilated by a factor s .
C.1. R ELATION TO LIFTING CORRELATIONS (E Q . (6)) WITH B- SPLINES
Let our lifting correlation kernel k be given in a B-spline basis via Eq.
(11) and let c : Ω ⊂ Z d
→ R be the map that assigns the weights to each B-spline center x
i ∈ Ω with Ω the set of spline centers (i.e. c ( x i ) =
c i ).
Let the Gaussian kernel G s ( x ) be approximated by a scaled B-spline (up to a factor) and deﬁne B R d ,n s :
= 1 s d B R d ,n ( 1 s x ) .
With such an approximation (see also (Bouma et al., 2007))
our lifting correlation via Eq.
(6) coincides with the lifting of (Worrall & Welling, 2019) followed by their non-scale interacting scale-space correlation, i.e.,
[Equation]
with c : Ω → R the spline coefﬁcients.
We show this by rewriting
[Equation]
i ) .
C. G AUGE E QUIVARIANT N ETWORKS C.2. G AUGE EQUIVARIANT CORRELATION
The following highlights commonalities between this paper and the work by Cohen et al.
(2019) with respect to use of left-invariant vector ﬁelds in equivariant neural networks.
Consider some Lie group G with Lie algebra g
= T e ( G ) , the exponential map Exp : g → G , and logarithmic map
Log : G → g .
Consider the group correlation between a kernel and function K, F : G → R , given in Eq.
(7), which for B-spline kernels K with ﬁnite support Ω :=
supp( K ) ⊂ G reads as
[Equation]
with µ G ( h ) the Haar measure on G , and where write K for the convolution kernel on G , and ˜ K for the corresponding kernel on g :
[Equation]
Let (cid:42) Ω :=
supp( (cid:42) K ) ⊂ g be the support of (cid:42) K .
Finally let (cid:42) Ω be localized such that Exp is a diffeomorphism (i.e., Exp( (cid:42) Ω)
=
Ω and Log(Ω) = (cid:42) Ω ).
Now consider the deﬁnition of gauge equivariant correlation on manifolds as given by Eq.
(3) of
Cohen et al.
(2019) for the case of scalar functions (in which case the trivial representation ρ ( g ) =is to be used).
In this case integration takes place over the Lie algebra, and gauge equivariant correlation is deﬁned by
[Equation]
[Equation]
with d x the Lebesgue measure on R d , and where Exp g denotes the exponential map from T g ( G ) →
G .
In our Lie group setting all tangent spaces can be identiﬁed with the tangent space at the origin (via the push-forward of left-multiplication) and we are able to write Exp g :=
g · Exp x .
In the setting of gauge equivariant CNNs as in (Cohen et al., 2019) the exponential maps are generally dependent on g , using a separate reference/gauge frame (basis for the tangent space) at each g .
C.2. R ELATION TO G- CORRELATIONS (E Q . (7)) WITH B- SPLINES
For Lie groups the following identity holds between group correlations with localized B-splines on the one hand, in which integration takes place over the group G and elements are mapped to the algebra via Log , and gauge equivariant correlation on the other hand, in which integration takes place on the tangent spaces and vectors in these tangent spaces are mapped to the manifolds via
Exp .
In other words, given the deﬁnition of G cross-correlation in (7), denoted with (cid:63) , and gauge correlation in (19) or (Cohen et al., 2019, Eq.
(1)), denoted with (cid:42) (cid:63) , the two operators relate via
[Equation]
[Equation]
We show this by deriving
[Equation]
In the above d˜ g is a Haar measure on G .
At 1 = the substitution ˜ g
→ g · ˜ g is made and left-invariance of the Haar measure is used ( d( g · ˜ g )
= d˜ g ).
At 2 = we switch from integration over the region Ω in the Lie group to integration over region (cid:42) Ω = Log(Ω) in the Lie algebra.
D G-CNN A RCHITECTURES
This section describes the G-CNN architectures used in the experiments of Sec.
4 using the layers as deﬁned in Sec.
3.2 and illustrated in Fig.
Two slightly different architectures are in the two different tasks (metastasis classiﬁation and landmark detection), but both are regular sequential GCNNs that start with a lifting layer (6), followed by a several group correlation layers (7), possibly alternated with spatial max-pooling, followed by a projection over H via (8), and end with a 1 ×convolution or fully connected layers.
The architectures are summarized in Table.
1 and 2.
Note that the output of the PCam architecture is two probabilities (1 for each class), and the output of the
CelebA is ﬁve heatmaps (1 for each landmark).
D. PC AM
The architecture for metastasis classiﬁcation in the PCam dataset is given in Tab. 1.
The input ( 64 × 64 ) is ﬁrst cropped to 88 × 88 and is then used as input for the ﬁrst layer (the lifting layer).
None of the layers use spatial padding such that the image is eventually cropped to size 1 × 1 .
Each layer is followed by batch normalization 1 and a ReLU activation function, except for the last layer (layer 7) which is followed by adding a bias vector of length 2 and a softmax.
Note that the ﬁrst ﬁve layers, including max pooling over rotations, encode the image into a 64dimensional rotation invariant feature vector.
The ﬁnal two layers (6 and 7) can be regarded as a classical neural network classiﬁer.
To reduce a possible orientation bias we aim to approximate the support of the kernels with a disk, rather than a rectangle.
We do this by only considering splines with basis function centers { x i ∈
Z d | (cid:107) x
i (cid:107) ≤ r , with radius r .
For 5 × 5 kernels we set r = √ 5 by which we discard the basis functions at the corners of the 5 × 5 grid.
The grid on H is uniformly sampled with N h samples, giving the discretized grid H d = { ( i − 1) ∗ 2 πN h } N h
i
=1 .
The global kernels their centers also equidistant and globally cover S 1 ,
i
[Table]
e., h i ∈ { ( i − 1) ∗ 2 πN k } N k i =1 , with the scales of the dense and atrous kernels respectively given by s h = 2 πN k and s h = 2 πN h .
The localized kernels have their centers on the grid with h i ∈ { i 2 πN h } (cid:98) N k / 2 (cid:99) i = −(cid:98)
N k / 2 (cid:99) and have scale s h = 2 πN h .
Finally
[Table]
we follow the same data-augmentations at train time as proposed in (Liu et al., 2015) [Table]
These include geometric augmentations such as 90 ◦ rotations and horizontal ﬂips, as well as color augmentations such as brightness, saturation, hue and contrast variations
[Table] [Table]
D. C ELEB A
The architecture for landmark detecion in the CelebA dataset is biven in Tab. 2.
The input is formatted according to the details in Sec. 4.
In each layer zero padding is used in order to map the 128 ×input images to a 128 × 128 output heatmaps.
Each layer is followed by batch normalization and a ReLU activation function, except for the last layer (layer 10) which is followed by adding a bias vector and a logistic sigmoid activation function
[Table]
Note that the result of the ﬁrst 6 layers, including average pooling over scale, assign locally scaleinvariant feature vectors to each pixel.
The ﬁnal layers convert these feature maps into heatmaps via regular 2D convolutions.
Landmarks are localized via the argmax on each heatmap.
The results in Fig.
5 show the success rate for localizing a landmark correctly.
The success rate is computed as the average fraction of successful detections for all ﬁve landmarks in all images.
A detection is considered successful if the distance to the actual landmark is less then 10 pixels.
The H axis is uniformly sampled (w.r.t.
to the metric on H ) on a ﬁxed scale range, generating the discrete sets H d = { e ( i − 1)
s h } N h
i =1 with s h
= 12 ln 2 .
The global kernels have their centers on this grid, i.e., h i ∈
H d with the scale parameter the same as that of the grid.
The local kernels also have their centers equidistant (with scale s h ) to eachother, but are localized and given by h i ∈ { e is
[Equation] [Table]