【点云处理之论文狂读前沿版5】APP-Net: Auxiliary-point-based Push and Pull Operations for Efficient Point Cloud Cls


Operations for Efficient Point Cloud Classification)

摘要

  • 问题:在之前的工作中,基于点云的3D分类任务都设计从neighbor points中聚合特征,source point都会根据center point被选择成为neighbor points。这样就会不可避免地造成两个问题:
    (1)source point要参加多次运算,消耗大量的内存
    (2)依赖复杂的特征聚合器,降低网络的运行速度
  • 解决方法:APP-Net,一个具有线性复杂度的特征聚合器
  • 技术细节:
    (1)引入一个auxiliary container作为anchor来对source point和center point进行特征交换
    (2)每个source point都将其特征push到一个auxiliary container中,然后center point都会从auxiliary container中pull特征
    (3)使用一个在线法向量计算模块为网络提供二外的集合信息

1.引言

  • 目前ModelNet40的分类精确度已经饱和了,现在需要研究的就是如何在保持较高精确度的同时还要降低计算复杂度和内存消耗。
  • 在欧式距离下相近的点会被自动划分到相同的container中,container的维护开销很小
  • APP的开销与输入点的数量成正比

2.相关工作

Multi-view Based Methods

Point Based Methods

3.方法

3.1Motivation and Discussion

P = { p 1 , p 2 , … , p N } \mathbf{P}=\left\{\mathbf{p}_{1}, \mathbf{p}_{2}, \ldots, \mathbf{p}_{N}\right\} P={p1,p2,,pN}表示 N N N 个source points, Q = { q 1 , q 2 , … , q M } \mathbf{Q}=\left\{\mathbf{q}_{1}, \mathbf{q}_{2}, \ldots, \mathbf{q}_{M}\right\} Q={q1,q2,,qM}表示center points,局部点特征的聚合过程可以表示为:
g i = R ( { G ( r ( q i , p j , [ f i , f j ] ) , f j ) ∣ p j ∈ N ( q i ) } ) \mathbf{g}_{i}=R\left(\left\{G\left(r\left(\mathbf{q}_{i}, \mathbf{p}_{j},\left[\mathbf{f}_{i}, \mathbf{f}_{j}\right]\right), \mathbf{f}_{j}\right) \mid \mathbf{p}_{j} \in N\left(\mathbf{q}_{i}\right)\right\}\right) gi=R({G(r(qi,pj,[fi,fj]),fj)pjN(qi)})
其中 q i \mathbf{q}_{i} qi是center point, g i \mathbf{g}_{i} gi是center point的输出特征, N ( q i ) N\left(\mathbf{q}_{i}\right) N(qi) 表示寻找 q i \mathbf{q}_{i} qi的neighbor points, f ∗ ∈ R C i n \mathbf{f}_{*} \in \mathbb{R}^{C_{i n}} fRCin表示 p ∗ \mathbf{p}_{*} p q ∗ \mathbf{q}_{*} q的输入特征, r ( q i , p j , [ f i , f j ] ) r\left(\mathbf{q}_{i}, \mathbf{p}_{j},\left[\mathbf{f}_{i}, \mathbf{f}_{j}\right]\right) r(qi,pj,[fi,fj])表示测量neighbour point和center point之间的关系,主要是位置关系和特征关系。 G G G 表示特征变换, R R R表示reduction操作(大部分情况下是max pooling)。

我们注意到,之前的方法都是从center point的角度聚合特征,每个center point也不考虑其他center points与自己的neighbor point相互处理了多少次。所以才提出了APP(auxiliary-based push and pull)网络,每个source point只进行一次特征处理,center point仅参与一次特征聚合。

尽管APP减少了网络的开销,但是auxiliary points也不可避免地引入了一些artifacts,因此我们引入了配对操作:
γ ( x , y ) = α ( x , ∗ ) ? β ( ∗ , y ) \gamma(x, y)=\alpha(x, *) ? \beta(*, y) γ(x,y)=α(x,)?β(,y)
其中 ? ? ?表示一种操作。

3.2 Auxiliary-based Push and Pull Operations

Block Partition

