<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Towards Robust Perception using Topological Invariants</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Romie Banerjee</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Feng Liu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pei Ke</string-name>
          <email>peikeg@huawei.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Huawei Munich Research Center</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Persistent homology is a tool from topological data analysis that can be used to de ne functions that extract topological features from images. These derivatives of persistent homology are invariant under continuous symmetries in the image space (for example translation or rotation). We provide theoretical argument for using such functions in conjunction with convolutional lters to improve perception algorithms. We discuss using these functions as a method for adding topological inductive priors on the convolutional network. We propose a coupled UNet architecture for learning sematic segmentation in the presence of topological priors involving restrictions on the persistent betti values of the segments. We run experiments on perception data for autonomous driving and are able to report qualitative improvements.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Autonomous driving presents a variety of perception
problems. Traditionally deep learning methods
involving convolutional neural networks have been employed
with great success to address these problems. In spite of
its tremendous success deep learning methods are known
to be extremely brittle. The source of the brittleness is
the dependence of the resulting algorithm on the
training data. As a result the trained models are sensitive to
distributional shifts in the test data. We apply methods
from topology to address this problem in the case of
semantic segmentation. The key insight is to use
topological loss functions during training. Loss functions derived
from persistent homology can be used to put
topological constraints on the output of the network.
Classical machine learning leverages local geometry, as can be
seen from the Euclidean loss functions. Topological Data
Analysis (TDA) produces invariants of the global
geometry of the input. The constraints introduced through
topological loss can be utilized as topological prior
assumptions on the model or to reduce distance in
topological feature space to the training images. Persistent
homology has two important properties of invariance
under continuous symmetries and Lipschitz stability. The
topological features we consider are therefore very well
suited to the robust vision problem.
1.1</p>
    </sec>
    <sec id="sec-2">
      <title>Main contributions</title>
      <p>
        In this paper we address the lack of robustness of current
convolutional neural networks when applied to test data
obtained from a distribution di erent from the training
data distribution. As a concrete example we consider
the task of semantic segmentation of street scenes in
adverse weather conditions with a neural network trained
on images in good weather. We start with a baseline
convolutional network, the UNet
        <xref ref-type="bibr" rid="ref11">( [Ronneberger et al.,
2015])</xref>
        , and propose a coupled UNet architecture that
allows training with topological priors and losses. We
provide empirical evidence that the topological coupling
improves performance of the baseline UNet on both the
regular driving test data and adverse weather shifted test
data.
1.2
      </p>
    </sec>
    <sec id="sec-3">
      <title>Related Work</title>
      <p>
        Topological signals have been previously used in deep
learning, in particular applied to auto-encoders
        <xref ref-type="bibr" rid="ref10 ref13 ref14 ref8">( [Wang
et al., 2020])</xref>
        and generative adversarial networks
        <xref ref-type="bibr" rid="ref10 ref13 ref14 ref8">( [Moor
et al., 2020])</xref>
        . Topological persistence has also been used
in parallel to deep learning based image classi ers
        <xref ref-type="bibr" rid="ref6">( [Dey
et al., 2017])</xref>
        . In [Hu et al., 2019], topology preserving
loss function has incorporated into deep neural networks
for image segmentation of medical images.
      </p>
      <p>The novelty of our method is twofold. Firstly, we
introduce the coupled architecture which is o ers exibility
in terms of how the new topological features can a ect
the learning process of the convolutional network.
Secondly, our method can make use of the topological losses
to introduce both topological priors and posteriors
during learning. To our knowledge this is the rst time
topological features have been applied to perception
related learning tasks in driving scenarios.</p>
      <p>0Copyright '2021 for this paper by its authors. Use
permitted under Creative Commons License Attribution 4.0
International (CC BY 4.0)</p>
      <p>
        Brief Overview of Topological Data
Analysis
In this section we give a brief review of the fundamental
ideas from Topological data analysis, and in particular
the persistent homology algorithm. For references see
        <xref ref-type="bibr" rid="ref2 ref3 ref4">( [Carlsson, 2009], [Chazal and Michel, 2017], [Carlsson
and Zomordian, 2005])</xref>
        Topological data analysis (TDA)
