๐Ÿ’ก ํ•œ ์ค„ ์š”์•ฝ#

3D ํฌ์ธํŠธ ํด๋ผ์šฐ๋“œ๋ฅผ ๋ณต์…€(Voxel)์ด๋‚˜ 2D ๋ Œ๋”๋ง ์ด๋ฏธ์ง€๋กœ ์ „ํ™˜ํ•˜๋Š” ์†์‹ค ์ „์ฒ˜๋ฆฌ ์—†์ด, **๊ณต์œ  MLP(Shared MLP)**์™€ **MaxPooling ๋Œ€์นญ ํ•จ์ˆ˜(Symmetric Function)**์˜ ์กฐํ•ฉ์œผ๋กœ ์ˆœ์—ด ๋ถˆ๋ณ€์„ฑ(Permutation Invariance)์„ ๋ณด์žฅํ•˜๋ฉฐ ์›์‹œ 3D ์  ์ง‘ํ•ฉ์„ ์ง์ ‘ ํ•™์Šตํ•˜๋Š” ์ตœ์ดˆ์˜ ๋”ฅ๋Ÿฌ๋‹ ์•„ํ‚คํ…์ฒ˜์ด๋‹ค.


๐Ÿ“Œ ๊ฐœ์š” ๋ฐ ํ•ต์‹ฌ ๊ธฐ์—ฌ (Key Contributions)#

  • ์ €์ž: Charles R. Qi, Hao Su, Kaichun Mo, Leonidas J. Guibas (Stanford University)
  • ๋ฐœํ–‰๋…„๋„: 2017 (CVPR 2017)
  • ์ฃผ์š” ๊ธฐ์—ฌ์ :
    1. ์ˆœ์—ด ๋ถˆ๋ณ€์„ฑ ๋Œ€์นญ ์ง‘๊ณ„ (Symmetric Aggregator): ์ž…๋ ฅ ์  ์ˆœ์„œ $N!$๊ฐ€์ง€ ์กฐํ•ฉ์— ๊ด€๊ณ„์—†์ด ๊ณ ์ • ๊ธธ์ด ํŠน์ง•์„ ์ถ”์ถœํ•˜๋Š” Max-Pooling ๋Œ€์นญ ์—ฐ์‚ฐ ๋„์ž….
    2. T-Net (Spatial Transformation Network): 3D ๊ธฐํ•˜ ๋ณ€ํ™˜ ๋ฐ 64D ํ”ผ์ฒ˜ ๋ณ€ํ™˜ ํ–‰๋ ฌ $A$๋ฅผ ์Šค์Šค๋กœ ์˜ˆ์ธกํ•ด ์ •๊ทœ ์ž์„ธ(Canonical Pose) ์ •๋ ฌ.
    3. ์ง๊ต์„ฑ ์ •๊ทœํ™” ์†์‹ค (Orthogonality Regularization): ํ”ผ์ฒ˜ ๋ณ€ํ™˜ ํ–‰๋ ฌ์˜ ์ •๋ณด ์†์‹ค์„ ๋ง‰๋Š” $\| I - AA^T \|_F^2$ ์ •๊ทœํ™” ์†์‹ค ์ถ”๊ฐ€.
    4. Universal Approximation ์ด๋ก ์  ์ž…์ฆ: ๋ผˆ๋Œ€ ์  ์ง‘ํ•ฉ(Critical Point Set $\mathcal{C}_S$)์„ ํ†ตํ•ด ์–ด๋– ํ•œ ์—ฐ์† ์ง‘ํ•ฉ ํ•จ์ˆ˜๋„ ๊ทผ์‚ฌ ๊ฐ€๋Šฅํ•จ์„ ์ฆ๋ช….