A = { a 0 , a 1 , … , a N r a } \mathbf{A}=\left\{\mathbf{a}_{0}, \mathbf{a}_{1}, \ldots, \mathbf{a}_{\frac{N}{r_{a}}}\right\} A={a0,a1,,araN}表示点云 P \mathbf{P} P 在采样率 r a r_{a} ra下地子集。遵循RandLA-Net,本文采用随机采样,目的是为了节省时间。对于每个source point,我们采用 1-NN地方式从auxiliary point set A \mathbf{A} A中寻找auxiliary point, A ( p i ) A\left(\mathbf{p}_{i}\right) A(pi)表示auxiliary point,在欧式空间上离得比较近地两个点很有可能被分配到相的auxiliary point。最终,全部的点云会被划分成几个不重叠的blocks { B ( a 0 ) , B ( a 1 ) , … , B ( a N r a ) } \left\{B\left(\mathbf{a}_{0}\right), B\left(\mathbf{a}_{1}\right), \ldots, B\left(\mathbf{a}_{\frac{N}{r_{a}}}\right)\right\} {B(a0),B(a1),,B(araN)},其中 B ( a i ) B\left(\mathbf{a}_{i}\right) B(ai)表示source point set,1-NN auxiliary point为 a i \mathbf{a}_{i} ai

Feature Aggregation

考虑一个基本公式:
e x − y = e x − ∗ + ∗ − y = e x − ∗ ⋅ e ∗ − y e^{x-y}=e^{x-*+*-y}=e^{x-*} \cdot e^{*-y} exy=ex+y=exey
因此使用指数函数可以构造上面哪个方程组 { α , β , γ } \{\alpha, \beta, \gamma\} {α,β,γ},整体的特征聚合步骤包含两步:Push-stepPull-step

Push-step

在这一步中,source point的信息通过下式传递到auxiliary point中:
g p i → A ( p i ) = f i ⋅ e W × [ ϕ ( p i ) − ϕ ( A ( p i ) ) ] \mathbf{g}_{\mathbf{p}_{i} \rightarrow A\left(\mathbf{p}_{i}\right)}=\mathbf{f}_{i} \cdot e^{W \times\left[\phi\left(\mathbf{p}_{i}\right)-\phi\left(A\left(\mathbf{p}_{i}\right)\right)\right]} gpiA(pi)=fieW×[ϕ(pi)ϕ(A(pi))]
其中 ϕ ( ∗ ) \phi(*) ϕ() 是[FCLayer + BatchNorm + Leaky ReLU]形式的全局共享位置编码方程,他将3通道的向量提升到了 C i n C_{i n} Cin个通道。 W ∈ R C i n × C i n W \in \mathbb{R}^{C_{i n} \times C_{i n}} WRCin×Cin是一个可学习的权重矩阵。 ⋅ \cdot 表示元素间的乘法, × \times ×表示矩阵乘法。该过程根据空间关系将source point push到auxiliary point中去。

值得注意的是,属于相同auxiliary point的source point都会将他们的特征push到该auxiliary point中,因此该auxiliary point的最终特征应为:

g A ( p i ) = 1 ∣ B ( A ( p i ) ) ∣ ∑ p j ∈ B ( A ( p i ) ) f j ⋅ e W × [ ϕ ( p j ) − ϕ ( A ( p i ) ) ] . \mathbf{g}_{A\left(\mathbf{p}_{i}\right)}=\frac{1}{\left|B\left(A\left(\mathbf{p}_{i}\right)\right)\right|} \sum_{{\mathbf{p}_{j} \in \\ B\left(A\left(\mathbf{p}_{i}\right)\right)}} \mathbf{f}_{j} \cdot e^{W \times\left[\phi\left(\mathbf{p}_{j}\right)-\phi\left(A\left(\mathbf{p}_{i}\right)\right)\right]} . gA(pi)=B(A(pi))1pjB(A(pi))fjeW×[ϕ(pj)ϕ(A(pi))].

Pull-step

