In the previous post, we have investigate the 2D-to-3D lifting model and how to encode human body structure using GCNs. In this post, we will talk about Weight-sharing problem of GCN in pose estimation and how to deal with it.
Weight-sharing problem of GCN in pose estimation
To tackle the issue of uniform weight-sharing , the authors in [3] assumed each neighboring nodes have different semantic meanings and thus we should use different weight matrices for different neighboring nodes (Figure 2b). Specifically, the nodes are classified into the center
node itself (blue), physically-connected
nodes including the one closer (purple) to and the one farther (green) from the root node, indirect "symmetrically"-related
node (dark blue), time-forward
node (yellow), and time-backward
node (orange). Based on these, the graph convolution formulation is modified as:
where is the considering type of the neighboring nodes, is the element-wise product between the original adjacency matrix and the mask , which is 1 for the adjacent nodes satisfied the considering type and 0 for other nodes. is the corresponding weight matrix for the -th type nodes. Note that the graph is sparse and the topology is pre-defined (i.e. the adjacency and degree matrix are pre-computed), thus the graph operation should be very fast to compute. The overall process is shown in Figure 4.
To simulate the bottom-up process (downsampling the feature maps) and the top-down process (upsampling the feature maps with the combination of higher resolution features from bottom layers), which is capable of capturing semantic features across multi-scale and efficiently reducing the number of parameters, the authors also use graph pooling and upsampling techniques. The graph pooling (bottom-up process) merges the node features according to each body part (e.g. left-hand, right-hand, left-leg,...) into a single node. The upsampling (top-down process) simply takes a reverse step of the graph pooling, where the features of vertices in the coarser graph are duplicated to the corresponding child vertices in the finer scale. Note that these processes are performed in the intra-structure of the body while the temporal edges remain the same.
Concurrently, another work [4] also investigated the weight-sharing problem in GCN and proposed a general weight-unsharing scheme with the flexibility to support customized node relationships. They also found that the common weight-sharing in GCN will harm its representation capability when it is used for 3D pose estimation because each joint needs to aggregate features from its neighbors in unique ways in order to infer its 3D location. For simplicity, the conventional GCN formulation in Equation 1 can be simplified as:
where is the structure matrix indicating the relationship and dependency between nodes, is the node features and is the weight matrix. Note that the Fully Connected Network is also a special case of this formulation (see Figure 6 for illustration), where every elements of the structure matrix are 1 (each node is connected to all other nodes). The weight unsharing scheme is to assign each separate weight matrix for each -th node considered as the center node.
where is the feature vector of node after the computation, is the -th row of (representing the connectivity of node to other nodes), and is the unshared weights for node . In the above equation, each local relationship (i.e. one center node and its neighbors) corresponds to a transformation matrix . We can further extend the operation into a more general formula where every neighbor are transformed by different weight matrices:
where is a scalar representing the connectivity of node and node (0 if there is no edge between and ), is the feature vector of node (-th row of ), and denotes the transformation weight for node when considered as neighbor of . This operation results in the highest capacity of the GCN model and thus enhancing the capability to capture the relationship between each local connection, which leads to better performance. However, the total number of parameters in each layer is which is times higher than the conventional GCNs. The operation for the whole graph can be written in a fully vectorized manner as shown in Figure 5
This model is named Locally Connected Network (LCN) since the relationship of one node to its local neighbors is modeled by a specific weight matrix. Figure 6 illustrates the comparisons of FCN, GCN and LCN. In FCN, the input features of different nodes are mixed by dense connections making every output feature dependent on the input features of all nodes. In GCN, the output features of a node only depend on the neighboring nodes defined by the structure matrix while different nodes share the same filter T (blue rectangle). In LCN, each node has a separate filter. The full network is constructed by simply stacking multiple layers based on the formulations.
Note that the structure matrix can also be learned end-to-end from data, which is general and might be useful for several tasks. However, the experiments showed that a pre-defined topology based on the human skeleton can yield better performance than the learnable topology, which suggests the importance of the human prior knowledge in pose estimation.
A main drawback of the weight-unsharing approach is the increase in complexity because each node should have a different set of parameters. However, it is negligible in our task since the number of body joints (nodes) is small in practice. These proposed GCN methods can perform significantly better than both the baseline and the conventional GCN approaches. Nonetheless, it is hard to directly compare different designs of GCN (weight-unsharing scheme) since the performance differences may also come from different training settings and loss functions. The key takeaway is that it has many benefits to exploit different body parts as well as their interaction with each other since each body part plays different roles in human body pose and motion. In addition, we refer readers to [5] for further comprehensive study of the weight-sharing problem in GCN for pose estimation.
References
[1] Julieta Martinez, Rayat Hossain, Javier Romero, and James J. Little. 2017. A simple yet effective baseline for 3d human pose estimation. In ICCV
[2] Ce Zheng, Wenhan Wu, Chen Chen, Taojiannan Yang, Sijie Zhu, Ju Shen, Nasser Kehtarnavaz, Mubarak Shah. 2020. Deep Learning-Based Human Pose Estimation: A Survey.
[3] Y. Cai, L. Ge, J. Liu, J. Cai, T. Cham, J. Yuan, and N. M. Thalmann. 2019. Exploiting Spatial-Temporal Relationships for 3D Pose Estimation via Graph Convolutional Networks. In ICCV.
[4] H. Ci, C. Wang, X. Ma, and Y. Wang. 2019. Optimizing Network Structure for 3D Human Pose Estimation. In ICCV.
[5] Kenkun Liu, Rongqi Ding, Zhiming Zou, Le Wang, and Wei Tang. 2020. A Comprehensive Study of Weight Sharing in Graph Networks for 3D Human Pose Estimation. In ECCV