๊ด€๋ จ ์—ฐ๊ตฌ ํ๋ฆ„#

  1. Volumetric 3D CNN (VoxNet): ํฌ์ธํŠธ ํด๋ผ์šฐ๋“œ๋ฅผ $32 \times 32 \times 32$ 3D ๋ณต์…€ ๊ฒฉ์ž๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ๋ฉ”๋ชจ๋ฆฌ ํญ๋ฐœ ๋ฐ ํ•ด์ƒ๋„ ์–‘์žํ™” ์˜ค์ฐจ(Quantization Artifacts) ๋ฐœ์ƒ.
  2. Multi-View CNN (MVCNN): 3D ๋ฉ”์‹œ๋ฅผ ์—ฌ๋Ÿฌ ๊ฐ๋„์˜ 2D ์ด๋ฏธ์ง€๋กœ ๋ Œ๋”๋งํ•œ ํ›„ 2D CNN์„ ํˆฌ์ž…ํ•˜๋ฏ€๋กœ 3D ๊ณต๊ฐ„ ์ƒ ๋ถ„ํ• (Segmentation) ํ™•์žฅ ํ•œ๊ณ„.
  3. PointNet: ์›์‹œ ํฌ์ธํŠธ ์ง‘ํ•ฉ $(N \times 3)$์„ ๊ทธ๋Œ€๋กœ ์ž…๋ ฅ๋ฐ›์•„ $\mathcal{O}(N)$ ์—ฐ์‚ฐ์œผ๋กœ ๋ถ„๋ฅ˜ ๋ฐ ๋ถ„ํ•  ๋™์‹œ ๋‹ฌ์„ฑ.

๐Ÿ“‘ ๋ชฉ์ฐจ#

  • Chapter 1: ๋Œ€์นญ ํ•จ์ˆ˜ (Symmetric Function) & Max-Pooling ์ˆ˜์‹
  • Chapter 2: T-Net (Joint Alignment Network) ์ˆ˜์‹
  • Chapter 3: Feature Transform ์ง๊ต์„ฑ ์ •๊ทœํ™” ์†์‹ค (Orthogonality Regularization)
  • Chapter 4: Local-Global Feature Concatenation ๋ถ„ํ•  ์‹ ๊ฒฝ๋ง
  • Chapter 5: ์ฃผ์š” ์‹คํ—˜ ๋ฐ ๊ฒฐ๊ณผ
  • Chapter 6: ๊ฒฐ๋ก  ๋ฐ ์‹œ์‚ฌ์ 

๐Ÿ› ๏ธ Chapter 1: ๋Œ€์นญ ํ•จ์ˆ˜ (Symmetric Function) & Max-Pooling ์ˆ˜์‹#

1. ์š”์•ฝ#

์ˆœ์„œ ์—†๋Š” ์ง‘ํ•ฉ $S = \{x_1, \ldots, x_n\}$์˜ ์–ด๋–ค ์ˆœ์—ด ์กฐํ•ฉ์—๋„ ๋ถˆ๋ณ€์ธ ํ•จ์ˆ˜ $f(S)$๋ฅผ ๊ณต์œ  MLP $h$์™€ ๋Œ€์นญ ์ง‘๊ณ„ ํ•จ์ˆ˜ $g = \text{MaxPool}$์˜ ํ•ฉ์„ฑ์œผ๋กœ ์œ ๋„ํ•ฉ๋‹ˆ๋‹ค.

2. ์ˆ˜์‹ ๋ฐ ํŒŒ์ด์ฌ ์ฝ”๋“œ ์„ค๋ช…#

$$f(\{x_1, \ldots, x_n\}) \approx g\left( \text{MaxPool}_{i=1 \dots n} \left( h(x_i) \right) \right)$$
  • $x_i \in \mathbb{R}^3$: $i$๋ฒˆ์งธ 3D ์  ์ขŒํ‘œ $(x, y, z)$
  • $h: \mathbb{R}^3 \to \mathbb{R}^K$: ๊ณต์œ  MLP (1D Convolution)
  • $\text{MaxPool}$: $n$๊ฐœ ์ ์— ๋Œ€ํ•ด ๊ฐ ์ฑ„๋„ ์ถ•๋ณ„ ์ตœ๋Œ€๊ฐ’์„ ์„ ํƒํ•˜๋Š” ๋Œ€์นญ ์—ฐ์‚ฐ
import torch
import torch.nn as nn