emerged in an attempt to import invariants de ned in
classical algebraic topology, e.g. homology, to the
discrete world of datasets. Homology is a machine which
when fed a topological space (often modelled as a
simplicial complex) measures various topologically
invariant properties of the space like connectedness or
presence of higher dimensional loops, in terms of the rank
of the algebraic object it generates. The broad
problem TDA attempts to address is this: it it possible to
recover the topology of the underlying space which the
data has been sampled from? This requires generalizing
the homology algorithm from spaces to datasets.
However naively applying homology to a dataset (which is a
nite metric space) is uninteresting, as the dataset
carries no connectivity information. Persistent homology
views the dataset at di erent scales evolving through
time and models it as a nested topological space, on
which ordinary homology is applied. The resulting
object, called a persistence diagram, contains topological
information at various scales, the more salient ones are
the ones which persist more. The bottleneck distance
between persistence diagrams makes possible to do analysis
over the space of such diagrams. Real valued loss
function de ned on the persistence diagrams allows us to run
optimization over the space of the input data.
2.1
      </p>
    </sec>
    <sec id="sec-4">
      <title>Persistent Homology overview</title>
    </sec>
    <sec id="sec-5">
      <title>Persistence diagrams</title>
      <p>Persistent homology (PH) is an algorithm to encode the
evolution of homology groups of nested topological space
across the scales. The nested topological space is
modelled as a ltered simplicial complex. The PH algorithm
extends the algorithm for computing ordinary
simplicial homology of a simplicial complex to that of a
ltered simplicial complex. The homology in dimension k
of a simplicial complex X is an abelian group Hk(X).
The rank of Hk(X) is also known as the k-th Betti
number k and represents the number of k-dimensional
holes in X. The PH in dimension k of a ltered
simplicial complex X = f = X0 X1 ::: Xi g
is a sequential diagram of abelian groups P Hk(X) =
Hk(X0) ! Hk(X1) ! : : : Hk(Xn) ! : : :. The
persistence diagram P Dk is a way to encode the birth and
death of every homology cycle that appears in the
diagram. The longer a homology cycle survives the more
persistent it is. The full information can be represented
as a multi-set of pairs (b; d) where b and b are the birth
and death ltration indices of a homology class. We
denote P Dk(X) = f(bi; di)gi2Ik . We order the indexing of
points by decreasing lifetimes i.e. i &lt; j if di bi dj bj .
Let's denote the space of persistence diagrams by PD.
Let PDk be the subspace of k-dimensional persistence
diagrams. The space PDk has a a metric de ned by the
bottleneck distance. For D1; D2 2 PDk,</p>
      <p>B(D1; D2) = inf max kp
m (p;q)2m
qk1
(1)
where m is the set of all possible pairwise matchings of
the points in D1 and D2</p>
    </sec>
    <sec id="sec-6">
      <title>Functions on the space of persistence diagrams</title>
      <p>
        The space of persistence diagrams is however not
amenable to statistical analysis or even calculus, as they
don't even form a vector space. There has been some
alternative formulations of persistence diagrams, like
persistence landscapes
        <xref ref-type="bibr" rid="ref1">([Bubenik, 2015])</xref>
        , to introduce
additive structures on them. In order to get around this
problem, we make use of a real-valued cost function on
the space of persistence diagrams
        <xref ref-type="bibr" rid="ref10 ref13 ref14 ref8">([Gabrielsson et al.,
2020])</xref>
        E (p; q; i0; dim) : PDdim ! R
      </p>
      <p>E (p; q; i0; dim)(D) =</p>
      <p>X
(bi;di)2D
jdi
bijp
di + bi
2
q
(2)
The parameter p and q de ne a polynomial function on
the points (bi; di) of a diagram D in PDdim. The output
is the sum of lifetimes of all points in the diagram D after
skipping the rst i0 points. The map E (p; q; i0; dim) is
continuous given the topology induced by the bottleneck
distance on PDdim.</p>
      <p>In this paper we also consider the following special
cases of the functional E ,</p>
      <p>S(dim) := E (1; 0; 0; dim)
PS(dim; skip) := E (1; 0; skip; dim)</p>
      <p>
        T (dim; k) = [jdi
bij : 0
i
k]
(3)
(4)
(5)
and,
They stand for the functions SumBarcodeLengths,
PartialSumBarcodeLengths and TopKBarcodeLengths
de ned in
        <xref ref-type="bibr" rid="ref7">([Gabrielsson and Nelson, 2019])</xref>
        .
      </p>
      <p>The function S(dim) sums up the lifetimes of all
