U NDERSTANDING E MBODIED R EFERENCE WITH T OUCH -L INE T RANSFORMER
https://yang-li-2000.github.io/Touch-Line-Transformer
A BSTRACT
We study embodied reference understanding, the task of locating referents using embodied gestural signals and language references.
Human studies have revealed that, contrary to popular belief, objects referred to or pointed to do not lie on the elbow-wrist line , but rather on the so-called virtual touch line .
Nevertheless, contemporary human pose representations lack the virtual touch line.
To tackle this problem, we devise the touch-line Transformer: It takes as input tokenized visual and textual features and simultaneously predicts the referent’s bounding box and a touch-line vector.
Leveraging this touch-line prior, we further devise a geometric consistency loss that promotes co-linearity between referents and touch lines.
Using the touch line as gestural information dramatically improves model performances: Experiments on the YouRefIt dataset demonstrate that our method yields a +25.0% accuracy improvement under the 0.75 IoU criterion, hence closing 63.6% of the performance difference between models and humans.
Furthermore, we computationally validate prior human studies by demonstrating that computational models more accurately locate referents when employing the virtual touch line than when using the elbow-wrist line .
I NTRODUCTION
Understanding human intents is essential when intelligent robots interact with humans.
Nevertheless, most prior work in the modern learning community disregards the multi-modal facet of human-robot communication.
Consider the scenario depicted in Figure 1, wherein a person instructs the robot to interact with a chair behind the table.
In response, the robot must comprehend what humans are referring to before taking action ( e.g ., approaching the object and cleaning it).
Notably, both embodied gesture signals and language reference play significant roles.
Without the pointing gesture, the robot could not distinguish between the two chairs using the utterance the chair that is occluded .
Likewise, without the language expression, the robot could not differentiate the chair from other objects in that vicinity ( e.g ., bags on the table).
To address this deficiency, we investigate the embodied reference understanding (ERU) task introduced by Chen et al.
This task requires an algorithm to detect the referent (referred object) using (i) an image/video containing nonverbal communication signals and (ii) a sentence as a verbal communication signal.
The first fundamental challenge in tackling ERU is the representation of human pose.
The de facto and prevalent pose representation in modern computer vision is defined by COCO (Lin et al., 2014)— a graph consisting of 17 nodes (keypoints) and 14 edges (keypoint connectivities).
Existing models for ERU (Chen et al., 2021) assume pre-extracted COCO-style pose features to be the algorithm inputs.
However, we rethink the limitations of the COCO-style pose graph in the context of ERU and uncover a counter-intuitive fact:
The referent does not lie on the elbow-wrist line ( i.e ., the line that links the human elbow and wrist).
As shown in Figure 2, this line (in red) does not cross the referred microwave, exhibiting a typical misinterpretation of human pointing (Herbort & Kunde, 2018).
A recent developmental study ( et al., 2019) presents compelling evidence supporting the above hypothesis.
It studies how humans mentally develop pointing gestures and argues that it is a virtual form of reaching out to touch .
This new finding challenges conventional psychological views (McGinn, 1981; Kita, 2003) that the pointing gesture is mentally a behavior of using the limb as an arrow.
Inheriting the terminology in O’Madagain et al.
(2019), we coin the red line in Figure 2 as an elbowwrist line (EWL) and the yellow line (which connects the eye and the fingertip) as a virtual touch line (VTL).
Inspired by this essential observation that VTLs are more accurate than EWLs in embodied reference, we augment the existing
COCO-style pose graph with an edge that connects the eye and the fingertip.
As validated by a series of experiments in Section 4, this augmentation significantly improves the performance on YouRefIt .
The second fundamental issue in tackling ERU is how to jointly model gestural signals and language references.
Inspired by the success of multi-modal Transformers (Chen et al., 2020;
Li et al., 2020; Tan & Bansal, 2019;
Lu et al., 2019; Kamath et al., 2021) in multi-modal tasks (Hudson & Manning, 2019;
Antol et al., 2015; Zellers et al., 2019), we devise the Touch-Line Transformer.
Our Transformer-based model takes as inputs both visual and natural-language modalities.
Our Touch-Line Transformer jointly models gestural signals and language references by simultaneously predicting the touch-line vector and the referent’s bounding box.
To further help our model utilize gestural signals ( i.e ., the touch-line vector), we integrate a geometric consistency loss to encourage co-linearity between the touch line and the predicted referent’s location, resulting in significant performance improvements.
By leveraging the above two insights, our proposed method achieves a +25.0% accuracy gain under the 0.75 IoU criterion on the YouRefIt dataset compared to state-of-the-art methods.
Our approach closes 63.6% of the gap between model performance and human performance.
This paper makes four contributions by introducing (i) a novel computational pose representation,
VTL, (ii) the Touch-Line Transformer that jointly models nonverbal gestural signals and verbal references, (iii) a computational model leveraging the concept of touch line by a novel geometric consistency loss that improves the co-linearity between the touch line and the predicted object, and (iv) a new state-of-the-art performance on ERU, exceeding the 0.75 IoU threshold by +25.0%.
R ELATED WORK
Misinterpretation of pointing gestures Pointing enables observers and pointers to direct visual attention and establish references in communication.
Recent research reveals, surprisingly, that observers make systematic errors (Herbort & Kunde, 2016): While pointers produce gestures using
VTLs, observers interpret pointing gestures using the “arm–finger” line.
O’Madagain et al.
(2019) founded the VTL mechanism: Pointing gestures orient toward their targets as if the pointers were to touch them.
In neuroscience, gaze effects occur for tasks that require gaze alignment with finger pointing (B´edard et al., 2008).
The preceding evidence demonstrates that eye position and gaze direction are crucial for understanding pointing.
Critically, Herbort & Kunde (2018) verify that directing human observers to extrapolate the touch-line vector reduces the systematic misinterpretation during human-human communication.
Inspired by these discoveries, we incorporate the touch-line vector to enhance the performance of pointing gesture interpretation.
Detection of gaze targets The gazing gesture itself can refer to particular objects in the absence of language expressions.
The detection of the gaze targets is the localization of the objects people gaze at.
Recasens et al.
and Chong et al.
(2018) introduce two-stage methods that build saliency maps and estimate gaze directions before combining them to predict gaze targets.
Tu et al.
(2022) devise a one-stage end-to-end approach for simultaneously locating human heads and gaze targets for all individuals in an image.
Fang et al.
(2021) develop a three-stage method that predicts first the 2D and 3D gaze direction, then the field of views and depth ranges, and finally the gaze target.
Zhao et al.
(2020) assume that humans find gaze targets from salient objects on the sight line, designing a model to validate this hypothesis in images and videos.
Li et al.
(2021) extend the detection of gaze target to 360-degree images.
Chong et al.
and Recasens et al.
(2017) extend the detection of gaze target into videos, wherein the gazed object may not be in the same frame as the gazing gesture.
Referring expression comprehension Language expressions can also refer to particular objects.
Referring expression comprehension is to locate referents in an image using only language expressions.
Multiple datasets ( e.g ., RefCOCO (Yu et al., 2016), RefCOCO+ (Yu et al., 2016), RefCOCO-g (Mao et al., 2016), and Guesswhat (De Vries et al., 2017)) serve as the benchmark.
To encode images and sentences, Du et al.
(2022) develop a Transformer-based framework and use the language to guide the extraction of discriminative visual features.
Rohrbach et al.
(2016) recognize the bidirectional nature between language expressions and objects in images, obviating the need for bounding box annotations.
Yu et al.
(2018) devise a modular network, wherein three modules attend to subjects, their location in images, and their relationships with nearby objects, respectively.
While the above efforts locate referents using language expressions, they rarely use human-like nonverbal gestures.
Language-conditioned imitation learning Robots must identify target objects when completing goal-conditioned tasks (Stepputtis et al., 2020).
Counterintuitively, Stepputtis et al.
(2020) argue against describing the target object using (one-hot) vectors due to inflexibility to support continued learning in deployed robots.
Instead, Stepputtis et al.
(2020) employ natural language to refer to target objects in goal-conditioned manipulation tasks.
Specifically, leveraging a semantic module for understanding what the referents referred to by language expressions, their architecture helps robots locate and attend to the target object when the natural language expression unambiguously refers to an object.
However, this method struggles to resolve ambiguities ( e.g ., in cases with pointing gestures).
Recent work on language-conditioned imitation learning (Stepputtis et al., 2020; Lynch &
Sermanet, 2021;
Mees et al., 2022) may therefore benefit from our VTL by more accurately locating the target object, especially when the natural language alone is ambiguous.
M ETHOD 3. N ETWORK ARCHITECTURE
Our framework, illustrated in Figure 3, consists of a multi-modal encoder, a Transformer decoder, and prediction heads.
We describe each component in detail below.
Multimodal encoder We generate a visual embedding vector by extracting visual features from input images with a pre-trained ResNet (He et al., 2016) backbone, flattening them, and then adding them to a set of position embeddings (Parmar et al., 2018; Bello et al., 2019).
Meanwhile, we generate a textural embedding vector from input texts using a pre-trained BERT (Liu et al., 2019).
After obtaining visual and textural embedding vectors, we concatenate and feed them into a Transformer encoder to learn multi-modal representations.
Transformer decoder We feed the above multi-modal representations to our Transformer decoder, which additionally takes as input a set of learnable object queries and gestural key point queries.
With multi-modal representations and input queries, our Transformer decoder (pre-trained MDETR (Kamath et al., 2021)) generates object output embeddings and gestural output embeddings.
Prediction heads Object and gestural output embeddings from the Transformer decoder are the inputs for our prediction heads (MLPs), which predict bounding boxes (for referents) and gestural key points.
We keep one object bounding box and one pair of gestural key points with the highest scores as the final prediction.
Specifically, we define the score of a bounding box as 1 minus the non-object class column of the softmax of the predicted object logits.
For a pair of gestural key points, the score is the is-a-VTL/EWL column of the predicted arm logits’ softmax.
[Figure]
table.
[Figure]
table.
[Figure]
C NN +
C o n c a t e n a t e ...
T r a n s f o r m e r
D e c o d e r
T r a n s f o r m e r
E n c o d e r
O b j e c t H e a d
G e s t u r e
H e a d
Geometric Consistency Loss
[Figure]
3. E XPLICIT LEARNING OF NONVERBAL GESTURAL SIGNALS
Measure co-
lineaerity
Ideally, a referent should have a high co-linearity with the VTL.
We measure this co-linearity using cosine similarity:
[Equation]
where p x f , y f q , p x e , y e q , and p x o , y o q are the x-y coordinates of the fingertip, the eye, and the center of the referent bounding box, respectively.
Encourage co-lineaerity We encourage our model to predict referent bounding boxes that are highly co-linear with VTLs using a referent alignment loss, which is a geometric consistency loss:
[Equation]
We compute cos sim gt using the ground-truth referent boxes and compute cos sim pred using the predicted referent boxes.
Ground-truth VTLs are used for both cos sim gt and cos sim pred .
Of note, the design of the offset cos sim gt ensures the predicted object is as co-linear as the ground-truth object to the VTL.
In other words, the loss in Equation (2) is minimized to zero when the predicted object box is as co-linear as the ground-truth one to the VTL.
Modify for EWLs In experiments using EWLs instead of VTLs, we replace the fingertip p x f , y f q and the eye p x e , y e q in Equation (1) using the wrist p x w , y w q and the elbow p x l , y l q , respectively.
3. I MPLICIT LEARNING OF NONVERBAL GESTURAL SIGNALS
We eliminate the postural signals (by removing humans) from images to investigate whether our model can implicitly learn to utilize nonverbal gestural signals without being explicitly asked to learn.
Please refer to Appendix A for details of our procedure.
3. A DDITIONAL LOSSES
We define the total loss during training as
[Equation]
where λ i s are the weights of various losses, L box is the weighted sum of the L1 and GIoU losses for predicted referent bounding boxes, and L gesture is the L1 loss for the predicted VTLs or EWLs.
The soft token loss L token and the contrastive loss L contrastive follow those in Kamath et al.
(2021); these two losses help our model align visual and textural signals.
E XPERIMENTS 4. D ATASET , EVALUATION METRIC , AND IMPLEMENTATION DETAILS
We use the YouRefIt dataset (Chen et al., 2021) with 2 , 950 training instances and 1 , 245 test instances.
YouRefIt has two portions: videos and images; we only use the image portion.
The inputs are images without temporal information.
Each instance contains an image, a sentence, and the location of the referent.
We provide additional annotations of VTLs and EWLs for the YouRefIt dataset.
For fair comparisons with prior models, we follow Chen et al.
and report precision under three different IoU thresholds: 0.25, 0.50, and 0.75.
A prediction is correct under a threshold if its IoU with the ground-truth box is greater than that threshold.
Additionally, we choose our best models by the precision under the GIoU (Rezatofighi et al., 2019) threshold of 0.75.
Compared with IoU, GIoU is an improved indicator of the model’s ability to locate objects accurately.
We report the results using
GIoU thresholds in Section 4.5.
During training, we use the Adam variant, AMSGrad (Reddi et al., 2018), and train our models for 200 epochs.
We use the AMSGrad variant because we observe a slow convergence of the standard
Adam optimizer in experiments.
We set the learning rate to 5e-5 except for the text encoder, whose learning rate is 1e-4.
We do not perform learning rate drops because we rarely observe demonstrable performance improvements after dropping them.
We use NVIDIA A100 GPUs.
The sum of the batch sizes on all graphic cards is 56.
Augmentations follow those in Kamath et al.
The total number of queries is 20; 15 for objects, and 5 for gestural key points.
4. C OMPARISON WITH STATE - OF - THE - ART METHODS
Our approach outperforms prior state-of-the-art methods by 16.4%, 23.0%, and 25.0% under the IoU threshold of 0.25, 0.50, and 0.75, respectively; see Table 1.
Specifically, our model performs better than visual grounding methods (Yang et al., 2019; 2020), which do not explicitly utilize nonverbal gestural signals.
Our approach also performs better than the method proposed in YouRefIt (Chen et al., 2021), which did not leverage the touch line or the Transformer models for multi-modal tasks.
[Table]
4. E XPLICITLY LEARNED NONVERBAL SIGNALS
[Table]
We report performances of models that explicitly predict either the VTLs or the EWLs.
Results Overall, the model trained to predict the
VTLs performs better than the one trained to predict the EWLs under all three IoU thresholds; see details in Table 2.
The model trained to explicitly predict the
EWLs performs even worse than the one not trained to explicitly predict any gestural signals under the IoU threshold of 0.75.
Analysis Under the IoU threshold of 0.75, the unreliability of the arm’s orientation and the stringent precision requirement can partly explain the worse performance of the model with explicit EWL predictions.
As we observed in Figure 4, the EWLs are unreliable for predicting objects’ locations simply because they frequently do not pass through the referents.
This mismatch prevents the model
[Figure]
from correctly determining the referents’ locations using the EWLs’ orientations.
For instance, in
Figure 4a (right), the EWL fails to pass the glass cup in the yellow box; it passes a ceramic cup instead.
The model struggles to identify the referent correctly with contradictory nonverbal (the ceramic cup) and verbal (the glass cup) signals.
In contrast, VTLs partly explains the model’s improved performance.
For example, in Figure 4b, the VTL passes the comb in the green box while the EWL fails.
Similarly, in other subfigures in
Figure 4, VTLs passes the referent while EWLs do not, or VTLs are closer to the referents’ box centers than EWL are.
The higher consistency between verbal and nonverbal signals increases the chance of successfully identifying the referents.
Under the lower IoU thresholds of 0.25 and 0.50, the rough orientations provided by the EWLs and the more lenient precision requirements can partly explain the improved model performances.
Specifically, the rough orientations provided by the EWLs might help the model eliminate objects that significantly deviate from this direction.
Hence, the model can choose from fewer objects, leading to a higher probability of correctly locating referents.
4. I MPLICITLY LEARNED NONVERBAL SIGNALS
[Table]
We investigate whether our model can implicitly learn nonverbal gestural signals without being explicitly asked to predict the VTLs or the EWLs.
To investigate this hypothesis, we conducted two sets of experiments: original images and inpainted images (human removed).
In either case, we do not provide our annotated gestural key points (eyes, fingertips, elbows, and wrists) to our model or ask our model to predict any of these gestural key points.
The set of experiments using original images without providing or predicting gestural key points corresponds to the “Original” column in Table 3, the “No explicit gestural key points” column in
Table 1, the “No exp.
ges.
k. poi.”
column in Table 7, and the “None” column in Table 2.
Our model performs much worse when nonverbal gestural signals are absent.
Specifically, removing humans from input images results in 5.8%, 6.1%, and 4.8% performance drop under the IoU threshold of 0.25, 0.50, and 0.75, respectively; see details in Table 3.
original inpainted
[Figure]
original inpainted
[Figure]
original inpainted
[Figure]
These performance drops indicate that the model lacks some helpful information when only inpainted images are given.
Specifically, removing humans in the scenes eliminates useful communicative signals, including pointing, poses, and the gaze direction (Sebanz et al., 2006).
The lack of human context introduces additional ambiguities in identifying the referents, especially when the natural language input alone cannot uniquely refer to an object in the scene.
For example, in Figure 5f, given the natural language input “the books in front of me,” determining which piles of books this person refers to is difficult: one on the table and one in the scene’s lower right corner, thus in need of nonverbal gestural signals, such as pointing.
Similarly, in Figure 5e, we cannot distinguish which picture frame the person refers to without considering the pointing gesture.
[Figure]
[Figure] [Figure]
4. A DDITIONAL RESULTS
Attention weights visualizations We visualize the attention weights of our model trained with
VTL (Figure 6).
We use yellow to visualize the attention weights of matched gesture keypoint queries and blue for matched object queries.
Visualizations show that the attention of object queries can attend to the regions of target objects, whereas the attention of keypoint queries primarily focuses on humans’ heads and hands.
These results indicate that our model successfully learns gestural features that boost performance.
Failure cases While the VTL effectively helps the model leverage the nonverbal gestural signals, the performance of our model still could not surpass 74% human performance.
The gap between the model and human performance can be partly attributed to the model’s inability to distinguish the subtle differences among similar objects.
In other words, while explicitly predicting the VTLs helps our model utilize gestural signals to determine the object’s direction, it does not help the model recognize the minor differences among multiple objects in the same direction.
For example, the VTL passes two bottles in Figure 7a.
While the VTL indeed helps narrow down the options to these two bottles, it does not help our model recognize which one is the body lotion.
Similarly, in Figure 7b, the VTL indicates two bottles—one with a red lid and the other with a yellow lid.
However, it does not help the model distinguish the subtle differences between lid colors.
Additionally, in very rare cases (Figure 8), failure to detect the human head in the image prevents the application of our VTL.
Computed cosine similarities
The computed cosine similarity is much higher when using the
VTLs (Table 4), indicating the VTLs are more co-linear to the referents.
This result verifies our hypothesis that the VTLs are more reliable in referring to the objects’ locations.
Referent alignment loss An ablation study (Table 5) shows that our reference alignment loss plays a significant role in leveraging nonverbal gestural signals
[Table]
[Table] [Table]
Effects of object sizes We evaluate the model performance w.r
[Table]
t. the object detection of different object sizes (Table 6).
We define small (S), medium (M), and large (L) objects following the size thresholds in Chen et al.
Compared to the relatively consistent human performance, deep learning models’ performances are significantly lower when detecting diminutive objects than when detecting more prominent objects, especially under the less stringent IoU thresholds of 0.25 and 0.50.
The degraded performance indicates that future artificial intelligence models need to improve the performance of small object detection.
[Table]
[Table]
Precision computed using GIoU thresholds We provide the performance of our models when evaluated using GIoU instead of IoU thresholds; see Table
[Table]
[Table]
Language inputs with more ambiguities We investigate the performance of our model when using language inputs with more ambiguities by changing each input sentence to the word “object.”
Our results (Table 8) show that language inputs with more ambiguities impair the performance of our models severely.
[Table]
C ONCLUSION AND LIMITATIONS
We presented an effective approach, Touch-Line Transformer, to utilize the simple but effective VTLs to improve an artificial agent’s ability to locate referents referred to by humans in the wild.
Our approach is inspired by recent findings in human studies on the touch-line hypothesis, which further revealed that people frequently misinterpret other people’s referring expressions.
Our proposed architecture, combined with the proposed VTL, significantly reduced the gap between model performance and human performance.
Some limitations exist in our work.
First, resizing operations before and after inpainting might influence model performance.
Next, we primarily study the eyes’ location and the upper limbs’ orientation regarding nonverbal signals, leaving the study of other types of nonverbal signals to future works, such as gazing direction, the direction of the finger, and the orientation of the lower limbs.
A CKNOWLEDGMENTS
The authors would like to thank Miss Chen Zhen (BIGAI) for making the nice figures and three anonymous reviews for constructive feedback.
This work is supported in part by the National Key
R&D Program of China (2022ZD0114900), the Beijing Nova Program, and Beijing Didi Chuxing
Technology Co., Ltd.
A I NPAINTING
We hypothesize that our model may learn to use postural signals without being explicitly asked to.
To test our hypothesis, we remove postural signals (by removing humans) from the images mainly using the Mask R-CNN (Massa & Girshick, 2018) and MAT (Li et al., 2022).
We investigate whether our model performs worse when trained using images without gestural signals.
We hypothesize that Transformer models may learn to use postural signals without being explicitly asked to learn these types of signals.
To test our hypothesis, we conduct two groups of experiments: the inpainting group and the control group.
In the inpainting group, we remove postural signals in the input image.
In the control group, we do not modify the input image.
In the inpainting group, we modify input images.
Specifically, we remove postural signals from input images by removing humans and filling in missing portions of the image (initially occupied by humans) using MAT (Li et al., 2022).
Specifically, we first use Mask R-CNN X-101 (Massa &
Girshick, 2018) to produce human masks.
After that, we expand the human masks created by the mask rcnn to both the left and right sides to cover the edge of humans entirely.
We ensure that the expanded mask never encroaches on regions occupied by the ground truth bounding box for the referent.
After that, we feed the expanded masks into MAT.
With input masks, MAT removes the regions covered by the masks and fills these regions.
Examples of masks, expanded masks, and inpaintings are in Figure A1.
We remove gestural signals (through inpainting) from images when studying our model’s ability to learn these signals implicitly.
Before generating inpaintings, we expand the human mask to both sides by 50 pixels.
We reshape masks and images to 512 ˆ 512 before feeding them into the MAT model because the checkpoint produced by MAT only works for inputs of size 512 ˆ 512.
Outputs of the
MAT model are reshaped to their original sizes before feeding into our model.
We observe that, for a tiny number of images, human masks cannot be generated by F-RCNNs.
In these sporadic cases, we use the original image instead.
B A DDITIONAL LOSSES B. L OSSES FOR PREDICTED REFERENT BOUNDING BOXES
We use a weighted sum of L1 and GIoU losses for predicted bounding boxes.
Each bounding box
B “ p x, y, w, h q is represented using the x and y coordinate of the box center (x and y), width (w), and height (h).
We denote the predicted box as B p and its ground truth as B t .
L1 Loss For each pair of predicted box B p i and ground truth box B t i , the L1 loss is:
[Equation]
A
[Equation]
Each time, there are n pairs of predicted and ground truth boxes.
The total L1 loss for all pairs is:
[Equation]
A
[Equation]
GIoU loss Before computing the GIoU Loss (Rezatofighi et al., 2019), each box B “ p x, y, w, h q is transformed to ¯ B “ p x min , y min , x max , y max q , where x min “ x ´ w 2 , x max “ x ` w 2 , y min “ y ´ h 2 , y max “ y ` h 2 .
A
The area of predicted box ¯ B p and ground truth box ¯ B t are computed as:
[Equation]
The IoU and Union of ¯ B p and ¯ B t are computed as:
[Equation]
For each pair of ¯ B p i and ¯ B t i , the GIoU is:
[Equation]
The GIoU loss for one pair of the predicted box and target box is:
[Equation]
The GIoU loss for all pairs of predicted and target boxes is:
[Equation]
L OSSES FOR GESTURAL KEY POINTS
For the predicted eyes and fingertips or elbows and wrists, we use L1 loss.
Specifically, each time, our model predicts m pairs of gestural key points.
Each pair is denoted as pair p i “ p x eye pi , y eye pi , x fgt pi , y fgt pi
[Equation]
(for VTL) or pair p i “ p x elb pi , y elb pi , x wst pi , y wst pi q (for EWL).
The ground truth gestural key points are represented as pair t i “ p x eye ti , y eye ti , x fgt ti , y fgt ti q (for VTL) or pair t i “ p x elb ti , y elb ti , x wst ti , y wst ti q (for EWL).
The loss for each predicted gestural pair is defined as:
L
[Equation]
for VTL, or
[Equation]
for EWL.
The L1 gestural key point loss is:
[Equation]
A
Additionally, we apply a cross entropy loss L gesture CE for predicted gestural key points with two classes: “are gestural key points” and “are not gestural key points.”
The total loss for gestural key points is:
[Equation]
where α gesture L 1 “ 6 and L gesture CE “ 1 . 5 .
B. S OFT TOKEN LOSS
For each object, we predict token spans produced by the BPE scheme (Sennrich et al., 2016), instead of object categories, and set the maximum number of tokens to 256 following Kamath et al.
Following Kamath et al.
(2021), we use a soft token loss L token for the predicted token spans.
The soft token loss is a cross-entropy loss.
Specifically, an object may correspond to k token locations ( 1 ď k ď 256 ), and the ground-truth probability for each of the k token locations is 1 k .
B. M ATCHING STRATEGY
We match prediction and ground truth using the Hungarian algorithm (Kuhn, 1955; Carion et al., 2020) by minimizing the cost C :
[Equation]
where α L 1 “ 5 , α GIoU “ 2 , and α token “ 1 .
B. C ONTRASTIVE ALIGNMENT LOSS
The contrastive alignment loss encourages alignment between the object feature from the Transformer decoder and the text feature from the Transformer encoder.
The number of predicted objects is n , and the number of text tokens is l .
Let F o i and F t j denote the feature of the i th object and the feature of the j th token, respectively.
At the same time, let T ` i denote the set of tokens to be aligned to by the i th object, and let O ` i denote the set of objects to be aligned to the i th token.
Meanwhile, τ “ 0 . 07 is the temperature.
For all objects, the contrastive alignment loss is:
[Equation]
For all text tokens, the contrastive alignment loss is:
[Equation]
The final contrastive alignment loss is the average of L contrastive o and L contrastive t :
[Equation]
C C OMPUTING COSINE SIMILARITIES USING DIFFERENT LINES
The cosine similarity in Equation (1) can be computed using different lines.
Specifically, the eye, the fingertip, and the object can form a triangle, and there are three ways of choosing two lines from a triangle.
In Equation (1), we use the two lines connected by the eye.
We investigate the effects of using different lines for cosine similarity computation.
Specifically, we conducted an additional experiment using two lines connected by the fingertip.
In other words, we use the following two vectors: one from the fingertip to the eye, and the other from the object center to the fingertip.
A
Our results (Table A1) show that using the lines connected by the eye and using the two lines connected by the fingertip can be regarded as fungible.
In specific, using the two lines connected by the fingertip, the model’s performance is 69.0, 60.8, and 37.3 under the IoU threshold of 0.25, 0.50, and 0.75, respectively.
Compared to the EWL model, it obtains a +1.5 performance boost under the IoU threshold of 0.75.
Compared to the No Explicit
Gestural Key Points Model, it obtains a +4.1 and +3.4 performance boost under the IoU threshold of 0.25 and 0.50, respectively.
[Table]
A