class PointNetSymmetricAggregator(nn.Module):
    """
    PointNet ํ•ต์‹ฌ: Shared MLP (1D Conv) + Max-Pooling ๋Œ€์นญ ์ง‘๊ณ„๊ธฐ
    """
    def __init__(self, in_dim: int = 3, out_dim: int = 1024):
        super().__init__()
        self.mlp = nn.Sequential(
            nn.Conv1d(in_dim, 64, 1),
            nn.BatchNorm1d(64),
            nn.ReLU(),
            nn.Conv1d(64, 128, 1),
            nn.BatchNorm1d(128),
            nn.ReLU(),
            nn.Conv1d(128, out_dim, 1),
            nn.BatchNorm1d(out_dim)
        )

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        """
        x: (B, C=3, N_pts)
        """
        feats = self.mlp(x) # (B, 1024, N_pts)
        # Max-Pooling over N_pts -> ์ˆœ์—ด ๋ถˆ๋ณ€ ์ „์—ญ ํŠน์ง• ๋ฒกํ„ฐ
        global_feature, _ = torch.max(feats, dim=-1) # (B, 1024)
        return global_feature

# --- ์‚ฌ์šฉ ์˜ˆ์‹œ ---
pts = torch.randn(2, 3, 1024) # Batch=2, 3D ์ขŒํ‘œ, 1024๊ฐœ ์ 
aggregator = PointNetSymmetricAggregator()
print("PointNet ์ „์—ญ ํŠน์ง• ๋ฒกํ„ฐ Shape:", aggregator(pts).shape)

๐Ÿ› ๏ธ Chapter 2: T-Net (Joint Alignment Network) ์ˆ˜์‹#

1. ์š”์•ฝ#

์ž…๋ ฅ ์ขŒํ‘œ๋‚˜ ๊ณ ์ฐจ์› ํŠน์ง• ๊ณต๊ฐ„์—์„œ ๋ฐ์ดํ„ฐ์˜ ํšŒ์ „/์ด๋™ ๋ถˆ๋ณ€์„ฑ์„ ํ™•๋ณดํ•˜๊ธฐ ์œ„ํ•ด $K \times K$ ์ •๊ทœ ์ž์„ธ(Canonical Pose) ์•„ํ•€ ๋ณ€ํ™˜ ํ–‰๋ ฌ $A$๋ฅผ ์˜ˆ์ธกํ•ด ๊ณฑํ•ด์ค๋‹ˆ๋‹ค.

2. ์ˆ˜์‹ ๋ฐ ํŒŒ์ด์ฌ ์ฝ”๋“œ ์„ค๋ช…#

$$A = \text{T-Net}(X) \in \mathbb{R}^{K \times K}, \quad X_{\text{aligned}} = X \cdot A$$
import torch
import torch.nn as nn

class TNet(nn.Module):
    """
    PointNet T-Net: K x K ์ •๊ทœ ์ž์„ธ ๊ณต๊ฐ„ ์ •๋ ฌ ๋ณ€ํ™˜ ํ–‰๋ ฌ ์˜ˆ์ธก๊ธฐ
    """
    def __init__(self, k: int = 3):
        super().__init__()
        self.k = k
        self.mlp = nn.Sequential(
            nn.Conv1d(k, 64, 1), nn.BatchNorm1d(64), nn.ReLU(),
            nn.Conv1d(64, 128, 1), nn.BatchNorm1d(128), nn.ReLU(),
            nn.Conv1d(128, 1024, 1), nn.BatchNorm1d(1024), nn.ReLU()
        )
        self.fc = nn.Sequential(
            nn.Linear(1024, 512), nn.BatchNorm1d(512), nn.ReLU(),
            nn.Linear(512, 256), nn.BatchNorm1d(256), nn.ReLU(),
            nn.Linear(256, k * k)
        )

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        B = x.shape[0]
        feat = self.mlp(x)
        global_feat, _ = torch.max(feat, dim=-1)
        matrix = self.fc(global_feat).view(B, self.k, self.k)
        
        # Identity ํ–‰๋ ฌ ๋”ํ•ด ์ดˆ๊ธฐ ์•ˆ์ •์„ฑ ํ™•๋ณด
        identity = torch.eye(self.k, device=x.device).unsqueeze(0).repeat(B, 1, 1)
        return matrix + identity