the homology cycles in dimension dim. The function
PS(dim; skip) sums up the lifetimes of all homology
cycles in dimension dim skipping the rst skip ones. The
function T (dim; k) returns a vector of length k whose
components are the lifetimes of the rst k homology
cycles in dimension dim.</p>
    </sec>
    <sec id="sec-7">
      <title>Di erentiation</title>
      <p>
        Given a ltered simplicial complex, the authors of
        <xref ref-type="bibr" rid="ref10 ref13 ref14 ref8">([Gabrielsson et al., 2020])</xref>
        introduce a method for
computing the gradient of a functional of a persistence
diagram E (p; q; i0; dim). This is done by observing that
every birth-death pair can be mapped to the cell that
respectively created and destroyed the homology class,
de ning an inverse map from the persistent diagram to
pair of simplices.
3
3.1
      </p>
      <p>Topological features from images</p>
    </sec>
    <sec id="sec-8">
      <title>Sublevel set ltration</title>
      <p>Given a real valued continuous function on a
topological space f : M ! R, we de ne the sublevel set
ltration on M by increasing the parameter , with
M = f 1( 1; ]. Let us denote the k-th persistent
homology of the level-set ltration associated where (M; f )
by P Dk(f ).</p>
      <p>Consider a simplicial complex K with vertex set V and
a function f : V ! R. The function f can be extended
to all simplices of K by f ([v0; : : : ; vk]) = maxff (vi) :
i = 1; : : : ; kg for any simplex = [v1; : : : ; vk] 2 K and
the family of sub-complexes Kr = f 2 K : f ( )
de nes a ltration called the sublevel ltration of f .
rg
3.2</p>
    </sec>
    <sec id="sec-9">
      <title>From Images to persistence diagrams</title>
      <p>An image can be seen as a real valued function f : I !
[ 1; 1] on the space I ' [0; 1]2. The graph of this
function is a surface embedded in I [ 1; 1]. The level sets of
this graph at various heights Fr = f 1( 1; r] produces a
ltration Fr on I. The persistent homology of this
ltration is a way of summarizing of the evolving topologies of
the level sets. We need to formulate this in the discrete
language of tensors and simplicial complexes.</p>
      <p>A gray-scale image can be represented as 2-d tensor.
For an image X of dimension n m the tensor is a
function X : [1::n] [1::m] ! R Let V = [1::n] [1::m]
be the vertex set of a 2-dimensional simplicial complex
homeomorphic to I. Call this complex V and the lifted
function X~ : V ! R. The sublevel ltration of X is the
ltered simplicial complex Xr = f 2 V : X( ) rg.
Let I denote the space image tensors. In our case I is a
subspace of Rn m.</p>
      <p>I !
ltered simplicial complexes</p>
      <sec id="sec-9-1">
        <title>X 7! fXrgr2I</title>
        <p>(6)</p>
        <p>The dim-dimensional persistent homology applied to
the ltered simplicial complex fXrgr2R produces a
persistent diagram P Ddim(X) 2 PDdim.</p>
        <p>I ! PDdim</p>
        <p>X 7! P Ddim(fXig)</p>
      </sec>
    </sec>
    <sec id="sec-10">
      <title>3.3 Topological feature maps</title>
      <p>Given any functional tensor valued functional F on PD,
we can compose to form topological feature maps as
follows.</p>
      <p>Fe : I ! tensors</p>
      <sec id="sec-10-1">
        <title>X 7! F (P Ddim(fXigi2I ))</title>
        <p>The result is a topological feature map called Fe. In this
paper our working examples of topological feature maps
are Se(dim), PgS(dim; skip) and Te (dim; k). For example
the map Ee(1; 0; 1; 0) is the sum of lifetimes of all
homology 0-cycles skipping the rst one.</p>
      </sec>
    </sec>
    <sec id="sec-11">
      <title>3.4 Invariance and stability properties of topological features</title>
    </sec>
    <sec id="sec-12">
      <title>Invariance</title>
      <p>Simplicial homology is a homotopy invariant. Given a
homotopy equivalence f : X ! Y of simplicial
complexes, the induces map of homology f : Hn(X) !
Hn(Y ) is an isomorphism. The notion of homotopy
equivalence of ltered simplicial complexes is given by
a commutative diagram of simplicial homotopy
equivalences.</p>
      <p>X0