每一个auxiliary point都通过Push-step操作聚合block信息。在这个步骤中,利用利用逆向操作来为source point 从对应的auxiliary point中pull出特征:
g i = g A ( p i ) → p i , = g A ( p i ) ⋅ e W × [ ϕ ( A ( p i ) ) − ϕ ( p i ) ] , = { 1 ∣ B ( A ( p i ) ) ∣ ∑ p j ∈ B ( A ( p i ) ) f j ⋅ e W × [ ϕ ( p j ) − ϕ ( A ( p i ) ) ] } ⋅ e W × [ ϕ ( A ( p i ) ) − ϕ ( p i ) ] , = 1 ∣ B ( A ( p i ) ) ∣ ∑ p j ∈ B ( A ( p i ) ) f j ⋅ e W × [ ϕ ( p j ) − ϕ ( p i ) ] . \mathbf{g}_{i}=\mathbf{g}_{A\left(\mathbf{p}_{i}\right) \rightarrow \mathbf{p}_{i}}, \\ =\mathbf{g}_{A\left(\mathbf{p}_{i}\right)} \cdot e^{W \times\left[\phi\left(A\left(\mathbf{p}_{i}\right)\right)-\phi\left(\mathbf{p}_{i}\right)\right]}, \\ =\left\{\frac{1}{\left|B\left(A\left(\mathbf{p}_{i}\right)\right)\right|} \sum_{{\mathbf{p}_{j} \in \\ B\left(A\left(\mathbf{p}_{i}\right)\right)}} \mathbf{f}_{j} \cdot e^{W \times\left[\phi\left(\mathbf{p}_{j}\right)-\phi\left(A\left(\mathbf{p}_{i}\right)\right)\right]}\right\} \cdot e^{W \times\left[\phi\left(A\left(\mathbf{p}_{i}\right)\right)-\phi\left(\mathbf{p}_{i}\right)\right]}, \\ =\frac{1}{\left|B\left(A\left(\mathbf{p}_{i}\right)\right)\right|} \sum_{{\mathbf{p}_{j} \in \\ B\left(A\left(\mathbf{p}_{i}\right)\right)}} \mathbf{f}_{j} \cdot e^{W \times\left[\phi\left(\mathbf{p}_{j}\right)-\phi\left(\mathbf{p}_{i}\right)\right]} . gi=gA(pi)pi,=gA(pi)eW×[ϕ(A(pi))ϕ(pi)],=B(A(pi))1pjB(A(pi))fjeW×[ϕ(pj)ϕ(A(pi))]eW×[ϕ(A(pi))ϕ(pi)],=B(A(pi))1pjB(A(pi))fjeW×[ϕ(pj)ϕ(pi)].

从本质上来讲,上式是将第一个式子中的reduction操作替换为Mean pooling得到的。Push-step 和 Pull-step操作共享相同的权重矩阵 W W Wh和编码函数 ϕ ( ∗ ) \phi(*) ϕ(),auxiliary point的影响就会被减少,因此没有必要执行 ϕ ( A ( p i ) ) \phi\left(A\left(\mathbf{p}_{i}\right)\right) ϕ(A(pi)) ,The auxiliary point仅仅影响着 g i \mathbf{g}_{i} gi的感知域。此外,由于 e W × [ ϕ ( A ( p i ) ) − ϕ ( p i ) ] = 1 e W × [ ϕ ( p i ) − ϕ ( A ( p i ) ) ] e^{W \times\left[\phi\left(A\left(\mathbf{p}_{i}\right)\right)-\phi\left(\mathbf{p}_{i}\right)\right]}=\frac{1}{e^{W \times\left[\phi\left(\mathbf{p}_{i}\right)-\phi\left(A\left(\mathbf{p}_{i}\right)\right)\right]}} eW×[ϕ(A(pi))ϕ(pi)]=eW×[ϕ(pi)ϕ(A(pi))]1,因此在等式4中计算到的空间信息可以直接用到等式6中。

那么最后的特征可以被更新为:

g i final  = δ ( [ g i , f i ] ) . \mathbf{g}_{i}^{\text {final }}=\delta\left(\left[\mathbf{g}_{i}, \mathbf{f}_{i}\right]\right) . gifinal =δ([gi,fi]).
其中 δ ( ∗ ) \delta(*) δ()是一个非线性函数,通过 { F C + \{\mathrm{FC}+ {FC+ BatchNorm + + + LeakyReLU } \} }构造而成, g i final  ∈ R C out  \mathbf{g}_{i}^{\text {final }} \in \mathbb{R}^{C_{\text {out }}} gifinal RCout 

Block-based Down Sample

在处理完Push-step and Pull-step操作后,点云仍有 N N N 个点,我们设计了Block-based Down Sample策略进一步减少中间的开销。

  • r d \mathbf{r}_d rd的为概率对点云进行下采样,然后基于1-NN算法将全部点分成不重叠的blocks { D 0 , D 1 , … , D N r d } \left\{\mathbf{D}_{0}, \mathbf{D}_{1}, \ldots, \mathbf{D}_{\frac{N}{\mathbf{r}_{d}}}\right\} {D0,D1,,DrdN}
  • 对于所有属于相同block D i \mathbf{D}_{i} Di的点,通过 Max pooling函数将他们的特征进行聚合:
    g d i = M A X { f j ∣ p j ∈ D i } \mathbf{g}_{\mathbf{d}_{i}}=M A X\left\{\mathbf{f}_{j} \mid \mathbf{p}_{j} \in \mathbf{D}_{i}\right\} gdi=MAX{fjpjDi}

3.3Local Geometry by Online Normal and Curvature Estimation

本文利用最简单的 PCA 方法计算法向量,对于centroid point p \mathbf{p} p,通过下式组成其局部协方差矩阵:
C o v = 1 ∣ N ( p ) ∣ ∑ p i ∈ N ( p ) ( p i − p ) ⋅ ( p i − p ) , C o v ⋅ v j → = λ j ⋅ v j → , j ∈ { 0 , 1 , 2 } Cov=\frac{1}{|N(\mathbf{p})|} \sum_{\mathbf{p}_{i} \in N(\mathbf{p})}\left(\mathbf{p}_{i}-\mathbf{p}\right) \cdot\left(\mathbf{p}_{i}-\mathbf{p}\right), Cov \cdot \overrightarrow{v_{j}}=\lambda_{j} \cdot \overrightarrow{v_{j}}, j \in\{0,1,2\} Cov=N(p)1piN(p)(pip)(pip),Covvj =λjvj ,j{0,1,2}

v ⃗ ∗ \vec{v}_{*} v λ ∗ \lambda_{*} λ分别表示协方差矩阵的特征向量和特征值。最小特征值所对应的特征向量 v ⃗ ∗ \vec{v}_{*} v 是计算得到的法向量。假设 λ 0 \lambda_{0} λ0是最小特征向量,那么局部表面的曲率 σ \sigma σ可以表示为
σ = λ 0 λ 0 + λ 1 + λ 2 \sigma=\frac{\lambda_{0}}{\lambda_{0}+\lambda_{1}+\lambda_{2}} σ=λ0+λ1+λ2λ0

方向一致性检验将会使哪些没有指向预先设定视点
的法向量反转,从而减少歧义性。为了进一步减少噪声的影响,我们利用了一个==暴力 abs==操作保证所计算的法向量都是非负的。最终的向量在物理意义上不再是法向量。

3.4 The Full Structure of APP-Net

输入是点云信息,包括坐标 x y z xyz xyz,法向量,曲率(可选)。Embedding layer将输入的法向量(或是曲率)的维度提升至32。接下来的三层包含了APP operator 和 blocks down sample,用于聚合每个点的邻域特征。在最后的APP layer后,pooling layer输出全局特征,根据全局特征,包含了 MLPs的分类器将会预测每个类别的概率。

4.实验

4.1 Settings

  • one Tesla V100 GPU
  • PyTorch
  • Adam
  • cosine learning rate scheduler
  • Initial learning rate = 2e-3,threshold = 2e-4
  • 300 epochs with training batch size=32 and test batch size=16

4.2 Shape Classification on ModelNet40

4.3 Shape Classification on ScanObjectNN (PB T50 RS)

4.4 Ablation Studies

5.结论

本文的特色就是内存消耗少,处理速度快!

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值