# --- ์‚ฌ์šฉ ์˜ˆ์‹œ ---
tnet_3d = TNet(k=3)
pts_raw = torch.randn(2, 3, 1024)
trans_mat = tnet_3d(pts_raw)
print("์˜ˆ์ธก๋œ 3x3 ๋ณ€ํ™˜ ํ–‰๋ ฌ Shape:", trans_mat.shape)

๐Ÿ› ๏ธ Chapter 3: Feature Transform ์ง๊ต์„ฑ ์ •๊ทœํ™” ์†์‹ค ์ˆ˜์‹#

1. ์š”์•ฝ#

64์ฐจ์› ์ด์ƒ์˜ ๊ณ ์ฐจ์› ํŠน์ง• ๋ณ€ํ™˜ ํ–‰๋ ฌ $A$๊ฐ€ ์ •๋ณด๋ฅผ ์™œ๊ณกํ•˜๊ฑฐ๋‚˜ ์†Œ์‹ค์‹œํ‚ค์ง€ ์•Š๊ณ  ์ˆœ์ˆ˜ ๊ฐ•์ฒด ํšŒ์ „์— ๊ฐ€๊น๋„๋ก $AA^T = I$ ์ง๊ต์„ฑ์„ ์œ ๋„ํ•ฉ๋‹ˆ๋‹ค.

2. ์ˆ˜์‹ ๋ฐ ํŒŒ์ด์ฌ ์ฝ”๋“œ ์„ค๋ช…#

$$\mathcal{L}_{\text{reg}} = \| I - A A^T \|_F^2$$
  • $A \in \mathbb{R}^{K \times K}$: T-Net์ด ์ถœ๋ ฅํ•œ $K \times K$ ๋ณ€ํ™˜ ํ–‰๋ ฌ
  • $\| \cdot \|_F$: Frobenius Norm (๋ชจ๋“  ํ–‰๋ ฌ ์›์†Œ ์ œ๊ณฑํ•ฉ)
import torch

def compute_orthogonality_regularization_loss(A: torch.Tensor) -> torch.Tensor:
    """
    PointNet Feature Transform Matrix Orthogonality Loss: || I - A @ A^T ||_F^2
    """
    B, K, _ = A.shape
    identity = torch.eye(K, device=A.device).unsqueeze(0).repeat(B, 1, 1)
    A_A_T = torch.matmul(A, A.transpose(1, 2))
    
    loss_reg = torch.mean(torch.norm(identity - A_A_T, dim=(1, 2)) ** 2)
    return loss_reg

# --- ์‚ฌ์šฉ ์˜ˆ์‹œ ---
matrix_64d = torch.randn(2, 64, 64)
print("PointNet Feature Transform ์ •๊ทœํ™” ์†์‹ค:", compute_orthogonality_regularization_loss(matrix_64d).item())

๐Ÿ› ๏ธ Chapter 4: Local-Global Feature Concatenation ๋ถ„ํ•  ์‹ ๊ฒฝ๋ง#

1. ์š”์•ฝ#

ํฌ์ธํŠธ๋ณ„ ํŒŒํŠธ/์žฅ๋ฉด ๋ถ„ํ• (Part/Semantic Segmentation)์„ ์œ„ํ•ด 64์ฐจ์› ๊ตญ์†Œ ํ”ผ์ฒ˜ $h^{\text{loc}}(x_i)$์™€ Max-Pooling 1024์ฐจ์› ์ „์—ญ ํ”ผ์ฒ˜ $g(S)$๋ฅผ ๊ฐ ์ ๋งˆ๋‹ค ๊ฒฐํ•ฉ(Concatenate)ํ•˜์—ฌ 1088์ฐจ์› ํ”ผ์ฒ˜๋กœ ๊ฐœ๋ณ„ ๋ถ„๋ฅ˜ํ•ฉ๋‹ˆ๋‹ค.

2. ์ˆ˜์‹ ๋ฐ ํŒŒ์ด์ฌ ์ฝ”๋“œ ์„ค๋ช…#

$$\mathbf{f}_{\text{seg\_i}} = \text{Concat}\big( h^{\text{loc}}(x_i), \ g(S) \big) \in \mathbb{R}^{64 + 1024}$$
import torch
import torch.nn as nn