' f0
Y0
/ X1
' f1
/ Y1
/ X2
' f2
/ Y2
/
/</p>
      <p>Let us de ne two images to be topologically
equivalent if there is a homotopy equivalence between the
corresponding sublevel set ltrations. This is the case
for example if X(a; b) = Y ( (a; b)) for some Euclidean
transformation on I2. This includes translational and
rotational symmetries of the image. In general a
topological symmetry between images is not necessarily of
this form however.</p>
    </sec>
    <sec id="sec-13">
      <title>Stability</title>
      <p>Persistent homology satis es a Lipschitz stability
property in the following sense. Let f; g : X ! R be two
real-valued functions de ned on a topological space M
that are q-tame. Then for any dimension k,</p>
      <p>B(P Dk(f ); P Dk(g)) kf gk1 = sup jf (x) g(x)j
x2M
(10)
Filtration of nite simplicial complexes are always tame.
As a consequence, given any two images tensors X; Y :
I ! [ 1; 1], the associated persistence diagrams in any
dimension k satis es the Lipschitz stability property
(11)</p>
      <p>B(P Dk(X); P Dk(Y )) kX Y k1
where jjX Y jj1 can be interpreted as the L1 distance
between the unrolled tensors obtained from the tensors
X and Y .</p>
      <p>This Lipschitz stability property means persistent
homology is robust to perturbations in the image space.
(7)
(8)
(9)</p>
    </sec>
    <sec id="sec-14">
      <title>3.5 Back-propagation through topological feature maps</title>
      <p>The space of persistence diagrams forms a continuous
space, unlike the classical betti numbers. The map
P Dk : I ! PD is a continuous map. Therefore
continuous morphisms in the image space, i.e. continuously
transforming one image into another image will result in
a continuous morphism of one persistence diagram into
another. Composition with an continuous function into
some additive and continuous space F : PD ! A could
result in a di erentiable topology feature map. The
gradient of this map could used to continuously transform
an image to optimise the topological feature map.</p>
      <p>
        The maps Fe are di erentiable and the derivative has
be computed by
        <xref ref-type="bibr" rid="ref10 ref13 ref14 ref8">([Gabrielsson et al., 2020])</xref>
        using an
inverse map from points in the persistence diagram to pairs
of simplices in the ltered simplicial complex responsible
for the birth and death of the homology cycle. This also
depends on a total ordering of all the simplices, and is
not always possible due to simultaneous appearance of
simplices. There are approaches to replace the total
order with a strict order. Hence the gradient @@Fe is depends
on a strict ordering of the 's.
      </p>
      <p>With this di erentiable mechanism in place we can
optimize in the the space of images I to maximize of
minimize any desired topological feature map. In the
examples in Figure 3 the input image X has been
continuously morphed to nd the closest image X which
minimizes Ee(1; 0; 10; 0) and Ee(1; 0; 10; 1) (in top gure) and
maximizes P(Te (dim = (0; 1); k = 20)) and P(Te (dim =
(0; 1); k = 20)) (in bottom gure).</p>
      <p>In notation,</p>
      <p>X = argminX2I Ee(1; 0; skip; dim)(X)</p>
      <p>X = argmaxX2I Te (dim; k)(X)
1
where dim = f0; 1g, skip = 10 and k = 20.</p>
      <p>The e ect of the rst operation is a topological
smoothing by moving the points in persistence diagram P D0,
except for the rst 10, closer to the diagonal. This results
in killing the homology cycles that are not too signi cant
in terms of lifetimes. The e ect of the second operation
is a topological sharpening by pushing the top k points
in the persistence diagrams further away from the
diagonal. This results in increasing the lifetimes of the the
top k homology cycles.</p>
      <p>In the following section we apply this to a neural
network optimizer. Given an neural network N applied to
an image tensor, the aim is to optimize the pair N to
maximize or minimize the topological feature maps. For
example,
= argmin EX Ee(p; q; i0; dim)(N (X))
(14)
4</p>
      <p>Combining topology feature maps
with Convolutional networks
The optimization task in Figure 3 can be alternative
expressed as a optimizing a neural network. Consider
(12)
(13)
The topological feature map can be augmented serially
at the end of the decoder network. The training process
aims to solve the following optimization problem.
;
= argmin ; EX Ee(1; 0; skip; dim)(D
E (X))
(15)
;
= argmax ; EX Te (dim; k)(D
E (X))
(16)
4.1</p>
    </sec>
    <sec id="sec-15">
      <title>Coupled UNet architecture</title>
      <p>In this section we de ne the coupled UNet architecture.
We apply this to semantic segmentation. Semantic
segments have very distinct topological properties. We wish
to combine the UNet in the previous section trained to
optimize certain topological features characteristic of
semantic segments with a standard UNet used for semantic
segments. The two UNets are combined in parallel with
shared weights in the deeper dimensions.</p>
      <p>Let us continue with the same notation for a UNet
represented by fully-convolutional ReLU encoder-decoder
pair (E ; D ). Let U1 = (E 1 ; D 1 ) and U2 =
(E 2 ; D 2 ) be two structurally identical UNets. The
weights are shared in the middle. See Figure 4.
k1 =
k1 =
k2 (1
k2 (1
k
k</p>
      <p>K); K &lt; n
K); K &lt; n</p>
      <sec id="sec-15-1">
        <title>The training goal:</title>
        <p>1; 1; 2; 2 = argmin 1; 1; 2; 2 (L1 + L2 + L3 + L4)
(19)
where,</p>
        <p>L1 = EX CrossEntropy(D 1
E 1 (X); X)
(20)
L3 = EX Ee(1; 0; skip; dim)(D 2
E 2 (X))
L4 =</p>
        <p>EX Te (dim; k)(D 2</p>
        <p>E 2 (X))
2</p>
        <p>
          The variables K (number of layers of the coupled
UNet with shared weights), skip, t and dim are
hyperparameters.
an UNet architecture
          <xref ref-type="bibr" rid="ref11">([Ronneberger et al., 2015])</xref>
          with
fully convolutional ReLU encoder E and decoder D .
Further suppose the encoder and decoder has layers
L2 = EX (Te (dim; k)(D 1
E 1 (X))
        </p>
        <p>Te (dim; k)(X))
(17)
(18)</p>
        <p>2
(21)
(22)
(23)</p>
        <p>Our baseline is the UNet model de ned in [Ronneberger
et al., 2015]. Our model has the same architectural
pattern used in this paper, with changes made to the
input/output image dimensions and number of output
channels (depending of number of segmentation classes).
We shall denote this model as UNET</p>
        <p>The coupled UNet consists of two copies of the UNET
with shared weights in the middle layers. The second
copy of the UNET has a single output channel. The
number of layers in the idle with shared weights is a
hyperparameter. De ne CUNET to the coupled UNet
where all but the nal layers have shared weights. De ne
CUNET-wc (weakly coupled) to be the coupled UNet in
which 7 layers (about 70%) in the middle of the UNETs
have shared weights.</p>
        <p>
          The network architectures are implemented in
PyTorch. The persistent homology functional di erentiable
computational block is implemented using the Topology
Layer PyTorch library
          <xref ref-type="bibr" rid="ref7">([Gabrielsson and Nelson, 2019])</xref>
          .
We trained our network on Nvidia Tesla P100 GPU,
operating system Ubuntu 18.04.02 LTS.
5.2
        </p>
      </sec>
    </sec>
    <sec id="sec-16">
      <title>Datasets and Evaluation metrics</title>
      <p>
        The BDD100k (Berkeley Deep Drive) dataset
        <xref ref-type="bibr" rid="ref10 ref13 ref14 ref8">( [Yu et
al., 2020])</xref>
        consists of video and image data of urban
street scenes from diverse locations in the United States.
The database covers di erent weather conditions,
including sunny, overcast, and rainy, as well as di erent times
of the day. For training our models we using the training
dataset of 7000 RGB images and test our results on the
validation set of 1000 images. The resolution chosen for
training is 256*256.
      </p>
      <p>
        The Cityscapes dataset
        <xref ref-type="bibr" rid="ref5">( [Cordts et al., 2016])</xref>
        consists of images of urban street scenes from 50
different cities in Germany, captured in daytime and
good/medium weather conditions. The annotations
consist of dense semantic segmentation features with 30 class
labels. We have trained our models on the training
set consisting of 2975 images from all cities combined.
The tests are carried out on the validation set
consisting of 500 images. The resolution chosen for training is
256*256.
      </p>
      <p>
        The ACDC (Adverse Conditions Dataset with
Correspondences) dataset
        <xref ref-type="bibr" rid="ref12">( [Sakaridis et al., 2021])</xref>
        consists