class PointNetSegmentationHead(nn.Module):
    """
    PointNet Segmentation: Local (64d) + Global (1024d) Feature ๊ฒฐํ•ฉ ๋ถ„๋ฅ˜๊ธฐ
    """
    def __init__(self, num_classes: int = 13):
        super().__init__()
        self.conv_seg = nn.Sequential(
            nn.Conv1d(1088, 512, 1), nn.BatchNorm1d(512), nn.ReLU(),
            nn.Conv1d(512, 256, 1), nn.BatchNorm1d(256), nn.ReLU(),
            nn.Conv1d(256, 128, 1), nn.BatchNorm1d(128), nn.ReLU(),
            nn.Conv1d(128, num_classes, 1)
        )

    def forward(self, local_feat: torch.Tensor, global_feat: torch.Tensor) -> torch.Tensor:
        """
        local_feat: (B, 64, N_pts)
        global_feat: (B, 1024)
        """
        B, _, N_pts = local_feat.shape
        g_expand = global_feat.unsqueeze(-1).repeat(1, 1, N_pts) # (B, 1024, N_pts)
        
        fused = torch.cat([local_feat, g_expand], dim=1) # (B, 1088, N_pts)
        seg_logits = self.conv_seg(fused) # (B, Num_classes, N_pts)
        return seg_logits

# --- ์‚ฌ์šฉ ์˜ˆ์‹œ ---
f_loc = torch.randn(2, 64, 1024)
f_glob = torch.randn(2, 1024)
seg_head = PointNetSegmentationHead(num_classes=13)
print("PointNet ์ ๋ณ„ ๋ถ„ํ•  Logits Shape:", seg_head(f_loc, f_glob).shape)

๐Ÿ“Š ์ฃผ์š” ์‹คํ—˜ ๋ฐ ๊ฒฐ๊ณผ (Experiments & Results)#

1. ModelNet40 3D ๋ฌผ์ฒด ๋ถ„๋ฅ˜ ๋ฒค์น˜๋งˆํฌ ๋น„๊ต#

์•Œ๊ณ ๋ฆฌ์ฆ˜ (Method)์ž…๋ ฅ ๋ฐ์ดํ„ฐ ํผ3D ํ‘œ๋ฉด ํ‘œํ˜„ ๋ฐฉ์‹๋ถ„๋ฅ˜ ์ •ํ™•๋„ (Accuracy) โ†‘์ฒ˜๋ฆฌ ์†๋„ (FLOPs) โ†“
VoxNet3D Voxel$32 \times 32 \times 32$ Grid85.9%-
Subvolume3D VoxelSub-Voxel Grid89.2%3,633M (ํŒŒ๋ผ๋ฏธํ„ฐ 16.6M, ๊ณ ๋น„์šฉ)
MVCNNMulti-View Image2D ๋ Œ๋”๋ง ์ด๋ฏธ์ง€90.1%62,057M (ํŒŒ๋ผ๋ฏธํ„ฐ 60.0M, ์ตœ๊ณ ๋น„์šฉ)
PointNet (Ours)Raw Point CloudUnordered Point Set89.2% (3D ์ž…๋ ฅ ์ค‘ ์ตœ๊ณ )440M (ํŒŒ๋ผ๋ฏธํ„ฐ 3.5M, ์ €๋น„์šฉ ์ดˆ๊ณ ์†)
  • ๊ฒฐ๊ณผ: ๋ณต์…€ ๋ฐ์ดํ„ฐ ํญ๋ฐœ ์—†์ด 89.2% ๋ถ„๋ฅ˜ ์ •ํ™•๋„๋กœ 3D ์ž…๋ ฅ ๋ฐฉ๋ฒ• ์ค‘ ์ตœ๊ณ  ์„ฑ๋Šฅ(๋ฉ€ํ‹ฐ๋ทฐ ๋ Œ๋”๋ง ๋ฐฉ์‹์ธ MVCNN์˜ 90.1%์—๋Š” ๊ทผ์†Œํ•˜๊ฒŒ ๋ชป ๋ฏธ์นจ) ๋ฐ ์ดˆ๋‹น 100๋งŒ ํฌ์ธํŠธ ์‹ค์‹œ๊ฐ„ ์ถ”๋ก  ์†๋„ ํ™•๋ณด.