of urban street scenes, highways and rural areas from
Switzerland. The main focus is on adversarial visual
conditions. The dataset consists of image-level
correspondences between adverse-condition and normal -condition
recordings via matching perspective GPS data. There
are 4006 adverse-condition images with ne pixel-level
annotations split into 100 foggy, 1006 nighttime, 1000
rainy and 1000 snowy images. The classes labels are
identical to those of the Cityscapes dataset. We test
our Cityscapes trained models on the ACDC dataset
to demonstrate the robustness of the Coupled UNet on
adversarial weather images compared with the baseline
models.
      </p>
      <p>We use the metrics Pixel-level Accuracy (Accuracy)
and Intersection-over-Union (IOU) to get quantitative
comparisons of our models. The IOUs are computed by
taking the mean of the IOUs over all classes.
5.3</p>
    </sec>
    <sec id="sec-17">
      <title>Qualitative results</title>
      <p>The gure 5 shows output semantic segmentation
of UNET and CUNET trained on BDD100k training
dataset and evaluated on BDD100k validation dataset.
The gure 6 shows output semantic segmentation of
UNET, CUNET and CUNET-wc trained on Cityscapes
training data and evaluated on Cityscapes validation
data.</p>
      <p>Both examples show marked improvement in
segmentation quality in the CUNets compared to the baseline
UNETs. The precise nature of this improvement is the
preservation of the topological properties of the class
segments. Examples of topological properties of segments
are connected components and number of 1-dimensional
loops. The topological loss during the training process of
the CUNET helps to learn these topological features on
top of the usual convolutional features. It is also worth
noting that segmentation quality in the weakly coupled
CUNET is marginally better than the strongly coupled
CUNET
5.4</p>
    </sec>
    <sec id="sec-18">
      <title>Quantitative results</title>
      <p>In this section we present the quantitative results of our
experiments. The scores are based on pixel-wise
accuracy and Intersection-over-Union. Table 1 show
comparison of scores between UNET and CUNET on the
BDD100K and Cityscapes datasets. Our model
outperforms the baseline in both cases.</p>
      <p>In table 2 we produce results comparing performance
of the CUNET with the UNET on the ACDC dataset.
Here both models were trained on the Cityscapes (clean
weather) training data and evaluated on the ACDC
(adverse weather) validation data. Our model CUNET is
consistently better than the baseline UNET except for
the nighttime scenes. These results demonstrate the
capacity of the topological coupled network to perform
better than the baseline when distribution shift via adverse
weather is introduced during inference. This is due to
the fact the global topological features learned during
training are more robust to distribution shifts than
convolutional features alone.</p>
      <p>In table 3 we produce the results comparing the
performance of the CUNET with a weakly-coupled</p>
      <sec id="sec-18-1">
        <title>ACDC(fog)</title>
      </sec>
      <sec id="sec-18-2">
        <title>ACDC(rain)</title>
      </sec>
      <sec id="sec-18-3">
        <title>ACDC(snow)</title>
      </sec>
      <sec id="sec-18-4">
        <title>ACDC(night) Method UNET CUNET</title>
        <p>UNET
CUNET
UNET
CUNET
UNET
CUNET
UNET
CUNET
CUNET-wc. Both models are trained on the Cityscapes.
The results show improvement in the weakly-coupled
architecture when evaluated on the Cityscapes validation
dataset. The results are however mixed and inconclusive
when adverse weather distribution shift is introduced.
6</p>
        <p>Summary and Conclusions
Persistent homology captures global topological
information. Their de nitions are based on algebraic-topological
invariants called homology adapted to point-cloud data.
RGB image tensors can be represented as scalar
functions on the domain and the natural ltration can be
used to de ne persistent homology. This is captured
by persistent homology functionals, and not detected
by standard convolutional lters. These topological
features are furthermore invariant under continuous
transformations. Lipschitz stability property satis ed by
persistent homology also means it is robust under
perturbations in the image space.</p>
        <p>Semantic segments of images are have very well
dened topological features and serve as a good test case
for experimenting with these new features. Our
experiments show that learning topological features on top of a
convolutional features improves performance of current
semantic segmentation models on urban road scenes. We
also empirically show that the robustness of the
topological features help the new model perform better when
distribution shift is introduced during inference via
adverse weather conditions.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>[Bubenik</source>
          , 2015]
          <string-name>
            <given-names>Peter</given-names>
            <surname>Bubenik</surname>
          </string-name>
          .
          <article-title>Statistical topological data analysis using persistence landscapes</article-title>
          .
          <source>Journal of Machine Learning Research</source>
          ,
          <volume>16</volume>
          (
          <issue>3</issue>
          ):
          <volume>77</volume>
          {
          <fpage>102</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <source>[Carlsson and Zomordian</source>
          , 2005]
          <string-name>
            <given-names>Gunnar</given-names>
            <surname>Carlsson</surname>
          </string-name>
          and
          <string-name>
            <given-names>Afra</given-names>
            <surname>Zomordian</surname>
          </string-name>
          .
          <article-title>Computing persistent homology</article-title>
          .
          <source>Discrete and Computational Topology</source>
          ,
          <volume>33</volume>
          :
          <fpage>249</fpage>
          {
          <fpage>274</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <source>[Carlsson</source>
          , 2009]
          <string-name>
            <given-names>Gunnar</given-names>
            <surname>Carlsson</surname>
          </string-name>
          .
          <article-title>Topology and data</article-title>
          .
          <source>Bulletin of the American Mathematical Society</source>
          ,
          <volume>46</volume>
          :
          <fpage>255</fpage>
          {
          <fpage>308</fpage>
          ,
          <string-name>
            <surname>April</surname>
          </string-name>
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <source>[Chazal and Michel</source>
          , 2017]
          <string-name>
            <given-names>Frederic</given-names>
            <surname>Chazal</surname>
          </string-name>
          and
          <string-name>
            <given-names>Bertrand</given-names>
            <surname>Michel</surname>
          </string-name>
          .
          <article-title>An introduction to topological data analysis: fundamental and practical aspects for data scientists</article-title>
          .
          <source>Journal de la Societe Francaise de Statistique</source>
          <year>2017</year>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [Cordts et al.,
          <year>2016</year>
          ]
          <string-name>
            <given-names>Marius</given-names>
            <surname>Cordts</surname>
          </string-name>
          , Mohamed Omran,
          <string-name>
            <given-names>Sebastian</given-names>
            <surname>Ramos</surname>
          </string-name>
          , Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and
          <string-name>
            <given-names>Bernt</given-names>
            <surname>Schiele</surname>
          </string-name>
          .
          <article-title>The cityscapes dataset for semantic urban scene understanding</article-title>
          .
          <source>In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [Dey et al.,
          <year>2017</year>
          ]
          <string-name>
            <given-names>Tamal</given-names>
            <surname>Krishna</surname>
          </string-name>
          <string-name>
            <surname>Dey</surname>
          </string-name>
          , Sayan Mandal, and
          <string-name>
            <given-names>William</given-names>
            <surname>Varcho</surname>
          </string-name>
          .
          <article-title>Improved Image Classi cation using Topological Persistence</article-title>
          . In Matthias Hullin, Reinhard Klein, Thomas Schultz, and Angela Yao, editors,
          <source>Vision</source>
          , Modeling &amp; Visualization. The Eurographics Association,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <source>[Gabrielsson and Nelson</source>
          , 2019]
          <article-title>Rickard Bruel Gabrielsson</article-title>
          and
          <string-name>
            <surname>Bradley J. Nelson.</surname>
          </string-name>
          <article-title>TopologyLayer: A Topology Layer for Machine Learning :</article-title>
          <source>Persistent Homology + Features for PyTorch</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [Gabrielsson et al.,
          <year>2020</year>
          ] Rickard Bruel Gabrielsson, Bradley J.
          <string-name>
            <surname>Nelson</surname>
            , Anjan Dwaraknath, and
            <given-names>Primoz</given-names>
          </string-name>
          <string-name>
            <surname>Skraba</surname>
          </string-name>
          .
          <article-title>A topology layer for machine learning</article-title>
          .
          <source>In Silvia Chiappa and Roberto Calandra</source>
          , editors,
          <source>Proceedings of the Twenty Third International Conference on Arti cial Intelligence and Statistics</source>
          , volume
          <volume>108</volume>
          <source>of Proceedings of Machine Learning Research</source>
          , pages
          <volume>1553</volume>
          {
          <fpage>1563</fpage>
          . PMLR,
          <volume>26</volume>
          {
          <issue>28</issue>
          <year>Aug 2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [Hu et al.,
          <year>2019</year>
          ]
          <string-name>
            <given-names>Xiaoling</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Fuxin</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Dimitris</given-names>
            <surname>Samaras</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Chao</given-names>
            <surname>Chen</surname>
          </string-name>
          .
          <article-title>Topology-preserving deep image segmentation</article-title>
          . In H. Wallach,
          <string-name>
            <given-names>H.</given-names>
            <surname>Larochelle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Beygelzimer</surname>
          </string-name>
          ,
          <string-name>
            <surname>F.</surname>
          </string-name>
          <article-title>d'Alche-</article-title>
          <string-name>
            <surname>Buc</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Fox</surname>
          </string-name>
          , and R. Garnett, editors,
          <source>Advances in Neural Information Processing Systems</source>
          , volume
          <volume>32</volume>
          . Curran Associates, Inc.,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [Moor et al.,
          <year>2020</year>
          ]
          <string-name>
            <given-names>Michael</given-names>
            <surname>Moor</surname>
          </string-name>
          , Max Horn, Bastian Rieck, and
          <string-name>
            <given-names>Karsten</given-names>
            <surname>Borgwardt</surname>
          </string-name>
          .
          <article-title>Topological autoencoders</article-title>
          .
          <source>In Hal Daume III and Aarti Singh</source>
          , editors,
          <source>Proceedings of the 37th International Conference on Machine Learning</source>
          , volume
          <volume>119</volume>
          <source>of Proceedings of Machine Learning Research</source>
          , pages
          <volume>7045</volume>
          {
          <fpage>7054</fpage>
          . PMLR,
          <volume>13</volume>
          {
          <issue>18</issue>
          <year>Jul 2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [Ronneberger et al.,
          <year>2015</year>
          ]
          <string-name>
            <given-names>Olaf</given-names>
            <surname>Ronneberger</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Philipp</given-names>
            <surname>Fischer</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Brox</surname>
          </string-name>
          .
          <article-title>U-net: Convolutional networks for biomedical image segmentation</article-title>
          .
          <source>In Nassir Navab</source>
          , Joachim Hornegger,
          <string-name>
            <surname>William M. Wells</surname>
          </string-name>
          , and Alejandro F. Frangi, editors,
          <source>Medical Image Computing and Computer-Assisted Intervention { MICCAI</source>
          <year>2015</year>
          , pages
          <fpage>234</fpage>
          {
          <fpage>241</fpage>
          ,
          <string-name>
            <surname>Cham</surname>
          </string-name>
          ,
          <year>2015</year>
          . Springer International Publishing.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [Sakaridis et al.,
          <year>2021</year>
          ]
          <string-name>
            <given-names>Christos</given-names>
            <surname>Sakaridis</surname>
          </string-name>
          , Dengxin Dai,
          <string-name>
            <surname>and Luc Van Gool. ACDC:</surname>
          </string-name>
          <article-title>The adverse conditions dataset with correspondences for semantic driving scene understanding</article-title>
          .
          <source>ArXiv</source>
          e-prints,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <surname>[Wang</surname>
          </string-name>
          et al.,
          <year>2020</year>
          ]
          <string-name>
            <given-names>Fan</given-names>
            <surname>Wang</surname>
          </string-name>
          , Huidong Liu, Dimitris Samaras, and
          <string-name>
            <given-names>Chao</given-names>
            <surname>Chen</surname>
          </string-name>
          .
          <article-title>Topogan: A topologyaware generative adversarial network</article-title>
          .
          <source>In Andrea Vedaldi</source>
          , Horst Bischof, Thomas Brox, and JanMichael Frahm, editors,
          <source>Computer Vision { ECCV</source>
          <year>2020</year>
          , pages
          <fpage>118</fpage>
          {
          <fpage>136</fpage>
          ,
          <string-name>
            <surname>Cham</surname>
          </string-name>
          ,
          <year>2020</year>
          . Springer International Publishing.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <surname>[Yu</surname>
          </string-name>
          et al.,
          <year>2020</year>
          ]
          <string-name>
            <given-names>Fisher</given-names>
            <surname>Yu</surname>
          </string-name>
          , Haofeng Chen, Xin Wang, Wenqi Xian, Yingying Chen, Fangchen Liu, Vashisht Madhavan, and Trevor Darrell.
          <article-title>Bdd100k: A diverse driving dataset for heterogeneous multitask learning</article-title>
          .
          <source>In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</source>
          ,
          <year>June 2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>