๐Ÿ’ก ๊ฒฐ๋ก  ๋ฐ ์‹œ์‚ฌ์  (Conclusion & Insights)#

1. ๊ฒฐ๋ก #

PointNet์€ ์ˆœ์„œ๊ฐ€ ์—†๋Š” 3D ์  ์ง‘ํ•ฉ์„ ์ง์ ‘ ๋”ฅ๋Ÿฌ๋‹ ๊ณต๊ฐ„์œผ๋กœ ์ธ์ฝ”๋”ฉํ•˜๋Š” ๋ฐฑ๋ณธ์˜ ํšจ์‹œ๋กœ์„œ, PointPillars, CenterPoint, BEVFusion ๋“ฑ ์ž์œจ์ฃผํ–‰ perception ์Šคํƒ์˜ ๊ธฐ์ดˆ๋ฅผ ๋‹ฆ์€ ํ•„๋… ๋…ผ๋ฌธ์ž…๋‹ˆ๋‹ค.

2. ์ž์œจ์ฃผํ–‰ ๊ด€๋ จ ์‹œ์‚ฌ์ #

VoxelNet์€ ๊ฐ ๋ณต์…€ ๋‚ด ์ ๋“ค์— PointNet ์ธ์ฝ”๋”๋ฅผ ์ ์šฉํ•˜๊ณ , PointPillars๋Š” ์ˆ˜์ง ๊ธฐ๋‘ฅ(pillar)์„ PointNet์œผ๋กœ ์ธ์ฝ”๋”ฉํ•œ๋‹ค. BEVFusion, CenterPoint ๋“ฑ ํ˜„๋Œ€ LiDAR ํƒ์ง€๊ธฐ์˜ ํฌ์ธํŠธ ์ธ์ฝ”๋”ฉ ์„ค๊ณ„ ์ฒ ํ•™์ด ์ด ๋…ผ๋ฌธ์—์„œ ์ถœ๋ฐœํ–ˆ๋‹ค. ํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ(Blensor ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ)๋กœ ์ƒ์„ฑ๋œ ๋ถ€๋ถ„ ์Šค์บ”์—์„œ๋„ ์„ฑ๋Šฅ ์ €ํ•˜ 5.3%๋กœ ๊ฒฌ๊ณ ํ•˜์—ฌ ๋„๋ฉ”์ธ ๊ฐญ ์—ฐ๊ตฌ์—๋„ ์‹œ์‚ฌ์ ์„ ์ œ๊ณตํ•œ๋‹ค.

3. ํ•œ๊ณ„์  ๋ฐ ์•„์‰ฌ์šด ์ #

  • ์ง€์—ญ ์ด์›ƒ ๊ตฌ์กฐ๋ฅผ ๋ช…์‹œ์ ์œผ๋กœ ๋ชจ๋ธ๋งํ•˜์ง€ ์•Š์Œ โ†’ PointNet++์—์„œ FPS + Ball Query๋กœ ํ•ด๊ฒฐ.
  • ๋Œ€๊ทœ๋ชจ ์žฅ๋ฉด ์ฒ˜๋ฆฌ ์‹œ ์  ์ˆ˜ ์ฆ๊ฐ€์— ๋”ฐ๋ฅธ ์—ฐ์‚ฐ ๋ถ€๋‹ด.
  • T-Net์˜ ์ •๊ทœํ™” ์†์‹ค(0.001 ๊ฐ€์ค‘์น˜)์ด ์‹ค์ œ๋กœ ๊ฐ•์ฒด ๋ณ€ํ™˜ ๋ถˆ๋ณ€์„ฑ์„ ์–ผ๋งˆ๋‚˜ ๊ฒฌ๊ณ ํ•˜๊ฒŒ ๋ณด์žฅํ•˜๋Š”์ง€์— ๋Œ€ํ•œ ์ •๋Ÿ‰์  ๋ถ„์„์ด ๋‹ค์†Œ ์ œํ•œ์ ์ด๋ผ๋Š” ์ ์€ ์•„์‰ฌ์›€.

์ฐธ๊ณ  ์ž๋ฃŒ#

๊ด€๋ จ ๋…ผ๋ฌธ: PointPillars, CenterPoint, BEVFusion