Add Batch ebd3d0d7-bddc-4151-8730-91ff812a2497 data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+64
- 2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/ae7f1ffe-fe67-4917-84ae-5c196628c6e5_content_list.jsonAdded
- 2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/ae7f1ffe-fe67-4917-84ae-5c196628c6e5_model.jsonAdded
- 2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/ae7f1ffe-fe67-4917-84ae-5c196628c6e5_origin.pdfAdded+3
- 2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/full.mdAdded+582
- 2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/images.zipAdded+3
- 2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/layout.jsonAdded
- 2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/7bfffc83-27ef-4c73-aa19-9a15a6ee13fd_content_list.jsonAdded+1360
- 2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/7bfffc83-27ef-4c73-aa19-9a15a6ee13fd_model.jsonAdded+1993
- 2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/7bfffc83-27ef-4c73-aa19-9a15a6ee13fd_origin.pdfAdded+3
- 2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/full.mdAdded+268
- 2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/images.zipAdded+3
- 2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/layout.jsonAdded
- 2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/1834d63b-e3e0-4b42-9900-788dbb6bee22_content_list.jsonAdded+1581
- 2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/1834d63b-e3e0-4b42-9900-788dbb6bee22_model.jsonAdded
- 2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/1834d63b-e3e0-4b42-9900-788dbb6bee22_origin.pdfAdded+3
- 2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/full.mdAdded+309
- 2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/images.zipAdded+3
- 2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/layout.jsonAdded
- 2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/9d269c18-5110-4a81-a1b9-317c1455548e_content_list.jsonAdded+1617
- 2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/9d269c18-5110-4a81-a1b9-317c1455548e_model.jsonAdded+2178
- 2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/9d269c18-5110-4a81-a1b9-317c1455548e_origin.pdfAdded+3
- 2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/full.mdAdded+318
- 2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/images.zipAdded+3
- 2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/layout.jsonAdded
- 2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/d1f3cbdb-e07a-4952-8052-a9aa7bed81da_content_list.jsonAdded+1664
- 2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/d1f3cbdb-e07a-4952-8052-a9aa7bed81da_model.jsonAdded
- 2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/d1f3cbdb-e07a-4952-8052-a9aa7bed81da_origin.pdfAdded+3
- 2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/full.mdAdded+340
- 2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/images.zipAdded+3
- 2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/layout.jsonAdded
- 2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/2d762d0d-bad4-403d-98f7-4210b7f7e39d_content_list.jsonAdded
- 2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/2d762d0d-bad4-403d-98f7-4210b7f7e39d_model.jsonAdded
- 2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/2d762d0d-bad4-403d-98f7-4210b7f7e39d_origin.pdfAdded+3
- 2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/full.mdAdded+403
- 2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/images.zipAdded+3
- 2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/layout.jsonAdded
- 2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/6ac05fcd-de6a-4657-a3f2-a897a887dcbb_content_list.jsonAdded+1922
- 2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/6ac05fcd-de6a-4657-a3f2-a897a887dcbb_model.jsonAdded
- 2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/6ac05fcd-de6a-4657-a3f2-a897a887dcbb_origin.pdfAdded+3
- 2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/full.mdAdded
- 2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/images.zipAdded
- 2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/layout.jsonAdded
- 2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/e286768b-a5b2-4ea3-a9f1-4d06c6cc68f6_content_list.jsonAdded
- 2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/e286768b-a5b2-4ea3-a9f1-4d06c6cc68f6_model.jsonAdded
- 2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/e286768b-a5b2-4ea3-a9f1-4d06c6cc68f6_origin.pdfAdded
- 2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/full.mdAdded
- 2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/images.zipAdded
- 2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/layout.jsonAdded
- 2023/Talking Head Generation with Probabilistic Audio-to-Visual Diffusion Priors/7d213d41-b6ba-4fcf-a556-dbfb8dc18cb6_content_list.jsonAdded
3960 unmodified lines3961396239633960 unmodified lines2023/TCOVIS_[[:space:]]Temporally[[:space:]]Consistent[[:space:]]Online[[:space:]]Video[[:space:]]Instance[[:space:]]Segmentation/806a2113-930c-496f-99e8-ccd02b9307f7_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TEMPO_[[:space:]]Efficient[[:space:]]Multi-View[[:space:]]Pose[[:space:]]Estimation,[[:space:]]Tracking,[[:space:]]and[[:space:]]Forecasting/5ca0ee4c-d0bf-43fa-950c-91f169b1d361_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TF-ICON_[[:space:]]Diffusion-Based[[:space:]]Training-Free[[:space:]]Cross-Domain[[:space:]]Image[[:space:]]Composition/082c8f3d-29c9-4e4b-9ab4-3aa55681552e_origin.pdf filter=lfs diff=lfs merge=lfs -text3960 unmodified lines39613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640273960 unmodified lines2023/TCOVIS_[[:space:]]Temporally[[:space:]]Consistent[[:space:]]Online[[:space:]]Video[[:space:]]Instance[[:space:]]Segmentation/806a2113-930c-496f-99e8-ccd02b9307f7_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TEMPO_[[:space:]]Efficient[[:space:]]Multi-View[[:space:]]Pose[[:space:]]Estimation,[[:space:]]Tracking,[[:space:]]and[[:space:]]Forecasting/5ca0ee4c-d0bf-43fa-950c-91f169b1d361_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TF-ICON_[[:space:]]Diffusion-Based[[:space:]]Training-Free[[:space:]]Cross-Domain[[:space:]]Image[[:space:]]Composition/082c8f3d-29c9-4e4b-9ab4-3aa55681552e_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TIFA_[[:space:]]Accurate[[:space:]]and[[:space:]]Interpretable[[:space:]]Text-to-Image[[:space:]]Faithfulness[[:space:]]Evaluation[[:space:]]with[[:space:]]Question[[:space:]]Answering/ae7f1ffe-fe67-4917-84ae-5c196628c6e5_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TIJO_[[:space:]]Trigger[[:space:]]Inversion[[:space:]]with[[:space:]]Joint[[:space:]]Optimization[[:space:]]for[[:space:]]Defending[[:space:]]Multimodal[[:space:]]Backdoored[[:space:]]Models/7bfffc83-27ef-4c73-aa19-9a15a6ee13fd_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TM2D_[[:space:]]Bimodality[[:space:]]Driven[[:space:]]3D[[:space:]]Dance[[:space:]]Generation[[:space:]]via[[:space:]]Music-Text[[:space:]]Integration/1834d63b-e3e0-4b42-9900-788dbb6bee22_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TMA_[[:space:]]Temporal[[:space:]]Motion[[:space:]]Aggregation[[:space:]]for[[:space:]]Event-based[[:space:]]Optical[[:space:]]Flow/9d269c18-5110-4a81-a1b9-317c1455548e_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TMR_[[:space:]]Text-to-Motion[[:space:]]Retrieval[[:space:]]Using[[:space:]]Contrastive[[:space:]]3D[[:space:]]Human[[:space:]]Motion[[:space:]]Synthesis/d1f3cbdb-e07a-4952-8052-a9aa7bed81da_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TORE_[[:space:]]Token[[:space:]]Reduction[[:space:]]for[[:space:]]Efficient[[:space:]]Human[[:space:]]Mesh[[:space:]]Recovery[[:space:]]with[[:space:]]Transformer/2d762d0d-bad4-403d-98f7-4210b7f7e39d_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TRM-UAP_[[:space:]]Enhancing[[:space:]]the[[:space:]]Transferability[[:space:]]of[[:space:]]Data-Free[[:space:]]Universal[[:space:]]Adversarial[[:space:]]Perturbation[[:space:]]via[[:space:]]Truncated[[:space:]]Ratio[[:space:]]Maximization/6ac05fcd-de6a-4657-a3f2-a897a887dcbb_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Take-A-Photo_[[:space:]]3D-to-2D[[:space:]]Generative[[:space:]]Pre-training[[:space:]]of[[:space:]]Point[[:space:]]Cloud[[:space:]]Models/e286768b-a5b2-4ea3-a9f1-4d06c6cc68f6_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Talking[[:space:]]Head[[:space:]]Generation[[:space:]]with[[:space:]]Probabilistic[[:space:]]Audio-to-Visual[[:space:]]Diffusion[[:space:]]Priors/7d213d41-b6ba-4fcf-a556-dbfb8dc18cb6_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Taming[[:space:]]Contrast[[:space:]]Maximization[[:space:]]for[[:space:]]Learning[[:space:]]Sequential,[[:space:]]Low-latency,[[:space:]]Event-based[[:space:]]Optical[[:space:]]Flow/ff7524e3-aa7d-4baa-a842-04712fa34f60_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Tangent[[:space:]]Model[[:space:]]Composition[[:space:]]for[[:space:]]Ensembling[[:space:]]and[[:space:]]Continual[[:space:]]Fine-tuning/1ae449c1-93a5-4652-bb27-6a83c99dd85c_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Tangent[[:space:]]Sampson[[:space:]]Error_[[:space:]]Fast[[:space:]]Approximate[[:space:]]Two-view[[:space:]]Reprojection[[:space:]]Error[[:space:]]for[[:space:]]Central[[:space:]]Camera[[:space:]]Models/636b4c99-6986-4080-bf56-9a578e79f107_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Task[[:space:]]Agnostic[[:space:]]Restoration[[:space:]]of[[:space:]]Natural[[:space:]]Video[[:space:]]Dynamics/e82ebeb9-3e53-42eb-9d7f-02ba103a6afc_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Task-Oriented[[:space:]]Multi-Modal[[:space:]]Mutual[[:space:]]Leaning[[:space:]]for[[:space:]]Vision-Language[[:space:]]Models/b6090cd5-35b5-49d1-9775-853efd91c055_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Task-aware[[:space:]]Adaptive[[:space:]]Learning[[:space:]]for[[:space:]]Cross-domain[[:space:]]Few-shot[[:space:]]Learning/d73ef7d6-b7de-4511-b8bf-4b4e20276122_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TaskExpert_[[:space:]]Dynamically[[:space:]]Assembling[[:space:]]Multi-Task[[:space:]]Representations[[:space:]]with[[:space:]]Memorial[[:space:]]Mixture-of-Experts/2e3b51ba-4260-4b59-a865-225826178569_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Taxonomy[[:space:]]Adaptive[[:space:]]Cross-Domain[[:space:]]Adaptation[[:space:]]in[[:space:]]Medical[[:space:]]Imaging[[:space:]]via[[:space:]]Optimization[[:space:]]Trajectory[[:space:]]Distillation/1f4cb2e9-7a0d-4b5a-99a2-329016955f96_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TeD-SPAD_[[:space:]]Temporal[[:space:]]Distinctiveness[[:space:]]for[[:space:]]Self-Supervised[[:space:]]Privacy-Preservation[[:space:]]for[[:space:]]Video[[:space:]]Anomaly[[:space:]]Detection/a12231ff-0413-4e22-8eb5-06598dd6fed6_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Teaching[[:space:]]CLIP[[:space:]]to[[:space:]]Count[[:space:]]to[[:space:]]Ten/56d47f2c-86af-49f0-9e72-8decf5e81c8a_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Tem-Adapter_[[:space:]]Adapting[[:space:]]Image-Text[[:space:]]Pretraining[[:space:]]for[[:space:]]Video[[:space:]]Question[[:space:]]Answer/4a5fd117-e0c8-457c-9985-c705ba827466_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Template[[:space:]]Inversion[[:space:]]Attack[[:space:]]against[[:space:]]Face[[:space:]]Recognition[[:space:]]Systems[[:space:]]using[[:space:]]3D[[:space:]]Face[[:space:]]Reconstruction/203e5250-94d9-4833-ba8d-b9c548251baa_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Template-guided[[:space:]]Hierarchical[[:space:]]Feature[[:space:]]Restoration[[:space:]]for[[:space:]]Anomaly[[:space:]]Detection/b5ce36c9-1639-4be6-bce9-ead12d7207f0_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Temporal[[:space:]]Collection[[:space:]]and[[:space:]]Distribution[[:space:]]for[[:space:]]Referring[[:space:]]Video[[:space:]]Object[[:space:]]Segmentation/3b08deeb-33eb-47b0-94a4-e0af89436d2d_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Temporal[[:space:]]Enhanced[[:space:]]Training[[:space:]]of[[:space:]]Multi-view[[:space:]]3D[[:space:]]Object[[:space:]]Detector[[:space:]]via[[:space:]]Historical[[:space:]]Object[[:space:]]Prediction/553f0662-4b8d-4936-ab47-ad291ff03dd2_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Temporal-Coded[[:space:]]Spiking[[:space:]]Neural[[:space:]]Networks[[:space:]]with[[:space:]]Dynamic[[:space:]]Firing[[:space:]]Threshold_[[:space:]]Learning[[:space:]]with[[:space:]]Event-Driven[[:space:]]Backpropagation/6f1f26ae-7b19-4337-978a-c5b559913901_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Test[[:space:]]Time[[:space:]]Adaptation[[:space:]]for[[:space:]]Blind[[:space:]]Image[[:space:]]Quality[[:space:]]Assessment/4f23b86f-f4db-4257-aee1-6b77c4f73657_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Test-time[[:space:]]Personalizable[[:space:]]Forecasting[[:space:]]of[[:space:]]3D[[:space:]]Human[[:space:]]Poses/205eafc7-d672-437b-9b70-81a2995fa72d_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Tetra-NeRF_[[:space:]]Representing[[:space:]]Neural[[:space:]]Radiance[[:space:]]Fields[[:space:]]Using[[:space:]]Tetrahedra/8c410ac7-5eb0-4f17-a4bb-daadb2446edc_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TexFusion_[[:space:]]Synthesizing[[:space:]]3D[[:space:]]Textures[[:space:]]with[[:space:]]Text-Guided[[:space:]]Image[[:space:]]Diffusion[[:space:]]Models/698eb5a8-8d74-4b19-b9a7-1fe068b4d1fd_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Text-Conditioned[[:space:]]Sampling[[:space:]]Framework[[:space:]]for[[:space:]]Text-to-Image[[:space:]]Generation[[:space:]]with[[:space:]]Masked[[:space:]]Generative[[:space:]]Models/c18683e6-ab91-4cf4-bf6b-203837440b00_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Text-Driven[[:space:]]Generative[[:space:]]Domain[[:space:]]Adaptation[[:space:]]with[[:space:]]Spectral[[:space:]]Consistency[[:space:]]Regularization/e13295e4-a033-4d38-a3a5-88f3b3385e81_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Text2Performer_[[:space:]]Text-Driven[[:space:]]Human[[:space:]]Video[[:space:]]Generation/45c9b878-7941-4c19-aa7b-acd77ad00875_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Text2Room_[[:space:]]Extracting[[:space:]]Textured[[:space:]]3D[[:space:]]Meshes[[:space:]]from[[:space:]]2D[[:space:]]Text-to-Image[[:space:]]Models/ec345001-5311-431e-90bd-6b91f4b47f2a_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Text2Tex_[[:space:]]Text-driven[[:space:]]Texture[[:space:]]Synthesis[[:space:]]via[[:space:]]Diffusion[[:space:]]Models/8023656a-1169-49dd-b8cd-4db39941377d_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Text2Video-Zero_[[:space:]]Text-to-Image[[:space:]]Diffusion[[:space:]]Models[[:space:]]are[[:space:]]Zero-Shot[[:space:]]Video[[:space:]]Generators/56c5c84c-dd92-4857-8492-3e83266b25fc_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TextManiA_[[:space:]]Enriching[[:space:]]Visual[[:space:]]Feature[[:space:]]by[[:space:]]Text-driven[[:space:]]Manifold[[:space:]]Augmentation/21a8728d-cd5e-44be-95fc-d79147ae763b_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TextPSG_[[:space:]]Panoptic[[:space:]]Scene[[:space:]]Graph[[:space:]]Generation[[:space:]]from[[:space:]]Textual[[:space:]]Descriptions/a412d306-b042-443c-958a-505db74fd5e7_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Texture[[:space:]]Generation[[:space:]]on[[:space:]]3D[[:space:]]Meshes[[:space:]]with[[:space:]]Point-UV[[:space:]]Diffusion/295801ea-f88d-446b-aeea-24167c36963d_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Texture[[:space:]]Learning[[:space:]]Domain[[:space:]]Randomization[[:space:]]for[[:space:]]Domain[[:space:]]Generalized[[:space:]]Segmentation/5378f03d-031c-45ab-a522-6e62326e01af_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Devil[[:space:]]is[[:space:]]in[[:space:]]the[[:space:]]Crack[[:space:]]Orientation_[[:space:]]A[[:space:]]New[[:space:]]Perspective[[:space:]]for[[:space:]]Crack[[:space:]]Detection/b4b142a9-63c6-4b31-9bbd-a4e1e31c2d72_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Devil[[:space:]]is[[:space:]]in[[:space:]]the[[:space:]]Upsampling_[[:space:]]Architectural[[:space:]]Decisions[[:space:]]Made[[:space:]]Simpler[[:space:]]for[[:space:]]Denoising[[:space:]]with[[:space:]]Deep[[:space:]]Image[[:space:]]Prior/6b883d6c-8e38-4d25-996f-79941abad307_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Effectiveness[[:space:]]of[[:space:]]MAE[[:space:]]Pre-Pretraining[[:space:]]for[[:space:]]Billion-Scale[[:space:]]Pretraining/5b230860-aa61-4f33-9fe7-2407ba62f713_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Euclidean[[:space:]]Space[[:space:]]is[[:space:]]Evil_[[:space:]]Hyperbolic[[:space:]]Attribute[[:space:]]Editing[[:space:]]for[[:space:]]Few-shot[[:space:]]Image[[:space:]]Generation/e705b187-21ba-4812-b0e4-1feb752f1cdd_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Making[[:space:]]and[[:space:]]Breaking[[:space:]]of[[:space:]]Camouflage/b706bafb-dae1-4647-ad2f-702e05fcaa82_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Perils[[:space:]]of[[:space:]]Learning[[:space:]]From[[:space:]]Unlabeled[[:space:]]Data_[[:space:]]Backdoor[[:space:]]Attacks[[:space:]]on[[:space:]]Semi-supervised[[:space:]]Learning/b27d12fb-927b-406e-bce3-95c8be702c01_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Power[[:space:]]of[[:space:]]Sound[[:space:]](TPoS)_[[:space:]]Audio[[:space:]]Reactive[[:space:]]Video[[:space:]]Generation[[:space:]]with[[:space:]]Stable[[:space:]]Diffusion/3b9298a9-5799-4904-96da-bef6d287733c_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Stable[[:space:]]Signature_[[:space:]]Rooting[[:space:]]Watermarks[[:space:]]in[[:space:]]Latent[[:space:]]Diffusion[[:space:]]Models/c2da89cd-17c8-420c-b57b-7af434285ab7_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Unreasonable[[:space:]]Effectiveness[[:space:]]of[[:space:]]Large[[:space:]]Language-Vision[[:space:]]Models[[:space:]]for[[:space:]]Source-Free[[:space:]]Video[[:space:]]Domain[[:space:]]Adaptation/c596fbdc-cd07-43b2-9a08-9301d722c491_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/The[[:space:]]Victim[[:space:]]and[[:space:]]The[[:space:]]Beneficiary_[[:space:]]Exploiting[[:space:]]a[[:space:]]Poisoned[[:space:]]Model[[:space:]]to[[:space:]]Train[[:space:]]a[[:space:]]Clean[[:space:]]Model[[:space:]]on[[:space:]]Poisoned[[:space:]]Data/fdfec7d9-d3ec-4468-9f42-c0ec2550345d_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Theoretical[[:space:]]and[[:space:]]Numerical[[:space:]]Analysis[[:space:]]of[[:space:]]3D[[:space:]]Reconstruction[[:space:]]Using[[:space:]]Point[[:space:]]and[[:space:]]Line[[:space:]]Incidences/5fbfedc8-4ebc-4e53-8cf0-a4029a8a49ba_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Thinking[[:space:]]Image[[:space:]]Color[[:space:]]Aesthetics[[:space:]]Assessment_[[:space:]]Models,[[:space:]]Datasets[[:space:]]and[[:space:]]Benchmarks/42e3e8c9-44a4-4bef-b505-a2c5b22ff20f_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TiDAL_[[:space:]]Learning[[:space:]]Training[[:space:]]Dynamics[[:space:]]for[[:space:]]Active[[:space:]]Learning/cbb37e36-1eb0-42b7-b0b1-3b2793b016b9_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TiDy-PSFs_[[:space:]]Computational[[:space:]]Imaging[[:space:]]with[[:space:]]Time-Averaged[[:space:]]Dynamic[[:space:]]Point-Spread-Functions/0fbb2c88-7b44-409c-9798-461b2922052e_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Tiled[[:space:]]Multiplane[[:space:]]Images[[:space:]]for[[:space:]]Practical[[:space:]]3D[[:space:]]Photography/332ad0e6-c530-4dba-82ae-058961745db1_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Time[[:space:]]Does[[:space:]]Tell_[[:space:]]Self-Supervised[[:space:]]Time-Tuning[[:space:]]of[[:space:]]Dense[[:space:]]Image[[:space:]]Representations/1b69a328-51e9-4f52-9cd0-ceb8e6de4113_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Time-to-Contact[[:space:]]Map[[:space:]]by[[:space:]]Joint[[:space:]]Estimation[[:space:]]of[[:space:]]Up-to-Scale[[:space:]]Inverse[[:space:]]Depth[[:space:]]and[[:space:]]Global[[:space:]]Motion[[:space:]]using[[:space:]]a[[:space:]]Single[[:space:]]Event[[:space:]]Camera/0f2857ef-2537-43f4-b49d-a3319a025266_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Tiny[[:space:]]Updater_[[:space:]]Towards[[:space:]]Efficient[[:space:]]Neural[[:space:]]Network-Driven[[:space:]]Software[[:space:]]Updating/23a6116f-5b95-4dcd-97e5-95528a6d1fff_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TinyCLIP_[[:space:]]CLIP[[:space:]]Distillation[[:space:]]via[[:space:]]Affinity[[:space:]]Mimicking[[:space:]]and[[:space:]]Weight[[:space:]]Inheritance/7a0fee57-111a-443f-8a63-68f0c3d1c0b8_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/To[[:space:]]Adapt[[:space:]]or[[:space:]]Not[[:space:]]to[[:space:]]Adapt_[[:space:]]Real-Time[[:space:]]Adaptation[[:space:]]for[[:space:]]Semantic[[:space:]]Segmentation/d5cc5a6e-449b-4085-98b6-42b0071a0627_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Token-Label[[:space:]]Alignment[[:space:]]for[[:space:]]Vision[[:space:]]Transformers/ef46bf1f-34a3-4e70-bf1a-b3f5f27b821d_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Too[[:space:]]Large;[[:space:]]Data[[:space:]]Reduction[[:space:]]for[[:space:]]Vision-Language[[:space:]]Pre-Training/bf4cd6c9-c260-42c2-88a5-f694382bd718_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/ToonTalker_[[:space:]]Cross-Domain[[:space:]]Face[[:space:]]Reenactment/d3014894-36d6-4bc9-bdc4-403449ecf9bd_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/TopoSeg_[[:space:]]Topology-Aware[[:space:]]Nuclear[[:space:]]Instance[[:space:]]Segmentation/a134e8ff-997a-47c5-810d-0149806d46fc_origin.pdf filter=lfs diff=lfs merge=lfs -text2023/Total-Recon_[[:space:]]Deformable[[:space:]]Scene[[:space:]]Reconstruction[[:space:]]for[[:space:]]Embodied[[:space:]]View[[:space:]]Synthesis/49fdb57e-3f25-4f0f-85ac-577ce80d4f48_origin.pdf filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:c30a8af439c351e53883ccd5d235be6033f71421f464bd30fdea3f082bbf9667size 5812529123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582# TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering
Yushi Hu<sup>1</sup> Benlin Liu<sup>1</sup> Jungo Kasai<sup>1</sup> Yizhong Wang<sup>1</sup> Mari Ostendorf<sup>1</sup> Ranjay Krishna<sup>1,2</sup> Noah A. Smith<sup>1,2</sup> <sup>1</sup>University of Washington <sup>2</sup>Allen Institute for AI https://tifa-benchmark.github.io/
# Abstract
Despite thousands of researchers, engineers, and artists actively working on improving text-to-image generation models, systems often fail to produce images that accurately align with the text inputs. We introduce TIFA (Text-to-Image Faithfulness evaluation with question Answering), an automatic evaluation metric that measures the faithfulness of a generated image to its text input via visual question answering (VQA). Specifically, given a text input, we automatically generate several question-answer pairs using a language model. We calculate image faithfulness by checking whether existing VQA models can answer these questions using the generated image. TIFA is a reference-free metric that allows for fine-grained and interpretable evaluations of generated images. TIFA also has better correlations with human judgments than existing metrics. Based on this approach, we introduce TIFA v1.0, a benchmark consisting of 4K diverse text inputs and 25K questions across 12 categories (object, counting, etc.). We present a comprehensive evaluation of existing text-to-image models using TIFA v1.0 and highlight the limitations and challenges of current models. For instance, we find that current text-to-image models, despite doing well on color and material, still struggle in counting, spatial relations, and composing multiple objects. We hope our benchmark will help carefully measure the research progress in text-to-image synthesis and provide valuable insights for further research.<sup>1</sup>
# 1. Introduction
While we welcome artistic freedom when we commission art from artists, images produced by deep generative models [44, 46, 43, 47, 61] should conform closely to our requests. Despite the advances in generative models, it is still challenging for models to produce images faithful to users' intentions [40, 11, 30, 35, 36]. For example, current
Stable Diffusion v1.5  Text Input: A person sitting on a horse in air over gate in grass with people and trees in background.
 Stable Diffusion v2.1
# GPT-3 generated + verified QAs (pre-generated in TIFA v1.0 benchmark)
Question: what is the animal?
Answer inferred from text: horse
VQA:
Horse

Horse

Question: is there a gate?
VQA:
No

Answer inferred from text: yes
Yes

Question: is the horse in air?
VQA:





TIFA 71.4

ined

Accurate

Interpretable
# v.s. other automatic image-text align metrics
CLIPScore

SPICE

#
sim. (caption, text input)
CLIP:24.3 SPICE:22.2

CLIP: 21.3 SPICE: 11.8
Figure 1. Illustration of how TIFA works, and comparison with the widely-used CLIPScore and SPICE metrics. Given the text input, TIFA uses GPT-3 to generate several question-answer pairs, and a QA model filters them (3 out of 14 questions for this text input are shown). TIFA measures whether VQA models can accurately answer these questions given the generated image. In this example, TIFA indicates that the image generated by Stable Diffusion v2.1 is better than that by v1.5, while CLIP and SPICE yield the opposite result. The text input is from the MSCOCO validation set.
models often fail to compose multiple objects [40, 11, 35], bind attributes to the wrong objects [11], and struggle in generating visual text [36]. Today, there are efforts to address
 Figure 2. (a) Overview of how TIFA evaluates the faithfulness of a synthesized image. TIFA uses a language model (LM), a question-answering (QA) model, and a visual-question-answering (VQA) model. Given a text input, we generate several question-answer pairs with the LM and then filter them via the QA model. To evaluate the faithfulness of a synthesized image to the text input, a VQA model answers these visual questions using the image, and we check the answers for correctness. (b) TIFA v1.0 benchmark. While TIFA is applicable to any text prompt, to allow direct comparison across different studies, and for ease of use, we introduce the TIFA v1.0 benchmark, a repository of text inputs along with pre-generated question-answer tuples with answer choices. To evaluate a text-to-image model, a user first produces the images for the text inputs in TIFA v1.0 and then performs VQA with our provided tools on generated images to compute TIFA.

these challenges: researchers are imposing linguistic structure with diffusion guidance to produce images with multiple objects [11]; others are designing reward models trained using human feedback to better align generations with user intention [30]. However, progress is difficult to quantify without accurate and interpretable evaluation measures that explain when and how models struggle.
A critical bottleneck, therefore, is the lack of reliable automatic evaluation metrics for text-to-image generation faithfulness. One of the popular metrics is CLIPScore [17], which measures the cosine similarity between the CLIP embeddings [42] of the text input and the generated image. However, since CLIP is not effective at counting objects [42], or reasoning compositionally [37], CLIPScore is unreliable and often inaccurate. Another family of evaluation metrics uses image captions, in which an image captioning model first converts the image into text, and then the image caption is evaluated by comparing it against the text input. Unfortunately, using captioning models is insufficient since they might decide to ignore salient information in images or focus on other non-essential image regions [24]; for example, a captioning model might say that the images in Figure 1 are "a field of grass with trees in the background". Moreover, evaluating text (caption) generation is inherently challenging [23, 26]. Another recent text-to-image evaluation is DALL-Eval [6], which employs object detection to determine if the objects in the texts are in the generated images. However, this approach only works on synthesized text and measures faithfulness along the limited axes of objects, counting, colors, and spatial relationships but misses activities, geolocation, weather, time, materials, shapes, sizes, and other potential categories we often ask about when we recall images from memory [29].
To address the above challenges, we introduce TIFA, a new metric to evaluate text-to-image generation faithfulness.
Our approach is illustrated in Figure 2. Given a repository of text inputs, we automatically generate question-answer pairs for each text via a language model (here, GPT-3 [3]). A question-answering (QA) system (here, UnifiedQA [25]) is subsequently used to verify and filter these question-answer pairs. To evaluate a generated image, we use a visual-question-answering (VQA) system (here, mPLUGlarge [31], BLIP-2 [32], etc.) to answer the questions given the generated image. We measure the image's faithfulness to the text input as the accuracy of the answers generated by the VQA system. While the accuracy of TIFA is dependent on the accuracy of the VQA model, our experiments show that TIFA has much higher correlation with human judgments than CLIPScore (Spearman's $\rho = 0.60$ vs. 0.33) and captioning-based approaches (Spearman's $\rho = 0.60$ vs. 0.34). Additionally, since the LMs and VQA models will continue to improve, we hypothesize that TIFA will continue to be more reliable over time. Also, our metrics can automatically detect when elements are missing in the generation: in Figure 2, TIFA detects that the generated image does not contain a TV.
To promote the use of our new evaluation metric, we release TIFA v1.0, a large-scale text-to-image generation benchmark containing 4K diverse text inputs, sampled from the MSCOCO captions [34], DrawBench [47], PartiPrompts [61], and PaintSkill [6]. Each input comes with a pre-generated set of question-answer pairs, resulting in 25K questions covering 4.5K distinct elements. These questions have been automatically generated and pre-filtered using a question-answering model. This benchmark also comes with different VQA models [57, 28, 58, 32, 31, 21] that can be used to evaluate generative models and can be easily extended to use future VQA models when they become available.
We conduct a comprehensive evaluation of current text-
to-image models using TIFA v1.0. Thanks to TIFA's ability to detect fine-grained unfaithfulness in images, we find that current state-of-the-art models are good at rendering common objects, animals, and colors, but still struggle in composing multiple objects, reasoning about spatial relations, and binding the correct activity for each entity. In addition, our ablation experiments show that TIFA is robust to different VQA models. Future researchers can use TIFA v1.0 to compare their text-to-image models' faithfulness across different studies. Also, future generative models may focus on addressing the weaknesses of current models that TIFA discovered. In addition, with TIFA, users can customize evaluations with their own text inputs and questions [10]; for example, a future TIFA benchmark could focus on counting or scene text.
# 2. Related Work
We compare TIFA to other image and language generation evaluation metrics.
Prior image generation evaluation Prior work usually compares image generation models via pairwise comparison by humans. How to design automatic evaluation metrics to approximate human assessment of the quality of machine-generated images has always been a major challenge in computer vision. There are two aspects to evaluate, namely image quality and image-text alignment. Inception Score [48] and FID [18] are the most widely adopted metrics for image quality. They compare the features of the generated images and gold images extracted from a pre-trained Inception-V3 model [52] to evaluate the fidelity and diversity of generated images. However, they rely on ground-truth images and are based on a classification model, which makes them not suitable for complex datasets [12]. For image-text alignment, prior metrics are mainly based on CLIP [42], captioning, and object detection models. CLIPScore [17] and CLIP-R [39] are based on the cosine similarity of image and text CLIP [42] embeddings. [6, 19, 20] first convert the images using a captioning model, and then compare the image caption with the text using metrics like CIDEr [55] and SPICE [1]. SOA [19] and DALL-Eval [6] employ object detection models to determine if objects, attributes, and relations in the text input are in the generated image. However, this approach only works on synthesized text inputs and measures faithfulness on limited axes (object, counting, color, spatial relation), missing elements like material, shape, activities, and context. In contrast, thanks to the flexibility of questions, TIFA works on any text inputs and evaluates faithfulness across a broad spectrum of dimensions.
Summarization evaluation in NLP TIFA is inspired by the summarization evaluation methods based on question answering (QA) [56, 50]. Given a summary, a language model generates a set of questions about the text. A QA model checks if the same answer can be inferred from the
text and the summary. These QA-based metrics have much higher correlations with human judgments on the factual consistency of summarization than other automatic metrics [56, 50]. TIFA can be seen as treating the text input for the text-to-image model as a summary of the generated image.
# 3. The TIFA Metric
We introduce a framework for automatically estimating the faithfulness of an image to its text prompt. Given a text input $T$ , we aim to measure the faithfulness of the generated image $I$ . An overview of our metric is illustrated in Figure 2. From $T$ , we generate $N$ multiple-choice question-answer tuples $\{Q_i, C_i, A_i\}_{i=1}^N$ , in which $Q_i$ is a question, $C_i$ is a set of answer choices, and $A_i \in C_i$ is the gold answer. The answer $A_i$ can be inferred given $T, Q_i$ , and $C_i$ . Next, for each question $Q_i$ , we use a VQA model to produce an answer $A_i^{\mathrm{VQA}} = \max_{a \in C_i} p(a \mid I, Q_i)$ . We define the faithfulness between the text $T$ and image $I$ as the VQA accuracy:
$$f a i t h f u l n e s s (T, I) = \frac {1}{N} \sum_ {i = 1} ^ {N} \mathbb {1} \left[ A _ {i} ^ {\mathrm {V Q A}} = A _ {i} \right] \tag {1}$$
The range of our faithfulness score is $[0, 1]$ . It is maximized when we have a performant VQA model, and the image $I$ accurately covers the information in the text $T$ so that for any question $Q$ , which can be answered given $T$ can also be answered given $I$ . Several key design decisions will be addressed in later sections: how to generate questions ( $\S 3.1$ ), how to control the question quality ( $\S 3.2$ ), and how to answer those questions ( $\S 3.3$ ). Finally, we give a step-by-step qualitative example of TIFA in Figure 4.
# 3.1. Question-Answer Generation
Our main challenge is to generate diverse questions that cover all elements of the text input evenly. We also simplify the question-generation pipeline into a single GPT-3 [3] completion, so that TIFA can exploit the power of recent language models (LM) and work with updated black-box LMs (e.g., ChatGPT) in the future.
Inspired by prior work [4], given a text prompt $T$ , we generate the question-answer tuples $\{Q_i, C_i, A_i\}_{i=1}^N$ via the pipeline illustrated in Figure 3. Different from prior work, which relies on multiple components, our pipeline is completed by a single inference run via in-context learning with GPT-3 [3, 59, 22, 41, 51], thereby avoiding the need for intermediate human annotations. We annotate 15 examples and use them as in-context examples for GPT-3 to follow. Here we take the text "A photo of three dogs" as an example. Each in-context example contains the following steps:
Element extraction Given text prompt $T$ , GPT-3 will first extract all elements $\{v_i\}_{i=1}^m$ following prior work [4] (for the in-context examples, we perform element extraction manually). The elements include noun phrases (including named
 Figure 3. Our question-answer pair generation pipeline. The whole pipeline can be executed via a single inference of GPT-3 via in-context learning. Given the text prompt, GPT-3 first extracts the elements and then generates two questions for each element. The GPT-3 output is then parsed and filtered by UnifiedQA.
entities), verbs, adjectives, adverbs, and parse tree spans with no more than 3 words altogether. For the above example, the elements are photo, three, dogs.
Element category classification For each element $v_{i}$ , following [29], we classify the elements into one of the following 12 categories: object, activity, animal, food, counting, color, material, spatial, location, shape, attribute, and other. As shown in Figure 3, text generated from GPT-3 contains the category corresponding to each question. For example, "three" is "counting", and "dogs" is classified as "animal." This step allows a detailed analysis of the text-to-image model's ability in each category.
Question generation conditioned on elements For each element $v_{i}$ , we generate two questions. The first is a question that should be answered "yes" for a faithful generated image, and the second question has $v_{i}$ as its answer. For example, two questions are generated for the element "three". The first is "are there three dogs?", and the choices are {yes, no}. The second is "how many dogs are there?", and the choices are {1,2,3,4}. These two types of questions make our evaluations diverse and robust to surface-level differences.
Completing above steps by prompting GPT-3 once As mentioned earlier, for each text $T$ , the whole pipeline can be completed by one GPT-3 inference. We annotated 15
in-context examples that cover all types of questions. The full prompt is in the Appendix. The prompt format is shown in Figure 3. Our in-context examples follow the same format, and identical examples are used for all text inputs, leading to a fixed and limited amount of human annotation cost. We use code-davinci-002 engine for question generation, and the decoding temperature is 0.
# 3.2. Question Filtering
To ensure the quality of generated images, we use UnifiedQA [25] to verify the GPT-3 generated question-answer pairs and filter out the ones that GPT-3 and UnifiedQA do not agree on. UnifiedQA $^2$ is a state-of-the-art multi-task question-answering model that can answer both multiple-choice and free-form questions. Denote the UnifiedQA model as $QA$ . Given the text $T$ , question $Q_{i}$ , choices $C_{i}$ , and answer $A_{i}$ , Let $A_{i}^{f} = QA(T,Q_{i})$ be the free-form answer, and $A_{i}^{mc} = QA(T,Q_{i},C_{i})$ be the multiple-choice answer. We keep the question if $A_{i} = A_{i}^{mc}$ and the word-level $F_{1}$ score between $A_{i}^{f}$ and $A_{i}$ is greater than 0.7. We conduct a human evaluation on 1000 filtered question-answer pairs. Only 7 are considered not reasonable (e.g., generated choices do not include a correct answer). Details are in Appendix C.
Recommended VQA model Based on considerations over the accuracy, correlation with human judgments, and run time, we currently suggest using mPLUG-large as the VQA model for TIFA. Analysis is given in Section 5.4. Like the LM and QA components, the VQA component can be updated in the future as the technology improves.
# 3.3. VQA Models
Since our questions contain a diverse set of visual elements (e.g., activity, art style), we use open-domain pre-trained vision-language models as our VQA model (rather than closed-class classification models fine-tuned on VQAv2 [14]). We provide tools to easily perform VQA on arbitrary images and questions, based on 5 state-of-the-art VQA models trained with distinct data and strategies.
Vision-language models The general pre-trained vision-language model are GIT-large [57], VILT-B/32 [28], OFA-large [58], and mPLUG-large [31]. These models are pretrained on a large amount of image-text pairs, and downstream image-to-text tasks like image captioning and visual question answering. Notice that these models have not been trained to answer multiple-choice questions. For each question, we first decode the free-form answer and then choose the choice that has the highest similarity with the decoded answer, measured by SBERT [45]. Another model we use is BLIP-2 FlanT5-XL [32], in which a VIT [8] is connected with a frozen FlanT5 [7] via a lightweight transformer. This
Text Input: A wet dog standing on a beach next to the ocean.
# Step 1: Question Generation + Filtering
<table><tr><td>About dog (animal/human)</td><td>About ocean (location)</td><td>About wet (attribute)</td></tr><tr><td>Q: Is this a dog?</td><td>Q: Is there an ocean?</td><td>Q: Is the dog wet?</td></tr><tr><td>A: Yes</td><td>A: Yes</td><td>A: Yes</td></tr><tr><td>Q: What animal is in the picture?</td><td>Q: What type of place is this?</td><td>Q: Is the dog wet or dry?</td></tr><tr><td>A: Dog</td><td>A: Ocean</td><td>A: Wet</td></tr><tr><td>About beach (location)</td><td>About standing (activity)</td><td>About next to (spatial relation)</td></tr><tr><td>Q: Is this a beach?</td><td>Q: Is the dog standing?</td><td>Q: Is the dog next to the ocean?</td></tr><tr><td>A: Yes</td><td>A: Yes</td><td>A: Yes</td></tr><tr><td>Q: What type of place is this?</td><td>Q: What is the dog doing?</td><td>Q: Is the dog next to or in the ocean?</td></tr><tr><td>A: Beach</td><td>A: Standing</td><td>A: Next to</td></tr></table>
# Step 2: Visual Question Answering
 Stable Diffusion v1.5 image
 Figure 4. Step-by-step qualitative example of TIFA metric. Given a text input, we first generate question-answer pairs and filter them. We strike through the questions filtered out by UnifiedQA. Then we run VQA models on the generated image to get the TIFA score.
TIFA $7 / 10 = 0.7$
About dog (animal/human)
Q: Is this a dog?
A:Yes
Q: What animal is in the picture?
A: Dog

About beach (location)
Q: Is this a beach?
A:Yes
Q: What type of place is this?
A:Beach

About ocean (location)
Q: Is there an ocean?
A:Yes

About standing (activity)
Q: Is the dog standing?
A: No
About wet (attribute)
Q: Is the dog wet?
A: No
Q: Is the dog wet or dry?
A: Dry
About next to (spatial relation)
Q: Is the dog next to the ocean?
A:Yes
Q: Is the dog next to or in the ocean?
A: Next to






model allows for performing multiple-choice VQA directly due to the flexibility of the LM.
# 4. FIFA v1.0: Benchmark for Text-to-Image Generation Faithfulness
In this section, we introduce TIFA v1.0, a text-to-image generation faithfulness benchmark based on the evaluation method discussed in Section 3. The benchmark consists of 4,081 diverse text inputs paired with 25,829 question-answer pairs. Each question is classified into one of the categories discussed in Section 3.1. The benchmark also comes with Python pip-installable APIs to perform VQA with various state-of-the-art VQA models on arbitrary visual questions. The overall TIFA for each text-to-image model is computed by averaging TIFA scores of images generated from each text input in the benchmark.
# 4.1. Text Collections
We collect 4,081 text inputs to benchmark text-to-image models' generation ability on diverse tasks. 2,000 text inputs are image captions from COCO validation set [34]. These captions have corresponding gold images. Since text-to-image models are often used to create abstract art, we also
collect 2,081 text inputs from previous works that do not correspond to any real image. All text inputs we use contain $\geq 3$ words. We include 161 from DrawBench used in Imagen [47] (texts that are categorized as "misspellings" and "rare words" are removed); 1420 from PartiPrompt used in Parti [61] (texts in category "abstract" are removed); and 500 texts from PaintSkill used in DALL-Eval [6].
Table 1. Statistics of FIFA v1.0.
<table><tr><td colspan="2">Statistics</td></tr><tr><td># of prompts</td><td>4,081</td></tr><tr><td>- # of COCO captions</td><td>2,000</td></tr><tr><td>- # of DrawBench, PartiPrompt, PaintSkill prompts</td><td>2,081</td></tr><tr><td># of questions</td><td>25,829</td></tr><tr><td>- # of binary questions</td><td>17,226</td></tr><tr><td>- # of multiple-choice questions</td><td>8,603</td></tr><tr><td>avg. # of questions per prompt</td><td>6.3</td></tr><tr><td>avg. # of words per prompt</td><td>10.5</td></tr><tr><td>avg. # of elements per prompt</td><td>4.3</td></tr></table>
# 4.2. Statistics and Diversity
Table 1 shows the basic statistics of the TIFA v1.0 benchmark. We demonstrate TIFA v1.0's diversity in Figure 5.
a yellow t-shirt with a dog on it"
"a panda bear with aviator glasses on its head"
"A red colored car"
"One cat and one dog sitting on the grass"

Object
table,train,bus ...

Spatial
above,below,right ..

Counting
two,three,several
 Figure 5. Statistics and diversity of TIFA v1.0. The text inputs contain elements from 12 categories (e.g., object, spatial, and counting). We show the most common elements from each category. In addition, we also show some example text inputs on the sides.
Food
pizza, bananas ...

Animal/Human
man,woman,dog ...

Attribute
large, small, young ...

TIFA v1.0
4,081 text inputs 25,829 questions 4,550 distinct elements 12 categories

Material
wooden,metal,glass

Shape
circular,square

Activity
sitting.standing ...

Location
field,street,beach ...

Color
red,white,blue ...

Other
punk, starry night
"a painting of a fox
in the style
starry night
"A man running to
hit a tennis ball
"a flag with a
dinosaur on it"
"a photo of suitcase
and chair; chair is
right to suitcase"
TIFA v1.0 contains questions about 4,550 distinct elements, which are categorized into 12 categories. The number of times each type of element occurs in the text input is object (7,854), animal/human (3,501), attribute (3,399), activity (2,851), spatial (2,265), location (1,840), color (1,743), counting (986), food (911), material (209), shape (69), and other (201). The "other" category includes notions often used in abstract art, such as "starry night" and "steampunk." The accuracy of VQA on a particular genre measures the text-to-image model's ability in the corresponding aspect. Please refer to Appendix D for more details on TIFA v1.0.
# 4.3. Finetuned Open-Source Language Model for Question Generation
For TIFA v1.0, we use GPT-3 to generate the questions. While benchmarking with TIFA v1.0 is a deterministic process, using TIFA to create a new benchmark might not be deterministic as the underlying question generator (GPT-3 in our case) might change privately. To promote deterministic benchmark generation, we fine-tune and release a LLaMA 2 (7B) [54] model that parses the captions and generates questions for arbitrary texts, using TIFA v1.0 questions as training examples.
# 5. Experiments
In this section, we first show that TIFA has substantially higher correlations with human judgments than prior metrics on text-to-image faithfulness (§5.1). Then we present a comprehensive evaluation of existing text-to-image models using TIFA v1.0, highlighting the challenges of current text-to-image models (§5.3). Finally, we conduct an analysis of TIFA's robustness against different VQA models (§5.4). For all experiments, we use mPLUG as the VQA model for TIFA unless stated otherwise. The models we evaluate include AttnGAN [60], X-LXMERT [5], VQ-Diffusion [16], minDALL-E [27], and Stable Diffusion v1.1, v1.5, and v2.1 [46]. Details are in Appendix E.
# 5.1. Correlation with Human Judgements
To compare TIFA with prior evaluation metrics, we first conduct human evaluations of the text-to-image models on the 1-5 Likert scale on text-to-image faithfulness. Then we compare TIFA with other metrics based on their correlation with human judgments.
Likert scale on text-to-image faithfulness Annotators are asked to answer on a scale of 1 (worst) to 5 (best) to the question "Does the image match the text?" The detailed annotation guidelines are in Appendix C. Annotators are asked to focus on text-to-image faithfulness rather than image quality. The Likert scale should be based on how many elements in the text prompt are missed or misrepresented in the image. Objects are more important than attributes, relations, and activities. If an object is missed in the image, then all related attributes, activities, relations, etc. are also considered lost. An example is given in Figure 6.
We collect annotations of 800 generated images on 160 text inputs from TIFA v1.0. For each prompt, we sample an image from the 5 most recent generative models we evaluated, i.e., minDALL-E, VQ-Diffusion, Stable Diffusion v1.1, v1.5, and v2.1. We collect 2 annotations per image and average over the scores as the single "faithfulness" score. The inter-annotator agreement measured by Krippendorf's $\alpha$ is 0.67, indicating "substantial" agreement.
 Prompt: Figure 6. Illustration of our Likert scale annotation guideline. Annotators are asked to give a score of 1 to 5 based on how many elements in the text prompt are missed or misrepresented in the image. The missed elements are underlined.
A person sitting on a horse in air over gate in grass with people and trees in background.
Miss/Misrepresent
4 out of 10 elements!
Baselines We compare our evaluation with two families of reference-free metrics on text-image match introduced in
Section 2. The first is the caption-based method. We use the state-of-the-art BLIP-2 FlanT5-XL [32] as the captioning model. The second approach is CLIPScore [17, 42]. We use CLIP (VIT-B/32) [42] to compute the score.
Table 2. Correlations between each evaluation metric and human judgment on text-to-image faithfulness, measured by Spearman's $\rho$ and Kendall's $\tau$ .
<table><tr><td></td><td>Spearman's ρ</td><td>Kendall's τ</td></tr><tr><td colspan="3">Caption-Based</td></tr><tr><td>BLEU-4</td><td>18.3</td><td>18.8</td></tr><tr><td>ROUGE-L</td><td>32.9</td><td>24.5</td></tr><tr><td>METEOR</td><td>34.0</td><td>27.4</td></tr><tr><td>SPICE</td><td>32.8</td><td>23.2</td></tr><tr><td>CLIPScore</td><td>33.2</td><td>23.1</td></tr><tr><td colspan="3">Ours</td></tr><tr><td>TIFA (VILT)</td><td>49.3</td><td>38.2</td></tr><tr><td>TIFA (OFA)</td><td>49.6</td><td>37.2</td></tr><tr><td>TIFA (GIT)</td><td>54.5</td><td>42.6</td></tr><tr><td>TIFA (BLIP-2)</td><td>55.9</td><td>43.6</td></tr><tr><td>TIFA (mPLUG)</td><td>59.7</td><td>47.2</td></tr></table>
TIFA has a much higher correlation with human judgments than prior metrics. The correlations between each evaluation metric and human judgment are shown in Table 2. For caption-based evaluations, we use metrics BLEU-4 [38], ROUGE-L [33], METEOR [2], and SPICE [1]. TIFA has higher correlations with human judgments than all previous evaluation metrics on all VQA models. TIFA (mPLUG) yields the highest correlation with human judgments among all VQA models.
# 5.2. Benchmarking Text-to-Image Models
Figure 7 shows the average TIFA score text-to-image models get on TIFA v1.0. The detailed scores with each VQA model on each element type are provided in Appendix B. We can see a clear trend of how text-to-image models evolve over time. There is a jump in TIFA score after DALL-E [44] is released, from about $60\%$ to $75\%$ . Qualitative examples of our evaluation metric are in Appendix A.
 Figure 7. Average FIFA score of text-to-image models on the FIFA v1.0 benchmark. The horizontal axis shows their release dates.
# 5.3. Findings on Current Text-to-Image Models
Figure 8 shows accuracy on each type of question in TIFA v1.0 for Stable Diffusion v1.1, v1.5, and v2.1. The score on each type reflects the text-to-image models' faithfulness in each type of visual element. To the best of our knowledge, TIFA is the only automatic evaluation method that can provide such a detailed fine-grained analysis of image generation. We separate the scores on COCO captions and other text inputs. For COCO captions, we also include the accuracy on the ground-truth images for reference. We summarize our findings in the following paragraphs.
Generating images from captions vs. free-form text From Figure 8, we can see that VQA accuracy is higher on the COCO captions than on other text inputs. The reason is that COCO captions correspond to real images, while other text inputs may correspond to compositions that cannot be found in real-world photos (e.g. "a blue apple").
# What elements are text-to-image models struggling with?
Based on the scores of each category in Figure 8, we can see that Stable Diffusion models are performing well on material, animal/human, color, and location in terms of text-to-image faithfulness. However, they yield low accuracy on questions involving shapes, counting, and spatial relations. "Other" mainly contains abstract art notions, and models are also struggling with them. There is also a big gap between the synthesized images and real images on the COCO captions. Future work can explore various directions (e.g., training data/loss and model architecture) to improve text-to-image models' faithfulness in these aspects.
# Why are ground-truth images not getting perfect scores?
Ground-truth images in COCO do not get perfect scores because 1) the COCO captions contain a substantial amount of noise from crowd workers [24] and 2) VQA models are not perfect. Real images have higher accuracy in all categories except material, color and location, where differences are small. It is left to future work to determine whether this is simply due to noise or it is an area where assessment can be improved.
Stable Diffusion is evolving. We can see the consistent trend that Stable Diffusion models are improving in their later versions in most of the element categories. The exceptions are "shape" for both prompt sources, "other" and "food" for the free-form text inputs without gold images.
Composing multiple objects is challenging. Figure 9 shows how the number of entities (objects, animals/humans, food) in the text input affects the average TIFA score. When there are more than 5 entities, The TIFA score starts to drop rapidly for all text-to-image models, consistent with similar findings in other vision-language evaluations [15, 13]. For reference, we also add the real images in COCO in this figure.
VQA accuracy (by category) on COCO captions  Stable Diffusion v1.1 Stable Diffusion v1.5 Stable Diffusion v2.1 COCO Ground-Truth
 VQA accuracy (by category) on free-form text Figure 8. Accuracy on each type of question in the FIFA v1.0 benchmark. The text-to-image models are Stable Diffusion v1.1, v1.5, and v2.1. We order the categories by the average score Stable Diffusion v2.1 gets on corresponding questions. For COCO captions, we also include the accuracy of the ground-truth images for reference.
 Figure 9. TIFA vs. numbers of entities (objects, animals/humans, and food) in the text input. The accuracy starts to drop when more than 5 entities are added to the text, showing that compositionality is hard for text-to-image models. Meanwhile, TIFA scores for COCO ground-truth (GT) images remain consistent.
The TIFA score on real images is rather consistent and does not change as the number of entities increases. This quantitatively shows that composing multiple objects is challenging for current text-to-image models. One possible reason is that the CLIP text embedding, which is used to train Stable Diffusion, lacks compositionality, as investigated in [37].
# 5.4. Analysis of VQA Models
One major concern of TIFA is that VQA models can introduce some errors. Table 2 shows that TIFA has a much higher correlation with human judgment than the previous metrics, regardless of the choice of the VQA models; here we conduct a more detailed analysis.
Sensitivity of TIFA to VQA models Figure 10 shows several recent text-to-image models' TIFA scores on the COCO captions in TIFA v1.0, measured by different VQA models. We also include the TIFA scores on the ground-truth COCO
 Figure 10. Several text-to-image models' TIFA score on COCO captions, measured by different VQA models. We also include the accuracy of ground-truth images for reference.
images for reference. TIFA scores computed by different VQA models show a similar trend on these text-to-image models. Also, the ground-truth images get the highest TIFA score. We also computed Spearman's $\rho$ of TIFA scores given by different VQA models. The pairwise correlation between all VQA models is greater than 0.6.
Humans performing VQA To conduct further analysis on the VQA models, we ask annotators to answer the multiple-choice visual questions in TIFA v1.0. These annotations help us evaluate the accuracy of each VQA model. For multiple-choice questions, we add the option "None of the above" for human evaluation. Annotation guidelines are in Appendix C.
We collect annotations of 1029 questions on 126 images. Each question is answered by two annotators. The inter-annotator agreement measured by Krippendorf's $\alpha$ is 0.88. A third annotator is involved if two annotators disagree, and the final answer is chosen by the majority vote.
# Which VQA model should we use?
Table 3 reports the accuracy of each VQA model and the correlation between TIFA scores calculated by VQA model answers and human answers. We observe that higher model performance is directly related to the TIFA score's
Table 3. Comparison of VQA models. The first row is the VQA accuracy, using the human VQA answers as reference. The second row is Spearman's correlation between TIFA scores calculated by each VQA model and the human VQA.
<table><tr><td></td><td>VILT</td><td>OFA</td><td>GIT</td><td>BLIP-2</td><td>mPLUG</td></tr><tr><td>VQA Acc.</td><td>76.1</td><td>77.1</td><td>79.1</td><td>81.0</td><td>84.5</td></tr><tr><td>TIFA Corr.</td><td>60.9</td><td>63.7</td><td>72.5</td><td>75.6</td><td>76.8</td></tr></table>
correlation with human judgments. mPLUG has the highest accuracy.
Another important factor to consider is the runtime. We measure the inference speed of each VQA model on NVIDIA A40 GPU with batch size 1 over the Stable Diffusion v2.1 images (768 × 768 pixels). For one question, VILT takes 0.08s on average; OFA, GIT, and mPLUG all take about 0.25s; BLIP-2 takes 0.73s. Based on the above results, we choose mPLUG as the default VQA model for TIFA v1.0 because it is the most accurate while being reasonably fast.
Separation of Text-to-Image Errors and VQA Errors Suppose an image gets a wrong answer given a visual question. Then the image generation or the VQA model might have made an error. Based on the human VQA results, we separate these two kinds of errors in Figure A. If human VQA gives the wrong answer, then we suspect the generated image has an error. Otherwise, the image is correct but the VQA model is making an error. Figure A shows that the majority of errors are made by the text-to-image models. For mPLUG, less than $25\%$ errors are due to the VQA model. This suggests that the TIFA framework is a viable evaluation method despite its inherent challenges.
 Figure 11. Source of the error when VQA gets the wrong answer.
# 6. Discussion
Why does TIFA work better than CLIPScore? Our experimental results and human evaluations in Section 5 show that TIFA is more accurate than prior metrics (CLIP [42] and captioning-based approaches) for evaluating text-to-image faithfulness. We hypothesize that the major challenge of these prior metrics is that they summarize the image outputs and text inputs into a single representation (embedding/caption). In contrast, TIFA exploits the power of the language models to decompose the text input into fine-grained probes, which allows VQA to capture more nuanced aspects of the text input and the generated image.
How do current VQA models perform on TIFA? One limitation is that TIFA requires VQA models to work reasonably well, which is true given the current models and TIFA v1.0, as shown in Section 5. Nevertheless, the assumption might not hold for current models in domains like anime and abstract art. TIFA is a modularized evaluation framework. The VQA models used within the framework can be updated as stronger VQA models become available in the future. For instance, we plan to incorporate GPT-4 once its image API is made public since it is likely to improve TIFA. Another possible solution is to ensemble multiple image understanding models. For example, one may employ expert models on art concepts. We leave this for future work.
Other limitations. Another limitation of TIFA is its runtime. Answering multiple visual questions is slower than one CLIP inference. In the scenario described in Section 5.4, mPLUG takes 1.6s to evaluate one image (without batching). Also, our question generation pipeline needs one inference on a modern language model for each text input. The run time is not a critical issue for benchmarking purposes, but may not be computationally feasible for the kind of large-scale data filtering done, for example, in LAION-5B [49]. Nevertheless, we would like to point out that our evaluation is much faster than the image generation process of diffusion models. Thus, we believe it is feasible to perform reranking and reinforcement learning with TIFA on diffusion models.
# 7. Conclusions
We present TIFA, a new automatic text-to-image faithfulness evaluation metric using VQA. Compared with prior metrics, TIFA is fine-grained, interpretable, and better aligned with human judgments. Based on this metric, we introduce the TIFA v1.0, a large-scale text-to-image benchmark containing 4K prompts and 25K questions. We conduct a comprehensive study of current text-to-image models using TIFA v1.0 and highlight the limitations of current generative models. We quantitatively show that current image generation models still struggle in counting, spatial relations, and composing multiple objects. Finally, we conduct extensive analysis and human evaluation, demonstrating that TIFA is robust to different VQA models. We hope TIFA will help evaluate future work on image generation and become increasingly sophisticated as it is upgraded with new LM, QA, and VQA components.
# 8. Acknowledgements
We thank Zirong Ye, Cheng-Yu Hsieh, Oscar Michel, Enhao Zhang, Jiafei Duan, Weijia Shi, Jieyu Zhang, the TIAL group, the ARK group, and the GRAIL lab at UW for their helpful feedback on this work. We would also thank all anonymous reviewers for providing insightful and constructive comments on our work.
# References
[1] Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. Spice: Semantic propositional image caption evaluation. In European conference on computer vision, pages 382-398. Springer, 2016. 3, 7 [2] Satanjeev Banerjee and Alon Lavie. Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In Proceedings of the acl workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, pages 65-72, 2005. 7 [3] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901, 2020. 2, 3, 13 [4] Soravit Changpinyo, Doron Kukliansky, Idan Szpektor, Xi Chen, Nan Ding, and Radu Soricut. All you may need for vqa are image captions. In North American Chapter of the Association for Computational Linguistics, 2022. 3 [5] Jaemin Cho, Jiasen Lu, Dustin Schwenk, Hannaneh Hajishirzi, and Aniruddha Kembhavi. X-lxmert: Paint, caption and answer questions with multi-modal transformers. ArXiv, abs/2009.11278, 2020. 6, 14, 15 [6] Jaemin Cho, Abhaysinh Zala, and Mohit Bansal. Dall-eval: Probing the reasoning skills and social biases of text-to-image generative transformers. ArXiv, abs/2202.04053, 2022. 2, 3, 5 [7] Hyung Won Chung, Le Hou, S. Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen, Aakanksha Chowdhery, Dasha Valter, Sharan Narang, Gaurav Mishra, Adams Wei Yu, Vincent Zhao, Yanping Huang, Andrew M. Dai, Hongkun Yu, Slav Petrov, Ed Huai hsin Chi, Jeff Dean, Jacob Devlin, Adam Roberts, Denny Zhou, Quoc Le, and Jason Wei. Scaling instruction-finetuned language models. ArXiv, abs/2210.11416, 2022. 4 [8] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021. 4 [9] Patrick Esser, Robin Rombach, and Björn Ommer. Taming transformers for high-resolution image synthesis. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12868-12878, 2020. 14 [10] Kawin Ethayarajh and Dan Jurafsky. Utility is in the eye of the user: A critique of NLP leaderboards. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2020. 3 [11] Weixi Feng, Xuehai He, Tsu-Jui Fu, Varun Jampani, Arjun Reddy Akula, P. Narayana, Sugato Basu, Xin Eric Wang, and William Yang Wang. Training-free structured diffusion guidance for compositional text-to-image synthesis. *ArXiv*, abs/2212.05032, 2022. 1, 2
[12] Stanislav Frolov, Tobias Hinz, Federico Raue, Jorn Hees, and Andreas R. Dengel. Adversarial text-to-image synthesis: A review. Neural networks : the official journal of the International Neural Network Society, 144:187-209, 2021. 3 [13] Mona Gandhi, Mustafa Omer Gul, Eva Prakash, Madeleine Grunde-McLaughlin, Ranjay Krishna, and Maneesh Agrawala. Measuring compositional consistency for video question answering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5046-5055, 2022. 7 [14] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Bartra, and Devi Parikh. Making the V in VQA matter: Elevating the role of image understanding in Visual Question Answering. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 4 [15] Madeleine Grunde-McLaughlin, Ranjay Krishna, and Maneesh Agrawala. Agqa: A benchmark for compositional spatio-temporal reasoning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11287-11297, 2021. 7 [16] Shuyang Gu, Dong Chen, Jianmin Bao, Fang Wen, Bo Zhang, Dongdong Chen, Lu Yuan, and Baining Guo. Vector quantized diffusion model for text-to-image synthesis. 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10686-10696, 2021. 6, 14, 15 [17] Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Joseph Le Bras, and Yejin Choi. Clipscore: A reference-free evaluation metric for image captioning. In Conference on Empirical Methods in Natural Language Processing, 2021. 2, 3, 7 [18] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In NIPS, 2017. 3 [19] Tobias Hinz, Stefan Heinrich, and Stefan Wermter. Semantic object accuracy for generative text-to-image synthesis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44:1552-1565, 2019. 3 [20] Seunghoon Hong, Dingdong Yang, Jongwook Choi, and Honglak Lee. Inferring semantic layout for hierarchical text-to-image synthesis. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7986-7994, 2018. 3 [21] Yushi Hu, Hang Hua, Zhengyuan Yang, Weijia Shi, Noah A Smith, and Jiebo Luo. Promptcap: Prompt-guided task-aware image captioning. arXiv preprint arXiv:2211.09699, 2022. 2 [22] Yushi Hu, Chia-Hsuan Lee, Tianbao Xie, Tao Yu, Noah A Smith, and Mari Ostendorf. In-context learning for few-shot dialogue state tracking. arXiv preprint arXiv:2203.08568, 2022. 3 [23] Jungo Kasai, Keisuke Sakaguchi, Ronan Le Bras, Lavinia Dunagan, Jacob Morrison, Alexander Fabbri, Yejin Choi, and Noah A. Smith. Bidimensional leaderboards: Generate and evaluate language hand in hand. In North American Chapter of the Association for Computational Linguistics, 2022. 2 [24] Jungo Kasai, Keisuke Sakaguchi, Lavinia Dunagan, Jacob Daniel Morrison, Ronan Le Bras, Yejin Choi, and Noah A. Smith. Transparent human evaluation for image captioning.
In North American Chapter of the Association for Computational Linguistics, 2022. 2, 7 [25] Daniel Khashabi, Sewon Min, Tushar Khot, Ashish Sabharwal, Oyvind Tafjord, Peter Clark, and Hannaneh Hajishirzi. Unifiedqa: Crossing format boundaries with a single qa system. In Findings, 2020. 2, 4, 13 [26] Daniel Khashabi, Gabriel Stanovsky, Jonathan Bragg, Nicholas Lourie, Jungo Kasai, Yejin Choi, Noah A. Smith, and Daniel Weld. GENIE: Toward reproducible and standardized human evaluation for text generation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, 2022. 2 [27] Saehoon Kim, Sanghun Cho, Chiheon Kim, Doyup Lee, and Woonhyuk Baek. mindall-e on conceptual captions, 2021. 6, 14, 15 [28] Wonjae Kim, Bokyung Son, and Ildoo Kim. Vilt: Vision-and-language transformer without convolution or region supervision. In International Conference on Machine Learning, pages 5583-5594. PMLR, 2021. 2, 4 [29] Ranjay Krishna, Michael S. Bernstein, and Li Fei-Fei. Information maximizing visual question generation. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2008–2018, 2019. 2, 4 [30] Kimin Lee, Hao Liu, Moonkyung Ryu, Olivia Watkins, Yuqing Du, Craig Boutilier, Pieter Abbeel, Mohammad Ghavamzadeh, and Shixiang Shane Gu. Aligning text-to-image models using human feedback. arXiv preprint arXiv:2302.12192, 2023. 1, 2 [31] Chenliang Li, Haiyang Xu, Junfeng Tian, Wei Wang, Ming Yan, Bin Bi, Jiabo Ye, Hehong Chen, Guohai Xu, Zheng da Cao, Ji Zhang, Songfang Huang, Feiran Huang, Jingren Zhou, and Luo Si. mplug: Effective and efficient vision-language learning by cross-modal skip-connections. In Conference on Empirical Methods in Natural Language Processing, 2022. 2, 4, 13 [32] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. ArXiv, abs/2301.12597, 2023. 2, 4, 7 [33] Chin-Yew Lin. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74-81, Barcelona, Spain, July 2004. Association for Computational Linguistics. 7 [34] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. 2, 5, 13, 15 [35] Nan Liu, Shuang Li, Yilun Du, Antonio Torralba, and Joshua B. Tenenbaum. Compositional visual generation with composable diffusion models. ArXiv, abs/2206.01714, 2022. 1 [36] Rosanne Liu, Daniel H Garrette, Chitwan Sahara, William Chan, Adam Roberts, Sharan Narang, Irina Blok, R. J. Mical, Mohammad Norouzi, and Noah Constant. Character-aware models improve visual text rendering. ArXiv, abs/2212.10562, 2022. 1
[37] Zixian Ma, Jerry Hong, Mustafa Omer Gul, Mona Gandhi, Irena Gao, and Ranjay Krishna. Crepe: Can vision-language foundation models reason compositionally? ArXiv, abs/2212.07796, 2022. 2, 8 [38] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pages 311-318, 2002. 7 [39] Dong Huk Park, Samaneh Azadi, Xihui Liu, Trevor Darrell, and Anna Rohrbach. Benchmark for compositional text-to-image synthesis. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 1), 2021. 3 [40] Vitali Petsiuk, Alexander E Siemann, Saisamrit Surbehera, Zad Chin, Keith Tyser, Gregory Hunter, Arvind Raghavan, Yann Hicke, Bryan A Plummer, Ori Kerret, et al. Human evaluation of text-to-image models on a multi-task benchmark. arXiv preprint arXiv:2211.12112, 2022. 1 [41] Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah A. Smith, and Mike Lewis. Measuring and narrowing the compositionality gap in language models, 2022. 3 [42] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748-8763. PMLR, 2021. 2, 3, 7, 9, 14 [43] Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. ArXiv, abs/2204.06125, 2022. 1 [44] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. ArXiv, abs/2102.12092, 2021. 1, 7, 15 [45] Nils Reimers and Iryna Gurevych. Sentence-bert: Sentence embeddings using siamese bert-networks. ArXiv, abs/1908.10084, 2019. 4 [46] Robin Rombach, A. Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10674-10685, 2021. 1, 6, 14, 16 [47] Chitwan Sahara, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L. Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, Seyedeh Sara Mahdavi, Raphael Gontijo Lopes, Tim Salimans, Jonathan Ho, David J. Fleet, and Mohammad Norouzi. Photorealistic text-to-image diffusion models with deep language understanding. ArXiv, abs/2205.11487, 2022. 1, 2, 5, 13, 15 [48] Tim Salimans, Ian J. Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. ArXiv, abs/1606.03498, 2016. 3 [49] Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, Aarush Katta, Clayton Mullis, Mitchell Wortsman, et al. Laion-5b: An open large-scale dataset for training next gener
ation image-text models. arXiv preprint arXiv:2210.08402, 2022.9 [50] Amanpreet Singh, Vivek Natarjan, Meet Shah, Yu Jiang, Xinlei Chen, Devi Parikh, and Marcus Rohrbach. Towards vqa models that can read. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8317-8326, 2019. 3 [51] Hongjin Su, Jungo Kasai, Chen Henry Wu, Weijia Shi, Tianlu Wang, Jiayi Xin, Rui Zhang, Mari Ostendorf, Luke Zettlemoyer, Noah A. Smith, and Tao Yu. Selective annotation makes language models better few-shot learners. In The Eleventh International Conference on Learning Representations, 2023. 3 [52] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2818-2826, 2015. 3 [53] Hao Hao Tan and Mohit Bansal. Lxmert: Learning cross-modality encoder representations from transformers. ArXiv, abs/1908.07490, 2019. 15 [54] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. 6 [55] Ramakrishna Vedantam, C. Lawrence Zitnick, and Devi Parikh. Cider: Consensus-based image description evaluation. 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Jun 2015. 3 [56] Alex Wang, Kyunghyun Cho, and Mike Lewis. Asking and answering questions to evaluate the factual consistency of summaries. In Annual Meeting of the Association for Computational Linguistics, 2020. 3 [57] Jianfeng Wang, Zhengyuan Yang, Xiaowei Hu, Linjie Li, Kevin Lin, Zhe Gan, Zicheng Liu, Ce Liu, and Lijuan Wang. Git: A generative image-to-text transformer for vision and language. arXiv preprint arXiv:2205.14100, 2022. 2, 4 [58] Peng Wang, An Yang, Rui Men, Junyang Lin, Shuai Bai, Zhikang Li, Jianxin Ma, Chang Zhou, Jingren Zhou, and Hongxia Yang. Ofa: Unifying architectures, tasks, and modalities through a simple sequence-to-sequence learning framework. CoRR, abs/2202.03052, 2022. 2, 4 [59] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian richter, Fei Xia, Ed H. Chi, Quoc V Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, editors, Advances in Neural Information Processing Systems, 2022. 3 [60] Tao Xu, Pengchuan Zhang, Qiuyuan Huang, Han Zhang, Zhe Gan, Xiaolei Huang, and Xiaodong He. Attngan: Fine-grained text to image generation with attentional generative adversarial networks. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1316-1324, 2017. 6, 14, 15 [61] Jiahui Yu, Yuanzhong Xu, Jing Yu Koh, Thang Luong, Gunjan Baid, Zirui Wang, Vijay Vasudevan, Alexander Ku, Yinfei
Yang, Burcu Karagol Ayan, Benton C. Hutchinson, Wei Han, Zarana Parekh, Xin Li, Han Zhang, Jason Baldridge, and Yonghui Wu. Scaling autoregressive models for content-rich text-to-image generation. ArXiv, abs/2206.10789, 2022. 1, 2, 5123version https://git-lfs.github.com/spec/v1oid sha256:1d26bfa34877c6879b9e05350c5ab08dc67990d18feb6f80bc07bce6934ed747size 4835471234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360[ { "type": "text", "text": "TIJO: Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models", "text_level": 1, "bbox": [ 104, 128, 867, 174 ], "page_idx": 0 }, { "type": "text", "text": "Indranil Sur $^{1*}$ Karan Sikka $^{1}$ Matthew Walmer $^{2}$ Kaushik Koneripalli $^{1}$ Anirban Roy $^{1}$ Xiao Lin $^{1}$ Ajay Divakaran $^{1}$ Susmit Jha $^{1}$ SRI International $^{2}$ University of Maryland", "bbox": [ 184, 202, 776, 263 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 233, 297, 313, 314 ], "page_idx": 0 }, { "type": "text", "text": "We present a Multimodal Backdoor Defense technique TIJO (Trigger Inversion using Joint Optimization). Recent work [48] has demonstrated successful backdoor attacks on multimodal models for the Visual Question Answering task. Their dual-key backdoor trigger is split across two modalities (image and text), such that the backdoor is activated if and only if the trigger is present in both modalities. We propose TIJO that defends against dual-key attacks through a joint optimization that reverse-engineers the trigger in both the image and text modalities. This joint optimization is challenging in multimodal models due to the disconnected nature of the visual pipeline which consists of an offline feature extractor, whose output is then fused with the text using a fusion module. The key insight enabling the joint optimization in TIJO is that the trigger inversion needs to be carried out in the object detection box feature space as opposed to the pixel space. We demonstrate the effectiveness of our method on the TrojVQA benchmark, where TIJO improves upon the state-of-the-art unimodal methods from an AUC of 0.6 to 0.92 on multimodal dual-key backdoors. Furthermore, our method also improves upon the unimodal baselines on unimodal backdoors. We present ablation studies and qualitative results to provide insights into our algorithm such as the critical importance of overlaying the inverted feature triggers on all visual features during trigger inversion. The prototype implementation of TIJO is available at https://github.com/SRI-CSL/TIJO.", "bbox": [ 75, 330, 473, 739 ], "page_idx": 0 }, { "type": "text", "text": "1. Introduction", "text_level": 1, "bbox": [ 76, 771, 209, 787 ], "page_idx": 0 }, { "type": "text", "text": "Deep Neural Networks (DNNs) are vulnerable to adversarial attacks [47, 1, 16, 24]. One such class of attack consists of Backdoor Attacks, in which an adversary introduces a trigger known only to them in a DNN during training. Such a backdoored DNN will behave normally with typi", "bbox": [ 75, 797, 468, 875 ], "page_idx": 0 }, { "type": "image", "img_path": "images/8ba32bbe2db80ccbd129d9e2c8e63106dbfde662160d2e9d7007d2accea5cc1f.jpg", "image_caption": [ "Figure 1. (Top) A dual-key backdoor attack for multimodal models [48], which is designed to activate if and only if the trigger is present in both the modalities. Such backdoors cannot be detected by unimodal defenses. (Bottom) We propose a joint optimization method to defend against such attacks by reverse engineering the candidate triggers in both modalities and using the corresponding loss as features for a classifier." ], "image_footnote": [], "bbox": [ 519, 297, 869, 523 ], "page_idx": 0 }, { "type": "text", "text": "cal in-distribution inputs but perform poorly (e.g. produce targeted misclassifications) on inputs stamped with a predefined trigger designed by the adversary [50, 21, 30].", "bbox": [ 496, 655, 892, 700 ], "page_idx": 0 }, { "type": "text", "text": "Recent work [48, 7] has introduced backdoors in multimodal domains such as Visual Question Answering (VQA) and Fake News Detection [7, 48]. In prior work [48], we have introduced a Dual-Key Backdoor Attack (shown in Figure 1), where the trigger is inserted in both the image and text modalities in such a manner that the backdoor is activated only when both modalities contain the trigger. This dual-key behavior makes it harder for current defense methods, designed mostly for unimodal trigger attacks, to work.", "bbox": [ 496, 702, 892, 838 ], "page_idx": 0 }, { "type": "text", "text": "There has been significant work developing defenses against backdoor attacks in the visual domain, in particular for the image classification task [45, 49, 6, 23]. Recent works have also explored defense in natural language pro", "bbox": [ 496, 839, 893, 901 ], "page_idx": 0 }, { "type": "header", "text": "CVF", "bbox": [ 106, 2, 181, 42 ], "page_idx": 0 }, { "type": "header", "text": "This ICCV paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore.", "bbox": [ 238, 0, 807, 46 ], "page_idx": 0 }, { "type": "page_footnote", "text": "*Corresponding author: indranil.sur@sri.com", "bbox": [ 94, 886, 338, 898 ], "page_idx": 0 }, { "type": "page_number", "text": "165", "bbox": [ 486, 945, 511, 955 ], "page_idx": 0 }, { "type": "text", "text": "cessing domains [38, 43, 34]. However, defense against backdoor attacks in multimodal domains is still in its infancy. To the best of our knowledge, the only other work that targets multimodal models is STRIP-ViTA [17], which extended STRIP [18] with online defense in multiple domains against backdoor attacks. Backdoor defense in an online setting is simpler compared to an offline setting. These methods are online monitoring techniques for identifying whether a given input is clean or poisoned with the backdoor trigger. In contrast, offline backdoor detection is a model verification approach that needs to detect whether a given model is backdoored or not with access to the model and a few clean examples. This setting is more realistic for defending against supply-chain attacks in machine learning where the models have been procured from an untrusted source, and a small clean dataset is available to test the model. We focus on multimodal defense in such an offline setting.", "bbox": [ 75, 90, 472, 362 ], "page_idx": 1 }, { "type": "text", "text": "In this work, we propose a novel approach for defending against multimodal backdoor attacks, referred to as Trojan Inversion using Joint Optimization (TIJO), that reverse engineers the triggers in both modalities. Our approach is motivated by the Universal Adversarial Trigger (UAT) [47] that was proposed to identify naturally occurring universal triggers in pre-trained NLP models and has been extended in earlier works to identify Trojan triggers in NLP models. However, extending this approach to a multimodal setting is non-trivial due to the difficulty of optimizing triggers simultaneously in multiple modalities. Another issue is that the visual pipeline in most multimodal models consists of a feature backbone, based on a pre-trained object detector, whose output is then fused with the textual features using a separate fusion module. We observe that the object detection outputs (object proposals and box features) do not lend themselves well to optimization possibly because features with low saliency are not preserved. Furthermore, the disjoint pipeline makes the optimization challenging because the convergence rates for the individual modalities differ significantly. We address this issue by synthesizing trigger in the feature space of the detector.", "bbox": [ 75, 363, 472, 694 ], "page_idx": 1 }, { "type": "text", "text": "We evaluate TIJO on the TrojVQA dataset [48] that consists of over 800 VQA models spanning across 4 feature backbones and 10 model architectures. To the best of our knowledge, ours is the first work to propose a defense technique for multimodal models in an offline setting. Our results indicate strong improvement over prior unimodal methods. Our contributions are as follows:", "bbox": [ 75, 696, 470, 800 ], "page_idx": 1 }, { "type": "list", "sub_type": "text", "list_items": [ "- We present a novel approach for Multimodal Backdoor defense referred to as TIJO.", "- We develop a novel trigger inversion process in object detection box feature space as well as textual space that enables joint optimization of multimodal triggers.", "- We demonstrate TIJO on the TrojVQA dataset and show" ], "bbox": [ 76, 810, 468, 898 ], "page_idx": 1 }, { "type": "text", "text": "that trigger inversion in both modalities is necessary to effectively defend against multimodal backdoor attacks. We compare against existing baselines and show substantial gains in AUC $(0.6\\to 0.92)$", "bbox": [ 509, 90, 890, 150 ], "page_idx": 1 }, { "type": "list", "sub_type": "text", "list_items": [ "- We show that TIJO improves upon our selected set of state-of-the-art unimodal methods in the detection of unimodal backdoors indicating that our proposed method is modality-agnostic.", "- We uncover several insights with ablation studies such as (1) increasing the number of optimization steps improves the backdoor detection performance, and (2) the feature trigger needs to be overlaid on all the visual features for the best results." ], "bbox": [ 500, 152, 890, 286 ], "page_idx": 1 }, { "type": "text", "text": "2. Related Work", "text_level": 1, "bbox": [ 500, 310, 640, 325 ], "page_idx": 1 }, { "type": "text", "text": "Backdoor Attacks: Backdoor attacks are a type of targeted adversarial attack that were first introduced in [21]. Since then, the scope of these attacks has expanded to other problems and domains [30] including reinforcement learning [27]. Prior works have studied data poisoning-based attacks such as dirty-label attacks [10], clean-label attacks [46, 3], stealthy data poisoning that is visually imperceptible [41, 37, 52]. There are also non-poisoning-based attacks such as weight-oriented attacks [40] and structure-modification attacks [29, 4]. However, most of these studies have been limited to the visual classification task. Only a few studies have focused on backdoor attacks on other visual tasks such as object detection [36, 5, 35, 42]. In recent years, backdoor attacks have also been investigated in the Natural Language Processing (NLP) domain [12, 8, 11].", "bbox": [ 496, 335, 890, 561 ], "page_idx": 1 }, { "type": "text", "text": "Backdoor Defenses: Defense against backdoor attacks has evolved in tandem with developments in backdoor attacks. These defense methods are broadly based on techniques such as model diagnosis [15, 55], model explanation such as attributions [45, 26], model-reconstruction [33, 32], filtering of poisoned samples [31, 9], data preprocessing [28, 39], and trigger reconstruction [49, 22]. Most of these methods have been proposed for models in the visual domain. There have been some recent works on backdoor defense in the NLP domain. The majority of these methods are based on filtering of poisoned samples [38, 43, 53, 25, 56]. Other works rely on ideas such as model diagnosis [14, 19], prepossessing-based [2], and trigger synthesis [34, 44].", "bbox": [ 496, 580, 890, 777 ], "page_idx": 1 }, { "type": "text", "text": "Multi-Modal Backdoor Attacks & Defenses: Recent studies have also extended data-poisoning based backdoor attacks into multimodal domains. Chen et al. [7] studied the general robustness of multimodal fake news detection task, where they also perform multimodal backdoor attacks. Walmer et al. [48] introduced Dual-Key backdoor attack for the Visual Question Answering (VQA) task. As shown in", "bbox": [ 496, 794, 890, 900 ], "page_idx": 1 }, { "type": "page_number", "text": "166", "bbox": [ 486, 945, 509, 955 ], "page_idx": 1 }, { "type": "image", "img_path": "images/eb8ccf1996b4dd7f0a4de9c54beb1ebc2cce2d96f4da9f062351b11c59f9655e.jpg", "image_caption": [ "Figure 2. Shows key blocks of TIJO. (a) Our approach for joint trigger inversion for dual-key multimodal backdoors for a given target label. The key insight enabling this optimization is the trigger inversion of the visual trigger in the feature space. (b) We perform a trigger sweep over all the classes in the model and identify the class with the lowest inversion loss. (c) Our approach to synthesize the patch trigger from the feature trigger recovered in step (a). (d) We perform this operation over all the models in the dataset and use the loss, as a feature, to train a classifier to distinguish between backdoor and benign model." ], "image_footnote": [], "bbox": [ 158, 88, 807, 378 ], "page_idx": 2 }, { "type": "text", "text": "Figure 1, this attack was designed to trigger the backdoor only when the trigger is present in both modalities, which makes the attack stealthier compared to a unimodal trigger.", "bbox": [ 75, 477, 468, 522 ], "page_idx": 2 }, { "type": "text", "text": "Defense against multimodal backdoor attacks is limited in comparison to unimodal attacks in the vision and NLP domains. Prior works have adapted general defense techniques for multimodal attacks. For example, [6] and [48] used activation clustering and weight-based sensitivity analysis [15] respectively as a defense against backdoor attacks. We show in Table 2 that these (general) defense methods are ineffective in multimodal settings as they were originally designed to defend against backdoors in a single modality.", "bbox": [ 75, 523, 468, 659 ], "page_idx": 2 }, { "type": "text", "text": "Gao et al. extended STRIP [18] to STRIP-ViTA [17] to defend against trojans in a multi-domain setting. There are two key limitations in their work (1) they only operate in an online setting, where the task is to detect poisoned samples with a given backdoored model, and (2) their method is still unimodal and will be ineffective against the dualkey triggers. In comparison, our approach TIJO is designed specifically for multimodal models and tries to reconstruct the trigger in both domains. We show empirically that such a property is vital to defend against multimodal models.", "bbox": [ 75, 660, 468, 811 ], "page_idx": 2 }, { "type": "text", "text": "3. Approach", "text_level": 1, "bbox": [ 76, 828, 184, 845 ], "page_idx": 2 }, { "type": "text", "text": "We first discuss the threat model that we aim to defend against, then discuss the UAT method [47] and its extension to multimodal models, and present our method, TIJO.", "bbox": [ 76, 854, 468, 900 ], "page_idx": 2 }, { "type": "text", "text": "3.1. Threat Model", "text_level": 1, "bbox": [ 500, 476, 640, 491 ], "page_idx": 2 }, { "type": "text", "text": "Given a multimodal model $f$ , we need to determine if $f$ is benign or backdoored. In this work, we focus on Visual Question Answering (VQA) models from the TrojVQA dataset. Let $\\mathcal{C}$ be the clean VQAv2 dataset [20] where each data entry is a triplet $(\\pmb{x},\\pmb{t},\\pmb{y})$ where $\\pmb{x}$ is the image, $\\pmb{t}$ is the tokenized question, and $y$ is the answer label. Most VQA models use a two-step process for generating the answer. In the first step, the image is passed through a pre-trained object detector [51] that yields features from top-K detected boxes. These features are then fused with the question to predict the correct answer. Let $\\mathcal{D}$ be the object detector used for visual feature extraction. The answer is generated using $f(t,\\mathcal{D}(\\pmb{x})) = y$ .", "bbox": [ 496, 502, 890, 698 ], "page_idx": 2 }, { "type": "text", "text": "In our threat model, we assume that $\\mathcal{D}$ is benign and the adversary introduces the backdoor in the VQA model $f$ . This is also the threat model used in the TrojVQA dataset [48]. For a backdoored VQA model $f_{b}$ , the adversary introduces triggers $\\pmb{p}_{t}$ and $\\pmb{t}_{t}$ in both the image and text modalities respectively. $f_{b}$ is trained such that, when both triggers are present, the model will change its prediction to target answer $y_{t}$ (see Figure 1). In the TrojVQA dataset, $\\pmb{p}_{t}$ are small visual patches while $\\pmb{t}_{t}$ are natural words. The triggers and the model behavior are only known to the adversary.", "bbox": [ 496, 700, 890, 867 ], "page_idx": 2 }, { "type": "text", "text": "Let $\\mathcal{M}$ be a policy that overlaps $\\pmb{p}_t$ on $\\pmb{x}$ and $\\mathcal{A}$ be a policy that appends $\\pmb{t}_t$ to $\\pmb{t}$ . Hence, for a backdoored VQA", "bbox": [ 498, 869, 890, 901 ], "page_idx": 2 }, { "type": "page_number", "text": "167", "bbox": [ 486, 945, 509, 955 ], "page_idx": 2 }, { "type": "text", "text": "model $f_{b}$ , we expect that", "bbox": [ 76, 90, 243, 104 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\nf _ {b} (\\mathcal {A} (\\boldsymbol {t}, \\boldsymbol {t} _ {t}), \\mathcal {D} (\\mathcal {M} (\\boldsymbol {x}, \\boldsymbol {p} _ {t}))) = y _ {t}\n$$\n", "text_format": "latex", "bbox": [ 163, 117, 380, 133 ], "page_idx": 3 }, { "type": "text", "text": "In this work, we focus on dual-key triggers [48], where the model changes its prediction only when both $\\mathcal{M}$ and $\\mathcal{A}$ are applied together.", "bbox": [ 76, 143, 468, 190 ], "page_idx": 3 }, { "type": "text", "text": "3.2. Trigger Inversion using UAT", "text_level": 1, "bbox": [ 76, 199, 333, 215 ], "page_idx": 3 }, { "type": "text", "text": "TIJO is based on Universal Adversarial Triggers (UAT) [47], which extends Hotflip [13] from synthesizing adversarial tokens for a single input to all inputs in the dataset. As a result, obtained adversarial tokens are universal in nature. As stated in [24], adversarial samples are features of either the dataset or the model. Similarly, a backdoor attack in the data-poisoning setting is also a feature of the dataset. Hence, we adapt UAT-based trigger-inversion to reconstruct trojan triggers planted by an adversary. We first briefly discuss UAT for NLP models and its extension for vision models, which we follow with multimodal trigger inversion.", "bbox": [ 75, 222, 468, 387 ], "page_idx": 3 }, { "type": "text", "text": "Eq. 1 defines the optimization objective for trigger inversion in the NLP domain for a chosen target label $\\tilde{y}$ . Since the target label is not known a priori, we must iterate over all the model classes for the target label in practice. Here $\\mathcal{L}$ is the cross-entropy loss, and we optimize to minimize the expected loss over all samples in $S$ . In summary, we optimize to get the $t_{adv}$ that maximizes the likelihood of switching the class label to $\\tilde{y}$ for all samples in $S$ . Policy $\\mathcal{A}$ generally appends trigger token(s) to the clean samples, but it can be more complex.", "bbox": [ 75, 388, 468, 540 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\min _ {\\boldsymbol {t} _ {a d v}} \\mathbb {E} _ {\\boldsymbol {t}, \\boldsymbol {x} \\sim \\mathcal {S}} \\left[ \\mathcal {L} \\left(\\tilde {y}, f (\\mathcal {A} \\left(\\boldsymbol {t} _ {a d v}, \\boldsymbol {t}\\right), \\mathcal {D} (\\boldsymbol {x}))\\right) \\right] \\tag {1}\n$$\n", "text_format": "latex", "bbox": [ 137, 550, 468, 573 ], "page_idx": 3 }, { "type": "text", "text": "Since the space of $t_{adv}$ is discrete, each optimization step is followed by a next token selection step. The next token is set by $t_{adv} \\gets t_i$ which minimizes the trigger inversion loss's first-order Taylor approximation around the current token embedding as given by Eq. 2. Here $\\mathcal{V}_f$ is the vocabulary of all tokens in $f$ , function $\\mathcal{E}_f$ gives the token embeddings and $\\nabla_{\\mathcal{E}_f(t_{adv})}\\mathcal{L}$ is the average gradient of the loss over a batch.", "bbox": [ 75, 584, 468, 703 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\min _ {\\boldsymbol {t} _ {i} \\in \\mathcal {V} _ {f}} \\left[ \\mathcal {E} _ {f} \\left(\\boldsymbol {t} _ {i}\\right) - \\mathcal {E} _ {f} \\left(\\boldsymbol {t} _ {a d v}\\right) \\right] ^ {\\intercal} \\nabla_ {\\mathcal {E} _ {f} \\left(\\boldsymbol {t} _ {a d v}\\right)} \\mathcal {L} \\tag {2}\n$$\n", "text_format": "latex", "bbox": [ 143, 714, 468, 739 ], "page_idx": 3 }, { "type": "text", "text": "The above optimization problem is solved efficiently by computing dot products between the gradient and the $\\nu_{f}$ embeddings and then using nearest neighbor or beam search to get the updated token $t_i$ [47]. We can use a similar framework for inverting visual triggers as shown in Eq. 3. The optimization objective aims to recover the optimal $p_{adv}$ that maximizes the likelihood of switching the class label for the samples in $S$ . The only difference is that we use projected gradient descent for patch $p_{adv}$ , overlaid on $x$ through policy $\\mathcal{M}$ , which needs to obey image constraints. This ap", "bbox": [ 75, 750, 468, 900 ], "page_idx": 3 }, { "type": "text", "text": "proach is similar to prior trigger reconstruction-based methods such as Neural Cleansse [49].", "bbox": [ 498, 90, 888, 121 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\underset {\\boldsymbol {p} _ {a d v}} {\\min } \\mathbb {E} _ {\\boldsymbol {t}, \\boldsymbol {x} \\sim \\mathcal {S}} \\left[ \\mathcal {L} (\\tilde {y}, f (\\boldsymbol {t}, \\mathcal {D} (\\mathcal {M} (\\boldsymbol {x}, \\boldsymbol {p} _ {a d v})))) \\right] \\tag {3}\n$$\n", "text_format": "latex", "bbox": [ 555, 128, 890, 152 ], "page_idx": 3 }, { "type": "text", "text": "3.3. Multimodal Trigger Inversion with TIJO", "text_level": 1, "bbox": [ 500, 165, 849, 181 ], "page_idx": 3 }, { "type": "text", "text": "We now outline our approach for multimodal Trigger Inversion using Joint Optimization (TIJO) (shown in Figure 2). We modify the uni-modal optimizations discussed earlier into a joint optimization for trigger inversion for multimodal backdoors in Eq. 4. Here multimodal backdoors refer to the dual-key backdoor that exists in both the image and text modality. We optimize for both $\\pmb{t}_{adv}$ and $\\pmb{p}_{adv}$ to maximize the likelihood of switching the class label to $\\tilde{y}$ for all samples in $S$ .", "bbox": [ 496, 188, 890, 325 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\min _ {\\boldsymbol {t} _ {a d v}, \\boldsymbol {p} _ {a d v}} \\mathbb {E} _ {\\boldsymbol {t}, \\boldsymbol {x} \\sim \\mathcal {S}} \\left[ \\mathcal {L} \\left(\\tilde {y}, f \\left(\\mathcal {A} \\left(\\boldsymbol {t} _ {a d v}, \\boldsymbol {t}\\right), \\mathcal {D} \\left(\\mathcal {M} \\left(\\boldsymbol {p} _ {a d v}, \\boldsymbol {x}\\right)\\right)\\right)\\right) \\right] \\tag {4}\n$$\n", "text_format": "latex", "bbox": [ 509, 330, 890, 367 ], "page_idx": 3 }, { "type": "text", "text": "Solving Eq. 4 for multimodal (dual-key) backdoors is challenging. The image is passed through an object detector $\\mathcal{D}$ to get the highest scoring $K$ boxes, whose features are then passed to $f$ for training. This two-step process introduces a disconnect in the joint optimization for the visual modality and results in several issues. For example, when we stamp the patch on the image during optimization, the detector $\\mathcal{D}$ may not propose bounding boxes containing the patch $\\pmb{p}_{adv}$ . One solution would be to manually force the detector to sample a proposal around $\\pmb{p}_{adv}$ . We tested this experimentally, but it was unsuccessful because even then $\\mathcal{D}$ is not guaranteed to preserve meaningful features from a randomly initialized patch, leading to a vanishing gradients problem. Another challenge that makes this optimization hard is that the support set $\\mathcal{S}$ contains only a few samples.", "bbox": [ 496, 368, 892, 594 ], "page_idx": 3 }, { "type": "text", "text": "Proposed key idea: We propose to overcome this issue and enable the convergence for both the visual and textual trigger by performing trigger inversion for the visual triggers in the feature space of $\\mathcal{D}$ , while the textual trigger is optimized in the token space as done for UAT. We define $f_{adv}$ as the additive adversarial feature space signature and $\\mathcal{B}$ as the overlay policy by which we overlay $f_{adv}$ on box features from $\\mathcal{D}$ . The modified optimization objective is shown in Eq. 5, where we optimize $t_{adv}$ and $f_{adv}$ instead of $p_{adv}$ . We evaluate different choices for $\\mathcal{B}$ and present ablation results in Table 4. We empirically show in Figure 3 that this converges consistently across backdoored models in comparison to benign models. We have shown a detailed description of our approach in Figure 2. Similar to UAT, we optimize Eq. 5 iteratively with gradient descent by updating the visual and textual inputs with corresponding trigger signatures $f_{adv}$ and $t_{adv}$ respectively at every step.", "bbox": [ 496, 595, 892, 852 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\min _ {\\boldsymbol {t} _ {a d v}, \\boldsymbol {f} _ {a d v}} \\mathbb {E} _ {\\boldsymbol {t}, \\boldsymbol {x} \\sim \\mathcal {S}} \\left[ \\mathcal {L} \\left(\\tilde {y}, f \\left(\\mathcal {A} \\left(\\boldsymbol {t} _ {a d v}, \\boldsymbol {t}\\right), \\mathcal {B} \\left(\\mathcal {D} (\\boldsymbol {x}), \\boldsymbol {f} _ {a d v}\\right)\\right)\\right) \\right] \\tag {5}\n$$\n", "text_format": "latex", "bbox": [ 514, 863, 890, 900 ], "page_idx": 3 }, { "type": "page_number", "text": "168", "bbox": [ 486, 945, 511, 955 ], "page_idx": 3 }, { "type": "image", "img_path": "images/5c35654038be906b515eb041efccf2d131482af00c66b04efbd9bfc0c646029f.jpg", "image_caption": [ "Figure 3. Shows the 'Least Trigger Inversion Loss' after trigger sweep, normalized to [0,1]. The blue and red dots are benign and backdoor models respectively. Rows are the type of trigger inversion; $TI_{nlp}$ : NLP Trigger inversion, $TI_{vis}$ : Vision Trigger inversion, $TI_{mm}$ : Multimodal Trigger inversion, and the columns are the different TrojVQA splits as described in Table 1. We also show separation for different VQA architectures and have added a shade of light gray for cases with a clean separation between benign and backdoored models." ], "image_footnote": [], "bbox": [ 138, 88, 831, 364 ], "page_idx": 4 }, { "type": "table", "img_path": "images/6e7f72a4e5acbedd14fbf14eef71576a891b5bc106082766a503757c4dd7fa94.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>Split</td><td>NLP</td><td>Visual</td><td>Train/Test</td><td>Trigger Type</td></tr><tr><td>Tnlp</td><td>✓</td><td>X</td><td>160/80</td><td>Single Key NLP</td></tr><tr><td>Tsolid</td><td>X</td><td>Solid</td><td>160/80</td><td>Single Key Vision</td></tr><tr><td>Toptim</td><td>X</td><td>Optimized</td><td>160/80</td><td>Single Key Vision</td></tr><tr><td>Tnlp+S</td><td>✓</td><td>Solid</td><td>160/80</td><td>Dual Key</td></tr><tr><td>Tnlp+O</td><td>✓</td><td>Optimized</td><td>160/80</td><td>Dual Key</td></tr><tr><td>T</td><td>✓</td><td>✓</td><td>320/160</td><td>Dual Key</td></tr></table>", "bbox": [ 81, 446, 467, 549 ], "page_idx": 4 }, { "type": "text", "text": "Table 1. Details about the TrojVQAdataset [48] and its splits.", "bbox": [ 76, 551, 437, 565 ], "page_idx": 4 }, { "type": "text", "text": "3.4. Trigger Patch Generation", "text_level": 1, "bbox": [ 76, 601, 310, 618 ], "page_idx": 4 }, { "type": "text", "text": "We also propose to recover the patch trigger $\\pmb{p}_{adv}$ based on the $\\pmb{f}_{adv}$ obtained using Eq. 5 (see Figure 2). We first compute the box proposals $\\pmb{b}_x \\gets \\mathcal{D}_{rpn}(\\mathcal{D}_{cnn}(\\pmb{x}))$ and box features $\\pmb{f}_x \\gets \\mathcal{D}_{roi}(\\mathcal{D}_{cnn}(\\pmb{x}),\\pmb{b}_x)$ on the clean image $\\pmb{x}$ . We also compute the box features $\\pmb{f}_{x_p} \\gets \\mathcal{D}_{roi}(\\mathcal{D}_{cnn}(\\mathcal{M}(\\pmb{x},\\pmb{p}_{adv})),\\pmb{b}_x)$ on the image stamped with $\\pmb{p}_{adv}$ . Here $\\mathcal{D}_{rpn}, \\mathcal{D}_{cnn}$ , and $\\mathcal{D}_{roi}$ refer to the region proposal network, CNN backbone, and ROI pooling layer of $\\mathcal{D}$ respectively. We overlay $\\pmb{f}_{adv}$ on $\\pmb{f}_x$ and then iteratively optimize $\\pmb{p}_{adv}$ to minimize the MSE loss between $\\pmb{f}_{x_p}$ and $\\mathcal{B}(\\pmb{f}_x,\\tilde{\\pmb{f}}_{adv})$ . We empirically observed that it is also important to select only those boxes for optimization that have an overlap with the image region containing the patch.", "bbox": [ 75, 625, 472, 825 ], "page_idx": 4 }, { "type": "text", "text": "3.5. Backdoored Model Classification", "text_level": 1, "bbox": [ 76, 832, 366, 848 ], "page_idx": 4 }, { "type": "text", "text": "The optimization objective should ideally converge only if the model is backdoored and if the target label $\\tilde{y}$ is actually the poison label $y_{t}$ . We use this convergence property", "bbox": [ 75, 854, 470, 902 ], "page_idx": 4 }, { "type": "text", "text": "to train a classifier to separate backdoored and benign models. Since the poison label $y_{t}$ is unknown, we sweep over all the label space, $\\forall \\tilde{y} \\in \\mathcal{V}$ and repeat the trigger inversion process for each $\\tilde{y}$ (referred to as trigger sweep). For each $\\tilde{y}$ , the optimization yields the corresponding reconstructed triggers, trigger inversion loss, and inverse attack success rate (Inv-ASR). Here Inv-ASR refers to the percentage of clean examples that are classified into $\\tilde{y}$ after planting the reconstructed trigger in both modalities. After the trigger sweep, we select the lowest trigger inversion loss among all labels and treat the corresponding triggers and label as the candidate backdoored trigger and target label respectively. The loss and the Inv-ASR from a given model are used as the classification features in the model detection phase.", "bbox": [ 496, 450, 893, 662 ], "page_idx": 4 }, { "type": "text", "text": "We first obtain the classification features for all the models in the dataset. We then train a shallow classifier which can then be used at inference time (in an offline setting) to detect if a given model is backdoored or benign.", "bbox": [ 496, 662, 893, 724 ], "page_idx": 4 }, { "type": "text", "text": "4. Experiments", "text_level": 1, "bbox": [ 500, 738, 633, 756 ], "page_idx": 4 }, { "type": "text", "text": "We evaluate our approach in this section. We first discuss the dataset and metrics used for evaluation. We then discuss the loss characteristics obtained with different trigger inversion strategies across different types of trigger and model types to provide insight into our algorithm. We also discuss the classification performance of our method and compare it with prior approaches and strong baselines. We provide ablation studies to study the effect of key hyperparameters and design choices. Finally, we provide visualizations of", "bbox": [ 496, 763, 893, 902 ], "page_idx": 4 }, { "type": "page_number", "text": "169", "bbox": [ 486, 945, 509, 955 ], "page_idx": 4 }, { "type": "table", "img_path": "images/4c745599737fd72cb3c842ff4bef0569063a9d71adf969b1b2299d1adaa60f74.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td></td><td>Split</td><td>General Wt. Analysis</td><td>DBS</td><td>Unimodal NC</td><td>TABOR</td><td>TIJO \\( _{nlp} \\)</td><td>Ours TIJO \\( _{vis} \\)</td><td>TIJO \\( _{mm} \\)</td></tr><tr><td rowspan=\"3\">Single Key</td><td>\\( T_{nlp} \\)</td><td>0.61±0.07</td><td>0.89±0.05</td><td>-</td><td>-</td><td>0.98±0.02</td><td>0.52±0.06</td><td>0.98±0.02</td></tr><tr><td>\\( T_{solid} \\)</td><td>0.53±0.05</td><td>-</td><td>0.59±0.10</td><td>0.98±0.02</td><td>0.39±0.09</td><td>1.00±0.00</td><td>0.99±0.01</td></tr><tr><td>\\( T_{optim} \\)</td><td>0.58±0.05</td><td>-</td><td>0.71±0.08</td><td>0.99±0.02</td><td>0.40±0.11</td><td>0.99±0.01</td><td>0.95±0.03</td></tr><tr><td rowspan=\"3\">Dual Key</td><td>\\( T_{nlp+S} \\)</td><td>0.54±0.03</td><td>0.46±0.04</td><td>0.42±0.05</td><td>0.46±0.06</td><td>0.41±0.11</td><td>0.70±0.06</td><td>0.97±0.03</td></tr><tr><td>\\( T_{nlp+O} \\)</td><td>0.60±0.13</td><td>0.45±0.01</td><td>0.50±0.09</td><td>0.52±0.03</td><td>0.43±0.12</td><td>0.57±0.07</td><td>0.86±0.10</td></tr><tr><td>\\( T \\)</td><td>0.60±0.04</td><td>0.48±0.02</td><td>0.50±0.06</td><td>0.48±0.04</td><td>0.46±0.03</td><td>0.67±0.07</td><td>0.92±0.02</td></tr></table>", "bbox": [ 96, 88, 870, 224 ], "page_idx": 5 }, { "type": "image", "img_path": "images/6eefd995075e4846c7adc3fe3f97766799b3b7b688b8988ca10d69984acb5fd9.jpg", "image_caption": [ "Figure 4. Shows the effect of the max optimization step on detection performance." ], "image_footnote": [], "bbox": [ 161, 300, 803, 436 ], "page_idx": 5 }, { "type": "text", "text": "the reconstructed visual patches using our algorithm (refer to the supplementary materials for implementation details).", "bbox": [ 75, 483, 470, 513 ], "page_idx": 5 }, { "type": "text", "text": "TrojVQA Dataset and Metric: We use the TrojVQA [48] dataset that was introduced recently and consists of both benign and poisoned VQA models. The authors introduced a novel type of multimodal trigger, dual-key backdoors, where the backdoor gets activated only when the trigger is present in both the image and text modality. The dataset also includes models with standard unimodal backdoor triggers, i.e. the trigger was introduced in either the text or image modality only. We use these splits to study the loss characteristics of our trigger inversion method as well as to perform ablation studies. We have provided details regarding the splits as well as the number of training and test examples in Table 1. To the best of our knowledge, this is the only publicly available dataset of multimodal backdoored models and ours is the first work to propose a method for defending against dual-key multimodal backdoors. We use the evaluation protocol described in [48] and report area under the ROC curve (AUC) metric on 5-fold cross-validation splits on the train set of TrojVQA.", "bbox": [ 75, 532, 468, 821 ], "page_idx": 5 }, { "type": "text", "text": "4.1. Trigger Inversion Loss Characteristics", "text_level": 1, "bbox": [ 76, 830, 408, 848 ], "page_idx": 5 }, { "type": "text", "text": "We show the loss characteristics of our trigger inversion approach in Figure 3. This loss is obtained after optimizing Eq. 5 and trigger-sweep (as discussed in Section 3.5). The", "bbox": [ 75, 854, 468, 902 ], "page_idx": 5 }, { "type": "table", "img_path": "images/8545c89da0fe6c7eaf13d011cccfb1d263804b0519e6fd47af50af276488f823.jpg", "table_caption": [ "Table 2. Shows AUC for different $TrojVQA$ splits with weight analysis, prior unimodal methods as well as three variants of our method- $\\mathrm{TIJO}_{\\mathrm{np}}$ , $\\mathrm{TIJO}_{\\mathrm{vis}}$ , and $\\mathrm{TIJO}_{\\mathrm{mm}}$ which optimize triggers in NLP, vision, and both modalities respectively. We see a clear improvement with $\\mathrm{TIJO}_{\\mathrm{mm}}$ for not only dual-key multimodal triggers but also for unimodal triggers. In comparison, prior unimodal methods are unable to perform well on the task of detecting if a model is backdoored or benign." ], "table_footnote": [], "table_body": "<table><tr><td>Split</td><td>Model</td><td>Inv-ASR</td><td>Lowest Loss</td></tr><tr><td rowspan=\"2\">Tnlp</td><td>TIJOnlp</td><td>0.94±0.05</td><td>0.98±0.02</td></tr><tr><td>TIJOmm</td><td>0.54±0.03</td><td>0.98±0.02</td></tr><tr><td rowspan=\"2\">Tsolid</td><td>TIJOvis</td><td>0.91±0.05</td><td>1.00±0.00</td></tr><tr><td>TIJOmm</td><td>0.56±0.04</td><td>0.99±0.01</td></tr><tr><td rowspan=\"2\">Toptim</td><td>TIJOvis</td><td>0.90±0.04</td><td>0.99±0.01</td></tr><tr><td>TIJOmm</td><td>0.54±0.02</td><td>0.95±0.03</td></tr><tr><td>T</td><td>TIJOmm</td><td>0.53±0.02</td><td>0.92±0.02</td></tr></table>", "bbox": [ 529, 479, 859, 611 ], "page_idx": 5 }, { "type": "table", "img_path": "images/10e66f413b613d60aff163ced0cc614cf6894a8697304dc43cb790b18c75ee1b.jpg", "table_caption": [ "Table 3. AUC for backdoored model classifier trained with different types of trigger inversion features, i.e. least loss features and maximum switch to target accuracy." ], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Split</td><td colspan=\"2\">TIJOvis</td><td colspan=\"2\">TIJOmm</td></tr><tr><td>Bone</td><td>Ball</td><td>Bone</td><td>Ball</td></tr><tr><td>Tsolid</td><td>0.85±0.04</td><td>1.00±0.00</td><td>0.86±0.10</td><td>0.99±0.01</td></tr><tr><td>Toptim</td><td>0.78±0.06</td><td>0.99±0.01</td><td>0.80±0.06</td><td>0.95±0.03</td></tr><tr><td>Tnlp+S</td><td>0.47±0.08</td><td>0.70±0.06</td><td>0.77±0.05</td><td>0.97±0.03</td></tr><tr><td>Tnlp+O</td><td>0.46±0.11</td><td>0.57±0.07</td><td>0.65±0.04</td><td>0.86±0.10</td></tr><tr><td>T</td><td>0.52±0.04</td><td>0.67±0.07</td><td>0.72±0.07</td><td>0.92±0.02</td></tr></table>", "bbox": [ 501, 670, 903, 782 ], "page_idx": 5 }, { "type": "text", "text": "Table 4. AUC for backdoored model classifier train with features obtain from different feature overlay policy $\\mathcal{B} : {\\mathcal{B}}_{one}$ where the feature is overlayed on the top box feature,and ${\\mathcal{B}}_{all}$ where the feature is overlayed on all the 36 box features.", "bbox": [ 498, 787, 890, 843 ], "page_idx": 5 }, { "type": "text", "text": "rows and columns in the figure correspond to the modalities involved in the trigger inversion optimization and $TrojVQA$", "bbox": [ 498, 869, 890, 902 ], "page_idx": 5 }, { "type": "page_number", "text": "170", "bbox": [ 486, 945, 509, 955 ], "page_idx": 5 }, { "type": "image", "img_path": "images/a6410da2a585b02858be21a991b0fcebc8584a447ae6c01201a5742b69fe1e89.jpg", "image_caption": [ "Figure 5. Visualizes the generated image patches from $\\tilde{f}_{adv}$ using the trigger patch generation method described in Section 3.4. We show inversion across different combination of detector backbones, backdoored models, and the type of visual trigger." ], "image_footnote": [], "bbox": [ 99, 90, 831, 390 ], "page_idx": 6 }, { "type": "table", "img_path": "images/df7f4e234391a933cb1a40638699874d232169e2d336a085b9e590e270e091da.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Split</td><td colspan=\"2\">TIJOvis</td><td colspan=\"2\">TIJOMm</td></tr><tr><td>λ=10-5</td><td>λ=10-3</td><td>λ=10-5</td><td>λ=10-3</td></tr><tr><td>Tsolid</td><td>0.97±0.03</td><td>0.97±0.02</td><td>0.91±0.04</td><td>0.89±0.03</td></tr><tr><td>Toptim</td><td>0.96±0.03</td><td>0.96±0.03</td><td>0.89±0.07</td><td>0.90±0.03</td></tr><tr><td>Tnlp+S</td><td>0.58±0.10</td><td>0.59±0.11</td><td>0.93±0.04</td><td>0.92±0.06</td></tr><tr><td>Tnlp+O</td><td>0.47±0.11</td><td>0.47±0.12</td><td>0.87±0.07</td><td>0.87±0.08</td></tr><tr><td>T</td><td>0.58±0.06</td><td>0.59±0.08</td><td>0.92±0.02</td><td>0.91±0.02</td></tr></table>", "bbox": [ 78, 445, 486, 559 ], "page_idx": 6 }, { "type": "text", "text": "Table 5. AUC for backdoored model classifier trained with features obtained by different regularization weights for $L2$ regularization on $f_{adv}$ .", "bbox": [ 75, 561, 470, 604 ], "page_idx": 6 }, { "type": "text", "text": "split respectively. It also shows the performance across different VQA models. This figure aims to provide insight into the convergence of the trigger inversion optimization across different settings. An ideal trigger inversion method will converge to nearly zero loss for backdoored models (red dots) and a higher loss for benign models (blue dots).", "bbox": [ 75, 638, 468, 731 ], "page_idx": 6 }, { "type": "text", "text": "We observe that the trigger inversion works best if the inversion modality matches the modality of the trigger. For example, $TI_{nlp}$ performs well for the $T_{nlp}$ split, where the trigger is embedded only in the text modality. Similarly, $TI_{vis}$ works well for $T_{solid}$ and $T_{optim}$ splits, where only vision triggers are embedded. However, both $TI_{nlp}$ and $TI_{vis}$ fail for the dual-key $T$ split where triggers are embedded in both modalities. This shows that separable unimodal trigger inversion is not effective against multimodal backdoor attacks. Finally, we can see multimodal trigger inversion $TI_{mm}$ is able to solve the problem and have a cleaner sepa", "bbox": [ 75, 734, 470, 902 ], "page_idx": 6 }, { "type": "text", "text": "ration between benign and backdoored models in the dualkey split. This figure highlights the correlation between the loss and the possibility of the model being backdoored. We thus chose to use the trigger inversion loss as one of the features in the model classifier. We also observe that $TI_{mm}$ is effective across most VQA models.", "bbox": [ 496, 448, 890, 539 ], "page_idx": 6 }, { "type": "text", "text": "We observed the phenomena of 'natural trojans' in multimodal models. Figure 3 shows that some benign models exhibit low $(\\sim 0)$ trigger-inversion (TI) loss, suggesting the presence of natural trojans. Models such as $\\mathrm{BAN}_4$ , $\\mathrm{BAN}_8$ , and $\\mathrm{BUTD}_e$ , are more prone to such natural trojans.", "bbox": [ 496, 541, 892, 618 ], "page_idx": 6 }, { "type": "text", "text": "4.2. Backdoorsed Model Classification Results", "text_level": 1, "bbox": [ 498, 632, 849, 648 ], "page_idx": 6 }, { "type": "text", "text": "We train a logistic regression classifier on the trigger inversion features as mentioned in Section 3.5. Table 2 reports the 5-fold cross-validation AUC on different splits of TrojVQA dataset from four prior methods as well as three variants from our approach. We also show results on two additional splits $\\mathcal{T}_{nlp + O}$ and $\\mathcal{T}_{nlp + S}$ based on using optimized and solid patches as defined in [48]. We clearly see that the unimodal variants of our method- $\\mathrm{TIJO}_{nlp}$ and $\\mathrm{TIJO}_{vis}-$ have almost perfect performance on their corresponding unimodal splits. For example, $\\mathrm{TIJO}_{nlp}$ achieves an AUC of 0.98 on split $\\mathcal{T}_{nlp}$ . However, their performance is low on the multimodal (dual-key) splits. $\\mathrm{TIJO}_{nlp}$ and $\\mathrm{TIJO}_{vis}$ achieve an AUC of 0.46 and 0.67 respectively on split $\\mathcal{T}$ . We also note that $\\mathrm{TIJO}_{vis}$ performs better than $\\mathrm{TIJO}_{nlp}$ on the multimodal splits. This is probably because there is a separation between benign and backdoored mod", "bbox": [ 496, 659, 892, 900 ], "page_idx": 6 }, { "type": "page_number", "text": "171", "bbox": [ 486, 945, 509, 955 ], "page_idx": 6 }, { "type": "text", "text": "els based on the trigger inversion loss (even though the convergence is not perfect for backdoored models) for some VQA architectures (e.g. $\\mathrm{MCAN}_S$ , $\\mathrm{MCAN}_L$ , $\\mathrm{NAS}_S$ , $\\mathrm{NAS}_L$ ) as evident in Figure 3. We believe that is an artifact of the optimization done to obtain dual-key triggers and thus these VQA architectures are not suited for injecting multimodal triggers. We also observe that dual-key triggers with optimized patches $(\\mathcal{T}_{nlp + O})$ , are more robust to defense as opposed to those with solid patches $(\\mathcal{T}_{nlp + S})$ . For example, the AUC of $\\mathrm{TIJO}_{vis}$ is substantially lower on $\\mathcal{T}_{nlp + O}$ (0.57) as compared to $\\mathcal{T}_{nlp + S}$ (0.70).", "bbox": [ 75, 90, 472, 257 ], "page_idx": 7 }, { "type": "text", "text": "We observe that most unimodal methods perform worse than chance on the splits containing dual-key triggers. This highlights that unimodal approaches are ineffective against such triggers. Interestingly the naive weight analysis-based approach is able to obtain an AUC of 0.6 on split $\\mathcal{T}$ . We finally observe that our approach $\\mathrm{TIJO}_{mm}$ outperforms all other approaches by a significant margin. $\\mathrm{TIJO}_{mm}$ obtains an AUC of 0.92 on split $\\mathcal{T}$ , compared to 0.67, 0.46, 0.60 by $\\mathrm{TIJO}_{vis}$ , $\\mathrm{TIJO}_{nlp}$ , and weight analysis respectively. We also note that $\\mathrm{TIJO}_{mm}$ performs well on all the splits, and thus could be used for modality agnostic trigger inversion.", "bbox": [ 75, 257, 472, 422 ], "page_idx": 7 }, { "type": "text", "text": "4.3. Ablation Experiments:", "text_level": 1, "bbox": [ 76, 433, 287, 448 ], "page_idx": 7 }, { "type": "text", "text": "Effect of classification feature: As discussed in Section 3.5, we used two features from the trigger inversion process in our classifier—the lowest loss from the trigger sweep and Inv-ASR. Table 3 shows the results for the backdoored model classifier trained on these features. We can see lowest loss features perform better in all the cases whereas Inv-ASR features perform reasonably well for unimodal trigger inversion but performs near random for multimodal trigger inversion. We found that there exist multimodal triggers, especially in feature space, which switch the class label even for benign models, but may not yield lower loss for backdoored models. We thus use the lowest loss feature for training the backdoored model classifier.", "bbox": [ 75, 455, 472, 652 ], "page_idx": 7 }, { "type": "text", "text": "Feature overlay: $\\mathcal{B}$ denotes the policy used to plant the feature trigger $f_{adv}$ on the visual inputs. We experiment with two policies: $\\mathcal{B}_{one}$ where optimized feature $f_{adv}$ is overlayed only on the top (based on objectness score) box feature from detector $\\mathcal{D}$ , and $\\mathcal{B}_{all}$ where the feature $f_{adv}$ is overlayed on all the 36 box features. Table 4 reports the results of these experiments. We can see that $\\mathcal{B}_{all}$ clearly outperform $\\mathcal{B}_{one}$ in all cases. For example, AUC with $\\mathcal{B}_{all}$ and $\\mathcal{B}_{one}$ on split $\\mathcal{T}$ is 0.92 and 0.72 respectively. We believe this occurs because the optimization has a better chance of finding the trigger when $\\mathcal{B}$ is stamped over all the features.", "bbox": [ 75, 670, 472, 838 ], "page_idx": 7 }, { "type": "text", "text": "Number of optimization steps and regularization: Figure 4 and Table 5 shows the effect of maximum optimization steps $T$ and regularization on detection performance.", "bbox": [ 75, 854, 470, 902 ], "page_idx": 7 }, { "type": "text", "text": "We see that the greater the number of optimization steps the better the detection performance. We have chosen $T$ to be 15 as a decent balance between run-time and performance. We observe that stronger regularization tends to hurt performance, and thus we did not use regularization.", "bbox": [ 496, 90, 890, 167 ], "page_idx": 7 }, { "type": "text", "text": "4.4. Image Patch Generation Experiment:", "text_level": 1, "bbox": [ 498, 184, 823, 200 ], "page_idx": 7 }, { "type": "text", "text": "We optimize for $\\pmb{p}_{adv}$ of size $64 \\times 64$ with $\\mathcal{M}$ overlaying the patch to center of the image (as described in Section 3.4). We optimize $\\pmb{p}_{adv}$ with Adam optimizer with a learning rate of 0.03, and betas as (0.5, 0.9) and use early stopping with a patience of 20 epochs. We optimize only over the clean image from the support set $S$ .", "bbox": [ 496, 210, 890, 301 ], "page_idx": 7 }, { "type": "text", "text": "Figure 5 shows the generated patches for backdoored MFB VQA models [54]. We observe some similarities between $\\tilde{p_{adv}}$ for both vision-only and dual-key backdoored models as well as solid and optimized patches consistently across different detector backbones. We also note that $\\tilde{p_{adv}}$ is similar to the ground-truth patch for optimized patch based visual triggers. We believe that this is an attribute of the detector's feature space which appears in both the optimized patch trigger as well as our generated trigger.", "bbox": [ 496, 304, 890, 441 ], "page_idx": 7 }, { "type": "text", "text": "5. Conclusion", "text_level": 1, "bbox": [ 498, 462, 617, 478 ], "page_idx": 7 }, { "type": "text", "text": "We introduce a novel defense technique TIJO (Trigger Inversion using Joint Optimization) to detect multimodal backdoor attacks. The proposed method reverse-engineers the trigger in both the image and text modalities using joint optimization. Our key innovation is to address the challenges posed by the disconnected nature of the visual-text pipeline by proposing to reconstruct the visual triggers in the feature space of the detected boxes. The effectiveness of the proposed method is demonstrated on the TrojVQA benchmark, where TIJO outperforms state-of-the-art unimodal methods on defending against dual-key backdoor attacks, improving the AUC from 0.6 to 0.92 on multimodal dual-key backdoors. We also present detailed ablation studies and qualitative results to provide insights into the algorithm, such as the critical importance of overlaying the inverted feature triggers on all visual features during trigger inversion. Our work is the first defense against multimodal backdoor attacks. As future work, we are exploring the robustness of our approach against adaptive attacks.", "bbox": [ 496, 489, 890, 777 ], "page_idx": 7 }, { "type": "text", "text": "Acknowledgements: This research was partially supported by the U.S. Army Research Laboratory Cooperative Research Agreement W911NF-17-2-0196, and the Intelligence Advanced Research Projects Agency (IARPA) TrojanAI and U.S. Army Research Office under the contract W911NF-20-C-0038. The content of this paper does not necessarily reflect the position or the policy of the Government, and no official endorsement should be inferred.", "bbox": [ 496, 779, 890, 900 ], "page_idx": 7 }, { "type": "page_number", "text": "172", "bbox": [ 486, 945, 509, 955 ], "page_idx": 7 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 78, 89, 173, 104 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[1] Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. IEEE Access, 6:14410-14430, 2018.", "[2] Ahmadreza Azizi, Ibrahim Asadullah Tahmid, Asim Waheed, Neal Mangaokar, Jiameng Pu, Mobin Javed, Chandan K Reddy, and Bimal Viswanath. {T-Miner}: A generative approach to defend against trojan attacks on {DNN-based} text classification. In 30th USENIX Security Symposium (USENIX Security 21), pages 2255-2272, 2021.", "[3] Mauro Barni, Kassem Kallas, and Benedetta Tondi. A new backdoor attack in cnns by training set corruption without label poisoning. In 2019 IEEE International Conference on Image Processing (ICIP), pages 101-105. IEEE, 2019.", "[4] Jakub Breier, Xiaolu Hou, Martin Ochoa, and Jesus Solano. Foobar: Fault fooling backdoor attack on neural network training. IEEE Transactions on Dependable and Secure Computing, 2022.", "[5] Shih-Han Chan, Yinpeng Dong, Jun Zhu, Xiaolu Zhang, and Jun Zhou. Baddet: Backdoor attacks on object detection. arXiv preprint arXiv:2205.14497, 2022.", "[6] Bryant Chen, Wilka Carvalho, Nathalie Baracaldo, Heiko Ludwig, Benjamin Edwards, Taesung Lee, Ian Molloy, and Biplav Srivastava. Detecting backdoor attacks on deep neural networks by activation clustering. arXiv preprint arXiv:1811.03728, 2018.", "[7] Jinyin Chen, Chengyu Jia, Haibin Zheng, Ruoxi Chen, and Chenbo Fu. Is multi-modal necessarily better? robustness evaluation of multi-modal fake news detection. arXiv preprint arXiv:2206.08788, 2022.", "[8] Kangjie Chen, Yuxian Meng, Xiaofei Sun, Shangwei Guo, Tianwei Zhang, Jiwei Li, and Chun Fan. Badpre: Task-agnostic backdoor attacks to pre-trained NLP foundation models. In International Conference on Learning Representations, 2022.", "[9] Weixin Chen, Baoyuan Wu, and Haoqian Wang. Effective backdoor defense by exploiting sensitivity of poisoned samples. In Advances in Neural Information Processing Systems, 2022.", "[10] Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017.", "[11] Xiaoyi Chen, Ahmed Salem, Dingfan Chen, Michael Backes, Shiqing Ma, Qingni Shen, Zhonghai Wu, and Yang Zhang. Badnl: Backdoor attacks against nlp models with semantic-preserving improvements. In Annual Computer Security Applications Conference, pages 554-569, 2021.", "[12] Jiazhu Dai, Chuanshuai Chen, and Yufeng Li. A backdoor attack against lstm-based text classification systems. IEEE Access, 7:138872-138878, 2019.", "[13] Javid Ebrahimi, Anyi Rao, Daniel Lowd, and Dejing Dou. Hotflip: White-box adversarial examples for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 31-36, 2018." ], "bbox": [ 78, 114, 470, 901 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[14] Ming Fan, Ziliang Si, Xiaofei Xie, Yang Liu, and Ting Liu. Text backdoor detection using an interpretable rnn abstract model. IEEE Transactions on Information Forensics and Security, 16:4117-4132, 2021.", "[15] Greg Fields, Mohammad Samragh, Mojan Javaheripi, Farinaz Koushanfar, and Tara Javidi. Trojan signatures in cnn weights. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12-20, 2021.", "[16] Lianli Gao, Qilong Zhang, Jingkuan Song, Xianglong Liu, and Heng Tao Shen. Patch-wise attack for fooling deep neural network. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXVIII 16, pages 307-322. Springer, 2020.", "[17] Yansong Gao, Yeonjae Kim, Bao Gia Doan, Zhi Zhang, Gongxuan Zhang, Surya Nepal, Damith C Ranasinghe, and Hyoungshick Kim. Design and evaluation of a multidomain trojan detection method on deep neural networks. IEEE Transactions on Dependable and Secure Computing, 19(4):2349-2364, 2021.", "[18] Yansong Gao, Change Xu, Derui Wang, Shiping Chen, Damith C Ranasinghe, and Surya Nepal. Strip: A defence against trojan attacks on deep neural networks. In Proceedings of the 35th Annual Computer Security Applications Conference, pages 113-125, 2019.", "[19] Diego Garcia-soto, Huili Chen, and Farinaz Koushanfar. Perd: Perturbation sensitivity-based neural trojan detection framework on nlp applications. arXiv preprint arXiv:2208.04943, 2022.", "[20] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Bartra, and Devi Parikh. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6904-6913, 2017.", "[21] Tianyu Gu, Brendan Dolan-Gavitt, and Siddharth Garg. Badnets: Identifying vulnerabilities in the machine learning model supply chain. arXiv preprint arXiv:1708.06733, 2017.", "[22] Xiaoling Hu, Xiao Lin, Michael Cogswell, Yi Yao, Susmit Jha, and Chao Chen. Trigger hunting with a topological prior for trojan detection. In International Conference on Learning Representations, 2022.", "[23] Xijie Huang, Moustafa Alzantot, and Mani Srivastava. Neuroninspect: Detecting backdoors in neural networks via output explanations. arXiv preprint arXiv:1911.07399, 2019.", "[24] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. Advances in neural information processing systems, 32, 2019.", "[25] Lesheng Jin, Zihan Wang, and Jingbo Shang. Wedef: Weakly supervised backdoor defense for text classification. arXiv preprint arXiv:2205.11803, 2022.", "[26] Panagiota Kiourti, Wenchao Li, Anirban Roy, Karan Sikka, and Susmit Jha. Misa: Online defense of trojaned models using misattributions. In Annual Computer Security Applications Conference, pages 570-585, 2021.", "[27] Panagiota Kiourti, Kacper Wardega, Susmit Jha, and Wenchao Li. Trojdrl: evaluation of backdoor attacks on deep reinforcement learning. In 2020 57th ACM/IEEE Design Automation Conference (DAC), pages 1-6. IEEE, 2020." ], "bbox": [ 501, 92, 890, 900 ], "page_idx": 8 }, { "type": "page_number", "text": "173", "bbox": [ 486, 945, 509, 955 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[28] Hyun Kwon. Defending deep neural networks against backdoor attack by using de-trigger autoencoder. IEEE Access, 2021.", "[29] Yuanchun Li, Jiayi Hua, Haoyu Wang, Chunyang Chen, and Yunxin Liu. Deeppayload: Black-box backdoor attack on deep learning models through neural payload injection. In 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE), pages 263-274. IEEE, 2021.", "[30] Yiming Li, Yong Jiang, Zhifeng Li, and Shu-Tao Xia. Backdoor learning: A survey. IEEE Transactions on Neural Networks and Learning Systems, 2022.", "[31] Yige Li, Xixiang Lyu, Nodens Koren, Lingjuan Lyu, Bo Li, and Xingjun Ma. Anti-backdoor learning: Training clean models on poisoned data. Advances in Neural Information Processing Systems, 34:14900-14912, 2021.", "[32] Yige Li, Xixiang Lyu, Nodens Koren, Lingjuan Lyu, Bo Li, and Xingjun Ma. Neural attention distillation: Erasing back-door triggers from deep neural networks. In International Conference on Learning Representations, 2021.", "[33] Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Finepruning: Defending against backdooring attacks on deep neural networks. In International Symposium on Research in Attacks, Intrusions, and Defenses, pages 273-294. Springer, 2018.", "[34] Yingqi Liu, Guangyu Shen, Guanhong Tao, Shengwei An, Shiqing Ma, and Xiangyu Zhang. Piccolo: Exposing complex backdoors in nlp transformer models. In 2022 IEEE Symposium on Security and Privacy (SP), pages 1561-1561. IEEE Computer Society, 2022.", "[35] Hua Ma, Yinshan Li, Yansong Gao, Alsharif Abuadbba, Zhi Zhang, Anmin Fu, Hyoungshick Kim, Said F Al-Sarawi, Nepal Surya, and Derek Abbott. Dangerous cloaking: Natural trigger based backdoor attacks on object detectors in the physical world. arXiv preprint arXiv:2201.08619, 2022.", "[36] Hua Ma, Yinshan Li, Yansong Gao, Zhi Zhang, Alsharif Abuadbba, Anmin Fu, Said F Al-Sarawi, Nepal Surya, and Derek Abbott. Macab: Model-agnostic clean-annotation backdoor to object detection with natural trigger in real-world. arXiv preprint arXiv:2209.02339, 2022.", "[37] Tuan Anh Nguyen and Anh Tuan Tran. Wanet - imperceptible warping-based backdoor attack. In International Conference on Learning Representations, 2021.", "[38] Fanchao Qi, Yangyi Chen, Mukai Li, Yuan Yao, Zhiyuan Liu, and Maosong Sun. Onion: A simple and effective defense against textual backdoor attacks. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 9558-9566, 2021.", "[39] Han Qiu, Yi Zeng, Shangwei Guo, Tianwei Zhang, Meikang Qiu, and Bhavani Thuraisingham. Deepsweep: An evaluation framework for mitigating dnn backdoor attacks using data augmentation. In Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security, pages 363-377, 2021.", "[40] Adnan Siraj Rakin, Zhezhi He, and Deliang Fan. Tbt: Targeted neural network attack with bit Trojan. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13198-13207, 2020." ], "bbox": [ 78, 90, 468, 900 ], "page_idx": 9 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[41] Aniruddha Saha, Akshayvarun Subramanya, and Hamed Pirsiavash. Hidden trigger backdoor attacks. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 11957-11965, 2020.", "[42] Aniruddha Saha, Ajinkya Tejankar, Soroush Abbasi Koohpayegani, and Hamed Pirsivash. Backdoor attacks on self-supervised learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13337-13346, 2022.", "[43] Kun Shao, Junan Yang, Yang Ai, Hui Liu, and Yu Zhang. Bddr: An effective defense against textual backdoor attacks. Computers & Security, 110:102433, 2021.", "[44] Guangyu Shen, Yingqi Liu, Guanhong Tao, Qiuling Xu, Zhuo Zhang, Shengwei An, Shiqing Ma, and Xiangyu Zhang. Constrained optimization with dynamic bound-scaling for effective nlp backdoor defense. In International Conference on Machine Learning, pages 19879-19892. PMLR, 2022.", "[45] Karan Sikka, Indranil Sur, Susmit Jha, Anirban Roy, and Ajay Divakaran. Detecting trojaned dnns using counterfactual attributions. arXiv preprint arXiv:2012.02275, 2020.", "[46] Alexander Turner, Dimitris Tsipras, and Aleksander Madry. Label-consistent backdoor attacks. arXiv preprint arXiv:1912.02771, 2019.", "[47] Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. Universal adversarial triggers for attacking and analyzing NLP. In Empirical Methods in Natural Language Processing, 2019.", "[48] Matthew Walmer, Karan Sikka, Indranil Sur, Abhinav Shrivastava, and Susmit Jha. Dual-key multimodal backdoors for visual question answering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15375-15385, 2022.", "[49] Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y Zhao. Neural cleansse: Identifying and mitigating backdoor attacks in neural networks. In 2019 IEEE Symposium on Security and Privacy (SP), pages 707-723. IEEE, 2019.", "[50] Wenqi Wang, Run Wang, Lina Wang, Zhibo Wang, and Aoshuang Ye. Towards a robust deep neural network in texts: A survey. arXiv preprint arXiv:1902.07285, 2019.", "[51] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detector2. https://github.com/facebookresearch/detectron2, 2019.", "[52] Mingfu Xue, Shifeng Ni, Yinghao Wu, Yushu Zhang, Jian Wang, and Weiqiang Liu. Imperceptible and multi-channel backdoor attack against deep neural networks. arXiv preprint arXiv:2201.13164, 2022.", "[53] Wenkai Yang, Yankai Lin, Peng Li, Jie Zhou, and Xu Sun. Rap: Robustness-aware perturbations for defending against backdoor attacks on nlp models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 8365-8381, 2021.", "[54] Zhou Yu, Jun Yu, Jianping Fan, and Dacheng Tao. Multimodal factorized bilinear pooling with co-attention learning for visual question answering. In Proceedings of the IEEE international conference on computer vision, pages 1821–1830, 2017." ], "bbox": [ 501, 92, 892, 898 ], "page_idx": 9 }, { "type": "page_number", "text": "174", "bbox": [ 486, 945, 509, 955 ], "page_idx": 9 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[55] Xiaoyu Zhang, Rohit Gupta, Ajmal Mian, Nazanin Rahnavard, and Mubarak Shah. Cassandra: Detecting trojaned networks from adversarial perturbations. IEEE Access, 9:135856-135867, 2021.", "[56] Biru Zhu, Yujia Qin, Ganqu Cui, Yangyi Chen, Weilin Zhao, Chong Fu, Yangdong Deng, Zhiyuan Liu, Jingang Wang, Wei Wu, et al. Moderate-fitting as a natural backdoor defender for pre-trained language models. In Advances in Neural Information Processing Systems, 2022." ], "bbox": [ 78, 90, 468, 218 ], "page_idx": 10 }, { "type": "page_number", "text": "175", "bbox": [ 486, 945, 509, 955 ], "page_idx": 10 }]1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993[ [ { "type": "header", "bbox": [ 0.107, 0.003, 0.182, 0.043 ], "angle": 0, "content": "CVF" }, { "type": "header", "bbox": [ 0.239, 0.001, 0.808, 0.047 ], "angle": 0, "content": "This ICCV paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore." }, { "type": "title", "bbox": [ 0.105, 0.13, 0.868, 0.175 ], "angle": 0, "content": "TIJO: Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models" }, { "type": "text", "bbox": [ 0.186, 0.203, 0.777, 0.265 ], "angle": 0, "content": "Indranil Sur\\(^{1*}\\) Karan Sikka\\(^{1}\\) Matthew Walmer\\(^{2}\\) Kaushik Koneripalli\\(^{1}\\) Anirban Roy\\(^{1}\\) Xiao Lin\\(^{1}\\) Ajay Divakaran\\(^{1}\\) Susmit Jha\\(^{1}\\) SRI International \\(^{2}\\)University of Maryland" }, { "type": "title", "bbox": [ 0.235, 0.299, 0.314, 0.315 ], "angle": 0, "content": "Abstract" }, { "type": "text", "bbox": [ 0.076, 0.332, 0.474, 0.741 ], "angle": 0, "content": "We present a Multimodal Backdoor Defense technique TIJO (Trigger Inversion using Joint Optimization). Recent work [48] has demonstrated successful backdoor attacks on multimodal models for the Visual Question Answering task. Their dual-key backdoor trigger is split across two modalities (image and text), such that the backdoor is activated if and only if the trigger is present in both modalities. We propose TIJO that defends against dual-key attacks through a joint optimization that reverse-engineers the trigger in both the image and text modalities. This joint optimization is challenging in multimodal models due to the disconnected nature of the visual pipeline which consists of an offline feature extractor, whose output is then fused with the text using a fusion module. The key insight enabling the joint optimization in TIJO is that the trigger inversion needs to be carried out in the object detection box feature space as opposed to the pixel space. We demonstrate the effectiveness of our method on the TrojVQA benchmark, where TIJO improves upon the state-of-the-art unimodal methods from an AUC of 0.6 to 0.92 on multimodal dual-key backdoors. Furthermore, our method also improves upon the unimodal baselines on unimodal backdoors. We present ablation studies and qualitative results to provide insights into our algorithm such as the critical importance of overlaying the inverted feature triggers on all visual features during trigger inversion. The prototype implementation of TIJO is available at https://github.com/SRI-CSL/TIJO." }, { "type": "title", "bbox": [ 0.078, 0.772, 0.21, 0.788 ], "angle": 0, "content": "1. Introduction" }, { "type": "text", "bbox": [ 0.076, 0.798, 0.47, 0.875 ], "angle": 0, "content": "Deep Neural Networks (DNNs) are vulnerable to adversarial attacks [47, 1, 16, 24]. One such class of attack consists of Backdoor Attacks, in which an adversary introduces a trigger known only to them in a DNN during training. Such a backdoored DNN will behave normally with typi" }, { "type": "image", "bbox": [ 0.52, 0.299, 0.87, 0.525 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.498, 0.532, 0.895, 0.63 ], "angle": 0, "content": "Figure 1. (Top) A dual-key backdoor attack for multimodal models [48], which is designed to activate if and only if the trigger is present in both the modalities. Such backdoors cannot be detected by unimodal defenses. (Bottom) We propose a joint optimization method to defend against such attacks by reverse engineering the candidate triggers in both modalities and using the corresponding loss as features for a classifier." }, { "type": "text", "bbox": [ 0.498, 0.656, 0.893, 0.701 ], "angle": 0, "content": "cal in-distribution inputs but perform poorly (e.g. produce targeted misclassifications) on inputs stamped with a predefined trigger designed by the adversary [50, 21, 30]." }, { "type": "text", "bbox": [ 0.498, 0.703, 0.893, 0.839 ], "angle": 0, "content": "Recent work [48, 7] has introduced backdoors in multimodal domains such as Visual Question Answering (VQA) and Fake News Detection [7, 48]. In prior work [48], we have introduced a Dual-Key Backdoor Attack (shown in Figure 1), where the trigger is inserted in both the image and text modalities in such a manner that the backdoor is activated only when both modalities contain the trigger. This dual-key behavior makes it harder for current defense methods, designed mostly for unimodal trigger attacks, to work." }, { "type": "text", "bbox": [ 0.498, 0.84, 0.894, 0.902 ], "angle": 0, "content": "There has been significant work developing defenses against backdoor attacks in the visual domain, in particular for the image classification task [45, 49, 6, 23]. Recent works have also explored defense in natural language pro" }, { "type": "page_footnote", "bbox": [ 0.096, 0.887, 0.339, 0.9 ], "angle": 0, "content": "*Corresponding author: indranil.sur@sri.com" }, { "type": "page_number", "bbox": [ 0.487, 0.946, 0.512, 0.957 ], "angle": 0, "content": "165" } ], [ { "type": "text", "bbox": [ 0.076, 0.092, 0.473, 0.363 ], "angle": 0, "content": "cessing domains [38, 43, 34]. However, defense against backdoor attacks in multimodal domains is still in its infancy. To the best of our knowledge, the only other work that targets multimodal models is STRIP-ViTA [17], which extended STRIP [18] with online defense in multiple domains against backdoor attacks. Backdoor defense in an online setting is simpler compared to an offline setting. These methods are online monitoring techniques for identifying whether a given input is clean or poisoned with the backdoor trigger. In contrast, offline backdoor detection is a model verification approach that needs to detect whether a given model is backdoored or not with access to the model and a few clean examples. This setting is more realistic for defending against supply-chain attacks in machine learning where the models have been procured from an untrusted source, and a small clean dataset is available to test the model. We focus on multimodal defense in such an offline setting." }, { "type": "text", "bbox": [ 0.076, 0.364, 0.473, 0.695 ], "angle": 0, "content": "In this work, we propose a novel approach for defending against multimodal backdoor attacks, referred to as Trojan Inversion using Joint Optimization (TIJO), that reverse engineers the triggers in both modalities. Our approach is motivated by the Universal Adversarial Trigger (UAT) [47] that was proposed to identify naturally occurring universal triggers in pre-trained NLP models and has been extended in earlier works to identify Trojan triggers in NLP models. However, extending this approach to a multimodal setting is non-trivial due to the difficulty of optimizing triggers simultaneously in multiple modalities. Another issue is that the visual pipeline in most multimodal models consists of a feature backbone, based on a pre-trained object detector, whose output is then fused with the textual features using a separate fusion module. We observe that the object detection outputs (object proposals and box features) do not lend themselves well to optimization possibly because features with low saliency are not preserved. Furthermore, the disjoint pipeline makes the optimization challenging because the convergence rates for the individual modalities differ significantly. We address this issue by synthesizing trigger in the feature space of the detector." }, { "type": "text", "bbox": [ 0.076, 0.697, 0.472, 0.801 ], "angle": 0, "content": "We evaluate TIJO on the TrojVQA dataset [48] that consists of over 800 VQA models spanning across 4 feature backbones and 10 model architectures. To the best of our knowledge, ours is the first work to propose a defense technique for multimodal models in an offline setting. Our results indicate strong improvement over prior unimodal methods. Our contributions are as follows:" }, { "type": "text", "bbox": [ 0.078, 0.811, 0.47, 0.839 ], "angle": 0, "content": "- We present a novel approach for Multimodal Backdoor defense referred to as TIJO." }, { "type": "text", "bbox": [ 0.078, 0.841, 0.47, 0.884 ], "angle": 0, "content": "- We develop a novel trigger inversion process in object detection box feature space as well as textual space that enables joint optimization of multimodal triggers." }, { "type": "text", "bbox": [ 0.078, 0.886, 0.469, 0.9 ], "angle": 0, "content": "- We demonstrate TIJO on the TrojVQA dataset and show" }, { "type": "list", "bbox": [ 0.078, 0.811, 0.47, 0.9 ], "angle": 0, "content": null }, { "type": "text", "bbox": [ 0.511, 0.092, 0.892, 0.151 ], "angle": 0, "content": "that trigger inversion in both modalities is necessary to effectively defend against multimodal backdoor attacks. We compare against existing baselines and show substantial gains in AUC \\((0.6\\to 0.92)\\)" }, { "type": "text", "bbox": [ 0.5, 0.153, 0.892, 0.211 ], "angle": 0, "content": "- We show that TIJO improves upon our selected set of state-of-the-art unimodal methods in the detection of unimodal backdoors indicating that our proposed method is modality-agnostic." }, { "type": "text", "bbox": [ 0.5, 0.213, 0.892, 0.287 ], "angle": 0, "content": "- We uncover several insights with ablation studies such as (1) increasing the number of optimization steps improves the backdoor detection performance, and (2) the feature trigger needs to be overlaid on all the visual features for the best results." }, { "type": "list", "bbox": [ 0.5, 0.153, 0.892, 0.287 ], "angle": 0, "content": null }, { "type": "title", "bbox": [ 0.5, 0.311, 0.642, 0.327 ], "angle": 0, "content": "2. Related Work" }, { "type": "text", "bbox": [ 0.498, 0.337, 0.892, 0.563 ], "angle": 0, "content": "Backdoor Attacks: Backdoor attacks are a type of targeted adversarial attack that were first introduced in [21]. Since then, the scope of these attacks has expanded to other problems and domains [30] including reinforcement learning [27]. Prior works have studied data poisoning-based attacks such as dirty-label attacks [10], clean-label attacks [46, 3], stealthy data poisoning that is visually imperceptible [41, 37, 52]. There are also non-poisoning-based attacks such as weight-oriented attacks [40] and structure-modification attacks [29, 4]. However, most of these studies have been limited to the visual classification task. Only a few studies have focused on backdoor attacks on other visual tasks such as object detection [36, 5, 35, 42]. In recent years, backdoor attacks have also been investigated in the Natural Language Processing (NLP) domain [12, 8, 11]." }, { "type": "text", "bbox": [ 0.498, 0.581, 0.892, 0.779 ], "angle": 0, "content": "Backdoor Defenses: Defense against backdoor attacks has evolved in tandem with developments in backdoor attacks. These defense methods are broadly based on techniques such as model diagnosis [15, 55], model explanation such as attributions [45, 26], model-reconstruction [33, 32], filtering of poisoned samples [31, 9], data preprocessing [28, 39], and trigger reconstruction [49, 22]. Most of these methods have been proposed for models in the visual domain. There have been some recent works on backdoor defense in the NLP domain. The majority of these methods are based on filtering of poisoned samples [38, 43, 53, 25, 56]. Other works rely on ideas such as model diagnosis [14, 19], prepossessing-based [2], and trigger synthesis [34, 44]." }, { "type": "text", "bbox": [ 0.498, 0.795, 0.892, 0.901 ], "angle": 0, "content": "Multi-Modal Backdoor Attacks & Defenses: Recent studies have also extended data-poisoning based backdoor attacks into multimodal domains. Chen et al. [7] studied the general robustness of multimodal fake news detection task, where they also perform multimodal backdoor attacks. Walmer et al. [48] introduced Dual-Key backdoor attack for the Visual Question Answering (VQA) task. As shown in" }, { "type": "page_number", "bbox": [ 0.488, 0.946, 0.511, 0.956 ], "angle": 0, "content": "166" } ], [ { "type": "image", "bbox": [ 0.159, 0.089, 0.808, 0.379 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.076, 0.383, 0.892, 0.455 ], "angle": 0, "content": "Figure 2. Shows key blocks of TIJO. (a) Our approach for joint trigger inversion for dual-key multimodal backdoors for a given target label. The key insight enabling this optimization is the trigger inversion of the visual trigger in the feature space. (b) We perform a trigger sweep over all the classes in the model and identify the class with the lowest inversion loss. (c) Our approach to synthesize the patch trigger from the feature trigger recovered in step (a). (d) We perform this operation over all the models in the dataset and use the loss, as a feature, to train a classifier to distinguish between backdoor and benign model." }, { "type": "text", "bbox": [ 0.076, 0.478, 0.469, 0.523 ], "angle": 0, "content": "Figure 1, this attack was designed to trigger the backdoor only when the trigger is present in both modalities, which makes the attack stealthier compared to a unimodal trigger." }, { "type": "text", "bbox": [ 0.076, 0.524, 0.469, 0.66 ], "angle": 0, "content": "Defense against multimodal backdoor attacks is limited in comparison to unimodal attacks in the vision and NLP domains. Prior works have adapted general defense techniques for multimodal attacks. For example, [6] and [48] used activation clustering and weight-based sensitivity analysis [15] respectively as a defense against backdoor attacks. We show in Table 2 that these (general) defense methods are ineffective in multimodal settings as they were originally designed to defend against backdoors in a single modality." }, { "type": "text", "bbox": [ 0.076, 0.661, 0.469, 0.812 ], "angle": 0, "content": "Gao et al. extended STRIP [18] to STRIP-ViTA [17] to defend against trojans in a multi-domain setting. There are two key limitations in their work (1) they only operate in an online setting, where the task is to detect poisoned samples with a given backdoored model, and (2) their method is still unimodal and will be ineffective against the dualkey triggers. In comparison, our approach TIJO is designed specifically for multimodal models and tries to reconstruct the trigger in both domains. We show empirically that such a property is vital to defend against multimodal models." }, { "type": "title", "bbox": [ 0.078, 0.829, 0.185, 0.846 ], "angle": 0, "content": "3. Approach" }, { "type": "text", "bbox": [ 0.077, 0.856, 0.469, 0.901 ], "angle": 0, "content": "We first discuss the threat model that we aim to defend against, then discuss the UAT method [47] and its extension to multimodal models, and present our method, TIJO." }, { "type": "title", "bbox": [ 0.5, 0.477, 0.642, 0.492 ], "angle": 0, "content": "3.1. Threat Model" }, { "type": "text", "bbox": [ 0.498, 0.503, 0.892, 0.699 ], "angle": 0, "content": "Given a multimodal model \\( f \\), we need to determine if \\( f \\) is benign or backdoored. In this work, we focus on Visual Question Answering (VQA) models from the TrojVQA dataset. Let \\( \\mathcal{C} \\) be the clean VQAv2 dataset [20] where each data entry is a triplet \\( (\\pmb{x},\\pmb{t},\\pmb{y}) \\) where \\( \\pmb{x} \\) is the image, \\( \\pmb{t} \\) is the tokenized question, and \\( y \\) is the answer label. Most VQA models use a two-step process for generating the answer. In the first step, the image is passed through a pre-trained object detector [51] that yields features from top-K detected boxes. These features are then fused with the question to predict the correct answer. Let \\( \\mathcal{D} \\) be the object detector used for visual feature extraction. The answer is generated using \\( f(t,\\mathcal{D}(\\pmb{x})) = y \\)." }, { "type": "text", "bbox": [ 0.498, 0.702, 0.892, 0.868 ], "angle": 0, "content": "In our threat model, we assume that \\(\\mathcal{D}\\) is benign and the adversary introduces the backdoor in the VQA model \\(f\\). This is also the threat model used in the TrojVQA dataset [48]. For a backdoored VQA model \\(f_{b}\\), the adversary introduces triggers \\(\\pmb{p}_{t}\\) and \\(\\pmb{t}_{t}\\) in both the image and text modalities respectively. \\(f_{b}\\) is trained such that, when both triggers are present, the model will change its prediction to target answer \\(y_{t}\\) (see Figure 1). In the TrojVQA dataset, \\(\\pmb{p}_{t}\\) are small visual patches while \\(\\pmb{t}_{t}\\) are natural words. The triggers and the model behavior are only known to the adversary." }, { "type": "text", "bbox": [ 0.499, 0.871, 0.892, 0.902 ], "angle": 0, "content": "Let \\(\\mathcal{M}\\) be a policy that overlaps \\(\\pmb{p}_t\\) on \\(\\pmb{x}\\) and \\(\\mathcal{A}\\) be a policy that appends \\(\\pmb{t}_t\\) to \\(\\pmb{t}\\). Hence, for a backdoored VQA" }, { "type": "page_number", "bbox": [ 0.488, 0.946, 0.511, 0.957 ], "angle": 0, "content": "167" } ], [ { "type": "text", "bbox": [ 0.078, 0.092, 0.245, 0.106 ], "angle": 0, "content": "model \\(f_{b}\\) , we expect that" }, { "type": "equation", "bbox": [ 0.164, 0.118, 0.382, 0.134 ], "angle": 0, "content": "\\[\nf _ {b} (\\mathcal {A} (\\boldsymbol {t}, \\boldsymbol {t} _ {t}), \\mathcal {D} (\\mathcal {M} (\\boldsymbol {x}, \\boldsymbol {p} _ {t}))) = y _ {t}\n\\]" }, { "type": "text", "bbox": [ 0.077, 0.145, 0.47, 0.191 ], "angle": 0, "content": "In this work, we focus on dual-key triggers [48], where the model changes its prediction only when both \\(\\mathcal{M}\\) and \\(\\mathcal{A}\\) are applied together." }, { "type": "title", "bbox": [ 0.078, 0.2, 0.334, 0.216 ], "angle": 0, "content": "3.2. Trigger Inversion using UAT" }, { "type": "text", "bbox": [ 0.076, 0.223, 0.469, 0.388 ], "angle": 0, "content": "TIJO is based on Universal Adversarial Triggers (UAT) [47], which extends Hotflip [13] from synthesizing adversarial tokens for a single input to all inputs in the dataset. As a result, obtained adversarial tokens are universal in nature. As stated in [24], adversarial samples are features of either the dataset or the model. Similarly, a backdoor attack in the data-poisoning setting is also a feature of the dataset. Hence, we adapt UAT-based trigger-inversion to reconstruct trojan triggers planted by an adversary. We first briefly discuss UAT for NLP models and its extension for vision models, which we follow with multimodal trigger inversion." }, { "type": "text", "bbox": [ 0.076, 0.39, 0.47, 0.541 ], "angle": 0, "content": "Eq. 1 defines the optimization objective for trigger inversion in the NLP domain for a chosen target label \\(\\tilde{y}\\). Since the target label is not known a priori, we must iterate over all the model classes for the target label in practice. Here \\(\\mathcal{L}\\) is the cross-entropy loss, and we optimize to minimize the expected loss over all samples in \\(S\\). In summary, we optimize to get the \\(t_{adv}\\) that maximizes the likelihood of switching the class label to \\(\\tilde{y}\\) for all samples in \\(S\\). Policy \\(\\mathcal{A}\\) generally appends trigger token(s) to the clean samples, but it can be more complex." }, { "type": "equation", "bbox": [ 0.138, 0.551, 0.469, 0.574 ], "angle": 0, "content": "\\[\n\\min _ {\\boldsymbol {t} _ {a d v}} \\mathbb {E} _ {\\boldsymbol {t}, \\boldsymbol {x} \\sim \\mathcal {S}} \\left[ \\mathcal {L} \\left(\\tilde {y}, f (\\mathcal {A} \\left(\\boldsymbol {t} _ {a d v}, \\boldsymbol {t}\\right), \\mathcal {D} (\\boldsymbol {x}))\\right) \\right] \\tag {1}\n\\]" }, { "type": "text", "bbox": [ 0.076, 0.585, 0.469, 0.704 ], "angle": 0, "content": "Since the space of \\( t_{adv} \\) is discrete, each optimization step is followed by a next token selection step. The next token is set by \\( t_{adv} \\gets t_i \\) which minimizes the trigger inversion loss's first-order Taylor approximation around the current token embedding as given by Eq. 2. Here \\( \\mathcal{V}_f \\) is the vocabulary of all tokens in \\( f \\), function \\( \\mathcal{E}_f \\) gives the token embeddings and \\( \\nabla_{\\mathcal{E}_f(t_{adv})}\\mathcal{L} \\) is the average gradient of the loss over a batch." }, { "type": "equation", "bbox": [ 0.144, 0.715, 0.469, 0.74 ], "angle": 0, "content": "\\[\n\\min _ {\\boldsymbol {t} _ {i} \\in \\mathcal {V} _ {f}} \\left[ \\mathcal {E} _ {f} \\left(\\boldsymbol {t} _ {i}\\right) - \\mathcal {E} _ {f} \\left(\\boldsymbol {t} _ {a d v}\\right) \\right] ^ {\\intercal} \\nabla_ {\\mathcal {E} _ {f} \\left(\\boldsymbol {t} _ {a d v}\\right)} \\mathcal {L} \\tag {2}\n\\]" }, { "type": "text", "bbox": [ 0.076, 0.75, 0.469, 0.901 ], "angle": 0, "content": "The above optimization problem is solved efficiently by computing dot products between the gradient and the \\(\\nu_{f}\\) embeddings and then using nearest neighbor or beam search to get the updated token \\(t_i\\) [47]. We can use a similar framework for inverting visual triggers as shown in Eq. 3. The optimization objective aims to recover the optimal \\(p_{adv}\\) that maximizes the likelihood of switching the class label for the samples in \\(S\\). The only difference is that we use projected gradient descent for patch \\(p_{adv}\\), overlaid on \\(x\\) through policy \\(\\mathcal{M}\\), which needs to obey image constraints. This ap" }, { "type": "text", "bbox": [ 0.499, 0.092, 0.89, 0.122 ], "angle": 0, "content": "proach is similar to prior trigger reconstruction-based methods such as Neural Cleansse [49]." }, { "type": "equation", "bbox": [ 0.556, 0.129, 0.892, 0.153 ], "angle": 0, "content": "\\[\n\\underset {\\boldsymbol {p} _ {a d v}} {\\min } \\mathbb {E} _ {\\boldsymbol {t}, \\boldsymbol {x} \\sim \\mathcal {S}} \\left[ \\mathcal {L} (\\tilde {y}, f (\\boldsymbol {t}, \\mathcal {D} (\\mathcal {M} (\\boldsymbol {x}, \\boldsymbol {p} _ {a d v})))) \\right] \\tag {3}\n\\]" }, { "type": "title", "bbox": [ 0.5, 0.166, 0.851, 0.182 ], "angle": 0, "content": "3.3. Multimodal Trigger Inversion with TIJO" }, { "type": "text", "bbox": [ 0.498, 0.189, 0.892, 0.326 ], "angle": 0, "content": "We now outline our approach for multimodal Trigger Inversion using Joint Optimization (TIJO) (shown in Figure 2). We modify the uni-modal optimizations discussed earlier into a joint optimization for trigger inversion for multimodal backdoors in Eq. 4. Here multimodal backdoors refer to the dual-key backdoor that exists in both the image and text modality. We optimize for both \\( \\pmb{t}_{adv} \\) and \\( \\pmb{p}_{adv} \\) to maximize the likelihood of switching the class label to \\( \\tilde{y} \\) for all samples in \\( S \\)." }, { "type": "equation", "bbox": [ 0.51, 0.332, 0.892, 0.368 ], "angle": 0, "content": "\\[\n\\min _ {\\boldsymbol {t} _ {a d v}, \\boldsymbol {p} _ {a d v}} \\mathbb {E} _ {\\boldsymbol {t}, \\boldsymbol {x} \\sim \\mathcal {S}} \\left[ \\mathcal {L} \\left(\\tilde {y}, f \\left(\\mathcal {A} \\left(\\boldsymbol {t} _ {a d v}, \\boldsymbol {t}\\right), \\mathcal {D} \\left(\\mathcal {M} \\left(\\boldsymbol {p} _ {a d v}, \\boldsymbol {x}\\right)\\right)\\right)\\right) \\right] \\tag {4}\n\\]" }, { "type": "text", "bbox": [ 0.498, 0.369, 0.893, 0.595 ], "angle": 0, "content": "Solving Eq. 4 for multimodal (dual-key) backdoors is challenging. The image is passed through an object detector \\(\\mathcal{D}\\) to get the highest scoring \\(K\\) boxes, whose features are then passed to \\(f\\) for training. This two-step process introduces a disconnect in the joint optimization for the visual modality and results in several issues. For example, when we stamp the patch on the image during optimization, the detector \\(\\mathcal{D}\\) may not propose bounding boxes containing the patch \\(\\pmb{p}_{adv}\\). One solution would be to manually force the detector to sample a proposal around \\(\\pmb{p}_{adv}\\). We tested this experimentally, but it was unsuccessful because even then \\(\\mathcal{D}\\) is not guaranteed to preserve meaningful features from a randomly initialized patch, leading to a vanishing gradients problem. Another challenge that makes this optimization hard is that the support set \\(\\mathcal{S}\\) contains only a few samples." }, { "type": "text", "bbox": [ 0.498, 0.596, 0.893, 0.853 ], "angle": 0, "content": "Proposed key idea: We propose to overcome this issue and enable the convergence for both the visual and textual trigger by performing trigger inversion for the visual triggers in the feature space of \\(\\mathcal{D}\\), while the textual trigger is optimized in the token space as done for UAT. We define \\(f_{adv}\\) as the additive adversarial feature space signature and \\(\\mathcal{B}\\) as the overlay policy by which we overlay \\(f_{adv}\\) on box features from \\(\\mathcal{D}\\). The modified optimization objective is shown in Eq. 5, where we optimize \\(t_{adv}\\) and \\(f_{adv}\\) instead of \\(p_{adv}\\). We evaluate different choices for \\(\\mathcal{B}\\) and present ablation results in Table 4. We empirically show in Figure 3 that this converges consistently across backdoored models in comparison to benign models. We have shown a detailed description of our approach in Figure 2. Similar to UAT, we optimize Eq. 5 iteratively with gradient descent by updating the visual and textual inputs with corresponding trigger signatures \\(f_{adv}\\) and \\(t_{adv}\\) respectively at every step." }, { "type": "equation", "bbox": [ 0.515, 0.864, 0.892, 0.901 ], "angle": 0, "content": "\\[\n\\min _ {\\boldsymbol {t} _ {a d v}, \\boldsymbol {f} _ {a d v}} \\mathbb {E} _ {\\boldsymbol {t}, \\boldsymbol {x} \\sim \\mathcal {S}} \\left[ \\mathcal {L} \\left(\\tilde {y}, f \\left(\\mathcal {A} \\left(\\boldsymbol {t} _ {a d v}, \\boldsymbol {t}\\right), \\mathcal {B} \\left(\\mathcal {D} (\\boldsymbol {x}), \\boldsymbol {f} _ {a d v}\\right)\\right)\\right) \\right] \\tag {5}\n\\]" }, { "type": "page_number", "bbox": [ 0.487, 0.946, 0.512, 0.957 ], "angle": 0, "content": "168" } ], [ { "type": "image", "bbox": [ 0.14, 0.089, 0.833, 0.366 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.076, 0.37, 0.895, 0.429 ], "angle": 0, "content": "Figure 3. Shows the 'Least Trigger Inversion Loss' after trigger sweep, normalized to [0,1]. The blue and red dots are benign and backdoor models respectively. Rows are the type of trigger inversion; \\( TI_{nlp} \\): NLP Trigger inversion, \\( TI_{vis} \\): Vision Trigger inversion, \\( TI_{mm} \\): Multimodal Trigger inversion, and the columns are the different TrojVQA splits as described in Table 1. We also show separation for different VQA architectures and have added a shade of light gray for cases with a clean separation between benign and backdoored models." }, { "type": "table", "bbox": [ 0.082, 0.447, 0.468, 0.55 ], "angle": 0, "content": "<table><tr><td>Split</td><td>NLP</td><td>Visual</td><td>Train/Test</td><td>Trigger Type</td></tr><tr><td>Tnlp</td><td>✓</td><td>X</td><td>160/80</td><td>Single Key NLP</td></tr><tr><td>Tsolid</td><td>X</td><td>Solid</td><td>160/80</td><td>Single Key Vision</td></tr><tr><td>Toptim</td><td>X</td><td>Optimized</td><td>160/80</td><td>Single Key Vision</td></tr><tr><td>Tnlp+S</td><td>✓</td><td>Solid</td><td>160/80</td><td>Dual Key</td></tr><tr><td>Tnlp+O</td><td>✓</td><td>Optimized</td><td>160/80</td><td>Dual Key</td></tr><tr><td>T</td><td>✓</td><td>✓</td><td>320/160</td><td>Dual Key</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.078, 0.552, 0.438, 0.566 ], "angle": 0, "content": "Table 1. Details about the TrojVQAdataset [48] and its splits." }, { "type": "title", "bbox": [ 0.078, 0.602, 0.312, 0.619 ], "angle": 0, "content": "3.4. Trigger Patch Generation" }, { "type": "text", "bbox": [ 0.076, 0.626, 0.473, 0.826 ], "angle": 0, "content": "We also propose to recover the patch trigger \\( \\pmb{p}_{adv} \\) based on the \\( \\pmb{f}_{adv} \\) obtained using Eq. 5 (see Figure 2). We first compute the box proposals \\( \\pmb{b}_x \\gets \\mathcal{D}_{rpn}(\\mathcal{D}_{cnn}(\\pmb{x})) \\) and box features \\( \\pmb{f}_x \\gets \\mathcal{D}_{roi}(\\mathcal{D}_{cnn}(\\pmb{x}),\\pmb{b}_x) \\) on the clean image \\( \\pmb{x} \\). We also compute the box features \\( \\pmb{f}_{x_p} \\gets \\mathcal{D}_{roi}(\\mathcal{D}_{cnn}(\\mathcal{M}(\\pmb{x},\\pmb{p}_{adv})),\\pmb{b}_x) \\) on the image stamped with \\( \\pmb{p}_{adv} \\). Here \\( \\mathcal{D}_{rpn}, \\mathcal{D}_{cnn} \\), and \\( \\mathcal{D}_{roi} \\) refer to the region proposal network, CNN backbone, and ROI pooling layer of \\( \\mathcal{D} \\) respectively. We overlay \\( \\pmb{f}_{adv} \\) on \\( \\pmb{f}_x \\) and then iteratively optimize \\( \\pmb{p}_{adv} \\) to minimize the MSE loss between \\( \\pmb{f}_{x_p} \\) and \\( \\mathcal{B}(\\pmb{f}_x,\\tilde{\\pmb{f}}_{adv}) \\). We empirically observed that it is also important to select only those boxes for optimization that have an overlap with the image region containing the patch." }, { "type": "title", "bbox": [ 0.078, 0.833, 0.367, 0.849 ], "angle": 0, "content": "3.5. Backdoored Model Classification" }, { "type": "text", "bbox": [ 0.076, 0.856, 0.471, 0.903 ], "angle": 0, "content": "The optimization objective should ideally converge only if the model is backdoored and if the target label \\(\\tilde{y}\\) is actually the poison label \\(y_{t}\\). We use this convergence property" }, { "type": "text", "bbox": [ 0.498, 0.451, 0.895, 0.663 ], "angle": 0, "content": "to train a classifier to separate backdoored and benign models. Since the poison label \\( y_{t} \\) is unknown, we sweep over all the label space, \\( \\forall \\tilde{y} \\in \\mathcal{V} \\) and repeat the trigger inversion process for each \\( \\tilde{y} \\) (referred to as trigger sweep). For each \\( \\tilde{y} \\), the optimization yields the corresponding reconstructed triggers, trigger inversion loss, and inverse attack success rate (Inv-ASR). Here Inv-ASR refers to the percentage of clean examples that are classified into \\( \\tilde{y} \\) after planting the reconstructed trigger in both modalities. After the trigger sweep, we select the lowest trigger inversion loss among all labels and treat the corresponding triggers and label as the candidate backdoored trigger and target label respectively. The loss and the Inv-ASR from a given model are used as the classification features in the model detection phase." }, { "type": "text", "bbox": [ 0.498, 0.663, 0.895, 0.725 ], "angle": 0, "content": "We first obtain the classification features for all the models in the dataset. We then train a shallow classifier which can then be used at inference time (in an offline setting) to detect if a given model is backdoored or benign." }, { "type": "title", "bbox": [ 0.5, 0.739, 0.634, 0.757 ], "angle": 0, "content": "4. Experiments" }, { "type": "text", "bbox": [ 0.498, 0.765, 0.895, 0.903 ], "angle": 0, "content": "We evaluate our approach in this section. We first discuss the dataset and metrics used for evaluation. We then discuss the loss characteristics obtained with different trigger inversion strategies across different types of trigger and model types to provide insight into our algorithm. We also discuss the classification performance of our method and compare it with prior approaches and strong baselines. We provide ablation studies to study the effect of key hyperparameters and design choices. Finally, we provide visualizations of" }, { "type": "page_number", "bbox": [ 0.488, 0.946, 0.511, 0.957 ], "angle": 0, "content": "169" } ], [ { "type": "table", "bbox": [ 0.097, 0.089, 0.872, 0.226 ], "angle": 0, "content": "<table><tr><td></td><td>Split</td><td>General Wt. Analysis</td><td>DBS</td><td>Unimodal NC</td><td>TABOR</td><td>TIJO \\( _{nlp} \\)</td><td>Ours TIJO \\( _{vis} \\)</td><td>TIJO \\( _{mm} \\)</td></tr><tr><td rowspan=\"3\">Single Key</td><td>\\( T_{nlp} \\)</td><td>0.61±0.07</td><td>0.89±0.05</td><td>-</td><td>-</td><td>0.98±0.02</td><td>0.52±0.06</td><td>0.98±0.02</td></tr><tr><td>\\( T_{solid} \\)</td><td>0.53±0.05</td><td>-</td><td>0.59±0.10</td><td>0.98±0.02</td><td>0.39±0.09</td><td>1.00±0.00</td><td>0.99±0.01</td></tr><tr><td>\\( T_{optim} \\)</td><td>0.58±0.05</td><td>-</td><td>0.71±0.08</td><td>0.99±0.02</td><td>0.40±0.11</td><td>0.99±0.01</td><td>0.95±0.03</td></tr><tr><td rowspan=\"3\">Dual Key</td><td>\\( T_{nlp+S} \\)</td><td>0.54±0.03</td><td>0.46±0.04</td><td>0.42±0.05</td><td>0.46±0.06</td><td>0.41±0.11</td><td>0.70±0.06</td><td>0.97±0.03</td></tr><tr><td>\\( T_{nlp+O} \\)</td><td>0.60±0.13</td><td>0.45±0.01</td><td>0.50±0.09</td><td>0.52±0.03</td><td>0.43±0.12</td><td>0.57±0.07</td><td>0.86±0.10</td></tr><tr><td>\\( T \\)</td><td>0.60±0.04</td><td>0.48±0.02</td><td>0.50±0.06</td><td>0.48±0.04</td><td>0.46±0.03</td><td>0.67±0.07</td><td>0.92±0.02</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.076, 0.228, 0.894, 0.286 ], "angle": 0, "content": "Table 2. Shows AUC for different \\(TrojVQA\\) splits with weight analysis, prior unimodal methods as well as three variants of our method- \\(\\mathrm{TIJO}_{\\mathrm{np}}\\), \\(\\mathrm{TIJO}_{\\mathrm{vis}}\\), and \\(\\mathrm{TIJO}_{\\mathrm{mm}}\\) which optimize triggers in NLP, vision, and both modalities respectively. We see a clear improvement with \\(\\mathrm{TIJO}_{\\mathrm{mm}}\\) for not only dual-key multimodal triggers but also for unimodal triggers. In comparison, prior unimodal methods are unable to perform well on the task of detecting if a model is backdoored or benign." }, { "type": "image", "bbox": [ 0.162, 0.301, 0.805, 0.437 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.24, 0.445, 0.729, 0.46 ], "angle": 0, "content": "Figure 4. Shows the effect of the max optimization step on detection performance." }, { "type": "text", "bbox": [ 0.076, 0.484, 0.471, 0.515 ], "angle": 0, "content": "the reconstructed visual patches using our algorithm (refer to the supplementary materials for implementation details)." }, { "type": "text", "bbox": [ 0.076, 0.534, 0.47, 0.822 ], "angle": 0, "content": "TrojVQA Dataset and Metric: We use the TrojVQA [48] dataset that was introduced recently and consists of both benign and poisoned VQA models. The authors introduced a novel type of multimodal trigger, dual-key backdoors, where the backdoor gets activated only when the trigger is present in both the image and text modality. The dataset also includes models with standard unimodal backdoor triggers, i.e. the trigger was introduced in either the text or image modality only. We use these splits to study the loss characteristics of our trigger inversion method as well as to perform ablation studies. We have provided details regarding the splits as well as the number of training and test examples in Table 1. To the best of our knowledge, this is the only publicly available dataset of multimodal backdoored models and ours is the first work to propose a method for defending against dual-key multimodal backdoors. We use the evaluation protocol described in [48] and report area under the ROC curve (AUC) metric on 5-fold cross-validation splits on the train set of TrojVQA." }, { "type": "title", "bbox": [ 0.077, 0.832, 0.409, 0.849 ], "angle": 0, "content": "4.1. Trigger Inversion Loss Characteristics" }, { "type": "text", "bbox": [ 0.076, 0.856, 0.469, 0.903 ], "angle": 0, "content": "We show the loss characteristics of our trigger inversion approach in Figure 3. This loss is obtained after optimizing Eq. 5 and trigger-sweep (as discussed in Section 3.5). The" }, { "type": "table", "bbox": [ 0.53, 0.481, 0.86, 0.612 ], "angle": 0, "content": "<table><tr><td>Split</td><td>Model</td><td>Inv-ASR</td><td>Lowest Loss</td></tr><tr><td rowspan=\"2\">Tnlp</td><td>TIJOnlp</td><td>0.94±0.05</td><td>0.98±0.02</td></tr><tr><td>TIJOmm</td><td>0.54±0.03</td><td>0.98±0.02</td></tr><tr><td rowspan=\"2\">Tsolid</td><td>TIJOvis</td><td>0.91±0.05</td><td>1.00±0.00</td></tr><tr><td>TIJOmm</td><td>0.56±0.04</td><td>0.99±0.01</td></tr><tr><td rowspan=\"2\">Toptim</td><td>TIJOvis</td><td>0.90±0.04</td><td>0.99±0.01</td></tr><tr><td>TIJOmm</td><td>0.54±0.02</td><td>0.95±0.03</td></tr><tr><td>T</td><td>TIJOmm</td><td>0.53±0.02</td><td>0.92±0.02</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.499, 0.614, 0.892, 0.657 ], "angle": 0, "content": "Table 3. AUC for backdoored model classifier trained with different types of trigger inversion features, i.e. least loss features and maximum switch to target accuracy." }, { "type": "table", "bbox": [ 0.502, 0.671, 0.905, 0.784 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">Split</td><td colspan=\"2\">TIJOvis</td><td colspan=\"2\">TIJOmm</td></tr><tr><td>Bone</td><td>Ball</td><td>Bone</td><td>Ball</td></tr><tr><td>Tsolid</td><td>0.85±0.04</td><td>1.00±0.00</td><td>0.86±0.10</td><td>0.99±0.01</td></tr><tr><td>Toptim</td><td>0.78±0.06</td><td>0.99±0.01</td><td>0.80±0.06</td><td>0.95±0.03</td></tr><tr><td>Tnlp+S</td><td>0.47±0.08</td><td>0.70±0.06</td><td>0.77±0.05</td><td>0.97±0.03</td></tr><tr><td>Tnlp+O</td><td>0.46±0.11</td><td>0.57±0.07</td><td>0.65±0.04</td><td>0.86±0.10</td></tr><tr><td>T</td><td>0.52±0.04</td><td>0.67±0.07</td><td>0.72±0.07</td><td>0.92±0.02</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.499, 0.788, 0.892, 0.844 ], "angle": 0, "content": "Table 4. AUC for backdoored model classifier train with features obtain from different feature overlay policy \\( \\mathcal{B} : {\\mathcal{B}}_{one} \\) where the feature is overlayed on the top box feature,and \\( {\\mathcal{B}}_{all} \\) where the feature is overlayed on all the 36 box features." }, { "type": "text", "bbox": [ 0.499, 0.871, 0.892, 0.903 ], "angle": 0, "content": "rows and columns in the figure correspond to the modalities involved in the trigger inversion optimization and \\(TrojVQA\\)" }, { "type": "page_number", "bbox": [ 0.488, 0.946, 0.511, 0.957 ], "angle": 0, "content": "170" } ], [ { "type": "image", "bbox": [ 0.101, 0.092, 0.832, 0.391 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.076, 0.396, 0.895, 0.425 ], "angle": 0, "content": "Figure 5. Visualizes the generated image patches from \\( \\tilde{f}_{adv} \\) using the trigger patch generation method described in Section 3.4. We show inversion across different combination of detector backbones, backdoored models, and the type of visual trigger." }, { "type": "table", "bbox": [ 0.079, 0.446, 0.487, 0.56 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">Split</td><td colspan=\"2\">TIJOvis</td><td colspan=\"2\">TIJOMm</td></tr><tr><td>λ=10-5</td><td>λ=10-3</td><td>λ=10-5</td><td>λ=10-3</td></tr><tr><td>Tsolid</td><td>0.97±0.03</td><td>0.97±0.02</td><td>0.91±0.04</td><td>0.89±0.03</td></tr><tr><td>Toptim</td><td>0.96±0.03</td><td>0.96±0.03</td><td>0.89±0.07</td><td>0.90±0.03</td></tr><tr><td>Tnlp+S</td><td>0.58±0.10</td><td>0.59±0.11</td><td>0.93±0.04</td><td>0.92±0.06</td></tr><tr><td>Tnlp+O</td><td>0.47±0.11</td><td>0.47±0.12</td><td>0.87±0.07</td><td>0.87±0.08</td></tr><tr><td>T</td><td>0.58±0.06</td><td>0.59±0.08</td><td>0.92±0.02</td><td>0.91±0.02</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.076, 0.562, 0.472, 0.606 ], "angle": 0, "content": "Table 5. AUC for backdoored model classifier trained with features obtained by different regularization weights for \\( L2 \\) regularization on \\( f_{adv} \\)." }, { "type": "text", "bbox": [ 0.076, 0.639, 0.47, 0.732 ], "angle": 0, "content": "split respectively. It also shows the performance across different VQA models. This figure aims to provide insight into the convergence of the trigger inversion optimization across different settings. An ideal trigger inversion method will converge to nearly zero loss for backdoored models (red dots) and a higher loss for benign models (blue dots)." }, { "type": "text", "bbox": [ 0.076, 0.735, 0.471, 0.903 ], "angle": 0, "content": "We observe that the trigger inversion works best if the inversion modality matches the modality of the trigger. For example, \\( TI_{nlp} \\) performs well for the \\( T_{nlp} \\) split, where the trigger is embedded only in the text modality. Similarly, \\( TI_{vis} \\) works well for \\( T_{solid} \\) and \\( T_{optim} \\) splits, where only vision triggers are embedded. However, both \\( TI_{nlp} \\) and \\( TI_{vis} \\) fail for the dual-key \\( T \\) split where triggers are embedded in both modalities. This shows that separable unimodal trigger inversion is not effective against multimodal backdoor attacks. Finally, we can see multimodal trigger inversion \\( TI_{mm} \\) is able to solve the problem and have a cleaner sepa" }, { "type": "text", "bbox": [ 0.498, 0.449, 0.892, 0.54 ], "angle": 0, "content": "ration between benign and backdoored models in the dualkey split. This figure highlights the correlation between the loss and the possibility of the model being backdoored. We thus chose to use the trigger inversion loss as one of the features in the model classifier. We also observe that \\( TI_{mm} \\) is effective across most VQA models." }, { "type": "text", "bbox": [ 0.498, 0.542, 0.893, 0.619 ], "angle": 0, "content": "We observed the phenomena of 'natural trojans' in multimodal models. Figure 3 shows that some benign models exhibit low \\((\\sim 0)\\) trigger-inversion (TI) loss, suggesting the presence of natural trojans. Models such as \\(\\mathrm{BAN}_4\\), \\(\\mathrm{BAN}_8\\), and \\(\\mathrm{BUTD}_e\\), are more prone to such natural trojans." }, { "type": "title", "bbox": [ 0.499, 0.633, 0.851, 0.649 ], "angle": 0, "content": "4.2. Backdoorsed Model Classification Results" }, { "type": "text", "bbox": [ 0.498, 0.66, 0.893, 0.901 ], "angle": 0, "content": "We train a logistic regression classifier on the trigger inversion features as mentioned in Section 3.5. Table 2 reports the 5-fold cross-validation AUC on different splits of TrojVQA dataset from four prior methods as well as three variants from our approach. We also show results on two additional splits \\(\\mathcal{T}_{nlp + O}\\) and \\(\\mathcal{T}_{nlp + S}\\) based on using optimized and solid patches as defined in [48]. We clearly see that the unimodal variants of our method- \\(\\mathrm{TIJO}_{nlp}\\) and \\(\\mathrm{TIJO}_{vis}-\\) have almost perfect performance on their corresponding unimodal splits. For example, \\(\\mathrm{TIJO}_{nlp}\\) achieves an AUC of 0.98 on split \\(\\mathcal{T}_{nlp}\\). However, their performance is low on the multimodal (dual-key) splits. \\(\\mathrm{TIJO}_{nlp}\\) and \\(\\mathrm{TIJO}_{vis}\\) achieve an AUC of 0.46 and 0.67 respectively on split \\(\\mathcal{T}\\). We also note that \\(\\mathrm{TIJO}_{vis}\\) performs better than \\(\\mathrm{TIJO}_{nlp}\\) on the multimodal splits. This is probably because there is a separation between benign and backdoored mod" }, { "type": "page_number", "bbox": [ 0.488, 0.946, 0.51, 0.957 ], "angle": 0, "content": "171" } ], [ { "type": "text", "bbox": [ 0.076, 0.092, 0.473, 0.258 ], "angle": 0, "content": "els based on the trigger inversion loss (even though the convergence is not perfect for backdoored models) for some VQA architectures (e.g. \\(\\mathrm{MCAN}_S\\), \\(\\mathrm{MCAN}_L\\), \\(\\mathrm{NAS}_S\\), \\(\\mathrm{NAS}_L\\)) as evident in Figure 3. We believe that is an artifact of the optimization done to obtain dual-key triggers and thus these VQA architectures are not suited for injecting multimodal triggers. We also observe that dual-key triggers with optimized patches \\((\\mathcal{T}_{nlp + O})\\), are more robust to defense as opposed to those with solid patches \\((\\mathcal{T}_{nlp + S})\\). For example, the AUC of \\(\\mathrm{TIJO}_{vis}\\) is substantially lower on \\(\\mathcal{T}_{nlp + O}\\) (0.57) as compared to \\(\\mathcal{T}_{nlp + S}\\) (0.70)." }, { "type": "text", "bbox": [ 0.076, 0.258, 0.473, 0.424 ], "angle": 0, "content": "We observe that most unimodal methods perform worse than chance on the splits containing dual-key triggers. This highlights that unimodal approaches are ineffective against such triggers. Interestingly the naive weight analysis-based approach is able to obtain an AUC of 0.6 on split \\(\\mathcal{T}\\). We finally observe that our approach \\(\\mathrm{TIJO}_{mm}\\) outperforms all other approaches by a significant margin. \\(\\mathrm{TIJO}_{mm}\\) obtains an AUC of 0.92 on split \\(\\mathcal{T}\\), compared to 0.67, 0.46, 0.60 by \\(\\mathrm{TIJO}_{vis}\\), \\(\\mathrm{TIJO}_{nlp}\\), and weight analysis respectively. We also note that \\(\\mathrm{TIJO}_{mm}\\) performs well on all the splits, and thus could be used for modality agnostic trigger inversion." }, { "type": "title", "bbox": [ 0.077, 0.434, 0.289, 0.449 ], "angle": 0, "content": "4.3. Ablation Experiments:" }, { "type": "text", "bbox": [ 0.076, 0.457, 0.473, 0.653 ], "angle": 0, "content": "Effect of classification feature: As discussed in Section 3.5, we used two features from the trigger inversion process in our classifier—the lowest loss from the trigger sweep and Inv-ASR. Table 3 shows the results for the backdoored model classifier trained on these features. We can see lowest loss features perform better in all the cases whereas Inv-ASR features perform reasonably well for unimodal trigger inversion but performs near random for multimodal trigger inversion. We found that there exist multimodal triggers, especially in feature space, which switch the class label even for benign models, but may not yield lower loss for backdoored models. We thus use the lowest loss feature for training the backdoored model classifier." }, { "type": "text", "bbox": [ 0.076, 0.671, 0.473, 0.839 ], "angle": 0, "content": "Feature overlay: \\(\\mathcal{B}\\) denotes the policy used to plant the feature trigger \\(f_{adv}\\) on the visual inputs. We experiment with two policies: \\(\\mathcal{B}_{one}\\) where optimized feature \\(f_{adv}\\) is overlayed only on the top (based on objectness score) box feature from detector \\(\\mathcal{D}\\), and \\(\\mathcal{B}_{all}\\) where the feature \\(f_{adv}\\) is overlayed on all the 36 box features. Table 4 reports the results of these experiments. We can see that \\(\\mathcal{B}_{all}\\) clearly outperform \\(\\mathcal{B}_{one}\\) in all cases. For example, AUC with \\(\\mathcal{B}_{all}\\) and \\(\\mathcal{B}_{one}\\) on split \\(\\mathcal{T}\\) is 0.92 and 0.72 respectively. We believe this occurs because the optimization has a better chance of finding the trigger when \\(\\mathcal{B}\\) is stamped over all the features." }, { "type": "text", "bbox": [ 0.076, 0.856, 0.472, 0.903 ], "angle": 0, "content": "Number of optimization steps and regularization: Figure 4 and Table 5 shows the effect of maximum optimization steps \\(T\\) and regularization on detection performance." }, { "type": "text", "bbox": [ 0.498, 0.092, 0.892, 0.168 ], "angle": 0, "content": "We see that the greater the number of optimization steps the better the detection performance. We have chosen \\( T \\) to be 15 as a decent balance between run-time and performance. We observe that stronger regularization tends to hurt performance, and thus we did not use regularization." }, { "type": "title", "bbox": [ 0.499, 0.185, 0.825, 0.202 ], "angle": 0, "content": "4.4. Image Patch Generation Experiment:" }, { "type": "text", "bbox": [ 0.498, 0.211, 0.892, 0.303 ], "angle": 0, "content": "We optimize for \\( \\pmb{p}_{adv} \\) of size \\( 64 \\times 64 \\) with \\( \\mathcal{M} \\) overlaying the patch to center of the image (as described in Section 3.4). We optimize \\( \\pmb{p}_{adv} \\) with Adam optimizer with a learning rate of 0.03, and betas as (0.5, 0.9) and use early stopping with a patience of 20 epochs. We optimize only over the clean image from the support set \\( S \\)." }, { "type": "text", "bbox": [ 0.498, 0.305, 0.892, 0.442 ], "angle": 0, "content": "Figure 5 shows the generated patches for backdoored MFB VQA models [54]. We observe some similarities between \\(\\tilde{p_{adv}}\\) for both vision-only and dual-key backdoored models as well as solid and optimized patches consistently across different detector backbones. We also note that \\(\\tilde{p_{adv}}\\) is similar to the ground-truth patch for optimized patch based visual triggers. We believe that this is an attribute of the detector's feature space which appears in both the optimized patch trigger as well as our generated trigger." }, { "type": "title", "bbox": [ 0.499, 0.463, 0.619, 0.479 ], "angle": 0, "content": "5. Conclusion" }, { "type": "text", "bbox": [ 0.498, 0.49, 0.892, 0.778 ], "angle": 0, "content": "We introduce a novel defense technique TIJO (Trigger Inversion using Joint Optimization) to detect multimodal backdoor attacks. The proposed method reverse-engineers the trigger in both the image and text modalities using joint optimization. Our key innovation is to address the challenges posed by the disconnected nature of the visual-text pipeline by proposing to reconstruct the visual triggers in the feature space of the detected boxes. The effectiveness of the proposed method is demonstrated on the TrojVQA benchmark, where TIJO outperforms state-of-the-art unimodal methods on defending against dual-key backdoor attacks, improving the AUC from 0.6 to 0.92 on multimodal dual-key backdoors. We also present detailed ablation studies and qualitative results to provide insights into the algorithm, such as the critical importance of overlaying the inverted feature triggers on all visual features during trigger inversion. Our work is the first defense against multimodal backdoor attacks. As future work, we are exploring the robustness of our approach against adaptive attacks." }, { "type": "text", "bbox": [ 0.498, 0.78, 0.892, 0.901 ], "angle": 0, "content": "Acknowledgements: This research was partially supported by the U.S. Army Research Laboratory Cooperative Research Agreement W911NF-17-2-0196, and the Intelligence Advanced Research Projects Agency (IARPA) TrojanAI and U.S. Army Research Office under the contract W911NF-20-C-0038. The content of this paper does not necessarily reflect the position or the policy of the Government, and no official endorsement should be inferred." }, { "type": "page_number", "bbox": [ 0.487, 0.946, 0.511, 0.957 ], "angle": 0, "content": "172" } ], [ { "type": "title", "bbox": [ 0.08, 0.09, 0.174, 0.106 ], "angle": 0, "content": "References" }, { "type": "ref_text", "bbox": [ 0.087, 0.116, 0.47, 0.157 ], "angle": 0, "content": "[1] Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. IEEE Access, 6:14410-14430, 2018." }, { "type": "ref_text", "bbox": [ 0.087, 0.16, 0.471, 0.243 ], "angle": 0, "content": "[2] Ahmadreza Azizi, Ibrahim Asadullah Tahmid, Asim Waheed, Neal Mangaokar, Jiameng Pu, Mobin Javed, Chandan K Reddy, and Bimal Viswanath. {T-Miner}: A generative approach to defend against trojan attacks on {DNN-based} text classification. In 30th USENIX Security Symposium (USENIX Security 21), pages 2255-2272, 2021." }, { "type": "ref_text", "bbox": [ 0.087, 0.245, 0.471, 0.3 ], "angle": 0, "content": "[3] Mauro Barni, Kassem Kallas, and Benedetta Tondi. A new backdoor attack in cnns by training set corruption without label poisoning. In 2019 IEEE International Conference on Image Processing (ICIP), pages 101-105. IEEE, 2019." }, { "type": "ref_text", "bbox": [ 0.087, 0.302, 0.471, 0.357 ], "angle": 0, "content": "[4] Jakub Breier, Xiaolu Hou, Martin Ochoa, and Jesus Solano. Foobar: Fault fooling backdoor attack on neural network training. IEEE Transactions on Dependable and Secure Computing, 2022." }, { "type": "ref_text", "bbox": [ 0.087, 0.36, 0.47, 0.401 ], "angle": 0, "content": "[5] Shih-Han Chan, Yinpeng Dong, Jun Zhu, Xiaolu Zhang, and Jun Zhou. Baddet: Backdoor attacks on object detection. arXiv preprint arXiv:2205.14497, 2022." }, { "type": "ref_text", "bbox": [ 0.087, 0.403, 0.471, 0.471 ], "angle": 0, "content": "[6] Bryant Chen, Wilka Carvalho, Nathalie Baracaldo, Heiko Ludwig, Benjamin Edwards, Taesung Lee, Ian Molloy, and Biplav Srivastava. Detecting backdoor attacks on deep neural networks by activation clustering. arXiv preprint arXiv:1811.03728, 2018." }, { "type": "ref_text", "bbox": [ 0.087, 0.474, 0.471, 0.529 ], "angle": 0, "content": "[7] Jinyin Chen, Chengyu Jia, Haibin Zheng, Ruoxi Chen, and Chenbo Fu. Is multi-modal necessarily better? robustness evaluation of multi-modal fake news detection. arXiv preprint arXiv:2206.08788, 2022." }, { "type": "ref_text", "bbox": [ 0.087, 0.532, 0.471, 0.599 ], "angle": 0, "content": "[8] Kangjie Chen, Yuxian Meng, Xiaofei Sun, Shangwei Guo, Tianwei Zhang, Jiwei Li, and Chun Fan. Badpre: Task-agnostic backdoor attacks to pre-trained NLP foundation models. In International Conference on Learning Representations, 2022." }, { "type": "ref_text", "bbox": [ 0.087, 0.603, 0.471, 0.657 ], "angle": 0, "content": "[9] Weixin Chen, Baoyuan Wu, and Haoqian Wang. Effective backdoor defense by exploiting sensitivity of poisoned samples. In Advances in Neural Information Processing Systems, 2022." }, { "type": "ref_text", "bbox": [ 0.08, 0.66, 0.469, 0.714 ], "angle": 0, "content": "[10] Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017." }, { "type": "ref_text", "bbox": [ 0.08, 0.717, 0.469, 0.787 ], "angle": 0, "content": "[11] Xiaoyi Chen, Ahmed Salem, Dingfan Chen, Michael Backes, Shiqing Ma, Qingni Shen, Zhonghai Wu, and Yang Zhang. Badnl: Backdoor attacks against nlp models with semantic-preserving improvements. In Annual Computer Security Applications Conference, pages 554-569, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.789, 0.469, 0.829 ], "angle": 0, "content": "[12] Jiazhu Dai, Chuanshuai Chen, and Yufeng Li. A backdoor attack against lstm-based text classification systems. IEEE Access, 7:138872-138878, 2019." }, { "type": "ref_text", "bbox": [ 0.08, 0.832, 0.469, 0.902 ], "angle": 0, "content": "[13] Javid Ebrahimi, Anyi Rao, Daniel Lowd, and Dejing Dou. Hotflip: White-box adversarial examples for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 31-36, 2018." }, { "type": "list", "bbox": [ 0.08, 0.116, 0.471, 0.902 ], "angle": 0, "content": null }, { "type": "ref_text", "bbox": [ 0.503, 0.093, 0.892, 0.147 ], "angle": 0, "content": "[14] Ming Fan, Ziliang Si, Xiaofei Xie, Yang Liu, and Ting Liu. Text backdoor detection using an interpretable rnn abstract model. IEEE Transactions on Information Forensics and Security, 16:4117-4132, 2021." }, { "type": "ref_text", "bbox": [ 0.503, 0.149, 0.892, 0.204 ], "angle": 0, "content": "[15] Greg Fields, Mohammad Samragh, Mojan Javaheripi, Farinaz Koushanfar, and Tara Javidi. Trojan signatures in cnn weights. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12-20, 2021." }, { "type": "ref_text", "bbox": [ 0.504, 0.205, 0.892, 0.274 ], "angle": 0, "content": "[16] Lianli Gao, Qilong Zhang, Jingkuan Song, Xianglong Liu, and Heng Tao Shen. Patch-wise attack for fooling deep neural network. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXVIII 16, pages 307-322. Springer, 2020." }, { "type": "ref_text", "bbox": [ 0.504, 0.275, 0.892, 0.356 ], "angle": 0, "content": "[17] Yansong Gao, Yeonjae Kim, Bao Gia Doan, Zhi Zhang, Gongxuan Zhang, Surya Nepal, Damith C Ranasinghe, and Hyoungshick Kim. Design and evaluation of a multidomain trojan detection method on deep neural networks. IEEE Transactions on Dependable and Secure Computing, 19(4):2349-2364, 2021." }, { "type": "ref_text", "bbox": [ 0.504, 0.358, 0.892, 0.427 ], "angle": 0, "content": "[18] Yansong Gao, Change Xu, Derui Wang, Shiping Chen, Damith C Ranasinghe, and Surya Nepal. Strip: A defence against trojan attacks on deep neural networks. In Proceedings of the 35th Annual Computer Security Applications Conference, pages 113-125, 2019." }, { "type": "ref_text", "bbox": [ 0.504, 0.428, 0.892, 0.481 ], "angle": 0, "content": "[19] Diego Garcia-soto, Huili Chen, and Farinaz Koushanfar. Perd: Perturbation sensitivity-based neural trojan detection framework on nlp applications. arXiv preprint arXiv:2208.04943, 2022." }, { "type": "ref_text", "bbox": [ 0.504, 0.484, 0.892, 0.552 ], "angle": 0, "content": "[20] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Bartra, and Devi Parikh. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6904-6913, 2017." }, { "type": "ref_text", "bbox": [ 0.504, 0.553, 0.892, 0.594 ], "angle": 0, "content": "[21] Tianyu Gu, Brendan Dolan-Gavitt, and Siddharth Garg. Badnets: Identifying vulnerabilities in the machine learning model supply chain. arXiv preprint arXiv:1708.06733, 2017." }, { "type": "ref_text", "bbox": [ 0.504, 0.595, 0.892, 0.649 ], "angle": 0, "content": "[22] Xiaoling Hu, Xiao Lin, Michael Cogswell, Yi Yao, Susmit Jha, and Chao Chen. Trigger hunting with a topological prior for trojan detection. In International Conference on Learning Representations, 2022." }, { "type": "ref_text", "bbox": [ 0.504, 0.651, 0.892, 0.692 ], "angle": 0, "content": "[23] Xijie Huang, Moustafa Alzantot, and Mani Srivastava. Neuroninspect: Detecting backdoors in neural networks via output explanations. arXiv preprint arXiv:1911.07399, 2019." }, { "type": "ref_text", "bbox": [ 0.504, 0.693, 0.892, 0.748 ], "angle": 0, "content": "[24] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. Advances in neural information processing systems, 32, 2019." }, { "type": "ref_text", "bbox": [ 0.504, 0.749, 0.892, 0.789 ], "angle": 0, "content": "[25] Lesheng Jin, Zihan Wang, and Jingbo Shang. Wedef: Weakly supervised backdoor defense for text classification. arXiv preprint arXiv:2205.11803, 2022." }, { "type": "ref_text", "bbox": [ 0.504, 0.79, 0.892, 0.845 ], "angle": 0, "content": "[26] Panagiota Kiourti, Wenchao Li, Anirban Roy, Karan Sikka, and Susmit Jha. Misa: Online defense of trojaned models using misattributions. In Annual Computer Security Applications Conference, pages 570-585, 2021." }, { "type": "ref_text", "bbox": [ 0.504, 0.846, 0.892, 0.901 ], "angle": 0, "content": "[27] Panagiota Kiourti, Kacper Wardega, Susmit Jha, and Wenchao Li. Trojdrl: evaluation of backdoor attacks on deep reinforcement learning. In 2020 57th ACM/IEEE Design Automation Conference (DAC), pages 1-6. IEEE, 2020." }, { "type": "list", "bbox": [ 0.503, 0.093, 0.892, 0.901 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.488, 0.946, 0.511, 0.956 ], "angle": 0, "content": "173" } ], [ { "type": "ref_text", "bbox": [ 0.08, 0.092, 0.47, 0.133 ], "angle": 0, "content": "[28] Hyun Kwon. Defending deep neural networks against backdoor attack by using de-trigger autoencoder. IEEE Access, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.136, 0.47, 0.205 ], "angle": 0, "content": "[29] Yuanchun Li, Jiayi Hua, Haoyu Wang, Chunyang Chen, and Yunxin Liu. Deeppayload: Black-box backdoor attack on deep learning models through neural payload injection. In 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE), pages 263-274. IEEE, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.207, 0.469, 0.248 ], "angle": 0, "content": "[30] Yiming Li, Yong Jiang, Zhifeng Li, and Shu-Tao Xia. Backdoor learning: A survey. IEEE Transactions on Neural Networks and Learning Systems, 2022." }, { "type": "ref_text", "bbox": [ 0.08, 0.25, 0.469, 0.305 ], "angle": 0, "content": "[31] Yige Li, Xixiang Lyu, Nodens Koren, Lingjuan Lyu, Bo Li, and Xingjun Ma. Anti-backdoor learning: Training clean models on poisoned data. Advances in Neural Information Processing Systems, 34:14900-14912, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.307, 0.469, 0.362 ], "angle": 0, "content": "[32] Yige Li, Xixiang Lyu, Nodens Koren, Lingjuan Lyu, Bo Li, and Xingjun Ma. Neural attention distillation: Erasing back-door triggers from deep neural networks. In International Conference on Learning Representations, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.364, 0.469, 0.432 ], "angle": 0, "content": "[33] Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Finepruning: Defending against backdooring attacks on deep neural networks. In International Symposium on Research in Attacks, Intrusions, and Defenses, pages 273-294. Springer, 2018." }, { "type": "ref_text", "bbox": [ 0.08, 0.435, 0.469, 0.504 ], "angle": 0, "content": "[34] Yingqi Liu, Guangyu Shen, Guanhong Tao, Shengwei An, Shiqing Ma, and Xiangyu Zhang. Piccolo: Exposing complex backdoors in nlp transformer models. In 2022 IEEE Symposium on Security and Privacy (SP), pages 1561-1561. IEEE Computer Society, 2022." }, { "type": "ref_text", "bbox": [ 0.08, 0.505, 0.469, 0.575 ], "angle": 0, "content": "[35] Hua Ma, Yinshan Li, Yansong Gao, Alsharif Abuadbba, Zhi Zhang, Anmin Fu, Hyoungshick Kim, Said F Al-Sarawi, Nepal Surya, and Derek Abbott. Dangerous cloaking: Natural trigger based backdoor attacks on object detectors in the physical world. arXiv preprint arXiv:2201.08619, 2022." }, { "type": "ref_text", "bbox": [ 0.08, 0.577, 0.469, 0.645 ], "angle": 0, "content": "[36] Hua Ma, Yinshan Li, Yansong Gao, Zhi Zhang, Alsharif Abuadbba, Anmin Fu, Said F Al-Sarawi, Nepal Surya, and Derek Abbott. Macab: Model-agnostic clean-annotation backdoor to object detection with natural trigger in real-world. arXiv preprint arXiv:2209.02339, 2022." }, { "type": "ref_text", "bbox": [ 0.08, 0.647, 0.469, 0.689 ], "angle": 0, "content": "[37] Tuan Anh Nguyen and Anh Tuan Tran. Wanet - imperceptible warping-based backdoor attack. In International Conference on Learning Representations, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.69, 0.47, 0.759 ], "angle": 0, "content": "[38] Fanchao Qi, Yangyi Chen, Mukai Li, Yuan Yao, Zhiyuan Liu, and Maosong Sun. Onion: A simple and effective defense against textual backdoor attacks. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 9558-9566, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.761, 0.469, 0.844 ], "angle": 0, "content": "[39] Han Qiu, Yi Zeng, Shangwei Guo, Tianwei Zhang, Meikang Qiu, and Bhavani Thuraisingham. Deepsweep: An evaluation framework for mitigating dnn backdoor attacks using data augmentation. In Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security, pages 363-377, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.846, 0.47, 0.901 ], "angle": 0, "content": "[40] Adnan Siraj Rakin, Zhezhi He, and Deliang Fan. Tbt: Targeted neural network attack with bit Trojan. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13198-13207, 2020." }, { "type": "list", "bbox": [ 0.08, 0.092, 0.47, 0.901 ], "angle": 0, "content": null }, { "type": "ref_text", "bbox": [ 0.503, 0.093, 0.893, 0.147 ], "angle": 0, "content": "[41] Aniruddha Saha, Akshayvarun Subramanya, and Hamed Pirsiavash. Hidden trigger backdoor attacks. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 11957-11965, 2020." }, { "type": "ref_text", "bbox": [ 0.503, 0.149, 0.892, 0.216 ], "angle": 0, "content": "[42] Aniruddha Saha, Ajinkya Tejankar, Soroush Abbasi Koohpayegani, and Hamed Pirsivash. Backdoor attacks on self-supervised learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13337-13346, 2022." }, { "type": "ref_text", "bbox": [ 0.503, 0.219, 0.892, 0.259 ], "angle": 0, "content": "[43] Kun Shao, Junan Yang, Yang Ai, Hui Liu, and Yu Zhang. Bddr: An effective defense against textual backdoor attacks. Computers & Security, 110:102433, 2021." }, { "type": "ref_text", "bbox": [ 0.504, 0.261, 0.893, 0.342 ], "angle": 0, "content": "[44] Guangyu Shen, Yingqi Liu, Guanhong Tao, Qiuling Xu, Zhuo Zhang, Shengwei An, Shiqing Ma, and Xiangyu Zhang. Constrained optimization with dynamic bound-scaling for effective nlp backdoor defense. In International Conference on Machine Learning, pages 19879-19892. PMLR, 2022." }, { "type": "ref_text", "bbox": [ 0.504, 0.344, 0.892, 0.385 ], "angle": 0, "content": "[45] Karan Sikka, Indranil Sur, Susmit Jha, Anirban Roy, and Ajay Divakaran. Detecting trojaned dnns using counterfactual attributions. arXiv preprint arXiv:2012.02275, 2020." }, { "type": "ref_text", "bbox": [ 0.504, 0.386, 0.892, 0.426 ], "angle": 0, "content": "[46] Alexander Turner, Dimitris Tsipras, and Aleksander Madry. Label-consistent backdoor attacks. arXiv preprint arXiv:1912.02771, 2019." }, { "type": "ref_text", "bbox": [ 0.504, 0.428, 0.892, 0.482 ], "angle": 0, "content": "[47] Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. Universal adversarial triggers for attacking and analyzing NLP. In Empirical Methods in Natural Language Processing, 2019." }, { "type": "ref_text", "bbox": [ 0.504, 0.484, 0.892, 0.552 ], "angle": 0, "content": "[48] Matthew Walmer, Karan Sikka, Indranil Sur, Abhinav Shrivastava, and Susmit Jha. Dual-key multimodal backdoors for visual question answering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15375-15385, 2022." }, { "type": "ref_text", "bbox": [ 0.504, 0.554, 0.892, 0.621 ], "angle": 0, "content": "[49] Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y Zhao. Neural cleansse: Identifying and mitigating backdoor attacks in neural networks. In 2019 IEEE Symposium on Security and Privacy (SP), pages 707-723. IEEE, 2019." }, { "type": "ref_text", "bbox": [ 0.504, 0.623, 0.892, 0.663 ], "angle": 0, "content": "[50] Wenqi Wang, Run Wang, Lina Wang, Zhibo Wang, and Aoshuang Ye. Towards a robust deep neural network in texts: A survey. arXiv preprint arXiv:1902.07285, 2019." }, { "type": "ref_text", "bbox": [ 0.504, 0.665, 0.892, 0.705 ], "angle": 0, "content": "[51] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detector2. https://github.com/facebookresearch/detectron2, 2019." }, { "type": "ref_text", "bbox": [ 0.504, 0.707, 0.892, 0.761 ], "angle": 0, "content": "[52] Mingfu Xue, Shifeng Ni, Yinghao Wu, Yushu Zhang, Jian Wang, and Weiqiang Liu. Imperceptible and multi-channel backdoor attack against deep neural networks. arXiv preprint arXiv:2201.13164, 2022." }, { "type": "ref_text", "bbox": [ 0.504, 0.763, 0.892, 0.831 ], "angle": 0, "content": "[53] Wenkai Yang, Yankai Lin, Peng Li, Jie Zhou, and Xu Sun. Rap: Robustness-aware perturbations for defending against backdoor attacks on nlp models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 8365-8381, 2021." }, { "type": "ref_text", "bbox": [ 0.504, 0.833, 0.892, 0.9 ], "angle": 0, "content": "[54] Zhou Yu, Jun Yu, Jianping Fan, and Dacheng Tao. Multimodal factorized bilinear pooling with co-attention learning for visual question answering. In Proceedings of the IEEE international conference on computer vision, pages 1821–1830, 2017." }, { "type": "list", "bbox": [ 0.503, 0.093, 0.893, 0.9 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.488, 0.946, 0.511, 0.956 ], "angle": 0, "content": "174" } ], [ { "type": "ref_text", "bbox": [ 0.08, 0.092, 0.47, 0.147 ], "angle": 0, "content": "[55] Xiaoyu Zhang, Rohit Gupta, Ajmal Mian, Nazanin Rahnavard, and Mubarak Shah. Cassandra: Detecting trojaned networks from adversarial perturbations. IEEE Access, 9:135856-135867, 2021." }, { "type": "ref_text", "bbox": [ 0.08, 0.149, 0.47, 0.219 ], "angle": 0, "content": "[56] Biru Zhu, Yujia Qin, Ganqu Cui, Yangyi Chen, Weilin Zhao, Chong Fu, Yangdong Deng, Zhiyuan Liu, Jingang Wang, Wei Wu, et al. Moderate-fitting as a natural backdoor defender for pre-trained language models. In Advances in Neural Information Processing Systems, 2022." }, { "type": "list", "bbox": [ 0.08, 0.092, 0.47, 0.219 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.488, 0.946, 0.511, 0.956 ], "angle": 0, "content": "175" } ]]123version https://git-lfs.github.com/spec/v1oid sha256:779dcb1951ec59169b0091ef40bc4be3cb3e6c98173773f742e61b77c966acddsize 1354389123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268# TIJO: Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models
Indranil Sur $^{1*}$ Karan Sikka $^{1}$ Matthew Walmer $^{2}$ Kaushik Koneripalli $^{1}$ Anirban Roy $^{1}$ Xiao Lin $^{1}$ Ajay Divakaran $^{1}$ Susmit Jha $^{1}$ SRI International $^{2}$ University of Maryland
# Abstract
We present a Multimodal Backdoor Defense technique TIJO (Trigger Inversion using Joint Optimization). Recent work [48] has demonstrated successful backdoor attacks on multimodal models for the Visual Question Answering task. Their dual-key backdoor trigger is split across two modalities (image and text), such that the backdoor is activated if and only if the trigger is present in both modalities. We propose TIJO that defends against dual-key attacks through a joint optimization that reverse-engineers the trigger in both the image and text modalities. This joint optimization is challenging in multimodal models due to the disconnected nature of the visual pipeline which consists of an offline feature extractor, whose output is then fused with the text using a fusion module. The key insight enabling the joint optimization in TIJO is that the trigger inversion needs to be carried out in the object detection box feature space as opposed to the pixel space. We demonstrate the effectiveness of our method on the TrojVQA benchmark, where TIJO improves upon the state-of-the-art unimodal methods from an AUC of 0.6 to 0.92 on multimodal dual-key backdoors. Furthermore, our method also improves upon the unimodal baselines on unimodal backdoors. We present ablation studies and qualitative results to provide insights into our algorithm such as the critical importance of overlaying the inverted feature triggers on all visual features during trigger inversion. The prototype implementation of TIJO is available at https://github.com/SRI-CSL/TIJO.
# 1. Introduction
Deep Neural Networks (DNNs) are vulnerable to adversarial attacks [47, 1, 16, 24]. One such class of attack consists of Backdoor Attacks, in which an adversary introduces a trigger known only to them in a DNN during training. Such a backdoored DNN will behave normally with typi
 Figure 1. (Top) A dual-key backdoor attack for multimodal models [48], which is designed to activate if and only if the trigger is present in both the modalities. Such backdoors cannot be detected by unimodal defenses. (Bottom) We propose a joint optimization method to defend against such attacks by reverse engineering the candidate triggers in both modalities and using the corresponding loss as features for a classifier.
cal in-distribution inputs but perform poorly (e.g. produce targeted misclassifications) on inputs stamped with a predefined trigger designed by the adversary [50, 21, 30].
Recent work [48, 7] has introduced backdoors in multimodal domains such as Visual Question Answering (VQA) and Fake News Detection [7, 48]. In prior work [48], we have introduced a Dual-Key Backdoor Attack (shown in Figure 1), where the trigger is inserted in both the image and text modalities in such a manner that the backdoor is activated only when both modalities contain the trigger. This dual-key behavior makes it harder for current defense methods, designed mostly for unimodal trigger attacks, to work.
There has been significant work developing defenses against backdoor attacks in the visual domain, in particular for the image classification task [45, 49, 6, 23]. Recent works have also explored defense in natural language pro
cessing domains [38, 43, 34]. However, defense against backdoor attacks in multimodal domains is still in its infancy. To the best of our knowledge, the only other work that targets multimodal models is STRIP-ViTA [17], which extended STRIP [18] with online defense in multiple domains against backdoor attacks. Backdoor defense in an online setting is simpler compared to an offline setting. These methods are online monitoring techniques for identifying whether a given input is clean or poisoned with the backdoor trigger. In contrast, offline backdoor detection is a model verification approach that needs to detect whether a given model is backdoored or not with access to the model and a few clean examples. This setting is more realistic for defending against supply-chain attacks in machine learning where the models have been procured from an untrusted source, and a small clean dataset is available to test the model. We focus on multimodal defense in such an offline setting.
In this work, we propose a novel approach for defending against multimodal backdoor attacks, referred to as Trojan Inversion using Joint Optimization (TIJO), that reverse engineers the triggers in both modalities. Our approach is motivated by the Universal Adversarial Trigger (UAT) [47] that was proposed to identify naturally occurring universal triggers in pre-trained NLP models and has been extended in earlier works to identify Trojan triggers in NLP models. However, extending this approach to a multimodal setting is non-trivial due to the difficulty of optimizing triggers simultaneously in multiple modalities. Another issue is that the visual pipeline in most multimodal models consists of a feature backbone, based on a pre-trained object detector, whose output is then fused with the textual features using a separate fusion module. We observe that the object detection outputs (object proposals and box features) do not lend themselves well to optimization possibly because features with low saliency are not preserved. Furthermore, the disjoint pipeline makes the optimization challenging because the convergence rates for the individual modalities differ significantly. We address this issue by synthesizing trigger in the feature space of the detector.
We evaluate TIJO on the TrojVQA dataset [48] that consists of over 800 VQA models spanning across 4 feature backbones and 10 model architectures. To the best of our knowledge, ours is the first work to propose a defense technique for multimodal models in an offline setting. Our results indicate strong improvement over prior unimodal methods. Our contributions are as follows:
- We present a novel approach for Multimodal Backdoor defense referred to as TIJO. - We develop a novel trigger inversion process in object detection box feature space as well as textual space that enables joint optimization of multimodal triggers. - We demonstrate TIJO on the TrojVQA dataset and show
that trigger inversion in both modalities is necessary to effectively defend against multimodal backdoor attacks. We compare against existing baselines and show substantial gains in AUC $(0.6\to 0.92)$
- We show that TIJO improves upon our selected set of state-of-the-art unimodal methods in the detection of unimodal backdoors indicating that our proposed method is modality-agnostic. - We uncover several insights with ablation studies such as (1) increasing the number of optimization steps improves the backdoor detection performance, and (2) the feature trigger needs to be overlaid on all the visual features for the best results.
# 2. Related Work
Backdoor Attacks: Backdoor attacks are a type of targeted adversarial attack that were first introduced in [21]. Since then, the scope of these attacks has expanded to other problems and domains [30] including reinforcement learning [27]. Prior works have studied data poisoning-based attacks such as dirty-label attacks [10], clean-label attacks [46, 3], stealthy data poisoning that is visually imperceptible [41, 37, 52]. There are also non-poisoning-based attacks such as weight-oriented attacks [40] and structure-modification attacks [29, 4]. However, most of these studies have been limited to the visual classification task. Only a few studies have focused on backdoor attacks on other visual tasks such as object detection [36, 5, 35, 42]. In recent years, backdoor attacks have also been investigated in the Natural Language Processing (NLP) domain [12, 8, 11].
Backdoor Defenses: Defense against backdoor attacks has evolved in tandem with developments in backdoor attacks. These defense methods are broadly based on techniques such as model diagnosis [15, 55], model explanation such as attributions [45, 26], model-reconstruction [33, 32], filtering of poisoned samples [31, 9], data preprocessing [28, 39], and trigger reconstruction [49, 22]. Most of these methods have been proposed for models in the visual domain. There have been some recent works on backdoor defense in the NLP domain. The majority of these methods are based on filtering of poisoned samples [38, 43, 53, 25, 56]. Other works rely on ideas such as model diagnosis [14, 19], prepossessing-based [2], and trigger synthesis [34, 44].
Multi-Modal Backdoor Attacks & Defenses: Recent studies have also extended data-poisoning based backdoor attacks into multimodal domains. Chen et al. [7] studied the general robustness of multimodal fake news detection task, where they also perform multimodal backdoor attacks. Walmer et al. [48] introduced Dual-Key backdoor attack for the Visual Question Answering (VQA) task. As shown in
 Figure 2. Shows key blocks of TIJO. (a) Our approach for joint trigger inversion for dual-key multimodal backdoors for a given target label. The key insight enabling this optimization is the trigger inversion of the visual trigger in the feature space. (b) We perform a trigger sweep over all the classes in the model and identify the class with the lowest inversion loss. (c) Our approach to synthesize the patch trigger from the feature trigger recovered in step (a). (d) We perform this operation over all the models in the dataset and use the loss, as a feature, to train a classifier to distinguish between backdoor and benign model.
Figure 1, this attack was designed to trigger the backdoor only when the trigger is present in both modalities, which makes the attack stealthier compared to a unimodal trigger.
Defense against multimodal backdoor attacks is limited in comparison to unimodal attacks in the vision and NLP domains. Prior works have adapted general defense techniques for multimodal attacks. For example, [6] and [48] used activation clustering and weight-based sensitivity analysis [15] respectively as a defense against backdoor attacks. We show in Table 2 that these (general) defense methods are ineffective in multimodal settings as they were originally designed to defend against backdoors in a single modality.
Gao et al. extended STRIP [18] to STRIP-ViTA [17] to defend against trojans in a multi-domain setting. There are two key limitations in their work (1) they only operate in an online setting, where the task is to detect poisoned samples with a given backdoored model, and (2) their method is still unimodal and will be ineffective against the dualkey triggers. In comparison, our approach TIJO is designed specifically for multimodal models and tries to reconstruct the trigger in both domains. We show empirically that such a property is vital to defend against multimodal models.
# 3. Approach
We first discuss the threat model that we aim to defend against, then discuss the UAT method [47] and its extension to multimodal models, and present our method, TIJO.
# 3.1. Threat Model
Given a multimodal model $f$ , we need to determine if $f$ is benign or backdoored. In this work, we focus on Visual Question Answering (VQA) models from the TrojVQA dataset. Let $\mathcal{C}$ be the clean VQAv2 dataset [20] where each data entry is a triplet $(\pmb{x},\pmb{t},\pmb{y})$ where $\pmb{x}$ is the image, $\pmb{t}$ is the tokenized question, and $y$ is the answer label. Most VQA models use a two-step process for generating the answer. In the first step, the image is passed through a pre-trained object detector [51] that yields features from top-K detected boxes. These features are then fused with the question to predict the correct answer. Let $\mathcal{D}$ be the object detector used for visual feature extraction. The answer is generated using $f(t,\mathcal{D}(\pmb{x})) = y$ .
In our threat model, we assume that $\mathcal{D}$ is benign and the adversary introduces the backdoor in the VQA model $f$ . This is also the threat model used in the TrojVQA dataset [48]. For a backdoored VQA model $f_{b}$ , the adversary introduces triggers $\pmb{p}_{t}$ and $\pmb{t}_{t}$ in both the image and text modalities respectively. $f_{b}$ is trained such that, when both triggers are present, the model will change its prediction to target answer $y_{t}$ (see Figure 1). In the TrojVQA dataset, $\pmb{p}_{t}$ are small visual patches while $\pmb{t}_{t}$ are natural words. The triggers and the model behavior are only known to the adversary.
Let $\mathcal{M}$ be a policy that overlaps $\pmb{p}_t$ on $\pmb{x}$ and $\mathcal{A}$ be a policy that appends $\pmb{t}_t$ to $\pmb{t}$ . Hence, for a backdoored VQA
model $f_{b}$ , we expect that
$$f _ {b} (\mathcal {A} (\boldsymbol {t}, \boldsymbol {t} _ {t}), \mathcal {D} (\mathcal {M} (\boldsymbol {x}, \boldsymbol {p} _ {t}))) = y _ {t}$$
In this work, we focus on dual-key triggers [48], where the model changes its prediction only when both $\mathcal{M}$ and $\mathcal{A}$ are applied together.
# 3.2. Trigger Inversion using UAT
TIJO is based on Universal Adversarial Triggers (UAT) [47], which extends Hotflip [13] from synthesizing adversarial tokens for a single input to all inputs in the dataset. As a result, obtained adversarial tokens are universal in nature. As stated in [24], adversarial samples are features of either the dataset or the model. Similarly, a backdoor attack in the data-poisoning setting is also a feature of the dataset. Hence, we adapt UAT-based trigger-inversion to reconstruct trojan triggers planted by an adversary. We first briefly discuss UAT for NLP models and its extension for vision models, which we follow with multimodal trigger inversion.
Eq. 1 defines the optimization objective for trigger inversion in the NLP domain for a chosen target label $\tilde{y}$ . Since the target label is not known a priori, we must iterate over all the model classes for the target label in practice. Here $\mathcal{L}$ is the cross-entropy loss, and we optimize to minimize the expected loss over all samples in $S$ . In summary, we optimize to get the $t_{adv}$ that maximizes the likelihood of switching the class label to $\tilde{y}$ for all samples in $S$ . Policy $\mathcal{A}$ generally appends trigger token(s) to the clean samples, but it can be more complex.
$$\min _ {\boldsymbol {t} _ {a d v}} \mathbb {E} _ {\boldsymbol {t}, \boldsymbol {x} \sim \mathcal {S}} \left[ \mathcal {L} \left(\tilde {y}, f (\mathcal {A} \left(\boldsymbol {t} _ {a d v}, \boldsymbol {t}\right), \mathcal {D} (\boldsymbol {x}))\right) \right] \tag {1}$$
Since the space of $t_{adv}$ is discrete, each optimization step is followed by a next token selection step. The next token is set by $t_{adv} \gets t_i$ which minimizes the trigger inversion loss's first-order Taylor approximation around the current token embedding as given by Eq. 2. Here $\mathcal{V}_f$ is the vocabulary of all tokens in $f$ , function $\mathcal{E}_f$ gives the token embeddings and $\nabla_{\mathcal{E}_f(t_{adv})}\mathcal{L}$ is the average gradient of the loss over a batch.
$$\min _ {\boldsymbol {t} _ {i} \in \mathcal {V} _ {f}} \left[ \mathcal {E} _ {f} \left(\boldsymbol {t} _ {i}\right) - \mathcal {E} _ {f} \left(\boldsymbol {t} _ {a d v}\right) \right] ^ {\intercal} \nabla_ {\mathcal {E} _ {f} \left(\boldsymbol {t} _ {a d v}\right)} \mathcal {L} \tag {2}$$
The above optimization problem is solved efficiently by computing dot products between the gradient and the $\nu_{f}$ embeddings and then using nearest neighbor or beam search to get the updated token $t_i$ [47]. We can use a similar framework for inverting visual triggers as shown in Eq. 3. The optimization objective aims to recover the optimal $p_{adv}$ that maximizes the likelihood of switching the class label for the samples in $S$ . The only difference is that we use projected gradient descent for patch $p_{adv}$ , overlaid on $x$ through policy $\mathcal{M}$ , which needs to obey image constraints. This ap
proach is similar to prior trigger reconstruction-based methods such as Neural Cleansse [49].
$$\underset {\boldsymbol {p} _ {a d v}} {\min } \mathbb {E} _ {\boldsymbol {t}, \boldsymbol {x} \sim \mathcal {S}} \left[ \mathcal {L} (\tilde {y}, f (\boldsymbol {t}, \mathcal {D} (\mathcal {M} (\boldsymbol {x}, \boldsymbol {p} _ {a d v})))) \right] \tag {3}$$
# 3.3. Multimodal Trigger Inversion with TIJO
We now outline our approach for multimodal Trigger Inversion using Joint Optimization (TIJO) (shown in Figure 2). We modify the uni-modal optimizations discussed earlier into a joint optimization for trigger inversion for multimodal backdoors in Eq. 4. Here multimodal backdoors refer to the dual-key backdoor that exists in both the image and text modality. We optimize for both $\pmb{t}_{adv}$ and $\pmb{p}_{adv}$ to maximize the likelihood of switching the class label to $\tilde{y}$ for all samples in $S$ .
$$\min _ {\boldsymbol {t} _ {a d v}, \boldsymbol {p} _ {a d v}} \mathbb {E} _ {\boldsymbol {t}, \boldsymbol {x} \sim \mathcal {S}} \left[ \mathcal {L} \left(\tilde {y}, f \left(\mathcal {A} \left(\boldsymbol {t} _ {a d v}, \boldsymbol {t}\right), \mathcal {D} \left(\mathcal {M} \left(\boldsymbol {p} _ {a d v}, \boldsymbol {x}\right)\right)\right)\right) \right] \tag {4}$$
Solving Eq. 4 for multimodal (dual-key) backdoors is challenging. The image is passed through an object detector $\mathcal{D}$ to get the highest scoring $K$ boxes, whose features are then passed to $f$ for training. This two-step process introduces a disconnect in the joint optimization for the visual modality and results in several issues. For example, when we stamp the patch on the image during optimization, the detector $\mathcal{D}$ may not propose bounding boxes containing the patch $\pmb{p}_{adv}$ . One solution would be to manually force the detector to sample a proposal around $\pmb{p}_{adv}$ . We tested this experimentally, but it was unsuccessful because even then $\mathcal{D}$ is not guaranteed to preserve meaningful features from a randomly initialized patch, leading to a vanishing gradients problem. Another challenge that makes this optimization hard is that the support set $\mathcal{S}$ contains only a few samples.
Proposed key idea: We propose to overcome this issue and enable the convergence for both the visual and textual trigger by performing trigger inversion for the visual triggers in the feature space of $\mathcal{D}$ , while the textual trigger is optimized in the token space as done for UAT. We define $f_{adv}$ as the additive adversarial feature space signature and $\mathcal{B}$ as the overlay policy by which we overlay $f_{adv}$ on box features from $\mathcal{D}$ . The modified optimization objective is shown in Eq. 5, where we optimize $t_{adv}$ and $f_{adv}$ instead of $p_{adv}$ . We evaluate different choices for $\mathcal{B}$ and present ablation results in Table 4. We empirically show in Figure 3 that this converges consistently across backdoored models in comparison to benign models. We have shown a detailed description of our approach in Figure 2. Similar to UAT, we optimize Eq. 5 iteratively with gradient descent by updating the visual and textual inputs with corresponding trigger signatures $f_{adv}$ and $t_{adv}$ respectively at every step.
$$\min _ {\boldsymbol {t} _ {a d v}, \boldsymbol {f} _ {a d v}} \mathbb {E} _ {\boldsymbol {t}, \boldsymbol {x} \sim \mathcal {S}} \left[ \mathcal {L} \left(\tilde {y}, f \left(\mathcal {A} \left(\boldsymbol {t} _ {a d v}, \boldsymbol {t}\right), \mathcal {B} \left(\mathcal {D} (\boldsymbol {x}), \boldsymbol {f} _ {a d v}\right)\right)\right) \right] \tag {5}$$
 Figure 3. Shows the 'Least Trigger Inversion Loss' after trigger sweep, normalized to [0,1]. The blue and red dots are benign and backdoor models respectively. Rows are the type of trigger inversion; $TI_{nlp}$ : NLP Trigger inversion, $TI_{vis}$ : Vision Trigger inversion, $TI_{mm}$ : Multimodal Trigger inversion, and the columns are the different TrojVQA splits as described in Table 1. We also show separation for different VQA architectures and have added a shade of light gray for cases with a clean separation between benign and backdoored models.
<table><tr><td>Split</td><td>NLP</td><td>Visual</td><td>Train/Test</td><td>Trigger Type</td></tr><tr><td>Tnlp</td><td>✓</td><td>X</td><td>160/80</td><td>Single Key NLP</td></tr><tr><td>Tsolid</td><td>X</td><td>Solid</td><td>160/80</td><td>Single Key Vision</td></tr><tr><td>Toptim</td><td>X</td><td>Optimized</td><td>160/80</td><td>Single Key Vision</td></tr><tr><td>Tnlp+S</td><td>✓</td><td>Solid</td><td>160/80</td><td>Dual Key</td></tr><tr><td>Tnlp+O</td><td>✓</td><td>Optimized</td><td>160/80</td><td>Dual Key</td></tr><tr><td>T</td><td>✓</td><td>✓</td><td>320/160</td><td>Dual Key</td></tr></table>
Table 1. Details about the TrojVQAdataset [48] and its splits.
# 3.4. Trigger Patch Generation
We also propose to recover the patch trigger $\pmb{p}_{adv}$ based on the $\pmb{f}_{adv}$ obtained using Eq. 5 (see Figure 2). We first compute the box proposals $\pmb{b}_x \gets \mathcal{D}_{rpn}(\mathcal{D}_{cnn}(\pmb{x}))$ and box features $\pmb{f}_x \gets \mathcal{D}_{roi}(\mathcal{D}_{cnn}(\pmb{x}),\pmb{b}_x)$ on the clean image $\pmb{x}$ . We also compute the box features $\pmb{f}_{x_p} \gets \mathcal{D}_{roi}(\mathcal{D}_{cnn}(\mathcal{M}(\pmb{x},\pmb{p}_{adv})),\pmb{b}_x)$ on the image stamped with $\pmb{p}_{adv}$ . Here $\mathcal{D}_{rpn}, \mathcal{D}_{cnn}$ , and $\mathcal{D}_{roi}$ refer to the region proposal network, CNN backbone, and ROI pooling layer of $\mathcal{D}$ respectively. We overlay $\pmb{f}_{adv}$ on $\pmb{f}_x$ and then iteratively optimize $\pmb{p}_{adv}$ to minimize the MSE loss between $\pmb{f}_{x_p}$ and $\mathcal{B}(\pmb{f}_x,\tilde{\pmb{f}}_{adv})$ . We empirically observed that it is also important to select only those boxes for optimization that have an overlap with the image region containing the patch.
# 3.5. Backdoored Model Classification
The optimization objective should ideally converge only if the model is backdoored and if the target label $\tilde{y}$ is actually the poison label $y_{t}$ . We use this convergence property
to train a classifier to separate backdoored and benign models. Since the poison label $y_{t}$ is unknown, we sweep over all the label space, $\forall \tilde{y} \in \mathcal{V}$ and repeat the trigger inversion process for each $\tilde{y}$ (referred to as trigger sweep). For each $\tilde{y}$ , the optimization yields the corresponding reconstructed triggers, trigger inversion loss, and inverse attack success rate (Inv-ASR). Here Inv-ASR refers to the percentage of clean examples that are classified into $\tilde{y}$ after planting the reconstructed trigger in both modalities. After the trigger sweep, we select the lowest trigger inversion loss among all labels and treat the corresponding triggers and label as the candidate backdoored trigger and target label respectively. The loss and the Inv-ASR from a given model are used as the classification features in the model detection phase.
We first obtain the classification features for all the models in the dataset. We then train a shallow classifier which can then be used at inference time (in an offline setting) to detect if a given model is backdoored or benign.
# 4. Experiments
We evaluate our approach in this section. We first discuss the dataset and metrics used for evaluation. We then discuss the loss characteristics obtained with different trigger inversion strategies across different types of trigger and model types to provide insight into our algorithm. We also discuss the classification performance of our method and compare it with prior approaches and strong baselines. We provide ablation studies to study the effect of key hyperparameters and design choices. Finally, we provide visualizations of
<table><tr><td></td><td>Split</td><td>General Wt. Analysis</td><td>DBS</td><td>Unimodal NC</td><td>TABOR</td><td>TIJO \( _{nlp} \)</td><td>Ours TIJO \( _{vis} \)</td><td>TIJO \( _{mm} \)</td></tr><tr><td rowspan="3">Single Key</td><td>\( T_{nlp} \)</td><td>0.61±0.07</td><td>0.89±0.05</td><td>-</td><td>-</td><td>0.98±0.02</td><td>0.52±0.06</td><td>0.98±0.02</td></tr><tr><td>\( T_{solid} \)</td><td>0.53±0.05</td><td>-</td><td>0.59±0.10</td><td>0.98±0.02</td><td>0.39±0.09</td><td>1.00±0.00</td><td>0.99±0.01</td></tr><tr><td>\( T_{optim} \)</td><td>0.58±0.05</td><td>-</td><td>0.71±0.08</td><td>0.99±0.02</td><td>0.40±0.11</td><td>0.99±0.01</td><td>0.95±0.03</td></tr><tr><td rowspan="3">Dual Key</td><td>\( T_{nlp+S} \)</td><td>0.54±0.03</td><td>0.46±0.04</td><td>0.42±0.05</td><td>0.46±0.06</td><td>0.41±0.11</td><td>0.70±0.06</td><td>0.97±0.03</td></tr><tr><td>\( T_{nlp+O} \)</td><td>0.60±0.13</td><td>0.45±0.01</td><td>0.50±0.09</td><td>0.52±0.03</td><td>0.43±0.12</td><td>0.57±0.07</td><td>0.86±0.10</td></tr><tr><td>\( T \)</td><td>0.60±0.04</td><td>0.48±0.02</td><td>0.50±0.06</td><td>0.48±0.04</td><td>0.46±0.03</td><td>0.67±0.07</td><td>0.92±0.02</td></tr></table>
 Figure 4. Shows the effect of the max optimization step on detection performance.
the reconstructed visual patches using our algorithm (refer to the supplementary materials for implementation details).
TrojVQA Dataset and Metric: We use the TrojVQA [48] dataset that was introduced recently and consists of both benign and poisoned VQA models. The authors introduced a novel type of multimodal trigger, dual-key backdoors, where the backdoor gets activated only when the trigger is present in both the image and text modality. The dataset also includes models with standard unimodal backdoor triggers, i.e. the trigger was introduced in either the text or image modality only. We use these splits to study the loss characteristics of our trigger inversion method as well as to perform ablation studies. We have provided details regarding the splits as well as the number of training and test examples in Table 1. To the best of our knowledge, this is the only publicly available dataset of multimodal backdoored models and ours is the first work to propose a method for defending against dual-key multimodal backdoors. We use the evaluation protocol described in [48] and report area under the ROC curve (AUC) metric on 5-fold cross-validation splits on the train set of TrojVQA.
# 4.1. Trigger Inversion Loss Characteristics
We show the loss characteristics of our trigger inversion approach in Figure 3. This loss is obtained after optimizing Eq. 5 and trigger-sweep (as discussed in Section 3.5). The
Table 2. Shows AUC for different $TrojVQA$ splits with weight analysis, prior unimodal methods as well as three variants of our method- $\mathrm{TIJO}_{\mathrm{np}}$ , $\mathrm{TIJO}_{\mathrm{vis}}$ , and $\mathrm{TIJO}_{\mathrm{mm}}$ which optimize triggers in NLP, vision, and both modalities respectively. We see a clear improvement with $\mathrm{TIJO}_{\mathrm{mm}}$ for not only dual-key multimodal triggers but also for unimodal triggers. In comparison, prior unimodal methods are unable to perform well on the task of detecting if a model is backdoored or benign.
<table><tr><td>Split</td><td>Model</td><td>Inv-ASR</td><td>Lowest Loss</td></tr><tr><td rowspan="2">Tnlp</td><td>TIJOnlp</td><td>0.94±0.05</td><td>0.98±0.02</td></tr><tr><td>TIJOmm</td><td>0.54±0.03</td><td>0.98±0.02</td></tr><tr><td rowspan="2">Tsolid</td><td>TIJOvis</td><td>0.91±0.05</td><td>1.00±0.00</td></tr><tr><td>TIJOmm</td><td>0.56±0.04</td><td>0.99±0.01</td></tr><tr><td rowspan="2">Toptim</td><td>TIJOvis</td><td>0.90±0.04</td><td>0.99±0.01</td></tr><tr><td>TIJOmm</td><td>0.54±0.02</td><td>0.95±0.03</td></tr><tr><td>T</td><td>TIJOmm</td><td>0.53±0.02</td><td>0.92±0.02</td></tr></table>
Table 3. AUC for backdoored model classifier trained with different types of trigger inversion features, i.e. least loss features and maximum switch to target accuracy.
<table><tr><td rowspan="2">Split</td><td colspan="2">TIJOvis</td><td colspan="2">TIJOmm</td></tr><tr><td>Bone</td><td>Ball</td><td>Bone</td><td>Ball</td></tr><tr><td>Tsolid</td><td>0.85±0.04</td><td>1.00±0.00</td><td>0.86±0.10</td><td>0.99±0.01</td></tr><tr><td>Toptim</td><td>0.78±0.06</td><td>0.99±0.01</td><td>0.80±0.06</td><td>0.95±0.03</td></tr><tr><td>Tnlp+S</td><td>0.47±0.08</td><td>0.70±0.06</td><td>0.77±0.05</td><td>0.97±0.03</td></tr><tr><td>Tnlp+O</td><td>0.46±0.11</td><td>0.57±0.07</td><td>0.65±0.04</td><td>0.86±0.10</td></tr><tr><td>T</td><td>0.52±0.04</td><td>0.67±0.07</td><td>0.72±0.07</td><td>0.92±0.02</td></tr></table>
Table 4. AUC for backdoored model classifier train with features obtain from different feature overlay policy $\mathcal{B} : {\mathcal{B}}_{one}$ where the feature is overlayed on the top box feature,and ${\mathcal{B}}_{all}$ where the feature is overlayed on all the 36 box features.
rows and columns in the figure correspond to the modalities involved in the trigger inversion optimization and $TrojVQA$
 Figure 5. Visualizes the generated image patches from $\tilde{f}_{adv}$ using the trigger patch generation method described in Section 3.4. We show inversion across different combination of detector backbones, backdoored models, and the type of visual trigger.
<table><tr><td rowspan="2">Split</td><td colspan="2">TIJOvis</td><td colspan="2">TIJOMm</td></tr><tr><td>λ=10-5</td><td>λ=10-3</td><td>λ=10-5</td><td>λ=10-3</td></tr><tr><td>Tsolid</td><td>0.97±0.03</td><td>0.97±0.02</td><td>0.91±0.04</td><td>0.89±0.03</td></tr><tr><td>Toptim</td><td>0.96±0.03</td><td>0.96±0.03</td><td>0.89±0.07</td><td>0.90±0.03</td></tr><tr><td>Tnlp+S</td><td>0.58±0.10</td><td>0.59±0.11</td><td>0.93±0.04</td><td>0.92±0.06</td></tr><tr><td>Tnlp+O</td><td>0.47±0.11</td><td>0.47±0.12</td><td>0.87±0.07</td><td>0.87±0.08</td></tr><tr><td>T</td><td>0.58±0.06</td><td>0.59±0.08</td><td>0.92±0.02</td><td>0.91±0.02</td></tr></table>
Table 5. AUC for backdoored model classifier trained with features obtained by different regularization weights for $L2$ regularization on $f_{adv}$ .
split respectively. It also shows the performance across different VQA models. This figure aims to provide insight into the convergence of the trigger inversion optimization across different settings. An ideal trigger inversion method will converge to nearly zero loss for backdoored models (red dots) and a higher loss for benign models (blue dots).
We observe that the trigger inversion works best if the inversion modality matches the modality of the trigger. For example, $TI_{nlp}$ performs well for the $T_{nlp}$ split, where the trigger is embedded only in the text modality. Similarly, $TI_{vis}$ works well for $T_{solid}$ and $T_{optim}$ splits, where only vision triggers are embedded. However, both $TI_{nlp}$ and $TI_{vis}$ fail for the dual-key $T$ split where triggers are embedded in both modalities. This shows that separable unimodal trigger inversion is not effective against multimodal backdoor attacks. Finally, we can see multimodal trigger inversion $TI_{mm}$ is able to solve the problem and have a cleaner sepa
ration between benign and backdoored models in the dualkey split. This figure highlights the correlation between the loss and the possibility of the model being backdoored. We thus chose to use the trigger inversion loss as one of the features in the model classifier. We also observe that $TI_{mm}$ is effective across most VQA models.
We observed the phenomena of 'natural trojans' in multimodal models. Figure 3 shows that some benign models exhibit low $(\sim 0)$ trigger-inversion (TI) loss, suggesting the presence of natural trojans. Models such as $\mathrm{BAN}_4$ , $\mathrm{BAN}_8$ , and $\mathrm{BUTD}_e$ , are more prone to such natural trojans.
# 4.2. Backdoorsed Model Classification Results
We train a logistic regression classifier on the trigger inversion features as mentioned in Section 3.5. Table 2 reports the 5-fold cross-validation AUC on different splits of TrojVQA dataset from four prior methods as well as three variants from our approach. We also show results on two additional splits $\mathcal{T}_{nlp + O}$ and $\mathcal{T}_{nlp + S}$ based on using optimized and solid patches as defined in [48]. We clearly see that the unimodal variants of our method- $\mathrm{TIJO}_{nlp}$ and $\mathrm{TIJO}_{vis}-$ have almost perfect performance on their corresponding unimodal splits. For example, $\mathrm{TIJO}_{nlp}$ achieves an AUC of 0.98 on split $\mathcal{T}_{nlp}$ . However, their performance is low on the multimodal (dual-key) splits. $\mathrm{TIJO}_{nlp}$ and $\mathrm{TIJO}_{vis}$ achieve an AUC of 0.46 and 0.67 respectively on split $\mathcal{T}$ . We also note that $\mathrm{TIJO}_{vis}$ performs better than $\mathrm{TIJO}_{nlp}$ on the multimodal splits. This is probably because there is a separation between benign and backdoored mod
els based on the trigger inversion loss (even though the convergence is not perfect for backdoored models) for some VQA architectures (e.g. $\mathrm{MCAN}_S$ , $\mathrm{MCAN}_L$ , $\mathrm{NAS}_S$ , $\mathrm{NAS}_L$ ) as evident in Figure 3. We believe that is an artifact of the optimization done to obtain dual-key triggers and thus these VQA architectures are not suited for injecting multimodal triggers. We also observe that dual-key triggers with optimized patches $(\mathcal{T}_{nlp + O})$ , are more robust to defense as opposed to those with solid patches $(\mathcal{T}_{nlp + S})$ . For example, the AUC of $\mathrm{TIJO}_{vis}$ is substantially lower on $\mathcal{T}_{nlp + O}$ (0.57) as compared to $\mathcal{T}_{nlp + S}$ (0.70).
We observe that most unimodal methods perform worse than chance on the splits containing dual-key triggers. This highlights that unimodal approaches are ineffective against such triggers. Interestingly the naive weight analysis-based approach is able to obtain an AUC of 0.6 on split $\mathcal{T}$ . We finally observe that our approach $\mathrm{TIJO}_{mm}$ outperforms all other approaches by a significant margin. $\mathrm{TIJO}_{mm}$ obtains an AUC of 0.92 on split $\mathcal{T}$ , compared to 0.67, 0.46, 0.60 by $\mathrm{TIJO}_{vis}$ , $\mathrm{TIJO}_{nlp}$ , and weight analysis respectively. We also note that $\mathrm{TIJO}_{mm}$ performs well on all the splits, and thus could be used for modality agnostic trigger inversion.
# 4.3. Ablation Experiments:
Effect of classification feature: As discussed in Section 3.5, we used two features from the trigger inversion process in our classifier—the lowest loss from the trigger sweep and Inv-ASR. Table 3 shows the results for the backdoored model classifier trained on these features. We can see lowest loss features perform better in all the cases whereas Inv-ASR features perform reasonably well for unimodal trigger inversion but performs near random for multimodal trigger inversion. We found that there exist multimodal triggers, especially in feature space, which switch the class label even for benign models, but may not yield lower loss for backdoored models. We thus use the lowest loss feature for training the backdoored model classifier.
Feature overlay: $\mathcal{B}$ denotes the policy used to plant the feature trigger $f_{adv}$ on the visual inputs. We experiment with two policies: $\mathcal{B}_{one}$ where optimized feature $f_{adv}$ is overlayed only on the top (based on objectness score) box feature from detector $\mathcal{D}$ , and $\mathcal{B}_{all}$ where the feature $f_{adv}$ is overlayed on all the 36 box features. Table 4 reports the results of these experiments. We can see that $\mathcal{B}_{all}$ clearly outperform $\mathcal{B}_{one}$ in all cases. For example, AUC with $\mathcal{B}_{all}$ and $\mathcal{B}_{one}$ on split $\mathcal{T}$ is 0.92 and 0.72 respectively. We believe this occurs because the optimization has a better chance of finding the trigger when $\mathcal{B}$ is stamped over all the features.
Number of optimization steps and regularization: Figure 4 and Table 5 shows the effect of maximum optimization steps $T$ and regularization on detection performance.
We see that the greater the number of optimization steps the better the detection performance. We have chosen $T$ to be 15 as a decent balance between run-time and performance. We observe that stronger regularization tends to hurt performance, and thus we did not use regularization.
# 4.4. Image Patch Generation Experiment:
We optimize for $\pmb{p}_{adv}$ of size $64 \times 64$ with $\mathcal{M}$ overlaying the patch to center of the image (as described in Section 3.4). We optimize $\pmb{p}_{adv}$ with Adam optimizer with a learning rate of 0.03, and betas as (0.5, 0.9) and use early stopping with a patience of 20 epochs. We optimize only over the clean image from the support set $S$ .
Figure 5 shows the generated patches for backdoored MFB VQA models [54]. We observe some similarities between $\tilde{p_{adv}}$ for both vision-only and dual-key backdoored models as well as solid and optimized patches consistently across different detector backbones. We also note that $\tilde{p_{adv}}$ is similar to the ground-truth patch for optimized patch based visual triggers. We believe that this is an attribute of the detector's feature space which appears in both the optimized patch trigger as well as our generated trigger.
# 5. Conclusion
We introduce a novel defense technique TIJO (Trigger Inversion using Joint Optimization) to detect multimodal backdoor attacks. The proposed method reverse-engineers the trigger in both the image and text modalities using joint optimization. Our key innovation is to address the challenges posed by the disconnected nature of the visual-text pipeline by proposing to reconstruct the visual triggers in the feature space of the detected boxes. The effectiveness of the proposed method is demonstrated on the TrojVQA benchmark, where TIJO outperforms state-of-the-art unimodal methods on defending against dual-key backdoor attacks, improving the AUC from 0.6 to 0.92 on multimodal dual-key backdoors. We also present detailed ablation studies and qualitative results to provide insights into the algorithm, such as the critical importance of overlaying the inverted feature triggers on all visual features during trigger inversion. Our work is the first defense against multimodal backdoor attacks. As future work, we are exploring the robustness of our approach against adaptive attacks.
Acknowledgements: This research was partially supported by the U.S. Army Research Laboratory Cooperative Research Agreement W911NF-17-2-0196, and the Intelligence Advanced Research Projects Agency (IARPA) TrojanAI and U.S. Army Research Office under the contract W911NF-20-C-0038. The content of this paper does not necessarily reflect the position or the policy of the Government, and no official endorsement should be inferred.
# References
[1] Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. IEEE Access, 6:14410-14430, 2018. [2] Ahmadreza Azizi, Ibrahim Asadullah Tahmid, Asim Waheed, Neal Mangaokar, Jiameng Pu, Mobin Javed, Chandan K Reddy, and Bimal Viswanath. {T-Miner}: A generative approach to defend against trojan attacks on {DNN-based} text classification. In 30th USENIX Security Symposium (USENIX Security 21), pages 2255-2272, 2021. [3] Mauro Barni, Kassem Kallas, and Benedetta Tondi. A new backdoor attack in cnns by training set corruption without label poisoning. In 2019 IEEE International Conference on Image Processing (ICIP), pages 101-105. IEEE, 2019. [4] Jakub Breier, Xiaolu Hou, Martin Ochoa, and Jesus Solano. Foobar: Fault fooling backdoor attack on neural network training. IEEE Transactions on Dependable and Secure Computing, 2022. [5] Shih-Han Chan, Yinpeng Dong, Jun Zhu, Xiaolu Zhang, and Jun Zhou. Baddet: Backdoor attacks on object detection. arXiv preprint arXiv:2205.14497, 2022. [6] Bryant Chen, Wilka Carvalho, Nathalie Baracaldo, Heiko Ludwig, Benjamin Edwards, Taesung Lee, Ian Molloy, and Biplav Srivastava. Detecting backdoor attacks on deep neural networks by activation clustering. arXiv preprint arXiv:1811.03728, 2018. [7] Jinyin Chen, Chengyu Jia, Haibin Zheng, Ruoxi Chen, and Chenbo Fu. Is multi-modal necessarily better? robustness evaluation of multi-modal fake news detection. arXiv preprint arXiv:2206.08788, 2022. [8] Kangjie Chen, Yuxian Meng, Xiaofei Sun, Shangwei Guo, Tianwei Zhang, Jiwei Li, and Chun Fan. Badpre: Task-agnostic backdoor attacks to pre-trained NLP foundation models. In International Conference on Learning Representations, 2022. [9] Weixin Chen, Baoyuan Wu, and Haoqian Wang. Effective backdoor defense by exploiting sensitivity of poisoned samples. In Advances in Neural Information Processing Systems, 2022. [10] Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017. [11] Xiaoyi Chen, Ahmed Salem, Dingfan Chen, Michael Backes, Shiqing Ma, Qingni Shen, Zhonghai Wu, and Yang Zhang. Badnl: Backdoor attacks against nlp models with semantic-preserving improvements. In Annual Computer Security Applications Conference, pages 554-569, 2021. [12] Jiazhu Dai, Chuanshuai Chen, and Yufeng Li. A backdoor attack against lstm-based text classification systems. IEEE Access, 7:138872-138878, 2019. [13] Javid Ebrahimi, Anyi Rao, Daniel Lowd, and Dejing Dou. Hotflip: White-box adversarial examples for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 31-36, 2018.
[14] Ming Fan, Ziliang Si, Xiaofei Xie, Yang Liu, and Ting Liu. Text backdoor detection using an interpretable rnn abstract model. IEEE Transactions on Information Forensics and Security, 16:4117-4132, 2021. [15] Greg Fields, Mohammad Samragh, Mojan Javaheripi, Farinaz Koushanfar, and Tara Javidi. Trojan signatures in cnn weights. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12-20, 2021. [16] Lianli Gao, Qilong Zhang, Jingkuan Song, Xianglong Liu, and Heng Tao Shen. Patch-wise attack for fooling deep neural network. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXVIII 16, pages 307-322. Springer, 2020. [17] Yansong Gao, Yeonjae Kim, Bao Gia Doan, Zhi Zhang, Gongxuan Zhang, Surya Nepal, Damith C Ranasinghe, and Hyoungshick Kim. Design and evaluation of a multidomain trojan detection method on deep neural networks. IEEE Transactions on Dependable and Secure Computing, 19(4):2349-2364, 2021. [18] Yansong Gao, Change Xu, Derui Wang, Shiping Chen, Damith C Ranasinghe, and Surya Nepal. Strip: A defence against trojan attacks on deep neural networks. In Proceedings of the 35th Annual Computer Security Applications Conference, pages 113-125, 2019. [19] Diego Garcia-soto, Huili Chen, and Farinaz Koushanfar. Perd: Perturbation sensitivity-based neural trojan detection framework on nlp applications. arXiv preprint arXiv:2208.04943, 2022. [20] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Bartra, and Devi Parikh. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6904-6913, 2017. [21] Tianyu Gu, Brendan Dolan-Gavitt, and Siddharth Garg. Badnets: Identifying vulnerabilities in the machine learning model supply chain. arXiv preprint arXiv:1708.06733, 2017. [22] Xiaoling Hu, Xiao Lin, Michael Cogswell, Yi Yao, Susmit Jha, and Chao Chen. Trigger hunting with a topological prior for trojan detection. In International Conference on Learning Representations, 2022. [23] Xijie Huang, Moustafa Alzantot, and Mani Srivastava. Neuroninspect: Detecting backdoors in neural networks via output explanations. arXiv preprint arXiv:1911.07399, 2019. [24] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. Advances in neural information processing systems, 32, 2019. [25] Lesheng Jin, Zihan Wang, and Jingbo Shang. Wedef: Weakly supervised backdoor defense for text classification. arXiv preprint arXiv:2205.11803, 2022. [26] Panagiota Kiourti, Wenchao Li, Anirban Roy, Karan Sikka, and Susmit Jha. Misa: Online defense of trojaned models using misattributions. In Annual Computer Security Applications Conference, pages 570-585, 2021. [27] Panagiota Kiourti, Kacper Wardega, Susmit Jha, and Wenchao Li. Trojdrl: evaluation of backdoor attacks on deep reinforcement learning. In 2020 57th ACM/IEEE Design Automation Conference (DAC), pages 1-6. IEEE, 2020.
[28] Hyun Kwon. Defending deep neural networks against backdoor attack by using de-trigger autoencoder. IEEE Access, 2021. [29] Yuanchun Li, Jiayi Hua, Haoyu Wang, Chunyang Chen, and Yunxin Liu. Deeppayload: Black-box backdoor attack on deep learning models through neural payload injection. In 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE), pages 263-274. IEEE, 2021. [30] Yiming Li, Yong Jiang, Zhifeng Li, and Shu-Tao Xia. Backdoor learning: A survey. IEEE Transactions on Neural Networks and Learning Systems, 2022. [31] Yige Li, Xixiang Lyu, Nodens Koren, Lingjuan Lyu, Bo Li, and Xingjun Ma. Anti-backdoor learning: Training clean models on poisoned data. Advances in Neural Information Processing Systems, 34:14900-14912, 2021. [32] Yige Li, Xixiang Lyu, Nodens Koren, Lingjuan Lyu, Bo Li, and Xingjun Ma. Neural attention distillation: Erasing back-door triggers from deep neural networks. In International Conference on Learning Representations, 2021. [33] Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Finepruning: Defending against backdooring attacks on deep neural networks. In International Symposium on Research in Attacks, Intrusions, and Defenses, pages 273-294. Springer, 2018. [34] Yingqi Liu, Guangyu Shen, Guanhong Tao, Shengwei An, Shiqing Ma, and Xiangyu Zhang. Piccolo: Exposing complex backdoors in nlp transformer models. In 2022 IEEE Symposium on Security and Privacy (SP), pages 1561-1561. IEEE Computer Society, 2022. [35] Hua Ma, Yinshan Li, Yansong Gao, Alsharif Abuadbba, Zhi Zhang, Anmin Fu, Hyoungshick Kim, Said F Al-Sarawi, Nepal Surya, and Derek Abbott. Dangerous cloaking: Natural trigger based backdoor attacks on object detectors in the physical world. arXiv preprint arXiv:2201.08619, 2022. [36] Hua Ma, Yinshan Li, Yansong Gao, Zhi Zhang, Alsharif Abuadbba, Anmin Fu, Said F Al-Sarawi, Nepal Surya, and Derek Abbott. Macab: Model-agnostic clean-annotation backdoor to object detection with natural trigger in real-world. arXiv preprint arXiv:2209.02339, 2022. [37] Tuan Anh Nguyen and Anh Tuan Tran. Wanet - imperceptible warping-based backdoor attack. In International Conference on Learning Representations, 2021. [38] Fanchao Qi, Yangyi Chen, Mukai Li, Yuan Yao, Zhiyuan Liu, and Maosong Sun. Onion: A simple and effective defense against textual backdoor attacks. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 9558-9566, 2021. [39] Han Qiu, Yi Zeng, Shangwei Guo, Tianwei Zhang, Meikang Qiu, and Bhavani Thuraisingham. Deepsweep: An evaluation framework for mitigating dnn backdoor attacks using data augmentation. In Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security, pages 363-377, 2021. [40] Adnan Siraj Rakin, Zhezhi He, and Deliang Fan. Tbt: Targeted neural network attack with bit Trojan. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13198-13207, 2020.
[41] Aniruddha Saha, Akshayvarun Subramanya, and Hamed Pirsiavash. Hidden trigger backdoor attacks. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 11957-11965, 2020. [42] Aniruddha Saha, Ajinkya Tejankar, Soroush Abbasi Koohpayegani, and Hamed Pirsivash. Backdoor attacks on self-supervised learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13337-13346, 2022. [43] Kun Shao, Junan Yang, Yang Ai, Hui Liu, and Yu Zhang. Bddr: An effective defense against textual backdoor attacks. Computers & Security, 110:102433, 2021. [44] Guangyu Shen, Yingqi Liu, Guanhong Tao, Qiuling Xu, Zhuo Zhang, Shengwei An, Shiqing Ma, and Xiangyu Zhang. Constrained optimization with dynamic bound-scaling for effective nlp backdoor defense. In International Conference on Machine Learning, pages 19879-19892. PMLR, 2022. [45] Karan Sikka, Indranil Sur, Susmit Jha, Anirban Roy, and Ajay Divakaran. Detecting trojaned dnns using counterfactual attributions. arXiv preprint arXiv:2012.02275, 2020. [46] Alexander Turner, Dimitris Tsipras, and Aleksander Madry. Label-consistent backdoor attacks. arXiv preprint arXiv:1912.02771, 2019. [47] Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. Universal adversarial triggers for attacking and analyzing NLP. In Empirical Methods in Natural Language Processing, 2019. [48] Matthew Walmer, Karan Sikka, Indranil Sur, Abhinav Shrivastava, and Susmit Jha. Dual-key multimodal backdoors for visual question answering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15375-15385, 2022. [49] Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y Zhao. Neural cleansse: Identifying and mitigating backdoor attacks in neural networks. In 2019 IEEE Symposium on Security and Privacy (SP), pages 707-723. IEEE, 2019. [50] Wenqi Wang, Run Wang, Lina Wang, Zhibo Wang, and Aoshuang Ye. Towards a robust deep neural network in texts: A survey. arXiv preprint arXiv:1902.07285, 2019. [51] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detector2. https://github.com/facebookresearch/detectron2, 2019. [52] Mingfu Xue, Shifeng Ni, Yinghao Wu, Yushu Zhang, Jian Wang, and Weiqiang Liu. Imperceptible and multi-channel backdoor attack against deep neural networks. arXiv preprint arXiv:2201.13164, 2022. [53] Wenkai Yang, Yankai Lin, Peng Li, Jie Zhou, and Xu Sun. Rap: Robustness-aware perturbations for defending against backdoor attacks on nlp models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 8365-8381, 2021. [54] Zhou Yu, Jun Yu, Jianping Fan, and Dacheng Tao. Multimodal factorized bilinear pooling with co-attention learning for visual question answering. In Proceedings of the IEEE international conference on computer vision, pages 1821–1830, 2017.
[55] Xiaoyu Zhang, Rohit Gupta, Ajmal Mian, Nazanin Rahnavard, and Mubarak Shah. Cassandra: Detecting trojaned networks from adversarial perturbations. IEEE Access, 9:135856-135867, 2021. [56] Biru Zhu, Yujia Qin, Ganqu Cui, Yangyi Chen, Weilin Zhao, Chong Fu, Yangdong Deng, Zhiyuan Liu, Jingang Wang, Wei Wu, et al. Moderate-fitting as a natural backdoor defender for pre-trained language models. In Advances in Neural Information Processing Systems, 2022.123version https://git-lfs.github.com/spec/v1oid sha256:5efebd49abab6b7144aa588b05acab650fa9832ef2f175cb836797a3258c9619size 593108123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581[ { "type": "text", "text": "TM2D: Bimodality Driven 3D Dance Generation via Music-Text Integration", "text_level": 1, "bbox": [ 101, 130, 867, 152 ], "page_idx": 0 }, { "type": "text", "text": "Kehong Gong<sup>1*</sup> \nZihang Jiang<sup>1</sup>", "bbox": [ 156, 179, 289, 219 ], "page_idx": 0 }, { "type": "text", "text": "Dongze Lian $^{1*}$ \nXinxin Zuo $^{2}$", "bbox": [ 341, 179, 460, 215 ], "page_idx": 0 }, { "type": "text", "text": "$^{1}$ National University of Singapore", "bbox": [ 243, 217, 475, 234 ], "page_idx": 0 }, { "type": "text", "text": "Heng Chang $^{2}$ \nMichael Bi Mi $^{2}$", "bbox": [ 511, 179, 638, 215 ], "page_idx": 0 }, { "type": "text", "text": "Chuan Guo² \nXinchao Wang¹†", "bbox": [ 678, 180, 812, 217 ], "page_idx": 0 }, { "type": "text", "text": "$^{2}$ Huawei Technologies Co., Ltd.", "bbox": [ 506, 217, 723, 233 ], "page_idx": 0 }, { "type": "image", "img_path": "images/1f6ebcdb8087e5d1836998117936b0bbe0d692f6ead0982b3e17b1d70968080c.jpg", "image_caption": [ "Figure 1: Generated 3D dance examples conditioned music and text with our method. Given an audio input and text input with a specific starting time and duration, our method is able to generate a sequence of dance motions that fit the music and text instruction. The character is from Mixamo [1]." ], "image_footnote": [], "bbox": [ 76, 282, 890, 421 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 233, 492, 313, 508 ], "page_idx": 0 }, { "type": "text", "text": "We propose a novel task for generating 3D dance movements that simultaneously incorporate both text and music modalities. Unlike existing works that generate dance movements using a single modality such as music, our goal is to produce richer dance movements guided by the instructive information provided by the text. However, the lack of paired motion data with both music and text modalities limits the ability to generate dance movements that integrate both. To alleviate this challenge, we propose to utilize a 3D human motion VQ-VAE to project the motions of the two datasets into a latent space consisting of quantized vectors, which effectively mix the motion tokens from the two datasets with different distributions for training. Additionally, we propose a cross-modal transformer to integrate text instructions into motion generation architecture for generating 3D dance movements without degrading the performance of music-conditioned dance generation. To better evaluate the quality of the generated motion, we introduce two novel metrics, namely Motion Prediction Distance (MPD) and Freezing Score (FS), to measure the coherence and freezing percentage of the generated motion. Extensive experiments show that our approach can gener", "bbox": [ 73, 526, 473, 859 ], "page_idx": 0 }, { "type": "text", "text": "ate realistic and coherent dance movements conditioned on both text and music while maintaining comparable performance with the two single modalities. Code is available at https://garfield-kh.github.io/TM2D/.", "bbox": [ 500, 493, 892, 554 ], "page_idx": 0 }, { "type": "text", "text": "1. Introduction", "text_level": 1, "bbox": [ 500, 585, 632, 602 ], "page_idx": 0 }, { "type": "text", "text": "The music-conditioned dance generation has become a topic of great interest in recent years. The ability to generate dance movements that are synchronized with music has numerous applications, such as behavior understanding, simulation, and benefiting the community of dancers and musicians [25, 9, 29, 44]. Although music has been used as a guidance to generate dance movements, another important modality cue, text (or language), which provides richer actions and more flexible motion guidance, and is studied in other tasks such as image classification [38], detection [15], segmentation [50], and text-driven image generation [42], has not been fully explored in dance generation. To this end, we first propose a novel task for generating 3D dance movements that simultaneously incorporate both text and music modalities, enabling the generated human to perform rich dancing movements in accordance with the music and text.", "bbox": [ 496, 612, 892, 868 ], "page_idx": 0 }, { "type": "text", "text": "Designing a system pipeline for this bimodality driven 3D dance generation task is non-trivial. There exist two", "bbox": [ 500, 869, 890, 900 ], "page_idx": 0 }, { "type": "header", "text": "CVF", "bbox": [ 106, 2, 181, 42 ], "page_idx": 0 }, { "type": "header", "text": "This ICCV paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore.", "bbox": [ 238, 0, 807, 46 ], "page_idx": 0 }, { "type": "page_footnote", "text": "*Equal contribution: gongkehong@u.nus.edu, dongze@nus.edu.sg", "bbox": [ 91, 876, 460, 887 ], "page_idx": 0 }, { "type": "page_footnote", "text": "†Corresponding author: xinchao@nus.edu.sg", "bbox": [ 91, 888, 331, 898 ], "page_idx": 0 }, { "type": "page_number", "text": "9942", "bbox": [ 482, 944, 514, 955 ], "page_idx": 0 }, { "type": "text", "text": "significant challenges to be considered: i) the existing datasets only cater to either music-driven (music2dance) [46, 5, 57, 29] or text-driven (text2motion) [36, 16] human motion generation, and no paired 3D dance generation dataset exists that takes into account both music and text. While building a new large-scale paired 3D dance dataset based on music and text is possible, it is time-consuming with fully annotated 3D human motion [29]; ii) the integration of text into music-conditioned dance generation requires a suitable architecture. However, existing methods that use music as a driving force to generate dance movements might result in temporal-freezing frames or fail to generalize to in-the-wild scenarios [29, 44]. Therefore, simple integration of text into the existing music-conditioned architecture might pose a risk of degraded dance generation quality in our new task.", "bbox": [ 75, 90, 472, 333 ], "page_idx": 1 }, { "type": "text", "text": "To address the first challenge, we take advantage of existing music-dance and text-motion datasets for this new task. However, directly mixing motions from these two datasets would result in inferior performance since the motions from these two datasets are in completely different motion spaces. To overcome this, we propose to utilize a VQ-VAE architecture to project the motions into a consistent and shared latent space. In particular, we build up a shared codebook for all the motions from the training set, and motions from both datasets are now represented as discrete tokens that are implicitly constrained to fall into a shared latent space. For the second challenge, we propose to utilize a cross-modal transformer architecture that formulates both music2dance and text2motion as sequence-to-sequence translation tasks. This architecture directly translates audio and text features into motion tokens and enables bimodality driven ability by introducing a fusion strategy in the latent space with a shared motion decoder for both tasks. With the shared decoder, audio and text information can be efficiently fused during inference. Our entire cross-modal transformer architecture is both effective and efficient, allowing for the integration of text instructions to generate coherent 3D dance motions, as illustrated in Figure 1.", "bbox": [ 75, 337, 472, 685 ], "page_idx": 1 }, { "type": "text", "text": "To better evaluate the coherence of generated dance in our task, we propose a new evaluation metric, Motion Prediction Distance (MPD), which measures the distance between the predicted motion and the ground truth at the time of integrating text, thereby providing a more accurate evaluation of the coherence of frames. Additionally, we introduce a Freezing Score (FS) that quantifies the percentage of temporal freezing frames in dance generation, which is a common problem in music-conditioned dance generation. To better evaluate the performance of our method in real-world scenarios, we also collect some in-the-wild music data for evaluation. Our method successfully performs dance generation based on both text and music while maintaining comparable performance on the single modal-", "bbox": [ 75, 688, 472, 902 ], "page_idx": 1 }, { "type": "text", "text": "ity tasks (music2dance, text2motion) compared to other state-of-the-art methods.", "bbox": [ 496, 90, 890, 119 ], "page_idx": 1 }, { "type": "text", "text": "In summary, our contributions are as follows: i) We propose an interesting task of utilizing both music and text for 3D dance generation and propose a pipeline named TM2D (Text-Music to Dance) for this task. ii) Rather than collecting a new training set, we effectively combine the existing music2dance and text2motion datasets and employ a VQ-VAE framework to encode motions from all training sets to a shared feature space. iii) We propose a cross-modal transformer as well as a bimodal feature fusion strategy to encode both audio and text features, which is both effective and efficient. iv) We propose two new metrics, MPD and FS, which efficiently reflect the quality of generated motion. v) We successfully generate realistic and coherent dance based on both music and text instructions while maintaining comparable performance on the single modality tasks (music2dance, text2motion).", "bbox": [ 496, 122, 893, 364 ], "page_idx": 1 }, { "type": "text", "text": "2. Related Work", "text_level": 1, "bbox": [ 498, 378, 640, 393 ], "page_idx": 1 }, { "type": "text", "text": "2.1. Music to Dance", "text_level": 1, "bbox": [ 500, 402, 656, 419 ], "page_idx": 1 }, { "type": "text", "text": "Music2Dance is typically divided into 2D and 3D dance generation and has been explored for many years. Recent methods model 3D dance generation from the perspective of network architecture. For instance, Lee et al. [26] explore the convolutional neural network in casual dilated setting. Lee et al. [25] propose a dance unit with Variational Auto-Encoder (VAE). Ren et al. [41] employ recurrent neural network (RNN) and the graph convolution network is introduced in [12]. As for the 3D dance generation, [54, 3, 24] implement convolutional neural network, [45, 14] apply adversarial learning in generated dance. [5, 46, 51, 58, 23] implement Long short-term memory (LSTM), and [9] implement motion graph with learned music/dance embedding through matching approach [10]. More recently, transformer has been applied in dance generation [28, 29, 44, 27]. However, the previous methods usually produce temporal freezing frames when generating the long sequences, or are difficult to generalize to in-the-wild music, thereby not satisfiable when directly used for bimodal driven 3D dance generation. In this paper, we design a cross modal transformer which is effective and efficient to integrate text instruction to generate the 3D dance.", "bbox": [ 496, 426, 893, 760 ], "page_idx": 1 }, { "type": "text", "text": "2.2. Text to Motion", "text_level": 1, "bbox": [ 500, 771, 651, 786 ], "page_idx": 1 }, { "type": "text", "text": "In addition to music-driven motion generation, text is also utilized as instructions to generate motions. Text2motion can be categorized into action label based motion generation and language description based motion generation. The action label based methods [18, 34] generate motion conditioned on action labels. Action2Motion [18] implement a GRU-VAE to iteratively generate the next", "bbox": [ 496, 795, 893, 902 ], "page_idx": 1 }, { "type": "page_number", "text": "9943", "bbox": [ 482, 944, 514, 955 ], "page_idx": 1 }, { "type": "image", "img_path": "images/b2acb0fe0656441ef4b950020dc31cabf4e42c64014fc6fe9df4c6a086485f3a.jpg", "image_caption": [ "Figure 2: Our proposed pipeline for music-text conditioned 3D dance generation. Three stages from left to right: 3D human motion VQ-VAE, training stage of the cross-modal transformer, and inference stage of our pipeline. In the first stage, a VQ-VAE is trained with both motions from music2dance and text2motion data, which is then used to tokenize all motions. In the second stage, a dual path cross-modal transformer is employed for sequence2sequence translation tasks (i.e., audio to motion tokens, text to motion tokens), with a shared motion decoder. In the third stage, given audio and text inputs, the audio and text encoders first extract the corresponding features, which are then fused (late fusion) in the motion decoder to generate dance condition on both music and text." ], "image_footnote": [], "bbox": [ 106, 108, 315, 388 ], "page_idx": 2 }, { "type": "image", "img_path": "images/6a7a7e5cf65d81ecf02ec94346b5c0a3480756f34855069e0d6b1d76ef27083a.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 323, 112, 607, 387 ], "page_idx": 2 }, { "type": "image", "img_path": "images/ef5b69fe33d5d813f5825ea47be9477e8023b6ae80745d50f61adfaf6c59bc33.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 611, 116, 870, 376 ], "page_idx": 2 }, { "type": "text", "text": "frame based on the action label and previous frames. ACTOR [34] implements a transformer-VAE to encode and decode the whole pose sequence in one-shot. Since the action label based methods are restricted in a small set of action labels, language description based methods are proposed for more flexible motion generation. [37, 31, 2, 16, 17] formulate the text-to-motion task as a machine translation problem, others [52, 4, 13, 35] learns a joint embedding space of text and motion. Among them, [37, 31, 2, 52, 4, 13] use RNN encoder-decoder to learn the mapping between text and motion. [17, 16] use transformer encoder with RNN decoder, and TM2T [17] further introduces motion to text as an inverse alignment for text to motion. TEMOS [35] and TEACH [6] use transformer for both encoder and decoder for one-shot generation. Different from these text2motion methods, we focus on how to integrate two modalities (i.e., music and text) together for 3D dance generation.", "bbox": [ 75, 546, 472, 806 ], "page_idx": 2 }, { "type": "text", "text": "3. Method", "text_level": 1, "bbox": [ 76, 820, 169, 835 ], "page_idx": 2 }, { "type": "text", "text": "3.1. System Pipeline", "text_level": 1, "bbox": [ 76, 845, 235, 863 ], "page_idx": 2 }, { "type": "text", "text": "The overall pipeline is shown in Figure 2, which consists of three stages. The first stage employs a 3D human motion", "bbox": [ 76, 869, 470, 902 ], "page_idx": 2 }, { "type": "text", "text": "VQ-VAE to encode both the motions of the music2dance and text2motion datasets to a shared codebook encoded by multiple vectors such that each dance motion can be represented as a discrete motion token. After that, the combinations of music, text, and motion token are fed into a cross-modal transformer for training, which effectively learn how to predict a sequential motion tokens according to the previous those as well as music and text. In the third stage, a random starting motion token is generated and inputted to the cross-modal transformer with the given music and text for the sequential motion token prediction, which will be decoded by the pre-trained 3D human motion VQ-VAE in the first stage to generate 3D dance.", "bbox": [ 496, 546, 893, 744 ], "page_idx": 2 }, { "type": "text", "text": "3.2. 3D Human Motion VQ-VAE", "text_level": 1, "bbox": [ 500, 755, 756, 772 ], "page_idx": 2 }, { "type": "text", "text": "Since there are no paired 3D dance motions conditioned on both music and text, we try to tackle our task with the existing music2dance and text2motion datasets. Instead of directly mixing the motions from both datasets for training, we employ a VQ-VAE to project the motions into a consistent and shared latent space, which is represented with a codebook, as illustrated in Figure 2. To be specific, given a 3D human motion $M \\in \\mathbb{R}^{T \\times d_m}$ , where $T$ is the time length", "bbox": [ 496, 779, 893, 902 ], "page_idx": 2 }, { "type": "page_number", "text": "9944", "bbox": [ 482, 944, 514, 955 ], "page_idx": 2 }, { "type": "text", "text": "and $d_{m}$ is the dimension of the human motion, an encoder of VQ-VAE that consists of several 1-D convolutional layers projects $M$ to a latent vector $z\\in \\mathbb{R}^{T^{\\prime}\\times d}$ , where $T^{\\prime} = \\frac{T}{t}$ and $t$ is the time interval for downsampling and $d$ is the dimension of the latent vector. A learnable codebook $e\\in \\mathbb{R}^{K\\times d}$ describes all latent variable features of the whole dataset, where $K$ and $d$ are the length and dimension of the codebook, respectively. A quantized latent vector $z_{q}\\in \\mathbb{R}^{T^{\\prime}\\times d}$ will record the closest vector from codebook $e$ as follows", "bbox": [ 76, 90, 472, 227 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\nz _ {q, i} = \\arg \\min _ {e _ {j} \\in e} \\| z _ {i} - e _ {j} \\| \\in \\mathbb {R} ^ {d}, \\tag {1}\n$$\n", "text_format": "latex", "bbox": [ 165, 236, 468, 260 ], "page_idx": 3 }, { "type": "text", "text": "and the motion token $t_m \\in \\mathbb{R}^{T' \\times 1}$ stores the index of the closest vector", "bbox": [ 76, 272, 468, 301 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\nt _ {m, i} = \\arg \\min _ {j} \\| z _ {i} - e _ {j} \\| \\in \\mathbb {R} ^ {1}. \\tag {2}\n$$\n", "text_format": "latex", "bbox": [ 163, 313, 468, 337 ], "page_idx": 3 }, { "type": "text", "text": "The quantized $z_{q}$ will be decoded with stacked convolutional layers to reconstruct the human motion $\\hat{M}$ , and $t_{m}$ will be used in the training stage of the cross-modal transformer.", "bbox": [ 76, 345, 468, 407 ], "page_idx": 3 }, { "type": "text", "text": "For the training of 3D human motion VQ-VAE, we follow the strategy in [48] and the total loss contains a reconstruction loss for human motion regression, a codebook loss for the dictionary learning, and a commitment loss to stabilize the training process:", "bbox": [ 76, 407, 468, 484 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} _ {v q} = \\| \\hat {M} - M \\| _ {1} + \\| \\operatorname {s g} [ e ] - e _ {q} \\| _ {2} ^ {2} + \\beta \\| e - \\operatorname {s g} [ e _ {q} ] \\| _ {2} ^ {2}, \\tag {3}\n$$\n", "text_format": "latex", "bbox": [ 84, 493, 468, 512 ], "page_idx": 3 }, { "type": "text", "text": "where $\\mathrm{sg}[\\cdot ]$ is 'stop gradient' and $\\beta$ is the factor term to adjust the weight of the commitment loss. A straight-through estimator is also employed to pass the gradient from the decoder to the encoder in back-propagation.", "bbox": [ 76, 521, 468, 580 ], "page_idx": 3 }, { "type": "text", "text": "As we will show in Sec. 4, the motion tokens from both datasets encoded by 3D human motion VQ-VAE fall almost in the shared latent space, which shows the feasibility of using the separate music-conditioned and text-conditioned motion datasets for music-text conditioned 3D dance generation task.", "bbox": [ 76, 580, 468, 672 ], "page_idx": 3 }, { "type": "text", "text": "3.3. Cross-modal Transformer", "text_level": 1, "bbox": [ 76, 681, 313, 695 ], "page_idx": 3 }, { "type": "text", "text": "The cross-modal transformer contains an audio encoder, a text encoder, and a motion decoder. Since we use two separate datasets for our task, the cross-modal transformer is divided into two branches, where one for music2dance and the other for text2motion. It takes the audio feature, the text feature, and the motion token $t_m$ encoded by 3D human motion VQ-VAE as inputs, and performs the sequence-to-sequence translation task to generate the future motion tokens.", "bbox": [ 76, 704, 468, 838 ], "page_idx": 3 }, { "type": "text", "text": "Attention. Attention is introduced in Transformer [49] for natural language processing, and then applied to many domains [30, 8, 20, 39, 11, 53, 32, 55, 40] A $L$ -layer transformer typically consists of $L$ transformer blocks, which", "bbox": [ 76, 839, 468, 901 ], "page_idx": 3 }, { "type": "text", "text": "contains a multi-head self-attention (MSA) and a feed forward network (FFN). Given the input $x \\in \\mathbb{R}^{N \\times c}$ , where $N$ is the sequence length and $c$ is the dimension of the input, the transformer block first maps it to keys $K \\in \\mathbb{R}^{N \\times c}$ , queries $Q \\in \\mathbb{R}^{N \\times c}$ , values $V \\in \\mathbb{R}^{N \\times c}$ with the linear projections, and then a self-attention operation is performed by", "bbox": [ 496, 90, 890, 183 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\operatorname {A t t e n t i o n} (Q, K, V) = \\operatorname {S o f t m a x} \\left(\\frac {Q K ^ {T}}{\\sqrt {c}}\\right) V. \\tag {4}\n$$\n", "text_format": "latex", "bbox": [ 549, 191, 890, 227 ], "page_idx": 3 }, { "type": "text", "text": "The output is followed by a normalization layer and a FFN. Audio encoder. Given a sequence of music, the audio encoder first extracts the raw audio features following Bailando [44], where a public audio processing toolbox, Librosa [22], is employed to obtain the mel frequency cepstral coefficients (MFCC), MFCC delta, constant- $Q$ chromagram, tempogram and onset strength. After that, an embedded layer followed by several transformer blocks containing self-attention operation e.g., Eq. (4), is used to generate the processed audio features $f_{a}\\in \\mathbb{R}^{T^{\\prime}\\times d}$", "bbox": [ 496, 231, 890, 383 ], "page_idx": 3 }, { "type": "text", "text": "Text encoder. Given a text instruction, we first extract the text token with a GloVe [33], and then an embedded layer followed by several transformer blocks is performed to obtain a processed text feature $f_{t} \\in \\mathbb{R}^{n \\times d}$ , where $n$ is the length of the text feature.", "bbox": [ 496, 383, 890, 458 ], "page_idx": 3 }, { "type": "text", "text": "Motion decoder. Motion decoder takes the motion tokens encoded by the 3D human motion VQ-VAE as inputs and outputs the future motion tokens, which has the same spirit as the sequence-to-sequence translation task. Since the information after time $t$ is unknown at moment $t$ , a masked MSA is first employed to interact with motions at different times. The mask has the shape of a simple upper triangular matrix and is performed in Eq. (4). For the moment $t$ , only the motions before moment $t$ are able to perform self-attention operations. Motion decoder also maps the extracted audio feature $f_{a}$ and text feature $f_{t}$ via audio encoder and text encoder to $K$ and $Q$ , to perform cross-modal attention with motion tokens. To enable the music-text conditional dance generation, (i.e., feature fusion, we apply shared parameters), we use the motion decoder with shared parameters for model efficiency, as shown in Figure 2.", "bbox": [ 496, 459, 892, 715 ], "page_idx": 3 }, { "type": "text", "text": "3.4. Details of Music-text Fusion", "text_level": 1, "bbox": [ 500, 726, 751, 741 ], "page_idx": 3 }, { "type": "text", "text": "The detailed architecture is listed in Figure 3. Given the audio feature and text feature, the motion decoder first processes the past motion tokens with a self-attention layer followed by addition, normalization, a cross-attention with audio and text features separately, addition, normalization, and a feed-forward layer are performed. Such a procedure is repeated $L$ ( $L = 6$ ) times to build a typical $L$ -layer transformer. Then we adopt a late fusion strategy to perform a weighted sum of features of audio and text at a specific time (i.e., effect range). The weight curve is shown in Figure 3,", "bbox": [ 496, 750, 890, 901 ], "page_idx": 3 }, { "type": "page_number", "text": "9945", "bbox": [ 482, 944, 514, 955 ], "page_idx": 3 }, { "type": "image", "img_path": "images/a152b169740aa65fb16ca2449b80664d5f90a4b443a91c4499c5ec47685bb5e9.jpg", "image_caption": [ "Figure 3: Details of music-text feature fusion: Given the audio and text features from the encoder, the decoder processes them separately in the early layers. Then the audiotext fusion layer is applied by the weighted sum at the effect range with weight cure. Finally, a linear projection layer and a softmax operation are applied to predict the music-text conditioned motion tokens." ], "image_footnote": [], "bbox": [ 83, 89, 259, 303 ], "page_idx": 4 }, { "type": "image", "img_path": "images/a17d2629f92343d8b02e3e7d407bed0428a76891763c6caf14fc73570a7f1997.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 263, 88, 467, 301 ], "page_idx": 4 }, { "type": "text", "text": "where we slightly increase the weight of the text feature by a half cosine curve until a peak value of 0.8 at the beginning (20% time of effect range), and decrease it by a half cosine curve at the end (20% time of effect range). The weight of audio feature $W_{audio}$ is 1 - $W_{text}$ to ensure the feature keeps the same scale. With the fused feature, a linear projection layer and a softmax operation are applied to predict the music-text conditioned motion tokens, which are then decoded by the decoder of human motion VQ-VAE to obtain the music-text conditioned 3D dance sequences.", "bbox": [ 75, 445, 468, 597 ], "page_idx": 4 }, { "type": "text", "text": "3.5. Training and Inference", "text_level": 1, "bbox": [ 76, 604, 290, 619 ], "page_idx": 4 }, { "type": "text", "text": "Training. To train the 3D human motion VQ-VAE, we crop 64 frames with a sliding window from the original motion sequences as inputs, i.e., $T = 64$ , for both music2dance and text2motion datasets. We use a three-layer encoder and decoder so that the time interval of downsampling $t$ is 8. We randomly sample motions from both datasets and employ the Adam optimizer with a batch size of 128 and a learning rate of $1e^{-4}$ to optimizer our 3D human motion VQ-VAE.", "bbox": [ 75, 628, 468, 750 ], "page_idx": 4 }, { "type": "text", "text": "To train the cross-modal transformer, we split two branches into two streams to train the music2dance and text2motion tasks on both datasets. For the music2dance task, we use the same frequency as the motion token to sample the music vector so that the music feature has the same time length as the motion token. We perform the sequence to sequence translation with the motion decoder to obtain the prediction of motion tokens conditioned by the music input. As for the text2motion task, since the text and motion token have different lengths, we use a maximum text length", "bbox": [ 75, 750, 468, 901 ], "page_idx": 4 }, { "type": "text", "text": "of 84 for text2motion translation with a padding strategy. We employ 6 self-attention layers for the audio encoder, text encoder, and motion decoder with the hidden dimension of 512 and 8 heads. The cross entropy loss is adopted for both music2dance and text2motion tasks", "bbox": [ 496, 90, 890, 165 ], "page_idx": 4 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} _ {c l s} = - \\frac {1}{m} \\sum_ {i = 0} ^ {m - 1} \\sum_ {j = 0} ^ {C - 1} y _ {i j} \\log y _ {\\hat {i j}}, \\tag {5}\n$$\n", "text_format": "latex", "bbox": [ 584, 176, 890, 219 ], "page_idx": 4 }, { "type": "text", "text": "where $\\hat{y}$ is the prediction of motion token and $y$ is the ground-truth. $m$ is the length of motion tokens and $C$ is the number of classes of motion tokens, i.e., the length of codebook of 3D human motion VQ-VAE. Both tasks are simultaneously optimized with a batch size of 64 and a learning rate of $1e^{-4}$ .", "bbox": [ 496, 231, 890, 320 ], "page_idx": 4 }, { "type": "text", "text": "Inference. Our aim is to generate 3D dance with music-text integration. Therefore, at the inference stage, we first fuse the music feature and text feature extracted by the audio encoder and text encoder with a weighted sum. Specifically, given an audio feature with a time length of $T'$ and a text feature with the length of $n$ , we first feed them into the motion decoder for future motion token prediction. Then we adopt the late fusion strategy to have a weighted sum of the generated motion tokens from both audio and text features at the duration of the integrated text, followed by a linear projection layer and a softmax operation, to obtain the combined motion tokens. Finally, the combined motion tokens are decoded into a 3D dance sequence after going through the decoder of our 3D human motion VQ-VAE model.", "bbox": [ 496, 321, 892, 534 ], "page_idx": 4 }, { "type": "text", "text": "4. Experiments", "text_level": 1, "bbox": [ 500, 549, 633, 566 ], "page_idx": 4 }, { "type": "text", "text": "4.1. Experimental Settings", "text_level": 1, "bbox": [ 500, 574, 705, 590 ], "page_idx": 4 }, { "type": "text", "text": "Datasets. Since there are no paired 3D dance motions conditioned on both music and text for our task, we combine the existing music2dance and text2motion datasets. For the music2dance dataset, we employ the AIST++ dataset [29]. For the text2motion dataset, we employ the HumanML3D [16] dataset. Additionally, we also collect a new in-the-wild music dataset to evaluate the generalization ability of our method, which contains 82 wild music clips from Youtube. The total of 53 minutes duration (8x larger size than the AIST++ test set) and various styles and content of music, which faithfully lies out of the distribution of AIST++ (explained in supplementary material). The evaluation on our dataset better reflects the generalization ability of the models in real-world scenarios.", "bbox": [ 496, 598, 890, 808 ], "page_idx": 4 }, { "type": "text", "text": "Baselines. Since we are the first to propose this bimodality driven 3D dance generation task, there are no existing methods for comparisons. We implement a traditional motion editing algorithm, slerp [43], which aligns the last generated frame of the dance with the first frame of the motion by text with a transition window of 10 frames, and", "bbox": [ 496, 809, 890, 900 ], "page_idx": 4 }, { "type": "page_number", "text": "9946", "bbox": [ 482, 944, 514, 955 ], "page_idx": 4 }, { "type": "text", "text": "applies spherical interpolation of quaternion to fill in the transition in between. To validate the effectiveness of our method on music2dance task, we compare our method to the previous music2dance works [28, 57, 21, 29, 44]. To validate the effectiveness of our method on text2motion task, we compare our method to the previous text2motion works [31, 4, 7, 13, 47, 25, 17].", "bbox": [ 75, 90, 468, 196 ], "page_idx": 5 }, { "type": "text", "text": "Evaluation metrics. We adopt the same evaluation settings as suggested by FACT [29] and Bailando [44] to evaluate the dance generation quality, including Fréchet Inception Distances (FID) [19], Diversity, and Beat Align Score. For the text2motion quality, we adopt the same evaluation settings as suggested by TM2T [17], including R-precision, Multimodal-Dist, FID, Diversity, and MultiModality.", "bbox": [ 75, 196, 468, 301 ], "page_idx": 5 }, { "type": "text", "text": "In addition, we also propose two new evaluation metrics, Motion Prediction Distance (MPD) and Freezing Score. The former reflects the coherence of frames at the time of integrating text, and the latter reacts to the percentage of temporal freezing frames in the generated dance. For the Freezing Score, we introduce the Percentage of Freezing Frame (PFF) and $\\mathrm{AUC}_f$ , where the PFF is defined by measuring the percentage of frozen frames with two criteria: 1) the maximum joint velocity blew a threshold $(0.015\\mathrm{m / s})$ . 2) its duration exceeds a certain period (3s). The $\\mathrm{AUC}_f$ is defined by area under curve of PFF in the threshold range from 0 to 0.03. As for MPD, it is defined as", "bbox": [ 75, 303, 470, 483 ], "page_idx": 5 }, { "type": "equation", "text": "\n$$\n\\mathrm {M P D} = \\min _ {i} \\| f _ {i} \\left(M _ {t _ {0} \\rightarrow t _ {1}}\\right) - M _ {t _ {1} \\rightarrow t _ {2}} \\| _ {2}, \\tag {6}\n$$\n", "text_format": "latex", "bbox": [ 135, 493, 468, 513 ], "page_idx": 5 }, { "type": "text", "text": "where $M$ is the dance motions, $f$ is a motion prediction model, $f_{i}(M_{t_{0}\\rightarrow t_{1}})$ is the i-th predicted possible future motion, and $t_0$ , $t_1$ , and $t_2$ are the timestamps. It means that the model predicts various potential possible motion from $t_1$ to $t_2$ with the motion from $t_0$ to $t_1$ . If this distance is small (i.e., the generated dance $M_{t_1\\to t_2}$ lays in the possible future), then the generated dance motion $M_{t_1\\to t_2}$ is more coherent at the time of integrating text. We adopt the motion prediction model DLow [56] in this evaluation metric as it is designed for diverse potential furture motion prediction.", "bbox": [ 75, 522, 468, 686 ], "page_idx": 5 }, { "type": "text", "text": "Perceptual Evaluation. Besides the above metric measuring, we also conduct extensive user studies on Amazon Mechanical Turk (AMT) to perceptually evaluate the visual effects of our generated 3D dance results. Particularly, given each pair of dance movements sampled from our method and others with the same music clip, we request 3 distinct users on AMT to present their preference regarding the music-dance alignment, motion realism, and mobility. We further set the bar of involved users that only the ones with Master recognition who also have finished more than 1,000 tasks with over $98\\%$ approve rate are considered. Overall, there are 55 users employed in our user studies that come from various regions, ages, races and gender. The results of the user study are more representative to show the effect of", "bbox": [ 75, 688, 470, 900 ], "page_idx": 5 }, { "type": "text", "text": "the generated dance in practice.", "bbox": [ 500, 90, 710, 106 ], "page_idx": 5 }, { "type": "text", "text": "4.2. Evaluation on Music-text Conditioned Dance Generation", "text_level": 1, "bbox": [ 500, 116, 890, 147 ], "page_idx": 5 }, { "type": "text", "text": "We validate the results of music-text conditioned dance generation on the test set of AIST++ and our dataset, as illustrated in Table 2. Here we mainly evaluate the coherence of generated dance with MPD metric at the time where music meets text, i.e., the time point where text starts to take effect. We measure the coherence of pure music2dance generation as a baseline named a2d to reflect the influence of with/without text instruction. We use the past 25 motion frames to predict the future 30 frames, and calculate the MPD from future frame (ft) = 10 to ft = 30, respectively. Our method consistently outperforms slerp [43] and a2d baseline in both datasets, and gains a similar result compared to the ground-truth shown in Table 2, which verifies the naturalness of our generated motion. More importantly, user study experiments show that our method generates more realistic 3D dance compared to dance generation only conditioned music, and $70.0\\%$ Win rate even compared to the ground-truth shown in Table 2. The results of our user study indicate that the music-text conditioned dance generation received high ratings from participants, highlighting the importance of considering audience preferences in evaluating dance quality.", "bbox": [ 496, 155, 890, 488 ], "page_idx": 5 }, { "type": "text", "text": "4.3. Evaluation on Music Conditioned Dance Generation", "text_level": 1, "bbox": [ 498, 498, 890, 529 ], "page_idx": 5 }, { "type": "text", "text": "To validate the effectiveness of our architecture, we quantitatively compare our method with state-of-the-art those for music conditioned 3D dance generation. The results on the test set of AIST++ are shown in Table 1. We can find that our method outperforms the previous ones in terms of motion diversity $(\\mathrm{Div}_k$ and $\\mathrm{Div}_g)$ , while the performance of the motion quality $(\\mathrm{FID}_g)$ and beat align score is inferior under the condition that we do not use seed motion from ground-truth compared with FACT [29] and Bailando [44].", "bbox": [ 496, 537, 890, 672 ], "page_idx": 5 }, { "type": "text", "text": "The existing evaluation metrics are not sufficient to reflect the quality of generated dance in practice, which motivates us to propose a PFF and $\\mathrm{AUC}_f$ to evaluate the percentage of freezing frames. It is worth noting that our architecture outperforms FACT [29] and Bailando [44] in terms of PFF and $\\mathrm{AUC}_f$ , which shows that our method rarely generates frozen frames. Meanwhile, Li et al. [28] and DanceNet [57] also gain nearly zero freezing in PFF and $\\mathrm{AUC}_f$ . The reason is that the generated dances of Li et al. [28] are highly jittery making its velocity variation extremely high, which is also reported in [29, 44], and leads to the non-freezing issue. And for DanceNet [57], it generates dance in a repeat motion pattern, nearly zero freezing but with low diversity. Furthermore, the results of user study show that the generated 3D dance is more visually re", "bbox": [ 496, 674, 890, 900 ], "page_idx": 5 }, { "type": "page_number", "text": "9947", "bbox": [ 480, 944, 514, 955 ], "page_idx": 5 }, { "type": "table", "img_path": "images/7d6a3411797acf9123a7a4428ec5fadbcc84daac9027b02a6c0196557276d673.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Data</td><td rowspan=\"2\">Method</td><td colspan=\"2\">Motion Quality</td><td colspan=\"2\">Motion Diversity</td><td colspan=\"2\">Freezing</td><td rowspan=\"2\">Beat Align Score ↑</td><td>User Study</td></tr><tr><td>FIDk ↓</td><td>FIDg ↑</td><td>Divk ↑</td><td>Divg ↑</td><td>PFF↓</td><td>AUCf ↓</td><td>Our Method Wins</td></tr><tr><td rowspan=\"8\">AIST ++</td><td>Ground-truth</td><td>17.10</td><td>10.60</td><td>8.19</td><td>7.45</td><td>0.00</td><td>0.00</td><td>0.2374</td><td>41.9%</td></tr><tr><td>Li et al. [28]</td><td>86.43</td><td>43.46</td><td>6.85*</td><td>3.32</td><td>0.00</td><td>0.00</td><td>0.1607</td><td>98.3%</td></tr><tr><td>DanceNet [57]</td><td>69.18</td><td>25.49</td><td>2.86</td><td>2.85</td><td>0.00</td><td>0.98</td><td>0.1430</td><td>87.2%</td></tr><tr><td>DanceRevolution [21]</td><td>73.42</td><td>25.92</td><td>3.52</td><td>4.87</td><td>11.01</td><td>12.22</td><td>0.1950</td><td>70.5%</td></tr><tr><td>FACT [29]</td><td>35.35</td><td>22.11</td><td>5.94</td><td>6.18</td><td>25.29</td><td>21.59</td><td>0.2209</td><td>83.3%</td></tr><tr><td>Bailando [44]</td><td>28.16</td><td>9.62</td><td>7.83</td><td>6.34</td><td>14.91</td><td>13.25</td><td>0.2332</td><td>65.0%</td></tr><tr><td>ours (only dance data)</td><td>23.94</td><td>9.53</td><td>7.69</td><td>4.53</td><td>0.00</td><td>0.00</td><td>0.2127</td><td>-</td></tr><tr><td>ours</td><td>19.01</td><td>20.09</td><td>9.45</td><td>6.36</td><td>0.00</td><td>0.00</td><td>0.2049</td><td>-</td></tr><tr><td rowspan=\"4\">Wild Audio</td><td>FACT [29]</td><td>70.36</td><td>20.23</td><td>7.33</td><td>6.34</td><td>32.64</td><td>27.21</td><td>0.2211</td><td>89.6%</td></tr><tr><td>Bailando [44]</td><td>50.56</td><td>22.55</td><td>3.80</td><td>6.04</td><td>17.55</td><td>14.14</td><td>0.2166</td><td>70.8%</td></tr><tr><td>ours (only dance data)</td><td>43.85</td><td>13.08</td><td>8.52</td><td>4.76</td><td>0.78</td><td>0.76</td><td>0.1998</td><td>-</td></tr><tr><td>ours</td><td>27.65</td><td>20.34</td><td>7.88</td><td>5.27</td><td>0.12</td><td>0.11</td><td>0.2290</td><td>-</td></tr></table>", "bbox": [ 81, 88, 885, 329 ], "page_idx": 6 }, { "type": "table", "img_path": "images/a66234f4fb7b95103ba555b9ff71aa93709a8e7798e72d2c425de91544be1db2.jpg", "table_caption": [ "Table 1: Music Conditioned Dance Generation: quantitative results on AIST++ and Wild Audio test set. The best and runner-up values are bold and underlined, respectively. Among compared methods, \"Li et al.\", DanceNet and FACT are multiplexing the same results of AIST++ benchmark [28], while DanceRevolution [21] is followed from Bailando [44]. $\\dagger$ FID $_k$ and DIV $_k$ are fetched from [29] while FID $_g$ and DIV $_g$ are fetched from [44]." ], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Data</td><td rowspan=\"2\">Method</td><td colspan=\"4\">Motion Prediction Distance</td><td>User Study</td></tr><tr><td>ft=10</td><td>ft=20</td><td>ft=30</td><td>Our Method Wins</td><td></td></tr><tr><td rowspan=\"4\">AIST ++</td><td>GT</td><td>0.048</td><td>0.072</td><td>0.088</td><td>70.0%</td><td></td></tr><tr><td>a2d</td><td>0.052</td><td>0.084</td><td>0.108</td><td>66.6%</td><td></td></tr><tr><td>slerp [43]</td><td>0.088</td><td>0.122</td><td>0.135</td><td>73.3%</td><td></td></tr><tr><td>ours</td><td>0.049</td><td>0.080</td><td>0.102</td><td>-</td><td></td></tr><tr><td rowspan=\"3\">Wild Audio</td><td>a2d</td><td>0.052</td><td>0.088</td><td>0.113</td><td>60.0%</td><td></td></tr><tr><td>slerp [43]</td><td>0.104</td><td>0.148</td><td>0.171</td><td>70.0%</td><td></td></tr><tr><td>ours</td><td>0.048</td><td>0.079</td><td>0.107</td><td>-</td><td></td></tr></table>", "bbox": [ 80, 425, 460, 595 ], "page_idx": 6 }, { "type": "text", "text": "Table 2: Music-text conditioned Dance Generation: quantitative results on AIST++ and wild audio test set. The best and runner-up values are bold and underlined, respectively.", "bbox": [ 75, 607, 468, 654 ], "page_idx": 6 }, { "type": "text", "text": "alistic compared to other methods. Even in comparison to the ground truth, $41.9\\%$ of our generated dance is voted as the better in average. We also report the result trained with dance-only data, which shows comparable performance.", "bbox": [ 75, 686, 468, 747 ], "page_idx": 6 }, { "type": "text", "text": "In addition to the evaluation on the test set of AIST++, we also show the experimental results on our in-the-wild dataset in Table 1. Our method outperforms FACT [29] and Bailando [44] in almost all metrics except for $\\mathrm{FID}_g\\mathrm{Div}_g$ . We can observe that both FACT [29] and Bailando [44] shows a large performance drop in terms of $\\mathrm{FID}_k$ , while ours maintain a small change. This is because FACT [29] and Bailando [44] requires seed motion, however, there is no ground-truth for in-the-wild scenario. With random sampled seed motion or token, their methods are not adapted", "bbox": [ 75, 750, 468, 901 ], "page_idx": 6 }, { "type": "text", "text": "well for the in-the-wild scenarios. One can also notice that there exists freezing in our method on the in-the-wild dataset but the percentage of frozen frames is zero on the test set of AIST++, which results from the different distributions of AIST++ and our dataset. It also shows that our dataset is more challenging. We also report the result trained with dance-only data, which shows the advantage of our mix-training strategy in the wild scenario.", "bbox": [ 496, 428, 892, 549 ], "page_idx": 6 }, { "type": "text", "text": "4.4. Evaluation on Text Conditioned Motion Generation.", "text_level": 1, "bbox": [ 498, 556, 890, 588 ], "page_idx": 6 }, { "type": "text", "text": "We evaluate our text2motion approach in two different scenarios: inference with text only (t2m), and inference with text and music feature fusion. Table 3 shows the results. In the text-only setting, our approach achieves comparable performance with TM2T baseline(T) [17], which demonstrates that the mixed data/tasks training does not affect the quality of text2motion generation. We then apply our late fusion method by randomly sampling a music clip (from the whole AIST++ test set) and a text (from the whole t2m test set), and evaluate the generated dance clips following the same protocol as TM2T [17]. As Table 3 indicates, the text-dance consistency remains acceptable with a late fusion ratio of 0.8. For more details on the relation between the late fusion rate and text2motion result, please refer to the supplementary material.", "bbox": [ 496, 595, 892, 824 ], "page_idx": 6 }, { "type": "text", "text": "4.5. Qualitative Results", "text_level": 1, "bbox": [ 500, 832, 683, 848 ], "page_idx": 6 }, { "type": "text", "text": "We also show the qualitative results of our method for music-text conditioned 3D dance generation in Figure 4, Figure 5 and Figure 6. Specifically, Figure 4 shows the gen", "bbox": [ 498, 854, 892, 902 ], "page_idx": 6 }, { "type": "page_number", "text": "9948", "bbox": [ 482, 944, 514, 955 ], "page_idx": 6 }, { "type": "table", "img_path": "images/f64a580540a6691bd95518814da478e08ff1b6ea7d9dc1d35b6524a0ea33e490.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>Methods</td><td>R Precision↑</td><td>FID↓</td><td>MM Dist↓</td><td>Diversity→MModality↑</td></tr><tr><td>Real motions</td><td>0.511</td><td>0.002</td><td>2.974</td><td>9.503</td></tr><tr><td>Seq2Seq [31]</td><td>0.180</td><td>11.75</td><td>5.529</td><td>6.223</td></tr><tr><td>Language2Pose [4]</td><td>0.246</td><td>11.02</td><td>5.296</td><td>7.676</td></tr><tr><td>Text2Gesture [7]</td><td>0.165</td><td>5.012</td><td>6.030</td><td>6.409</td></tr><tr><td>Hier [13]</td><td>0.301</td><td>6.532</td><td>5.012</td><td>8.332</td></tr><tr><td>MoCoGAN [47]</td><td>0.037</td><td>94.41</td><td>9.643</td><td>0.462</td></tr><tr><td>Dance2Music [25]</td><td>0.033</td><td>66.98</td><td>8.116</td><td>0.725</td></tr><tr><td>TM2T baseline(T) [17]</td><td>0.351</td><td>1.669</td><td>4.046</td><td>9.632</td></tr><tr><td>TM2T [17]</td><td>0.424</td><td>1.501</td><td>3.467</td><td>8.589</td></tr><tr><td>TM2D (t2m)</td><td>0.319</td><td>1.021</td><td>4.098</td><td>9.513</td></tr><tr><td>TM2D (LFR 0.8)</td><td>0.300</td><td>1.105</td><td>4.307</td><td>8.887</td></tr></table>", "bbox": [ 86, 88, 455, 238 ], "page_idx": 7 }, { "type": "text", "text": "Table 3: The evaluation of text2motion on the HumanML3D dataset, where the results are averaged from 20 runs.", "bbox": [ 75, 250, 468, 292 ], "page_idx": 7 }, { "type": "text", "text": "erated 3D dance with the same music sequence but with different text instructions. Figure 5 shows the generated 3D dance with the same text instruction but with a different start time. Figure 6 shows the generated 3D dance with the same text instruction but with different durations. As one can see, our approach maintains plausible visual results according to the text instructions for all three cases, which confirms that our approach is more flexible.", "bbox": [ 75, 321, 467, 441 ], "page_idx": 7 }, { "type": "text", "text": "4.6. The Impact of Mixed Data", "text_level": 1, "bbox": [ 76, 452, 316, 467 ], "page_idx": 7 }, { "type": "text", "text": "We employ two datasets (AIST++ and HumanML3D) to train our 3D human motion VQ-VAE so that the motion tokens drop in the same latent space. To empirically show this point, we conduct experiments to count the number of shared motion tokens. For a trained 3D human motion VQ-VAE with AIST++ and HumanML3D, there are 855 vectors and 912 vectors from codebook used to construct the motion token in AIST++ and HumanML3D. The total number of vectors contained in the codebook is 1024. among them, 846 vectors (98.9% in AIST++ and 92.8% in HumanML3D) are shared to generate the motion tokens, which shows the feasibility of using the separate music-conditioned and text-conditioned motion datasets for music-text conditioned 3D dance generation task. We further verify the latent space of the motions by VQ-VAE, and we perform t-SNE visualizations of the raw motion distribution (before VQ-VAE) and feature distribution encoded by VQ-VAE (after VQ-VAE) from a2d motion and t2m motion in Figure 7. Two motion datasets are mixed successfully, which provides the potential integration of bimodality dance generation. Refer to the supplementary materials for more details.", "bbox": [ 75, 474, 467, 805 ], "page_idx": 7 }, { "type": "text", "text": "4.7. Model Efficiency", "text_level": 1, "bbox": [ 76, 816, 241, 832 ], "page_idx": 7 }, { "type": "text", "text": "We also show the efficiency of our architecture in Table 4. In the inference stage, the complete model parameters and the inference time for 1s music are compared. Our architecture requires only about half model parameters and", "bbox": [ 75, 839, 467, 900 ], "page_idx": 7 }, { "type": "image", "img_path": "images/2da668e43b51e5fe4e3174a4b2d1539cb367aa1c010297da945da99eba7aa647.jpg", "image_caption": [ "Figure 4: Same music, different actions. These two generated dance share the same music and effect range (from 6s to 8s), with different text instructions: \"A person does a cartwheel\" (top), \"A person is spinning with arms spread out\" (bottom)." ], "image_footnote": [], "bbox": [ 506, 92, 883, 229 ], "page_idx": 7 }, { "type": "image", "img_path": "images/d6ed11b5d684d9dc22721a26d539a64cbab1593e3d2d49602d0d348a64e9d5d7.jpg", "image_caption": [ "Figure 5: Same action, different start time points. These two generated dance share the same music and text instruction (\"A person jumps up and down\") but different effect ranges: from 6 to 8s (top), from 7 to 9s (bottom)." ], "image_footnote": [], "bbox": [ 501, 338, 888, 488 ], "page_idx": 7 }, { "type": "image", "img_path": "images/9350bd249e2b5343d504bd69a319079e85b30d72d69ca01a62fb482cabbe418e.jpg", "image_caption": [ "Figure 6: Same action, different durations. These two generated dance share the same music and text instruction (\"A person is keeping jumping\") and action start time point (i.e., 6s) but different effect duration: 2s (top), 3s (bottom, i.e., jumped twice)." ], "image_footnote": [], "bbox": [ 501, 578, 888, 767 ], "page_idx": 7 }, { "type": "text", "text": "inference time compared to Bailando [44], which attributes", "bbox": [ 500, 885, 890, 900 ], "page_idx": 7 }, { "type": "page_number", "text": "9949", "bbox": [ 482, 944, 514, 955 ], "page_idx": 7 }, { "type": "image", "img_path": "images/01431764affd7d7ed49c8fcc7d29d4b6b9db99f838dee551d499ee0e5e534132.jpg", "image_caption": [ "(a) Before VQ-VAE" ], "image_footnote": [], "bbox": [ 106, 113, 263, 204 ], "page_idx": 8 }, { "type": "image", "img_path": "images/bc4989c4236db7c2dc909ea9980d7c3906bb0ab3b3b4fe0f22db1813e69da301.jpg", "image_caption": [ "(b) After VQ-VAE", "Figure 7: The t-SNE visualizations of motions before and after VQ-VAE (orange: motions in AIST++, blue: motions in HumanML3D)." ], "image_footnote": [], "bbox": [ 303, 113, 457, 204 ], "page_idx": 8 }, { "type": "table", "img_path": "images/2c609239249cab11e4fe0994cf3903102fd26be37d2df369bb754062ee98ab57.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>Method</td><td>Parameters</td><td>Inference time</td></tr><tr><td>FACT [29]</td><td>120M</td><td>8.300s/(1s music)</td></tr><tr><td>Bailando [44]</td><td>152M</td><td>0.236s/(1s music)</td></tr><tr><td>ours</td><td>72M</td><td>0.143s/(1s music)</td></tr></table>", "bbox": [ 99, 301, 442, 385 ], "page_idx": 8 }, { "type": "text", "text": "Table 4: Comparisons of parameters and inference time.", "bbox": [ 86, 395, 455, 410 ], "page_idx": 8 }, { "type": "text", "text": "that we do not need to encode separate features for the upper and lower half body. Compared to FACT [29], our architectures significantly reduce the inference time. The main reason is that FACT employs two transformers for the music, dance motion, and a cross-modal transformer, but we formulate it as the standard sequence-to-sequence translation task with one transformer only, which establishes the advantage of our architecture.", "bbox": [ 75, 438, 468, 556 ], "page_idx": 8 }, { "type": "text", "text": "5. Conclusion", "text_level": 1, "bbox": [ 76, 571, 194, 588 ], "page_idx": 8 }, { "type": "text", "text": "In this paper, a novel task that simultaneously integrates both music and text instruction for 3D dance generation is proposed. Due to the lack of the paired 3D dance motions conditioned on both music and text, we resort to two existing datasets, i.e., music2dance and text2motion, to perform this task and employ a 3D human motion VQ-VAE to project the motions of the two datasets into a shared latent space so that the two datasets with different distributions can be effectively mixed for training. Moreover, we also propose a cross-modal transformer architecture to generate 3D dance without degrading the performance of music-conditioned dance generation. Two new evaluation metrics, MPD and FS, are proposed to reflect the quality of generated motion. Extensive experiments show that our method can generate dance motion that matches both music and text in a realistic and coherent way while maintaining comparable performance on two single modalities.", "bbox": [ 75, 598, 468, 853 ], "page_idx": 8 }, { "type": "text", "text": "Acknowledgement. This project is supported by the Ministry of Education Singapore under its Academic Research Fund Tier 2 (Award Number: MOE-T2EP20122-0006),", "bbox": [ 75, 854, 468, 900 ], "page_idx": 8 }, { "type": "text", "text": "and Singapore National Research Foundation (\"CogniVision - Energy-autonomous always-on cognitive and attentive cameras for distributed real-time vision with milliwatt power consumption\" grant NRF-CRP20-2017-0003) - www.green-ic.org/CogniVision.", "bbox": [ 496, 90, 890, 167 ], "page_idx": 8 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 500, 178, 596, 193 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[1] mixamo. https://www MIXamo.com/. Accessed: 2023-03-07. 1", "[2] Hyemin Ahn, Timothy Ha, Yunho Choi, Hwiyeon Yoo, and Songhwai Oh. Text2action: Generative adversarial synthesis from language to action. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pages 5915-5920. IEEE, 2018. 3", "[3] Hyemin Ahn, Jaehun Kim, Kihyun Kim, and Songhwai Oh. Generative autoregressive networks for 3d dancing move synthesis from music. IEEE Robotics and Automation Letters, 5(2):3501-3508, 2020. 2", "[4] Chaitanya Ahuja and Louis-Philippe Morency. Language2pose: Natural language grounded pose forecasting. In 2019 International Conference on 3D Vision (3DV), pages 719-728. IEEE, 2019. 3, 6, 8", "[5] Omid Alemi, Jules Françoise, and Philippe Pasquier. Groovenet: Real-time music-driven dance movement generation using artificial neural networks. In Workshop on Machine Learning for Creativity, 23rd ACM SIGKDD Conference on Knowledge Discovery and Data Mining, volume 8, page 26, 2017. 2", "[6] Nikos Athanasiou, Mathis Petrovich, Michael J. Black, and Gül Varol. Teach: Temporal action compositions for 3d humans. In International Conference on 3D Vision (3DV), 2022. 3", "[7] Uttaran Bhattacharya, Nicholas Rewkowski, Abhishek Banerjee, Pooja Guhan, Aniket Bera, and Dinesh Manocha. Text2gestures: A transformer-based network for generating emotive body gestures for virtual agents. In IEEE Virtual Reality and 3D User Interfaces (VR), pages 1-10. IEEE, 2021. 6, 8", "[8] Hanting Chen, Yunhe Wang, Jianyuan Guo, and Dacheng Tao. VanillaNet: the Power of Minimalism in Deep Learning. arXiv preprint arXiv:2305.12972, 2023. 4", "[9] Kang Chen, Zhipeng Tan, Jin Lei, Song-Hai Zhang, Yuan-Chen Guo, Weidong Zhang, and Shi-Min Hu. Choreomaster: choreography-oriented music-driven dance synthesis. ACM Transactions on Graphics (TOG), 40(4):1-13, 2021. 1, 2", "[10] Rukun Fan, Songhua Xu, and Weidong Geng. Example-based automatic music-driven conventional dance motion synthesis. IEEE transactions on visualization and computer graphics, 18(3):501-515, 2011. 2", "[11] Gongfan Fang, Xinyin Ma, and Xinchao Wang. Structural pruning for diffusion models. arXiv preprint arXiv:2305.10924, 2023. 4", "[12] Joao P Ferreira, Thiago M Coutinho, Thiago L Gomes, José F Neto, and et al. Learning to dance: A graph convolutional adversarial network to generate realistic dance motions from audio. Computers & Graphics, 94:11-21, 2021. 2" ], "bbox": [ 501, 203, 893, 898 ], "page_idx": 8 }, { "type": "page_number", "text": "9950", "bbox": [ 482, 944, 514, 955 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[13] Anindita Ghosh, Noshaba Cheema, Cennet Oguz, Christian Theobalt, and Philipp Slusallek. Synthesis of compositional animations from textual descriptions. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1396–1406, 2021. 3, 6, 8", "[14] Shiry Ginosar, Amir Bar, Gefen Kohavi, Caroline Chan, Andrew Owens, and Jitendra Malik. Learning individual styles of conversational gesture. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3497-3506, 2019. 2", "[15] Xiuye Gu, Tsung-Yi Lin, Weicheng Kuo, and Yin Cui. Open-vocabulary object detection via vision and language knowledge distillation. In International Conference on Learning Representations, 2022. 1", "[16] Chuan Guo, Shihao Zou, Xinxin Zuo, Sen Wang, Wei Ji, Xingyu Li, and Li Cheng. Generating diverse and natural 3d human motions from text. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5152-5161, 2022. 2, 3, 5", "[17] Chuan Guo, Xinxin Zuo, Sen Wang, and Li Cheng. Tm2t: Stochastic and tokenized modeling for the reciprocal generation of 3d human motions and texts. In European Conference on Computer Vision, pages 580-597, 2022. 3, 6, 7, 8", "[18] Chuan Guo, Xinxin Zuo, Sen Wang, Shihao Zou, Qingyao Sun, Annan Deng, Minglun Gong, and Li Cheng. Action2motion: Conditioned generation of 3d human motions. In Proceedings of the 28th ACM International Conference on Multimedia, pages 2021-2029, 2020. 2", "[19] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in neural information processing systems, volume 30, 2017. 6", "[20] Duc N.M. Hoang, Shiwei Liu, Radu Marculescu, and Zhangyang Wang. Revisiting pruning at initialization through the lens of ramanujan graph. In International Conference on Learning Representations, 2023. 4", "[21] Ruozhi Huang, Huang Hu, Wei Wu, Kei Sawada, Mi Zhang, and Daxin Jiang. Dance revolution: Long-term dance generation with music via curriculum learning. In International Conference on Learning Representations, 2021. 6, 7", "[22] Yanghua Jin, Jiakai Zhang, Minjun Li, Yingtao Tian, Huachun Zhu, and Zhihao Fang. Towards the automatic anime characters creation with generative adversarial networks. arXiv preprint arXiv:1708.05509, 2017. 4", "[23] Hsuan-Kai Kao and Li Su. Temporally guided music-to-body-movement generation. In Proceedings of the 28th ACM International Conference on Multimedia, pages 147-155, 2020. 2", "[24] Kosmas Kritsis, Aggelos Gkiokas, Aggelos Pikrakis, and Vassilis Katsouros. Danceconv: Dance motion generation with convolutional networks. IEEE Access, 10:44982-45000, 2022. 2", "[25] Hsin-Ying Lee, Xiaodong Yang, Ming-Yu Liu, Ting-Chun Wang, Yu-Ding Lu, Ming-Hsuan Yang, and Jan Kautz. Dancing to music. Advances in neural information processing systems, 32, 2019. 1, 2, 6, 8" ], "bbox": [ 78, 90, 468, 900 ], "page_idx": 9 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[26] Juheon Lee, Seohyun Kim, and Kyogu Lee. Listen to dance: Music-driven choreography generation using autoregressive encoder-decoder network. arXiv preprint arXiv:1811.00818, 2018. 2", "[27] Buyu Li, Yongchi Zhao, Shi Zhelun, and Lu Sheng. Danceformer: Music conditioned 3d dance generation with parametric motion transformer. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 1272-1279, 2022. 2", "[28] Jiaman Li, Yihang Yin, Hang Chu, Yi Zhou, Tingwu Wang, Sanja Fidler, and Hao Li. Learning to generate diverse dance motions with transformer. arXiv preprint arXiv:2008.08171, 2020. 2, 6, 7", "[29] Ruilong Li, Shan Yang, David A Ross, and Angjoo Kanazawa. Ai choreographer: Music conditioned 3d dance generation with aist++. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 13401-13412, 2021. 1, 2, 5, 6, 7, 9", "[30] Dongze Lian, Daquan Zhou, Jiashi Feng, and Xinchao Wang. Scaling & shifting your features: A new baseline for efficient model tuning. In Advances in Neural Information Processing Systems (NeurIPS), 2022. 4", "[31] Angela S. Lin, Lemeng Wu, Rodolfo Corona, Kevin W. H. Tai, Qixing Huang, and Raymond J. Mooney. Generating animated videos of human activities from natural language descriptions. 2018. 3, 6, 8", "[32] Xinyin Ma, Gongfan Fang, and Xinchao Wang. LLM-Pruner: On the Structural Pruning of Large Language Models. arXiv preprint arXiv:2305.11627, 2023. 4", "[33] Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 1532-1543, 2014. 4", "[34] Mathis Petrovich, Michael J Black, and Gül Varol. Action-conditioned 3d human motion synthesis with transformer vae. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10985-10995, 2021. 2, 3", "[35] Mathis Petrovich, Michael J Black, and Gül Varol. Temos: Generating diverse human motions from textual descriptions. In European Conference on Computer Vision, page 480-497, 2022. 3", "[36] Matthias Plappert, Christian Mandery, and Tamim Asfour. The kit motion-language dataset. *Big data*, 4(4):236-252, 2016. 2", "[37] Matthias Plappert, Christian Mandery, and Tamim Asfour. Learning a bidirectional mapping between human whole-body motion and natural language using deep recurrent neural networks. Robotics and Autonomous Systems, 109:13-26, 2018. 3", "[38] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748-8763. PMLR, 2021. 1" ], "bbox": [ 501, 92, 890, 900 ], "page_idx": 9 }, { "type": "page_number", "text": "9951", "bbox": [ 482, 945, 513, 955 ], "page_idx": 9 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[39] Sucheng Ren, Xingyi Yang, Songhua Liu, and Xinchao Wang. SG-Former: Self-guided Transformer with Evolving Token Reallocation. In IEEE International Conference on Computer Vision, 2023. 4", "[40] Sucheng Ren, Daquan Zhou, Shengfeng He, Jiashi Feng, and Xinchao Wang. Shunted Self-Attention via Multi-Scale Token Aggregation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. 4", "[41] Xuanchi Ren, Haoran Li, Zijian Huang, and Qifeng Chen. Self-supervised dance video synthesis conditioned on music. In Proceedings of the 28th ACM International Conference on Multimedia, pages 46-54, 2020. 2", "[42] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10684-10695, 2022. 1", "[43] Ken Shoemake. Animating rotation with quaternion curves. In Proceedings of the 12th annual conference on Computer graphics and interactive techniques, pages 245-254, 1985. 5, 6, 7", "[44] Li Siyao, Weijiang Yu, Tianpei Gu, Chunze Lin, Quan Wang, Chen Qian, Chen Change Loy, and Ziwei Liu. Bailando: 3d dance generation by actor-critic gpt with choreographic memory. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11050-11059, 2022. 1, 2, 4, 6, 7, 8, 9", "[45] Guofei Sun, Yongkang Wong, Zhiyong Cheng, Mohan S Kankanhalli, Weidong Geng, and Xiangdong Li. Deepdance: music-to-dance motion choreography with adversarial learning. IEEE Transactions on Multimedia, 23:497-509, 2020. 2", "[46] Taoran Tang, Jia Jia, and Hanyang Mao. Dance with melody: An LSTM-autoencoder approach to music-oriented dance synthesis. In Proceedings of the 26th ACM international conference on Multimedia, pages 1598-1606, 2018. 2", "[47] Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. Mocogan: Decomposing motion and content for video generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1526-1535, 2018. 6, 8", "[48] Aaron Van Den Oord, Oriol Vinyals, et al. Neural discrete representation learning. Advances in neural information processing systems, 30, 2017. 4", "[49] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. 4", "[50] Jiarui Xu, Shalini De Mello, Sifei Liu, Wonmin Byeon, Thomas Breuel, Jan Kautz, and Xiaolong Wang. Groupvit: Semantic segmentation emerges from text supervision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18134-18144, 2022. 1", "[51] Nelson Yalta, Shinji Watanabe, Kazuhiro Nakadai, and Tetsuya Ogata. Weakly-supervised deep recurrent neural networks for basic dance step generation. In 2019 International Joint Conference on Neural Networks (IJCNN), pages 1-8. IEEE, 2019. 2" ], "bbox": [ 78, 90, 468, 898 ], "page_idx": 10 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[52] Tatsuro Yamada, Hiroyuki Matsunaga, and Tetsuya Ogata. Paired recurrent autoencoders for bidirectional translation between robot actions and linguistic descriptions. IEEE Robotics and Automation Letters, 3(4):3441-3448, 2018. 3", "[53] Xingyi Yang, Daquan Zhou, Songhua Liu, Jingwen Ye, and Xinchao Wang. Deep model reassembly. In Advances in neural information processing systems, 2022. 4", "[54] Zijie Ye, Haozhe Wu, Jia Jia, Yaohua Bu, Wei Chen, Fanbo Meng, and Yanfeng Wang. Choreonet: Towards music to dance synthesis with choreographic action unit. In Proceedings of the 28th ACM International Conference on Multimedia, pages 744-752, 2020. 2", "[55] Weihao Yu, Chenyang Si, Pan Zhou, Mi Luo, Yichen Zhou, Jiashi Feng, Shuicheng Yan, and Xinchao Wang. Metaformer Baselines for Vision. arXiv preprint arXiv:2210.13452, 2022.4", "[56] Ye Yuan and Kris Kitani. Dlow: Diversifying latent flows for diverse human motion prediction. In European Conference on Computer Vision, pages 346-364. Springer, 2020. 6", "[57] Wenlin Zhuang, Congyi Wang, Jinxiang Chai, Yangang Wang, Ming Shao, and Siyu Xia. Music2dance: Dancenet for music-driven dance generation. ACM Transactions on Multimedia Computing, Communications, and Applications (TOMM), 18(2):1-21, 2022. 2, 6, 7", "[58] Wenlin Zhuang, Yangang Wang, Joseph Robinson, Congyi Wang, Ming Shao, Yun Fu, and Siyu Xia. Towards 3d dance motion synthesis and control. arXiv preprint arXiv:2006.05743, 2020. 2" ], "bbox": [ 501, 92, 890, 486 ], "page_idx": 10 }, { "type": "page_number", "text": "9952", "bbox": [ 482, 944, 514, 955 ], "page_idx": 10 }]123version https://git-lfs.github.com/spec/v1oid sha256:dd5b131d713359626f2b94656dc4781fcaf6a16e14d0ff7facef3f42c7beb400size 2420335123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309# TM2D: Bimodality Driven 3D Dance Generation via Music-Text Integration
Kehong Gong<sup>1*</sup> Zihang Jiang<sup>1</sup>
Dongze Lian $^{1*}$ Xinxin Zuo $^{2}$
$^{1}$ National University of Singapore
Heng Chang $^{2}$ Michael Bi Mi $^{2}$
Chuan Guo² Xinchao Wang¹†
$^{2}$ Huawei Technologies Co., Ltd.
 Figure 1: Generated 3D dance examples conditioned music and text with our method. Given an audio input and text input with a specific starting time and duration, our method is able to generate a sequence of dance motions that fit the music and text instruction. The character is from Mixamo [1].
# Abstract
We propose a novel task for generating 3D dance movements that simultaneously incorporate both text and music modalities. Unlike existing works that generate dance movements using a single modality such as music, our goal is to produce richer dance movements guided by the instructive information provided by the text. However, the lack of paired motion data with both music and text modalities limits the ability to generate dance movements that integrate both. To alleviate this challenge, we propose to utilize a 3D human motion VQ-VAE to project the motions of the two datasets into a latent space consisting of quantized vectors, which effectively mix the motion tokens from the two datasets with different distributions for training. Additionally, we propose a cross-modal transformer to integrate text instructions into motion generation architecture for generating 3D dance movements without degrading the performance of music-conditioned dance generation. To better evaluate the quality of the generated motion, we introduce two novel metrics, namely Motion Prediction Distance (MPD) and Freezing Score (FS), to measure the coherence and freezing percentage of the generated motion. Extensive experiments show that our approach can gener
ate realistic and coherent dance movements conditioned on both text and music while maintaining comparable performance with the two single modalities. Code is available at https://garfield-kh.github.io/TM2D/.
# 1. Introduction
The music-conditioned dance generation has become a topic of great interest in recent years. The ability to generate dance movements that are synchronized with music has numerous applications, such as behavior understanding, simulation, and benefiting the community of dancers and musicians [25, 9, 29, 44]. Although music has been used as a guidance to generate dance movements, another important modality cue, text (or language), which provides richer actions and more flexible motion guidance, and is studied in other tasks such as image classification [38], detection [15], segmentation [50], and text-driven image generation [42], has not been fully explored in dance generation. To this end, we first propose a novel task for generating 3D dance movements that simultaneously incorporate both text and music modalities, enabling the generated human to perform rich dancing movements in accordance with the music and text.
Designing a system pipeline for this bimodality driven 3D dance generation task is non-trivial. There exist two
significant challenges to be considered: i) the existing datasets only cater to either music-driven (music2dance) [46, 5, 57, 29] or text-driven (text2motion) [36, 16] human motion generation, and no paired 3D dance generation dataset exists that takes into account both music and text. While building a new large-scale paired 3D dance dataset based on music and text is possible, it is time-consuming with fully annotated 3D human motion [29]; ii) the integration of text into music-conditioned dance generation requires a suitable architecture. However, existing methods that use music as a driving force to generate dance movements might result in temporal-freezing frames or fail to generalize to in-the-wild scenarios [29, 44]. Therefore, simple integration of text into the existing music-conditioned architecture might pose a risk of degraded dance generation quality in our new task.
To address the first challenge, we take advantage of existing music-dance and text-motion datasets for this new task. However, directly mixing motions from these two datasets would result in inferior performance since the motions from these two datasets are in completely different motion spaces. To overcome this, we propose to utilize a VQ-VAE architecture to project the motions into a consistent and shared latent space. In particular, we build up a shared codebook for all the motions from the training set, and motions from both datasets are now represented as discrete tokens that are implicitly constrained to fall into a shared latent space. For the second challenge, we propose to utilize a cross-modal transformer architecture that formulates both music2dance and text2motion as sequence-to-sequence translation tasks. This architecture directly translates audio and text features into motion tokens and enables bimodality driven ability by introducing a fusion strategy in the latent space with a shared motion decoder for both tasks. With the shared decoder, audio and text information can be efficiently fused during inference. Our entire cross-modal transformer architecture is both effective and efficient, allowing for the integration of text instructions to generate coherent 3D dance motions, as illustrated in Figure 1.
To better evaluate the coherence of generated dance in our task, we propose a new evaluation metric, Motion Prediction Distance (MPD), which measures the distance between the predicted motion and the ground truth at the time of integrating text, thereby providing a more accurate evaluation of the coherence of frames. Additionally, we introduce a Freezing Score (FS) that quantifies the percentage of temporal freezing frames in dance generation, which is a common problem in music-conditioned dance generation. To better evaluate the performance of our method in real-world scenarios, we also collect some in-the-wild music data for evaluation. Our method successfully performs dance generation based on both text and music while maintaining comparable performance on the single modal-
ity tasks (music2dance, text2motion) compared to other state-of-the-art methods.
In summary, our contributions are as follows: i) We propose an interesting task of utilizing both music and text for 3D dance generation and propose a pipeline named TM2D (Text-Music to Dance) for this task. ii) Rather than collecting a new training set, we effectively combine the existing music2dance and text2motion datasets and employ a VQ-VAE framework to encode motions from all training sets to a shared feature space. iii) We propose a cross-modal transformer as well as a bimodal feature fusion strategy to encode both audio and text features, which is both effective and efficient. iv) We propose two new metrics, MPD and FS, which efficiently reflect the quality of generated motion. v) We successfully generate realistic and coherent dance based on both music and text instructions while maintaining comparable performance on the single modality tasks (music2dance, text2motion).
# 2. Related Work
# 2.1. Music to Dance
Music2Dance is typically divided into 2D and 3D dance generation and has been explored for many years. Recent methods model 3D dance generation from the perspective of network architecture. For instance, Lee et al. [26] explore the convolutional neural network in casual dilated setting. Lee et al. [25] propose a dance unit with Variational Auto-Encoder (VAE). Ren et al. [41] employ recurrent neural network (RNN) and the graph convolution network is introduced in [12]. As for the 3D dance generation, [54, 3, 24] implement convolutional neural network, [45, 14] apply adversarial learning in generated dance. [5, 46, 51, 58, 23] implement Long short-term memory (LSTM), and [9] implement motion graph with learned music/dance embedding through matching approach [10]. More recently, transformer has been applied in dance generation [28, 29, 44, 27]. However, the previous methods usually produce temporal freezing frames when generating the long sequences, or are difficult to generalize to in-the-wild music, thereby not satisfiable when directly used for bimodal driven 3D dance generation. In this paper, we design a cross modal transformer which is effective and efficient to integrate text instruction to generate the 3D dance.
# 2.2. Text to Motion
In addition to music-driven motion generation, text is also utilized as instructions to generate motions. Text2motion can be categorized into action label based motion generation and language description based motion generation. The action label based methods [18, 34] generate motion conditioned on action labels. Action2Motion [18] implement a GRU-VAE to iteratively generate the next
 Figure 2: Our proposed pipeline for music-text conditioned 3D dance generation. Three stages from left to right: 3D human motion VQ-VAE, training stage of the cross-modal transformer, and inference stage of our pipeline. In the first stage, a VQ-VAE is trained with both motions from music2dance and text2motion data, which is then used to tokenize all motions. In the second stage, a dual path cross-modal transformer is employed for sequence2sequence translation tasks (i.e., audio to motion tokens, text to motion tokens), with a shared motion decoder. In the third stage, given audio and text inputs, the audio and text encoders first extract the corresponding features, which are then fused (late fusion) in the motion decoder to generate dance condition on both music and text.


frame based on the action label and previous frames. ACTOR [34] implements a transformer-VAE to encode and decode the whole pose sequence in one-shot. Since the action label based methods are restricted in a small set of action labels, language description based methods are proposed for more flexible motion generation. [37, 31, 2, 16, 17] formulate the text-to-motion task as a machine translation problem, others [52, 4, 13, 35] learns a joint embedding space of text and motion. Among them, [37, 31, 2, 52, 4, 13] use RNN encoder-decoder to learn the mapping between text and motion. [17, 16] use transformer encoder with RNN decoder, and TM2T [17] further introduces motion to text as an inverse alignment for text to motion. TEMOS [35] and TEACH [6] use transformer for both encoder and decoder for one-shot generation. Different from these text2motion methods, we focus on how to integrate two modalities (i.e., music and text) together for 3D dance generation.
# 3. Method
# 3.1. System Pipeline
The overall pipeline is shown in Figure 2, which consists of three stages. The first stage employs a 3D human motion
VQ-VAE to encode both the motions of the music2dance and text2motion datasets to a shared codebook encoded by multiple vectors such that each dance motion can be represented as a discrete motion token. After that, the combinations of music, text, and motion token are fed into a cross-modal transformer for training, which effectively learn how to predict a sequential motion tokens according to the previous those as well as music and text. In the third stage, a random starting motion token is generated and inputted to the cross-modal transformer with the given music and text for the sequential motion token prediction, which will be decoded by the pre-trained 3D human motion VQ-VAE in the first stage to generate 3D dance.
# 3.2. 3D Human Motion VQ-VAE
Since there are no paired 3D dance motions conditioned on both music and text, we try to tackle our task with the existing music2dance and text2motion datasets. Instead of directly mixing the motions from both datasets for training, we employ a VQ-VAE to project the motions into a consistent and shared latent space, which is represented with a codebook, as illustrated in Figure 2. To be specific, given a 3D human motion $M \in \mathbb{R}^{T \times d_m}$ , where $T$ is the time length
and $d_{m}$ is the dimension of the human motion, an encoder of VQ-VAE that consists of several 1-D convolutional layers projects $M$ to a latent vector $z\in \mathbb{R}^{T^{\prime}\times d}$ , where $T^{\prime} = \frac{T}{t}$ and $t$ is the time interval for downsampling and $d$ is the dimension of the latent vector. A learnable codebook $e\in \mathbb{R}^{K\times d}$ describes all latent variable features of the whole dataset, where $K$ and $d$ are the length and dimension of the codebook, respectively. A quantized latent vector $z_{q}\in \mathbb{R}^{T^{\prime}\times d}$ will record the closest vector from codebook $e$ as follows
$$z _ {q, i} = \arg \min _ {e _ {j} \in e} \| z _ {i} - e _ {j} \| \in \mathbb {R} ^ {d}, \tag {1}$$
and the motion token $t_m \in \mathbb{R}^{T' \times 1}$ stores the index of the closest vector
$$t _ {m, i} = \arg \min _ {j} \| z _ {i} - e _ {j} \| \in \mathbb {R} ^ {1}. \tag {2}$$
The quantized $z_{q}$ will be decoded with stacked convolutional layers to reconstruct the human motion $\hat{M}$ , and $t_{m}$ will be used in the training stage of the cross-modal transformer.
For the training of 3D human motion VQ-VAE, we follow the strategy in [48] and the total loss contains a reconstruction loss for human motion regression, a codebook loss for the dictionary learning, and a commitment loss to stabilize the training process:
$$\mathcal {L} _ {v q} = \| \hat {M} - M \| _ {1} + \| \operatorname {s g} [ e ] - e _ {q} \| _ {2} ^ {2} + \beta \| e - \operatorname {s g} [ e _ {q} ] \| _ {2} ^ {2}, \tag {3}$$
where $\mathrm{sg}[\cdot ]$ is 'stop gradient' and $\beta$ is the factor term to adjust the weight of the commitment loss. A straight-through estimator is also employed to pass the gradient from the decoder to the encoder in back-propagation.
As we will show in Sec. 4, the motion tokens from both datasets encoded by 3D human motion VQ-VAE fall almost in the shared latent space, which shows the feasibility of using the separate music-conditioned and text-conditioned motion datasets for music-text conditioned 3D dance generation task.
# 3.3. Cross-modal Transformer
The cross-modal transformer contains an audio encoder, a text encoder, and a motion decoder. Since we use two separate datasets for our task, the cross-modal transformer is divided into two branches, where one for music2dance and the other for text2motion. It takes the audio feature, the text feature, and the motion token $t_m$ encoded by 3D human motion VQ-VAE as inputs, and performs the sequence-to-sequence translation task to generate the future motion tokens.
Attention. Attention is introduced in Transformer [49] for natural language processing, and then applied to many domains [30, 8, 20, 39, 11, 53, 32, 55, 40] A $L$ -layer transformer typically consists of $L$ transformer blocks, which
contains a multi-head self-attention (MSA) and a feed forward network (FFN). Given the input $x \in \mathbb{R}^{N \times c}$ , where $N$ is the sequence length and $c$ is the dimension of the input, the transformer block first maps it to keys $K \in \mathbb{R}^{N \times c}$ , queries $Q \in \mathbb{R}^{N \times c}$ , values $V \in \mathbb{R}^{N \times c}$ with the linear projections, and then a self-attention operation is performed by
$$\operatorname {A t t e n t i o n} (Q, K, V) = \operatorname {S o f t m a x} \left(\frac {Q K ^ {T}}{\sqrt {c}}\right) V. \tag {4}$$
The output is followed by a normalization layer and a FFN. Audio encoder. Given a sequence of music, the audio encoder first extracts the raw audio features following Bailando [44], where a public audio processing toolbox, Librosa [22], is employed to obtain the mel frequency cepstral coefficients (MFCC), MFCC delta, constant- $Q$ chromagram, tempogram and onset strength. After that, an embedded layer followed by several transformer blocks containing self-attention operation e.g., Eq. (4), is used to generate the processed audio features $f_{a}\in \mathbb{R}^{T^{\prime}\times d}$
Text encoder. Given a text instruction, we first extract the text token with a GloVe [33], and then an embedded layer followed by several transformer blocks is performed to obtain a processed text feature $f_{t} \in \mathbb{R}^{n \times d}$ , where $n$ is the length of the text feature.
Motion decoder. Motion decoder takes the motion tokens encoded by the 3D human motion VQ-VAE as inputs and outputs the future motion tokens, which has the same spirit as the sequence-to-sequence translation task. Since the information after time $t$ is unknown at moment $t$ , a masked MSA is first employed to interact with motions at different times. The mask has the shape of a simple upper triangular matrix and is performed in Eq. (4). For the moment $t$ , only the motions before moment $t$ are able to perform self-attention operations. Motion decoder also maps the extracted audio feature $f_{a}$ and text feature $f_{t}$ via audio encoder and text encoder to $K$ and $Q$ , to perform cross-modal attention with motion tokens. To enable the music-text conditional dance generation, (i.e., feature fusion, we apply shared parameters), we use the motion decoder with shared parameters for model efficiency, as shown in Figure 2.
# 3.4. Details of Music-text Fusion
The detailed architecture is listed in Figure 3. Given the audio feature and text feature, the motion decoder first processes the past motion tokens with a self-attention layer followed by addition, normalization, a cross-attention with audio and text features separately, addition, normalization, and a feed-forward layer are performed. Such a procedure is repeated $L$ ( $L = 6$ ) times to build a typical $L$ -layer transformer. Then we adopt a late fusion strategy to perform a weighted sum of features of audio and text at a specific time (i.e., effect range). The weight curve is shown in Figure 3,
 Figure 3: Details of music-text feature fusion: Given the audio and text features from the encoder, the decoder processes them separately in the early layers. Then the audiotext fusion layer is applied by the weighted sum at the effect range with weight cure. Finally, a linear projection layer and a softmax operation are applied to predict the music-text conditioned motion tokens.

where we slightly increase the weight of the text feature by a half cosine curve until a peak value of 0.8 at the beginning (20% time of effect range), and decrease it by a half cosine curve at the end (20% time of effect range). The weight of audio feature $W_{audio}$ is 1 - $W_{text}$ to ensure the feature keeps the same scale. With the fused feature, a linear projection layer and a softmax operation are applied to predict the music-text conditioned motion tokens, which are then decoded by the decoder of human motion VQ-VAE to obtain the music-text conditioned 3D dance sequences.
# 3.5. Training and Inference
Training. To train the 3D human motion VQ-VAE, we crop 64 frames with a sliding window from the original motion sequences as inputs, i.e., $T = 64$ , for both music2dance and text2motion datasets. We use a three-layer encoder and decoder so that the time interval of downsampling $t$ is 8. We randomly sample motions from both datasets and employ the Adam optimizer with a batch size of 128 and a learning rate of $1e^{-4}$ to optimizer our 3D human motion VQ-VAE.
To train the cross-modal transformer, we split two branches into two streams to train the music2dance and text2motion tasks on both datasets. For the music2dance task, we use the same frequency as the motion token to sample the music vector so that the music feature has the same time length as the motion token. We perform the sequence to sequence translation with the motion decoder to obtain the prediction of motion tokens conditioned by the music input. As for the text2motion task, since the text and motion token have different lengths, we use a maximum text length
of 84 for text2motion translation with a padding strategy. We employ 6 self-attention layers for the audio encoder, text encoder, and motion decoder with the hidden dimension of 512 and 8 heads. The cross entropy loss is adopted for both music2dance and text2motion tasks
$$\mathcal {L} _ {c l s} = - \frac {1}{m} \sum_ {i = 0} ^ {m - 1} \sum_ {j = 0} ^ {C - 1} y _ {i j} \log y _ {\hat {i j}}, \tag {5}$$
where $\hat{y}$ is the prediction of motion token and $y$ is the ground-truth. $m$ is the length of motion tokens and $C$ is the number of classes of motion tokens, i.e., the length of codebook of 3D human motion VQ-VAE. Both tasks are simultaneously optimized with a batch size of 64 and a learning rate of $1e^{-4}$ .
Inference. Our aim is to generate 3D dance with music-text integration. Therefore, at the inference stage, we first fuse the music feature and text feature extracted by the audio encoder and text encoder with a weighted sum. Specifically, given an audio feature with a time length of $T'$ and a text feature with the length of $n$ , we first feed them into the motion decoder for future motion token prediction. Then we adopt the late fusion strategy to have a weighted sum of the generated motion tokens from both audio and text features at the duration of the integrated text, followed by a linear projection layer and a softmax operation, to obtain the combined motion tokens. Finally, the combined motion tokens are decoded into a 3D dance sequence after going through the decoder of our 3D human motion VQ-VAE model.
# 4. Experiments
# 4.1. Experimental Settings
Datasets. Since there are no paired 3D dance motions conditioned on both music and text for our task, we combine the existing music2dance and text2motion datasets. For the music2dance dataset, we employ the AIST++ dataset [29]. For the text2motion dataset, we employ the HumanML3D [16] dataset. Additionally, we also collect a new in-the-wild music dataset to evaluate the generalization ability of our method, which contains 82 wild music clips from Youtube. The total of 53 minutes duration (8x larger size than the AIST++ test set) and various styles and content of music, which faithfully lies out of the distribution of AIST++ (explained in supplementary material). The evaluation on our dataset better reflects the generalization ability of the models in real-world scenarios.
Baselines. Since we are the first to propose this bimodality driven 3D dance generation task, there are no existing methods for comparisons. We implement a traditional motion editing algorithm, slerp [43], which aligns the last generated frame of the dance with the first frame of the motion by text with a transition window of 10 frames, and
applies spherical interpolation of quaternion to fill in the transition in between. To validate the effectiveness of our method on music2dance task, we compare our method to the previous music2dance works [28, 57, 21, 29, 44]. To validate the effectiveness of our method on text2motion task, we compare our method to the previous text2motion works [31, 4, 7, 13, 47, 25, 17].
Evaluation metrics. We adopt the same evaluation settings as suggested by FACT [29] and Bailando [44] to evaluate the dance generation quality, including Fréchet Inception Distances (FID) [19], Diversity, and Beat Align Score. For the text2motion quality, we adopt the same evaluation settings as suggested by TM2T [17], including R-precision, Multimodal-Dist, FID, Diversity, and MultiModality.
In addition, we also propose two new evaluation metrics, Motion Prediction Distance (MPD) and Freezing Score. The former reflects the coherence of frames at the time of integrating text, and the latter reacts to the percentage of temporal freezing frames in the generated dance. For the Freezing Score, we introduce the Percentage of Freezing Frame (PFF) and $\mathrm{AUC}_f$ , where the PFF is defined by measuring the percentage of frozen frames with two criteria: 1) the maximum joint velocity blew a threshold $(0.015\mathrm{m / s})$ . 2) its duration exceeds a certain period (3s). The $\mathrm{AUC}_f$ is defined by area under curve of PFF in the threshold range from 0 to 0.03. As for MPD, it is defined as
$$\mathrm {M P D} = \min _ {i} \| f _ {i} \left(M _ {t _ {0} \rightarrow t _ {1}}\right) - M _ {t _ {1} \rightarrow t _ {2}} \| _ {2}, \tag {6}$$
where $M$ is the dance motions, $f$ is a motion prediction model, $f_{i}(M_{t_{0}\rightarrow t_{1}})$ is the i-th predicted possible future motion, and $t_0$ , $t_1$ , and $t_2$ are the timestamps. It means that the model predicts various potential possible motion from $t_1$ to $t_2$ with the motion from $t_0$ to $t_1$ . If this distance is small (i.e., the generated dance $M_{t_1\to t_2}$ lays in the possible future), then the generated dance motion $M_{t_1\to t_2}$ is more coherent at the time of integrating text. We adopt the motion prediction model DLow [56] in this evaluation metric as it is designed for diverse potential furture motion prediction.
Perceptual Evaluation. Besides the above metric measuring, we also conduct extensive user studies on Amazon Mechanical Turk (AMT) to perceptually evaluate the visual effects of our generated 3D dance results. Particularly, given each pair of dance movements sampled from our method and others with the same music clip, we request 3 distinct users on AMT to present their preference regarding the music-dance alignment, motion realism, and mobility. We further set the bar of involved users that only the ones with Master recognition who also have finished more than 1,000 tasks with over $98\%$ approve rate are considered. Overall, there are 55 users employed in our user studies that come from various regions, ages, races and gender. The results of the user study are more representative to show the effect of
the generated dance in practice.
# 4.2. Evaluation on Music-text Conditioned Dance Generation
We validate the results of music-text conditioned dance generation on the test set of AIST++ and our dataset, as illustrated in Table 2. Here we mainly evaluate the coherence of generated dance with MPD metric at the time where music meets text, i.e., the time point where text starts to take effect. We measure the coherence of pure music2dance generation as a baseline named a2d to reflect the influence of with/without text instruction. We use the past 25 motion frames to predict the future 30 frames, and calculate the MPD from future frame (ft) = 10 to ft = 30, respectively. Our method consistently outperforms slerp [43] and a2d baseline in both datasets, and gains a similar result compared to the ground-truth shown in Table 2, which verifies the naturalness of our generated motion. More importantly, user study experiments show that our method generates more realistic 3D dance compared to dance generation only conditioned music, and $70.0\%$ Win rate even compared to the ground-truth shown in Table 2. The results of our user study indicate that the music-text conditioned dance generation received high ratings from participants, highlighting the importance of considering audience preferences in evaluating dance quality.
# 4.3. Evaluation on Music Conditioned Dance Generation
To validate the effectiveness of our architecture, we quantitatively compare our method with state-of-the-art those for music conditioned 3D dance generation. The results on the test set of AIST++ are shown in Table 1. We can find that our method outperforms the previous ones in terms of motion diversity $(\mathrm{Div}_k$ and $\mathrm{Div}_g)$ , while the performance of the motion quality $(\mathrm{FID}_g)$ and beat align score is inferior under the condition that we do not use seed motion from ground-truth compared with FACT [29] and Bailando [44].
The existing evaluation metrics are not sufficient to reflect the quality of generated dance in practice, which motivates us to propose a PFF and $\mathrm{AUC}_f$ to evaluate the percentage of freezing frames. It is worth noting that our architecture outperforms FACT [29] and Bailando [44] in terms of PFF and $\mathrm{AUC}_f$ , which shows that our method rarely generates frozen frames. Meanwhile, Li et al. [28] and DanceNet [57] also gain nearly zero freezing in PFF and $\mathrm{AUC}_f$ . The reason is that the generated dances of Li et al. [28] are highly jittery making its velocity variation extremely high, which is also reported in [29, 44], and leads to the non-freezing issue. And for DanceNet [57], it generates dance in a repeat motion pattern, nearly zero freezing but with low diversity. Furthermore, the results of user study show that the generated 3D dance is more visually re
<table><tr><td rowspan="2">Data</td><td rowspan="2">Method</td><td colspan="2">Motion Quality</td><td colspan="2">Motion Diversity</td><td colspan="2">Freezing</td><td rowspan="2">Beat Align Score ↑</td><td>User Study</td></tr><tr><td>FIDk ↓</td><td>FIDg ↑</td><td>Divk ↑</td><td>Divg ↑</td><td>PFF↓</td><td>AUCf ↓</td><td>Our Method Wins</td></tr><tr><td rowspan="8">AIST ++</td><td>Ground-truth</td><td>17.10</td><td>10.60</td><td>8.19</td><td>7.45</td><td>0.00</td><td>0.00</td><td>0.2374</td><td>41.9%</td></tr><tr><td>Li et al. [28]</td><td>86.43</td><td>43.46</td><td>6.85*</td><td>3.32</td><td>0.00</td><td>0.00</td><td>0.1607</td><td>98.3%</td></tr><tr><td>DanceNet [57]</td><td>69.18</td><td>25.49</td><td>2.86</td><td>2.85</td><td>0.00</td><td>0.98</td><td>0.1430</td><td>87.2%</td></tr><tr><td>DanceRevolution [21]</td><td>73.42</td><td>25.92</td><td>3.52</td><td>4.87</td><td>11.01</td><td>12.22</td><td>0.1950</td><td>70.5%</td></tr><tr><td>FACT [29]</td><td>35.35</td><td>22.11</td><td>5.94</td><td>6.18</td><td>25.29</td><td>21.59</td><td>0.2209</td><td>83.3%</td></tr><tr><td>Bailando [44]</td><td>28.16</td><td>9.62</td><td>7.83</td><td>6.34</td><td>14.91</td><td>13.25</td><td>0.2332</td><td>65.0%</td></tr><tr><td>ours (only dance data)</td><td>23.94</td><td>9.53</td><td>7.69</td><td>4.53</td><td>0.00</td><td>0.00</td><td>0.2127</td><td>-</td></tr><tr><td>ours</td><td>19.01</td><td>20.09</td><td>9.45</td><td>6.36</td><td>0.00</td><td>0.00</td><td>0.2049</td><td>-</td></tr><tr><td rowspan="4">Wild Audio</td><td>FACT [29]</td><td>70.36</td><td>20.23</td><td>7.33</td><td>6.34</td><td>32.64</td><td>27.21</td><td>0.2211</td><td>89.6%</td></tr><tr><td>Bailando [44]</td><td>50.56</td><td>22.55</td><td>3.80</td><td>6.04</td><td>17.55</td><td>14.14</td><td>0.2166</td><td>70.8%</td></tr><tr><td>ours (only dance data)</td><td>43.85</td><td>13.08</td><td>8.52</td><td>4.76</td><td>0.78</td><td>0.76</td><td>0.1998</td><td>-</td></tr><tr><td>ours</td><td>27.65</td><td>20.34</td><td>7.88</td><td>5.27</td><td>0.12</td><td>0.11</td><td>0.2290</td><td>-</td></tr></table>
Table 1: Music Conditioned Dance Generation: quantitative results on AIST++ and Wild Audio test set. The best and runner-up values are bold and underlined, respectively. Among compared methods, "Li et al.", DanceNet and FACT are multiplexing the same results of AIST++ benchmark [28], while DanceRevolution [21] is followed from Bailando [44]. $\dagger$ FID $_k$ and DIV $_k$ are fetched from [29] while FID $_g$ and DIV $_g$ are fetched from [44].
<table><tr><td rowspan="2">Data</td><td rowspan="2">Method</td><td colspan="4">Motion Prediction Distance</td><td>User Study</td></tr><tr><td>ft=10</td><td>ft=20</td><td>ft=30</td><td>Our Method Wins</td><td></td></tr><tr><td rowspan="4">AIST ++</td><td>GT</td><td>0.048</td><td>0.072</td><td>0.088</td><td>70.0%</td><td></td></tr><tr><td>a2d</td><td>0.052</td><td>0.084</td><td>0.108</td><td>66.6%</td><td></td></tr><tr><td>slerp [43]</td><td>0.088</td><td>0.122</td><td>0.135</td><td>73.3%</td><td></td></tr><tr><td>ours</td><td>0.049</td><td>0.080</td><td>0.102</td><td>-</td><td></td></tr><tr><td rowspan="3">Wild Audio</td><td>a2d</td><td>0.052</td><td>0.088</td><td>0.113</td><td>60.0%</td><td></td></tr><tr><td>slerp [43]</td><td>0.104</td><td>0.148</td><td>0.171</td><td>70.0%</td><td></td></tr><tr><td>ours</td><td>0.048</td><td>0.079</td><td>0.107</td><td>-</td><td></td></tr></table>
Table 2: Music-text conditioned Dance Generation: quantitative results on AIST++ and wild audio test set. The best and runner-up values are bold and underlined, respectively.
alistic compared to other methods. Even in comparison to the ground truth, $41.9\%$ of our generated dance is voted as the better in average. We also report the result trained with dance-only data, which shows comparable performance.
In addition to the evaluation on the test set of AIST++, we also show the experimental results on our in-the-wild dataset in Table 1. Our method outperforms FACT [29] and Bailando [44] in almost all metrics except for $\mathrm{FID}_g\mathrm{Div}_g$ . We can observe that both FACT [29] and Bailando [44] shows a large performance drop in terms of $\mathrm{FID}_k$ , while ours maintain a small change. This is because FACT [29] and Bailando [44] requires seed motion, however, there is no ground-truth for in-the-wild scenario. With random sampled seed motion or token, their methods are not adapted
well for the in-the-wild scenarios. One can also notice that there exists freezing in our method on the in-the-wild dataset but the percentage of frozen frames is zero on the test set of AIST++, which results from the different distributions of AIST++ and our dataset. It also shows that our dataset is more challenging. We also report the result trained with dance-only data, which shows the advantage of our mix-training strategy in the wild scenario.
# 4.4. Evaluation on Text Conditioned Motion Generation.
We evaluate our text2motion approach in two different scenarios: inference with text only (t2m), and inference with text and music feature fusion. Table 3 shows the results. In the text-only setting, our approach achieves comparable performance with TM2T baseline(T) [17], which demonstrates that the mixed data/tasks training does not affect the quality of text2motion generation. We then apply our late fusion method by randomly sampling a music clip (from the whole AIST++ test set) and a text (from the whole t2m test set), and evaluate the generated dance clips following the same protocol as TM2T [17]. As Table 3 indicates, the text-dance consistency remains acceptable with a late fusion ratio of 0.8. For more details on the relation between the late fusion rate and text2motion result, please refer to the supplementary material.
# 4.5. Qualitative Results
We also show the qualitative results of our method for music-text conditioned 3D dance generation in Figure 4, Figure 5 and Figure 6. Specifically, Figure 4 shows the gen
<table><tr><td>Methods</td><td>R Precision↑</td><td>FID↓</td><td>MM Dist↓</td><td>Diversity→MModality↑</td></tr><tr><td>Real motions</td><td>0.511</td><td>0.002</td><td>2.974</td><td>9.503</td></tr><tr><td>Seq2Seq [31]</td><td>0.180</td><td>11.75</td><td>5.529</td><td>6.223</td></tr><tr><td>Language2Pose [4]</td><td>0.246</td><td>11.02</td><td>5.296</td><td>7.676</td></tr><tr><td>Text2Gesture [7]</td><td>0.165</td><td>5.012</td><td>6.030</td><td>6.409</td></tr><tr><td>Hier [13]</td><td>0.301</td><td>6.532</td><td>5.012</td><td>8.332</td></tr><tr><td>MoCoGAN [47]</td><td>0.037</td><td>94.41</td><td>9.643</td><td>0.462</td></tr><tr><td>Dance2Music [25]</td><td>0.033</td><td>66.98</td><td>8.116</td><td>0.725</td></tr><tr><td>TM2T baseline(T) [17]</td><td>0.351</td><td>1.669</td><td>4.046</td><td>9.632</td></tr><tr><td>TM2T [17]</td><td>0.424</td><td>1.501</td><td>3.467</td><td>8.589</td></tr><tr><td>TM2D (t2m)</td><td>0.319</td><td>1.021</td><td>4.098</td><td>9.513</td></tr><tr><td>TM2D (LFR 0.8)</td><td>0.300</td><td>1.105</td><td>4.307</td><td>8.887</td></tr></table>
Table 3: The evaluation of text2motion on the HumanML3D dataset, where the results are averaged from 20 runs.
erated 3D dance with the same music sequence but with different text instructions. Figure 5 shows the generated 3D dance with the same text instruction but with a different start time. Figure 6 shows the generated 3D dance with the same text instruction but with different durations. As one can see, our approach maintains plausible visual results according to the text instructions for all three cases, which confirms that our approach is more flexible.
# 4.6. The Impact of Mixed Data
We employ two datasets (AIST++ and HumanML3D) to train our 3D human motion VQ-VAE so that the motion tokens drop in the same latent space. To empirically show this point, we conduct experiments to count the number of shared motion tokens. For a trained 3D human motion VQ-VAE with AIST++ and HumanML3D, there are 855 vectors and 912 vectors from codebook used to construct the motion token in AIST++ and HumanML3D. The total number of vectors contained in the codebook is 1024. among them, 846 vectors (98.9% in AIST++ and 92.8% in HumanML3D) are shared to generate the motion tokens, which shows the feasibility of using the separate music-conditioned and text-conditioned motion datasets for music-text conditioned 3D dance generation task. We further verify the latent space of the motions by VQ-VAE, and we perform t-SNE visualizations of the raw motion distribution (before VQ-VAE) and feature distribution encoded by VQ-VAE (after VQ-VAE) from a2d motion and t2m motion in Figure 7. Two motion datasets are mixed successfully, which provides the potential integration of bimodality dance generation. Refer to the supplementary materials for more details.
# 4.7. Model Efficiency
We also show the efficiency of our architecture in Table 4. In the inference stage, the complete model parameters and the inference time for 1s music are compared. Our architecture requires only about half model parameters and
 Figure 4: Same music, different actions. These two generated dance share the same music and effect range (from 6s to 8s), with different text instructions: "A person does a cartwheel" (top), "A person is spinning with arms spread out" (bottom).
 Figure 5: Same action, different start time points. These two generated dance share the same music and text instruction ("A person jumps up and down") but different effect ranges: from 6 to 8s (top), from 7 to 9s (bottom).
 Figure 6: Same action, different durations. These two generated dance share the same music and text instruction ("A person is keeping jumping") and action start time point (i.e., 6s) but different effect duration: 2s (top), 3s (bottom, i.e., jumped twice).
inference time compared to Bailando [44], which attributes
 (a) Before VQ-VAE
 (b) After VQ-VAE Figure 7: The t-SNE visualizations of motions before and after VQ-VAE (orange: motions in AIST++, blue: motions in HumanML3D).
<table><tr><td>Method</td><td>Parameters</td><td>Inference time</td></tr><tr><td>FACT [29]</td><td>120M</td><td>8.300s/(1s music)</td></tr><tr><td>Bailando [44]</td><td>152M</td><td>0.236s/(1s music)</td></tr><tr><td>ours</td><td>72M</td><td>0.143s/(1s music)</td></tr></table>
Table 4: Comparisons of parameters and inference time.
that we do not need to encode separate features for the upper and lower half body. Compared to FACT [29], our architectures significantly reduce the inference time. The main reason is that FACT employs two transformers for the music, dance motion, and a cross-modal transformer, but we formulate it as the standard sequence-to-sequence translation task with one transformer only, which establishes the advantage of our architecture.
# 5. Conclusion
In this paper, a novel task that simultaneously integrates both music and text instruction for 3D dance generation is proposed. Due to the lack of the paired 3D dance motions conditioned on both music and text, we resort to two existing datasets, i.e., music2dance and text2motion, to perform this task and employ a 3D human motion VQ-VAE to project the motions of the two datasets into a shared latent space so that the two datasets with different distributions can be effectively mixed for training. Moreover, we also propose a cross-modal transformer architecture to generate 3D dance without degrading the performance of music-conditioned dance generation. Two new evaluation metrics, MPD and FS, are proposed to reflect the quality of generated motion. Extensive experiments show that our method can generate dance motion that matches both music and text in a realistic and coherent way while maintaining comparable performance on two single modalities.
Acknowledgement. This project is supported by the Ministry of Education Singapore under its Academic Research Fund Tier 2 (Award Number: MOE-T2EP20122-0006),
and Singapore National Research Foundation ("CogniVision - Energy-autonomous always-on cognitive and attentive cameras for distributed real-time vision with milliwatt power consumption" grant NRF-CRP20-2017-0003) - www.green-ic.org/CogniVision.
# References
[1] mixamo. https://www MIXamo.com/. Accessed: 2023-03-07. 1 [2] Hyemin Ahn, Timothy Ha, Yunho Choi, Hwiyeon Yoo, and Songhwai Oh. Text2action: Generative adversarial synthesis from language to action. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pages 5915-5920. IEEE, 2018. 3 [3] Hyemin Ahn, Jaehun Kim, Kihyun Kim, and Songhwai Oh. Generative autoregressive networks for 3d dancing move synthesis from music. IEEE Robotics and Automation Letters, 5(2):3501-3508, 2020. 2 [4] Chaitanya Ahuja and Louis-Philippe Morency. Language2pose: Natural language grounded pose forecasting. In 2019 International Conference on 3D Vision (3DV), pages 719-728. IEEE, 2019. 3, 6, 8 [5] Omid Alemi, Jules Françoise, and Philippe Pasquier. Groovenet: Real-time music-driven dance movement generation using artificial neural networks. In Workshop on Machine Learning for Creativity, 23rd ACM SIGKDD Conference on Knowledge Discovery and Data Mining, volume 8, page 26, 2017. 2 [6] Nikos Athanasiou, Mathis Petrovich, Michael J. Black, and Gül Varol. Teach: Temporal action compositions for 3d humans. In International Conference on 3D Vision (3DV), 2022. 3 [7] Uttaran Bhattacharya, Nicholas Rewkowski, Abhishek Banerjee, Pooja Guhan, Aniket Bera, and Dinesh Manocha. Text2gestures: A transformer-based network for generating emotive body gestures for virtual agents. In IEEE Virtual Reality and 3D User Interfaces (VR), pages 1-10. IEEE, 2021. 6, 8 [8] Hanting Chen, Yunhe Wang, Jianyuan Guo, and Dacheng Tao. VanillaNet: the Power of Minimalism in Deep Learning. arXiv preprint arXiv:2305.12972, 2023. 4 [9] Kang Chen, Zhipeng Tan, Jin Lei, Song-Hai Zhang, Yuan-Chen Guo, Weidong Zhang, and Shi-Min Hu. Choreomaster: choreography-oriented music-driven dance synthesis. ACM Transactions on Graphics (TOG), 40(4):1-13, 2021. 1, 2 [10] Rukun Fan, Songhua Xu, and Weidong Geng. Example-based automatic music-driven conventional dance motion synthesis. IEEE transactions on visualization and computer graphics, 18(3):501-515, 2011. 2 [11] Gongfan Fang, Xinyin Ma, and Xinchao Wang. Structural pruning for diffusion models. arXiv preprint arXiv:2305.10924, 2023. 4 [12] Joao P Ferreira, Thiago M Coutinho, Thiago L Gomes, José F Neto, and et al. Learning to dance: A graph convolutional adversarial network to generate realistic dance motions from audio. Computers & Graphics, 94:11-21, 2021. 2
[13] Anindita Ghosh, Noshaba Cheema, Cennet Oguz, Christian Theobalt, and Philipp Slusallek. Synthesis of compositional animations from textual descriptions. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1396–1406, 2021. 3, 6, 8 [14] Shiry Ginosar, Amir Bar, Gefen Kohavi, Caroline Chan, Andrew Owens, and Jitendra Malik. Learning individual styles of conversational gesture. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3497-3506, 2019. 2 [15] Xiuye Gu, Tsung-Yi Lin, Weicheng Kuo, and Yin Cui. Open-vocabulary object detection via vision and language knowledge distillation. In International Conference on Learning Representations, 2022. 1 [16] Chuan Guo, Shihao Zou, Xinxin Zuo, Sen Wang, Wei Ji, Xingyu Li, and Li Cheng. Generating diverse and natural 3d human motions from text. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5152-5161, 2022. 2, 3, 5 [17] Chuan Guo, Xinxin Zuo, Sen Wang, and Li Cheng. Tm2t: Stochastic and tokenized modeling for the reciprocal generation of 3d human motions and texts. In European Conference on Computer Vision, pages 580-597, 2022. 3, 6, 7, 8 [18] Chuan Guo, Xinxin Zuo, Sen Wang, Shihao Zou, Qingyao Sun, Annan Deng, Minglun Gong, and Li Cheng. Action2motion: Conditioned generation of 3d human motions. In Proceedings of the 28th ACM International Conference on Multimedia, pages 2021-2029, 2020. 2 [19] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in neural information processing systems, volume 30, 2017. 6 [20] Duc N.M. Hoang, Shiwei Liu, Radu Marculescu, and Zhangyang Wang. Revisiting pruning at initialization through the lens of ramanujan graph. In International Conference on Learning Representations, 2023. 4 [21] Ruozhi Huang, Huang Hu, Wei Wu, Kei Sawada, Mi Zhang, and Daxin Jiang. Dance revolution: Long-term dance generation with music via curriculum learning. In International Conference on Learning Representations, 2021. 6, 7 [22] Yanghua Jin, Jiakai Zhang, Minjun Li, Yingtao Tian, Huachun Zhu, and Zhihao Fang. Towards the automatic anime characters creation with generative adversarial networks. arXiv preprint arXiv:1708.05509, 2017. 4 [23] Hsuan-Kai Kao and Li Su. Temporally guided music-to-body-movement generation. In Proceedings of the 28th ACM International Conference on Multimedia, pages 147-155, 2020. 2 [24] Kosmas Kritsis, Aggelos Gkiokas, Aggelos Pikrakis, and Vassilis Katsouros. Danceconv: Dance motion generation with convolutional networks. IEEE Access, 10:44982-45000, 2022. 2 [25] Hsin-Ying Lee, Xiaodong Yang, Ming-Yu Liu, Ting-Chun Wang, Yu-Ding Lu, Ming-Hsuan Yang, and Jan Kautz. Dancing to music. Advances in neural information processing systems, 32, 2019. 1, 2, 6, 8
[26] Juheon Lee, Seohyun Kim, and Kyogu Lee. Listen to dance: Music-driven choreography generation using autoregressive encoder-decoder network. arXiv preprint arXiv:1811.00818, 2018. 2 [27] Buyu Li, Yongchi Zhao, Shi Zhelun, and Lu Sheng. Danceformer: Music conditioned 3d dance generation with parametric motion transformer. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 1272-1279, 2022. 2 [28] Jiaman Li, Yihang Yin, Hang Chu, Yi Zhou, Tingwu Wang, Sanja Fidler, and Hao Li. Learning to generate diverse dance motions with transformer. arXiv preprint arXiv:2008.08171, 2020. 2, 6, 7 [29] Ruilong Li, Shan Yang, David A Ross, and Angjoo Kanazawa. Ai choreographer: Music conditioned 3d dance generation with aist++. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 13401-13412, 2021. 1, 2, 5, 6, 7, 9 [30] Dongze Lian, Daquan Zhou, Jiashi Feng, and Xinchao Wang. Scaling & shifting your features: A new baseline for efficient model tuning. In Advances in Neural Information Processing Systems (NeurIPS), 2022. 4 [31] Angela S. Lin, Lemeng Wu, Rodolfo Corona, Kevin W. H. Tai, Qixing Huang, and Raymond J. Mooney. Generating animated videos of human activities from natural language descriptions. 2018. 3, 6, 8 [32] Xinyin Ma, Gongfan Fang, and Xinchao Wang. LLM-Pruner: On the Structural Pruning of Large Language Models. arXiv preprint arXiv:2305.11627, 2023. 4 [33] Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 1532-1543, 2014. 4 [34] Mathis Petrovich, Michael J Black, and Gül Varol. Action-conditioned 3d human motion synthesis with transformer vae. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10985-10995, 2021. 2, 3 [35] Mathis Petrovich, Michael J Black, and Gül Varol. Temos: Generating diverse human motions from textual descriptions. In European Conference on Computer Vision, page 480-497, 2022. 3 [36] Matthias Plappert, Christian Mandery, and Tamim Asfour. The kit motion-language dataset. *Big data*, 4(4):236-252, 2016. 2 [37] Matthias Plappert, Christian Mandery, and Tamim Asfour. Learning a bidirectional mapping between human whole-body motion and natural language using deep recurrent neural networks. Robotics and Autonomous Systems, 109:13-26, 2018. 3 [38] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748-8763. PMLR, 2021. 1
[39] Sucheng Ren, Xingyi Yang, Songhua Liu, and Xinchao Wang. SG-Former: Self-guided Transformer with Evolving Token Reallocation. In IEEE International Conference on Computer Vision, 2023. 4 [40] Sucheng Ren, Daquan Zhou, Shengfeng He, Jiashi Feng, and Xinchao Wang. Shunted Self-Attention via Multi-Scale Token Aggregation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. 4 [41] Xuanchi Ren, Haoran Li, Zijian Huang, and Qifeng Chen. Self-supervised dance video synthesis conditioned on music. In Proceedings of the 28th ACM International Conference on Multimedia, pages 46-54, 2020. 2 [42] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10684-10695, 2022. 1 [43] Ken Shoemake. Animating rotation with quaternion curves. In Proceedings of the 12th annual conference on Computer graphics and interactive techniques, pages 245-254, 1985. 5, 6, 7 [44] Li Siyao, Weijiang Yu, Tianpei Gu, Chunze Lin, Quan Wang, Chen Qian, Chen Change Loy, and Ziwei Liu. Bailando: 3d dance generation by actor-critic gpt with choreographic memory. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11050-11059, 2022. 1, 2, 4, 6, 7, 8, 9 [45] Guofei Sun, Yongkang Wong, Zhiyong Cheng, Mohan S Kankanhalli, Weidong Geng, and Xiangdong Li. Deepdance: music-to-dance motion choreography with adversarial learning. IEEE Transactions on Multimedia, 23:497-509, 2020. 2 [46] Taoran Tang, Jia Jia, and Hanyang Mao. Dance with melody: An LSTM-autoencoder approach to music-oriented dance synthesis. In Proceedings of the 26th ACM international conference on Multimedia, pages 1598-1606, 2018. 2 [47] Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. Mocogan: Decomposing motion and content for video generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1526-1535, 2018. 6, 8 [48] Aaron Van Den Oord, Oriol Vinyals, et al. Neural discrete representation learning. Advances in neural information processing systems, 30, 2017. 4 [49] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. 4 [50] Jiarui Xu, Shalini De Mello, Sifei Liu, Wonmin Byeon, Thomas Breuel, Jan Kautz, and Xiaolong Wang. Groupvit: Semantic segmentation emerges from text supervision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18134-18144, 2022. 1 [51] Nelson Yalta, Shinji Watanabe, Kazuhiro Nakadai, and Tetsuya Ogata. Weakly-supervised deep recurrent neural networks for basic dance step generation. In 2019 International Joint Conference on Neural Networks (IJCNN), pages 1-8. IEEE, 2019. 2
[52] Tatsuro Yamada, Hiroyuki Matsunaga, and Tetsuya Ogata. Paired recurrent autoencoders for bidirectional translation between robot actions and linguistic descriptions. IEEE Robotics and Automation Letters, 3(4):3441-3448, 2018. 3 [53] Xingyi Yang, Daquan Zhou, Songhua Liu, Jingwen Ye, and Xinchao Wang. Deep model reassembly. In Advances in neural information processing systems, 2022. 4 [54] Zijie Ye, Haozhe Wu, Jia Jia, Yaohua Bu, Wei Chen, Fanbo Meng, and Yanfeng Wang. Choreonet: Towards music to dance synthesis with choreographic action unit. In Proceedings of the 28th ACM International Conference on Multimedia, pages 744-752, 2020. 2 [55] Weihao Yu, Chenyang Si, Pan Zhou, Mi Luo, Yichen Zhou, Jiashi Feng, Shuicheng Yan, and Xinchao Wang. Metaformer Baselines for Vision. arXiv preprint arXiv:2210.13452, 2022.4 [56] Ye Yuan and Kris Kitani. Dlow: Diversifying latent flows for diverse human motion prediction. In European Conference on Computer Vision, pages 346-364. Springer, 2020. 6 [57] Wenlin Zhuang, Congyi Wang, Jinxiang Chai, Yangang Wang, Ming Shao, and Siyu Xia. Music2dance: Dancenet for music-driven dance generation. ACM Transactions on Multimedia Computing, Communications, and Applications (TOMM), 18(2):1-21, 2022. 2, 6, 7 [58] Wenlin Zhuang, Yangang Wang, Joseph Robinson, Congyi Wang, Ming Shao, Yun Fu, and Siyu Xia. Towards 3d dance motion synthesis and control. arXiv preprint arXiv:2006.05743, 2020. 2123version https://git-lfs.github.com/spec/v1oid sha256:0ba38795b740a6901e8d4eaad4f907790e6b870c0f1254c84fd246b4538dc6d0size 552754123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617[ { "type": "text", "text": "TMA: Temporal Motion Aggregation for Event-based Optical Flow", "text_level": 1, "bbox": [ 145, 130, 823, 152 ], "page_idx": 0 }, { "type": "text", "text": "Haotian Liu<sup>1</sup> Guang Chen<sup>1*</sup> Sanqing Qu<sup>1</sup> Yanping Zhang<sup>1</sup> \nZhijun Li<sup>1</sup> Alois Knoll<sup>2</sup> Changjun Jiang<sup>1</sup> \n<sup>1</sup>Tongji University <sup>2</sup>Technical University of Munich", "bbox": [ 199, 178, 769, 233 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 233, 268, 313, 284 ], "page_idx": 0 }, { "type": "text", "text": "Event cameras have the ability to record continuous and detailed trajectories of objects with high temporal resolution, thereby providing intuitive motion cues for optical flow estimation. Nevertheless, most existing learning-based approaches for event optical flow estimation directly remould the paradigm of conventional images by representing the consecutive event stream as static frames, ignoring the inherent temporal continuity of event data. In this paper, we argue that temporal continuity is a vital element of event-based optical flow and propose a novel Temporal Motion Aggregation (TMA) approach to unlock its potential. Technically, TMA comprises three components: an event splitting strategy to incorporate intermediate motion information underlying the temporal context, a linear lookup strategy to align temporally fine-grained motion features and a novel motion pattern aggregation module to emphasize consistent patterns for motion feature enhancement. By incorporating temporally fine-grained motion information, TMA can derive better flow estimates than existing methods at early stages, which not only enables TMA to obtain more accurate final predictions, but also greatly reduces the demand for a number of refinements. Extensive experiments on DSEC-Flow and MVSEC datasets verify the effectiveness and superiority of our TMA. Remarkably, compared to E-RAFT, TMA achieves a $6\\%$ improvement in accuracy and a $40\\%$ reduction in inference time on DSEC-Flow. Code will be available at https://github.com/ispc-lab/TMA.", "bbox": [ 75, 300, 473, 724 ], "page_idx": 0 }, { "type": "text", "text": "1. Introduction", "text_level": 1, "bbox": [ 76, 744, 209, 758 ], "page_idx": 0 }, { "type": "text", "text": "Optical flow aims to compute the velocity of objects on the image plane without geometry prior and is a fundamental topic in event-based vision [8, 42]. It plays an important role in many applications, such as ego-motion estimation [38, 45], image reconstruction [24], and video frame interpolation [32, 31]. Recently, learning-based methods [29, 18, 30] have dominated frame-based optical flow", "bbox": [ 75, 770, 468, 876 ], "page_idx": 0 }, { "type": "image", "img_path": "images/d79da3f60da344d5debf26737a7222933e2d1633fbf35168e314c06375fb14cc.jpg", "image_caption": [ "(a) reference image" ], "image_footnote": [], "bbox": [ 506, 258, 694, 347 ], "page_idx": 0 }, { "type": "image", "img_path": "images/76e22e787cc0093cd70f73f2ae77508cbad73d691a23df358884f3ee86f683c7.jpg", "image_caption": [ "(b) event frame" ], "image_footnote": [], "bbox": [ 696, 258, 885, 347 ], "page_idx": 0 }, { "type": "image", "img_path": "images/197e01e0c9ab95123c67414acdb7f28e2441de1741495e0250013e52ab5bb6cf.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 506, 358, 694, 446 ], "page_idx": 0 }, { "type": "image", "img_path": "images/71b7e75eee9838c46a76b72c51fcaf25d19f44bae976519f476782507c6b6319.jpg", "image_caption": [ "(c) E-RAFT output & motion feature (d) our output & motion feature" ], "image_footnote": [], "bbox": [ 508, 446, 694, 532 ], "page_idx": 0 }, { "type": "image", "img_path": "images/2cddd66dab12422f7745cde39ca77fb477f80355b39094fea5f61fc9c634c840.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 697, 358, 885, 446 ], "page_idx": 0 }, { "type": "image", "img_path": "images/b1b82bcbcfe65b05eb791f6404309750ddc92df34c88fc0a65b6383fd574f6c3.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 697, 446, 883, 532 ], "page_idx": 0 }, { "type": "text", "text": "Figure 1: Accuracy illustrations. (a) Reference image from DSEC-Flow. (b) Corresponding event frame. (c) The final flow prediction and visualization of the motion feature from E-RAFT [11]. (d) The final flow prediction and visualization of the motion feature from our proposed method. We visualize the motion feature at the initial stage by taking the average across channels. E-RAFT fails to generate informative motion features and results in blurred boundaries. In contrast, our method utilizes temporally fine-grained motion information to address the information scarcity issue in motion features, generating high-quality predictions.", "bbox": [ 496, 547, 890, 715 ], "page_idx": 0 }, { "type": "text", "text": "by employing correlation volumes to derive motion features for flow regression. Inspired by this, several event-based approaches [11, 34] adopt a similar paradigm by converting the consecutive event stream into grid-like representations. Despite encouraging progress, these methods still suffer from non-negligible limitations, due to the great differences between event data and conventional images. Distinct from dense and colorful conventional (RGB) images, event data features spatial sparsity and a lack of intensity information. It is prone to result in close matching scores and invalid regions in the correlation volume. Consequently, less informative motion features are derived and regress inaccurate", "bbox": [ 496, 719, 892, 900 ], "page_idx": 0 }, { "type": "header", "text": "CVF", "bbox": [ 106, 2, 181, 42 ], "page_idx": 0 }, { "type": "header", "text": "This ICCV paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore.", "bbox": [ 238, 0, 807, 46 ], "page_idx": 0 }, { "type": "page_footnote", "text": "*corresponding author: guangchen@tongii.edu.cn", "bbox": [ 94, 886, 359, 900 ], "page_idx": 0 }, { "type": "page_number", "text": "9685", "bbox": [ 482, 944, 514, 955 ], "page_idx": 0 }, { "type": "text", "text": "predictions. Figure 1 illustrates this issue in E-RAFT [11].", "bbox": [ 76, 90, 464, 106 ], "page_idx": 1 }, { "type": "text", "text": "As the saying goes, each coin has two sides. Though event cameras encode visual information in a sparse manner, they are capable of capturing continuous and detailed object trajectories with high temporal resolution, thereby providing rich motion cues for optical flow estimation. Several model-based methods [9, 27] benefit from the temporal continuity by warping events along point trajectories, achieving decent performance. Drawing on this observation, we contend that the temporal continuity is a vital element of event-based optical flow and propose to unleash its potential within a learning-based framework.", "bbox": [ 75, 107, 467, 272 ], "page_idx": 1 }, { "type": "text", "text": "To materialize our idea, we propose a novel Temporal Motion Aggregation (TMA) approach to explore the inherent temporal continuity of event data. Technically, we revamp the dominant learning-based architectures with three distinct components. We first introduce an event splitting strategy for temporally-dense correlation volumes computation. By splitting the event stream into multiple segments and extracting their features, feature similarities are compared between the first feature and all others, which record rich intermediate motion information. Aware of that correlation volumes record motions between different time spans, we then design a linear lookup strategy to sample each correlation volume based on the corresponding flow estimate to encode motion features. As a result, fine-grained motions are warped to the same pixels across motion features. Furthermore, we consider the incorrect motion patterns in intermediate motion features due to the manual lookup. Therefore, we propose a novel pattern aggregation module for motion feature enhancement by aggregating consistent patterns between each intermediate motion feature and the last one (without manual lookup). Thanks to the incorporation of temporally fine-grained motion information, TMA can effectively address the information scarcity in motion features and thus generate good flow estimates at early stages, which not only enable TMA to obtain accurate flow predictions, but also greatly reduces the demand for a number of time-consuming refinements.", "bbox": [ 75, 273, 468, 680 ], "page_idx": 1 }, { "type": "text", "text": "We evaluate our TMA on DSEC-Flow [10] and MVSEC [44] datasets. Extensive experiments demonstrate the superior advantages of TMA.", "bbox": [ 76, 681, 468, 726 ], "page_idx": 1 }, { "type": "text", "text": "In summary, our main contributions are as follows:", "bbox": [ 96, 727, 433, 742 ], "page_idx": 1 }, { "type": "list", "sub_type": "text", "list_items": [ "- We argue that the temporal continuity of event data is a vital element of event-based optical flow and propose to unlock its potential in a learning-based framework.", "- We propose a novel Temporal Motion Aggregation (TMA) approach, which comprises three components: an event splitting strategy, a linear lookup strategy and a motion pattern aggregation module.", "- The incorporation of temporally fine-grained motion information enables TMA to achieve high accuracy" ], "bbox": [ 94, 750, 468, 900 ], "page_idx": 1 }, { "type": "text", "text": "while maintaining high efficiency. Compared with E-RAFT, TMA achieves a $6\\%$ improvement in accuracy and a $40\\%$ reduction in inference time on DSEC-Flow.", "bbox": [ 531, 90, 890, 135 ], "page_idx": 1 }, { "type": "text", "text": "2. Related Work", "text_level": 1, "bbox": [ 500, 150, 640, 165 ], "page_idx": 1 }, { "type": "text", "text": "Learning methods for optical flow estimation. Recently, correlation volume based approaches dominate the learning-based optical flow estimation [25, 17, 29, 18, 37, 14]. As a milestone, PwCNet [29] summarizes a simple principle in architecture construction: pyramidal processing, warping and correlation volumes computation. Following the well-established pipeline, LiteFlowNet series [16, 17, 15] propose cascaded feature pyramids with a lightweight convolutional burden. VCN [37] proposes 4D volumetric U-Net architectures to enlarge the receptive fields for correlation volumes. IRR [18] notes the reusability of pyramidal refinement for flow update and proposes a shared-weights refiner across all scales, which can be combined with mainstream learning methods.", "bbox": [ 496, 176, 890, 385 ], "page_idx": 1 }, { "type": "text", "text": "However, the correlation volumes used in previous works are computed locally, which cannot fully deal with long-term motions. RAFT [30] firstly introduces the full correlation volume to capture global visual similarities. Separable Flow [41] proposes a separable correlation volume module as a drop-in replacement to correlation volumes and uses non-local aggregation layers [39, 40] to refine the correlation volumes efficiently. Besides, transformer components show promising performance on optical flow [36, 19, 35]. GMA [19] notices the underlying motion clues in the context and introduces an attention layer to aggregate hidden motions, improving the accuracy based on RAFT architecture. GMFlow [36] reformulates optical flow as a global matching problem by attention blocks, suggesting a new paradigm for flow estimation.", "bbox": [ 496, 387, 890, 613 ], "page_idx": 1 }, { "type": "text", "text": "We draw inspiration from GMA [19] to design our motion pattern aggregation module. In contrast to GMA which aggregates hidden motion patterns in the spatial context for motion feature enhancement, we extend the pattern aggregation to the temporal dimension and leverage feature cross-similarities to enhance the motion feature.", "bbox": [ 496, 614, 890, 702 ], "page_idx": 1 }, { "type": "text", "text": "Event-based optical flow estimation. A number of traditional works remould frame-based approaches into event-based optical flow estimation. Benosman et al. [4] extends the classic Lucas-Kanade method to event-based optical flow. Liu et al. [21, 22] implement event-based corner keypoint detection and novel block-matching optical flow. Gallego et al. [9] propose a unifying contrast maximization (CM) framework and MultiCM [27] extends it to complex scenes. Besides, plane fitting [1, 3], filter banks [6] and time surface matching [2] are proposed to boost performance.", "bbox": [ 496, 704, 890, 854 ], "page_idx": 1 }, { "type": "text", "text": "More recently, learning-based methods have dominated frame-based optical flow, inspiring attempts at event-based optical flow. Early learning methods [43, 45, 38] represent", "bbox": [ 496, 854, 890, 900 ], "page_idx": 1 }, { "type": "page_number", "text": "9686", "bbox": [ 482, 945, 514, 955 ], "page_idx": 1 }, { "type": "image", "img_path": "images/bd2575db2ab1f802b8ae96be3731aacc30879bf0446c7a6eb2bb30f9a195f1ba.jpg", "image_caption": [ "Figure 2: The overall architecture of TMA. First, we split the event stream into segments and extract features with a share-weights feature extractor. Then, regarding the first feature as reference, we correlate all other features to compute temporally-dense correlation volumes, which contain rich embedded motion information. Next, aware of the different time spans of correlation volumes, we look up each correlation volume based on a corresponding flow estimate. All sampled correlation maps are delivered into a share-weights motion feature encoder to derive motion features. We further propose a novel motion pattern aggregation module to enrich the spatial information of motion features. By concatenating the enhanced motion features and utilizing several refinements, high-quality flow predictions are generated." ], "image_footnote": [], "bbox": [ 83, 88, 883, 238 ], "page_idx": 2 }, { "type": "text", "text": "the event stream as a static frame and utilize the architecture of U-Net [26] to predict optical flow, which can only address small motions. Mainstream works [7, 34, 11] introduce two consecutive event frames and follow the correlation volume based pipeline (PWCNet and RAFT), achieving higher accuracy on large-scales datasets [44, 10]. E-RAFT [11, 12] extends RAFT [30] and introduces full correlation volume into event-based vision. DCEIFlow [34] combines conventional images and event data to boost higher accuracy. Note that our work and STE-FlowNet [7] share a similar motivation to introduce temporal continuity with fine-grained discretization. However, STE-FlowNet takes a frame-by-frame manner [18] to update flow, leading to an insufficient inference process.", "bbox": [ 75, 357, 472, 568 ], "page_idx": 2 }, { "type": "text", "text": "Contrary to previous learning-based methods, we do not merely adopt the classic correlation volume based pipeline. Instead, we regard the temporal continuity of event data as a vital component of optical flow and incorporate the intermediate motion information into a learning-based framework, which boosts higher accuracy and efficiency.", "bbox": [ 76, 569, 470, 660 ], "page_idx": 2 }, { "type": "text", "text": "3. Methodology", "text_level": 1, "bbox": [ 76, 676, 212, 695 ], "page_idx": 2 }, { "type": "text", "text": "Given an input event stream $\\{\\mathcal{E}\\}$ from $t_0$ to $t_1$ , the goal of optical flow is to estimate a dense displacement field $\\mathbf{u}:\\mathbb{R}^2\\to \\mathbb{R}^2$ which maps each per-pixel $(x,y)$ at $t_0$ to its corresponding coordinate $(x^{\\prime},y^{\\prime})$ at $t_1$ . To address this, mainstream learning-based approaches compute correlation volumes from two event frames as a matching prior. Such principle inspires several methods [11, 34] by squeezing event data into consecutive frames. Unfortunately, the characteristics of event data, spatial sparsity and lack of intensity records, are prone to result in close matching scores and invalid regions in the correlation volume. Consequently, less informative motion features are derived and regress inaccurate predictions. Here we address the information scarcity", "bbox": [ 75, 703, 472, 902 ], "page_idx": 2 }, { "type": "text", "text": "of motion features from the attractive temporal continuity of event data. Temporally fine-grained motion information in event data is sufficient to supplement the spatial richness of motion features, yielding high-quality flow predictions.", "bbox": [ 496, 356, 890, 416 ], "page_idx": 2 }, { "type": "text", "text": "In the following, we first describe the preliminary and event representation, and then present the detailed architecture of the proposed TMA.", "bbox": [ 496, 417, 890, 462 ], "page_idx": 2 }, { "type": "text", "text": "3.1. Preliminary and Event Representation", "text_level": 1, "bbox": [ 498, 470, 831, 486 ], "page_idx": 2 }, { "type": "text", "text": "Event cameras record light intensity changes in an asynchronous way. Each pixel serves as an independent trigger and generates an event instantly whenever the log intensity changes exceeding a threshold $C$ . An event $\\boldsymbol{e}_k = (\\boldsymbol{x}_k, p_k, t_k)$ is a triplet containing triggered pixel location $\\boldsymbol{x}_k = (x_k, y_k)^T$ , timestamp $t_k$ and signed intensity change $(p_k = \\pm 1)$ .", "bbox": [ 496, 493, 890, 599 ], "page_idx": 2 }, { "type": "text", "text": "To ease the feature extraction and preserve the temporal continuity of the event data, we firstly transform the event stream into a 3D volume $V(x,y,t)$ along the temporal dimension following existing works [45, 11, 24]. Given an event stream $\\{\\mathcal{E}\\}$ , $V(x,y,t)$ is generated as:", "bbox": [ 496, 599, 890, 675 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\nt _ {i} ^ {*} = (B - 1) \\left(t _ {i} - t _ {1}\\right) / \\left(t _ {N _ {e}} - t _ {1}\\right) \\tag {1}\n$$\n", "text_format": "latex", "bbox": [ 514, 683, 890, 700 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\boldsymbol {V} (x, y, t) = \\sum_ {i} p _ {i} k _ {b} \\left(x - x _ {i}\\right) k _ {b} \\left(y - y _ {i}\\right) k _ {b} \\left(t - t _ {i} ^ {*}\\right) \\tag {2}\n$$\n", "text_format": "latex", "bbox": [ 514, 703, 890, 733 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\nk _ {b} (a) = \\max (0, 1 - | a |), \\tag {3}\n$$\n", "text_format": "latex", "bbox": [ 514, 738, 890, 753 ], "page_idx": 2 }, { "type": "text", "text": "where $t_i^*$ represents the $i$ -th time bin. $B$ and $N_e$ represent the length of time bins and the number of events, respectively. $k_b(a)$ is the bilinear interpolation function.", "bbox": [ 496, 763, 890, 809 ], "page_idx": 2 }, { "type": "text", "text": "3.2. TMA Architecture", "text_level": 1, "bbox": [ 500, 816, 679, 830 ], "page_idx": 2 }, { "type": "text", "text": "We develop our framework based on the successful RAFT architecture [30]. Figure 2 summarizes the architecture of the proposed TMA, which consists of three components, an event splitting strategy, a linear lookup strategy", "bbox": [ 496, 839, 890, 902 ], "page_idx": 2 }, { "type": "page_number", "text": "9687", "bbox": [ 480, 944, 514, 955 ], "page_idx": 2 }, { "type": "image", "img_path": "images/8da1b9b2f86637a5772622540d3d8a83337ccf577b5648551fa3ce8ccecb5f51.jpg", "image_caption": [ "Figure 3: Linear lookup strategy. We compute correlation volumes by comparing the similarity of first feature with all others, which are misaligned due to different time spans. To rectify this, we narrow down the lookup coordinates linearly to warp correlation maps to spatially aligned pixels." ], "image_footnote": [], "bbox": [ 98, 87, 444, 244 ], "page_idx": 3 }, { "type": "text", "text": "and a motion pattern aggregation module. With the proposed method, we successfully unlock the potential of temporal continuity to predict event-based optical flow within a learning-based framework.", "bbox": [ 75, 332, 468, 391 ], "page_idx": 3 }, { "type": "text", "text": "Event splitting. Instead of viewing the continuous event stream as a static frame which tends to be a matter of common knowledge in recent works [45, 11, 34], we prefer to identify it as a high frame rate video clip, which records continuous and detailed trajectories of objects, namely, provides intuitive motion cues for optical flow estimation. To introduce rich intermediate motion information into our method, we first propose an event splitting strategy, which splits the event stream into multiple segments. Therefore, more intermediate event frames are retained for correlation volume computation.", "bbox": [ 75, 393, 468, 556 ], "page_idx": 3 }, { "type": "text", "text": "In particular, given an event stream $\\{\\mathcal{E}\\}$ from $t_0$ to $t_1$ , we split it into $g$ segments equally and the time span between adjacent segments is $dt$ . Besides, we introduce an auxiliary event segment from $t_0 - dt$ to $t_0$ as reference. Then, $g + 1$ event representations are generated following Sec. 3.1. All $g + 1$ event representations are then delivered into a share-weights encoder to achieve features $\\pmb{F}_i \\in \\mathbb{R}^{H \\times W \\times C}, i = 0, 1, 2, \\dots, g,$ where $H, W$ and $D$ represent the height, width and channel of features. We use all features to compute temporally-dense correlation volumes $\\pmb{C}_i, i = 1, 2, \\dots, g,$ which are given by:", "bbox": [ 76, 559, 468, 724 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\boldsymbol {C} _ {i} = \\frac {\\boldsymbol {F} _ {0} \\boldsymbol {F} _ {i} ^ {T}}{\\sqrt {D}} \\in \\mathbb {R} ^ {H \\times W \\times H \\times W}, i = 1, 2, \\dots , g, \\tag {4}\n$$\n", "text_format": "latex", "bbox": [ 119, 734, 468, 768 ], "page_idx": 3 }, { "type": "text", "text": "where $\\pmb{F}_0$ is the first feature and $\\pmb{F}_i$ is the $i$ -th feature derived from the $i$ -th event frame.", "bbox": [ 76, 779, 468, 808 ], "page_idx": 3 }, { "type": "text", "text": "Temporally-dense correlation volumes compare feature similarities across multiple time spans, enabling refined records of relative motions. This construction is vastly different from the classic full correlation volume that only contains feature similarities between a fixed time span.", "bbox": [ 76, 810, 468, 883 ], "page_idx": 3 }, { "type": "text", "text": "Linear lookup. Recall that each correlation volume $C_i$", "bbox": [ 96, 885, 467, 900 ], "page_idx": 3 }, { "type": "image", "img_path": "images/edd9caa0b9361b83c8177c5cf45bb2de7ef9eea9cdead27b15955c2036afefbb.jpg", "image_caption": [ "Figure 4: Motion pattern aggregation. We pair each intermediate motion feature to the last motion feature. Then each pair is sent to cross-attention blocks to aggregate consistent patterns. Hence, each intermediate motion feature carries information from the last one and consistent patterns receive emphasis." ], "image_footnote": [], "bbox": [ 526, 90, 861, 251 ], "page_idx": 3 }, { "type": "text", "text": "is achieved by correlating $F_{0}$ and $F_{i}$ , which means the recorded relation motions are misaligned in time. While our goal is to predict optical flow from $t_{0}$ to $t_{1}$ , we hope that all sampled correlation maps could present the relative motions within the same time span. Therefore, based on that correlation volumes are evenly constructed in time and magnitudes of optical flow change linearly over a short period, we narrow down lookup coordinates in a linear fashion to match the timestamp of each correlation volume.", "bbox": [ 496, 351, 890, 487 ], "page_idx": 3 }, { "type": "text", "text": "Figure 3 displays the linear lookup strategy. In detail, given current flow estimate $\\mathbf{u}$ , we split it into $g$ segments to sample each correlation volume. The linear lookup operation can be expressed as:", "bbox": [ 496, 487, 890, 547 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\mathbf {d} \\mathbf {u} = \\left(\\mathbf {c o o r d s} _ {1} - \\mathbf {c o o r d s} _ {0}\\right) / g = \\mathbf {u} / g \\tag {5}\n$$\n", "text_format": "latex", "bbox": [ 524, 556, 890, 571 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\operatorname {c o r r} _ {i} = S \\left(\\boldsymbol {C} _ {i}, \\operatorname {c o o r d s} _ {0} + i \\mathrm {d u}\\right), i = 1, 2, \\dots , g, \\tag {6}\n$$\n", "text_format": "latex", "bbox": [ 524, 574, 890, 590 ], "page_idx": 3 }, { "type": "text", "text": "where $\\mathbf{coord}_0$ is the initialized coordinates at $t_0$ (reference time), $S(\\cdot, \\cdot)$ represents the lookup operation, $\\mathbf{coord}_i$ are lookup coordinates for $C_i$ and $\\mathbf{corr}_i$ is the correlation map sampled from $C_i$ . After delivering all correlation maps into a share-weights motion feature encoder, aligned motion features are achieved.", "bbox": [ 496, 598, 890, 686 ], "page_idx": 3 }, { "type": "text", "text": "From the perspective of image contrast [9], the standard lookup is responsible for warping possible matching points between two images to the same pixel. Our linear lookup extends it by warping matching points of a temporally fine-grained motion to the same pixel. As a result, similar motions are presented at same pixels across correlation maps, showing high contrast.", "bbox": [ 496, 689, 890, 794 ], "page_idx": 3 }, { "type": "text", "text": "Motion pattern aggregation. A standard operation for next step is to concatenate the motion features as a whole to update flow and the improvements made so far already alleviate the information scarcity in motion features. However, we notice that the concatenation operation treats all motion features equally, which means the majority of motion features, intermediate ones, dominate the flow regression. Due", "bbox": [ 496, 795, 890, 900 ], "page_idx": 3 }, { "type": "page_number", "text": "9688", "bbox": [ 482, 944, 514, 955 ], "page_idx": 3 }, { "type": "image", "img_path": "images/4cc613ce347d8063a08a953b1258344670e8f9d30b3ff8cbf420ebacd78e806e.jpg", "image_caption": [ "Figure 5: Qualitative examples of DSEC-Flow. For each two columns, we show the reference image and event frame and compare our method with a state-of-the-art baseline E-RAFT [11]. Significant improvements are highlighted by red boxes." ], "image_footnote": [], "bbox": [ 81, 85, 379, 294 ], "page_idx": 4 }, { "type": "image", "img_path": "images/c9d09ce8f6abd1e8a67f68c318998a498a71fed2457dfd334adf1bcfb3bfa69c.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 398, 88, 633, 294 ], "page_idx": 4 }, { "type": "image", "img_path": "images/2a660dd95348afbefb349d5a459a791499afdd118c8ebd0d7b0e307863e2f783.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 651, 89, 883, 294 ], "page_idx": 4 }, { "type": "text", "text": "to the linear optical flow assumption and manual lookup operation, these motion features are not perfectly correct. A natural thought is to put more emphasis on the last motion feature that is without manual lookup and retain the patterns in intermediate motion features that are consistent with the last motion feature. To this end, we balance the weights between the last motion feature and others through cross-similarities computed by transformers [33, 19].", "bbox": [ 75, 340, 468, 460 ], "page_idx": 4 }, { "type": "text", "text": "Figure 4 shows the overview of motion pattern aggregation module. Given a set of motion features $M\\mathbf{F}_i \\in \\mathbb{R}^{H \\times W \\times D'}$ , $i = 1,2,\\dots,g$ , we pair each intermediate motion feature to the last one. Then each pair $(M\\mathbf{F}_i,M\\mathbf{F}_g)$ is sent to cross-attention blocks to compare cross-similarities and aggregate consistent patterns. The enhanced motion feature $\\widehat{M}\\mathbf{F}_i$ is obtained as:", "bbox": [ 76, 462, 470, 568 ], "page_idx": 4 }, { "type": "equation", "text": "\n$$\n\\begin{array}{l} \\boldsymbol {A} = \\operatorname {A t t e n t i o n} \\left(\\boldsymbol {M} \\boldsymbol {F} _ {i} W ^ {Q}, \\boldsymbol {M} \\boldsymbol {F} _ {g} W ^ {K}, \\boldsymbol {M} \\boldsymbol {F} _ {g} W ^ {V}\\right) (7) \\\\ \\widehat {\\boldsymbol {M F}} _ {i} = \\boldsymbol {M F} _ {i} + \\operatorname {M L P} \\left(\\left[ \\boldsymbol {M F} _ {i}, \\boldsymbol {A W} ^ {O} \\right]\\right), (8) \\\\ \\end{array}\n$$\n", "text_format": "latex", "bbox": [ 96, 579, 468, 619 ], "page_idx": 4 }, { "type": "text", "text": "where $\\operatorname{Attention}(Q, K, V) = \\operatorname{softmax}\\left(\\frac{QK^T}{\\sqrt{d_k}}\\right)V$ , $d_k$ is the dimension of $K$ . $W^Q$ , $W^K$ , $W^V$ are projection matrices. $\\mathrm{MLP}(\\cdot)$ is multi-layer perceptron and $W^O$ is another projection matrix. We omit the normalization functions in the manuscript for simplicity. Motion pattern aggregation module does not change the dimension of motion features, so multiple cross-attention layers can be stacked easily.", "bbox": [ 75, 632, 468, 747 ], "page_idx": 4 }, { "type": "text", "text": "Once motion features are enhanced by the motion pattern aggregation module, each $\\widehat{MF}_i$ carries motion patterns that are consistent with $MF_{g}$ . Namely, the last motion feature receives high attention and consistent patterns in motion features are fully utilized.", "bbox": [ 75, 748, 468, 824 ], "page_idx": 4 }, { "type": "text", "text": "Above three components are seamlessly integrated into a unified pipeline: incorporating intermediate motion information, warping matching motions and emphasizing consistent motion patterns. Attributed to the innovative application of temporal continuity to a learning-based frame", "bbox": [ 75, 825, 468, 900 ], "page_idx": 4 }, { "type": "text", "text": "work, our proposed method is capable of overcoming the information scarcity issue in motion features and generating high-quality flow estimates even at an early refinement stage. This enables our method to achieve accurate final predictions, while reducing the demand for a number of refinements.", "bbox": [ 496, 340, 890, 431 ], "page_idx": 4 }, { "type": "text", "text": "3.3. Supervision", "text_level": 1, "bbox": [ 500, 440, 627, 455 ], "page_idx": 4 }, { "type": "text", "text": "Following RAFT [30], we choose $L_{1}$ distance between the predictions and ground-truth as the supervision signal for our model. The loss function $\\mathcal{L}$ is formally defined as:", "bbox": [ 498, 463, 890, 508 ], "page_idx": 4 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} = \\sum_ {j = 1} ^ {N} \\gamma^ {N - j} \\left\\| \\mathbf {u} ^ {g t} - \\mathbf {u} ^ {j} \\right\\| _ {1}, \\tag {9}\n$$\n", "text_format": "latex", "bbox": [ 596, 518, 890, 561 ], "page_idx": 4 }, { "type": "text", "text": "where $\\mathbf{u}^{gt}$ denotes the flow ground-truth and $\\mathbf{u}^j$ the flow prediction at $j$ -th stage. $N$ is the total refinement stages. The weight $\\gamma$ balances different stages of predictions.", "bbox": [ 496, 574, 890, 619 ], "page_idx": 4 }, { "type": "text", "text": "4. Experiments", "text_level": 1, "bbox": [ 500, 633, 633, 650 ], "page_idx": 4 }, { "type": "text", "text": "Datasets and evaluation setup. Following previous works [11, 45, 7], we provide experimental details and extensive comparison results on two event-based datasets DSEC-Flow [10] and MVSEC [44]. For DSEC-Flow, we train models on the official training set and evaluate DSEC-Flow test set on the public benchmark. For MVSEC, we conduct two kinds of experiments. Basically, following previous methods [43, 27], we train methods on outdoor_day2 sequence with ground-truth corresponding to a time interval of $dt = 1$ and $dt = 4$ gray images and evaluate 800 frames of outdoor_day1 and three indoor_flying sequences. Equally importantly, considering the supervised learning setting of our method and the large gap between outdoor_day and indoor_flying data, we extend the range of training data by including one indoor_flying sequence each time to further boost the accuracy of supervised learning methods.", "bbox": [ 496, 659, 890, 900 ], "page_idx": 4 }, { "type": "page_number", "text": "9689", "bbox": [ 482, 944, 514, 955 ], "page_idx": 4 }, { "type": "table", "img_path": "images/c56e5dad9054712f0f502bd3edfa29b45ea2e49357da9e742db3436340291a59.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td></td><td>Methods</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time(ms)</td></tr><tr><td>MB</td><td>MultiCM [27]</td><td>3.47</td><td>76.6</td><td>30.9</td><td>-</td></tr><tr><td rowspan=\"3\">SL</td><td>EV-FlowNet†[43]</td><td>2.32</td><td>55.4</td><td>18.6</td><td>5</td></tr><tr><td>E-RAFT [11]</td><td>0.79</td><td>12.5</td><td>2.7</td><td>52</td></tr><tr><td>Ours</td><td>0.74</td><td>10.9</td><td>2.3</td><td>30</td></tr></table>", "bbox": [ 81, 88, 464, 174 ], "page_idx": 5 }, { "type": "text", "text": "Table 1: Results on DSEC-Flow. Best accuracy in bold. $\\dagger$ denotes the result is taken from E-RAFT [11]. Model-based (MB) methods need no training data; and supervised learning (SL) methods need ground-truth.", "bbox": [ 75, 180, 468, 242 ], "page_idx": 5 }, { "type": "text", "text": "Metrics. The end-point-error (EPE) is used as core metric for prediction accuracy for both DSEC-Flow and MVSEC. To evaluate the robustness against large displacements, we compute the percentage of pixels with EPE greater than $M$ pixels $(M\\mathrm{PE},M = 1,3)$ for DSEC-Flow. Percentage of pixels with EPE above 3 and $5\\%$ of the magnitude of the flow ground-truth (\\% Outlier) are presented for MVSEC. On DSEC-Flow, metrics are measured over pixels with valid ground-truth. While on MVSEC, metrics are measured over pixels with valid ground-truth and at least one triggered event.", "bbox": [ 75, 250, 468, 412 ], "page_idx": 5 }, { "type": "text", "text": "Implementation details. The proposed TMA is implemented using PyTorch. We set the event segment $g = 5$ . For experiments on DSEC-Flow, the channel of event representation $B$ for each segment is set to 3. For MVSEC, $B$ is set to 1 when $dt = 1$ and 3 when $dt = 4$ , respectively. The sum of channels keeps the same with the state-of-the-art E-RAFT [11]. We only stack 1 layer of motion pattern aggregation module. Other components are basically identical to RAFT's model, including feature extractor, motion feature encoder and flow updater. Note that we use a small feature extractor whose final channel is 128. We predict 6 levels of optical flow and the weight $\\gamma$ is set to 0.8 for supervision. In training, we exploit AdamW [23] optimizer and One-cycle learning rate scheduler [28]. We train models on DSEC-Flow for 200K steps and MVSEC for 100K steps, both with a learning rate of 0.0002 and a batch size of 6.", "bbox": [ 75, 415, 470, 656 ], "page_idx": 5 }, { "type": "text", "text": "4.1. DSEC-Flow", "text_level": 1, "bbox": [ 76, 665, 205, 679 ], "page_idx": 5 }, { "type": "text", "text": "Accuracy comparison. Evaluation results on DSEC-Flow benchmark<sup>1</sup> are provided in Table 1. Compared with E-RAFT, our method improves the EPE from 0.79 to 0.74. Our method is also leading in 1PE and 3PE with a margin of 1.6 and 0.4, showing better robustness.", "bbox": [ 75, 688, 468, 763 ], "page_idx": 5 }, { "type": "text", "text": "Qualitative results are exhibited in Figure 5. In challenging regions such as textureless areas (the wall in second two columns, the shrubs in last two columns), existing correlation volume contains similar matching scores and fails to generate informative motion features, leading to low-quality predictions. On the contrary, our method aggregates", "bbox": [ 75, 763, 468, 854 ], "page_idx": 5 }, { "type": "image", "img_path": "images/913c95c892169db088b345359884f596481916bbb25a0f55db95311de59310a9.jpg", "image_caption": [ "Figure 6: EPE vs. number of iterations at inference. The figure exhibits the prediction results on DSEC-Flow at different stages during inference. Our method achieves an accuracy $(\\mathrm{EPE} = 0.81)$ comparable to E-RAFT with 2 iterations while E-RAFT needs 6 iterations." ], "image_footnote": [], "bbox": [ 509, 90, 879, 253 ], "page_idx": 5 }, { "type": "text", "text": "temporally consistent motion patterns to enhance motion features, distinguishing different moving objects and generating high-quality predictions.", "bbox": [ 496, 339, 890, 383 ], "page_idx": 5 }, { "type": "text", "text": "Efficiency comparison. The last column of Table 1 exhibits the inference time. Our method enjoys faster inference speed compared with E-RAFT, which is mainly attributed to fewer iterative updates. The reasonable explanation is that our method utilizes temporal motion information to enrich motion features, thus being able to generate good predictions even at an initial stage. To prove this, we compare the accuracy with E-RAFT at early inference stages in Figure 6. Our method achieves better flow initialization at early stages, supporting our argument. The ablation experiment on different iterations (Table 4e) also demonstrates that our method requires fewer iterations (ours: 6, E-RAFT: 12) to achieve surpassing accuracy.", "bbox": [ 496, 383, 892, 580 ], "page_idx": 5 }, { "type": "text", "text": "4.2.MVSEC", "text_level": 1, "bbox": [ 500, 589, 601, 604 ], "page_idx": 5 }, { "type": "text", "text": "Inter-domain evaluation. Table 2 reports the results on MVSEC training with outdoor_day2 sequence. The top of Table 2 reports the results corresponding to $dt = 1$ grayscale frame and the bottom corresponds to $dt = 4$ grayscale frames. Our method shows comparable accuracy on outdoor_day1 for $dt = 1$ and highest accuracy on outdoor_day1 for $dt = 4$ among all compared methods. Unfortunately, like two other supervised learning methods, DCEI-Flow [34] and E-RAFT [11], our method fails to achieve superior results on indoor_flying sequences. One possible reason is that model based methods and unsupervised learning methods usually have better generalization ability, while supervised learning methods are limited if training data has a significantly large gap with test data [36, 34]. Since outdoor_day sequences and indoor_flying sequences have a great domain gap, it is challenging for supervised learning methods to generalize well on indoor_flying sequences.", "bbox": [ 496, 613, 890, 869 ], "page_idx": 5 }, { "type": "text", "text": "Intra-domain evaluation. To verify the possible cause and better analyze the accuracy of our method under su", "bbox": [ 500, 869, 890, 900 ], "page_idx": 5 }, { "type": "page_footnote", "text": "<sup>1</sup>The ground-truth of DSEC-Flow dataset is unavailable, so we use last three checkpoints to evaluate the online benchmark. https://dsec.ifi.uzh.ch/uzh/dsec-flow-optical-flow-benchmark/.", "bbox": [ 75, 862, 468, 900 ], "page_idx": 5 }, { "type": "page_number", "text": "9690", "bbox": [ 482, 944, 514, 955 ], "page_idx": 5 }, { "type": "table", "img_path": "images/f2ed09171887807ee79b93eaf93ab7360fc399a14ce4e0bfa1c36feaaad76e50.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\"></td><td rowspan=\"2\">Input</td><td colspan=\"2\">indoor_flying1</td><td colspan=\"2\">indoor_flying2</td><td colspan=\"2\">indoor_flying3</td><td colspan=\"2\">outdoor_day1</td></tr><tr><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td></tr><tr><td colspan=\"11\">dt = 1</td></tr><tr><td rowspan=\"2\">MB</td><td>Brebion et al. [5]</td><td>E</td><td>0.52</td><td>0.10</td><td>0.98</td><td>5.50</td><td>0.71</td><td>2.10</td><td>0.53</td><td>0.20</td></tr><tr><td>MultiCM (Burgers') [27]</td><td>E</td><td>0.42</td><td>0.10</td><td>0.60</td><td>0.59</td><td>0.50</td><td>0.28</td><td>0.30</td><td>0.10</td></tr><tr><td rowspan=\"3\">SSL</td><td>EV-FlowNet [43]</td><td>E</td><td>1.03</td><td>2.20</td><td>1.72</td><td>15.10</td><td>1.53</td><td>11.90</td><td>0.49</td><td>0.20</td></tr><tr><td>Spike-FlowNet [20]</td><td>E</td><td>0.84</td><td>-</td><td>1.28</td><td>-</td><td>1.11</td><td>-</td><td>0.49</td><td>-</td></tr><tr><td>STE-FlowNet [7]</td><td>E</td><td>0.57</td><td>0.10</td><td>0.79</td><td>1.60</td><td>0.72</td><td>1.30</td><td>0.42</td><td>0.00</td></tr><tr><td rowspan=\"3\">USL</td><td>Hagenaars et al. [13]</td><td>E</td><td>0.60</td><td>0.51</td><td>1.17</td><td>8.06</td><td>0.93</td><td>5.64</td><td>0.47</td><td>0.25</td></tr><tr><td>Zhu et al. [45]</td><td>E</td><td>0.58</td><td>0.00</td><td>1.02</td><td>4.00</td><td>0.87</td><td>3.00</td><td>0.32</td><td>0.00</td></tr><tr><td>ECN [38]</td><td>E</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>0.30</td><td>0.02</td></tr><tr><td rowspan=\"3\">SL</td><td>E-RAFT [11]</td><td>E</td><td>1.10</td><td>5.72</td><td>1.94</td><td>30.79</td><td>1.66</td><td>25.20</td><td>0.24</td><td>0.00</td></tr><tr><td>DCEIFlow [34]</td><td>E + I</td><td>0.75</td><td>1.55</td><td>0.90</td><td>2.10</td><td>0.80</td><td>1.77</td><td>0.22</td><td>0.00</td></tr><tr><td>Ours</td><td>E</td><td>1.06</td><td>3.63</td><td>1.81</td><td>27.29</td><td>1.58</td><td>23.26</td><td>0.25</td><td>0.07</td></tr><tr><td colspan=\"11\">dt = 4</td></tr><tr><td>MB</td><td>MultiCM (Burgers') [27]</td><td>E</td><td>1.69</td><td>12.95</td><td>2.49</td><td>26.35</td><td>2.06</td><td>19.03</td><td>1.25</td><td>9.21</td></tr><tr><td rowspan=\"3\">SSL</td><td>EV-FlowNet [43]</td><td>E</td><td>2.25</td><td>24.70</td><td>4.05</td><td>45.30</td><td>3.45</td><td>39.70</td><td>1.23</td><td>7.30</td></tr><tr><td>Spike-FlowNet [20]</td><td>E</td><td>2.24</td><td>-</td><td>3.83</td><td>-</td><td>3.18</td><td>-</td><td>1.09</td><td>-</td></tr><tr><td>STE-FlowNet [7]</td><td>E</td><td>1.77</td><td>14.70</td><td>2.52</td><td>26.10</td><td>2.23</td><td>22.10</td><td>0.99</td><td>3.90</td></tr><tr><td rowspan=\"2\">USL</td><td>Zhu et al. [45]</td><td>E</td><td>2.18</td><td>24.20</td><td>3.85</td><td>46.80</td><td>3.18</td><td>47.80</td><td>1.30</td><td>9.70</td></tr><tr><td>Hagenaars et al. [13]</td><td>E</td><td>2.16</td><td>21.51</td><td>3.90</td><td>40.72</td><td>3.00</td><td>29.60</td><td>1.69</td><td>12.50</td></tr><tr><td rowspan=\"3\">SL</td><td>DCEIFlow [34]</td><td>E + I</td><td>2.08</td><td>21.47</td><td>3.48</td><td>42.05</td><td>2.51</td><td>29.73</td><td>0.89</td><td>3.19</td></tr><tr><td>E-RAFT [11]</td><td>E</td><td>2.81</td><td>40.25</td><td>5.09</td><td>64.19</td><td>4.46</td><td>57.11</td><td>0.72</td><td>1.12</td></tr><tr><td>Ours</td><td>E</td><td>2.43</td><td>29.91</td><td>4.32</td><td>52.74</td><td>3.60</td><td>42.02</td><td>0.70</td><td>1.08</td></tr></table>", "bbox": [ 84, 88, 885, 489 ], "page_idx": 6 }, { "type": "table", "img_path": "images/75f3f968d5c41e898b98264cd0c03cb842560de7f92dd5f719cdcc3a4f726435.jpg", "table_caption": [ "Table 2: Evaluation results on MVSEC [44] training with outdoor_day2 sequence. Model-based (MB) methods need no training data; semi-supervised learning (SSL) methods use grayscale images for supervision; unsupervised learning (USL) methods only require events; and supervised learning (SL) methods need ground-truth. E means the method only uses events as input; and I means the method requires images as input." ], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">dt = 4</td><td rowspan=\"2\">Train Set +</td><td colspan=\"2\">indoor_flying1</td><td colspan=\"2\">indoor_flying2</td><td colspan=\"2\">indoor_flying3</td><td colspan=\"2\">outdoor_day1</td></tr><tr><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td></tr><tr><td>E-RAFT [11]</td><td rowspan=\"2\">indoor_flying1</td><td>-</td><td>-</td><td>2.35</td><td>26.24</td><td>1.84</td><td>18.07</td><td>0.72</td><td>1.38</td></tr><tr><td>Ours</td><td>-</td><td>-</td><td>2.15</td><td>20.41</td><td>1.68</td><td>14.30</td><td>0.64</td><td>0.98</td></tr><tr><td>E-RAFT [11]</td><td rowspan=\"2\">indoor_flying2</td><td>1.41</td><td>8.14</td><td>-</td><td>-</td><td>1.50</td><td>9.37</td><td>0.71</td><td>1.13</td></tr><tr><td>Ours</td><td>1.32</td><td>5.94</td><td>-</td><td>-</td><td>1.50</td><td>8.88</td><td>0.64</td><td>0.96</td></tr><tr><td>E-RAFT [11]</td><td rowspan=\"2\">indoor_flying3</td><td>1.39</td><td>8.38</td><td>1.77</td><td>17.52</td><td>-</td><td>-</td><td>0.72</td><td>1.46</td></tr><tr><td>Ours</td><td>1.33</td><td>5.82</td><td>1.67</td><td>12.80</td><td>-</td><td>-</td><td>0.67</td><td>1.10</td></tr></table>", "bbox": [ 83, 574, 883, 715 ], "page_idx": 6 }, { "type": "text", "text": "Table 3: Evaluation results on MVSEC [44] training with outdoor_day2 and one indoor_flying sequence. + means the indoor_flying sequence to be included into training set.", "bbox": [ 75, 717, 892, 750 ], "page_idx": 6 }, { "type": "text", "text": "pervised learning setting, we incorporate one indoor_flying sequence into training set each time and make comparisons with the supervised learning state-of-the-art E-RAFT. Table 3 shows the evaluation results corresponding to $dt = 4$ grayscale frames (For $dt = 1$ , refer to appendix). Compared with the results in Table 2, E-RAFT and our method both achieve great improvement on indoor_flying sequences (EPE of indoor_flying2, ours: $4.32 \\rightarrow 1.67$ , E-RAFT: 5.09 → 1.77), confirming the presence of domain gap between", "bbox": [ 75, 757, 472, 893 ], "page_idx": 6 }, { "type": "text", "text": "outdoor_day and indoor_flying data. Compared with the accuracy of E-RAFT with the same training set, on the one hand, our method shows better generalization ability, which generates lower EPE and $\\%$ Outlier without seeing indoor_flying sequences. On the other hand, our method achieves higher accuracy on four sequences by incorporating indoor_flying sequences into training set. Overall, our method achieves a new state-of-the-art result, demonstrating the effectiveness of our proposed method.", "bbox": [ 496, 757, 893, 893 ], "page_idx": 6 }, { "type": "page_number", "text": "9691", "bbox": [ 482, 944, 513, 957 ], "page_idx": 6 }, { "type": "table", "img_path": "images/97129115d91c360c5c2197e004c27cc0f178f606faa3d1a7b3fb4bbc14118cd4.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>splits</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>1</td><td>0.79</td><td>11.91</td><td>2.75</td><td>16</td></tr><tr><td>3</td><td>0.76</td><td>10.98</td><td>2.45</td><td>18</td></tr><tr><td rowspan=\"2\">5/7</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.74</td><td>11.13</td><td>2.26</td><td>50</td></tr></table>", "bbox": [ 86, 88, 472, 179 ], "page_idx": 7 }, { "type": "table", "img_path": "images/5a487fbbb1f9ed44b18924752496a67e6595a83a0ec621e5fb3f7ca20210152a.jpg", "table_caption": [ "(a) Event splitting. Intermediate motion information contributes" ], "table_footnote": [], "table_body": "<table><tr><td>setup</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>basic</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>+v_Proj</td><td>0.75</td><td>10.90</td><td>2.35</td><td>30</td></tr><tr><td>circular</td><td>0.76</td><td>11.25</td><td>2.44</td><td>30</td></tr></table>", "bbox": [ 88, 196, 472, 271 ], "page_idx": 7 }, { "type": "table", "img_path": "images/91450d64bd7e52d1fd6f36f751ba9bea71760a969f26434b948f0687f87533b2.jpg", "table_caption": [ "(c) Pattern aggregation module design." ], "table_footnote": [ "(e) Iterations. TMA achieves good results with a few iterations." ], "table_body": "<table><tr><td>iterations</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>2</td><td>0.83</td><td>11.04</td><td>2.37</td><td>10</td></tr><tr><td>4</td><td>0.76</td><td>11.45</td><td>2.43</td><td>16</td></tr><tr><td rowspan=\"2\">6/8</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.74</td><td>10.81</td><td>2.32</td><td>54</td></tr></table>", "bbox": [ 86, 301, 470, 393 ], "page_idx": 7 }, { "type": "table", "img_path": "images/04d50b167edbeda2715247b1aa4f2d38ca1d20c0c5df48ea3ae54815729c5ff3.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>style</td><td>EPE</td><td>1PE</td><td>3PE</td></tr><tr><td>w/o</td><td>0.78</td><td>12.00</td><td>2.66</td></tr><tr><td>linear</td><td>0.74</td><td>10.86</td><td>2.30</td></tr><tr><td>same</td><td>0.76</td><td>11.45</td><td>2.48</td></tr></table>", "bbox": [ 491, 88, 879, 165 ], "page_idx": 7 }, { "type": "table", "img_path": "images/06c5d04f2929d106dea5f3a21455b1508f20f36bc4f943fb697fbf6f9afe2cca.jpg", "table_caption": [ "(b) Lookup style. Sampling correlation volumes with a set of linear coordinates improves the accuracy." ], "table_footnote": [], "table_body": "<table><tr><td>layers</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>0</td><td>0.75</td><td>11.36</td><td>2.33</td><td>20</td></tr><tr><td rowspan=\"2\">1/2</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.75</td><td>10.90</td><td>2.32</td><td>38</td></tr></table>", "bbox": [ 491, 196, 877, 271 ], "page_idx": 7 }, { "type": "table", "img_path": "images/43d2044be5526ce3f3559a5f67c56a119d9dbacb6177299752ff814134cc6270.jpg", "table_caption": [ "(d) Layers of pattern aggregation module. Stacking 1 pattern aggregation module showcases high accuracy." ], "table_footnote": [], "table_body": "<table><tr><td>radius</td><td>EPE</td><td>1PE</td><td>3PE</td></tr><tr><td>1</td><td>0.75</td><td>11.14</td><td>2.37</td></tr><tr><td>2</td><td>0.76</td><td>11.16</td><td>2.39</td></tr><tr><td rowspan=\"2\">3/4</td><td>0.74</td><td>10.86</td><td>2.30</td></tr><tr><td>0.75</td><td>10.93</td><td>2.30</td></tr></table>", "bbox": [ 491, 303, 874, 393 ], "page_idx": 7 }, { "type": "text", "text": "(f) Searching radius. A radius of 3 leads to high accuracy.", "bbox": [ 509, 395, 859, 410 ], "page_idx": 7 }, { "type": "text", "text": "Table 4: TMA ablations. Models are trained on DSEC-Flow. Settings used in our final model are underlined.", "bbox": [ 122, 412, 844, 426 ], "page_idx": 7 }, { "type": "text", "text": "4.3. Ablations", "text_level": 1, "bbox": [ 76, 436, 187, 450 ], "page_idx": 7 }, { "type": "text", "text": "We conduct a series of ablation experiments to validate the proposed improvements. All ablation models are trained on DSEC-Flow and evaluated on the public benchmark.", "bbox": [ 75, 460, 468, 505 ], "page_idx": 7 }, { "type": "text", "text": "Event splitting. We compare different numbers of event segments in Table 4a. We choose different splits in 1, 3, 5 and 7. With the split set to 1, our model degrades into a classic correlation volume based framework and exhibits similar accuracy in comparison with E-RAFT. More splits lead to higher accuracy but lower inference efficiency, so we use 5 splits to achieve accuracy-efficiency trade-off.", "bbox": [ 75, 506, 468, 611 ], "page_idx": 7 }, { "type": "text", "text": "Lookup style. Based on the assumption that the optical flow changes linearly over a short period, we propose the linear lookup strategy. To validate it, we try to cancel the lookup operation or just use same sampling coordinates on intermediate correlation volumes. As Table 4b shows, sampling the correlation maps with a set of linear coordinates leads to high accuracy.", "bbox": [ 75, 612, 468, 717 ], "page_idx": 7 }, { "type": "text", "text": "Pattern aggregation module design. We ablate different components of pattern aggregation module in Table 4c. By default, we set the projection matrix of value $W^V$ as an identity matrix because the motion features are encoded by a motion feature encoder beforehand. In addition, we replace the pairing mode of motion features with circular pairing. Circular pairing gives equal treatment to all motion features without highlighting the importance of the last motion feature, which fails to improve accuracy.", "bbox": [ 75, 718, 468, 853 ], "page_idx": 7 }, { "type": "text", "text": "Layers of pattern aggregation module. We compare the accuracy with different layers of pattern aggregation modules in Table 4d. We note that stacking 1 layer of pat", "bbox": [ 75, 854, 468, 900 ], "page_idx": 7 }, { "type": "text", "text": "tern aggregation module showcases high accuracy. More layers may lead to difficulties in optimization, which in turn causes a decrease in accuracy.", "bbox": [ 496, 436, 890, 481 ], "page_idx": 7 }, { "type": "text", "text": "Iterations. Iterative learning plays a role in numerous works [18, 30]. Results in Table 4e show that 6 iterative updates reach the sweet spot of accuracy and efficiency.", "bbox": [ 496, 483, 890, 527 ], "page_idx": 7 }, { "type": "text", "text": "Searching radius. We compare different radii for looking up correlation volumes in Table 4f. Searching radius of 3 leads to high accuracy. Different from RAFT [30] that achieves better predictions with an increased radius, our model does not benefit a lot from a greater radius.", "bbox": [ 496, 527, 890, 603 ], "page_idx": 7 }, { "type": "text", "text": "5. Conclusion", "text_level": 1, "bbox": [ 500, 618, 617, 633 ], "page_idx": 7 }, { "type": "text", "text": "In this paper, we delve into event-based optical flow estimation problem. Different from existing methods that represent the event stream as static frames to adopt the classic correlation volume based pipeline, we contend that the temporal continuity is a vital element of event-based optical flow. We propose a novel Temporal Motion Aggregation (TMA) approach to unlock its potential within a learning-based framework. By incorporating temporally fine-grained motion information, TMA generates high-quality flow estimates at early stages, which not only enables TMA to obtain accurate final predictions, but also greatly reduces the demand for a number of refinements. Extensive experiments on DESC-Flow and MVSEC datasets verify the effectiveness and superiority of TMA. Meanwhile, we notice the limitations of supervised learning in generalization ability and expect further improvement to extend our idea into unsupervised learning frameworks.", "bbox": [ 496, 643, 890, 900 ], "page_idx": 7 }, { "type": "page_number", "text": "9692", "bbox": [ 482, 944, 514, 955 ], "page_idx": 7 }, { "type": "text", "text": "Acknowledgments: This work was supported in part by Shanghai Municipal Science and Technology Major Project under Grant 2018SHZDZX01, ZJ Lab, the Shanghai Center for Brain Science and Brain-Inspired Technology, in part by Shanghai Rising Star Program under Grant 21QC1400900, in part by Tongji-Qomolo Autonomous Driving Commercial Vehicle Joint Lab Project, and in part by Xiaomi Young Talents Program.", "bbox": [ 75, 90, 472, 203 ], "page_idx": 8 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 78, 229, 173, 244 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[1] Himanshu Akolkar, Sio-Hoi Ieng, and Ryad Benosman. Real-time high speed motion prediction using fast aperture-robust event-driven visual flow. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(1):361-372, 2020. 2", "[2] Mohammed Almatrafi, Raymond Baldwin, Kiyoharu Aizawa, and Keigo Hirakawa. Distance surface for event-based optical flow. IEEE transactions on pattern analysis and machine intelligence, 42(7):1547-1556, 2020. 2", "[3] Ryad Benosman, Charles Clercq, Xavier Lagorce, Sio-Hoi Ieng, and Chiara Bartolozzi. Event-based visual flow. IEEE transactions on neural networks and learning systems, 25(2):407-417, 2013. 2", "[4] Ryad Benosman, Sio-Hoi Ieng, Charles Clercq, Chiara Bartolozzi, and Mandyam Srinivasan. Asynchronous frameless event-based optical flow. Neural Networks, 27:32-37, 2012. 2", "[5] Vincent Brebion, Julien Moreau, and Franck Davoine. Realtime optical flow for vehicular perception with low-and high-resolution event cameras. IEEE Transactions on Intelligent Transportation Systems, 2021. 7", "[6] Tobias Brosch, Stephan Tschechne, and Heiko Neumann. On event-based optical flow detection. Frontiers in neuroscience, 9:137, 2015. 2", "[7] Ziluo Ding, Rui Zhao, Jiyuan Zhang, Tianxiao Gao, Ruiqin Xiong, Zhaofei Yu, and Tiejun Huang. Spatio-temporal recurrent networks for event-based optical flow estimation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 525-533, 2022. 3, 5, 7", "[8] Guillermo Gallego, Tobi Delbrück, Garrick Orchard, Chiara Bartolozzi, Brian Taba, Andrea Censi, Stefan Leutenegger, Andrew J Davison, Jörg Conradt, Kostas Daniilidis, et al. Event-based vision: A survey. IEEE transactions on pattern analysis and machine intelligence, 44(1):154-180, 2020. 1", "[9] Guillermo Gallego, Henri Rebecq, and Davide Scaramuzza. A unifying contrast maximization framework for event cameras, with applications to motion, depth, and optical flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3867-3876, 2018. 2, 4", "[10] Mathias Gehrig, Willem Aarents, Daniel Gehrig, and Davide Scaramuzza. Dsec: A stereo event camera dataset for driving scenarios. IEEE Robotics and Automation Letters, 6(3):4947-4954, 2021. 2, 3, 5", "[11] Mathias Gehrig, Mario Millhäsler, Daniel Gehrig, and Davide Scaramuzza. E-raft: Dense optical flow from event cam" ], "bbox": [ 78, 255, 470, 900 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "eras. In 2021 International Conference on 3D Vision (3DV), pages 197-206. IEEE, 2021. 1, 2, 3, 4, 5, 6, 7", "[12] Mathias Gehrig, Manasi Muglikar, and Davide Scaramuzza. Dense continuous-time optical flow from events and frames. arXiv preprint arXiv:2203.13674, 2022. 3", "[13] Jesse Hagenaars, Federico Paredes-Vallés, and Guido De Croon. Self-supervised learning of event-based optical flow with spiking neural networks. Advances in Neural Information Processing Systems, 34:7167-7179, 2021. 7", "[14] Markus Hofinger, Samuel Rota Bulò, Lorenzo Porzi, Arno Knapitsch, Thomas Pock, and Peter Kontschieder. Improving optical flow on a pyramid level. In European Conference on Computer Vision, pages 770-786. Springer, 2020. 2", "[15] Tak-Wai Hui and Chen Change Loy. Liteflownet3: Resolving correspondence ambiguity for more accurate optical flow estimation. In European Conference on Computer Vision, pages 169-184. Springer, 2020. 2", "[16] Tak-Wai Hui, Xiaou Tang, and Chen Change Loy. Liteflownet: A lightweight convolutional neural network for optical flow estimation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8981-8989, 2018. 2", "[17] Tak-Wai Hui, Xiaou Tang, and Chen Change Loy. A lightweight optical flow cnn—revisiting data fidelity and regularization. IEEE transactions on pattern analysis and machine intelligence, 43(8):2555-2569, 2020. 2", "[18] Junhwa Hur and Stefan Roth. Iterative residual refinement for joint optical flow and occlusion estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5754-5763, 2019. 1, 2, 3, 8", "[19] Shihao Jiang, Dylan Campbell, Yao Lu, Hongdong Li, and Richard Hartley. Learning to estimate hidden motions with global motion aggregation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9772-9781, 2021. 2, 5", "[20] Chankyu Lee, Adarsh Kumar Kosta, Alex Zihao Zhu, Kenneth Chaney, Kostas Daniilidis, and Kaushik Roy. Spikeflownet: event-based optical flow estimation with energy-efficient hybrid neural networks. In European Conference on Computer Vision, pages 366-382. Springer, 2020. 7", "[21] Min Liu and Tobi Delbruck. Adaptive time-slice block-matching optical flow algorithm for dynamic vision sensors. BMVC, 2018. 2", "[22] Min Liu and Tobi Delbruck. Edflow: Event driven optical flow camera with keypoint detection and adaptive block matching. IEEE Transactions on Circuits and Systems for Video Technology, 32(9):5776-5789, 2022. 2", "[23] Ilya Loshchilov and Frank Hutter. Fixing weight decay regularization in adam. 2017. 6", "[24] Federico Paredes-Vallés and Guido CHE de Croon. Back to event basics: Self-supervised learning of image reconstruction for event cameras via photometric constancy. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3446-3455, 2021. 1, 3", "[25] Anurag Ranjan and Michael J Black. Optical flow estimation using a spatial pyramid network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4161-4170, 2017. 2" ], "bbox": [ 503, 92, 890, 900 ], "page_idx": 8 }, { "type": "page_number", "text": "9693", "bbox": [ 482, 944, 514, 955 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[26] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234-241. Springer, 2015. 3", "[27] Shintaro Shiba, Yoshimitsu Aoki, and Guillermo Gallego. Secrets of event-based optical flow. In European Conference on Computer Vision, pages 628-645. Springer, 2022. 2, 5, 6, 7", "[28] Leslie N Smith and Nicholay Topin. Super-convergence: Very fast training of neural networks using large learning rates. In Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications, volume 11006, page 1100612. International Society for Optics and Photonics, 2019. 6", "[29] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. Pwc-net: Cnns for optical flow using pyramid, warping, and cost volume. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8934-8943, 2018. 1, 2", "[30] Zachary Teed and Jia Deng. Raft: Recurrent all-pairs field transforms for optical flow. In European conference on computer vision, pages 402-419. Springer, 2020. 1, 2, 3, 5, 8", "[31] Stepan Tulyakov, Alfredo Bochicchio, Daniel Gehrig, Stamatios Georgoulis, Yuanyou Li, and Davide Scaramuzza. Time lens++: Event-based frame interpolation with parametric non-linear flow and multi-scale fusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17755-17764, 2022. 1", "[32] Stepan Tulyakov, Daniel Gehrig, Stamatios Georgoulis, Julius Erbach, Mathias Gehrig, Yuanyou Li, and Davide Scaramuzza. Time lens: Event-based video frame interpolation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 16155-16164, 2021. 1", "[33] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. 5", "[34] Zhexiong Wan, Yuchao Dai, and Yuxin Mao. Learning dense and continuous optical flow from an event camera. IEEE Transactions on Image Processing, 31:7237-7251, 2022. 1, 3, 4, 6, 7", "[35] Haofei Xu, Jiaolong Yang, Jianfei Cai, Juyong Zhang, and Xin Tong. High-resolution optical flow from 1d attention and correlation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10498-10507, 2021. 2", "[36] Haofei Xu, Jing Zhang, Jianfei Cai, Hamid Rezatofighi, and Dacheng Tao. Gmflow: Learning optical flow via global matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8121-8130, 2022. 2, 6", "[37] Gengshan Yang and Deva Ramanan. Volumetric correspondence networks for optical flow. Advances in neural information processing systems, 32:794-805, 2019. 2", "[38] Chengxi Ye, Anton Mitrokhin, Cornelia Fermüller, James A Yorke, and Yiannis Aloimonos. Unsupervised learning of" ], "bbox": [ 78, 90, 470, 902 ], "page_idx": 9 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "dense optical flow, depth and egomotion with event-based sensors. In 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 5831-5838. IEEE, 2020. 1, 2, 7", "[39] Feihu Zhang, Victor Prisacariu, Ruigang Yang, and Philip HS Torr. Ga-net: Guided aggregation net for end-to-end stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 185-194, 2019. 2", "[40] Feihu Zhang, Xiaojuan Qi, Ruigang Yang, Victor Prisacariu, Benjamin Wah, and Philip Torr. Domain-invariant stereo matching networks. In European Conference on Computer Vision, pages 420-439. Springer, 2020. 2", "[41] Feihu Zhang, Oliver J Woodford, Victor Adrian Prisacariu, and Philip HS Torr. Separable flow: Learning motion cost volumes for optical flow estimation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10807-10817, 2021. 2", "[42] Xu Zheng, Yexin Liu, Yunfan Lu, Tongyan Hua, Tianbo Pan, Weiming Zhang, Dacheng Tao, and Lin Wang. Deep learning for event-based vision: A comprehensive survey and benchmarks. arXiv preprint arXiv:2302.08890, 2023. 1", "[43] Alex Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Ev-flownet: Self-supervised optical flow estimation for event-based cameras. In Proceedings of Robotics: Science and Systems, Pittsburgh, Pennsylvania, June 2018, 2, 5, 6, 7", "[44] Alex Zihao Zhu, Dinesh Thakur, Tolga Özaslan, Bernd Pfrommer, Vijay Kumar, and Kostas Daniilidis. The multivehicle stereo event camera dataset: An event camera dataset for 3d perception. IEEE Robotics and Automation Letters, 3(3):2032-2039, 2018. 2, 3, 5, 7", "[45] Alex Zihao Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Unsupervised event-based learning of optical flow, depth, and egomotion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 989-997, 2019. 1, 2, 3, 4, 5, 7" ], "bbox": [ 501, 92, 893, 613 ], "page_idx": 9 }, { "type": "page_number", "text": "9694", "bbox": [ 482, 945, 514, 955 ], "page_idx": 9 }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178[ [ { "type": "header", "bbox": [ 0.107, 0.003, 0.182, 0.043 ], "angle": 0, "content": "CVF" }, { "type": "header", "bbox": [ 0.239, 0.001, 0.808, 0.047 ], "angle": 0, "content": "This ICCV paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore." }, { "type": "title", "bbox": [ 0.147, 0.131, 0.825, 0.154 ], "angle": 0, "content": "TMA: Temporal Motion Aggregation for Event-based Optical Flow" }, { "type": "text", "bbox": [ 0.2, 0.179, 0.77, 0.234 ], "angle": 0, "content": "Haotian Liu<sup>1</sup> Guang Chen<sup>1*</sup> Sanqing Qu<sup>1</sup> Yanping Zhang<sup>1</sup> \nZhijun Li<sup>1</sup> Alois Knoll<sup>2</sup> Changjun Jiang<sup>1</sup> \n<sup>1</sup>Tongji University <sup>2</sup>Technical University of Munich" }, { "type": "title", "bbox": [ 0.235, 0.269, 0.314, 0.285 ], "angle": 0, "content": "Abstract" }, { "type": "text", "bbox": [ 0.076, 0.301, 0.474, 0.725 ], "angle": 0, "content": "Event cameras have the ability to record continuous and detailed trajectories of objects with high temporal resolution, thereby providing intuitive motion cues for optical flow estimation. Nevertheless, most existing learning-based approaches for event optical flow estimation directly remould the paradigm of conventional images by representing the consecutive event stream as static frames, ignoring the inherent temporal continuity of event data. In this paper, we argue that temporal continuity is a vital element of event-based optical flow and propose a novel Temporal Motion Aggregation (TMA) approach to unlock its potential. Technically, TMA comprises three components: an event splitting strategy to incorporate intermediate motion information underlying the temporal context, a linear lookup strategy to align temporally fine-grained motion features and a novel motion pattern aggregation module to emphasize consistent patterns for motion feature enhancement. By incorporating temporally fine-grained motion information, TMA can derive better flow estimates than existing methods at early stages, which not only enables TMA to obtain more accurate final predictions, but also greatly reduces the demand for a number of refinements. Extensive experiments on DSEC-Flow and MVSEC datasets verify the effectiveness and superiority of our TMA. Remarkably, compared to E-RAFT, TMA achieves a \\(6\\%\\) improvement in accuracy and a \\(40\\%\\) reduction in inference time on DSEC-Flow. Code will be available at https://github.com/ispc-lab/TMA." }, { "type": "title", "bbox": [ 0.078, 0.745, 0.21, 0.76 ], "angle": 0, "content": "1. Introduction" }, { "type": "text", "bbox": [ 0.076, 0.771, 0.47, 0.877 ], "angle": 0, "content": "Optical flow aims to compute the velocity of objects on the image plane without geometry prior and is a fundamental topic in event-based vision [8, 42]. It plays an important role in many applications, such as ego-motion estimation [38, 45], image reconstruction [24], and video frame interpolation [32, 31]. Recently, learning-based methods [29, 18, 30] have dominated frame-based optical flow" }, { "type": "image", "bbox": [ 0.508, 0.259, 0.696, 0.348 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.549, 0.348, 0.656, 0.36 ], "angle": 0, "content": "(a) reference image" }, { "type": "image", "bbox": [ 0.697, 0.259, 0.886, 0.348 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.749, 0.348, 0.834, 0.359 ], "angle": 0, "content": "(b) event frame" }, { "type": "image", "bbox": [ 0.508, 0.359, 0.696, 0.448 ], "angle": 0, "content": null }, { "type": "image", "bbox": [ 0.509, 0.448, 0.696, 0.534 ], "angle": 0, "content": null }, { "type": "image", "bbox": [ 0.698, 0.359, 0.886, 0.448 ], "angle": 0, "content": null }, { "type": "image", "bbox": [ 0.698, 0.448, 0.885, 0.534 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.503, 0.534, 0.876, 0.546 ], "angle": 0, "content": "(c) E-RAFT output & motion feature (d) our output & motion feature" }, { "type": "text", "bbox": [ 0.498, 0.549, 0.892, 0.716 ], "angle": 0, "content": "Figure 1: Accuracy illustrations. (a) Reference image from DSEC-Flow. (b) Corresponding event frame. (c) The final flow prediction and visualization of the motion feature from E-RAFT [11]. (d) The final flow prediction and visualization of the motion feature from our proposed method. We visualize the motion feature at the initial stage by taking the average across channels. E-RAFT fails to generate informative motion features and results in blurred boundaries. In contrast, our method utilizes temporally fine-grained motion information to address the information scarcity issue in motion features, generating high-quality predictions." }, { "type": "text", "bbox": [ 0.498, 0.72, 0.893, 0.901 ], "angle": 0, "content": "by employing correlation volumes to derive motion features for flow regression. Inspired by this, several event-based approaches [11, 34] adopt a similar paradigm by converting the consecutive event stream into grid-like representations. Despite encouraging progress, these methods still suffer from non-negligible limitations, due to the great differences between event data and conventional images. Distinct from dense and colorful conventional (RGB) images, event data features spatial sparsity and a lack of intensity information. It is prone to result in close matching scores and invalid regions in the correlation volume. Consequently, less informative motion features are derived and regress inaccurate" }, { "type": "page_footnote", "bbox": [ 0.095, 0.887, 0.361, 0.901 ], "angle": 0, "content": "*corresponding author: guangchen@tongii.edu.cn" }, { "type": "page_number", "bbox": [ 0.483, 0.945, 0.516, 0.957 ], "angle": 0, "content": "9685" } ], [ { "type": "text", "bbox": [ 0.077, 0.092, 0.465, 0.107 ], "angle": 0, "content": "predictions. Figure 1 illustrates this issue in E-RAFT [11]." }, { "type": "text", "bbox": [ 0.076, 0.108, 0.468, 0.273 ], "angle": 0, "content": "As the saying goes, each coin has two sides. Though event cameras encode visual information in a sparse manner, they are capable of capturing continuous and detailed object trajectories with high temporal resolution, thereby providing rich motion cues for optical flow estimation. Several model-based methods [9, 27] benefit from the temporal continuity by warping events along point trajectories, achieving decent performance. Drawing on this observation, we contend that the temporal continuity is a vital element of event-based optical flow and propose to unleash its potential within a learning-based framework." }, { "type": "text", "bbox": [ 0.076, 0.274, 0.47, 0.681 ], "angle": 0, "content": "To materialize our idea, we propose a novel Temporal Motion Aggregation (TMA) approach to explore the inherent temporal continuity of event data. Technically, we revamp the dominant learning-based architectures with three distinct components. We first introduce an event splitting strategy for temporally-dense correlation volumes computation. By splitting the event stream into multiple segments and extracting their features, feature similarities are compared between the first feature and all others, which record rich intermediate motion information. Aware of that correlation volumes record motions between different time spans, we then design a linear lookup strategy to sample each correlation volume based on the corresponding flow estimate to encode motion features. As a result, fine-grained motions are warped to the same pixels across motion features. Furthermore, we consider the incorrect motion patterns in intermediate motion features due to the manual lookup. Therefore, we propose a novel pattern aggregation module for motion feature enhancement by aggregating consistent patterns between each intermediate motion feature and the last one (without manual lookup). Thanks to the incorporation of temporally fine-grained motion information, TMA can effectively address the information scarcity in motion features and thus generate good flow estimates at early stages, which not only enable TMA to obtain accurate flow predictions, but also greatly reduces the demand for a number of time-consuming refinements." }, { "type": "text", "bbox": [ 0.077, 0.682, 0.47, 0.727 ], "angle": 0, "content": "We evaluate our TMA on DSEC-Flow [10] and MVSEC [44] datasets. Extensive experiments demonstrate the superior advantages of TMA." }, { "type": "text", "bbox": [ 0.097, 0.728, 0.434, 0.743 ], "angle": 0, "content": "In summary, our main contributions are as follows:" }, { "type": "text", "bbox": [ 0.096, 0.75, 0.469, 0.794 ], "angle": 0, "content": "- We argue that the temporal continuity of event data is a vital element of event-based optical flow and propose to unlock its potential in a learning-based framework." }, { "type": "text", "bbox": [ 0.096, 0.803, 0.469, 0.863 ], "angle": 0, "content": "- We propose a novel Temporal Motion Aggregation (TMA) approach, which comprises three components: an event splitting strategy, a linear lookup strategy and a motion pattern aggregation module." }, { "type": "text", "bbox": [ 0.096, 0.871, 0.469, 0.901 ], "angle": 0, "content": "- The incorporation of temporally fine-grained motion information enables TMA to achieve high accuracy" }, { "type": "list", "bbox": [ 0.096, 0.75, 0.469, 0.901 ], "angle": 0, "content": null }, { "type": "text", "bbox": [ 0.532, 0.092, 0.892, 0.136 ], "angle": 0, "content": "while maintaining high efficiency. Compared with E-RAFT, TMA achieves a \\(6\\%\\) improvement in accuracy and a \\(40\\%\\) reduction in inference time on DSEC-Flow." }, { "type": "title", "bbox": [ 0.5, 0.151, 0.642, 0.166 ], "angle": 0, "content": "2. Related Work" }, { "type": "text", "bbox": [ 0.498, 0.177, 0.892, 0.386 ], "angle": 0, "content": "Learning methods for optical flow estimation. Recently, correlation volume based approaches dominate the learning-based optical flow estimation [25, 17, 29, 18, 37, 14]. As a milestone, PwCNet [29] summarizes a simple principle in architecture construction: pyramidal processing, warping and correlation volumes computation. Following the well-established pipeline, LiteFlowNet series [16, 17, 15] propose cascaded feature pyramids with a lightweight convolutional burden. VCN [37] proposes 4D volumetric U-Net architectures to enlarge the receptive fields for correlation volumes. IRR [18] notes the reusability of pyramidal refinement for flow update and proposes a shared-weights refiner across all scales, which can be combined with mainstream learning methods." }, { "type": "text", "bbox": [ 0.498, 0.388, 0.892, 0.614 ], "angle": 0, "content": "However, the correlation volumes used in previous works are computed locally, which cannot fully deal with long-term motions. RAFT [30] firstly introduces the full correlation volume to capture global visual similarities. Separable Flow [41] proposes a separable correlation volume module as a drop-in replacement to correlation volumes and uses non-local aggregation layers [39, 40] to refine the correlation volumes efficiently. Besides, transformer components show promising performance on optical flow [36, 19, 35]. GMA [19] notices the underlying motion clues in the context and introduces an attention layer to aggregate hidden motions, improving the accuracy based on RAFT architecture. GMFlow [36] reformulates optical flow as a global matching problem by attention blocks, suggesting a new paradigm for flow estimation." }, { "type": "text", "bbox": [ 0.498, 0.615, 0.892, 0.703 ], "angle": 0, "content": "We draw inspiration from GMA [19] to design our motion pattern aggregation module. In contrast to GMA which aggregates hidden motion patterns in the spatial context for motion feature enhancement, we extend the pattern aggregation to the temporal dimension and leverage feature cross-similarities to enhance the motion feature." }, { "type": "text", "bbox": [ 0.498, 0.705, 0.892, 0.856 ], "angle": 0, "content": "Event-based optical flow estimation. A number of traditional works remould frame-based approaches into event-based optical flow estimation. Benosman et al. [4] extends the classic Lucas-Kanade method to event-based optical flow. Liu et al. [21, 22] implement event-based corner keypoint detection and novel block-matching optical flow. Gallego et al. [9] propose a unifying contrast maximization (CM) framework and MultiCM [27] extends it to complex scenes. Besides, plane fitting [1, 3], filter banks [6] and time surface matching [2] are proposed to boost performance." }, { "type": "text", "bbox": [ 0.498, 0.856, 0.892, 0.901 ], "angle": 0, "content": "More recently, learning-based methods have dominated frame-based optical flow, inspiring attempts at event-based optical flow. Early learning methods [43, 45, 38] represent" }, { "type": "page_number", "bbox": [ 0.483, 0.946, 0.516, 0.956 ], "angle": 0, "content": "9686" } ], [ { "type": "image", "bbox": [ 0.084, 0.089, 0.885, 0.239 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.076, 0.242, 0.895, 0.35 ], "angle": 0, "content": "Figure 2: The overall architecture of TMA. First, we split the event stream into segments and extract features with a share-weights feature extractor. Then, regarding the first feature as reference, we correlate all other features to compute temporally-dense correlation volumes, which contain rich embedded motion information. Next, aware of the different time spans of correlation volumes, we look up each correlation volume based on a corresponding flow estimate. All sampled correlation maps are delivered into a share-weights motion feature encoder to derive motion features. We further propose a novel motion pattern aggregation module to enrich the spatial information of motion features. By concatenating the enhanced motion features and utilizing several refinements, high-quality flow predictions are generated." }, { "type": "text", "bbox": [ 0.076, 0.358, 0.473, 0.569 ], "angle": 0, "content": "the event stream as a static frame and utilize the architecture of U-Net [26] to predict optical flow, which can only address small motions. Mainstream works [7, 34, 11] introduce two consecutive event frames and follow the correlation volume based pipeline (PWCNet and RAFT), achieving higher accuracy on large-scales datasets [44, 10]. E-RAFT [11, 12] extends RAFT [30] and introduces full correlation volume into event-based vision. DCEIFlow [34] combines conventional images and event data to boost higher accuracy. Note that our work and STE-FlowNet [7] share a similar motivation to introduce temporal continuity with fine-grained discretization. However, STE-FlowNet takes a frame-by-frame manner [18] to update flow, leading to an insufficient inference process." }, { "type": "text", "bbox": [ 0.077, 0.57, 0.471, 0.661 ], "angle": 0, "content": "Contrary to previous learning-based methods, we do not merely adopt the classic correlation volume based pipeline. Instead, we regard the temporal continuity of event data as a vital component of optical flow and incorporate the intermediate motion information into a learning-based framework, which boosts higher accuracy and efficiency." }, { "type": "title", "bbox": [ 0.077, 0.678, 0.214, 0.696 ], "angle": 0, "content": "3. Methodology" }, { "type": "text", "bbox": [ 0.076, 0.704, 0.473, 0.903 ], "angle": 0, "content": "Given an input event stream \\(\\{\\mathcal{E}\\}\\) from \\(t_0\\) to \\(t_1\\), the goal of optical flow is to estimate a dense displacement field \\(\\mathbf{u}:\\mathbb{R}^2\\to \\mathbb{R}^2\\) which maps each per-pixel \\((x,y)\\) at \\(t_0\\) to its corresponding coordinate \\((x^{\\prime},y^{\\prime})\\) at \\(t_1\\). To address this, mainstream learning-based approaches compute correlation volumes from two event frames as a matching prior. Such principle inspires several methods [11, 34] by squeezing event data into consecutive frames. Unfortunately, the characteristics of event data, spatial sparsity and lack of intensity records, are prone to result in close matching scores and invalid regions in the correlation volume. Consequently, less informative motion features are derived and regress inaccurate predictions. Here we address the information scarcity" }, { "type": "text", "bbox": [ 0.498, 0.357, 0.892, 0.417 ], "angle": 0, "content": "of motion features from the attractive temporal continuity of event data. Temporally fine-grained motion information in event data is sufficient to supplement the spatial richness of motion features, yielding high-quality flow predictions." }, { "type": "text", "bbox": [ 0.498, 0.418, 0.892, 0.463 ], "angle": 0, "content": "In the following, we first describe the preliminary and event representation, and then present the detailed architecture of the proposed TMA." }, { "type": "title", "bbox": [ 0.499, 0.471, 0.833, 0.487 ], "angle": 0, "content": "3.1. Preliminary and Event Representation" }, { "type": "text", "bbox": [ 0.498, 0.494, 0.892, 0.6 ], "angle": 0, "content": "Event cameras record light intensity changes in an asynchronous way. Each pixel serves as an independent trigger and generates an event instantly whenever the log intensity changes exceeding a threshold \\( C \\). An event \\( \\boldsymbol{e}_k = (\\boldsymbol{x}_k, p_k, t_k) \\) is a triplet containing triggered pixel location \\( \\boldsymbol{x}_k = (x_k, y_k)^T \\), timestamp \\( t_k \\) and signed intensity change \\( (p_k = \\pm 1) \\)." }, { "type": "text", "bbox": [ 0.498, 0.6, 0.892, 0.676 ], "angle": 0, "content": "To ease the feature extraction and preserve the temporal continuity of the event data, we firstly transform the event stream into a 3D volume \\( V(x,y,t) \\) along the temporal dimension following existing works [45, 11, 24]. Given an event stream \\( \\{\\mathcal{E}\\} \\), \\( V(x,y,t) \\) is generated as:" }, { "type": "equation", "bbox": [ 0.515, 0.684, 0.891, 0.701 ], "angle": 0, "content": "\\[\nt _ {i} ^ {*} = (B - 1) \\left(t _ {i} - t _ {1}\\right) / \\left(t _ {N _ {e}} - t _ {1}\\right) \\tag {1}\n\\]" }, { "type": "equation", "bbox": [ 0.516, 0.704, 0.891, 0.734 ], "angle": 0, "content": "\\[\n\\boldsymbol {V} (x, y, t) = \\sum_ {i} p _ {i} k _ {b} \\left(x - x _ {i}\\right) k _ {b} \\left(y - y _ {i}\\right) k _ {b} \\left(t - t _ {i} ^ {*}\\right) \\tag {2}\n\\]" }, { "type": "equation", "bbox": [ 0.516, 0.739, 0.891, 0.755 ], "angle": 0, "content": "\\[\nk _ {b} (a) = \\max (0, 1 - | a |), \\tag {3}\n\\]" }, { "type": "text", "bbox": [ 0.498, 0.764, 0.892, 0.81 ], "angle": 0, "content": "where \\( t_i^* \\) represents the \\( i \\)-th time bin. \\( B \\) and \\( N_e \\) represent the length of time bins and the number of events, respectively. \\( k_b(a) \\) is the bilinear interpolation function." }, { "type": "title", "bbox": [ 0.5, 0.818, 0.681, 0.832 ], "angle": 0, "content": "3.2. TMA Architecture" }, { "type": "text", "bbox": [ 0.498, 0.84, 0.892, 0.903 ], "angle": 0, "content": "We develop our framework based on the successful RAFT architecture [30]. Figure 2 summarizes the architecture of the proposed TMA, which consists of three components, an event splitting strategy, a linear lookup strategy" }, { "type": "page_number", "bbox": [ 0.482, 0.945, 0.516, 0.957 ], "angle": 0, "content": "9687" } ], [ { "type": "image", "bbox": [ 0.099, 0.088, 0.445, 0.246 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.076, 0.249, 0.47, 0.325 ], "angle": 0, "content": "Figure 3: Linear lookup strategy. We compute correlation volumes by comparing the similarity of first feature with all others, which are misaligned due to different time spans. To rectify this, we narrow down the lookup coordinates linearly to warp correlation maps to spatially aligned pixels." }, { "type": "text", "bbox": [ 0.076, 0.333, 0.469, 0.392 ], "angle": 0, "content": "and a motion pattern aggregation module. With the proposed method, we successfully unlock the potential of temporal continuity to predict event-based optical flow within a learning-based framework." }, { "type": "text", "bbox": [ 0.076, 0.394, 0.469, 0.558 ], "angle": 0, "content": "Event splitting. Instead of viewing the continuous event stream as a static frame which tends to be a matter of common knowledge in recent works [45, 11, 34], we prefer to identify it as a high frame rate video clip, which records continuous and detailed trajectories of objects, namely, provides intuitive motion cues for optical flow estimation. To introduce rich intermediate motion information into our method, we first propose an event splitting strategy, which splits the event stream into multiple segments. Therefore, more intermediate event frames are retained for correlation volume computation." }, { "type": "text", "bbox": [ 0.077, 0.56, 0.469, 0.726 ], "angle": 0, "content": "In particular, given an event stream \\(\\{\\mathcal{E}\\}\\) from \\(t_0\\) to \\(t_1\\), we split it into \\(g\\) segments equally and the time span between adjacent segments is \\(dt\\). Besides, we introduce an auxiliary event segment from \\(t_0 - dt\\) to \\(t_0\\) as reference. Then, \\(g + 1\\) event representations are generated following Sec. 3.1. All \\(g + 1\\) event representations are then delivered into a share-weights encoder to achieve features \\(\\pmb{F}_i \\in \\mathbb{R}^{H \\times W \\times C}, i = 0, 1, 2, \\dots, g,\\) where \\(H, W\\) and \\(D\\) represent the height, width and channel of features. We use all features to compute temporally-dense correlation volumes \\(\\pmb{C}_i, i = 1, 2, \\dots, g,\\) which are given by:" }, { "type": "equation", "bbox": [ 0.12, 0.736, 0.469, 0.77 ], "angle": 0, "content": "\\[\n\\boldsymbol {C} _ {i} = \\frac {\\boldsymbol {F} _ {0} \\boldsymbol {F} _ {i} ^ {T}}{\\sqrt {D}} \\in \\mathbb {R} ^ {H \\times W \\times H \\times W}, i = 1, 2, \\dots , g, \\tag {4}\n\\]" }, { "type": "text", "bbox": [ 0.077, 0.78, 0.469, 0.809 ], "angle": 0, "content": "where \\( \\pmb{F}_0 \\) is the first feature and \\( \\pmb{F}_i \\) is the \\( i \\)-th feature derived from the \\( i \\)-th event frame." }, { "type": "text", "bbox": [ 0.077, 0.811, 0.469, 0.885 ], "angle": 0, "content": "Temporally-dense correlation volumes compare feature similarities across multiple time spans, enabling refined records of relative motions. This construction is vastly different from the classic full correlation volume that only contains feature similarities between a fixed time span." }, { "type": "text", "bbox": [ 0.097, 0.886, 0.468, 0.901 ], "angle": 0, "content": "Linear lookup. Recall that each correlation volume \\( C_i \\)" }, { "type": "image", "bbox": [ 0.527, 0.091, 0.862, 0.252 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.498, 0.256, 0.892, 0.346 ], "angle": 0, "content": "Figure 4: Motion pattern aggregation. We pair each intermediate motion feature to the last motion feature. Then each pair is sent to cross-attention blocks to aggregate consistent patterns. Hence, each intermediate motion feature carries information from the last one and consistent patterns receive emphasis." }, { "type": "text", "bbox": [ 0.498, 0.352, 0.892, 0.488 ], "angle": 0, "content": "is achieved by correlating \\( F_{0} \\) and \\( F_{i} \\), which means the recorded relation motions are misaligned in time. While our goal is to predict optical flow from \\( t_{0} \\) to \\( t_{1} \\), we hope that all sampled correlation maps could present the relative motions within the same time span. Therefore, based on that correlation volumes are evenly constructed in time and magnitudes of optical flow change linearly over a short period, we narrow down lookup coordinates in a linear fashion to match the timestamp of each correlation volume." }, { "type": "text", "bbox": [ 0.498, 0.488, 0.892, 0.548 ], "angle": 0, "content": "Figure 3 displays the linear lookup strategy. In detail, given current flow estimate \\(\\mathbf{u}\\), we split it into \\(g\\) segments to sample each correlation volume. The linear lookup operation can be expressed as:" }, { "type": "equation", "bbox": [ 0.525, 0.557, 0.891, 0.573 ], "angle": 0, "content": "\\[\n\\mathbf {d} \\mathbf {u} = \\left(\\mathbf {c o o r d s} _ {1} - \\mathbf {c o o r d s} _ {0}\\right) / g = \\mathbf {u} / g \\tag {5}\n\\]" }, { "type": "equation", "bbox": [ 0.525, 0.575, 0.891, 0.591 ], "angle": 0, "content": "\\[\n\\operatorname {c o r r} _ {i} = S \\left(\\boldsymbol {C} _ {i}, \\operatorname {c o o r d s} _ {0} + i \\mathrm {d u}\\right), i = 1, 2, \\dots , g, \\tag {6}\n\\]" }, { "type": "text", "bbox": [ 0.498, 0.599, 0.891, 0.688 ], "angle": 0, "content": "where \\(\\mathbf{coord}_0\\) is the initialized coordinates at \\(t_0\\) (reference time), \\(S(\\cdot, \\cdot)\\) represents the lookup operation, \\(\\mathbf{coord}_i\\) are lookup coordinates for \\(C_i\\) and \\(\\mathbf{corr}_i\\) is the correlation map sampled from \\(C_i\\). After delivering all correlation maps into a share-weights motion feature encoder, aligned motion features are achieved." }, { "type": "text", "bbox": [ 0.498, 0.69, 0.892, 0.795 ], "angle": 0, "content": "From the perspective of image contrast [9], the standard lookup is responsible for warping possible matching points between two images to the same pixel. Our linear lookup extends it by warping matching points of a temporally fine-grained motion to the same pixel. As a result, similar motions are presented at same pixels across correlation maps, showing high contrast." }, { "type": "text", "bbox": [ 0.498, 0.796, 0.892, 0.901 ], "angle": 0, "content": "Motion pattern aggregation. A standard operation for next step is to concatenate the motion features as a whole to update flow and the improvements made so far already alleviate the information scarcity in motion features. However, we notice that the concatenation operation treats all motion features equally, which means the majority of motion features, intermediate ones, dominate the flow regression. Due" }, { "type": "page_number", "bbox": [ 0.483, 0.945, 0.516, 0.956 ], "angle": 0, "content": "9688" } ], [ { "type": "image", "bbox": [ 0.082, 0.087, 0.38, 0.295 ], "angle": 0, "content": null }, { "type": "image", "bbox": [ 0.399, 0.089, 0.635, 0.295 ], "angle": 0, "content": null }, { "type": "image", "bbox": [ 0.653, 0.09, 0.885, 0.295 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.076, 0.298, 0.893, 0.33 ], "angle": 0, "content": "Figure 5: Qualitative examples of DSEC-Flow. For each two columns, we show the reference image and event frame and compare our method with a state-of-the-art baseline E-RAFT [11]. Significant improvements are highlighted by red boxes." }, { "type": "text", "bbox": [ 0.076, 0.342, 0.47, 0.462 ], "angle": 0, "content": "to the linear optical flow assumption and manual lookup operation, these motion features are not perfectly correct. A natural thought is to put more emphasis on the last motion feature that is without manual lookup and retain the patterns in intermediate motion features that are consistent with the last motion feature. To this end, we balance the weights between the last motion feature and others through cross-similarities computed by transformers [33, 19]." }, { "type": "text", "bbox": [ 0.077, 0.463, 0.471, 0.569 ], "angle": 0, "content": "Figure 4 shows the overview of motion pattern aggregation module. Given a set of motion features \\( M\\mathbf{F}_i \\in \\mathbb{R}^{H \\times W \\times D'} \\), \\( i = 1,2,\\dots,g \\), we pair each intermediate motion feature to the last one. Then each pair \\( (M\\mathbf{F}_i,M\\mathbf{F}_g) \\) is sent to cross-attention blocks to compare cross-similarities and aggregate consistent patterns. The enhanced motion feature \\( \\widehat{M}\\mathbf{F}_i \\) is obtained as:" }, { "type": "equation", "bbox": [ 0.097, 0.58, 0.469, 0.621 ], "angle": 0, "content": "\\[\n\\begin{array}{l} \\boldsymbol {A} = \\operatorname {A t t e n t i o n} \\left(\\boldsymbol {M} \\boldsymbol {F} _ {i} W ^ {Q}, \\boldsymbol {M} \\boldsymbol {F} _ {g} W ^ {K}, \\boldsymbol {M} \\boldsymbol {F} _ {g} W ^ {V}\\right) (7) \\\\ \\widehat {\\boldsymbol {M F}} _ {i} = \\boldsymbol {M F} _ {i} + \\operatorname {M L P} \\left(\\left[ \\boldsymbol {M F} _ {i}, \\boldsymbol {A W} ^ {O} \\right]\\right), (8) \\\\ \\end{array}\n\\]" }, { "type": "text", "bbox": [ 0.076, 0.633, 0.469, 0.748 ], "angle": 0, "content": "where \\( \\operatorname{Attention}(Q, K, V) = \\operatorname{softmax}\\left(\\frac{QK^T}{\\sqrt{d_k}}\\right)V \\), \\( d_k \\) is the dimension of \\( K \\). \\( W^Q \\), \\( W^K \\), \\( W^V \\) are projection matrices. \\( \\mathrm{MLP}(\\cdot) \\) is multi-layer perceptron and \\( W^O \\) is another projection matrix. We omit the normalization functions in the manuscript for simplicity. Motion pattern aggregation module does not change the dimension of motion features, so multiple cross-attention layers can be stacked easily." }, { "type": "text", "bbox": [ 0.076, 0.749, 0.469, 0.825 ], "angle": 0, "content": "Once motion features are enhanced by the motion pattern aggregation module, each \\(\\widehat{MF}_i\\) carries motion patterns that are consistent with \\(MF_{g}\\). Namely, the last motion feature receives high attention and consistent patterns in motion features are fully utilized." }, { "type": "text", "bbox": [ 0.076, 0.826, 0.469, 0.901 ], "angle": 0, "content": "Above three components are seamlessly integrated into a unified pipeline: incorporating intermediate motion information, warping matching motions and emphasizing consistent motion patterns. Attributed to the innovative application of temporal continuity to a learning-based frame" }, { "type": "text", "bbox": [ 0.498, 0.342, 0.892, 0.432 ], "angle": 0, "content": "work, our proposed method is capable of overcoming the information scarcity issue in motion features and generating high-quality flow estimates even at an early refinement stage. This enables our method to achieve accurate final predictions, while reducing the demand for a number of refinements." }, { "type": "title", "bbox": [ 0.5, 0.441, 0.628, 0.457 ], "angle": 0, "content": "3.3. Supervision" }, { "type": "text", "bbox": [ 0.499, 0.464, 0.892, 0.51 ], "angle": 0, "content": "Following RAFT [30], we choose \\( L_{1} \\) distance between the predictions and ground-truth as the supervision signal for our model. The loss function \\( \\mathcal{L} \\) is formally defined as:" }, { "type": "equation", "bbox": [ 0.597, 0.52, 0.892, 0.563 ], "angle": 0, "content": "\\[\n\\mathcal {L} = \\sum_ {j = 1} ^ {N} \\gamma^ {N - j} \\left\\| \\mathbf {u} ^ {g t} - \\mathbf {u} ^ {j} \\right\\| _ {1}, \\tag {9}\n\\]" }, { "type": "text", "bbox": [ 0.498, 0.575, 0.891, 0.621 ], "angle": 0, "content": "where \\(\\mathbf{u}^{gt}\\) denotes the flow ground-truth and \\(\\mathbf{u}^j\\) the flow prediction at \\(j\\)-th stage. \\(N\\) is the total refinement stages. The weight \\(\\gamma\\) balances different stages of predictions." }, { "type": "title", "bbox": [ 0.5, 0.634, 0.634, 0.651 ], "angle": 0, "content": "4. Experiments" }, { "type": "text", "bbox": [ 0.498, 0.66, 0.892, 0.901 ], "angle": 0, "content": "Datasets and evaluation setup. Following previous works [11, 45, 7], we provide experimental details and extensive comparison results on two event-based datasets DSEC-Flow [10] and MVSEC [44]. For DSEC-Flow, we train models on the official training set and evaluate DSEC-Flow test set on the public benchmark. For MVSEC, we conduct two kinds of experiments. Basically, following previous methods [43, 27], we train methods on outdoor_day2 sequence with ground-truth corresponding to a time interval of \\( dt = 1 \\) and \\( dt = 4 \\) gray images and evaluate 800 frames of outdoor_day1 and three indoor_flying sequences. Equally importantly, considering the supervised learning setting of our method and the large gap between outdoor_day and indoor_flying data, we extend the range of training data by including one indoor_flying sequence each time to further boost the accuracy of supervised learning methods." }, { "type": "page_number", "bbox": [ 0.483, 0.945, 0.516, 0.957 ], "angle": 0, "content": "9689" } ], [ { "type": "table", "bbox": [ 0.082, 0.089, 0.465, 0.175 ], "angle": 0, "content": "<table><tr><td></td><td>Methods</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time(ms)</td></tr><tr><td>MB</td><td>MultiCM [27]</td><td>3.47</td><td>76.6</td><td>30.9</td><td>-</td></tr><tr><td rowspan=\"3\">SL</td><td>EV-FlowNet†[43]</td><td>2.32</td><td>55.4</td><td>18.6</td><td>5</td></tr><tr><td>E-RAFT [11]</td><td>0.79</td><td>12.5</td><td>2.7</td><td>52</td></tr><tr><td>Ours</td><td>0.74</td><td>10.9</td><td>2.3</td><td>30</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.076, 0.181, 0.47, 0.243 ], "angle": 0, "content": "Table 1: Results on DSEC-Flow. Best accuracy in bold. \\(\\dagger\\) denotes the result is taken from E-RAFT [11]. Model-based (MB) methods need no training data; and supervised learning (SL) methods need ground-truth." }, { "type": "text", "bbox": [ 0.076, 0.25, 0.47, 0.414 ], "angle": 0, "content": "Metrics. The end-point-error (EPE) is used as core metric for prediction accuracy for both DSEC-Flow and MVSEC. To evaluate the robustness against large displacements, we compute the percentage of pixels with EPE greater than \\(M\\) pixels \\((M\\mathrm{PE},M = 1,3)\\) for DSEC-Flow. Percentage of pixels with EPE above 3 and \\(5\\%\\) of the magnitude of the flow ground-truth (\\% Outlier) are presented for MVSEC. On DSEC-Flow, metrics are measured over pixels with valid ground-truth. While on MVSEC, metrics are measured over pixels with valid ground-truth and at least one triggered event." }, { "type": "text", "bbox": [ 0.076, 0.416, 0.471, 0.657 ], "angle": 0, "content": "Implementation details. The proposed TMA is implemented using PyTorch. We set the event segment \\( g = 5 \\). For experiments on DSEC-Flow, the channel of event representation \\( B \\) for each segment is set to 3. For MVSEC, \\( B \\) is set to 1 when \\( dt = 1 \\) and 3 when \\( dt = 4 \\), respectively. The sum of channels keeps the same with the state-of-the-art E-RAFT [11]. We only stack 1 layer of motion pattern aggregation module. Other components are basically identical to RAFT's model, including feature extractor, motion feature encoder and flow updater. Note that we use a small feature extractor whose final channel is 128. We predict 6 levels of optical flow and the weight \\( \\gamma \\) is set to 0.8 for supervision. In training, we exploit AdamW [23] optimizer and One-cycle learning rate scheduler [28]. We train models on DSEC-Flow for 200K steps and MVSEC for 100K steps, both with a learning rate of 0.0002 and a batch size of 6." }, { "type": "title", "bbox": [ 0.077, 0.666, 0.206, 0.68 ], "angle": 0, "content": "4.1. DSEC-Flow" }, { "type": "text", "bbox": [ 0.076, 0.689, 0.469, 0.764 ], "angle": 0, "content": "Accuracy comparison. Evaluation results on DSEC-Flow benchmark<sup>1</sup> are provided in Table 1. Compared with E-RAFT, our method improves the EPE from 0.79 to 0.74. Our method is also leading in 1PE and 3PE with a margin of 1.6 and 0.4, showing better robustness." }, { "type": "text", "bbox": [ 0.076, 0.765, 0.469, 0.856 ], "angle": 0, "content": "Qualitative results are exhibited in Figure 5. In challenging regions such as textureless areas (the wall in second two columns, the shrubs in last two columns), existing correlation volume contains similar matching scores and fails to generate informative motion features, leading to low-quality predictions. On the contrary, our method aggregates" }, { "type": "image", "bbox": [ 0.51, 0.091, 0.88, 0.255 ], "angle": 0, "content": null }, { "type": "image_caption", "bbox": [ 0.498, 0.259, 0.892, 0.334 ], "angle": 0, "content": "Figure 6: EPE vs. number of iterations at inference. The figure exhibits the prediction results on DSEC-Flow at different stages during inference. Our method achieves an accuracy \\((\\mathrm{EPE} = 0.81)\\) comparable to E-RAFT with 2 iterations while E-RAFT needs 6 iterations." }, { "type": "text", "bbox": [ 0.498, 0.34, 0.892, 0.384 ], "angle": 0, "content": "temporally consistent motion patterns to enhance motion features, distinguishing different moving objects and generating high-quality predictions." }, { "type": "text", "bbox": [ 0.498, 0.385, 0.893, 0.581 ], "angle": 0, "content": "Efficiency comparison. The last column of Table 1 exhibits the inference time. Our method enjoys faster inference speed compared with E-RAFT, which is mainly attributed to fewer iterative updates. The reasonable explanation is that our method utilizes temporal motion information to enrich motion features, thus being able to generate good predictions even at an initial stage. To prove this, we compare the accuracy with E-RAFT at early inference stages in Figure 6. Our method achieves better flow initialization at early stages, supporting our argument. The ablation experiment on different iterations (Table 4e) also demonstrates that our method requires fewer iterations (ours: 6, E-RAFT: 12) to achieve surpassing accuracy." }, { "type": "title", "bbox": [ 0.5, 0.59, 0.602, 0.605 ], "angle": 0, "content": "4.2.MVSEC" }, { "type": "text", "bbox": [ 0.498, 0.614, 0.892, 0.87 ], "angle": 0, "content": "Inter-domain evaluation. Table 2 reports the results on MVSEC training with outdoor_day2 sequence. The top of Table 2 reports the results corresponding to \\( dt = 1 \\) grayscale frame and the bottom corresponds to \\( dt = 4 \\) grayscale frames. Our method shows comparable accuracy on outdoor_day1 for \\( dt = 1 \\) and highest accuracy on outdoor_day1 for \\( dt = 4 \\) among all compared methods. Unfortunately, like two other supervised learning methods, DCEI-Flow [34] and E-RAFT [11], our method fails to achieve superior results on indoor_flying sequences. One possible reason is that model based methods and unsupervised learning methods usually have better generalization ability, while supervised learning methods are limited if training data has a significantly large gap with test data [36, 34]. Since outdoor_day sequences and indoor_flying sequences have a great domain gap, it is challenging for supervised learning methods to generalize well on indoor_flying sequences." }, { "type": "text", "bbox": [ 0.5, 0.871, 0.892, 0.901 ], "angle": 0, "content": "Intra-domain evaluation. To verify the possible cause and better analyze the accuracy of our method under su" }, { "type": "page_footnote", "bbox": [ 0.076, 0.863, 0.469, 0.901 ], "angle": 0, "content": "<sup>1</sup>The ground-truth of DSEC-Flow dataset is unavailable, so we use last three checkpoints to evaluate the online benchmark. https://dsec.ifi.uzh.ch/uzh/dsec-flow-optical-flow-benchmark/." }, { "type": "page_number", "bbox": [ 0.483, 0.945, 0.516, 0.957 ], "angle": 0, "content": "9690" } ], [ { "type": "table", "bbox": [ 0.085, 0.089, 0.887, 0.491 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\" colspan=\"2\"></td><td rowspan=\"2\">Input</td><td colspan=\"2\">indoor_flying1</td><td colspan=\"2\">indoor_flying2</td><td colspan=\"2\">indoor_flying3</td><td colspan=\"2\">outdoor_day1</td></tr><tr><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td></tr><tr><td colspan=\"11\">dt = 1</td></tr><tr><td rowspan=\"2\">MB</td><td>Brebion et al. [5]</td><td>E</td><td>0.52</td><td>0.10</td><td>0.98</td><td>5.50</td><td>0.71</td><td>2.10</td><td>0.53</td><td>0.20</td></tr><tr><td>MultiCM (Burgers') [27]</td><td>E</td><td>0.42</td><td>0.10</td><td>0.60</td><td>0.59</td><td>0.50</td><td>0.28</td><td>0.30</td><td>0.10</td></tr><tr><td rowspan=\"3\">SSL</td><td>EV-FlowNet [43]</td><td>E</td><td>1.03</td><td>2.20</td><td>1.72</td><td>15.10</td><td>1.53</td><td>11.90</td><td>0.49</td><td>0.20</td></tr><tr><td>Spike-FlowNet [20]</td><td>E</td><td>0.84</td><td>-</td><td>1.28</td><td>-</td><td>1.11</td><td>-</td><td>0.49</td><td>-</td></tr><tr><td>STE-FlowNet [7]</td><td>E</td><td>0.57</td><td>0.10</td><td>0.79</td><td>1.60</td><td>0.72</td><td>1.30</td><td>0.42</td><td>0.00</td></tr><tr><td rowspan=\"3\">USL</td><td>Hagenaars et al. [13]</td><td>E</td><td>0.60</td><td>0.51</td><td>1.17</td><td>8.06</td><td>0.93</td><td>5.64</td><td>0.47</td><td>0.25</td></tr><tr><td>Zhu et al. [45]</td><td>E</td><td>0.58</td><td>0.00</td><td>1.02</td><td>4.00</td><td>0.87</td><td>3.00</td><td>0.32</td><td>0.00</td></tr><tr><td>ECN [38]</td><td>E</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>0.30</td><td>0.02</td></tr><tr><td rowspan=\"3\">SL</td><td>E-RAFT [11]</td><td>E</td><td>1.10</td><td>5.72</td><td>1.94</td><td>30.79</td><td>1.66</td><td>25.20</td><td>0.24</td><td>0.00</td></tr><tr><td>DCEIFlow [34]</td><td>E + I</td><td>0.75</td><td>1.55</td><td>0.90</td><td>2.10</td><td>0.80</td><td>1.77</td><td>0.22</td><td>0.00</td></tr><tr><td>Ours</td><td>E</td><td>1.06</td><td>3.63</td><td>1.81</td><td>27.29</td><td>1.58</td><td>23.26</td><td>0.25</td><td>0.07</td></tr><tr><td colspan=\"11\">dt = 4</td></tr><tr><td>MB</td><td>MultiCM (Burgers') [27]</td><td>E</td><td>1.69</td><td>12.95</td><td>2.49</td><td>26.35</td><td>2.06</td><td>19.03</td><td>1.25</td><td>9.21</td></tr><tr><td rowspan=\"3\">SSL</td><td>EV-FlowNet [43]</td><td>E</td><td>2.25</td><td>24.70</td><td>4.05</td><td>45.30</td><td>3.45</td><td>39.70</td><td>1.23</td><td>7.30</td></tr><tr><td>Spike-FlowNet [20]</td><td>E</td><td>2.24</td><td>-</td><td>3.83</td><td>-</td><td>3.18</td><td>-</td><td>1.09</td><td>-</td></tr><tr><td>STE-FlowNet [7]</td><td>E</td><td>1.77</td><td>14.70</td><td>2.52</td><td>26.10</td><td>2.23</td><td>22.10</td><td>0.99</td><td>3.90</td></tr><tr><td rowspan=\"2\">USL</td><td>Zhu et al. [45]</td><td>E</td><td>2.18</td><td>24.20</td><td>3.85</td><td>46.80</td><td>3.18</td><td>47.80</td><td>1.30</td><td>9.70</td></tr><tr><td>Hagenaars et al. [13]</td><td>E</td><td>2.16</td><td>21.51</td><td>3.90</td><td>40.72</td><td>3.00</td><td>29.60</td><td>1.69</td><td>12.50</td></tr><tr><td rowspan=\"3\">SL</td><td>DCEIFlow [34]</td><td>E + I</td><td>2.08</td><td>21.47</td><td>3.48</td><td>42.05</td><td>2.51</td><td>29.73</td><td>0.89</td><td>3.19</td></tr><tr><td>E-RAFT [11]</td><td>E</td><td>2.81</td><td>40.25</td><td>5.09</td><td>64.19</td><td>4.46</td><td>57.11</td><td>0.72</td><td>1.12</td></tr><tr><td>Ours</td><td>E</td><td>2.43</td><td>29.91</td><td>4.32</td><td>52.74</td><td>3.60</td><td>42.02</td><td>0.70</td><td>1.08</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.076, 0.501, 0.895, 0.562 ], "angle": 0, "content": "Table 2: Evaluation results on MVSEC [44] training with outdoor_day2 sequence. Model-based (MB) methods need no training data; semi-supervised learning (SSL) methods use grayscale images for supervision; unsupervised learning (USL) methods only require events; and supervised learning (SL) methods need ground-truth. E means the method only uses events as input; and I means the method requires images as input." }, { "type": "table", "bbox": [ 0.084, 0.575, 0.885, 0.717 ], "angle": 0, "content": "<table><tr><td rowspan=\"2\">dt = 4</td><td rowspan=\"2\">Train Set +</td><td colspan=\"2\">indoor_flying1</td><td colspan=\"2\">indoor_flying2</td><td colspan=\"2\">indoor_flying3</td><td colspan=\"2\">outdoor_day1</td></tr><tr><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td></tr><tr><td>E-RAFT [11]</td><td rowspan=\"2\">indoor_flying1</td><td>-</td><td>-</td><td>2.35</td><td>26.24</td><td>1.84</td><td>18.07</td><td>0.72</td><td>1.38</td></tr><tr><td>Ours</td><td>-</td><td>-</td><td>2.15</td><td>20.41</td><td>1.68</td><td>14.30</td><td>0.64</td><td>0.98</td></tr><tr><td>E-RAFT [11]</td><td rowspan=\"2\">indoor_flying2</td><td>1.41</td><td>8.14</td><td>-</td><td>-</td><td>1.50</td><td>9.37</td><td>0.71</td><td>1.13</td></tr><tr><td>Ours</td><td>1.32</td><td>5.94</td><td>-</td><td>-</td><td>1.50</td><td>8.88</td><td>0.64</td><td>0.96</td></tr><tr><td>E-RAFT [11]</td><td rowspan=\"2\">indoor_flying3</td><td>1.39</td><td>8.38</td><td>1.77</td><td>17.52</td><td>-</td><td>-</td><td>0.72</td><td>1.46</td></tr><tr><td>Ours</td><td>1.33</td><td>5.82</td><td>1.67</td><td>12.80</td><td>-</td><td>-</td><td>0.67</td><td>1.10</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.076, 0.718, 0.893, 0.751 ], "angle": 0, "content": "Table 3: Evaluation results on MVSEC [44] training with outdoor_day2 and one indoor_flying sequence. + means the indoor_flying sequence to be included into training set." }, { "type": "text", "bbox": [ 0.076, 0.758, 0.473, 0.895 ], "angle": 0, "content": "pervised learning setting, we incorporate one indoor_flying sequence into training set each time and make comparisons with the supervised learning state-of-the-art E-RAFT. Table 3 shows the evaluation results corresponding to \\( dt = 4 \\) grayscale frames (For \\( dt = 1 \\), refer to appendix). Compared with the results in Table 2, E-RAFT and our method both achieve great improvement on indoor_flying sequences (EPE of indoor_flying2, ours: \\( 4.32 \\rightarrow 1.67 \\), E-RAFT: 5.09 → 1.77), confirming the presence of domain gap between" }, { "type": "text", "bbox": [ 0.498, 0.758, 0.895, 0.895 ], "angle": 0, "content": "outdoor_day and indoor_flying data. Compared with the accuracy of E-RAFT with the same training set, on the one hand, our method shows better generalization ability, which generates lower EPE and \\(\\%\\) Outlier without seeing indoor_flying sequences. On the other hand, our method achieves higher accuracy on four sequences by incorporating indoor_flying sequences into training set. Overall, our method achieves a new state-of-the-art result, demonstrating the effectiveness of our proposed method." }, { "type": "page_number", "bbox": [ 0.483, 0.945, 0.514, 0.958 ], "angle": 0, "content": "9691" } ], [ { "type": "table", "bbox": [ 0.088, 0.089, 0.473, 0.18 ], "angle": 0, "content": "<table><tr><td>splits</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>1</td><td>0.79</td><td>11.91</td><td>2.75</td><td>16</td></tr><tr><td>3</td><td>0.76</td><td>10.98</td><td>2.45</td><td>18</td></tr><tr><td rowspan=\"2\">5/7</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.74</td><td>11.13</td><td>2.26</td><td>50</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.089, 0.182, 0.473, 0.196 ], "angle": 0, "content": "(a) Event splitting. Intermediate motion information contributes" }, { "type": "table", "bbox": [ 0.089, 0.197, 0.473, 0.272 ], "angle": 0, "content": "<table><tr><td>setup</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>basic</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>+v_Proj</td><td>0.75</td><td>10.90</td><td>2.35</td><td>30</td></tr><tr><td>circular</td><td>0.76</td><td>11.25</td><td>2.44</td><td>30</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.16, 0.275, 0.405, 0.289 ], "angle": 0, "content": "(c) Pattern aggregation module design." }, { "type": "table", "bbox": [ 0.088, 0.303, 0.472, 0.394 ], "angle": 0, "content": "<table><tr><td>iterations</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>2</td><td>0.83</td><td>11.04</td><td>2.37</td><td>10</td></tr><tr><td>4</td><td>0.76</td><td>11.45</td><td>2.43</td><td>16</td></tr><tr><td rowspan=\"2\">6/8</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.74</td><td>10.81</td><td>2.32</td><td>54</td></tr></table>" }, { "type": "table_footnote", "bbox": [ 0.09, 0.396, 0.471, 0.41 ], "angle": 0, "content": "(e) Iterations. TMA achieves good results with a few iterations." }, { "type": "table", "bbox": [ 0.493, 0.089, 0.88, 0.166 ], "angle": 0, "content": "<table><tr><td>style</td><td>EPE</td><td>1PE</td><td>3PE</td></tr><tr><td>w/o</td><td>0.78</td><td>12.00</td><td>2.66</td></tr><tr><td>linear</td><td>0.74</td><td>10.86</td><td>2.30</td></tr><tr><td>same</td><td>0.76</td><td>11.45</td><td>2.48</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.485, 0.168, 0.889, 0.195 ], "angle": 0, "content": "(b) Lookup style. Sampling correlation volumes with a set of linear coordinates improves the accuracy." }, { "type": "table", "bbox": [ 0.493, 0.197, 0.879, 0.272 ], "angle": 0, "content": "<table><tr><td>layers</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>0</td><td>0.75</td><td>11.36</td><td>2.33</td><td>20</td></tr><tr><td rowspan=\"2\">1/2</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.75</td><td>10.90</td><td>2.32</td><td>38</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.484, 0.274, 0.889, 0.303 ], "angle": 0, "content": "(d) Layers of pattern aggregation module. Stacking 1 pattern aggregation module showcases high accuracy." }, { "type": "table", "bbox": [ 0.493, 0.304, 0.875, 0.394 ], "angle": 0, "content": "<table><tr><td>radius</td><td>EPE</td><td>1PE</td><td>3PE</td></tr><tr><td>1</td><td>0.75</td><td>11.14</td><td>2.37</td></tr><tr><td>2</td><td>0.76</td><td>11.16</td><td>2.39</td></tr><tr><td rowspan=\"2\">3/4</td><td>0.74</td><td>10.86</td><td>2.30</td></tr><tr><td>0.75</td><td>10.93</td><td>2.30</td></tr></table>" }, { "type": "table_caption", "bbox": [ 0.51, 0.396, 0.86, 0.411 ], "angle": 0, "content": "(f) Searching radius. A radius of 3 leads to high accuracy." }, { "type": "table_caption", "bbox": [ 0.124, 0.413, 0.845, 0.428 ], "angle": 0, "content": "Table 4: TMA ablations. Models are trained on DSEC-Flow. Settings used in our final model are underlined." }, { "type": "title", "bbox": [ 0.077, 0.437, 0.188, 0.451 ], "angle": 0, "content": "4.3. Ablations" }, { "type": "text", "bbox": [ 0.076, 0.461, 0.469, 0.506 ], "angle": 0, "content": "We conduct a series of ablation experiments to validate the proposed improvements. All ablation models are trained on DSEC-Flow and evaluated on the public benchmark." }, { "type": "text", "bbox": [ 0.076, 0.507, 0.469, 0.612 ], "angle": 0, "content": "Event splitting. We compare different numbers of event segments in Table 4a. We choose different splits in 1, 3, 5 and 7. With the split set to 1, our model degrades into a classic correlation volume based framework and exhibits similar accuracy in comparison with E-RAFT. More splits lead to higher accuracy but lower inference efficiency, so we use 5 splits to achieve accuracy-efficiency trade-off." }, { "type": "text", "bbox": [ 0.076, 0.613, 0.469, 0.718 ], "angle": 0, "content": "Lookup style. Based on the assumption that the optical flow changes linearly over a short period, we propose the linear lookup strategy. To validate it, we try to cancel the lookup operation or just use same sampling coordinates on intermediate correlation volumes. As Table 4b shows, sampling the correlation maps with a set of linear coordinates leads to high accuracy." }, { "type": "text", "bbox": [ 0.076, 0.719, 0.469, 0.854 ], "angle": 0, "content": "Pattern aggregation module design. We ablate different components of pattern aggregation module in Table 4c. By default, we set the projection matrix of value \\( W^V \\) as an identity matrix because the motion features are encoded by a motion feature encoder beforehand. In addition, we replace the pairing mode of motion features with circular pairing. Circular pairing gives equal treatment to all motion features without highlighting the importance of the last motion feature, which fails to improve accuracy." }, { "type": "text", "bbox": [ 0.076, 0.856, 0.469, 0.901 ], "angle": 0, "content": "Layers of pattern aggregation module. We compare the accuracy with different layers of pattern aggregation modules in Table 4d. We note that stacking 1 layer of pat" }, { "type": "text", "bbox": [ 0.498, 0.438, 0.892, 0.482 ], "angle": 0, "content": "tern aggregation module showcases high accuracy. More layers may lead to difficulties in optimization, which in turn causes a decrease in accuracy." }, { "type": "text", "bbox": [ 0.498, 0.484, 0.892, 0.528 ], "angle": 0, "content": "Iterations. Iterative learning plays a role in numerous works [18, 30]. Results in Table 4e show that 6 iterative updates reach the sweet spot of accuracy and efficiency." }, { "type": "text", "bbox": [ 0.498, 0.529, 0.892, 0.604 ], "angle": 0, "content": "Searching radius. We compare different radii for looking up correlation volumes in Table 4f. Searching radius of 3 leads to high accuracy. Different from RAFT [30] that achieves better predictions with an increased radius, our model does not benefit a lot from a greater radius." }, { "type": "title", "bbox": [ 0.5, 0.619, 0.619, 0.634 ], "angle": 0, "content": "5. Conclusion" }, { "type": "text", "bbox": [ 0.498, 0.644, 0.892, 0.901 ], "angle": 0, "content": "In this paper, we delve into event-based optical flow estimation problem. Different from existing methods that represent the event stream as static frames to adopt the classic correlation volume based pipeline, we contend that the temporal continuity is a vital element of event-based optical flow. We propose a novel Temporal Motion Aggregation (TMA) approach to unlock its potential within a learning-based framework. By incorporating temporally fine-grained motion information, TMA generates high-quality flow estimates at early stages, which not only enables TMA to obtain accurate final predictions, but also greatly reduces the demand for a number of refinements. Extensive experiments on DESC-Flow and MVSEC datasets verify the effectiveness and superiority of TMA. Meanwhile, we notice the limitations of supervised learning in generalization ability and expect further improvement to extend our idea into unsupervised learning frameworks." }, { "type": "page_number", "bbox": [ 0.483, 0.945, 0.516, 0.957 ], "angle": 0, "content": "9692" } ], [ { "type": "text", "bbox": [ 0.076, 0.092, 0.473, 0.204 ], "angle": 0, "content": "Acknowledgments: This work was supported in part by Shanghai Municipal Science and Technology Major Project under Grant 2018SHZDZX01, ZJ Lab, the Shanghai Center for Brain Science and Brain-Inspired Technology, in part by Shanghai Rising Star Program under Grant 21QC1400900, in part by Tongji-Qomolo Autonomous Driving Commercial Vehicle Joint Lab Project, and in part by Xiaomi Young Talents Program." }, { "type": "title", "bbox": [ 0.08, 0.23, 0.174, 0.246 ], "angle": 0, "content": "References" }, { "type": "ref_text", "bbox": [ 0.087, 0.256, 0.47, 0.324 ], "angle": 0, "content": "[1] Himanshu Akolkar, Sio-Hoi Ieng, and Ryad Benosman. Real-time high speed motion prediction using fast aperture-robust event-driven visual flow. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(1):361-372, 2020. 2" }, { "type": "ref_text", "bbox": [ 0.087, 0.326, 0.472, 0.381 ], "angle": 0, "content": "[2] Mohammed Almatrafi, Raymond Baldwin, Kiyoharu Aizawa, and Keigo Hirakawa. Distance surface for event-based optical flow. IEEE transactions on pattern analysis and machine intelligence, 42(7):1547-1556, 2020. 2" }, { "type": "ref_text", "bbox": [ 0.087, 0.382, 0.47, 0.436 ], "angle": 0, "content": "[3] Ryad Benosman, Charles Clercq, Xavier Lagorce, Sio-Hoi Ieng, and Chiara Bartolozzi. Event-based visual flow. IEEE transactions on neural networks and learning systems, 25(2):407-417, 2013. 2" }, { "type": "ref_text", "bbox": [ 0.087, 0.438, 0.47, 0.492 ], "angle": 0, "content": "[4] Ryad Benosman, Sio-Hoi Ieng, Charles Clercq, Chiara Bartolozzi, and Mandyam Srinivasan. Asynchronous frameless event-based optical flow. Neural Networks, 27:32-37, 2012. 2" }, { "type": "ref_text", "bbox": [ 0.087, 0.494, 0.47, 0.549 ], "angle": 0, "content": "[5] Vincent Brebion, Julien Moreau, and Franck Davoine. Realtime optical flow for vehicular perception with low-and high-resolution event cameras. IEEE Transactions on Intelligent Transportation Systems, 2021. 7" }, { "type": "ref_text", "bbox": [ 0.087, 0.551, 0.469, 0.592 ], "angle": 0, "content": "[6] Tobias Brosch, Stephan Tschechne, and Heiko Neumann. On event-based optical flow detection. Frontiers in neuroscience, 9:137, 2015. 2" }, { "type": "ref_text", "bbox": [ 0.087, 0.593, 0.47, 0.662 ], "angle": 0, "content": "[7] Ziluo Ding, Rui Zhao, Jiyuan Zhang, Tianxiao Gao, Ruiqin Xiong, Zhaofei Yu, and Tiejun Huang. Spatio-temporal recurrent networks for event-based optical flow estimation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 525-533, 2022. 3, 5, 7" }, { "type": "ref_text", "bbox": [ 0.087, 0.663, 0.47, 0.732 ], "angle": 0, "content": "[8] Guillermo Gallego, Tobi Delbrück, Garrick Orchard, Chiara Bartolozzi, Brian Taba, Andrea Censi, Stefan Leutenegger, Andrew J Davison, Jörg Conradt, Kostas Daniilidis, et al. Event-based vision: A survey. IEEE transactions on pattern analysis and machine intelligence, 44(1):154-180, 2020. 1" }, { "type": "ref_text", "bbox": [ 0.087, 0.733, 0.47, 0.815 ], "angle": 0, "content": "[9] Guillermo Gallego, Henri Rebecq, and Davide Scaramuzza. A unifying contrast maximization framework for event cameras, with applications to motion, depth, and optical flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3867-3876, 2018. 2, 4" }, { "type": "ref_text", "bbox": [ 0.08, 0.817, 0.47, 0.871 ], "angle": 0, "content": "[10] Mathias Gehrig, Willem Aarents, Daniel Gehrig, and Davide Scaramuzza. Dsec: A stereo event camera dataset for driving scenarios. IEEE Robotics and Automation Letters, 6(3):4947-4954, 2021. 2, 3, 5" }, { "type": "ref_text", "bbox": [ 0.08, 0.873, 0.47, 0.901 ], "angle": 0, "content": "[11] Mathias Gehrig, Mario Millhäsler, Daniel Gehrig, and Davide Scaramuzza. E-raft: Dense optical flow from event cam" }, { "type": "list", "bbox": [ 0.08, 0.256, 0.472, 0.901 ], "angle": 0, "content": null }, { "type": "ref_text", "bbox": [ 0.533, 0.093, 0.892, 0.12 ], "angle": 0, "content": "eras. In 2021 International Conference on 3D Vision (3DV), pages 197-206. IEEE, 2021. 1, 2, 3, 4, 5, 6, 7" }, { "type": "ref_text", "bbox": [ 0.504, 0.121, 0.892, 0.162 ], "angle": 0, "content": "[12] Mathias Gehrig, Manasi Muglikar, and Davide Scaramuzza. Dense continuous-time optical flow from events and frames. arXiv preprint arXiv:2203.13674, 2022. 3" }, { "type": "ref_text", "bbox": [ 0.504, 0.163, 0.892, 0.218 ], "angle": 0, "content": "[13] Jesse Hagenaars, Federico Paredes-Vallés, and Guido De Croon. Self-supervised learning of event-based optical flow with spiking neural networks. Advances in Neural Information Processing Systems, 34:7167-7179, 2021. 7" }, { "type": "ref_text", "bbox": [ 0.504, 0.219, 0.892, 0.274 ], "angle": 0, "content": "[14] Markus Hofinger, Samuel Rota Bulò, Lorenzo Porzi, Arno Knapitsch, Thomas Pock, and Peter Kontschieder. Improving optical flow on a pyramid level. In European Conference on Computer Vision, pages 770-786. Springer, 2020. 2" }, { "type": "ref_text", "bbox": [ 0.504, 0.275, 0.892, 0.329 ], "angle": 0, "content": "[15] Tak-Wai Hui and Chen Change Loy. Liteflownet3: Resolving correspondence ambiguity for more accurate optical flow estimation. In European Conference on Computer Vision, pages 169-184. Springer, 2020. 2" }, { "type": "ref_text", "bbox": [ 0.504, 0.33, 0.892, 0.398 ], "angle": 0, "content": "[16] Tak-Wai Hui, Xiaou Tang, and Chen Change Loy. Liteflownet: A lightweight convolutional neural network for optical flow estimation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8981-8989, 2018. 2" }, { "type": "ref_text", "bbox": [ 0.504, 0.4, 0.892, 0.455 ], "angle": 0, "content": "[17] Tak-Wai Hui, Xiaou Tang, and Chen Change Loy. A lightweight optical flow cnn—revisiting data fidelity and regularization. IEEE transactions on pattern analysis and machine intelligence, 43(8):2555-2569, 2020. 2" }, { "type": "ref_text", "bbox": [ 0.504, 0.456, 0.892, 0.511 ], "angle": 0, "content": "[18] Junhwa Hur and Stefan Roth. Iterative residual refinement for joint optical flow and occlusion estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5754-5763, 2019. 1, 2, 3, 8" }, { "type": "ref_text", "bbox": [ 0.504, 0.511, 0.892, 0.58 ], "angle": 0, "content": "[19] Shihao Jiang, Dylan Campbell, Yao Lu, Hongdong Li, and Richard Hartley. Learning to estimate hidden motions with global motion aggregation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9772-9781, 2021. 2, 5" }, { "type": "ref_text", "bbox": [ 0.504, 0.58, 0.892, 0.65 ], "angle": 0, "content": "[20] Chankyu Lee, Adarsh Kumar Kosta, Alex Zihao Zhu, Kenneth Chaney, Kostas Daniilidis, and Kaushik Roy. Spikeflownet: event-based optical flow estimation with energy-efficient hybrid neural networks. In European Conference on Computer Vision, pages 366-382. Springer, 2020. 7" }, { "type": "ref_text", "bbox": [ 0.504, 0.65, 0.892, 0.691 ], "angle": 0, "content": "[21] Min Liu and Tobi Delbruck. Adaptive time-slice block-matching optical flow algorithm for dynamic vision sensors. BMVC, 2018. 2" }, { "type": "ref_text", "bbox": [ 0.504, 0.692, 0.892, 0.748 ], "angle": 0, "content": "[22] Min Liu and Tobi Delbruck. Edflow: Event driven optical flow camera with keypoint detection and adaptive block matching. IEEE Transactions on Circuits and Systems for Video Technology, 32(9):5776-5789, 2022. 2" }, { "type": "ref_text", "bbox": [ 0.504, 0.748, 0.892, 0.774 ], "angle": 0, "content": "[23] Ilya Loshchilov and Frank Hutter. Fixing weight decay regularization in adam. 2017. 6" }, { "type": "ref_text", "bbox": [ 0.504, 0.776, 0.892, 0.845 ], "angle": 0, "content": "[24] Federico Paredes-Vallés and Guido CHE de Croon. Back to event basics: Self-supervised learning of image reconstruction for event cameras via photometric constancy. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3446-3455, 2021. 1, 3" }, { "type": "ref_text", "bbox": [ 0.504, 0.846, 0.892, 0.901 ], "angle": 0, "content": "[25] Anurag Ranjan and Michael J Black. Optical flow estimation using a spatial pyramid network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4161-4170, 2017. 2" }, { "type": "list", "bbox": [ 0.504, 0.093, 0.892, 0.901 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.483, 0.945, 0.516, 0.957 ], "angle": 0, "content": "9693" } ], [ { "type": "ref_text", "bbox": [ 0.08, 0.092, 0.47, 0.161 ], "angle": 0, "content": "[26] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234-241. Springer, 2015. 3" }, { "type": "ref_text", "bbox": [ 0.08, 0.162, 0.47, 0.215 ], "angle": 0, "content": "[27] Shintaro Shiba, Yoshimitsu Aoki, and Guillermo Gallego. Secrets of event-based optical flow. In European Conference on Computer Vision, pages 628-645. Springer, 2022. 2, 5, 6, 7" }, { "type": "ref_text", "bbox": [ 0.08, 0.218, 0.47, 0.3 ], "angle": 0, "content": "[28] Leslie N Smith and Nicholay Topin. Super-convergence: Very fast training of neural networks using large learning rates. In Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications, volume 11006, page 1100612. International Society for Optics and Photonics, 2019. 6" }, { "type": "ref_text", "bbox": [ 0.08, 0.301, 0.47, 0.37 ], "angle": 0, "content": "[29] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. Pwc-net: Cnns for optical flow using pyramid, warping, and cost volume. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8934-8943, 2018. 1, 2" }, { "type": "ref_text", "bbox": [ 0.08, 0.371, 0.47, 0.413 ], "angle": 0, "content": "[30] Zachary Teed and Jia Deng. Raft: Recurrent all-pairs field transforms for optical flow. In European conference on computer vision, pages 402-419. Springer, 2020. 1, 2, 3, 5, 8" }, { "type": "ref_text", "bbox": [ 0.08, 0.414, 0.471, 0.496 ], "angle": 0, "content": "[31] Stepan Tulyakov, Alfredo Bochicchio, Daniel Gehrig, Stamatios Georgoulis, Yuanyou Li, and Davide Scaramuzza. Time lens++: Event-based frame interpolation with parametric non-linear flow and multi-scale fusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17755-17764, 2022. 1" }, { "type": "ref_text", "bbox": [ 0.08, 0.497, 0.47, 0.579 ], "angle": 0, "content": "[32] Stepan Tulyakov, Daniel Gehrig, Stamatios Georgoulis, Julius Erbach, Mathias Gehrig, Yuanyou Li, and Davide Scaramuzza. Time lens: Event-based video frame interpolation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 16155-16164, 2021. 1" }, { "type": "ref_text", "bbox": [ 0.08, 0.58, 0.47, 0.636 ], "angle": 0, "content": "[33] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. 5" }, { "type": "ref_text", "bbox": [ 0.08, 0.636, 0.47, 0.69 ], "angle": 0, "content": "[34] Zhexiong Wan, Yuchao Dai, and Yuxin Mao. Learning dense and continuous optical flow from an event camera. IEEE Transactions on Image Processing, 31:7237-7251, 2022. 1, 3, 4, 6, 7" }, { "type": "ref_text", "bbox": [ 0.08, 0.691, 0.47, 0.761 ], "angle": 0, "content": "[35] Haofei Xu, Jiaolong Yang, Jianfei Cai, Juyong Zhang, and Xin Tong. High-resolution optical flow from 1d attention and correlation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10498-10507, 2021. 2" }, { "type": "ref_text", "bbox": [ 0.08, 0.761, 0.47, 0.83 ], "angle": 0, "content": "[36] Haofei Xu, Jing Zhang, Jianfei Cai, Hamid Rezatofighi, and Dacheng Tao. Gmflow: Learning optical flow via global matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8121-8130, 2022. 2, 6" }, { "type": "ref_text", "bbox": [ 0.08, 0.831, 0.47, 0.873 ], "angle": 0, "content": "[37] Gengshan Yang and Deva Ramanan. Volumetric correspondence networks for optical flow. Advances in neural information processing systems, 32:794-805, 2019. 2" }, { "type": "ref_text", "bbox": [ 0.08, 0.873, 0.47, 0.903 ], "angle": 0, "content": "[38] Chengxi Ye, Anton Mitrokhin, Cornelia Fermüller, James A Yorke, and Yiannis Aloimonos. Unsupervised learning of" }, { "type": "list", "bbox": [ 0.08, 0.092, 0.471, 0.903 ], "angle": 0, "content": null }, { "type": "ref_text", "bbox": [ 0.535, 0.093, 0.892, 0.147 ], "angle": 0, "content": "dense optical flow, depth and egomotion with event-based sensors. In 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 5831-5838. IEEE, 2020. 1, 2, 7" }, { "type": "ref_text", "bbox": [ 0.503, 0.149, 0.892, 0.218 ], "angle": 0, "content": "[39] Feihu Zhang, Victor Prisacariu, Ruigang Yang, and Philip HS Torr. Ga-net: Guided aggregation net for end-to-end stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 185-194, 2019. 2" }, { "type": "ref_text", "bbox": [ 0.503, 0.219, 0.892, 0.275 ], "angle": 0, "content": "[40] Feihu Zhang, Xiaojuan Qi, Ruigang Yang, Victor Prisacariu, Benjamin Wah, and Philip Torr. Domain-invariant stereo matching networks. In European Conference on Computer Vision, pages 420-439. Springer, 2020. 2" }, { "type": "ref_text", "bbox": [ 0.503, 0.277, 0.892, 0.346 ], "angle": 0, "content": "[41] Feihu Zhang, Oliver J Woodford, Victor Adrian Prisacariu, and Philip HS Torr. Separable flow: Learning motion cost volumes for optical flow estimation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10807-10817, 2021. 2" }, { "type": "ref_text", "bbox": [ 0.503, 0.346, 0.892, 0.403 ], "angle": 0, "content": "[42] Xu Zheng, Yexin Liu, Yunfan Lu, Tongyan Hua, Tianbo Pan, Weiming Zhang, Dacheng Tao, and Lin Wang. Deep learning for event-based vision: A comprehensive survey and benchmarks. arXiv preprint arXiv:2302.08890, 2023. 1" }, { "type": "ref_text", "bbox": [ 0.503, 0.403, 0.892, 0.472 ], "angle": 0, "content": "[43] Alex Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Ev-flownet: Self-supervised optical flow estimation for event-based cameras. In Proceedings of Robotics: Science and Systems, Pittsburgh, Pennsylvania, June 2018, 2, 5, 6, 7" }, { "type": "ref_text", "bbox": [ 0.503, 0.473, 0.892, 0.543 ], "angle": 0, "content": "[44] Alex Zihao Zhu, Dinesh Thakur, Tolga Özaslan, Bernd Pfrommer, Vijay Kumar, and Kostas Daniilidis. The multivehicle stereo event camera dataset: An event camera dataset for 3d perception. IEEE Robotics and Automation Letters, 3(3):2032-2039, 2018. 2, 3, 5, 7" }, { "type": "ref_text", "bbox": [ 0.503, 0.544, 0.894, 0.614 ], "angle": 0, "content": "[45] Alex Zihao Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Unsupervised event-based learning of optical flow, depth, and egomotion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 989-997, 2019. 1, 2, 3, 4, 5, 7" }, { "type": "list", "bbox": [ 0.503, 0.093, 0.894, 0.614 ], "angle": 0, "content": null }, { "type": "page_number", "bbox": [ 0.483, 0.946, 0.516, 0.957 ], "angle": 0, "content": "9694" } ]]123version https://git-lfs.github.com/spec/v1oid sha256:88fa59189bb6d0e751635ccdf9623d1a987401adb76a333c6f2116a84203f37esize 1037859123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318# TMA: Temporal Motion Aggregation for Event-based Optical Flow
Haotian Liu<sup>1</sup> Guang Chen<sup>1*</sup> Sanqing Qu<sup>1</sup> Yanping Zhang<sup>1</sup> Zhijun Li<sup>1</sup> Alois Knoll<sup>2</sup> Changjun Jiang<sup>1</sup> <sup>1</sup>Tongji University <sup>2</sup>Technical University of Munich
# Abstract
Event cameras have the ability to record continuous and detailed trajectories of objects with high temporal resolution, thereby providing intuitive motion cues for optical flow estimation. Nevertheless, most existing learning-based approaches for event optical flow estimation directly remould the paradigm of conventional images by representing the consecutive event stream as static frames, ignoring the inherent temporal continuity of event data. In this paper, we argue that temporal continuity is a vital element of event-based optical flow and propose a novel Temporal Motion Aggregation (TMA) approach to unlock its potential. Technically, TMA comprises three components: an event splitting strategy to incorporate intermediate motion information underlying the temporal context, a linear lookup strategy to align temporally fine-grained motion features and a novel motion pattern aggregation module to emphasize consistent patterns for motion feature enhancement. By incorporating temporally fine-grained motion information, TMA can derive better flow estimates than existing methods at early stages, which not only enables TMA to obtain more accurate final predictions, but also greatly reduces the demand for a number of refinements. Extensive experiments on DSEC-Flow and MVSEC datasets verify the effectiveness and superiority of our TMA. Remarkably, compared to E-RAFT, TMA achieves a $6\%$ improvement in accuracy and a $40\%$ reduction in inference time on DSEC-Flow. Code will be available at https://github.com/ispc-lab/TMA.
# 1. Introduction
Optical flow aims to compute the velocity of objects on the image plane without geometry prior and is a fundamental topic in event-based vision [8, 42]. It plays an important role in many applications, such as ego-motion estimation [38, 45], image reconstruction [24], and video frame interpolation [32, 31]. Recently, learning-based methods [29, 18, 30] have dominated frame-based optical flow
 (a) reference image
 (b) event frame

 (c) E-RAFT output & motion feature (d) our output & motion feature


Figure 1: Accuracy illustrations. (a) Reference image from DSEC-Flow. (b) Corresponding event frame. (c) The final flow prediction and visualization of the motion feature from E-RAFT [11]. (d) The final flow prediction and visualization of the motion feature from our proposed method. We visualize the motion feature at the initial stage by taking the average across channels. E-RAFT fails to generate informative motion features and results in blurred boundaries. In contrast, our method utilizes temporally fine-grained motion information to address the information scarcity issue in motion features, generating high-quality predictions.
by employing correlation volumes to derive motion features for flow regression. Inspired by this, several event-based approaches [11, 34] adopt a similar paradigm by converting the consecutive event stream into grid-like representations. Despite encouraging progress, these methods still suffer from non-negligible limitations, due to the great differences between event data and conventional images. Distinct from dense and colorful conventional (RGB) images, event data features spatial sparsity and a lack of intensity information. It is prone to result in close matching scores and invalid regions in the correlation volume. Consequently, less informative motion features are derived and regress inaccurate
predictions. Figure 1 illustrates this issue in E-RAFT [11].
As the saying goes, each coin has two sides. Though event cameras encode visual information in a sparse manner, they are capable of capturing continuous and detailed object trajectories with high temporal resolution, thereby providing rich motion cues for optical flow estimation. Several model-based methods [9, 27] benefit from the temporal continuity by warping events along point trajectories, achieving decent performance. Drawing on this observation, we contend that the temporal continuity is a vital element of event-based optical flow and propose to unleash its potential within a learning-based framework.
To materialize our idea, we propose a novel Temporal Motion Aggregation (TMA) approach to explore the inherent temporal continuity of event data. Technically, we revamp the dominant learning-based architectures with three distinct components. We first introduce an event splitting strategy for temporally-dense correlation volumes computation. By splitting the event stream into multiple segments and extracting their features, feature similarities are compared between the first feature and all others, which record rich intermediate motion information. Aware of that correlation volumes record motions between different time spans, we then design a linear lookup strategy to sample each correlation volume based on the corresponding flow estimate to encode motion features. As a result, fine-grained motions are warped to the same pixels across motion features. Furthermore, we consider the incorrect motion patterns in intermediate motion features due to the manual lookup. Therefore, we propose a novel pattern aggregation module for motion feature enhancement by aggregating consistent patterns between each intermediate motion feature and the last one (without manual lookup). Thanks to the incorporation of temporally fine-grained motion information, TMA can effectively address the information scarcity in motion features and thus generate good flow estimates at early stages, which not only enable TMA to obtain accurate flow predictions, but also greatly reduces the demand for a number of time-consuming refinements.
We evaluate our TMA on DSEC-Flow [10] and MVSEC [44] datasets. Extensive experiments demonstrate the superior advantages of TMA.
In summary, our main contributions are as follows:
- We argue that the temporal continuity of event data is a vital element of event-based optical flow and propose to unlock its potential in a learning-based framework. - We propose a novel Temporal Motion Aggregation (TMA) approach, which comprises three components: an event splitting strategy, a linear lookup strategy and a motion pattern aggregation module. - The incorporation of temporally fine-grained motion information enables TMA to achieve high accuracy
while maintaining high efficiency. Compared with E-RAFT, TMA achieves a $6\%$ improvement in accuracy and a $40\%$ reduction in inference time on DSEC-Flow.
# 2. Related Work
Learning methods for optical flow estimation. Recently, correlation volume based approaches dominate the learning-based optical flow estimation [25, 17, 29, 18, 37, 14]. As a milestone, PwCNet [29] summarizes a simple principle in architecture construction: pyramidal processing, warping and correlation volumes computation. Following the well-established pipeline, LiteFlowNet series [16, 17, 15] propose cascaded feature pyramids with a lightweight convolutional burden. VCN [37] proposes 4D volumetric U-Net architectures to enlarge the receptive fields for correlation volumes. IRR [18] notes the reusability of pyramidal refinement for flow update and proposes a shared-weights refiner across all scales, which can be combined with mainstream learning methods.
However, the correlation volumes used in previous works are computed locally, which cannot fully deal with long-term motions. RAFT [30] firstly introduces the full correlation volume to capture global visual similarities. Separable Flow [41] proposes a separable correlation volume module as a drop-in replacement to correlation volumes and uses non-local aggregation layers [39, 40] to refine the correlation volumes efficiently. Besides, transformer components show promising performance on optical flow [36, 19, 35]. GMA [19] notices the underlying motion clues in the context and introduces an attention layer to aggregate hidden motions, improving the accuracy based on RAFT architecture. GMFlow [36] reformulates optical flow as a global matching problem by attention blocks, suggesting a new paradigm for flow estimation.
We draw inspiration from GMA [19] to design our motion pattern aggregation module. In contrast to GMA which aggregates hidden motion patterns in the spatial context for motion feature enhancement, we extend the pattern aggregation to the temporal dimension and leverage feature cross-similarities to enhance the motion feature.
Event-based optical flow estimation. A number of traditional works remould frame-based approaches into event-based optical flow estimation. Benosman et al. [4] extends the classic Lucas-Kanade method to event-based optical flow. Liu et al. [21, 22] implement event-based corner keypoint detection and novel block-matching optical flow. Gallego et al. [9] propose a unifying contrast maximization (CM) framework and MultiCM [27] extends it to complex scenes. Besides, plane fitting [1, 3], filter banks [6] and time surface matching [2] are proposed to boost performance.
More recently, learning-based methods have dominated frame-based optical flow, inspiring attempts at event-based optical flow. Early learning methods [43, 45, 38] represent
 Figure 2: The overall architecture of TMA. First, we split the event stream into segments and extract features with a share-weights feature extractor. Then, regarding the first feature as reference, we correlate all other features to compute temporally-dense correlation volumes, which contain rich embedded motion information. Next, aware of the different time spans of correlation volumes, we look up each correlation volume based on a corresponding flow estimate. All sampled correlation maps are delivered into a share-weights motion feature encoder to derive motion features. We further propose a novel motion pattern aggregation module to enrich the spatial information of motion features. By concatenating the enhanced motion features and utilizing several refinements, high-quality flow predictions are generated.
the event stream as a static frame and utilize the architecture of U-Net [26] to predict optical flow, which can only address small motions. Mainstream works [7, 34, 11] introduce two consecutive event frames and follow the correlation volume based pipeline (PWCNet and RAFT), achieving higher accuracy on large-scales datasets [44, 10]. E-RAFT [11, 12] extends RAFT [30] and introduces full correlation volume into event-based vision. DCEIFlow [34] combines conventional images and event data to boost higher accuracy. Note that our work and STE-FlowNet [7] share a similar motivation to introduce temporal continuity with fine-grained discretization. However, STE-FlowNet takes a frame-by-frame manner [18] to update flow, leading to an insufficient inference process.
Contrary to previous learning-based methods, we do not merely adopt the classic correlation volume based pipeline. Instead, we regard the temporal continuity of event data as a vital component of optical flow and incorporate the intermediate motion information into a learning-based framework, which boosts higher accuracy and efficiency.
# 3. Methodology
Given an input event stream $\{\mathcal{E}\}$ from $t_0$ to $t_1$ , the goal of optical flow is to estimate a dense displacement field $\mathbf{u}:\mathbb{R}^2\to \mathbb{R}^2$ which maps each per-pixel $(x,y)$ at $t_0$ to its corresponding coordinate $(x^{\prime},y^{\prime})$ at $t_1$ . To address this, mainstream learning-based approaches compute correlation volumes from two event frames as a matching prior. Such principle inspires several methods [11, 34] by squeezing event data into consecutive frames. Unfortunately, the characteristics of event data, spatial sparsity and lack of intensity records, are prone to result in close matching scores and invalid regions in the correlation volume. Consequently, less informative motion features are derived and regress inaccurate predictions. Here we address the information scarcity
of motion features from the attractive temporal continuity of event data. Temporally fine-grained motion information in event data is sufficient to supplement the spatial richness of motion features, yielding high-quality flow predictions.
In the following, we first describe the preliminary and event representation, and then present the detailed architecture of the proposed TMA.
# 3.1. Preliminary and Event Representation
Event cameras record light intensity changes in an asynchronous way. Each pixel serves as an independent trigger and generates an event instantly whenever the log intensity changes exceeding a threshold $C$ . An event $\boldsymbol{e}_k = (\boldsymbol{x}_k, p_k, t_k)$ is a triplet containing triggered pixel location $\boldsymbol{x}_k = (x_k, y_k)^T$ , timestamp $t_k$ and signed intensity change $(p_k = \pm 1)$ .
To ease the feature extraction and preserve the temporal continuity of the event data, we firstly transform the event stream into a 3D volume $V(x,y,t)$ along the temporal dimension following existing works [45, 11, 24]. Given an event stream $\{\mathcal{E}\}$ , $V(x,y,t)$ is generated as:
$$t _ {i} ^ {*} = (B - 1) \left(t _ {i} - t _ {1}\right) / \left(t _ {N _ {e}} - t _ {1}\right) \tag {1}$$
$$\boldsymbol {V} (x, y, t) = \sum_ {i} p _ {i} k _ {b} \left(x - x _ {i}\right) k _ {b} \left(y - y _ {i}\right) k _ {b} \left(t - t _ {i} ^ {*}\right) \tag {2}$$
$$k _ {b} (a) = \max (0, 1 - | a |), \tag {3}$$
where $t_i^*$ represents the $i$ -th time bin. $B$ and $N_e$ represent the length of time bins and the number of events, respectively. $k_b(a)$ is the bilinear interpolation function.
# 3.2. TMA Architecture
We develop our framework based on the successful RAFT architecture [30]. Figure 2 summarizes the architecture of the proposed TMA, which consists of three components, an event splitting strategy, a linear lookup strategy
 Figure 3: Linear lookup strategy. We compute correlation volumes by comparing the similarity of first feature with all others, which are misaligned due to different time spans. To rectify this, we narrow down the lookup coordinates linearly to warp correlation maps to spatially aligned pixels.
and a motion pattern aggregation module. With the proposed method, we successfully unlock the potential of temporal continuity to predict event-based optical flow within a learning-based framework.
Event splitting. Instead of viewing the continuous event stream as a static frame which tends to be a matter of common knowledge in recent works [45, 11, 34], we prefer to identify it as a high frame rate video clip, which records continuous and detailed trajectories of objects, namely, provides intuitive motion cues for optical flow estimation. To introduce rich intermediate motion information into our method, we first propose an event splitting strategy, which splits the event stream into multiple segments. Therefore, more intermediate event frames are retained for correlation volume computation.
In particular, given an event stream $\{\mathcal{E}\}$ from $t_0$ to $t_1$ , we split it into $g$ segments equally and the time span between adjacent segments is $dt$ . Besides, we introduce an auxiliary event segment from $t_0 - dt$ to $t_0$ as reference. Then, $g + 1$ event representations are generated following Sec. 3.1. All $g + 1$ event representations are then delivered into a share-weights encoder to achieve features $\pmb{F}_i \in \mathbb{R}^{H \times W \times C}, i = 0, 1, 2, \dots, g,$ where $H, W$ and $D$ represent the height, width and channel of features. We use all features to compute temporally-dense correlation volumes $\pmb{C}_i, i = 1, 2, \dots, g,$ which are given by:
$$\boldsymbol {C} _ {i} = \frac {\boldsymbol {F} _ {0} \boldsymbol {F} _ {i} ^ {T}}{\sqrt {D}} \in \mathbb {R} ^ {H \times W \times H \times W}, i = 1, 2, \dots , g, \tag {4}$$
where $\pmb{F}_0$ is the first feature and $\pmb{F}_i$ is the $i$ -th feature derived from the $i$ -th event frame.
Temporally-dense correlation volumes compare feature similarities across multiple time spans, enabling refined records of relative motions. This construction is vastly different from the classic full correlation volume that only contains feature similarities between a fixed time span.
Linear lookup. Recall that each correlation volume $C_i$
 Figure 4: Motion pattern aggregation. We pair each intermediate motion feature to the last motion feature. Then each pair is sent to cross-attention blocks to aggregate consistent patterns. Hence, each intermediate motion feature carries information from the last one and consistent patterns receive emphasis.
is achieved by correlating $F_{0}$ and $F_{i}$ , which means the recorded relation motions are misaligned in time. While our goal is to predict optical flow from $t_{0}$ to $t_{1}$ , we hope that all sampled correlation maps could present the relative motions within the same time span. Therefore, based on that correlation volumes are evenly constructed in time and magnitudes of optical flow change linearly over a short period, we narrow down lookup coordinates in a linear fashion to match the timestamp of each correlation volume.
Figure 3 displays the linear lookup strategy. In detail, given current flow estimate $\mathbf{u}$ , we split it into $g$ segments to sample each correlation volume. The linear lookup operation can be expressed as:
$$\mathbf {d} \mathbf {u} = \left(\mathbf {c o o r d s} _ {1} - \mathbf {c o o r d s} _ {0}\right) / g = \mathbf {u} / g \tag {5}$$
$$\operatorname {c o r r} _ {i} = S \left(\boldsymbol {C} _ {i}, \operatorname {c o o r d s} _ {0} + i \mathrm {d u}\right), i = 1, 2, \dots , g, \tag {6}$$
where $\mathbf{coord}_0$ is the initialized coordinates at $t_0$ (reference time), $S(\cdot, \cdot)$ represents the lookup operation, $\mathbf{coord}_i$ are lookup coordinates for $C_i$ and $\mathbf{corr}_i$ is the correlation map sampled from $C_i$ . After delivering all correlation maps into a share-weights motion feature encoder, aligned motion features are achieved.
From the perspective of image contrast [9], the standard lookup is responsible for warping possible matching points between two images to the same pixel. Our linear lookup extends it by warping matching points of a temporally fine-grained motion to the same pixel. As a result, similar motions are presented at same pixels across correlation maps, showing high contrast.
Motion pattern aggregation. A standard operation for next step is to concatenate the motion features as a whole to update flow and the improvements made so far already alleviate the information scarcity in motion features. However, we notice that the concatenation operation treats all motion features equally, which means the majority of motion features, intermediate ones, dominate the flow regression. Due
 Figure 5: Qualitative examples of DSEC-Flow. For each two columns, we show the reference image and event frame and compare our method with a state-of-the-art baseline E-RAFT [11]. Significant improvements are highlighted by red boxes.


to the linear optical flow assumption and manual lookup operation, these motion features are not perfectly correct. A natural thought is to put more emphasis on the last motion feature that is without manual lookup and retain the patterns in intermediate motion features that are consistent with the last motion feature. To this end, we balance the weights between the last motion feature and others through cross-similarities computed by transformers [33, 19].
Figure 4 shows the overview of motion pattern aggregation module. Given a set of motion features $M\mathbf{F}_i \in \mathbb{R}^{H \times W \times D'}$ , $i = 1,2,\dots,g$ , we pair each intermediate motion feature to the last one. Then each pair $(M\mathbf{F}_i,M\mathbf{F}_g)$ is sent to cross-attention blocks to compare cross-similarities and aggregate consistent patterns. The enhanced motion feature $\widehat{M}\mathbf{F}_i$ is obtained as:
$$\begin{array}{l} \boldsymbol {A} = \operatorname {A t t e n t i o n} \left(\boldsymbol {M} \boldsymbol {F} _ {i} W ^ {Q}, \boldsymbol {M} \boldsymbol {F} _ {g} W ^ {K}, \boldsymbol {M} \boldsymbol {F} _ {g} W ^ {V}\right) (7) \\ \widehat {\boldsymbol {M F}} _ {i} = \boldsymbol {M F} _ {i} + \operatorname {M L P} \left(\left[ \boldsymbol {M F} _ {i}, \boldsymbol {A W} ^ {O} \right]\right), (8) \\ \end{array}$$
where $\operatorname{Attention}(Q, K, V) = \operatorname{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V$ , $d_k$ is the dimension of $K$ . $W^Q$ , $W^K$ , $W^V$ are projection matrices. $\mathrm{MLP}(\cdot)$ is multi-layer perceptron and $W^O$ is another projection matrix. We omit the normalization functions in the manuscript for simplicity. Motion pattern aggregation module does not change the dimension of motion features, so multiple cross-attention layers can be stacked easily.
Once motion features are enhanced by the motion pattern aggregation module, each $\widehat{MF}_i$ carries motion patterns that are consistent with $MF_{g}$ . Namely, the last motion feature receives high attention and consistent patterns in motion features are fully utilized.
Above three components are seamlessly integrated into a unified pipeline: incorporating intermediate motion information, warping matching motions and emphasizing consistent motion patterns. Attributed to the innovative application of temporal continuity to a learning-based frame
work, our proposed method is capable of overcoming the information scarcity issue in motion features and generating high-quality flow estimates even at an early refinement stage. This enables our method to achieve accurate final predictions, while reducing the demand for a number of refinements.
# 3.3. Supervision
Following RAFT [30], we choose $L_{1}$ distance between the predictions and ground-truth as the supervision signal for our model. The loss function $\mathcal{L}$ is formally defined as:
$$\mathcal {L} = \sum_ {j = 1} ^ {N} \gamma^ {N - j} \left\| \mathbf {u} ^ {g t} - \mathbf {u} ^ {j} \right\| _ {1}, \tag {9}$$
where $\mathbf{u}^{gt}$ denotes the flow ground-truth and $\mathbf{u}^j$ the flow prediction at $j$ -th stage. $N$ is the total refinement stages. The weight $\gamma$ balances different stages of predictions.
# 4. Experiments
Datasets and evaluation setup. Following previous works [11, 45, 7], we provide experimental details and extensive comparison results on two event-based datasets DSEC-Flow [10] and MVSEC [44]. For DSEC-Flow, we train models on the official training set and evaluate DSEC-Flow test set on the public benchmark. For MVSEC, we conduct two kinds of experiments. Basically, following previous methods [43, 27], we train methods on outdoor_day2 sequence with ground-truth corresponding to a time interval of $dt = 1$ and $dt = 4$ gray images and evaluate 800 frames of outdoor_day1 and three indoor_flying sequences. Equally importantly, considering the supervised learning setting of our method and the large gap between outdoor_day and indoor_flying data, we extend the range of training data by including one indoor_flying sequence each time to further boost the accuracy of supervised learning methods.
<table><tr><td></td><td>Methods</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time(ms)</td></tr><tr><td>MB</td><td>MultiCM [27]</td><td>3.47</td><td>76.6</td><td>30.9</td><td>-</td></tr><tr><td rowspan="3">SL</td><td>EV-FlowNet†[43]</td><td>2.32</td><td>55.4</td><td>18.6</td><td>5</td></tr><tr><td>E-RAFT [11]</td><td>0.79</td><td>12.5</td><td>2.7</td><td>52</td></tr><tr><td>Ours</td><td>0.74</td><td>10.9</td><td>2.3</td><td>30</td></tr></table>
Table 1: Results on DSEC-Flow. Best accuracy in bold. $\dagger$ denotes the result is taken from E-RAFT [11]. Model-based (MB) methods need no training data; and supervised learning (SL) methods need ground-truth.
Metrics. The end-point-error (EPE) is used as core metric for prediction accuracy for both DSEC-Flow and MVSEC. To evaluate the robustness against large displacements, we compute the percentage of pixels with EPE greater than $M$ pixels $(M\mathrm{PE},M = 1,3)$ for DSEC-Flow. Percentage of pixels with EPE above 3 and $5\%$ of the magnitude of the flow ground-truth (\% Outlier) are presented for MVSEC. On DSEC-Flow, metrics are measured over pixels with valid ground-truth. While on MVSEC, metrics are measured over pixels with valid ground-truth and at least one triggered event.
Implementation details. The proposed TMA is implemented using PyTorch. We set the event segment $g = 5$ . For experiments on DSEC-Flow, the channel of event representation $B$ for each segment is set to 3. For MVSEC, $B$ is set to 1 when $dt = 1$ and 3 when $dt = 4$ , respectively. The sum of channels keeps the same with the state-of-the-art E-RAFT [11]. We only stack 1 layer of motion pattern aggregation module. Other components are basically identical to RAFT's model, including feature extractor, motion feature encoder and flow updater. Note that we use a small feature extractor whose final channel is 128. We predict 6 levels of optical flow and the weight $\gamma$ is set to 0.8 for supervision. In training, we exploit AdamW [23] optimizer and One-cycle learning rate scheduler [28]. We train models on DSEC-Flow for 200K steps and MVSEC for 100K steps, both with a learning rate of 0.0002 and a batch size of 6.
# 4.1. DSEC-Flow
Accuracy comparison. Evaluation results on DSEC-Flow benchmark<sup>1</sup> are provided in Table 1. Compared with E-RAFT, our method improves the EPE from 0.79 to 0.74. Our method is also leading in 1PE and 3PE with a margin of 1.6 and 0.4, showing better robustness.
Qualitative results are exhibited in Figure 5. In challenging regions such as textureless areas (the wall in second two columns, the shrubs in last two columns), existing correlation volume contains similar matching scores and fails to generate informative motion features, leading to low-quality predictions. On the contrary, our method aggregates
 Figure 6: EPE vs. number of iterations at inference. The figure exhibits the prediction results on DSEC-Flow at different stages during inference. Our method achieves an accuracy $(\mathrm{EPE} = 0.81)$ comparable to E-RAFT with 2 iterations while E-RAFT needs 6 iterations.
temporally consistent motion patterns to enhance motion features, distinguishing different moving objects and generating high-quality predictions.
Efficiency comparison. The last column of Table 1 exhibits the inference time. Our method enjoys faster inference speed compared with E-RAFT, which is mainly attributed to fewer iterative updates. The reasonable explanation is that our method utilizes temporal motion information to enrich motion features, thus being able to generate good predictions even at an initial stage. To prove this, we compare the accuracy with E-RAFT at early inference stages in Figure 6. Our method achieves better flow initialization at early stages, supporting our argument. The ablation experiment on different iterations (Table 4e) also demonstrates that our method requires fewer iterations (ours: 6, E-RAFT: 12) to achieve surpassing accuracy.
# 4.2.MVSEC
Inter-domain evaluation. Table 2 reports the results on MVSEC training with outdoor_day2 sequence. The top of Table 2 reports the results corresponding to $dt = 1$ grayscale frame and the bottom corresponds to $dt = 4$ grayscale frames. Our method shows comparable accuracy on outdoor_day1 for $dt = 1$ and highest accuracy on outdoor_day1 for $dt = 4$ among all compared methods. Unfortunately, like two other supervised learning methods, DCEI-Flow [34] and E-RAFT [11], our method fails to achieve superior results on indoor_flying sequences. One possible reason is that model based methods and unsupervised learning methods usually have better generalization ability, while supervised learning methods are limited if training data has a significantly large gap with test data [36, 34]. Since outdoor_day sequences and indoor_flying sequences have a great domain gap, it is challenging for supervised learning methods to generalize well on indoor_flying sequences.
Intra-domain evaluation. To verify the possible cause and better analyze the accuracy of our method under su
<table><tr><td rowspan="2" colspan="2"></td><td rowspan="2">Input</td><td colspan="2">indoor_flying1</td><td colspan="2">indoor_flying2</td><td colspan="2">indoor_flying3</td><td colspan="2">outdoor_day1</td></tr><tr><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td></tr><tr><td colspan="11">dt = 1</td></tr><tr><td rowspan="2">MB</td><td>Brebion et al. [5]</td><td>E</td><td>0.52</td><td>0.10</td><td>0.98</td><td>5.50</td><td>0.71</td><td>2.10</td><td>0.53</td><td>0.20</td></tr><tr><td>MultiCM (Burgers') [27]</td><td>E</td><td>0.42</td><td>0.10</td><td>0.60</td><td>0.59</td><td>0.50</td><td>0.28</td><td>0.30</td><td>0.10</td></tr><tr><td rowspan="3">SSL</td><td>EV-FlowNet [43]</td><td>E</td><td>1.03</td><td>2.20</td><td>1.72</td><td>15.10</td><td>1.53</td><td>11.90</td><td>0.49</td><td>0.20</td></tr><tr><td>Spike-FlowNet [20]</td><td>E</td><td>0.84</td><td>-</td><td>1.28</td><td>-</td><td>1.11</td><td>-</td><td>0.49</td><td>-</td></tr><tr><td>STE-FlowNet [7]</td><td>E</td><td>0.57</td><td>0.10</td><td>0.79</td><td>1.60</td><td>0.72</td><td>1.30</td><td>0.42</td><td>0.00</td></tr><tr><td rowspan="3">USL</td><td>Hagenaars et al. [13]</td><td>E</td><td>0.60</td><td>0.51</td><td>1.17</td><td>8.06</td><td>0.93</td><td>5.64</td><td>0.47</td><td>0.25</td></tr><tr><td>Zhu et al. [45]</td><td>E</td><td>0.58</td><td>0.00</td><td>1.02</td><td>4.00</td><td>0.87</td><td>3.00</td><td>0.32</td><td>0.00</td></tr><tr><td>ECN [38]</td><td>E</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>0.30</td><td>0.02</td></tr><tr><td rowspan="3">SL</td><td>E-RAFT [11]</td><td>E</td><td>1.10</td><td>5.72</td><td>1.94</td><td>30.79</td><td>1.66</td><td>25.20</td><td>0.24</td><td>0.00</td></tr><tr><td>DCEIFlow [34]</td><td>E + I</td><td>0.75</td><td>1.55</td><td>0.90</td><td>2.10</td><td>0.80</td><td>1.77</td><td>0.22</td><td>0.00</td></tr><tr><td>Ours</td><td>E</td><td>1.06</td><td>3.63</td><td>1.81</td><td>27.29</td><td>1.58</td><td>23.26</td><td>0.25</td><td>0.07</td></tr><tr><td colspan="11">dt = 4</td></tr><tr><td>MB</td><td>MultiCM (Burgers') [27]</td><td>E</td><td>1.69</td><td>12.95</td><td>2.49</td><td>26.35</td><td>2.06</td><td>19.03</td><td>1.25</td><td>9.21</td></tr><tr><td rowspan="3">SSL</td><td>EV-FlowNet [43]</td><td>E</td><td>2.25</td><td>24.70</td><td>4.05</td><td>45.30</td><td>3.45</td><td>39.70</td><td>1.23</td><td>7.30</td></tr><tr><td>Spike-FlowNet [20]</td><td>E</td><td>2.24</td><td>-</td><td>3.83</td><td>-</td><td>3.18</td><td>-</td><td>1.09</td><td>-</td></tr><tr><td>STE-FlowNet [7]</td><td>E</td><td>1.77</td><td>14.70</td><td>2.52</td><td>26.10</td><td>2.23</td><td>22.10</td><td>0.99</td><td>3.90</td></tr><tr><td rowspan="2">USL</td><td>Zhu et al. [45]</td><td>E</td><td>2.18</td><td>24.20</td><td>3.85</td><td>46.80</td><td>3.18</td><td>47.80</td><td>1.30</td><td>9.70</td></tr><tr><td>Hagenaars et al. [13]</td><td>E</td><td>2.16</td><td>21.51</td><td>3.90</td><td>40.72</td><td>3.00</td><td>29.60</td><td>1.69</td><td>12.50</td></tr><tr><td rowspan="3">SL</td><td>DCEIFlow [34]</td><td>E + I</td><td>2.08</td><td>21.47</td><td>3.48</td><td>42.05</td><td>2.51</td><td>29.73</td><td>0.89</td><td>3.19</td></tr><tr><td>E-RAFT [11]</td><td>E</td><td>2.81</td><td>40.25</td><td>5.09</td><td>64.19</td><td>4.46</td><td>57.11</td><td>0.72</td><td>1.12</td></tr><tr><td>Ours</td><td>E</td><td>2.43</td><td>29.91</td><td>4.32</td><td>52.74</td><td>3.60</td><td>42.02</td><td>0.70</td><td>1.08</td></tr></table>
Table 2: Evaluation results on MVSEC [44] training with outdoor_day2 sequence. Model-based (MB) methods need no training data; semi-supervised learning (SSL) methods use grayscale images for supervision; unsupervised learning (USL) methods only require events; and supervised learning (SL) methods need ground-truth. E means the method only uses events as input; and I means the method requires images as input.
<table><tr><td rowspan="2">dt = 4</td><td rowspan="2">Train Set +</td><td colspan="2">indoor_flying1</td><td colspan="2">indoor_flying2</td><td colspan="2">indoor_flying3</td><td colspan="2">outdoor_day1</td></tr><tr><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td><td>EPE</td><td>% Outlier</td></tr><tr><td>E-RAFT [11]</td><td rowspan="2">indoor_flying1</td><td>-</td><td>-</td><td>2.35</td><td>26.24</td><td>1.84</td><td>18.07</td><td>0.72</td><td>1.38</td></tr><tr><td>Ours</td><td>-</td><td>-</td><td>2.15</td><td>20.41</td><td>1.68</td><td>14.30</td><td>0.64</td><td>0.98</td></tr><tr><td>E-RAFT [11]</td><td rowspan="2">indoor_flying2</td><td>1.41</td><td>8.14</td><td>-</td><td>-</td><td>1.50</td><td>9.37</td><td>0.71</td><td>1.13</td></tr><tr><td>Ours</td><td>1.32</td><td>5.94</td><td>-</td><td>-</td><td>1.50</td><td>8.88</td><td>0.64</td><td>0.96</td></tr><tr><td>E-RAFT [11]</td><td rowspan="2">indoor_flying3</td><td>1.39</td><td>8.38</td><td>1.77</td><td>17.52</td><td>-</td><td>-</td><td>0.72</td><td>1.46</td></tr><tr><td>Ours</td><td>1.33</td><td>5.82</td><td>1.67</td><td>12.80</td><td>-</td><td>-</td><td>0.67</td><td>1.10</td></tr></table>
Table 3: Evaluation results on MVSEC [44] training with outdoor_day2 and one indoor_flying sequence. + means the indoor_flying sequence to be included into training set.
pervised learning setting, we incorporate one indoor_flying sequence into training set each time and make comparisons with the supervised learning state-of-the-art E-RAFT. Table 3 shows the evaluation results corresponding to $dt = 4$ grayscale frames (For $dt = 1$ , refer to appendix). Compared with the results in Table 2, E-RAFT and our method both achieve great improvement on indoor_flying sequences (EPE of indoor_flying2, ours: $4.32 \rightarrow 1.67$ , E-RAFT: 5.09 → 1.77), confirming the presence of domain gap between
outdoor_day and indoor_flying data. Compared with the accuracy of E-RAFT with the same training set, on the one hand, our method shows better generalization ability, which generates lower EPE and $\%$ Outlier without seeing indoor_flying sequences. On the other hand, our method achieves higher accuracy on four sequences by incorporating indoor_flying sequences into training set. Overall, our method achieves a new state-of-the-art result, demonstrating the effectiveness of our proposed method.
<table><tr><td>splits</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>1</td><td>0.79</td><td>11.91</td><td>2.75</td><td>16</td></tr><tr><td>3</td><td>0.76</td><td>10.98</td><td>2.45</td><td>18</td></tr><tr><td rowspan="2">5/7</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.74</td><td>11.13</td><td>2.26</td><td>50</td></tr></table>
(a) Event splitting. Intermediate motion information contributes
<table><tr><td>setup</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>basic</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>+v_Proj</td><td>0.75</td><td>10.90</td><td>2.35</td><td>30</td></tr><tr><td>circular</td><td>0.76</td><td>11.25</td><td>2.44</td><td>30</td></tr></table>
(c) Pattern aggregation module design.
<table><tr><td>iterations</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>2</td><td>0.83</td><td>11.04</td><td>2.37</td><td>10</td></tr><tr><td>4</td><td>0.76</td><td>11.45</td><td>2.43</td><td>16</td></tr><tr><td rowspan="2">6/8</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.74</td><td>10.81</td><td>2.32</td><td>54</td></tr></table>
(e) Iterations. TMA achieves good results with a few iterations.
<table><tr><td>style</td><td>EPE</td><td>1PE</td><td>3PE</td></tr><tr><td>w/o</td><td>0.78</td><td>12.00</td><td>2.66</td></tr><tr><td>linear</td><td>0.74</td><td>10.86</td><td>2.30</td></tr><tr><td>same</td><td>0.76</td><td>11.45</td><td>2.48</td></tr></table>
(b) Lookup style. Sampling correlation volumes with a set of linear coordinates improves the accuracy.
<table><tr><td>layers</td><td>EPE</td><td>1PE</td><td>3PE</td><td>Time (ms)</td></tr><tr><td>0</td><td>0.75</td><td>11.36</td><td>2.33</td><td>20</td></tr><tr><td rowspan="2">1/2</td><td>0.74</td><td>10.86</td><td>2.30</td><td>30</td></tr><tr><td>0.75</td><td>10.90</td><td>2.32</td><td>38</td></tr></table>
(d) Layers of pattern aggregation module. Stacking 1 pattern aggregation module showcases high accuracy.
<table><tr><td>radius</td><td>EPE</td><td>1PE</td><td>3PE</td></tr><tr><td>1</td><td>0.75</td><td>11.14</td><td>2.37</td></tr><tr><td>2</td><td>0.76</td><td>11.16</td><td>2.39</td></tr><tr><td rowspan="2">3/4</td><td>0.74</td><td>10.86</td><td>2.30</td></tr><tr><td>0.75</td><td>10.93</td><td>2.30</td></tr></table>
(f) Searching radius. A radius of 3 leads to high accuracy.
Table 4: TMA ablations. Models are trained on DSEC-Flow. Settings used in our final model are underlined.
# 4.3. Ablations
We conduct a series of ablation experiments to validate the proposed improvements. All ablation models are trained on DSEC-Flow and evaluated on the public benchmark.
Event splitting. We compare different numbers of event segments in Table 4a. We choose different splits in 1, 3, 5 and 7. With the split set to 1, our model degrades into a classic correlation volume based framework and exhibits similar accuracy in comparison with E-RAFT. More splits lead to higher accuracy but lower inference efficiency, so we use 5 splits to achieve accuracy-efficiency trade-off.
Lookup style. Based on the assumption that the optical flow changes linearly over a short period, we propose the linear lookup strategy. To validate it, we try to cancel the lookup operation or just use same sampling coordinates on intermediate correlation volumes. As Table 4b shows, sampling the correlation maps with a set of linear coordinates leads to high accuracy.
Pattern aggregation module design. We ablate different components of pattern aggregation module in Table 4c. By default, we set the projection matrix of value $W^V$ as an identity matrix because the motion features are encoded by a motion feature encoder beforehand. In addition, we replace the pairing mode of motion features with circular pairing. Circular pairing gives equal treatment to all motion features without highlighting the importance of the last motion feature, which fails to improve accuracy.
Layers of pattern aggregation module. We compare the accuracy with different layers of pattern aggregation modules in Table 4d. We note that stacking 1 layer of pat
tern aggregation module showcases high accuracy. More layers may lead to difficulties in optimization, which in turn causes a decrease in accuracy.
Iterations. Iterative learning plays a role in numerous works [18, 30]. Results in Table 4e show that 6 iterative updates reach the sweet spot of accuracy and efficiency.
Searching radius. We compare different radii for looking up correlation volumes in Table 4f. Searching radius of 3 leads to high accuracy. Different from RAFT [30] that achieves better predictions with an increased radius, our model does not benefit a lot from a greater radius.
# 5. Conclusion
In this paper, we delve into event-based optical flow estimation problem. Different from existing methods that represent the event stream as static frames to adopt the classic correlation volume based pipeline, we contend that the temporal continuity is a vital element of event-based optical flow. We propose a novel Temporal Motion Aggregation (TMA) approach to unlock its potential within a learning-based framework. By incorporating temporally fine-grained motion information, TMA generates high-quality flow estimates at early stages, which not only enables TMA to obtain accurate final predictions, but also greatly reduces the demand for a number of refinements. Extensive experiments on DESC-Flow and MVSEC datasets verify the effectiveness and superiority of TMA. Meanwhile, we notice the limitations of supervised learning in generalization ability and expect further improvement to extend our idea into unsupervised learning frameworks.
Acknowledgments: This work was supported in part by Shanghai Municipal Science and Technology Major Project under Grant 2018SHZDZX01, ZJ Lab, the Shanghai Center for Brain Science and Brain-Inspired Technology, in part by Shanghai Rising Star Program under Grant 21QC1400900, in part by Tongji-Qomolo Autonomous Driving Commercial Vehicle Joint Lab Project, and in part by Xiaomi Young Talents Program.
# References
[1] Himanshu Akolkar, Sio-Hoi Ieng, and Ryad Benosman. Real-time high speed motion prediction using fast aperture-robust event-driven visual flow. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(1):361-372, 2020. 2 [2] Mohammed Almatrafi, Raymond Baldwin, Kiyoharu Aizawa, and Keigo Hirakawa. Distance surface for event-based optical flow. IEEE transactions on pattern analysis and machine intelligence, 42(7):1547-1556, 2020. 2 [3] Ryad Benosman, Charles Clercq, Xavier Lagorce, Sio-Hoi Ieng, and Chiara Bartolozzi. Event-based visual flow. IEEE transactions on neural networks and learning systems, 25(2):407-417, 2013. 2 [4] Ryad Benosman, Sio-Hoi Ieng, Charles Clercq, Chiara Bartolozzi, and Mandyam Srinivasan. Asynchronous frameless event-based optical flow. Neural Networks, 27:32-37, 2012. 2 [5] Vincent Brebion, Julien Moreau, and Franck Davoine. Realtime optical flow for vehicular perception with low-and high-resolution event cameras. IEEE Transactions on Intelligent Transportation Systems, 2021. 7 [6] Tobias Brosch, Stephan Tschechne, and Heiko Neumann. On event-based optical flow detection. Frontiers in neuroscience, 9:137, 2015. 2 [7] Ziluo Ding, Rui Zhao, Jiyuan Zhang, Tianxiao Gao, Ruiqin Xiong, Zhaofei Yu, and Tiejun Huang. Spatio-temporal recurrent networks for event-based optical flow estimation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 525-533, 2022. 3, 5, 7 [8] Guillermo Gallego, Tobi Delbrück, Garrick Orchard, Chiara Bartolozzi, Brian Taba, Andrea Censi, Stefan Leutenegger, Andrew J Davison, Jörg Conradt, Kostas Daniilidis, et al. Event-based vision: A survey. IEEE transactions on pattern analysis and machine intelligence, 44(1):154-180, 2020. 1 [9] Guillermo Gallego, Henri Rebecq, and Davide Scaramuzza. A unifying contrast maximization framework for event cameras, with applications to motion, depth, and optical flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3867-3876, 2018. 2, 4 [10] Mathias Gehrig, Willem Aarents, Daniel Gehrig, and Davide Scaramuzza. Dsec: A stereo event camera dataset for driving scenarios. IEEE Robotics and Automation Letters, 6(3):4947-4954, 2021. 2, 3, 5 [11] Mathias Gehrig, Mario Millhäsler, Daniel Gehrig, and Davide Scaramuzza. E-raft: Dense optical flow from event cam
eras. In 2021 International Conference on 3D Vision (3DV), pages 197-206. IEEE, 2021. 1, 2, 3, 4, 5, 6, 7 [12] Mathias Gehrig, Manasi Muglikar, and Davide Scaramuzza. Dense continuous-time optical flow from events and frames. arXiv preprint arXiv:2203.13674, 2022. 3 [13] Jesse Hagenaars, Federico Paredes-Vallés, and Guido De Croon. Self-supervised learning of event-based optical flow with spiking neural networks. Advances in Neural Information Processing Systems, 34:7167-7179, 2021. 7 [14] Markus Hofinger, Samuel Rota Bulò, Lorenzo Porzi, Arno Knapitsch, Thomas Pock, and Peter Kontschieder. Improving optical flow on a pyramid level. In European Conference on Computer Vision, pages 770-786. Springer, 2020. 2 [15] Tak-Wai Hui and Chen Change Loy. Liteflownet3: Resolving correspondence ambiguity for more accurate optical flow estimation. In European Conference on Computer Vision, pages 169-184. Springer, 2020. 2 [16] Tak-Wai Hui, Xiaou Tang, and Chen Change Loy. Liteflownet: A lightweight convolutional neural network for optical flow estimation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8981-8989, 2018. 2 [17] Tak-Wai Hui, Xiaou Tang, and Chen Change Loy. A lightweight optical flow cnn—revisiting data fidelity and regularization. IEEE transactions on pattern analysis and machine intelligence, 43(8):2555-2569, 2020. 2 [18] Junhwa Hur and Stefan Roth. Iterative residual refinement for joint optical flow and occlusion estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5754-5763, 2019. 1, 2, 3, 8 [19] Shihao Jiang, Dylan Campbell, Yao Lu, Hongdong Li, and Richard Hartley. Learning to estimate hidden motions with global motion aggregation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9772-9781, 2021. 2, 5 [20] Chankyu Lee, Adarsh Kumar Kosta, Alex Zihao Zhu, Kenneth Chaney, Kostas Daniilidis, and Kaushik Roy. Spikeflownet: event-based optical flow estimation with energy-efficient hybrid neural networks. In European Conference on Computer Vision, pages 366-382. Springer, 2020. 7 [21] Min Liu and Tobi Delbruck. Adaptive time-slice block-matching optical flow algorithm for dynamic vision sensors. BMVC, 2018. 2 [22] Min Liu and Tobi Delbruck. Edflow: Event driven optical flow camera with keypoint detection and adaptive block matching. IEEE Transactions on Circuits and Systems for Video Technology, 32(9):5776-5789, 2022. 2 [23] Ilya Loshchilov and Frank Hutter. Fixing weight decay regularization in adam. 2017. 6 [24] Federico Paredes-Vallés and Guido CHE de Croon. Back to event basics: Self-supervised learning of image reconstruction for event cameras via photometric constancy. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3446-3455, 2021. 1, 3 [25] Anurag Ranjan and Michael J Black. Optical flow estimation using a spatial pyramid network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4161-4170, 2017. 2
[26] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234-241. Springer, 2015. 3 [27] Shintaro Shiba, Yoshimitsu Aoki, and Guillermo Gallego. Secrets of event-based optical flow. In European Conference on Computer Vision, pages 628-645. Springer, 2022. 2, 5, 6, 7 [28] Leslie N Smith and Nicholay Topin. Super-convergence: Very fast training of neural networks using large learning rates. In Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications, volume 11006, page 1100612. International Society for Optics and Photonics, 2019. 6 [29] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. Pwc-net: Cnns for optical flow using pyramid, warping, and cost volume. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8934-8943, 2018. 1, 2 [30] Zachary Teed and Jia Deng. Raft: Recurrent all-pairs field transforms for optical flow. In European conference on computer vision, pages 402-419. Springer, 2020. 1, 2, 3, 5, 8 [31] Stepan Tulyakov, Alfredo Bochicchio, Daniel Gehrig, Stamatios Georgoulis, Yuanyou Li, and Davide Scaramuzza. Time lens++: Event-based frame interpolation with parametric non-linear flow and multi-scale fusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17755-17764, 2022. 1 [32] Stepan Tulyakov, Daniel Gehrig, Stamatios Georgoulis, Julius Erbach, Mathias Gehrig, Yuanyou Li, and Davide Scaramuzza. Time lens: Event-based video frame interpolation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 16155-16164, 2021. 1 [33] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. 5 [34] Zhexiong Wan, Yuchao Dai, and Yuxin Mao. Learning dense and continuous optical flow from an event camera. IEEE Transactions on Image Processing, 31:7237-7251, 2022. 1, 3, 4, 6, 7 [35] Haofei Xu, Jiaolong Yang, Jianfei Cai, Juyong Zhang, and Xin Tong. High-resolution optical flow from 1d attention and correlation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10498-10507, 2021. 2 [36] Haofei Xu, Jing Zhang, Jianfei Cai, Hamid Rezatofighi, and Dacheng Tao. Gmflow: Learning optical flow via global matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8121-8130, 2022. 2, 6 [37] Gengshan Yang and Deva Ramanan. Volumetric correspondence networks for optical flow. Advances in neural information processing systems, 32:794-805, 2019. 2 [38] Chengxi Ye, Anton Mitrokhin, Cornelia Fermüller, James A Yorke, and Yiannis Aloimonos. Unsupervised learning of
dense optical flow, depth and egomotion with event-based sensors. In 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 5831-5838. IEEE, 2020. 1, 2, 7 [39] Feihu Zhang, Victor Prisacariu, Ruigang Yang, and Philip HS Torr. Ga-net: Guided aggregation net for end-to-end stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 185-194, 2019. 2 [40] Feihu Zhang, Xiaojuan Qi, Ruigang Yang, Victor Prisacariu, Benjamin Wah, and Philip Torr. Domain-invariant stereo matching networks. In European Conference on Computer Vision, pages 420-439. Springer, 2020. 2 [41] Feihu Zhang, Oliver J Woodford, Victor Adrian Prisacariu, and Philip HS Torr. Separable flow: Learning motion cost volumes for optical flow estimation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10807-10817, 2021. 2 [42] Xu Zheng, Yexin Liu, Yunfan Lu, Tongyan Hua, Tianbo Pan, Weiming Zhang, Dacheng Tao, and Lin Wang. Deep learning for event-based vision: A comprehensive survey and benchmarks. arXiv preprint arXiv:2302.08890, 2023. 1 [43] Alex Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Ev-flownet: Self-supervised optical flow estimation for event-based cameras. In Proceedings of Robotics: Science and Systems, Pittsburgh, Pennsylvania, June 2018, 2, 5, 6, 7 [44] Alex Zihao Zhu, Dinesh Thakur, Tolga Özaslan, Bernd Pfrommer, Vijay Kumar, and Kostas Daniilidis. The multivehicle stereo event camera dataset: An event camera dataset for 3d perception. IEEE Robotics and Automation Letters, 3(3):2032-2039, 2018. 2, 3, 5, 7 [45] Alex Zihao Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Unsupervised event-based learning of optical flow, depth, and egomotion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 989-997, 2019. 1, 2, 3, 4, 5, 7123version https://git-lfs.github.com/spec/v1oid sha256:efb40599d3221f8b189c81544d7b8e2606b0de68929d0fe1fbcb6d590cebec56size 58350712345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664[ { "type": "text", "text": "TMR: Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis", "text_level": 1, "bbox": [ 107, 130, 861, 152 ], "page_idx": 0 }, { "type": "text", "text": "Mathis Petrovich $^{1,2}$ Michael J. Black $^{2}$ Gül Varol $^{1}$ $^{1}$ LIGM, École des Ponts, Univ Gustave Eiffel, CNRS, France \n $^{2}$ Max Planck Institute for Intelligent Systems, Tübingen, Germany \nhttps://mathis.petrovich.fr/tmr", "bbox": [ 230, 179, 736, 253 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 235, 287, 310, 303 ], "page_idx": 0 }, { "type": "text", "text": "In this paper, we present TMR, a simple yet effective approach for text to 3D human motion retrieval. While previous work has only treated retrieval as a proxy evaluation metric, we tackle it as a standalone task. Our method extends the state-of-the-art text-to-motion synthesis model TEMOS, and incorporates a contrastive loss to better structure the cross-modal latent space. We show that maintaining the motion generation loss, along with the contrastive training, is crucial to obtain good performance. We introduce a benchmark for evaluation and provide an in-depth analysis by reporting results on several protocols. Our extensive experiments on the KIT-ML and HumanML3D datasets show that TMR outperforms the prior work by a significant margin, for example reducing the median rank from 54 to 19. Finally, we showcase the potential of our approach on moment retrieval. Our code and models are publicly available at https://mathis.petrovich.fr/tmr.", "bbox": [ 75, 321, 473, 564 ], "page_idx": 0 }, { "type": "text", "text": "1. Introduction", "text_level": 1, "bbox": [ 76, 599, 202, 614 ], "page_idx": 0 }, { "type": "text", "text": "The language of movement cannot be translated into words. Barbara Mettler", "bbox": [ 107, 627, 454, 654 ], "page_idx": 0 }, { "type": "text", "text": "We ask the question whether a cross-modal space exists between 3D human motions and language. Our goal is to retrieve the most relevant 3D human motion from a gallery, given a natural language query that describes the desired motion (as illustrated in Figure 1). While text-to-image retrieval is a well-established problem within the broader vision & language field [39], there has been less focus on the related task of text-to-motion retrieval. Searching an existing motion capture dataset based on text input can often serve as a viable alternative to text-to-human-motion synthesis in many applications, while also providing the added benefit that the retrieved motion is guaranteed to be realistic. Additionally, once a cross-modal embedding is built to map text and motions into a joint representation space, both of the symmetrical text-to-motion and motion-to-text tasks", "bbox": [ 75, 688, 470, 900 ], "page_idx": 0 }, { "type": "image", "img_path": "images/3bd9579c967fe35c00393d88dd4a95ab700d969e4f4b8da77794fd0740ac96d8.jpg", "image_caption": [ "A person is stretching legs", "Figure 1. Text-to-motion retrieval: We illustrate the task of text-based motion retrieval where the goal is to rank a gallery of motions according to their similarity to the given query in the form of a natural language description." ], "image_footnote": [], "bbox": [ 508, 321, 885, 508 ], "page_idx": 0 }, { "type": "text", "text": "can be performed. Such a retrieval-based solution has a range of applications, including automatically indexing large motion capture collections, and helping to initialize the cumbersome text labeling process, by assigning the nearest text to each motion.", "bbox": [ 496, 590, 893, 652 ], "page_idx": 0 }, { "type": "text", "text": "Let us first differentiate text-to-motion retrieval from text-to-motion synthesis. Motion synthesis [5, 9, 36, 49] involves generating new data samples that go beyond the existing training set, while motion retrieval searches through existing motion capture collections. For certain applications, reusing motions from a collection may be sufficient, provided the collection is large enough to contain what the user is searching for. Unlike generative models for motion synthesis, which struggle to produce physically plausible, realistic sequences [5, 35, 36], a retrieval model has the advantage that it always returns a realistic motion. With this motivation, we pose the problem as a nearest neighbor search through a cross-modal text-motion space.", "bbox": [ 496, 655, 893, 837 ], "page_idx": 0 }, { "type": "text", "text": "Early work performs search through motion databases to build motion graphs [4, 23] by finding paths between existing motions and synthesizing new motions by stitching motions together with generated transitions. If the motion database is", "bbox": [ 496, 839, 893, 900 ], "page_idx": 0 }, { "type": "header", "text": "CVF", "bbox": [ 106, 2, 181, 42 ], "page_idx": 0 }, { "type": "header", "text": "This ICCV paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore.", "bbox": [ 238, 0, 807, 46 ], "page_idx": 0 }, { "type": "page_number", "text": "9488", "bbox": [ 480, 944, 514, 955 ], "page_idx": 0 }, { "type": "text", "text": "labeled with actions, the user can specify a series of actions to combine [4]. In contrast, our search database is not labeled with text. Motion matching [8], on the other hand, seeks to find the animation that best fits the current motion by searching a database of animations, doing motion-to-motion retrieval [45]. Our framework fundamentally differs from these lines of work in that our task is multi-modal, i.e., user query is text, which is compared against motions. The most similar work to ours is the very recent model from Guo et al. [15], which trains for a joint embedding space between the two modalities. This model is only used to provide a performance measure for motion synthesis tasks, by querying a generated motion within a gallery of 32 descriptions (i.e., motion-to-text retrieval), and counting how many times the correct text is retrieved<sup>1</sup>. While this can be considered as the first text-motion retrieval model in the literature, its main limitation is the low performance, in particular when the gallery contains fine-grained descriptions. We substantially improve over [15], by incorporating a joint synthesis & retrieval framework, as well as a more powerful contrastive training [34].", "bbox": [ 75, 90, 472, 378 ], "page_idx": 1 }, { "type": "text", "text": "We get inspiration from image-text models such as BLIP [26] and CoCa [54], which formulate a multi-task objective. Besides the standard dual-encoder matching (such as CLIP [39] with two unimodal encoders for image and text), [26, 54] also employ a text synthesis branch, performing image captioning. Such a generative capability potentially helps the model go beyond 'bag-of-words' understanding of vision-language concepts, observed for the naive contrastive models [11, 55]. In our case, we depart from TEMOS [36] which already has a synthesis branch to generate motions from text. We incorporate a cross-modal contrastive loss (i.e., InfoNCE [34]) in this framework to jointly train text-to-motion synthesis and text-to-motion retrieval tasks. We empirically demonstrate significant improvements with this approach when ablating the importance of each task.", "bbox": [ 75, 378, 472, 589 ], "page_idx": 1 }, { "type": "text", "text": "Text-motion data differs from its text-image counterparts particularly due to the nature of motion descriptions. In fact, for an off-the-shelf large language model, sentences describing different motions tend to be similar, since they fall within the same topic of human motions. For example, the text-text cosine similarities [46] after encoding motion descriptions from the KIT training set [37] are on average 0.71 on a scale between [0, 1], while this value is 0.56 (almost orthogonal) on a random subset of LAION [44] image descriptions with the same size. This poses several challenges. Typical motion datasets [15, 37, 38] contain similar motions with different accompanying texts, e.g., 'person walks', 'human walks', as well as similar texts with different motions, e.g., 'walk backwards', 'walk forwards'. With naive contrastive training [34], one would make all samples within a batch as negatives, except the corresponding label for a given anchor. In this work, we take into account the fact that there are potentially significant similarities between pairs within a batch. Specifically, we discard pairs that have a text-text", "bbox": [ 75, 590, 472, 864 ], "page_idx": 1 }, { "type": "text", "text": "similarity in their labels that is above a certain threshold. Such careful negative sampling leads to performance improvements.", "bbox": [ 500, 90, 890, 121 ], "page_idx": 1 }, { "type": "text", "text": "In this paper, we illustrate an additional use case for our retrieval model – zero-shot temporal localization – and highlight this task as a potential future avenue for research. Similar to temporal localization in videos with natural language queries [12, 13, 19, 25, 41], also referred to as “moment retrieval”, we showcase the grounding capability of our model by directly applying it on long motion sequences to retrieve corresponding moments. We illustrate results on the BABEL dataset [38], which typically contains a series of text annotations for each motion sequence. Note that the task is zero-shot, because the model has not been trained for localization, and at the same time has not seen BABEL labels, which come from a different domain (e.g., typically action-like descriptions instead of full sentences).", "bbox": [ 496, 122, 893, 333 ], "page_idx": 1 }, { "type": "text", "text": "Our contributions are the following: (i) We address the little-studied problem of text-to-motion retrieval, and introduce a series of evaluation benchmarks with varying difficulty. (ii) We propose a joint synthesis and retrieval framework, as well as negative filtering, and obtain state-of-the-art performance on text-motion retrieval. (iii) We provide extensive experiments to analyze the effects of each component in controlled settings. Our code and models are publicly available<sup>2</sup>.", "bbox": [ 496, 335, 893, 455 ], "page_idx": 1 }, { "type": "text", "text": "2. Related work", "text_level": 1, "bbox": [ 500, 473, 630, 489 ], "page_idx": 1 }, { "type": "text", "text": "We present an overview of the most closely related work on text-to-motion synthesis and retrieval, as well as a brief discussion on cross-modal retrieval works.", "bbox": [ 496, 500, 890, 544 ], "page_idx": 1 }, { "type": "text", "text": "Text and human motion. The research on human motion modeling has recently witnessed an increasing interest in bridging the gap between semantics and 3D human body motions, in particular for text-conditioned motion synthesis. Unlike unconstrained 3D human motion synthesis [53, 58, 59], action-conditioned [16, 35], or text-conditioned [5, 9, 14, 22, 24, 36, 49, 56] models add semantic controls to the generation process. The goal of these works is to generate either deterministically [2, 14, 27] or probabilistically [36], motion sequences that are faithful to the textual description inputs. Note that this is different than gesture synthesis from speech [17], in that the text describes the motion content. However, despite remarkable progress in text-to-image synthesis [40, 42], text-to-motion synthesis remains at a very nascent stage. The realism of the synthesized motions is limited, e.g., foot sliding artifacts [36]. We turn to text-to-motion retrieval as another alternative, and perhaps complementary approach to obtain motions for a given textual description. Our focus is therefore different from the work on synthesis. However, we do make use of a motion synthesis branch to aid the retrieval task.", "bbox": [ 496, 570, 893, 872 ], "page_idx": 1 }, { "type": "page_footnote", "text": "1While the paper [15] describes a motion-to-text retrieval metric, we notice that the provided code performs text-to-motion retrieval.", "bbox": [ 76, 875, 468, 900 ], "page_idx": 1 }, { "type": "page_footnote", "text": "2https://mathis.petrovich.fr/tmr", "bbox": [ 517, 886, 759, 898 ], "page_idx": 1 }, { "type": "page_number", "text": "9489", "bbox": [ 482, 944, 514, 955 ], "page_idx": 1 }, { "type": "text", "text": "Motion retrieval is relatively less explored. As briefly mentioned in Section 1, motion-to-motion retrieval (e.g., motion matching [8, 20, 45]) methods exist. However, the text-to-motion retrieval task is more challenging due to being cross-modal, i.e., nearest neighbor search across text and motion modalities. Within this category, the very recent work of Guo et al. [15] trains a retrieval model purely for evaluation purposes, and applies a margin-based contrastive loss [18], using Euclidean distance between all pairs within a batch.", "bbox": [ 75, 90, 470, 226 ], "page_idx": 2 }, { "type": "text", "text": "Two works are particularly relevant to ours. Firstly, we build on the TEMOS [36] text-to-motion synthesis model, which also has a cross-modal embedding space. However, text and motion embeddings are encouraged to be similar only across positive pairs. We therefore add a contrastive training strategy to incorporate negatives, consequently improving its retrieval capability from a large gallery of fine-grained motions. Secondly, we compare to the aforementioned method of [15], whose motion-to-text retrieval model is adopted for measuring text-to-motion generation performance automatically by other works [10, 49, 57].", "bbox": [ 75, 227, 473, 380 ], "page_idx": 2 }, { "type": "text", "text": "Cross-modal retrieval. Among widely adopted vision & language retrieval models, some successful examples include CLIP [39], BLIP [26], and CoCa [54] for images, and MILNCE [33], Frozen [7], and CLIP4Clip [30] for videos. They all use variants of cross-modal contrastive learning techniques, such as InfoNCE [34], which we also employ in this work. As discussed in Section 1, we draw inspiration from BLIP [26] and CoCa [54], which add synthesis branches to standard retrieval frameworks. Our approach is similar in spirit to these works in that we perform a cross-modal vision & language retrieval task, but differ in focusing on 3D human motion retrieval, which, to the best of our knowledge, has not been benchmarked.", "bbox": [ 75, 395, 470, 575 ], "page_idx": 2 }, { "type": "text", "text": "3. Text-to-motion retrieval", "text_level": 1, "bbox": [ 76, 588, 290, 604 ], "page_idx": 2 }, { "type": "text", "text": "In this section, we introduce the task and the terminology associated with text-to-motion retrieval (Section 3.1). Next, we present our model, named TMR, and its training protocol (Section 3.2). We then explain our simple approach for identifying and filtering incorrect negatives (Section 3.3), followed by a discussion of the implementation details (Section 3.4).", "bbox": [ 75, 613, 470, 705 ], "page_idx": 2 }, { "type": "text", "text": "3.1. Definitions", "text_level": 1, "bbox": [ 76, 710, 196, 724 ], "page_idx": 2 }, { "type": "text", "text": "Given a natural language query $T$ , such as 'A person walks and then makes a right turn', the goal is to rank the motions from a database (i.e., the gallery) according to their semantic correspondence with the text query, and to retrieve the motion that matches best to the textual description. In other words, the task involves sorting the database so that the top ranked motions are the most relevant matches, i.e., creating a search engine to index motions. Additionally, we define the symmetric (and complementary) task, namely motion-to-text retrieval, where the aim is to retrieve the most suitable caption that matches a given motion from a database of texts.", "bbox": [ 75, 734, 468, 902 ], "page_idx": 2 }, { "type": "text", "text": "3D human motion refers to a sequence of human poses. The task does not impose any limitations on the type of representation used, such as joint positions, rotations, or parametric models such as SMPL [28]. As detailed in Section 4.1, we choose to use the representation employed by Guo et al. [15] to facilitate comparisons with previous work. While our experiments are based on the SMPL skeleton, our method is applicable to any skeleton topology. One could alternatively use retargetting [1, 51, 52] to adapt to other body representations.", "bbox": [ 496, 90, 893, 226 ], "page_idx": 2 }, { "type": "text", "text": "Text description refers to a sequence of words describing the action performed by a human in natural language. We do not restrict the format of the motion description. The text can be simply an action name (e.g., 'walk') or a full sentence (e.g., 'a human is walking'). The sentences can be fine-grained (e.g., 'a human is walking in a circle slowly'), and may contain one or several actions, simultaneously (e.g., 'walking while waving') or sequentially (e.g., 'walking then sitting').", "bbox": [ 496, 227, 893, 349 ], "page_idx": 2 }, { "type": "text", "text": "3.2. Joint training of retrieval and synthesis", "text_level": 1, "bbox": [ 498, 359, 836, 376 ], "page_idx": 2 }, { "type": "text", "text": "We introduce TMR, which extends the Transformer-based text-to-motion synthesis model TEMOS [36] by incorporating additional losses to make it suitable for the retrieval task. The architecture consists of two independent encoders for inputting motion and text, as well as a decoder that outputs motion (see Figure 2 for an overview). In the following, we review TEMOS [36] components and our added contrastive training.", "bbox": [ 496, 383, 890, 489 ], "page_idx": 2 }, { "type": "text", "text": "Dual encoders. One approach to solving cross-modal retrieval tasks involves defining a similarity function between the two modalities. In our case, the two modalities are text and motion. The similarity function can be applied to compare a given query with each element in the database, and the maximum value would indicate the best match. In this paper, we follow the approach taken by previous work on metric learning, such as CLIP [39], by defining one encoder for each modality and then computing the cosine similarity between their respective embeddings. Such dual embedding has the advantage of fast inference time since the gallery embeddings can be computed and stored beforehand [32].", "bbox": [ 496, 491, 892, 672 ], "page_idx": 2 }, { "type": "text", "text": "Our model is built upon the components of TEMOS [36], which already provides a motion encoder and a text encoder, mapping them to a joint space (building on the idea from Language2Pose [2]); this serves as a strong baseline for our work. Both motion and text encoders are Transformer encoders [50] with additional learnable distribution parameters, as in the VAE-based ACTOR [35]. They are probabilistic in nature, outputting parameters of a Gaussian distribution $(\\mu$ and $\\Sigma)$ from which a latent vector $z\\in \\mathbb{R}^d$ can be sampled. While the text encoder takes text features from a pre-trained and frozen DistilBERT [43] network as input, the motion sequence is fed directly in the motion encoder. Note that when performing retrieval, we directly use the output embedding that corresponds to the mean token $(\\mu^{M}$ for motion, $\\mu^T$ for text).", "bbox": [ 496, 672, 893, 883 ], "page_idx": 2 }, { "type": "text", "text": "Motion decoder. TEMOS is trained for the task of motion", "bbox": [ 500, 885, 890, 900 ], "page_idx": 2 }, { "type": "page_number", "text": "9490", "bbox": [ 480, 944, 514, 955 ], "page_idx": 2 }, { "type": "image", "img_path": "images/b6aaf7f1f0ffd34b6555d615d240dfd6932730dbd2666a2d89ac1a9c9372187f.jpg", "image_caption": [ "Figure 2. Joint motion retrieval and synthesis: A simplified view of our TMR framework is presented, where we focus on the similarity matrix defined between text-motion pairs within a batch. Here, we show a batch of 3 samples for illustration purposes. The goal of the contrastive objective is to maximize the diagonal denoting positive pairs (green), and to minimize the off-diagonal negative pair items that have text similarity below a threshold (red). In this example, remaining similarities $S_{23}$ and $S_{32}$ are discarded from the loss computation because there is high text similarity between $T_{2}$ and $T_{3}$ . The rest of the model remains similar to TEMOS [36], which decodes a motion from both text $z^{T_i}$ and motion $z^{M_j}$ latent vectors. See text for further details." ], "image_footnote": [], "bbox": [ 101, 88, 869, 292 ], "page_idx": 3 }, { "type": "text", "text": "synthesis and comes equipped with a motion decoder branch. This decoder is identical to the one used in ACTOR [35], which supports variable-duration generation. More specifically, it takes a latent vector $z \\in \\mathbb{R}^d$ and a sinusoidal positional encoding as input, and generates a motion non-autoregressively through a single forward pass. We show in Section 4.2 that keeping this branch helps improve the results.", "bbox": [ 75, 391, 473, 498 ], "page_idx": 3 }, { "type": "text", "text": "TEMOS losses. We keep the same base set of losses of [36], defined as the weighted sum $\\mathcal{L}_{\\mathrm{TEMOS}} = \\mathcal{L}_{\\mathrm{R}} + \\lambda_{\\mathrm{KL}}\\mathcal{L}_{\\mathrm{KL}} + \\lambda_{\\mathrm{E}}\\mathcal{L}_{\\mathrm{E}}$ . In summary, a reconstruction loss term $\\mathcal{L}_{\\mathrm{R}}$ measures the motion reconstruction given text or motion input (via a smooth L1 loss). A Kullback-Leibler (KL) divergence loss term $\\mathcal{L}_{\\mathrm{KL}}$ is composed of four losses: two of them to regularize each encoded distributions $-\\mathcal{N}(\\mu^M,\\Sigma^M)$ for motion and $\\mathcal{N}(\\mu^T,\\Sigma^T)$ for text - to come from a normal distribution $\\mathcal{N}(0,I)$ . The other two enforce distribution similarity between the two modalities. A cross-modal embedding similarity loss $\\mathcal{L}_{\\mathrm{E}}$ enforces both text $z^{T}$ and motion $z^{M}$ latent codes to be similar to each other (with a smooth L1 loss). We set $\\lambda_{\\mathrm{KL}}$ and $\\lambda_{\\mathrm{E}}$ to $10^{-5}$ in our experiments as in [36].", "bbox": [ 75, 508, 473, 691 ], "page_idx": 3 }, { "type": "text", "text": "Contrastive training. While TEMOS has a cross-modal embedding space, its major drawback to be usable as an effective retrieval model is that it is never trained with negatives, but only positive motion-text pairs. To overcome this limitation, we incorporate a contrastive training with the usage of negative samples to better structure the latent space. Given a batch of N (positive) pairs of latent codes $(z_1^T,z_1^M),\\dots,(z_N^T,z_N^M)$ , we define any pair $(z_i^T,z_j^M)$ with $i\\neq j$ as negative. The similarity matrix $S$ computes the pairwise cosine similarities for all pairs in the batch $S_{ij} = \\cos (z_i^T,z_j^M)$ . In contrast to Guo et al. [15], who consider one random negative per batch (and use a margin loss), we adopt the more recent formulation of InfoNCE [34], which was proven effective in other work [7, 26, 39]. This loss term", "bbox": [ 75, 703, 472, 902 ], "page_idx": 3 }, { "type": "text", "text": "can be defined as follows:", "bbox": [ 500, 391, 666, 405 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} _ {\\mathrm {N C E}} = - \\frac {1}{2 N} \\sum_ {i} \\left(\\log \\frac {\\exp S _ {i i} / \\tau}{\\sum_ {j} \\exp S _ {i j} / \\tau} + \\log \\frac {\\exp S _ {i i} / \\tau}{\\sum_ {j} \\exp S _ {j i} / \\tau}\\right), \\tag {1}\n$$\n", "text_format": "latex", "bbox": [ 511, 412, 892, 450 ], "page_idx": 3 }, { "type": "text", "text": "where $\\tau$ is the temperature hyperparameter.", "bbox": [ 498, 459, 772, 473 ], "page_idx": 3 }, { "type": "text", "text": "Training loss. The total loss we use to train TMR is the weighted sum $\\mathcal{L}_{\\mathrm{TEMOS}} + \\lambda_{\\mathrm{NCE}}\\mathcal{L}_{\\mathrm{NCE}}$ where $\\lambda_{\\mathrm{NCE}}$ controls the importance of the contrastive loss.", "bbox": [ 498, 474, 892, 518 ], "page_idx": 3 }, { "type": "text", "text": "3.3. Filtering negatives", "text_level": 1, "bbox": [ 500, 529, 679, 545 ], "page_idx": 3 }, { "type": "text", "text": "As mentioned in Section 1, the descriptions accompanying motion capture collections can be repetitive or similar across the training motions. We wish to prevent defining negatives between text-motion pairs that contain similar descriptions.", "bbox": [ 496, 551, 892, 613 ], "page_idx": 3 }, { "type": "text", "text": "Consider for example the two text descriptions, \"A human making a counterclockwise turn\" and \"A person walks quarter a circle to the left\". In the KIT-ML benchmark [37], these two descriptions appear as two different annotations for the same motion. Due to the flexibility and ambiguity of natural language, different words may describe the same concepts (e.g., 'counterclockwise', 'circle to the left').", "bbox": [ 496, 613, 893, 718 ], "page_idx": 3 }, { "type": "text", "text": "During training, the random selection of batches can adversely affect the results because the model may have to push away two latent vectors that correspond to similar meanings. This can force the network to focus on unimportant details (e.g., 'someone' vs 'human'), ultimately resulting in decreased performance due to unstable behavior and reduced robustness to text variations.", "bbox": [ 496, 719, 893, 824 ], "page_idx": 3 }, { "type": "text", "text": "To alleviate this issue, we leverage an external large language model to provide sentence similarity scores. In particular, we use MPNet [47] to encode sentences and compute similarities between two text descriptions. We then determine whether to filter a pair of text descriptions $(t_{1}, t_{2})$ if their similarity", "bbox": [ 496, 824, 893, 902 ], "page_idx": 3 }, { "type": "page_number", "text": "9491", "bbox": [ 482, 944, 513, 955 ], "page_idx": 3 }, { "type": "text", "text": "is higher than a certain threshold, referring them as 'wrong negatives'. During training, we filter wrong negative pairs from the loss computation. Note that we refrain from defining them as positives, as the language model may also incorrectly say two descriptions are similar when they are not.", "bbox": [ 75, 90, 470, 167 ], "page_idx": 4 }, { "type": "text", "text": "3.4. Implementation details", "text_level": 1, "bbox": [ 76, 174, 292, 191 ], "page_idx": 4 }, { "type": "text", "text": "We use the AdamW optimizer [29] with a learning rate of $10^{-4}$ and a batch size of 32. Since the batch size can be an important hyperparameter for the InfoNCE loss, due to determining the number of negatives, we report experimental results with different values. The latent dimensionality of the embeddings is $d = 256$ . We set the temperature $\\tau$ to 0.1, and the weight of the contrastive loss term $\\lambda_{\\mathrm{NCE}}$ to 0.1. The threshold to filter negatives is set to 0.8. We provide experimental analyses to measure the sensitivity to these added hyperparameters.", "bbox": [ 75, 196, 470, 335 ], "page_idx": 4 }, { "type": "text", "text": "4. Experiments", "text_level": 1, "bbox": [ 76, 345, 202, 363 ], "page_idx": 4 }, { "type": "text", "text": "We start by describing the datasets and evaluation protocol used in the experiments (Section 4.1). We then report the performance of our model on our new retrieval benchmark along with comparison to prior work (Section 4.2). Next, we present our ablation study measuring the effects of the additional contrastive loss, the negative filtering, and the hyperparameters (Section 4.3). Finally, we provide qualitative results for retrieval (Section 4.4), and our use case of moment retrieval (Section 4.5).", "bbox": [ 75, 371, 470, 492 ], "page_idx": 4 }, { "type": "text", "text": "4.1. Datasets and evaluation", "text_level": 1, "bbox": [ 76, 500, 294, 513 ], "page_idx": 4 }, { "type": "text", "text": "HumanML3D dataset (H3D) [15] provides natural language labels to describe the motions in AMASS [31] and HumanAct12 [16] motion capture collections. We follow the motion pre-processing procedure of [15], and apply the SMPL layer [28] to extract joint positions, canonicalize the skeletons to share the same topology (i.e., same bone lengths), then compute motion features (extracting local positions, velocities and foot contacts similar to Holden et al. [21]). The data is then augmented by mirroring left and right (both in motions and their corresponding texts). After this procedure, and following the official split, we obtain 23384, 1460, 4380 motions for the training, validation, and test sets, respectively. On average, each motion is annotated 3.0 times with different text. During training we randomly select one as the matching text, for testing we use the first text.", "bbox": [ 75, 522, 468, 748 ], "page_idx": 4 }, { "type": "text", "text": "KIT Motion-Language dataset (KIT) [37] also come from motion capture data, with an emphasis on locomotion motions. It originally consists of 3911 motion sequences and 6278 text sentences. We pre-process the motions with the same procedure as in H3D. The data is split into 4888, 300, 830 motions for training, validation, and test sets, respectively. In this dataset, each motion is annotated 2.1 times on average.", "bbox": [ 75, 750, 470, 854 ], "page_idx": 4 }, { "type": "text", "text": "Evaluation protocol. We report standard retrieval performance measures: recall at several ranks, R@1, R@2, etc. for both text-to-motion and motion-to-text tasks (identical to the R", "bbox": [ 75, 854, 470, 900 ], "page_idx": 4 }, { "type": "text", "text": "Precision metrics adopted by Guo et al. [15]). Recall at rank $k$ measures the percentage of times the correct label is among the top $k$ results; therefore higher is better. We additionally report median rank (MedR), where lower is better. Note that the retrieval performance is evaluated on a gallery of unseen real motions (i.e., test set). A study of the synthesis performance of TMR can be found in Appendix B.", "bbox": [ 496, 90, 890, 196 ], "page_idx": 4 }, { "type": "text", "text": "We define several evaluation protocols, mainly changing the gallery set. (a) All the test set is used as a first protocol, without any modification. This set is partially problematic because there are repetitive texts across motions, or just minor differences (e.g., person vs human, walk vs walking). (b) All with threshold means we search over all the test set, but, in this case, we accept a retrieved motion as correct if its text label is similar to the query text above a threshold. For example, retrieving the motion corresponding to \"A human walks forward\" should be correct when the input query is \"Someone is walking forward\". We set a high threshold of 0.95 (scaled between [0, 1]) to remove very similar texts without removing too many fine-grained details. Appendix A provides statistics on how often similar text descriptions appear in the datasets. (c) Dissimilar subset refers to sampling 100 motion-text pairs whose texts are maximally far from each other (using an approximation of the quadratic knapsack problem [3]). This evaluation can be considered as an easy, but clean, subset of the previous ones. (d) Small batches is included to mimic the protocol described by Guo et al. [15], who randomly pick batches of 32 motion-text pairs and report the average performance. An ideal evaluation metric should not have randomness, and a gallery size of 32 is relatively easy compared to the previous protocols.", "bbox": [ 496, 198, 892, 546 ], "page_idx": 4 }, { "type": "text", "text": "4.2. A new benchmark & comparison to prior work", "text_level": 1, "bbox": [ 498, 558, 890, 574 ], "page_idx": 4 }, { "type": "text", "text": "We present the performance of our model on this new retrieval benchmark, on H3D (Table 1) and KIT (Table 2) datasets, across all evaluation protocols. We also compare against prior work TEMOS [36] and Guo et al. [15]. For TEMOS, we retrain their model on both datasets to have a comparable benchmark since the original model differs in motion representation and lacks left/right data augmentation (and they only provide a KIT-pretrained model, not H3D). For [15], we take their publicly available models trained on these two datasets.", "bbox": [ 496, 582, 893, 717 ], "page_idx": 4 }, { "type": "text", "text": "TEMOS in particular is not designed to perform well on retrieval, since its cross-modal embedding space is only trained with positive pairs. However, Guo et al. train contrastively with negatives as well, using a margin loss [18]. For all 4 evaluation sets with varying difficulties, TMR outperforms the prior work, suggesting our model better captures the finegrained nature of motion descriptions. The model of [15] is adopted as part of motion synthesis evaluation in several works. TMR may therefore provide a better alternative. Our significant improvements over the state of the art can be credited to (i) jointly training for synthesis and retrieval, (ii) adopting the more recent contrastive objective, InfoNCE [34], while (iii) carefully", "bbox": [ 496, 719, 893, 900 ], "page_idx": 4 }, { "type": "page_number", "text": "9492", "bbox": [ 482, 944, 514, 955 ], "page_idx": 4 }, { "type": "table", "img_path": "images/3afcb079e8aed2e53f3d84be031af0eda3c7d94f7250a33f1a2adb7d3e509945.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Protocol</td><td rowspan=\"2\">Methods</td><td colspan=\"6\">Text-motion retrieval</td><td colspan=\"6\">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>R@5↑</td><td>R@10↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>R@5↑</td><td>R@10↑</td><td>MedR↓</td></tr><tr><td rowspan=\"3\">(a) All</td><td>TEMOS [36]</td><td>2.12</td><td>4.09</td><td>5.87</td><td>8.26</td><td>13.52</td><td>173.0</td><td>3.86</td><td>4.54</td><td>6.94</td><td>9.38</td><td>14.00</td><td>183.25</td></tr><tr><td>Guo et al. [15]</td><td>1.80</td><td>3.42</td><td>4.79</td><td>7.12</td><td>12.47</td><td>81.00</td><td>2.92</td><td>3.74</td><td>6.00</td><td>8.36</td><td>12.95</td><td>81.50</td></tr><tr><td>TMR</td><td>5.68</td><td>10.59</td><td>14.04</td><td>20.34</td><td>30.94</td><td>28.00</td><td>9.95</td><td>12.44</td><td>17.95</td><td>23.56</td><td>32.69</td><td>28.50</td></tr><tr><td rowspan=\"3\">(b) All with threshold</td><td>TEMOS [36]</td><td>5.21</td><td>8.22</td><td>11.14</td><td>15.09</td><td>22.12</td><td>79.00</td><td>5.48</td><td>6.19</td><td>9.00</td><td>12.01</td><td>17.10</td><td>129.0</td></tr><tr><td>Guo et al. [15]</td><td>5.30</td><td>7.83</td><td>10.75</td><td>14.59</td><td>22.51</td><td>54.00</td><td>4.95</td><td>5.68</td><td>8.93</td><td>11.64</td><td>16.94</td><td>69.50</td></tr><tr><td>TMR</td><td>11.60</td><td>15.39</td><td>20.50</td><td>27.72</td><td>38.52</td><td>19.00</td><td>13.20</td><td>15.73</td><td>22.03</td><td>27.65</td><td>37.63</td><td>21.50</td></tr><tr><td rowspan=\"3\">(c) Dissimilar subset</td><td>TEMOS [36]</td><td>33.00</td><td>42.00</td><td>49.00</td><td>57.00</td><td>66.00</td><td>4.00</td><td>35.00</td><td>44.00</td><td>50.00</td><td>56.00</td><td>70.00</td><td>3.50</td></tr><tr><td>Guo et al. [15]</td><td>34.00</td><td>48.00</td><td>57.00</td><td>72.00</td><td>84.00</td><td>3.00</td><td>34.00</td><td>47.00</td><td>59.00</td><td>72.00</td><td>83.00</td><td>3.00</td></tr><tr><td>TMR</td><td>47.00</td><td>61.00</td><td>71.00</td><td>80.00</td><td>86.00</td><td>2.00</td><td>48.00</td><td>63.00</td><td>69.00</td><td>80.00</td><td>84.00</td><td>2.00</td></tr><tr><td rowspan=\"3\">(d) Small batches [15]</td><td>TEMOS [36]</td><td>40.49</td><td>53.52</td><td>61.14</td><td>70.96</td><td>84.15</td><td>2.33</td><td>39.96</td><td>53.49</td><td>61.79</td><td>72.40</td><td>85.89</td><td>2.33</td></tr><tr><td>Guo et al. [15]</td><td>52.48</td><td>71.05</td><td>80.65</td><td>89.66</td><td>96.58</td><td>1.39</td><td>52.00</td><td>71.21</td><td>81.11</td><td>89.87</td><td>96.78</td><td>1.38</td></tr><tr><td>TMR</td><td>67.16</td><td>81.32</td><td>86.81</td><td>91.43</td><td>95.36</td><td>1.04</td><td>67.97</td><td>81.20</td><td>86.35</td><td>91.70</td><td>95.27</td><td>1.03</td></tr></table>", "bbox": [ 83, 88, 883, 301 ], "page_idx": 5 }, { "type": "table", "img_path": "images/ab545cb039191b6440d9d8e00b856d5bb7a972c639ac266d6e533def84821e18.jpg", "table_caption": [ "Table 1. Text-to-motion retrieval benchmark on HumanML3D: We establish four evaluation protocols as described in Section 4.1, with decreasing difficulty from (a) to (d). Our model TMR substantially outperforms the prior work of Guo et al. [15] and TEMOS [36], on the challenging H3D dataset." ], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Protocol</td><td rowspan=\"2\">Methods</td><td colspan=\"6\">Text-motion retrieval</td><td colspan=\"6\">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>R@5↑</td><td>R@10↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>R@5↑</td><td>R@10↑</td><td>MedR↓</td></tr><tr><td rowspan=\"3\">(a) All</td><td>TEMOS [36]</td><td>7.11</td><td>13.25</td><td>17.59</td><td>24.10</td><td>35.66</td><td>24.00</td><td>11.69</td><td>15.30</td><td>20.12</td><td>26.63</td><td>36.39</td><td>26.50</td></tr><tr><td>Guo et al. [15]</td><td>3.37</td><td>6.99</td><td>10.84</td><td>16.87</td><td>27.71</td><td>28.00</td><td>4.94</td><td>6.51</td><td>10.72</td><td>16.14</td><td>25.30</td><td>28.50</td></tr><tr><td>TMR</td><td>7.23</td><td>13.98</td><td>20.36</td><td>28.31</td><td>40.12</td><td>17.00</td><td>11.20</td><td>13.86</td><td>20.12</td><td>28.07</td><td>38.55</td><td>18.00</td></tr><tr><td rowspan=\"3\">(b) All with threshold</td><td>TEMOS [36]</td><td>18.55</td><td>24.34</td><td>30.84</td><td>42.29</td><td>56.39</td><td>7.00</td><td>17.71</td><td>22.41</td><td>28.80</td><td>35.42</td><td>47.11</td><td>13.25</td></tr><tr><td>Guo et al. [15]</td><td>13.25</td><td>22.65</td><td>29.76</td><td>39.04</td><td>49.52</td><td>11.00</td><td>10.48</td><td>13.98</td><td>20.48</td><td>27.95</td><td>38.55</td><td>17.25</td></tr><tr><td>TMR</td><td>24.58</td><td>30.24</td><td>41.93</td><td>50.48</td><td>60.36</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>41.20</td><td>53.01</td><td>9.50</td></tr><tr><td rowspan=\"3\">(c) Dissimilar subset</td><td>TEMOS [36]</td><td>24.00</td><td>40.00</td><td>46.00</td><td>54.00</td><td>70.00</td><td>5.00</td><td>33.00</td><td>39.00</td><td>45.00</td><td>49.00</td><td>64.00</td><td>6.50</td></tr><tr><td>Guo et al. [15]</td><td>16.00</td><td>29.00</td><td>36.00</td><td>48.00</td><td>66.00</td><td>6.00</td><td>24.00</td><td>29.00</td><td>36.00</td><td>46.00</td><td>66.00</td><td>7.00</td></tr><tr><td>TMR</td><td>26.00</td><td>46.00</td><td>60.00</td><td>70.00</td><td>83.00</td><td>3.00</td><td>34.00</td><td>45.00</td><td>60.00</td><td>69.00</td><td>82.00</td><td>3.50</td></tr><tr><td rowspan=\"3\">(d) Small batches [15]</td><td>TEMOS [36]</td><td>43.88</td><td>58.25</td><td>67.00</td><td>74.00</td><td>84.75</td><td>2.06</td><td>41.88</td><td>55.88</td><td>65.62</td><td>75.25</td><td>85.75</td><td>2.25</td></tr><tr><td>Guo et al. [15]</td><td>42.25</td><td>62.62</td><td>75.12</td><td>87.50</td><td>96.12</td><td>1.88</td><td>39.75</td><td>62.75</td><td>73.62</td><td>86.88</td><td>95.88</td><td>1.95</td></tr><tr><td>TMR</td><td>49.25</td><td>69.75</td><td>78.25</td><td>87.88</td><td>95.00</td><td>1.50</td><td>50.12</td><td>67.12</td><td>76.88</td><td>88.88</td><td>94.75</td><td>1.53</td></tr></table>", "bbox": [ 83, 357, 883, 570 ], "page_idx": 5 }, { "type": "table", "img_path": "images/cd2b7e05c8e36c910e8020945fcda298b15c7e845990901e9b09351014ec8167.jpg", "table_caption": [ "Table 2. Text-to-motion retrieval benchmark on KIT-ML: As in Table 1, we report the four evaluation protocols, this time on the KIT dataset. Again, TMR significantly improves over Guo et al. [15] and TEMOS [36] across all protocols and metrics." ], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Motion \nRecons.</td><td rowspan=\"2\">InfoNCE</td><td rowspan=\"2\">Margin</td><td colspan=\"4\">Text-motion retrieval</td><td colspan=\"4\">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>X</td><td>X</td><td>✓</td><td>15.06</td><td>22.17</td><td>25.78</td><td>12.00</td><td>8.19</td><td>11.57</td><td>16.39</td><td>19.50</td></tr><tr><td>X</td><td>✓</td><td>X</td><td>19.76</td><td>25.30</td><td>36.87</td><td>6.00</td><td>17.47</td><td>19.76</td><td>30.60</td><td>9.50</td></tr><tr><td>✓</td><td>X</td><td>X</td><td>18.55</td><td>24.34</td><td>30.84</td><td>7.00</td><td>17.71</td><td>22.41</td><td>28.80</td><td>13.25</td></tr><tr><td>✓</td><td>X</td><td>✓</td><td>19.88</td><td>24.46</td><td>34.46</td><td>7.00</td><td>14.70</td><td>19.76</td><td>28.19</td><td>12.50</td></tr><tr><td>✓</td><td>✓</td><td>X</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr></table>", "bbox": [ 81, 623, 460, 703 ], "page_idx": 5 }, { "type": "text", "text": "Table 3. Losses: We experiment with various loss definitions (i) with/without the motion reconstruction, and (ii) the choice of the contrastive loss between InfoNCE and margin-based. We see that InfoNCE [34] is a better alternative to the contrastive loss with Euclidean margin [18] (employed by Guo et al. [15]). The reconstruction loss through the motion decoder branch further boosts the results.", "bbox": [ 76, 705, 468, 789 ], "page_idx": 5 }, { "type": "text", "text": "eliminating wrong negatives. In the following, we ablate these components in controlled experiments.", "bbox": [ 76, 804, 468, 835 ], "page_idx": 5 }, { "type": "text", "text": "4.3. Ablation study", "text_level": 1, "bbox": [ 76, 845, 227, 863 ], "page_idx": 5 }, { "type": "text", "text": "The rest of the quantitative evaluation uses the ' (b) All with threshold' evaluation protocol, on the KIT dataset.", "bbox": [ 76, 869, 468, 901 ], "page_idx": 5 }, { "type": "text", "text": "Which losses matter? Table 3 compares several variants of TMR where we check (a) whether the jointly trained motion synthesis branch helps retrieval, and (b) how important the form of the contrastive loss is. When removing the synthesis branch and only using the contrastive loss, we perform a deterministic encoding (i.e., with a single token instead of two tokens $\\mu$ , $\\sigma$ ). First, we see that the motion synthesis branch certainly improves results compared with only training using a contrastive loss (e.g., 41.93 vs 36.87 R@3). This possibly forces the latent vector to capture the full content of the input text (i.e., instead of picking up on a subset of words, or bag-of-words [11, 55] upon finding a shortcut that satisfies the contrastive loss). Second, in the presence of a contrastive loss, the InfoNCE formulation is significantly better than the margin loss employed by previous work [15] (41.93 vs 34.46 R@1). Note that for this experiment, we keep the same negative filtering for both the margin loss and InfoNCE (we provide additional experiments without the negative filtering in Appendix B).", "bbox": [ 496, 625, 893, 898 ], "page_idx": 5 }, { "type": "page_number", "text": "9493", "bbox": [ 480, 944, 514, 955 ], "page_idx": 5 }, { "type": "table", "img_path": "images/1d329fd76a290f3b80e2dc5ffbd0392d811ceb522155dcf1b61bf853aa6bbf6e.jpg", "table_caption": [], "table_footnote": [ "Table 4. Filtering negatives: We compare several threshold values for filtering negatives from the loss comparison due to having similar texts. We observe that removing negatives based on text similarity above 0.8 (from a scale between [0,1]) performs well overall." ], "table_body": "<table><tr><td rowspan=\"2\">Threshold</td><td colspan=\"4\">Text-motion retrieval</td><td colspan=\"4\">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>0.55</td><td>19.40</td><td>23.25</td><td>30.48</td><td>9.00</td><td>17.83</td><td>21.69</td><td>29.52</td><td>14.00</td></tr><tr><td>0.60</td><td>17.95</td><td>26.87</td><td>36.87</td><td>6.00</td><td>20.60</td><td>24.70</td><td>31.81</td><td>11.25</td></tr><tr><td>0.65</td><td>23.01</td><td>28.67</td><td>36.39</td><td>7.00</td><td>19.04</td><td>21.69</td><td>29.76</td><td>11.50</td></tr><tr><td>0.70</td><td>22.29</td><td>29.64</td><td>38.80</td><td>6.00</td><td>18.19</td><td>22.77</td><td>32.05</td><td>9.00</td></tr><tr><td>0.75</td><td>20.00</td><td>27.11</td><td>37.83</td><td>6.00</td><td>20.24</td><td>24.46</td><td>34.22</td><td>9.50</td></tr><tr><td>0.80</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr><tr><td>0.85</td><td>21.45</td><td>25.78</td><td>38.43</td><td>6.50</td><td>20.84</td><td>24.10</td><td>33.37</td><td>9.50</td></tr><tr><td>0.90</td><td>23.25</td><td>30.12</td><td>40.48</td><td>6.00</td><td>20.00</td><td>25.18</td><td>33.13</td><td>9.50</td></tr><tr><td>0.95</td><td>20.48</td><td>26.99</td><td>38.43</td><td>6.00</td><td>19.28</td><td>23.37</td><td>31.93</td><td>10.25</td></tr><tr><td>X</td><td>22.17</td><td>27.83</td><td>36.02</td><td>7.00</td><td>16.75</td><td>21.33</td><td>32.17</td><td>11.50</td></tr></table>", "bbox": [ 81, 88, 460, 232 ], "page_idx": 6 }, { "type": "text", "text": "The effect of filtering negatives. As explained in Section 3.3, during training we filter out pairs whose texts are closer than a threshold in an embedding space, and do not count them in the contrastive loss computation. Note that we still keep each item in the batch for the motion synthesis objective. In Table 4, we perform experiments with a range of different values for this threshold selection. On a scale between [0, 1], a threshold of 0.8 has the best results, balancing keeping a sufficient number of negatives and removing the wrong ones. Without filtering at all, the performance remains at $36.02\\mathrm{R}@\\mathfrak{z}3$ (compared to 41.93). We provide statistics on the percentage of filtered pairs in Appendix A.", "bbox": [ 75, 303, 468, 484 ], "page_idx": 6 }, { "type": "text", "text": "Hyperparameters of the contrastive training. We show the sensitivity of our model to several hyperparameters added when extending TEMOS: (i) temperature $\\tau$ of the cross entropy of InfoNCE [34] in Eq.1, (ii) the $\\lambda_{\\mathrm{NCE}}$ weighting parameter, and (iii) the batch size, which determines the number of negatives. We see in Table 5 that the model is indeed sensitive to the temperature, which is a common observation in other settings. The weight parameter and the batch size are relatively less important while also influencing the results to a certain extent. An experiment with the latent dimensionality hyperparameter can be found in Appendix B.", "bbox": [ 75, 486, 470, 652 ], "page_idx": 6 }, { "type": "text", "text": "4.4. Qualitative results", "text_level": 1, "bbox": [ 76, 664, 253, 680 ], "page_idx": 6 }, { "type": "text", "text": "In Figure 3, we provide sample qualitative results for text-to-motion retrieval on the full test set of H3D. For each query text displayed on the left, top-5 retrieved motions are shown on the right along with their similarity scores. Note that the ground-truth text labels (at the bottom of each motion) for the retrieved motions are not used, and the gallery motions are unseen at training. For the first two examples with 'playing violin' and 'handstand', we retrieve the ground-truth motion at rank 1. We observe that the next ranked motions depict visually similar motions as well (e.g., 'cartwheel' involves standing on the hands). For the free-from prompt example 'Someone is swimming' (i.e., the exact text does not appear in the gallery), the three first motions resemble or involve the swimming action, whereas motions at ranks 4 and 5 are incorrect. We notice that", "bbox": [ 75, 688, 470, 900 ], "page_idx": 6 }, { "type": "table", "img_path": "images/1ee01f8a42c4ff91b6f4a83e2f98b1ea22ef122c6730c2bf4b5113f65f91fdc6.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>Temp.</td><td colspan=\"4\">Text-motion retrieval</td><td colspan=\"4\">Motion-text retrieval</td></tr><tr><td>τ</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>0.001</td><td>9.52</td><td>21.81</td><td>27.23</td><td>12.00</td><td>7.47</td><td>9.76</td><td>16.51</td><td>15.50</td></tr><tr><td>0.01</td><td>21.45</td><td>29.04</td><td>38.80</td><td>6.00</td><td>21.08</td><td>27.11</td><td>33.61</td><td>9.50</td></tr><tr><td>0.1</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr><tr><td>1.0</td><td>1.08</td><td>1.93</td><td>3.61</td><td>306.5</td><td>1.81</td><td>1.93</td><td>2.41</td><td>372.0</td></tr></table>", "bbox": [ 506, 89, 887, 169 ], "page_idx": 6 }, { "type": "table", "img_path": "images/a7d3f287d00acf66d9d250614857db39117aa75bd8c798951bc33f9cf62c3921.jpg", "table_caption": [ "(a)" ], "table_footnote": [], "table_body": "<table><tr><td rowspan=\"2\">Weight λNCE</td><td colspan=\"4\">Text-motion retrieval</td><td colspan=\"4\">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>0.001</td><td>18.55</td><td>23.25</td><td>36.75</td><td>7.00</td><td>18.19</td><td>24.34</td><td>31.45</td><td>11.50</td></tr><tr><td>0.01</td><td>20.84</td><td>26.99</td><td>37.23</td><td>7.00</td><td>18.92</td><td>23.13</td><td>32.17</td><td>10.25</td></tr><tr><td>0.1</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr><tr><td>1.0</td><td>19.52</td><td>24.46</td><td>34.46</td><td>7.00</td><td>19.04</td><td>24.34</td><td>35.06</td><td>9.50</td></tr></table>", "bbox": [ 506, 189, 885, 271 ], "page_idx": 6 }, { "type": "table", "img_path": "images/c9f8c1baabceadd3e65ba948a32c4af441ff8ff5145e879a712d7d0c146642e7.jpg", "table_caption": [ "(b)" ], "table_footnote": [ "Table 5. Hyperparameters of the contrastive training: We measure the sensitivity to the parameters $\\tau$ (temperature), $\\lambda_{c}$ the weight of the contrastive loss, and the batch size. Note that the learning rate is proportionally altered when changing the batch size. We display a wide range of values to show the full trends." ], "table_body": "<table><tr><td rowspan=\"2\">Batch size</td><td colspan=\"4\">Text-motion retrieval</td><td colspan=\"4\">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>16</td><td>25.42</td><td>31.57</td><td>40.12</td><td>6.00</td><td>20.36</td><td>24.10</td><td>33.73</td><td>8.00</td></tr><tr><td>32</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr><tr><td>64</td><td>20.24</td><td>26.51</td><td>38.19</td><td>6.00</td><td>19.52</td><td>24.22</td><td>32.05</td><td>9.50</td></tr><tr><td>128</td><td>18.55</td><td>28.80</td><td>36.75</td><td>7.00</td><td>14.94</td><td>18.43</td><td>26.14</td><td>11.50</td></tr></table>", "bbox": [ 504, 292, 885, 373 ], "page_idx": 6 }, { "type": "text", "text": "(c)", "bbox": [ 687, 373, 704, 382 ], "page_idx": 6 }, { "type": "text", "text": "the incorrect motions have a low similarity $(< 0.6)$ , and the human bodies are rotated similarly as in swimming. More qualitative results can be seen in Appendix C, as well as our supplementary video on the project page.", "bbox": [ 496, 474, 890, 537 ], "page_idx": 6 }, { "type": "text", "text": "4.5. Use case: Moment retrieval", "text_level": 1, "bbox": [ 500, 545, 746, 559 ], "page_idx": 6 }, { "type": "text", "text": "While our focus is retrieval, once our model is trained, it can be used for a different use case. Here, we test the limits of our approach, by qualitatively evaluating the capability of TMR on the task of temporally localizing a natural language query in a long 3D motion sequence. This is similar in spirit to moment retrieval in videos [12, 13, 19, 25, 41]. It is also related to categorical action localization in 3D motions [48]; however, our input is free-form text instead of symbolic action classes.", "bbox": [ 496, 568, 890, 688 ], "page_idx": 6 }, { "type": "text", "text": "In Figure 4, we show four examples, where we apply a model pre-trained on H3D on BABEL sequences. In each example, the queried text is displayed on the top. The x-axis denotes the frame number, the green rectangle represents the ground-truth location for the given action, and the dashed red line marks the localization with the maximum similarity. We simply compute the motion features in a sliding window manner. The similarity between the text label and a 20-frame window centered at each frame is shown in the y-axis as a 1D plot over time. Despite our model not being trained for temporal localization, we observe its grounding potential. Moreover, there exists a domain gap between BABEL label used at test time and H3D used for training. Quantitative evaluation and more qualitative examples are included in Appendix B.", "bbox": [ 496, 689, 892, 900 ], "page_idx": 6 }, { "type": "page_number", "text": "9494", "bbox": [ 482, 944, 514, 955 ], "page_idx": 6 }, { "type": "image", "img_path": "images/064821e401a50ca69dde23dd5a446a4b51b8e4efa18757d1fd7b136ea203c749.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 83, 118, 200, 155 ], "page_idx": 7 }, { "type": "image", "img_path": "images/a2bf02720a19f22ce9b82b0dcad9d9d8cb9e958c2e4657c6dcb42493d3a7da83.jpg", "image_caption": [ "A person appears to be playing the violin" ], "image_footnote": [], "bbox": [ 220, 89, 343, 175 ], "page_idx": 7 }, { "type": "image", "img_path": "images/95de5ac708fe12c406124aafeb2cd85604bbadcfa942bb983f28925b75979736.jpg", "image_caption": [ "Moving the hands and work some thing" ], "image_footnote": [], "bbox": [ 349, 90, 470, 175 ], "page_idx": 7 }, { "type": "image", "img_path": "images/11dbe0118342598782f59ddb39f0816ae19701acad8cc74874486f3c7740b0b8.jpg", "image_caption": [ "$S = 0.85$", "The man plays violin holding it in his right hand" ], "image_footnote": [], "bbox": [ 478, 101, 599, 175 ], "page_idx": 7 }, { "type": "image", "img_path": "images/a8ef19f55934eeb1450b68677175d78973c978e077db40c5ca1af7ebe474517d.jpg", "image_caption": [ "$S = 0.85$", "The man plays the violin" ], "image_footnote": [], "bbox": [ 607, 101, 728, 175 ], "page_idx": 7 }, { "type": "image", "img_path": "images/84b3b304087e09182b8211dd9d308f76f0dea1531192733122e6995ce72207e0.jpg", "image_caption": [ "$S = 0.81$", "The man holds something above his left shoulder and rubs it with his right hand" ], "image_footnote": [], "bbox": [ 736, 101, 857, 175 ], "page_idx": 7 }, { "type": "image", "img_path": "images/8a87e77987a443f81c2ded9248616d3882553e376b11abe60c593628511da90c.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 86, 239, 200, 271 ], "page_idx": 7 }, { "type": "image", "img_path": "images/a53020f79ba182d02c8ffa57d9e80687129bb6d6668dc5e2972ddce4c70f5cc0.jpg", "image_caption": [ "$S = 0.82$", "A man steps forward and does a handstand" ], "image_footnote": [], "bbox": [ 220, 217, 343, 292 ], "page_idx": 7 }, { "type": "image", "img_path": "images/a899cfdc8d1e86545b6465259256ace6974da5bad8b9e8ae7e4f53821a02ccd6.jpg", "image_caption": [ "$S = 0.68$", "Doing a cartwheel then jumping up and down." ], "image_footnote": [], "bbox": [ 351, 217, 470, 292 ], "page_idx": 7 }, { "type": "image", "img_path": "images/ce655c700b0def4dd5399a9fa0672e60d0d1c5efeb27a382a7b8505d91e6e30f.jpg", "image_caption": [ "$S = 0.61$", "The person does 2 cartwheels" ], "image_footnote": [], "bbox": [ 478, 217, 599, 292 ], "page_idx": 7 }, { "type": "image", "img_path": "images/00028c8c67deb4eced219a9704c277e46e53b827736780af3a969053dc255717.jpg", "image_caption": [ "$S = 0.48$", "A person walks forward then turns completely around and does a cartwheel" ], "image_footnote": [], "bbox": [ 607, 217, 728, 291 ], "page_idx": 7 }, { "type": "image", "img_path": "images/25666dff1d750c88f5195a0fb8e01f23c420c365c65643b87981d1d82f9f87b2.jpg", "image_caption": [ "$S = 0.42$", "The drunk guy struggles to walk down the street" ], "image_footnote": [], "bbox": [ 736, 217, 857, 291 ], "page_idx": 7 }, { "type": "image", "img_path": "images/ecc34bc462a299d4d3b13068a86d8c9240ca88185bfd2c5824cea64fcdda8c30.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 88, 354, 189, 385 ], "page_idx": 7 }, { "type": "image", "img_path": "images/563bf8f3a65becc7691d235a13bdfbe8dd2969478c21ba0e06dc8ab37377b706.jpg", "image_caption": [ "$S = 0.76$", "The person was flying around like a fly" ], "image_footnote": [], "bbox": [ 220, 334, 341, 407 ], "page_idx": 7 }, { "type": "image", "img_path": "images/948efe27aa5a168d1283927eba6a8a52508679771405fa71ef750c355641d53c.jpg", "image_caption": [ "$S = 0.71$", "A person swam in free style" ], "image_footnote": [], "bbox": [ 351, 334, 470, 407 ], "page_idx": 7 }, { "type": "image", "img_path": "images/58a9e17f9f91e84c21fd1e6a282c0e564779e30e97fe9d0ce34c0ea1734ccda7.jpg", "image_caption": [ "$S = 0.62$", "The person is preforming a swimming stroke know as the butterfly stroke. The arms swing from behind the head and reenter the water propelling the person forward." ], "image_footnote": [], "bbox": [ 478, 334, 599, 407 ], "page_idx": 7 }, { "type": "image", "img_path": "images/027e487ee3bed9a7f267bf14b86ff3fae0e4ac966fa8160fcda2f450ad6b7e5d.jpg", "image_caption": [ "$S = 0.56$", "A person lays on the ground" ], "image_footnote": [], "bbox": [ 607, 334, 728, 407 ], "page_idx": 7 }, { "type": "image", "img_path": "images/ffc9d2090b3d60d9023d6c26b88509a692df91c0a6d8c02e2567635b49f407fc.jpg", "image_caption": [ "$S = 0.52$", "A man crawls forward on his stomach" ], "image_footnote": [], "bbox": [ 736, 334, 857, 407 ], "page_idx": 7 }, { "type": "image", "img_path": "images/335b51424d89d8183ded2de2a693f99dd72e608153b97815ab28a6d08c710c08.jpg", "image_caption": [ "Figure 3. Qualitative retrieval results: We demonstrate example queries on the left, and corresponding retrieved motions on the right, ranked by text-motion similarity. The similarity values are displayed on the top. For each retrieved motion, we also show their accompanying ground-truth text label; note that we do not use these descriptions, but only provide them for analysis purposes. The motions from the gallery are all from the test set (unseen during training). In the first row, all top-5 retrieved motions correspond visually to 'playing violin' and the similarity scores are high $>0.80$ . In the second row, we correctly retrieve the 'handstand' motion at top-1, but the other motions mainly perform 'cartwheel' (which involves shortly standing on hands), but with a lower similarity score $<0.70$ . For the last example, we query a free-form text 'Someone is swimming', which does not exist in the gallery (but the word 'swim' does). The model successfully finds swimming motions among the top-3, and the other two motions involve the body parallel to the ground." ], "image_footnote": [], "bbox": [ 76, 566, 261, 669 ], "page_idx": 7 }, { "type": "image", "img_path": "images/ebf61b965f3627cbeeb951af27f629b49c414d8a813a4182e8c7875cfb206ede.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 263, 568, 429, 669 ], "page_idx": 7 }, { "type": "image", "img_path": "images/8c0c7369183f4bd44168fe9db4c9952cce1984df268ab0362f3e12a0d8068122.jpg", "image_caption": [ "Figure 4. Moment retrieval: We plot the similarity between the temporally annotated BABEL text labels and the motions in a sliding window manner, and obtain a 1D signal over time (blue). We observe that a localization ability emerges from our model, even though it was not trained for temporal localization, and was not with the domain of BABEL labels. The ground-truth temporal span is denoted in green and the maximum similarity is marked with a dashed red line. More examples are provided in Appendix Figure A.2." ], "image_footnote": [], "bbox": [ 78, 671, 261, 784 ], "page_idx": 7 }, { "type": "image", "img_path": "images/07058cae226e7cb70e2c403d32635699fdce8eba1c108a2f931801816fea53df.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 263, 672, 429, 773 ], "page_idx": 7 }, { "type": "text", "text": "4.6. Limitations", "text_level": 1, "bbox": [ 500, 556, 624, 571 ], "page_idx": 7 }, { "type": "text", "text": "Our model comes with some limitations. Compared to the vast amount of data (e.g., 400M images [44]) in image-text collections used to train competitive foundation models, our motion-text training data can be considered extremely small (e.g., 23K motions in H3D). The generalization performance of motion retrieval models to in-the-wild motions is therefore limited. Data augmentations such as altering text can potentially help to a certain extent (cf. [6]); however, more motion capture is still needed. Another limitation concerns the case where one wishes to replace motion synthesis by retrieving a training motion. In this use case, the model requires the full encoded database (i.e., encoded training set) to be stored in memory, which can be memory-inefficient. Note that the encoded representation is considerably smaller than the original motion data. This could be dealt with using a hierarchical structuring of the motions and language descriptions (e.g. into upper-body motions, lower-body motions, sitting motions, standing motions, etc.).", "bbox": [ 496, 580, 893, 838 ], "page_idx": 7 }, { "type": "text", "text": "5. Conclusion", "text_level": 1, "bbox": [ 500, 844, 612, 859 ], "page_idx": 7 }, { "type": "text", "text": "In this paper, we focus on the relatively little-studied problem of motion retrieval with natural language queries. We", "bbox": [ 500, 869, 890, 901 ], "page_idx": 7 }, { "type": "page_number", "text": "9495", "bbox": [ 480, 944, 514, 955 ], "page_idx": 7 }, { "type": "text", "text": "introduce TMR, a framework to jointly train text-to-motion retrieval and text-to-motion synthesis, with a special attention to the definition of negatives, taking into account the fine-grained nature of motion-language databases. We significantly improve over prior work, and provide a series of experiments highlighting the importance of each component.", "bbox": [ 75, 90, 468, 181 ], "page_idx": 8 }, { "type": "text", "text": "Future work may consider incorporating a language synthesis branch, along with the motion synthesis branch, to build a symmetrical framework, which could bring further benefits.", "bbox": [ 76, 181, 470, 227 ], "page_idx": 8 }, { "type": "text", "text": "Acknowledgements. This work was granted access to the HPC resources of IDRIS under the allocation 2022-AD011012129R2 made by GENCI. GV acknowledges the ANR project CorVis ANR-21-CE23-0003-01. The authors would like to thank Lucas Ventura and Charles Raude.", "bbox": [ 76, 234, 468, 303 ], "page_idx": 8 }, { "type": "text", "text": "MJB Disclosure: files.is.tue.mpg.de/black/CoI_ ICCV_2023.txt", "bbox": [ 76, 305, 468, 332 ], "page_idx": 8 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 78, 347, 168, 363 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[1] Kfir Aberman, Peizhuo Li, Dani Lischinski, Olga Sorkine-Hornung, Daniel Cohen-Or, and Baoquan Chen. Skeleton-aware networks for deep motion retargeting. ACM Transactions on Graphics (TOG), 2020. 3", "[2] Chaitanya Ahuja and Louis-Philippe Morency. Language2Pose: Natural language grounded pose forecasting. In International Conference on 3D Vision (3DV), 2019. 2, 3", "[3] Méziane Aïder, Oussama Gacem, and Mhand Hifi. Branch and solve strategies-based algorithm for the quadratic multiple knapsack problem. Journal of the Operational Research Society, 2022. 5", "[4] Okan Arikan, David A. Forsyth, and James F. O'Brien. Motion synthesis from annotations. ACM Transactions on Graphics (TOG), 2003. 1, 2", "[5] Nikos Athanasiou, Mathis Petrovich, Michael J. Black, and Gül Varol. TEACH: Temporal action composition for 3D humans. In International Conference on 3D Vision (3DV), 2022. 1, 2", "[6] Nikos Athanasiou, Mathis Petrovich, Michael J. Black, and Güll Varol. SINC: Spatial composition of 3D human motions for simultaneous action generation. In International Conference on Computer Vision (ICCV), 2023. 8", "[7] Max Bain, Arsha Nagrani, Gül Varol, and Andrew Zisserman. Frozen in time: A joint video and image encoder for end-to-end retrieval. In International Conference on Computer Vision (ICCV), 2021. 3, 4", "[8] Michael Böttner and Simon Clavet. Motion matching - the road to next gen animation. In Nucl.ai, youtu.be/watch?v=z_wpgHFSWss&t=658s, 2015.2, 3", "[9] Xin Chen, Biao Jiang, Wen Liu, Zilong Huang, Bin Fu, Tao Chen, Jingyi Yu, and Gang Yu. Executing your commands via motion diffusion in latent space. In Computer Vision and Pattern Recognition (CVPR), 2023. 1, 2", "[10] Rishabh Dabral, Muhammad Hamza Mughal, Vladislav Golyanik, and Christian Theobalt. MoFusion: A framework for denoising-diffusion-based motion synthesis. In Computer Vision and Pattern Recognition (CVPR), 2023. 3", "[11] Sivan Doveh, Assaf Arbelle, Sivan Harary, Rameswar Panda, Roei Herzig, Eli Schwartz, Donghyun Kim, Raja Giryes, Rogerio Feris, Shimon Ullman, and Leonid Karlinsky. Teaching struc" ], "bbox": [ 78, 373, 470, 900 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "tured vision & language concepts to vision & language models. In Computer Vision and Pattern Recognition (CVPR), 2023. 2, 6", "[12] Victor Escorcia, Mattia Soldan, Josef Sivic, Bernard Ghanem, and Bryan Russell. Temporal localization of moments in video collections with natural language. arXiv:1907.12763, 2019. 2, 7", "[13] Jiyang Gao, Chen Sun, Zhenheng Yang, and Ram Nevatia. Tall: Temporal activity localization via language query. In International Conference on Computer Vision (ICCV), 2017. 2, 7", "[14] Anindita Ghosh, Noshaba Cheema, Cennet Oguz, Christian Theobalt, and Philipp Slusallek. Synthesis of compositional animations from textual descriptions. In International Conference on Computer Vision (ICCV), 2021. 2", "[15] Chuan Guo, Shihao Zou, Xinxin Zuo, Sen Wang, Wei Ji, Xingyu Li, and Li Cheng. Generating diverse and natural 3D human motions from text. In Computer Vision and Pattern Recognition (CVPR), 2022. 2, 3, 4, 5, 6", "[16] Chuan Guo, Xinxin Zuo, Sen Wang, Shihao Zou, Qingyao Sun, Annan Deng, Minglun Gong, and Li Cheng. Action2Motion: Conditioned generation of 3D human motions. In ACM International Conference on Multimedia (ACMMM), 2020. 2, 5", "[17] Ikhsanul Habibie, Mohamed Elgharib, Kripashindu Sarkar, Ahsan Abdullah, Simbarashe Nyatsanga, Michael Neff, and Christian Theobalt. A motion matching-based framework for controllable gesture synthesis from speech. In SIGGRAPH, 2022. 2", "[18] R. Hadsell, S. Chopra, and Y. LeCun. Dimensionality reduction by learning an invariant mapping. In Computer Vision and Pattern Recognition (CVPR), 2006. 3, 5, 6", "[19] Lisa Anne Hendricks, Oliver Wang, Eli Shechtman, Josef Sivic, Trevor Darrell, and Bryan Russell. Localizing moments in video with natural language. In International Conference on Computer Vision (ICCV), 2017. 2, 7", "[20] Daniel Holden, Oussama Kanoun, Maksym Perepichka, and Tiberiu Popa. Learned motion matching. ACM Transactions on Graphics (TOG), 2020. 3", "[21] Daniel Holden, Taku Komura, and Jun Saito. Phase-functional neural networks for character control. ACM Transactions on Graphics (TOG), 2017. 5", "[22] Sai Shashank Kalakonda, Shubh Maheshwari, Sarvadevabhatla, and Ravi Kiran. Action-GPT: Leveraging large-scale language models for improved and generalized zero shot action generation. arXiv:2211.15603, 2022. 2", "[23] Lucas Kovar, Michael Gleicher, and Frédéric H. Pighin. Motion graphs. ACM Transactions on Graphics (TOG), 2002. 1", "[24] Taeryung Lee, Gyeongsik Moon, and Kyoung Mu Lee. MultiAct: Long-term 3D human motion generation from multiple action labels. In AAAI Conference on Artificial Intelligence, 2023. 2", "[25] Jie Lei, Licheng Yu, Tamara L Berg, and Mohit Bansal. TVR: A large-scale dataset for video-subtitle moment retrieval. In European Conference on Computer Vision (ECCV), 2020. 2, 7", "[26] Junnan Li, Dongxu Li, Caiming Xiong, and Steven C. H. Hoi. BLIP: bootstrapping language-image pre-training for unified vision-language understanding and generation. In International Conference on Machine Learning (ICML), 2022. 2, 3, 4", "[27] Angela S Lin, Lemeng Wu, Rodolfo Corona, Kevin Tai, Qixing Huang, and Raymond J Mooney. Generating animated videos of human activities from natural language descriptions. ViGIL NeurIPS Workshop, 2018. 2", "[28] Matthew Loper, Naureen Mahmood, Javier Romero, Gerard Pons-Moll, and Michael J. Black. SMPL: A skinned multi-person" ], "bbox": [ 503, 93, 892, 887 ], "page_idx": 8 }, { "type": "page_number", "text": "9496", "bbox": [ 482, 945, 514, 955 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "linear model. ACM Transactions on Graphics (TOG), 2015. 3, 5", "[29] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019. 5", "[30] Huaishao Luo, Lei Ji, Ming Zhong, Yang Chen, Wen Lei, Nan Duan, and Tianrui Li. CLIP4Clip: An empirical study of CLIP for end to end video clip retrieval and captioning. Neurocomputing, 2022. 3", "[31] Naureen Mahmood, Nima Ghorbani, Nikolaus F. Troje, Gerard Pons-Moll, and Michael J. Black. AMASS: Archive of motion capture as surface shapes. In International Conference on Computer Vision (ICCV), 2019. 5", "[32] Antoine Miech, Jean-Baptiste Alayrac, Ivan Laptev, Josef Sivic, and Andrew Zisserman. Thinking fast and slow: Efficient text-to-visual retrieval with transformers. In Computer Vision and Pattern Recognition (CVPR), 2021. 3", "[33] Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. End-to-end learning of visual representations from uncurated instructional videos. In Computer Vision and Pattern Recognition (CVPR), 2020. 3", "[34] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv:1807.03748, 2018. 2, 3, 4, 5, 6, 7", "[35] Mathis Petrovich, Michael J. Black, and Gül Varol. Action-conditioned 3D human motion synthesis with transformer VAE. In International Conference on Computer Vision (ICCV), 2021. 1, 2, 3, 4", "[36] Mathis Petrovich, Michael J. Black, and Gül Varol. TEMOS: Generating diverse human motions from textual descriptions. In European Conference on Computer Vision (ECCV), 2022. 1, 2, 3, 4, 5, 6", "[37] Matthias Plappert, Christian Mandery, and Tamim Asfour. The KIT motion-language dataset. *Big Data*, 2016. 2, 4, 5", "[38] Abhinanda R. Punnakkal, Arjun Chandrasekaran, Nikos Athanasiou, Alejandra Quiros-Ramirez, and Michael J. Black. BABEL: Bodies, action and behavior with english labels. In Computer Vision and Pattern Recognition (CVPR), 2021. 2", "[39] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning (ICML), 2021. 1, 2, 3, 4", "[40] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International Conference on Machine Learning (ICML), 2021. 2", "[41] Michaela Regneri, Marcus Rohrbach, Dominikus Wetzel, Stefan Thater, Bernt Schiele, and Manfred Pinkal. Grounding action descriptions in videos. In Transactions of the Association for Computational Linguistics (TACL), 2013. 2, 7", "[42] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Computer Vision and Pattern Recognition (CVPR), 2022. 2", "[43] Victor Sanh, Lysandre Debut, Julien Chaumont, and Thomas Wolf. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. In Energy Efficient Machine Learning and Cognitive Computing NeurIPS Workshop, 2019. 3" ], "bbox": [ 78, 90, 468, 890 ], "page_idx": 9 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[44] Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. LAION-400M: open dataset of clip-filtered 400 million image-text pairs. In Data Centric AI NeurIPS Workshop, 2021. 2, 8", "[45] H. Sidenbladh, M. J. Black, and L. Sigal. Implicit probabilistic models of human motion for synthesis and tracking. In European Conference on Computer Vision (ECCV), 2002. 2, 3", "[46] Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. MPNet: Masked and permuted pre-training for language understanding. In Neural Information Processing Systems (NeurIPS), 2020. 2", "[47] Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. MPNet: Masked and permuted pre-training for language understanding. In Neural Information Processing Systems (NeurIPS), 2020. 4", "[48] Jiankai Sun, Bolei Zhou, Michael J. Black, and Arjun Chandrasekaran. LocATE: End-to-end localization of actions in 3D with transformers. arXiv:2203.10719, 2022. 7", "[49] Guy Tevet, Sigal Raab, Brian Gordon, Yoni Shafir, Daniel Cohen-or, and Amit Haim Bermano. Human motion diffusion model. In International Conference on Learning Representations (ICLR), 2023. 1, 2, 3", "[50] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Neural Information Processing Systems (NeurIPS), 2017. 3", "[51] Ruben Villegas, Jimei Yang, Duygu Ceylan, and Honglak Lee. Neural kinematic networks for unsupervised motion retargeting. In Computer Vision and Pattern Recognition (CVPR), 2018. 3", "[52] Jiashun Wang, Chao Wen, Yanwei Fu, Haitao Lin, Tianyun Zou, Xiangyang Xue, and Yinda Zhang. Neural pose transfer by spatially adaptive instance normalization. In Computer Vision and Pattern Recognition (CVPR), 2020. 3", "[53] Sijie Yan, Zhizhong Li, Yuanjun Xiong, Huahan Yan, and Dahua Lin. Convolutional sequence generation for skeleton-based action synthesis. In International Conference on Computer Vision (ICCV), 2019. 2", "[54] Jiahui Yu, Zirui Wang, Vijay Vasudevan, Legg Yeung, Mojtaba Seyedhosseini, and Yonghui Wu. CoCa: Contrastive captioners are image-text foundation models. Transactions on Machine Learning Research (TMLR), 2022. 2, 3", "[55] Mert Yuksekgonul, Federico Bianchi, Pratyusha Kalluri, Dan Jurafsky, and James Zou. When and why vision-language models behave like bags-of-words, and what to do about it? In ICLR, 2022. 2, 6", "[56] Jianrong Zhang, Yangsong Zhang, Xiaodong Cun, Shaoli Huang, Yong Zhang, Hongwei Zhao, Hongtao Lu, and Xi Shen. T2M-GPT: Generating human motion from textual descriptions with discrete representations. In CVPR, 2023. 2", "[57] Mingyuan Zhang, Zhongang Cai, Liang Pan, Fangzhou Hong, Xinying Guo, Lei Yang, and Ziwei Liu. MotionDiffuse: Text-driven human motion generation with diffusion model. arXiv:2208.15001, 2022. 3", "[58] Yan Zhang, Michael J. Black, and Siyu Tang. Perpetual motion: Generating unbounded human motion. arXiv:2007.13886, 2020. 2", "[59] Rui Zhao, Hui Su, and Qiang Ji. Bayesian adversarial human motion synthesis. In CVPR, 2020. 2" ], "bbox": [ 501, 92, 892, 890 ], "page_idx": 9 }, { "type": "page_number", "text": "9497", "bbox": [ 482, 944, 514, 955 ], "page_idx": 9 }]123version https://git-lfs.github.com/spec/v1oid sha256:d4b1992ab54b9327a2fcd9bc5ac79f2144c3f673f28037a8f74a0cec32dc223asize 1300269123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340# TMR: Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis
Mathis Petrovich $^{1,2}$ Michael J. Black $^{2}$ Gül Varol $^{1}$ $^{1}$ LIGM, École des Ponts, Univ Gustave Eiffel, CNRS, France $^{2}$ Max Planck Institute for Intelligent Systems, Tübingen, Germany https://mathis.petrovich.fr/tmr
# Abstract
In this paper, we present TMR, a simple yet effective approach for text to 3D human motion retrieval. While previous work has only treated retrieval as a proxy evaluation metric, we tackle it as a standalone task. Our method extends the state-of-the-art text-to-motion synthesis model TEMOS, and incorporates a contrastive loss to better structure the cross-modal latent space. We show that maintaining the motion generation loss, along with the contrastive training, is crucial to obtain good performance. We introduce a benchmark for evaluation and provide an in-depth analysis by reporting results on several protocols. Our extensive experiments on the KIT-ML and HumanML3D datasets show that TMR outperforms the prior work by a significant margin, for example reducing the median rank from 54 to 19. Finally, we showcase the potential of our approach on moment retrieval. Our code and models are publicly available at https://mathis.petrovich.fr/tmr.
# 1. Introduction
The language of movement cannot be translated into words. Barbara Mettler
We ask the question whether a cross-modal space exists between 3D human motions and language. Our goal is to retrieve the most relevant 3D human motion from a gallery, given a natural language query that describes the desired motion (as illustrated in Figure 1). While text-to-image retrieval is a well-established problem within the broader vision & language field [39], there has been less focus on the related task of text-to-motion retrieval. Searching an existing motion capture dataset based on text input can often serve as a viable alternative to text-to-human-motion synthesis in many applications, while also providing the added benefit that the retrieved motion is guaranteed to be realistic. Additionally, once a cross-modal embedding is built to map text and motions into a joint representation space, both of the symmetrical text-to-motion and motion-to-text tasks
 A person is stretching legs Figure 1. Text-to-motion retrieval: We illustrate the task of text-based motion retrieval where the goal is to rank a gallery of motions according to their similarity to the given query in the form of a natural language description.
can be performed. Such a retrieval-based solution has a range of applications, including automatically indexing large motion capture collections, and helping to initialize the cumbersome text labeling process, by assigning the nearest text to each motion.
Let us first differentiate text-to-motion retrieval from text-to-motion synthesis. Motion synthesis [5, 9, 36, 49] involves generating new data samples that go beyond the existing training set, while motion retrieval searches through existing motion capture collections. For certain applications, reusing motions from a collection may be sufficient, provided the collection is large enough to contain what the user is searching for. Unlike generative models for motion synthesis, which struggle to produce physically plausible, realistic sequences [5, 35, 36], a retrieval model has the advantage that it always returns a realistic motion. With this motivation, we pose the problem as a nearest neighbor search through a cross-modal text-motion space.
Early work performs search through motion databases to build motion graphs [4, 23] by finding paths between existing motions and synthesizing new motions by stitching motions together with generated transitions. If the motion database is
labeled with actions, the user can specify a series of actions to combine [4]. In contrast, our search database is not labeled with text. Motion matching [8], on the other hand, seeks to find the animation that best fits the current motion by searching a database of animations, doing motion-to-motion retrieval [45]. Our framework fundamentally differs from these lines of work in that our task is multi-modal, i.e., user query is text, which is compared against motions. The most similar work to ours is the very recent model from Guo et al. [15], which trains for a joint embedding space between the two modalities. This model is only used to provide a performance measure for motion synthesis tasks, by querying a generated motion within a gallery of 32 descriptions (i.e., motion-to-text retrieval), and counting how many times the correct text is retrieved<sup>1</sup>. While this can be considered as the first text-motion retrieval model in the literature, its main limitation is the low performance, in particular when the gallery contains fine-grained descriptions. We substantially improve over [15], by incorporating a joint synthesis & retrieval framework, as well as a more powerful contrastive training [34].
We get inspiration from image-text models such as BLIP [26] and CoCa [54], which formulate a multi-task objective. Besides the standard dual-encoder matching (such as CLIP [39] with two unimodal encoders for image and text), [26, 54] also employ a text synthesis branch, performing image captioning. Such a generative capability potentially helps the model go beyond 'bag-of-words' understanding of vision-language concepts, observed for the naive contrastive models [11, 55]. In our case, we depart from TEMOS [36] which already has a synthesis branch to generate motions from text. We incorporate a cross-modal contrastive loss (i.e., InfoNCE [34]) in this framework to jointly train text-to-motion synthesis and text-to-motion retrieval tasks. We empirically demonstrate significant improvements with this approach when ablating the importance of each task.
Text-motion data differs from its text-image counterparts particularly due to the nature of motion descriptions. In fact, for an off-the-shelf large language model, sentences describing different motions tend to be similar, since they fall within the same topic of human motions. For example, the text-text cosine similarities [46] after encoding motion descriptions from the KIT training set [37] are on average 0.71 on a scale between [0, 1], while this value is 0.56 (almost orthogonal) on a random subset of LAION [44] image descriptions with the same size. This poses several challenges. Typical motion datasets [15, 37, 38] contain similar motions with different accompanying texts, e.g., 'person walks', 'human walks', as well as similar texts with different motions, e.g., 'walk backwards', 'walk forwards'. With naive contrastive training [34], one would make all samples within a batch as negatives, except the corresponding label for a given anchor. In this work, we take into account the fact that there are potentially significant similarities between pairs within a batch. Specifically, we discard pairs that have a text-text
similarity in their labels that is above a certain threshold. Such careful negative sampling leads to performance improvements.
In this paper, we illustrate an additional use case for our retrieval model – zero-shot temporal localization – and highlight this task as a potential future avenue for research. Similar to temporal localization in videos with natural language queries [12, 13, 19, 25, 41], also referred to as “moment retrieval”, we showcase the grounding capability of our model by directly applying it on long motion sequences to retrieve corresponding moments. We illustrate results on the BABEL dataset [38], which typically contains a series of text annotations for each motion sequence. Note that the task is zero-shot, because the model has not been trained for localization, and at the same time has not seen BABEL labels, which come from a different domain (e.g., typically action-like descriptions instead of full sentences).
Our contributions are the following: (i) We address the little-studied problem of text-to-motion retrieval, and introduce a series of evaluation benchmarks with varying difficulty. (ii) We propose a joint synthesis and retrieval framework, as well as negative filtering, and obtain state-of-the-art performance on text-motion retrieval. (iii) We provide extensive experiments to analyze the effects of each component in controlled settings. Our code and models are publicly available<sup>2</sup>.
# 2. Related work
We present an overview of the most closely related work on text-to-motion synthesis and retrieval, as well as a brief discussion on cross-modal retrieval works.
Text and human motion. The research on human motion modeling has recently witnessed an increasing interest in bridging the gap between semantics and 3D human body motions, in particular for text-conditioned motion synthesis. Unlike unconstrained 3D human motion synthesis [53, 58, 59], action-conditioned [16, 35], or text-conditioned [5, 9, 14, 22, 24, 36, 49, 56] models add semantic controls to the generation process. The goal of these works is to generate either deterministically [2, 14, 27] or probabilistically [36], motion sequences that are faithful to the textual description inputs. Note that this is different than gesture synthesis from speech [17], in that the text describes the motion content. However, despite remarkable progress in text-to-image synthesis [40, 42], text-to-motion synthesis remains at a very nascent stage. The realism of the synthesized motions is limited, e.g., foot sliding artifacts [36]. We turn to text-to-motion retrieval as another alternative, and perhaps complementary approach to obtain motions for a given textual description. Our focus is therefore different from the work on synthesis. However, we do make use of a motion synthesis branch to aid the retrieval task.
Motion retrieval is relatively less explored. As briefly mentioned in Section 1, motion-to-motion retrieval (e.g., motion matching [8, 20, 45]) methods exist. However, the text-to-motion retrieval task is more challenging due to being cross-modal, i.e., nearest neighbor search across text and motion modalities. Within this category, the very recent work of Guo et al. [15] trains a retrieval model purely for evaluation purposes, and applies a margin-based contrastive loss [18], using Euclidean distance between all pairs within a batch.
Two works are particularly relevant to ours. Firstly, we build on the TEMOS [36] text-to-motion synthesis model, which also has a cross-modal embedding space. However, text and motion embeddings are encouraged to be similar only across positive pairs. We therefore add a contrastive training strategy to incorporate negatives, consequently improving its retrieval capability from a large gallery of fine-grained motions. Secondly, we compare to the aforementioned method of [15], whose motion-to-text retrieval model is adopted for measuring text-to-motion generation performance automatically by other works [10, 49, 57].
Cross-modal retrieval. Among widely adopted vision & language retrieval models, some successful examples include CLIP [39], BLIP [26], and CoCa [54] for images, and MILNCE [33], Frozen [7], and CLIP4Clip [30] for videos. They all use variants of cross-modal contrastive learning techniques, such as InfoNCE [34], which we also employ in this work. As discussed in Section 1, we draw inspiration from BLIP [26] and CoCa [54], which add synthesis branches to standard retrieval frameworks. Our approach is similar in spirit to these works in that we perform a cross-modal vision & language retrieval task, but differ in focusing on 3D human motion retrieval, which, to the best of our knowledge, has not been benchmarked.
# 3. Text-to-motion retrieval
In this section, we introduce the task and the terminology associated with text-to-motion retrieval (Section 3.1). Next, we present our model, named TMR, and its training protocol (Section 3.2). We then explain our simple approach for identifying and filtering incorrect negatives (Section 3.3), followed by a discussion of the implementation details (Section 3.4).
# 3.1. Definitions
Given a natural language query $T$ , such as 'A person walks and then makes a right turn', the goal is to rank the motions from a database (i.e., the gallery) according to their semantic correspondence with the text query, and to retrieve the motion that matches best to the textual description. In other words, the task involves sorting the database so that the top ranked motions are the most relevant matches, i.e., creating a search engine to index motions. Additionally, we define the symmetric (and complementary) task, namely motion-to-text retrieval, where the aim is to retrieve the most suitable caption that matches a given motion from a database of texts.
3D human motion refers to a sequence of human poses. The task does not impose any limitations on the type of representation used, such as joint positions, rotations, or parametric models such as SMPL [28]. As detailed in Section 4.1, we choose to use the representation employed by Guo et al. [15] to facilitate comparisons with previous work. While our experiments are based on the SMPL skeleton, our method is applicable to any skeleton topology. One could alternatively use retargetting [1, 51, 52] to adapt to other body representations.
Text description refers to a sequence of words describing the action performed by a human in natural language. We do not restrict the format of the motion description. The text can be simply an action name (e.g., 'walk') or a full sentence (e.g., 'a human is walking'). The sentences can be fine-grained (e.g., 'a human is walking in a circle slowly'), and may contain one or several actions, simultaneously (e.g., 'walking while waving') or sequentially (e.g., 'walking then sitting').
# 3.2. Joint training of retrieval and synthesis
We introduce TMR, which extends the Transformer-based text-to-motion synthesis model TEMOS [36] by incorporating additional losses to make it suitable for the retrieval task. The architecture consists of two independent encoders for inputting motion and text, as well as a decoder that outputs motion (see Figure 2 for an overview). In the following, we review TEMOS [36] components and our added contrastive training.
Dual encoders. One approach to solving cross-modal retrieval tasks involves defining a similarity function between the two modalities. In our case, the two modalities are text and motion. The similarity function can be applied to compare a given query with each element in the database, and the maximum value would indicate the best match. In this paper, we follow the approach taken by previous work on metric learning, such as CLIP [39], by defining one encoder for each modality and then computing the cosine similarity between their respective embeddings. Such dual embedding has the advantage of fast inference time since the gallery embeddings can be computed and stored beforehand [32].
Our model is built upon the components of TEMOS [36], which already provides a motion encoder and a text encoder, mapping them to a joint space (building on the idea from Language2Pose [2]); this serves as a strong baseline for our work. Both motion and text encoders are Transformer encoders [50] with additional learnable distribution parameters, as in the VAE-based ACTOR [35]. They are probabilistic in nature, outputting parameters of a Gaussian distribution $(\mu$ and $\Sigma)$ from which a latent vector $z\in \mathbb{R}^d$ can be sampled. While the text encoder takes text features from a pre-trained and frozen DistilBERT [43] network as input, the motion sequence is fed directly in the motion encoder. Note that when performing retrieval, we directly use the output embedding that corresponds to the mean token $(\mu^{M}$ for motion, $\mu^T$ for text).
Motion decoder. TEMOS is trained for the task of motion
 Figure 2. Joint motion retrieval and synthesis: A simplified view of our TMR framework is presented, where we focus on the similarity matrix defined between text-motion pairs within a batch. Here, we show a batch of 3 samples for illustration purposes. The goal of the contrastive objective is to maximize the diagonal denoting positive pairs (green), and to minimize the off-diagonal negative pair items that have text similarity below a threshold (red). In this example, remaining similarities $S_{23}$ and $S_{32}$ are discarded from the loss computation because there is high text similarity between $T_{2}$ and $T_{3}$ . The rest of the model remains similar to TEMOS [36], which decodes a motion from both text $z^{T_i}$ and motion $z^{M_j}$ latent vectors. See text for further details.
synthesis and comes equipped with a motion decoder branch. This decoder is identical to the one used in ACTOR [35], which supports variable-duration generation. More specifically, it takes a latent vector $z \in \mathbb{R}^d$ and a sinusoidal positional encoding as input, and generates a motion non-autoregressively through a single forward pass. We show in Section 4.2 that keeping this branch helps improve the results.
TEMOS losses. We keep the same base set of losses of [36], defined as the weighted sum $\mathcal{L}_{\mathrm{TEMOS}} = \mathcal{L}_{\mathrm{R}} + \lambda_{\mathrm{KL}}\mathcal{L}_{\mathrm{KL}} + \lambda_{\mathrm{E}}\mathcal{L}_{\mathrm{E}}$ . In summary, a reconstruction loss term $\mathcal{L}_{\mathrm{R}}$ measures the motion reconstruction given text or motion input (via a smooth L1 loss). A Kullback-Leibler (KL) divergence loss term $\mathcal{L}_{\mathrm{KL}}$ is composed of four losses: two of them to regularize each encoded distributions $-\mathcal{N}(\mu^M,\Sigma^M)$ for motion and $\mathcal{N}(\mu^T,\Sigma^T)$ for text - to come from a normal distribution $\mathcal{N}(0,I)$ . The other two enforce distribution similarity between the two modalities. A cross-modal embedding similarity loss $\mathcal{L}_{\mathrm{E}}$ enforces both text $z^{T}$ and motion $z^{M}$ latent codes to be similar to each other (with a smooth L1 loss). We set $\lambda_{\mathrm{KL}}$ and $\lambda_{\mathrm{E}}$ to $10^{-5}$ in our experiments as in [36].
Contrastive training. While TEMOS has a cross-modal embedding space, its major drawback to be usable as an effective retrieval model is that it is never trained with negatives, but only positive motion-text pairs. To overcome this limitation, we incorporate a contrastive training with the usage of negative samples to better structure the latent space. Given a batch of N (positive) pairs of latent codes $(z_1^T,z_1^M),\dots,(z_N^T,z_N^M)$ , we define any pair $(z_i^T,z_j^M)$ with $i\neq j$ as negative. The similarity matrix $S$ computes the pairwise cosine similarities for all pairs in the batch $S_{ij} = \cos (z_i^T,z_j^M)$ . In contrast to Guo et al. [15], who consider one random negative per batch (and use a margin loss), we adopt the more recent formulation of InfoNCE [34], which was proven effective in other work [7, 26, 39]. This loss term
can be defined as follows:
$$\mathcal {L} _ {\mathrm {N C E}} = - \frac {1}{2 N} \sum_ {i} \left(\log \frac {\exp S _ {i i} / \tau}{\sum_ {j} \exp S _ {i j} / \tau} + \log \frac {\exp S _ {i i} / \tau}{\sum_ {j} \exp S _ {j i} / \tau}\right), \tag {1}$$
where $\tau$ is the temperature hyperparameter.
Training loss. The total loss we use to train TMR is the weighted sum $\mathcal{L}_{\mathrm{TEMOS}} + \lambda_{\mathrm{NCE}}\mathcal{L}_{\mathrm{NCE}}$ where $\lambda_{\mathrm{NCE}}$ controls the importance of the contrastive loss.
# 3.3. Filtering negatives
As mentioned in Section 1, the descriptions accompanying motion capture collections can be repetitive or similar across the training motions. We wish to prevent defining negatives between text-motion pairs that contain similar descriptions.
Consider for example the two text descriptions, "A human making a counterclockwise turn" and "A person walks quarter a circle to the left". In the KIT-ML benchmark [37], these two descriptions appear as two different annotations for the same motion. Due to the flexibility and ambiguity of natural language, different words may describe the same concepts (e.g., 'counterclockwise', 'circle to the left').
During training, the random selection of batches can adversely affect the results because the model may have to push away two latent vectors that correspond to similar meanings. This can force the network to focus on unimportant details (e.g., 'someone' vs 'human'), ultimately resulting in decreased performance due to unstable behavior and reduced robustness to text variations.
To alleviate this issue, we leverage an external large language model to provide sentence similarity scores. In particular, we use MPNet [47] to encode sentences and compute similarities between two text descriptions. We then determine whether to filter a pair of text descriptions $(t_{1}, t_{2})$ if their similarity
is higher than a certain threshold, referring them as 'wrong negatives'. During training, we filter wrong negative pairs from the loss computation. Note that we refrain from defining them as positives, as the language model may also incorrectly say two descriptions are similar when they are not.
# 3.4. Implementation details
We use the AdamW optimizer [29] with a learning rate of $10^{-4}$ and a batch size of 32. Since the batch size can be an important hyperparameter for the InfoNCE loss, due to determining the number of negatives, we report experimental results with different values. The latent dimensionality of the embeddings is $d = 256$ . We set the temperature $\tau$ to 0.1, and the weight of the contrastive loss term $\lambda_{\mathrm{NCE}}$ to 0.1. The threshold to filter negatives is set to 0.8. We provide experimental analyses to measure the sensitivity to these added hyperparameters.
# 4. Experiments
We start by describing the datasets and evaluation protocol used in the experiments (Section 4.1). We then report the performance of our model on our new retrieval benchmark along with comparison to prior work (Section 4.2). Next, we present our ablation study measuring the effects of the additional contrastive loss, the negative filtering, and the hyperparameters (Section 4.3). Finally, we provide qualitative results for retrieval (Section 4.4), and our use case of moment retrieval (Section 4.5).
# 4.1. Datasets and evaluation
HumanML3D dataset (H3D) [15] provides natural language labels to describe the motions in AMASS [31] and HumanAct12 [16] motion capture collections. We follow the motion pre-processing procedure of [15], and apply the SMPL layer [28] to extract joint positions, canonicalize the skeletons to share the same topology (i.e., same bone lengths), then compute motion features (extracting local positions, velocities and foot contacts similar to Holden et al. [21]). The data is then augmented by mirroring left and right (both in motions and their corresponding texts). After this procedure, and following the official split, we obtain 23384, 1460, 4380 motions for the training, validation, and test sets, respectively. On average, each motion is annotated 3.0 times with different text. During training we randomly select one as the matching text, for testing we use the first text.
KIT Motion-Language dataset (KIT) [37] also come from motion capture data, with an emphasis on locomotion motions. It originally consists of 3911 motion sequences and 6278 text sentences. We pre-process the motions with the same procedure as in H3D. The data is split into 4888, 300, 830 motions for training, validation, and test sets, respectively. In this dataset, each motion is annotated 2.1 times on average.
Evaluation protocol. We report standard retrieval performance measures: recall at several ranks, R@1, R@2, etc. for both text-to-motion and motion-to-text tasks (identical to the R
Precision metrics adopted by Guo et al. [15]). Recall at rank $k$ measures the percentage of times the correct label is among the top $k$ results; therefore higher is better. We additionally report median rank (MedR), where lower is better. Note that the retrieval performance is evaluated on a gallery of unseen real motions (i.e., test set). A study of the synthesis performance of TMR can be found in Appendix B.
We define several evaluation protocols, mainly changing the gallery set. (a) All the test set is used as a first protocol, without any modification. This set is partially problematic because there are repetitive texts across motions, or just minor differences (e.g., person vs human, walk vs walking). (b) All with threshold means we search over all the test set, but, in this case, we accept a retrieved motion as correct if its text label is similar to the query text above a threshold. For example, retrieving the motion corresponding to "A human walks forward" should be correct when the input query is "Someone is walking forward". We set a high threshold of 0.95 (scaled between [0, 1]) to remove very similar texts without removing too many fine-grained details. Appendix A provides statistics on how often similar text descriptions appear in the datasets. (c) Dissimilar subset refers to sampling 100 motion-text pairs whose texts are maximally far from each other (using an approximation of the quadratic knapsack problem [3]). This evaluation can be considered as an easy, but clean, subset of the previous ones. (d) Small batches is included to mimic the protocol described by Guo et al. [15], who randomly pick batches of 32 motion-text pairs and report the average performance. An ideal evaluation metric should not have randomness, and a gallery size of 32 is relatively easy compared to the previous protocols.
# 4.2. A new benchmark & comparison to prior work
We present the performance of our model on this new retrieval benchmark, on H3D (Table 1) and KIT (Table 2) datasets, across all evaluation protocols. We also compare against prior work TEMOS [36] and Guo et al. [15]. For TEMOS, we retrain their model on both datasets to have a comparable benchmark since the original model differs in motion representation and lacks left/right data augmentation (and they only provide a KIT-pretrained model, not H3D). For [15], we take their publicly available models trained on these two datasets.
TEMOS in particular is not designed to perform well on retrieval, since its cross-modal embedding space is only trained with positive pairs. However, Guo et al. train contrastively with negatives as well, using a margin loss [18]. For all 4 evaluation sets with varying difficulties, TMR outperforms the prior work, suggesting our model better captures the finegrained nature of motion descriptions. The model of [15] is adopted as part of motion synthesis evaluation in several works. TMR may therefore provide a better alternative. Our significant improvements over the state of the art can be credited to (i) jointly training for synthesis and retrieval, (ii) adopting the more recent contrastive objective, InfoNCE [34], while (iii) carefully
<table><tr><td rowspan="2">Protocol</td><td rowspan="2">Methods</td><td colspan="6">Text-motion retrieval</td><td colspan="6">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>R@5↑</td><td>R@10↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>R@5↑</td><td>R@10↑</td><td>MedR↓</td></tr><tr><td rowspan="3">(a) All</td><td>TEMOS [36]</td><td>2.12</td><td>4.09</td><td>5.87</td><td>8.26</td><td>13.52</td><td>173.0</td><td>3.86</td><td>4.54</td><td>6.94</td><td>9.38</td><td>14.00</td><td>183.25</td></tr><tr><td>Guo et al. [15]</td><td>1.80</td><td>3.42</td><td>4.79</td><td>7.12</td><td>12.47</td><td>81.00</td><td>2.92</td><td>3.74</td><td>6.00</td><td>8.36</td><td>12.95</td><td>81.50</td></tr><tr><td>TMR</td><td>5.68</td><td>10.59</td><td>14.04</td><td>20.34</td><td>30.94</td><td>28.00</td><td>9.95</td><td>12.44</td><td>17.95</td><td>23.56</td><td>32.69</td><td>28.50</td></tr><tr><td rowspan="3">(b) All with threshold</td><td>TEMOS [36]</td><td>5.21</td><td>8.22</td><td>11.14</td><td>15.09</td><td>22.12</td><td>79.00</td><td>5.48</td><td>6.19</td><td>9.00</td><td>12.01</td><td>17.10</td><td>129.0</td></tr><tr><td>Guo et al. [15]</td><td>5.30</td><td>7.83</td><td>10.75</td><td>14.59</td><td>22.51</td><td>54.00</td><td>4.95</td><td>5.68</td><td>8.93</td><td>11.64</td><td>16.94</td><td>69.50</td></tr><tr><td>TMR</td><td>11.60</td><td>15.39</td><td>20.50</td><td>27.72</td><td>38.52</td><td>19.00</td><td>13.20</td><td>15.73</td><td>22.03</td><td>27.65</td><td>37.63</td><td>21.50</td></tr><tr><td rowspan="3">(c) Dissimilar subset</td><td>TEMOS [36]</td><td>33.00</td><td>42.00</td><td>49.00</td><td>57.00</td><td>66.00</td><td>4.00</td><td>35.00</td><td>44.00</td><td>50.00</td><td>56.00</td><td>70.00</td><td>3.50</td></tr><tr><td>Guo et al. [15]</td><td>34.00</td><td>48.00</td><td>57.00</td><td>72.00</td><td>84.00</td><td>3.00</td><td>34.00</td><td>47.00</td><td>59.00</td><td>72.00</td><td>83.00</td><td>3.00</td></tr><tr><td>TMR</td><td>47.00</td><td>61.00</td><td>71.00</td><td>80.00</td><td>86.00</td><td>2.00</td><td>48.00</td><td>63.00</td><td>69.00</td><td>80.00</td><td>84.00</td><td>2.00</td></tr><tr><td rowspan="3">(d) Small batches [15]</td><td>TEMOS [36]</td><td>40.49</td><td>53.52</td><td>61.14</td><td>70.96</td><td>84.15</td><td>2.33</td><td>39.96</td><td>53.49</td><td>61.79</td><td>72.40</td><td>85.89</td><td>2.33</td></tr><tr><td>Guo et al. [15]</td><td>52.48</td><td>71.05</td><td>80.65</td><td>89.66</td><td>96.58</td><td>1.39</td><td>52.00</td><td>71.21</td><td>81.11</td><td>89.87</td><td>96.78</td><td>1.38</td></tr><tr><td>TMR</td><td>67.16</td><td>81.32</td><td>86.81</td><td>91.43</td><td>95.36</td><td>1.04</td><td>67.97</td><td>81.20</td><td>86.35</td><td>91.70</td><td>95.27</td><td>1.03</td></tr></table>
Table 1. Text-to-motion retrieval benchmark on HumanML3D: We establish four evaluation protocols as described in Section 4.1, with decreasing difficulty from (a) to (d). Our model TMR substantially outperforms the prior work of Guo et al. [15] and TEMOS [36], on the challenging H3D dataset.
<table><tr><td rowspan="2">Protocol</td><td rowspan="2">Methods</td><td colspan="6">Text-motion retrieval</td><td colspan="6">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>R@5↑</td><td>R@10↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>R@5↑</td><td>R@10↑</td><td>MedR↓</td></tr><tr><td rowspan="3">(a) All</td><td>TEMOS [36]</td><td>7.11</td><td>13.25</td><td>17.59</td><td>24.10</td><td>35.66</td><td>24.00</td><td>11.69</td><td>15.30</td><td>20.12</td><td>26.63</td><td>36.39</td><td>26.50</td></tr><tr><td>Guo et al. [15]</td><td>3.37</td><td>6.99</td><td>10.84</td><td>16.87</td><td>27.71</td><td>28.00</td><td>4.94</td><td>6.51</td><td>10.72</td><td>16.14</td><td>25.30</td><td>28.50</td></tr><tr><td>TMR</td><td>7.23</td><td>13.98</td><td>20.36</td><td>28.31</td><td>40.12</td><td>17.00</td><td>11.20</td><td>13.86</td><td>20.12</td><td>28.07</td><td>38.55</td><td>18.00</td></tr><tr><td rowspan="3">(b) All with threshold</td><td>TEMOS [36]</td><td>18.55</td><td>24.34</td><td>30.84</td><td>42.29</td><td>56.39</td><td>7.00</td><td>17.71</td><td>22.41</td><td>28.80</td><td>35.42</td><td>47.11</td><td>13.25</td></tr><tr><td>Guo et al. [15]</td><td>13.25</td><td>22.65</td><td>29.76</td><td>39.04</td><td>49.52</td><td>11.00</td><td>10.48</td><td>13.98</td><td>20.48</td><td>27.95</td><td>38.55</td><td>17.25</td></tr><tr><td>TMR</td><td>24.58</td><td>30.24</td><td>41.93</td><td>50.48</td><td>60.36</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>41.20</td><td>53.01</td><td>9.50</td></tr><tr><td rowspan="3">(c) Dissimilar subset</td><td>TEMOS [36]</td><td>24.00</td><td>40.00</td><td>46.00</td><td>54.00</td><td>70.00</td><td>5.00</td><td>33.00</td><td>39.00</td><td>45.00</td><td>49.00</td><td>64.00</td><td>6.50</td></tr><tr><td>Guo et al. [15]</td><td>16.00</td><td>29.00</td><td>36.00</td><td>48.00</td><td>66.00</td><td>6.00</td><td>24.00</td><td>29.00</td><td>36.00</td><td>46.00</td><td>66.00</td><td>7.00</td></tr><tr><td>TMR</td><td>26.00</td><td>46.00</td><td>60.00</td><td>70.00</td><td>83.00</td><td>3.00</td><td>34.00</td><td>45.00</td><td>60.00</td><td>69.00</td><td>82.00</td><td>3.50</td></tr><tr><td rowspan="3">(d) Small batches [15]</td><td>TEMOS [36]</td><td>43.88</td><td>58.25</td><td>67.00</td><td>74.00</td><td>84.75</td><td>2.06</td><td>41.88</td><td>55.88</td><td>65.62</td><td>75.25</td><td>85.75</td><td>2.25</td></tr><tr><td>Guo et al. [15]</td><td>42.25</td><td>62.62</td><td>75.12</td><td>87.50</td><td>96.12</td><td>1.88</td><td>39.75</td><td>62.75</td><td>73.62</td><td>86.88</td><td>95.88</td><td>1.95</td></tr><tr><td>TMR</td><td>49.25</td><td>69.75</td><td>78.25</td><td>87.88</td><td>95.00</td><td>1.50</td><td>50.12</td><td>67.12</td><td>76.88</td><td>88.88</td><td>94.75</td><td>1.53</td></tr></table>
Table 2. Text-to-motion retrieval benchmark on KIT-ML: As in Table 1, we report the four evaluation protocols, this time on the KIT dataset. Again, TMR significantly improves over Guo et al. [15] and TEMOS [36] across all protocols and metrics.
<table><tr><td rowspan="2">Motion Recons.</td><td rowspan="2">InfoNCE</td><td rowspan="2">Margin</td><td colspan="4">Text-motion retrieval</td><td colspan="4">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>X</td><td>X</td><td>✓</td><td>15.06</td><td>22.17</td><td>25.78</td><td>12.00</td><td>8.19</td><td>11.57</td><td>16.39</td><td>19.50</td></tr><tr><td>X</td><td>✓</td><td>X</td><td>19.76</td><td>25.30</td><td>36.87</td><td>6.00</td><td>17.47</td><td>19.76</td><td>30.60</td><td>9.50</td></tr><tr><td>✓</td><td>X</td><td>X</td><td>18.55</td><td>24.34</td><td>30.84</td><td>7.00</td><td>17.71</td><td>22.41</td><td>28.80</td><td>13.25</td></tr><tr><td>✓</td><td>X</td><td>✓</td><td>19.88</td><td>24.46</td><td>34.46</td><td>7.00</td><td>14.70</td><td>19.76</td><td>28.19</td><td>12.50</td></tr><tr><td>✓</td><td>✓</td><td>X</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr></table>
Table 3. Losses: We experiment with various loss definitions (i) with/without the motion reconstruction, and (ii) the choice of the contrastive loss between InfoNCE and margin-based. We see that InfoNCE [34] is a better alternative to the contrastive loss with Euclidean margin [18] (employed by Guo et al. [15]). The reconstruction loss through the motion decoder branch further boosts the results.
eliminating wrong negatives. In the following, we ablate these components in controlled experiments.
# 4.3. Ablation study
The rest of the quantitative evaluation uses the ' (b) All with threshold' evaluation protocol, on the KIT dataset.
Which losses matter? Table 3 compares several variants of TMR where we check (a) whether the jointly trained motion synthesis branch helps retrieval, and (b) how important the form of the contrastive loss is. When removing the synthesis branch and only using the contrastive loss, we perform a deterministic encoding (i.e., with a single token instead of two tokens $\mu$ , $\sigma$ ). First, we see that the motion synthesis branch certainly improves results compared with only training using a contrastive loss (e.g., 41.93 vs 36.87 R@3). This possibly forces the latent vector to capture the full content of the input text (i.e., instead of picking up on a subset of words, or bag-of-words [11, 55] upon finding a shortcut that satisfies the contrastive loss). Second, in the presence of a contrastive loss, the InfoNCE formulation is significantly better than the margin loss employed by previous work [15] (41.93 vs 34.46 R@1). Note that for this experiment, we keep the same negative filtering for both the margin loss and InfoNCE (we provide additional experiments without the negative filtering in Appendix B).
<table><tr><td rowspan="2">Threshold</td><td colspan="4">Text-motion retrieval</td><td colspan="4">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>0.55</td><td>19.40</td><td>23.25</td><td>30.48</td><td>9.00</td><td>17.83</td><td>21.69</td><td>29.52</td><td>14.00</td></tr><tr><td>0.60</td><td>17.95</td><td>26.87</td><td>36.87</td><td>6.00</td><td>20.60</td><td>24.70</td><td>31.81</td><td>11.25</td></tr><tr><td>0.65</td><td>23.01</td><td>28.67</td><td>36.39</td><td>7.00</td><td>19.04</td><td>21.69</td><td>29.76</td><td>11.50</td></tr><tr><td>0.70</td><td>22.29</td><td>29.64</td><td>38.80</td><td>6.00</td><td>18.19</td><td>22.77</td><td>32.05</td><td>9.00</td></tr><tr><td>0.75</td><td>20.00</td><td>27.11</td><td>37.83</td><td>6.00</td><td>20.24</td><td>24.46</td><td>34.22</td><td>9.50</td></tr><tr><td>0.80</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr><tr><td>0.85</td><td>21.45</td><td>25.78</td><td>38.43</td><td>6.50</td><td>20.84</td><td>24.10</td><td>33.37</td><td>9.50</td></tr><tr><td>0.90</td><td>23.25</td><td>30.12</td><td>40.48</td><td>6.00</td><td>20.00</td><td>25.18</td><td>33.13</td><td>9.50</td></tr><tr><td>0.95</td><td>20.48</td><td>26.99</td><td>38.43</td><td>6.00</td><td>19.28</td><td>23.37</td><td>31.93</td><td>10.25</td></tr><tr><td>X</td><td>22.17</td><td>27.83</td><td>36.02</td><td>7.00</td><td>16.75</td><td>21.33</td><td>32.17</td><td>11.50</td></tr></table>
Table 4. Filtering negatives: We compare several threshold values for filtering negatives from the loss comparison due to having similar texts. We observe that removing negatives based on text similarity above 0.8 (from a scale between [0,1]) performs well overall.
The effect of filtering negatives. As explained in Section 3.3, during training we filter out pairs whose texts are closer than a threshold in an embedding space, and do not count them in the contrastive loss computation. Note that we still keep each item in the batch for the motion synthesis objective. In Table 4, we perform experiments with a range of different values for this threshold selection. On a scale between [0, 1], a threshold of 0.8 has the best results, balancing keeping a sufficient number of negatives and removing the wrong ones. Without filtering at all, the performance remains at $36.02\mathrm{R}@\mathfrak{z}3$ (compared to 41.93). We provide statistics on the percentage of filtered pairs in Appendix A.
Hyperparameters of the contrastive training. We show the sensitivity of our model to several hyperparameters added when extending TEMOS: (i) temperature $\tau$ of the cross entropy of InfoNCE [34] in Eq.1, (ii) the $\lambda_{\mathrm{NCE}}$ weighting parameter, and (iii) the batch size, which determines the number of negatives. We see in Table 5 that the model is indeed sensitive to the temperature, which is a common observation in other settings. The weight parameter and the batch size are relatively less important while also influencing the results to a certain extent. An experiment with the latent dimensionality hyperparameter can be found in Appendix B.
# 4.4. Qualitative results
In Figure 3, we provide sample qualitative results for text-to-motion retrieval on the full test set of H3D. For each query text displayed on the left, top-5 retrieved motions are shown on the right along with their similarity scores. Note that the ground-truth text labels (at the bottom of each motion) for the retrieved motions are not used, and the gallery motions are unseen at training. For the first two examples with 'playing violin' and 'handstand', we retrieve the ground-truth motion at rank 1. We observe that the next ranked motions depict visually similar motions as well (e.g., 'cartwheel' involves standing on the hands). For the free-from prompt example 'Someone is swimming' (i.e., the exact text does not appear in the gallery), the three first motions resemble or involve the swimming action, whereas motions at ranks 4 and 5 are incorrect. We notice that
<table><tr><td>Temp.</td><td colspan="4">Text-motion retrieval</td><td colspan="4">Motion-text retrieval</td></tr><tr><td>τ</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>0.001</td><td>9.52</td><td>21.81</td><td>27.23</td><td>12.00</td><td>7.47</td><td>9.76</td><td>16.51</td><td>15.50</td></tr><tr><td>0.01</td><td>21.45</td><td>29.04</td><td>38.80</td><td>6.00</td><td>21.08</td><td>27.11</td><td>33.61</td><td>9.50</td></tr><tr><td>0.1</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr><tr><td>1.0</td><td>1.08</td><td>1.93</td><td>3.61</td><td>306.5</td><td>1.81</td><td>1.93</td><td>2.41</td><td>372.0</td></tr></table>
(a)
<table><tr><td rowspan="2">Weight λNCE</td><td colspan="4">Text-motion retrieval</td><td colspan="4">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>0.001</td><td>18.55</td><td>23.25</td><td>36.75</td><td>7.00</td><td>18.19</td><td>24.34</td><td>31.45</td><td>11.50</td></tr><tr><td>0.01</td><td>20.84</td><td>26.99</td><td>37.23</td><td>7.00</td><td>18.92</td><td>23.13</td><td>32.17</td><td>10.25</td></tr><tr><td>0.1</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr><tr><td>1.0</td><td>19.52</td><td>24.46</td><td>34.46</td><td>7.00</td><td>19.04</td><td>24.34</td><td>35.06</td><td>9.50</td></tr></table>
(b)
<table><tr><td rowspan="2">Batch size</td><td colspan="4">Text-motion retrieval</td><td colspan="4">Motion-text retrieval</td></tr><tr><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td><td>R@1↑</td><td>R@2↑</td><td>R@3↑</td><td>MedR↓</td></tr><tr><td>16</td><td>25.42</td><td>31.57</td><td>40.12</td><td>6.00</td><td>20.36</td><td>24.10</td><td>33.73</td><td>8.00</td></tr><tr><td>32</td><td>24.58</td><td>30.24</td><td>41.93</td><td>5.00</td><td>19.64</td><td>23.73</td><td>32.53</td><td>9.50</td></tr><tr><td>64</td><td>20.24</td><td>26.51</td><td>38.19</td><td>6.00</td><td>19.52</td><td>24.22</td><td>32.05</td><td>9.50</td></tr><tr><td>128</td><td>18.55</td><td>28.80</td><td>36.75</td><td>7.00</td><td>14.94</td><td>18.43</td><td>26.14</td><td>11.50</td></tr></table>
Table 5. Hyperparameters of the contrastive training: We measure the sensitivity to the parameters $\tau$ (temperature), $\lambda_{c}$ the weight of the contrastive loss, and the batch size. Note that the learning rate is proportionally altered when changing the batch size. We display a wide range of values to show the full trends.
(c)
the incorrect motions have a low similarity $(< 0.6)$ , and the human bodies are rotated similarly as in swimming. More qualitative results can be seen in Appendix C, as well as our supplementary video on the project page.
# 4.5. Use case: Moment retrieval
While our focus is retrieval, once our model is trained, it can be used for a different use case. Here, we test the limits of our approach, by qualitatively evaluating the capability of TMR on the task of temporally localizing a natural language query in a long 3D motion sequence. This is similar in spirit to moment retrieval in videos [12, 13, 19, 25, 41]. It is also related to categorical action localization in 3D motions [48]; however, our input is free-form text instead of symbolic action classes.
In Figure 4, we show four examples, where we apply a model pre-trained on H3D on BABEL sequences. In each example, the queried text is displayed on the top. The x-axis denotes the frame number, the green rectangle represents the ground-truth location for the given action, and the dashed red line marks the localization with the maximum similarity. We simply compute the motion features in a sliding window manner. The similarity between the text label and a 20-frame window centered at each frame is shown in the y-axis as a 1D plot over time. Despite our model not being trained for temporal localization, we observe its grounding potential. Moreover, there exists a domain gap between BABEL label used at test time and H3D used for training. Quantitative evaluation and more qualitative examples are included in Appendix B.

 A person appears to be playing the violin
 Moving the hands and work some thing
 $S = 0.85$ The man plays violin holding it in his right hand
 $S = 0.85$ The man plays the violin
 $S = 0.81$ The man holds something above his left shoulder and rubs it with his right hand

 $S = 0.82$ A man steps forward and does a handstand
 $S = 0.68$ Doing a cartwheel then jumping up and down.
 $S = 0.61$ The person does 2 cartwheels
 $S = 0.48$ A person walks forward then turns completely around and does a cartwheel
 $S = 0.42$ The drunk guy struggles to walk down the street

 $S = 0.76$ The person was flying around like a fly
 $S = 0.71$ A person swam in free style
 $S = 0.62$ The person is preforming a swimming stroke know as the butterfly stroke. The arms swing from behind the head and reenter the water propelling the person forward.
 $S = 0.56$ A person lays on the ground
 $S = 0.52$ A man crawls forward on his stomach
 Figure 3. Qualitative retrieval results: We demonstrate example queries on the left, and corresponding retrieved motions on the right, ranked by text-motion similarity. The similarity values are displayed on the top. For each retrieved motion, we also show their accompanying ground-truth text label; note that we do not use these descriptions, but only provide them for analysis purposes. The motions from the gallery are all from the test set (unseen during training). In the first row, all top-5 retrieved motions correspond visually to 'playing violin' and the similarity scores are high $>0.80$ . In the second row, we correctly retrieve the 'handstand' motion at top-1, but the other motions mainly perform 'cartwheel' (which involves shortly standing on hands), but with a lower similarity score $<0.70$ . For the last example, we query a free-form text 'Someone is swimming', which does not exist in the gallery (but the word 'swim' does). The model successfully finds swimming motions among the top-3, and the other two motions involve the body parallel to the ground.

 Figure 4. Moment retrieval: We plot the similarity between the temporally annotated BABEL text labels and the motions in a sliding window manner, and obtain a 1D signal over time (blue). We observe that a localization ability emerges from our model, even though it was not trained for temporal localization, and was not with the domain of BABEL labels. The ground-truth temporal span is denoted in green and the maximum similarity is marked with a dashed red line. More examples are provided in Appendix Figure A.2.

# 4.6. Limitations
Our model comes with some limitations. Compared to the vast amount of data (e.g., 400M images [44]) in image-text collections used to train competitive foundation models, our motion-text training data can be considered extremely small (e.g., 23K motions in H3D). The generalization performance of motion retrieval models to in-the-wild motions is therefore limited. Data augmentations such as altering text can potentially help to a certain extent (cf. [6]); however, more motion capture is still needed. Another limitation concerns the case where one wishes to replace motion synthesis by retrieving a training motion. In this use case, the model requires the full encoded database (i.e., encoded training set) to be stored in memory, which can be memory-inefficient. Note that the encoded representation is considerably smaller than the original motion data. This could be dealt with using a hierarchical structuring of the motions and language descriptions (e.g. into upper-body motions, lower-body motions, sitting motions, standing motions, etc.).
# 5. Conclusion
In this paper, we focus on the relatively little-studied problem of motion retrieval with natural language queries. We
introduce TMR, a framework to jointly train text-to-motion retrieval and text-to-motion synthesis, with a special attention to the definition of negatives, taking into account the fine-grained nature of motion-language databases. We significantly improve over prior work, and provide a series of experiments highlighting the importance of each component.
Future work may consider incorporating a language synthesis branch, along with the motion synthesis branch, to build a symmetrical framework, which could bring further benefits.
Acknowledgements. This work was granted access to the HPC resources of IDRIS under the allocation 2022-AD011012129R2 made by GENCI. GV acknowledges the ANR project CorVis ANR-21-CE23-0003-01. The authors would like to thank Lucas Ventura and Charles Raude.
MJB Disclosure: files.is.tue.mpg.de/black/CoI_ ICCV_2023.txt
# References
[1] Kfir Aberman, Peizhuo Li, Dani Lischinski, Olga Sorkine-Hornung, Daniel Cohen-Or, and Baoquan Chen. Skeleton-aware networks for deep motion retargeting. ACM Transactions on Graphics (TOG), 2020. 3 [2] Chaitanya Ahuja and Louis-Philippe Morency. Language2Pose: Natural language grounded pose forecasting. In International Conference on 3D Vision (3DV), 2019. 2, 3 [3] Méziane Aïder, Oussama Gacem, and Mhand Hifi. Branch and solve strategies-based algorithm for the quadratic multiple knapsack problem. Journal of the Operational Research Society, 2022. 5 [4] Okan Arikan, David A. Forsyth, and James F. O'Brien. Motion synthesis from annotations. ACM Transactions on Graphics (TOG), 2003. 1, 2 [5] Nikos Athanasiou, Mathis Petrovich, Michael J. Black, and Gül Varol. TEACH: Temporal action composition for 3D humans. In International Conference on 3D Vision (3DV), 2022. 1, 2 [6] Nikos Athanasiou, Mathis Petrovich, Michael J. Black, and Güll Varol. SINC: Spatial composition of 3D human motions for simultaneous action generation. In International Conference on Computer Vision (ICCV), 2023. 8 [7] Max Bain, Arsha Nagrani, Gül Varol, and Andrew Zisserman. Frozen in time: A joint video and image encoder for end-to-end retrieval. In International Conference on Computer Vision (ICCV), 2021. 3, 4 [8] Michael Böttner and Simon Clavet. Motion matching - the road to next gen animation. In Nucl.ai, youtu.be/watch?v=z_wpgHFSWss&t=658s, 2015.2, 3 [9] Xin Chen, Biao Jiang, Wen Liu, Zilong Huang, Bin Fu, Tao Chen, Jingyi Yu, and Gang Yu. Executing your commands via motion diffusion in latent space. In Computer Vision and Pattern Recognition (CVPR), 2023. 1, 2 [10] Rishabh Dabral, Muhammad Hamza Mughal, Vladislav Golyanik, and Christian Theobalt. MoFusion: A framework for denoising-diffusion-based motion synthesis. In Computer Vision and Pattern Recognition (CVPR), 2023. 3 [11] Sivan Doveh, Assaf Arbelle, Sivan Harary, Rameswar Panda, Roei Herzig, Eli Schwartz, Donghyun Kim, Raja Giryes, Rogerio Feris, Shimon Ullman, and Leonid Karlinsky. Teaching struc
tured vision & language concepts to vision & language models. In Computer Vision and Pattern Recognition (CVPR), 2023. 2, 6 [12] Victor Escorcia, Mattia Soldan, Josef Sivic, Bernard Ghanem, and Bryan Russell. Temporal localization of moments in video collections with natural language. arXiv:1907.12763, 2019. 2, 7 [13] Jiyang Gao, Chen Sun, Zhenheng Yang, and Ram Nevatia. Tall: Temporal activity localization via language query. In International Conference on Computer Vision (ICCV), 2017. 2, 7 [14] Anindita Ghosh, Noshaba Cheema, Cennet Oguz, Christian Theobalt, and Philipp Slusallek. Synthesis of compositional animations from textual descriptions. In International Conference on Computer Vision (ICCV), 2021. 2 [15] Chuan Guo, Shihao Zou, Xinxin Zuo, Sen Wang, Wei Ji, Xingyu Li, and Li Cheng. Generating diverse and natural 3D human motions from text. In Computer Vision and Pattern Recognition (CVPR), 2022. 2, 3, 4, 5, 6 [16] Chuan Guo, Xinxin Zuo, Sen Wang, Shihao Zou, Qingyao Sun, Annan Deng, Minglun Gong, and Li Cheng. Action2Motion: Conditioned generation of 3D human motions. In ACM International Conference on Multimedia (ACMMM), 2020. 2, 5 [17] Ikhsanul Habibie, Mohamed Elgharib, Kripashindu Sarkar, Ahsan Abdullah, Simbarashe Nyatsanga, Michael Neff, and Christian Theobalt. A motion matching-based framework for controllable gesture synthesis from speech. In SIGGRAPH, 2022. 2 [18] R. Hadsell, S. Chopra, and Y. LeCun. Dimensionality reduction by learning an invariant mapping. In Computer Vision and Pattern Recognition (CVPR), 2006. 3, 5, 6 [19] Lisa Anne Hendricks, Oliver Wang, Eli Shechtman, Josef Sivic, Trevor Darrell, and Bryan Russell. Localizing moments in video with natural language. In International Conference on Computer Vision (ICCV), 2017. 2, 7 [20] Daniel Holden, Oussama Kanoun, Maksym Perepichka, and Tiberiu Popa. Learned motion matching. ACM Transactions on Graphics (TOG), 2020. 3 [21] Daniel Holden, Taku Komura, and Jun Saito. Phase-functional neural networks for character control. ACM Transactions on Graphics (TOG), 2017. 5 [22] Sai Shashank Kalakonda, Shubh Maheshwari, Sarvadevabhatla, and Ravi Kiran. Action-GPT: Leveraging large-scale language models for improved and generalized zero shot action generation. arXiv:2211.15603, 2022. 2 [23] Lucas Kovar, Michael Gleicher, and Frédéric H. Pighin. Motion graphs. ACM Transactions on Graphics (TOG), 2002. 1 [24] Taeryung Lee, Gyeongsik Moon, and Kyoung Mu Lee. MultiAct: Long-term 3D human motion generation from multiple action labels. In AAAI Conference on Artificial Intelligence, 2023. 2 [25] Jie Lei, Licheng Yu, Tamara L Berg, and Mohit Bansal. TVR: A large-scale dataset for video-subtitle moment retrieval. In European Conference on Computer Vision (ECCV), 2020. 2, 7 [26] Junnan Li, Dongxu Li, Caiming Xiong, and Steven C. H. Hoi. BLIP: bootstrapping language-image pre-training for unified vision-language understanding and generation. In International Conference on Machine Learning (ICML), 2022. 2, 3, 4 [27] Angela S Lin, Lemeng Wu, Rodolfo Corona, Kevin Tai, Qixing Huang, and Raymond J Mooney. Generating animated videos of human activities from natural language descriptions. ViGIL NeurIPS Workshop, 2018. 2 [28] Matthew Loper, Naureen Mahmood, Javier Romero, Gerard Pons-Moll, and Michael J. Black. SMPL: A skinned multi-person
linear model. ACM Transactions on Graphics (TOG), 2015. 3, 5 [29] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019. 5 [30] Huaishao Luo, Lei Ji, Ming Zhong, Yang Chen, Wen Lei, Nan Duan, and Tianrui Li. CLIP4Clip: An empirical study of CLIP for end to end video clip retrieval and captioning. Neurocomputing, 2022. 3 [31] Naureen Mahmood, Nima Ghorbani, Nikolaus F. Troje, Gerard Pons-Moll, and Michael J. Black. AMASS: Archive of motion capture as surface shapes. In International Conference on Computer Vision (ICCV), 2019. 5 [32] Antoine Miech, Jean-Baptiste Alayrac, Ivan Laptev, Josef Sivic, and Andrew Zisserman. Thinking fast and slow: Efficient text-to-visual retrieval with transformers. In Computer Vision and Pattern Recognition (CVPR), 2021. 3 [33] Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. End-to-end learning of visual representations from uncurated instructional videos. In Computer Vision and Pattern Recognition (CVPR), 2020. 3 [34] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv:1807.03748, 2018. 2, 3, 4, 5, 6, 7 [35] Mathis Petrovich, Michael J. Black, and Gül Varol. Action-conditioned 3D human motion synthesis with transformer VAE. In International Conference on Computer Vision (ICCV), 2021. 1, 2, 3, 4 [36] Mathis Petrovich, Michael J. Black, and Gül Varol. TEMOS: Generating diverse human motions from textual descriptions. In European Conference on Computer Vision (ECCV), 2022. 1, 2, 3, 4, 5, 6 [37] Matthias Plappert, Christian Mandery, and Tamim Asfour. The KIT motion-language dataset. *Big Data*, 2016. 2, 4, 5 [38] Abhinanda R. Punnakkal, Arjun Chandrasekaran, Nikos Athanasiou, Alejandra Quiros-Ramirez, and Michael J. Black. BABEL: Bodies, action and behavior with english labels. In Computer Vision and Pattern Recognition (CVPR), 2021. 2 [39] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning (ICML), 2021. 1, 2, 3, 4 [40] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International Conference on Machine Learning (ICML), 2021. 2 [41] Michaela Regneri, Marcus Rohrbach, Dominikus Wetzel, Stefan Thater, Bernt Schiele, and Manfred Pinkal. Grounding action descriptions in videos. In Transactions of the Association for Computational Linguistics (TACL), 2013. 2, 7 [42] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Computer Vision and Pattern Recognition (CVPR), 2022. 2 [43] Victor Sanh, Lysandre Debut, Julien Chaumont, and Thomas Wolf. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. In Energy Efficient Machine Learning and Cognitive Computing NeurIPS Workshop, 2019. 3
[44] Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. LAION-400M: open dataset of clip-filtered 400 million image-text pairs. In Data Centric AI NeurIPS Workshop, 2021. 2, 8 [45] H. Sidenbladh, M. J. Black, and L. Sigal. Implicit probabilistic models of human motion for synthesis and tracking. In European Conference on Computer Vision (ECCV), 2002. 2, 3 [46] Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. MPNet: Masked and permuted pre-training for language understanding. In Neural Information Processing Systems (NeurIPS), 2020. 2 [47] Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. MPNet: Masked and permuted pre-training for language understanding. In Neural Information Processing Systems (NeurIPS), 2020. 4 [48] Jiankai Sun, Bolei Zhou, Michael J. Black, and Arjun Chandrasekaran. LocATE: End-to-end localization of actions in 3D with transformers. arXiv:2203.10719, 2022. 7 [49] Guy Tevet, Sigal Raab, Brian Gordon, Yoni Shafir, Daniel Cohen-or, and Amit Haim Bermano. Human motion diffusion model. In International Conference on Learning Representations (ICLR), 2023. 1, 2, 3 [50] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Neural Information Processing Systems (NeurIPS), 2017. 3 [51] Ruben Villegas, Jimei Yang, Duygu Ceylan, and Honglak Lee. Neural kinematic networks for unsupervised motion retargeting. In Computer Vision and Pattern Recognition (CVPR), 2018. 3 [52] Jiashun Wang, Chao Wen, Yanwei Fu, Haitao Lin, Tianyun Zou, Xiangyang Xue, and Yinda Zhang. Neural pose transfer by spatially adaptive instance normalization. In Computer Vision and Pattern Recognition (CVPR), 2020. 3 [53] Sijie Yan, Zhizhong Li, Yuanjun Xiong, Huahan Yan, and Dahua Lin. Convolutional sequence generation for skeleton-based action synthesis. In International Conference on Computer Vision (ICCV), 2019. 2 [54] Jiahui Yu, Zirui Wang, Vijay Vasudevan, Legg Yeung, Mojtaba Seyedhosseini, and Yonghui Wu. CoCa: Contrastive captioners are image-text foundation models. Transactions on Machine Learning Research (TMLR), 2022. 2, 3 [55] Mert Yuksekgonul, Federico Bianchi, Pratyusha Kalluri, Dan Jurafsky, and James Zou. When and why vision-language models behave like bags-of-words, and what to do about it? In ICLR, 2022. 2, 6 [56] Jianrong Zhang, Yangsong Zhang, Xiaodong Cun, Shaoli Huang, Yong Zhang, Hongwei Zhao, Hongtao Lu, and Xi Shen. T2M-GPT: Generating human motion from textual descriptions with discrete representations. In CVPR, 2023. 2 [57] Mingyuan Zhang, Zhongang Cai, Liang Pan, Fangzhou Hong, Xinying Guo, Lei Yang, and Ziwei Liu. MotionDiffuse: Text-driven human motion generation with diffusion model. arXiv:2208.15001, 2022. 3 [58] Yan Zhang, Michael J. Black, and Siyu Tang. Perpetual motion: Generating unbounded human motion. arXiv:2007.13886, 2020. 2 [59] Rui Zhao, Hui Su, and Qiang Ji. Bayesian adversarial human motion synthesis. In CVPR, 2020. 2123version https://git-lfs.github.com/spec/v1oid sha256:79ea25d3059ccba578a864cc80e5c7d4d90659322c0c25f1ed86f5659ef7d8aasize 584549123version https://git-lfs.github.com/spec/v1oid sha256:21df6fad53835d30098592e64a1cd6fc44e17ab84fe6619cb70143df88f12719size 1025515123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403# TORE: Token Reduction for Efficient Human Mesh Recovery with Transformer
Zhiyang Dou $^{1\dagger}$ Qingxuan Wu $^{2\dagger}$ Cheng Lin $^{3\dagger}$ Zeyu Cao $^{4\dagger}$ Qiangqiang Wu $^{5}$ Weilin Wan $^{1}$ Taku Komura $^{1}$ Wenping Wang $^{6}$
$^{1}$ The University of Hong Kong $^{2}$ University of Oxford $^{3}$ Tencent Games $^{4}$ University of Cambridge $^{5}$ City University of Hong Kong $^{6}$ Texas A&M University
# Abstract
In this paper, we introduce a set of simple yet effective TOken REDuction (TORE) strategies for Transformer-based Human Mesh Recovery from monocular images. Current SOTA performance is achieved by Transformer-based structures. However, they suffer from high model complexity and computation cost caused by redundant tokens. We propose token reduction strategies based on two important aspects, i.e., the 3D geometry structure and 2D image feature, where we hierarchically recover the mesh geometry with priors from body structure and conduct token clustering to pass fewer but more discriminative image feature tokens to the Transformer. Our method massively reduces the number of tokens involved in high-complexity interactions in the Transformer. This leads to a significantly reduced computational cost while still achieving competitive or even higher accuracy in shape recovery. Extensive experiments across a wide range of benchmarks validate the superior effectiveness of the proposed method. We further demonstrate the generalizability of our method on hand mesh recovery. Visit our project page at https://frank-zy-dou.github.io/projects/Tore/index.html.
# 1. Introduction
Human Mesh Recovery (HMR) has been extensively researched in recent years, given its wide real-world applications [15, 81, 11, 62, 69, 17, 42, 84]. This task becomes more challenging when the input is a monocular 2D image, due to the large pose and shape variation, large appearance variation, partial observation, and self-occlusion.
There has been steady progress in 3D human mesh recovery [30, 50, 36, 24, 60, 39, 40, 8, 5]. Recently, Transformer [67] has shown state-of-the-art (SOTA) results on a wide variety of tasks due to its strong capability of capturing long-range dependency for more accurate predictions [3, 67, 76, 74]. Using tokens constructed from local features extracted by a convolutional neural network

 Figure 1. Throughput v.s. Accuracy and GFLOPs v.s. Accuracy on Human3.6M [23]. Our method dramatically saves GFLOPs and improves throughput while maintaining highly competitive accuracy. The x-axis of the bottom GFLOPs figure is reversed for demonstration. Eb0 and R50 represent EfficientNet-b0 [65] and ResNet-50 [20] backbones, respectively.
<table><tr><td>● METRO baseline ▲ FastMETRO baseline ● FastMETRO(S) baseline</td></tr><tr><td>METRO-TORE ▼ FastMETRO-TORE ● FastMETRO(S)-TORE</td></tr></table>
(CNN) [20, 70] to query the joint and mesh vertex positions, Transformer-based methods [39, 40, 8] achieved SOTA performance.
However, improved performance comes with costs: the increased expressivity of Transformers comes with quadratically increasing computational costs since all pairwise interactions are taken into account [14]. The space and time complexity of a QKV-attention operation is known to be $O(M^2)$ , where $M$ is the number of tokens. The token number thus plays a vital role in time efficiency: a large number of tokens inevitably leads to a heavy computation burden. Unfortunately, almost all the existing Transformer-based SOTA methods for HMR [39, 40, 8] are suffering from redundant tokens. This incurs a high model complexity and computational costs, which prevents the current Transformer-based HMR methods from achieving their full potential in real-world applications.
In this paper, we make key observations from two important aspects: the 3D geometry structure and 2D image
feature, to reveal the problem of token redundancy. First, to recover the 3D geometry, all existing methods use both mesh vertices and skeleton joints as tokens for the feature interaction between input and body shape. Whereas a body mesh contains numerous vertices, they can be abstracted by a small number of joints on the skeleton. For instance, when animating a SMPL [44] avatar, the skeleton joints, together with a blend shape binding the joints and corresponding mesh vertices of the local body part, are able to describe various body meshes. Therefore, the joints can already be viewed as an underlying structure of a body shape, which intrinsically encodes the human mesh geometry. Second, for image-based input, most existing methods indiscriminately use all the feature patches to capture pose, shape and appearance variance. However, although the human body exhibits large variance, the important features for shape inference are dominantly clustered within the body area in an RGB image. Most features, e.g., image background, are not informative, thus bringing about redundancy.
Given the aforementioned insights, we argue that the Pareto-front of accuracy and efficiency for Transformer-based HMR could be further improved by reducing the number of tokens [59, 47, 56]. To this end, we introduce a set of simple yet effective token reduction strategies mainly from two aspects corresponding to our observations. First, for 3D mesh recovery, instead of querying both vertices and joints with input features simultaneously, we consider learning a small set of body tokens at the skeleton level for each body part. To recover corresponding mesh vertices, we use an efficient Neural Shape Regressor (NSR) to infer the mesh from the body features encoded by these tokens. This query process can also be interpreted as an attention matrix decomposition, by which we effectively leverage the geometric insights encoded at the skeleton level to infer the mesh structure hierarchically. Second, for the input image feature, we introduce a learnable token pruner to prune the tokens of patch-based features extracted by a CNN. We employ a clustering-based strategy to identify discriminative features, which results in two appealing properties: 1) the end-to-end learning of the pruner is unsupervised, avoiding the need for additional data labeling; 2) it learns semantically consistent features across various images, thus further benefiting the geometry reasoning and enhancing the capability of generalizability. These token reduction strategies substantially reduce the number of query tokens involved in the computation without sacrificing the important information. An overview is shown in Figure 2.
We conduct extensive experiments across wide benchmarks [23, 68, 85], including both the human body and hand mesh recovery, to validate the proposed method. Compared to SOTA methods, our framework faithfully recovers body meshes with fewer tokens, which considerably reduces memory and computation overhead while maintain
ing competitive geometric accuracy.
In summary, our contribution is three-fold:
- We reveal the issues of token redundancy in the existing Transformer-based methods for HMR. - We propose effective strategies for token reduction by incorporating the insights from the 3D geometry structure and 2D image feature into the Transformer design. - Our method achieves SOTA performance on various benchmarks with less computation cost. For instance, for the Transformer Encoder structure [39] and the Transformer Encoder-Decoder structure [8] with ResNet-50 [20] backbone, our method maintains competitive accuracy while saving $82.9\%$ , $50.5\%$ GFLOPs and improving $139.1\%$ , $39.8\%$ throughput, respectively; see Figure 1 for an overview.
# 2. Related Work
Human Mesh Recovery (HMR) from monocular images has achieved great progress in the past years [4, 30, 50, 36, 10, 40, 24, 60, 5, 39, 8, 82, 71, 58]. Given a monocular RGB image, the goal of HMR is to recover the 3D body shape, typically using a human body model, e.g., SMPL [44]. We refer readers to [66] for a comprehensive review. Existing methods fall into two categories: Non-Transformer-based and Transformer-based approaches.
Non-Transformer-based Human Mesh Recovery To recover the human body shape, one could predict a few parameters, i.e., joint rotation and body shape, to drive the parametric model (parametric approach) or directly regress the vertex positions of the body (non-parametric approach). Parametric approaches SMPLify [4] estimates human pose and shape by fitting SMPL to the detected 2D key points [55] by optimization. Kanazawa et al. [24] adopt adversarial prior knowledge of the 3D body shape into the neural network for HMR. SPIN [30] then combines regression-based and optimization-based methods during the training loop. Intermediate features such as key points [54], pixel-to-surface correspondences [77] and texture consistency [52], have been exploited. HybrIK [36] proposes a hybrid inverse kinematics via twist-and-swing decomposition [2]. Regressing the body parameters from the image is a highly non-linear mapping [50], which thus limits the performance of parametric-based approaches.
Non-parametric approaches Non-parametric approaches [50, 32, 9] recover spatial coordinates of a body shape directly from the image features. I2L-MeshNet [50] predicts the per-pixel likelihood on 1D heatmaps for vertex coordinates for a trade-off between accuracy and computational cost. GraphCMR [32] and Pose2Mesh [9] employ graph convolutional neural network (GCNN) [27]
 Figure 2. Overview of the proposed framework. Our goal is to reduce tokens for Transformer Encoder and Decoder which are critical modules in the whole pipeline. Image Token Pruner (ITP) and Neural Shape Regressor (NSR) are two lightweight components.
to regress mesh positions by modeling local interactions among vertices from the image [32] and 2D pose [9], respectively. Although steady progress has been made, SOTA accuracy is produced by Transformer-based methods.
Transformer-based Human Mesh Recovery Recently, Transformer structures have been successfully adopted in various vision tasks [12, 43, 6, 51, 66, 80]. In HMR, the SOTA performance is achieved by Transformer-based (attention mechanism) approaches [39, 29, 40, 8]. Specifically, METRO [39] recovers body mesh using a Transformer Encoder [67] to model vertex-vertex and vertex-joint interactions conducting dimension reduction from the image features to 3D shape. MeshGraphormer [40] injects Graph Convolutions [27] into the Transformer Encoder [39] blocks to improve local interactions among vertices. The recent work FastMETRO [8] employs a Transformer Encoder-Decoder architecture disentangling the image encoding and mesh estimation for model reduction and acceleration. However, all Transformer-based approaches [39, 40, 8] suffer from redundant tokens, causing heavy interaction between body geometry and image features, which is still cumbersome and computationally intensive. In this paper, we design strategies driven by the 3D body geometry and 2D image feature for token reduction for both Transformer Encoder and Transformer Encoder-Decoder structures.
Token Reduction for Transformers Token reduction for Transformer structures has been causing people's attention nowadays [56, 47, 59, 78, 16, 38, 46, 7]. In particular, DynamicViT [56] reduces less informative tokens hierarchically with supervision from a teacher network to save computational costs during inference. TokenLearner [59] generates a smaller number of tokens with spatial attention adaptively. Patch-to-Cluster [16] proposes to cluster over image patches with a token selector. Our method follows this way and adopts a token selection layer for clustering over input tokens, reducing tokens and improving general
ization capability in challenging scenarios. Token pruning techniques have also been explored in single-view 2D pose estimation and multi-view 3D pose estimation [47] by selecting tokens based on the attention value in the Transformer. Differently, in HMR, besides the key points, body geometry, i.e., mesh vertices, also introduces a burden to the Transformer and needs to be carefully considered.
# 3. Methodology
We employ the popular body parametric model SMPL [44] to represent a human body. Formally, given a monocular image $\mathcal{I} \in \mathbb{R}^{224 \times 224}$ , our goal is to recover the joint positions $\mathcal{J} \in \mathbb{R}^{J \times 3}$ and mesh vertices $\mathcal{V} \in \mathbb{R}^{V \times 3}$ where $J = 14$ , $V = 6890$ are the numbers of joints and the mesh vertices, respectively. In addition to the human body, we also demonstrate our method on hand mesh recovery with MANO model [57] to show its generalizability.
Existing Transformer-based HMR methods fall into two categories: a single Transformer Encoder structure [39, 40] and a Transformer Encoder-Decoder structure [8]. Accordingly, we propose two strategies to reduce tokens from 3D and 2D levels, namely, Geometry Token Reduction (GTR) and Image Token Pruning (ITP), which can accommodate different Transformer structures to improve their efficiency.
# 3.1. Geometry Token Reduction (GTR)
As an essential module, all the existing Transformer-based methods for HMR [39, 40, 8] have to model the interaction between body geometry and image features with an attention mechanism. Therefore, an effective token reduction method to improve the efficiency for inferring mesh geometry can benefit the design of Transformer based methods in a wide scope.
We observe existing methods invariably use both skeleton joints and mesh vertices as tokens for regressing their spatial coordinates. The numerous tokens inevitably lead to
significant computational costs for a Transformer. In fact, as an underlying structure of the human body, the skeleton joints already provide strong priors for perceiving the body geometry. A human body avatar, like SMPL [44], can be driven by a small number of joints with the blend shape. This inspires us to regress the human body mesh in a hierarchical manner.
Our key idea is to decompose a heavy Transformer into smaller Transformer modules, each of which involves fewer tokens, avoiding expensive computation for image feature interaction. Specifically, our approach only queries the body tokens, whose count is equivalent to the number of joints. Since the number of joints is much less than the number of mesh vertices, we can significantly reduce the token number in complex 2D-3D feature interactions and this leads to a substantial enhancement in efficiency.
To faithfully recover body shape from the body tokens, we introduce a Neural Shape Regressor (NSR) module, which is a light Transformer structure, to query the vertex tokens from their interaction with body features. Let $F_{J} = \{f_{1}^{j}, f_{2}^{j}, \dots, f_{J}^{j}\}$ denotes a set of learned body features and $T_{\mathcal{V}} = \{t_{1}^{v}, t_{2}^{v}, \dots, t_{V}^{v}\}$ where $t_{i}^{v}$ represents a set of vertex tokens which are the query tokens. We conduct cross-attention between query vertex tokens and body features to model the interaction between vertices and learned body features. Note that non-adjacent vertices are masked to improve the efficiency [8].
The feature size within NSR is even smaller compared with the main Transformer. Thanks to the informative geometric feature encoded in the body tokens, despite not incorporating image tokens, NSR still faithfully recovers the surface vertices. Another interesting discovery is that the learned attention scores reflect the correlation between joints and vertices at a body part level, similar to body blending weights (see Sec. 4.7.3). In this way, we can effectively reduce the cost of redundant interaction by decomposing the entire body into encoded constituent parts and efficiently recovering the whole body shape.
# 3.2. Image Token Pruning (ITP)
In addition to the geometric insights, for a Transformer Encoder-Decoder structure, image tokens also affect the computation overhead. However, the existing methods adopting this Transformer structure fail to avoid the token redundancy issue [8] because all available image feature patches are indiscriminately involved in human mesh recovery. Actually, some features, e.g., image background, are not informative, thus introducing redundancy and increasing the computational cost of the Transformer.
To tackle this issue, we introduce an effective token pruning strategy, namely, Image Token Pruning (ITP). Our key insight is that the informative features in an image for inferring 3D geometry are overwhelmingly clustered within
the region of the human body. Inspired by recent advances in token pruning [16, 59, 56, 47], we propose to aggregate features into a small number of meaningful clusters.
Let $0 < \rho < 1$ denote the predefined token pruning ratio. Our goal is to learn a projection that maps feature map $F_{\mathcal{I}} \in R^{HW \times c}$ extracted from the given image with HW tokens to $Z_{\mathcal{I}} \in R^{T \times c}$ with $T$ tokens, where $T = \lfloor \rho HW \rfloor$ and $c$ is the feature dimension. The small number of clusters $Z_{\mathcal{I}}$ are expected to capture the fewer but more discriminative features in $F_{\mathcal{I}}$ . Inspired by [16, 59], we implement the projection as a learnable CNN module. We first apply Conv2D to the input feature, where the kernel size, stride and zero padding of Conv2D are $3 \times 3$ , 1 and 1, reducing the feature dimension from $c$ to $c' = c/4$ with GELU [21] activation function applied. We further map the dimension $c$ to $N$ by MLP and Softmax, producing $M \in R^{HW \times N}$ . Finally, the clustered token set is given by $Z_{\mathcal{I}} = M^T \cdot F_{\mathcal{I}}$ . The mapping matrix $M^T$ , in essence, produces a clustering over origin tokens. Each element $m_{ij} \in M^T$ depicts the contribution of $j$ token to $i$ -th cluster. Note that LayerNorm is employed after the clustering.
Token Reduction Supervision In order to encourage ITP to pay more attention to those discriminative feature regions, i.e., body parts. during token reduction, we introduce Token Reduction Supervision. Given the weak-perspective camera estimated the neural network, we compute the 2D projection of the ground truth 3D vertices $\hat{\mathcal{V}}$ as $s\Pi (\hat{\mathcal{V}}) + t$ where $\Pi$ represents an orthographic projection, $s$ and $t$ are scale and translation estimated by the network. The projected results are downsampled to a discrete $H\times W$ grid corresponding to each token followed by a binary indicator function
$$F _ {d} (x) = \left\{ \begin{array}{l} 1, \text {i f t h e c e l l c o n t a i n s a p r o j e c t e d p o i n t .} \\ 0, \text {i f t h e c e l l d o e s n o t c o n t a i n a p r o j e c t e d p o i n t .} \end{array} \right. \tag {1}$$
Then the supervision for token pruning is given by
$$L _ {P} = - \frac {1}{N H W} \sum_ {i} ^ {N} \left(F _ {d} \left(s \Pi (\hat {\mathcal {V}}) + t\right) \cdot M _ {[:, i ]}\right). \tag {2}$$
With this supervision, the weights of background tokens in $M[:i]$ for each $i$ -th cluster will be penalized during training, which thus encourages the ITP to learn the discriminative features.
The proposed ITP has several noticeable advantages. First, in contrast to other methods relying on explicit supervision, e.g., using a pretrained teacher network to facilitate the pruning [56, 78, 33], our token pruner is trained in an unsupervised manner; Note that no ground truth masking is required for Token Reduction Supervision. Second, unlike previous clustering-based pruning methods [16] that use pre-defined class labels, ITP aims to adaptively identify discriminative features within the body region. Therefore,
ITP is not limited to fixed semantic labels but is able to induce higher-level semantics according to the learning target.
Finally, we find the clustered informative features learned by ITP improve the model generalizability, especially for challenging datasets, e.g., in-the-wild dataset 3DPW [68] as shown in Table 3. We elaborate on these properties in Sec. 4.3.2 and Sec. 4.7.1 with extensive experiments.
# 3.3. Loss Functions
We supervise the network using L1 distance between predicted mesh vertices at three sampling levels: $L_{\mathcal{V}3D} = ||\mathcal{V}_{3D}^l - \hat{\mathcal{V}}^l||_1 + ||\mathcal{V}_{3D}^m - \hat{\mathcal{V}}^m||_1 + ||\mathcal{V}_{3D}^h - \hat{\mathcal{V}}_h||_1$ , where $*, *^m, *^h$ denote low, middle and high body mesh resolution with vertex numbers to be 431, 1723 and 6890 for an SMPL body. The ground-truth 3D joints are used for supervising predicted 3D joints and the ones regressed from the vertices $\mathcal{V}_{3D}^h$ with a SMPL regression matrix $\mathcal{M}$ : $L_{\mathcal{J}3D} = ||\mathcal{J}_{3D} - \hat{\mathcal{J}}_{3D}||_1, L_{\mathcal{J}3D}^R = ||\mathcal{M}(\mathcal{V}) - \hat{\mathcal{J}}_{3D}||_1$ . A 2D projection loss $L_{J2D}$ is used during the network training, where we employ a weak perspective camera model to project 3D joints to 2D for supervision: $L_{\mathcal{J}2D}^R = ||(s\Pi(\mathcal{M}(\mathcal{V})) + t) - \hat{\mathcal{J}}_{2D}||_1$ . $s, t$ are scale and translation estimated by the network. Overall, together with the Token Pruning Supervision $L_P$ , the total loss is:
$$\begin{array}{l} L = \alpha \left[ \lambda_ {\mathcal {J} 3 D} \left(L _ {\mathcal {J} 3 D} ^ {R} + L _ {\mathcal {J} 3 D}\right) + \lambda_ {\mathcal {V} 3 D} \left(L _ {\mathcal {V} 3 D}\right) + \lambda_ {P} L _ {P} \right] \\ + \beta \lambda_ {\mathcal {J} 2 D} L _ {\mathcal {J} 2 D} ^ {R}, \\ \end{array}$$
where $\alpha$ and $\beta$ indicate the availability of the supervision. We set $\lambda_{P},\lambda_{J2D},\lambda_{V3D},\lambda_{J3D}$ to be 1, 100, 100, 1000.
# 4. Experimental Results
# 4.1. Datasets and Metrics
We evaluate our model in two scenarios: human body mesh recovery and hand mesh recovery. We adopt commonly-used metrics [25, 31, 39, 40, 8]: Mean Per-Joint Position Error (MPJPE), MPJPE after further alignment, i.e., Procrustes Analysis (PAMPJPE) and Mean Per-Vertex Error (MPVE). For human body mesh recovery, our network is trained with Human3.6M [23], MuCo-3DHP[48], UP-3D [34], COCO [41], MPI [1]. Following previous works [39, 40, 8], we use the pseudo mesh data in Human3.6M [23] for training, splitting subjects S1, S5, S6, S7, S8 for training and S9, S11 for testing. We also report our performance on 3DPW [68], a more challenging in-the-wild dataset. To further evaluate the generalization ability of the proposed method, we test our method on hand mesh recovery on FreiHAND [85] dataset. For analyzing the efficiency of our method, we report GFLOPs and throughput (image per second), strictly following [56, 49, 59, 47, 38].
Table 1. Comparison with the Transformer Encoder structure METRO (M) [39] on Human3.6M [23]. We test with ResNet-50 (R50) [20] and HRNet-W64 (H64) [70] as backbones. GFLOPs $^{\mathrm{T}}$ is GFLOPs of the transformer.
<table><tr><td>Method</td><td>GFLOPs ↓</td><td>GFLOPsT ↓</td><td>Throughput (im/s) ↑</td><td>PAMPJPE ↓</td></tr><tr><td>M-H64 [39]</td><td>56.5</td><td>27.5</td><td>141.0</td><td>36.7</td></tr><tr><td>M-H64+GTR</td><td>30.2 (-46.5%)</td><td>0.8 (-97.1%)</td><td>210.1 (+49.0%)</td><td>37.1 (+1.1%)</td></tr><tr><td>M-R50 [39]</td><td>31.6</td><td>27.5</td><td>247.0</td><td>40.6</td></tr><tr><td>M-R50+GTR</td><td>5.4 (-82.9%)</td><td>0.8 (-97.1%)</td><td>590.6 (+139.1%)</td><td>42.0 (+3.4%)</td></tr></table>
# 4.2. Implementation Details
Network Training We implement the network using PyTorch. For the Transformer Encoder-Decoder structure, we set the learning rate to be $1 \times 10^{-4}$ . We use the AdamW optimizer [45] and train for 60 epochs, with a batch size of 16 per GPU on 4 Nvidia A100 GPUs. When comparing with Transformer Encoder structure METRO [39] (see Table 1), we follow the setting of METRO where we train the models with a batch size of 30 per GPU on 8 Nvidia A100 GPUs in total. We adopt Adam optimizer [26] and train the models for 200 epochs. See more details in Appendix A.
Performance Evaluation To analyze the performance on a consumer-level GPU device, we measure the throughput on an NVIDIA RTX 3090 GPU with 24G VRAM. When comparing with encoder-decoder Transformer structure FastMETRO [8], we set the batch size to 32 following PPT [47]. The comparison with Transformer Encoder structure METRO [39] uses 16 as the batch size. Note that the batch size is limited by the size of the original METRO [39] model. To factor out the influence of the batch size, we provide a more detailed performance report in Appendix B.
# 4.3. Performance on Human Mesh Recovery
Currently, there only exist two types of representative Transformer structures for HMR: Encoder-only structure (METRO [39]) and Encoder-Decoder structure (Fast-METRO [8]). To demonstrate the effectiveness of our method to both Transformer structures, we first conduct experiments by adding GTR to two structures: METRO and FastMETRO. Since ITP is designed for the encoder-decoder structure, we further report the results on FastMETRO with both ITP and GTR in Sec. 4.3.2. The overall comparison is shown in Table 5.
# 4.3.1 Transformer Encoder Structure
As shown in Table 1, GTR effectively reduces the computation costs while still producing competitive accuracy results. For the encoder-based Transformer model METRO [39] with HRNet-W64 [70] as a backbone, applying GTR saves the GFLOPs of the whole model for $46.5\%$ and the Transformer part for $97.1\%$ , with throughput im






 Figure 3. Qualitative results of GTR equipped Encoder-Decoder structure [39] (H64) on Human3.6M [23] and 3DPW [68].

Table 2. Comparison with the Transformer Encoder-Decoder structure FastMETRO (FM) [8] on Human3.6M [23]. We test with EfficientNet-b0 (Eb0) [65], ResNet-50 (R50) [20] and HRNet-W64 (H64) [70] as backbones. GFLOPs $^{\mathrm{T}}$ stand for GFLOPs for the transformer.
<table><tr><td>Method</td><td>GFLOPs ↓</td><td>GFLOPsT ↓</td><td>Throughput (im/s) ↑</td><td>PAMPJPE ↓</td></tr><tr><td>FM-H64 [8]</td><td>35.7</td><td>6.6</td><td>221.5</td><td>33.7</td></tr><tr><td>FM-H64+GTR</td><td>30.2 (-15.4%)</td><td>0.7 (-89.4%)</td><td>249.2 (+12.5%)</td><td>34.8 (+3.2%)</td></tr><tr><td>FM-R50 [8]</td><td>10.9</td><td>6.6</td><td>576.0</td><td>37.3</td></tr><tr><td>FM-R50+GTR</td><td>5.4 (-50.5%)</td><td>0.7 (-89.4%)</td><td>805.3 (+39.8%)</td><td>38.6 (+3.4%)</td></tr><tr><td>FM(S)-R50 [8]</td><td>6.4</td><td>2.2</td><td>953.5</td><td>39.4</td></tr><tr><td>FM(S)-R50+GTR</td><td>4.6 (-28.1%)</td><td>0.3 (-86.4%)</td><td>1128.9 (+18.4%)</td><td>38.6 (-2.0%)</td></tr><tr><td>FM-Eb0</td><td>7.1</td><td>6.6</td><td>517.6</td><td>45.8</td></tr><tr><td>FM-Eb0+GTR</td><td>1.7 (-76.1%)</td><td>0.7 (-89.4%)</td><td>870.5 (+68.2%)</td><td>44.2 (-3.5%)</td></tr></table>
proved by $49\%$ . For the ResNet-50 [20] backbone, GTR helps save the GFLOPs of the whole model for $82.9\%$ and the Transformer part for $97.1\%$ , with throughput improved by $139.1\%$ . These results validate the effectiveness of the proposed GTR on the Transformer Encoder structure. Qualitative results of METRO-H64+GTR can be found in Figure 3, in which the model produces high-quality results in human mesh recovery over various input monocular images.
# 4.3.2 Transformer Encoder-Decoder Structure
We experiment on the Transformer Encoder-Decoder structure FastMETRO [8] with its two variants: models with 1 and 3 Encoder-Decoder layers. For 1-layer FastMETRO, we denote it as FastMETRO(S). In Table 2, GTR equipped
FastMETRO [39] produces competitive accuracy while reducing $15.4\%$ in GFLOPs for the whole model, $89.4\%$ in GFLOPs for the Transformer part and improving $12.5\%$ in throughput with an HRNet-W64 [70] CNN backbone. When testing with ResNet-50 [20], GTR helps save $50.5\%$ in GFLOPs for the whole model, $89.4\%$ in GFLOPs for the Transformer part and improves $39.8\%$ in throughput. Notably, our FastMETRO(S)-R50+GTR and FastMETRO(S)-Eb0+GTR yield 38.6, 44.2 mm PAMPJPE respectively, surpassing the corresponding baselines while greatly saving computational costs.
We then present the performance of the Transformer Encoder-Decoder structure with GTR and ITP using ResNet-50 [20] and EfficientNet-b0 [65] CNN backbones.
Table 3. Influence of ITP for monocular 3D human mesh recovery on 3DPW [68].
<table><tr><td>Method</td><td>MPVE</td><td>MPJPE</td><td>PAMPJPE</td></tr><tr><td>FastMETRO-H64+GTR</td><td>91.3</td><td>75.4</td><td>46.7</td></tr><tr><td>FastMETRO-H64+GTR+ITP@20%</td><td>88.2</td><td>72.3</td><td>44.4</td></tr></table>
As shown in Table 4, TORE (GTR+ITP) is effective for the Encoder-Decoder Transformer structure. Specifically, when pruning with $20\%$ , $50\%$ in ITP, the models save the GLOPs of the Transformer structure by $14.3\%$ , $14.3\%$ and $28.5\%$ , $42.9\%$ while receiving competitive accuracy or even higher accuracy i.e., FM-Eb0+GTR+ITP@ $20\%$ improves PAMPJPE compared with the baseline.
Table 5. Comparison with the SOTA methods for monocular 3D human mesh recovery on 3DPW [68] and Human3.6M [23].
<table><tr><td rowspan="2">Method</td><td colspan="3">3DPW</td><td colspan="2">Human3.6M</td></tr><tr><td>MPVE</td><td>MPJPE</td><td>PAMPJPE</td><td>MPJPE</td><td>PAMPJPE</td></tr><tr><td>HMR [25]</td><td>-</td><td>130.0</td><td>76.7</td><td>88.0</td><td>56.8</td></tr><tr><td>GraphCMR [32]</td><td>-</td><td>-</td><td>70.2</td><td>-</td><td>50.1</td></tr><tr><td>SPIN [30]</td><td>116.4</td><td>96.9</td><td>59.2</td><td>62.5</td><td>41.1</td></tr><tr><td>I2LMeshNet [50]</td><td>-</td><td>93.2</td><td>57.7</td><td>55.7</td><td>41.1</td></tr><tr><td>PyMAF [83]</td><td>110.1</td><td>92.8</td><td>58.9</td><td>57.7</td><td>40.5</td></tr><tr><td>ROMP-R50 [64]</td><td>105.6</td><td>89.3</td><td>53.5</td><td>-</td><td>-</td></tr><tr><td>PARE-R50 [29]</td><td>99.7</td><td>82.9</td><td>52.3</td><td>-</td><td>-</td></tr><tr><td>DSR-R50 [13]</td><td>99.5</td><td>85.7</td><td>51.7</td><td>60.9</td><td>40.3</td></tr><tr><td>METRO-R50 [39]</td><td>-</td><td>-</td><td>-</td><td>56.5</td><td>40.6</td></tr><tr><td>METRO-H64 [39]</td><td>88.2</td><td>77.1</td><td>47.9</td><td>54.0</td><td>36.7</td></tr><tr><td>METRO-H64+GTR</td><td>87.9</td><td>75.5</td><td>46.6</td><td>57.6</td><td>37.1</td></tr><tr><td>FastMETRO-R50 [8]</td><td>90.6</td><td>77.9</td><td>48.3</td><td>53.9</td><td>37.3</td></tr><tr><td>FastMETRO-R50+GTR+ITP@20%</td><td>99.2</td><td>82.4</td><td>52.3</td><td>59.8</td><td>40.5</td></tr><tr><td>FastMETRO-H64 [8]</td><td>84.1</td><td>73.5</td><td>44.6</td><td>52.2</td><td>33.7</td></tr><tr><td>FastMETRO-H64+GTR+ITP@20%</td><td>88.2</td><td>72.3</td><td>44.4</td><td>59.6</td><td>36.4</td></tr><tr><td>FastMETRO-Eb0 [8]</td><td>112.5</td><td>93.8</td><td>60.2</td><td>69.2</td><td>45.8</td></tr><tr><td>FastMETRO-Eb0+GTR+ITP@20%</td><td>112.5</td><td>93.7</td><td>60.1</td><td>63.2</td><td>43.9</td></tr></table>
In addition, we find that ITP helps improve the accuracy on the challenging in-the-wild 3DPW [68] dataset, shown in Table 3. Specifically, when further equipped with ITP, the model performance in MPVE, MPJPE and PAMPJPE are improved by $3.1\mathrm{mm}$ , $3.1\mathrm{mm}$ and $2.3\mathrm{mm}$ , respectively.
Table 4. Statistics of all proposed components (GTR + ITP) for Encoder-Decoder structure FastMETRO (FM) [8] on Human3.6M [23]. The backbones are EfficientNet-b0 (Eb0) [65] and ResNet-50 (R50) [20]. GFLOPs $^{\mathrm{T}}$ stands for GFLOPs of the Transformer.
<table><tr><td>Method + Pruning Rate</td><td>#Tokens</td><td>GFLOPs ↓</td><td>GFLOPsT ↓</td><td>Throughput (im/s) ↑</td><td>PAMPJPE ↓</td></tr><tr><td>FM-R50+GTR</td><td>49</td><td>5.4</td><td>0.7</td><td>805.3</td><td>38.6</td></tr><tr><td>FM-R50+GTR+ITP@20%</td><td>39</td><td>5.3 (-1.8%)</td><td>0.6 (-14.3%)</td><td>794.7 (-1.3%)</td><td>40.5 (+4.9%)</td></tr><tr><td>FM-R50+GTR+ITP@50%</td><td>24</td><td>5.1 (-5.5%)</td><td>0.5 (-28.5%)</td><td>806.1 (+0.1%)</td><td>40.7 (+5.4%)</td></tr><tr><td>FM-Eb0+GTR</td><td>49</td><td>1.7</td><td>0.7</td><td>870.5</td><td>44.2</td></tr><tr><td>FM-Eb0+GTR+ITP@20%</td><td>39</td><td>1.6 (-5.9%)</td><td>0.6 (-14.3%)</td><td>876.3 (+0.7%)</td><td>43.9 (-0.%)</td></tr><tr><td>FM-Eb0+GTR+ITP@50%</td><td>24</td><td>1.4 (-17.6%)</td><td>0.4 (-42.9%)</td><td>870.4 (-0.1%)</td><td>44.0 (-0.5%)</td></tr></table>

 Figure 4. Qualitative results of FastMETRO+GTP+ITP@20% on Human3.6M [23] and 3DPW [68].






These results indicate that the ITP module learns more discriminative features and thus enhances the capability of generalization, allowing methods with ITP to achieve better performance in more challenging in-the-wild scenarios. The strong representation capability of ITP can also be seen in the clustering process, which promotes competitive accuracy with fewer tokens while producing semantically meaningful clustering results, as demonstrated in Sec. 4.7.1.
We conduct comparisons with existing SOTA approaches (both Transformer and Non-Transformer based) on monocular human mesh recovery. The results are summarized in Table 5. It is notable that, with effective token reduction techniques, our method produces competitive or higher accuracy on Human3.6M [23] and 3DPW [68] datasets. For instance, on 3DPW, our METRO-H64+GTR achieves $87.9\mathrm{mm}$ MPVE, $75.5\mathrm{mm}$ MPJPE and $46.6\mathrm{mm}$ PAMPJPE surpassing METRO-H64. In general, token reduction results in information loss, which leads to a slight drop in accuracy. For MPVE, using an HRNet-W64 backbone, GTR typically causes a larger error increase of $2.6\mathrm{mm}$ (from 84.1 to 86.7), while ITP is 1.5 mm (from 86.7 to 88.2). This suggests GTR sacrifices more accuracy for efficiency, while ITP has less impact. Qualitative results of FastMETRO+GTR+ITP@20% are visualized in Figure 4, where our method produces accurate and robust human mesh recovery from monocular images. In the inset, we also provide a qualitative comparison of FastMETRO+GTR+ITP@20% (w/ GTR+ITP) and the baseline model FastMETRO (w/o GTR+ITP),
where the joint-vertex attention is similar to the blending weights in SMPL, which properly captures the shape structure. However, the model w/o GTR+ITP redundantly correlates local joints with distant vertices, leading to additional interaction costs. In summary, extensive experiments validate the effectiveness of proposed strategies for token reduction across different
Transformer structures (Encoder- w/ GTR+ITP w/o GTR+ITP based METRO [39] and Encoder-Decoder-based Fast-METRO [8]) and different Transformer model sizes (Fast-METRO and FastMETRO(S)).
# 4.4. ITP v.s. TokenLearner [59]
Table 6. Comparison with TokenLearning [59] in ITP for token reduction on 3DPW [68] and Human3.6M [23].
<table><tr><td rowspan="2">Method</td><td rowspan="2">GFLOPs</td><td colspan="3">3DPW</td><td colspan="2">Human3.6M</td></tr><tr><td>MPVE</td><td>MPJPE</td><td>PAMPJPE</td><td>MPJPE</td><td>PAMPJPE</td></tr><tr><td>TokenLearner [59]</td><td>5.7</td><td>99.3</td><td>82.4</td><td>52.6</td><td>61.2</td><td>45.4</td></tr><tr><td>Image Token Pruning</td><td>5.3</td><td>99.2</td><td>82.4</td><td>52.3</td><td>59.8</td><td>40.5</td></tr></table>
We compare ITP with another popular pruning strategy Tokenlearner [59] for HMR on Human3.6M and 3DPW in Table 6. We use Encoder-Decoder structure [8] with ResNet-50 [20] as a backbone. The pruning rate is $20\%$ . In





 Figure 5. Qualitative results on FreiHAND [85] by FastMETRO+H64+GTR+ITP@20% model.



Table 8, ITP saves more computational costs while achieving the highest accuracy in terms of both human mesh recovery and joint estimation.
# 4.5. NSR v.s. GCN [27] and MLP
We discuss the effectiveness of NSR in GTR. We compare NSR with other implementations, including MultiLayer Perceptron and Graph Convolutional Network [27] following Pose2Mesh [9]. We condition the backbone on ResNet-50 [20] using Encoder-Decoder structure [8]. In Table 7, NSR achieves higher performance on Human3.6M and 3DPW. This indicates that the attention mechanism in NSR provides a stronger modeling capability of vertices given the learned body features, which thus improves the quality of recovered mesh vertices.
Table 7. Comparison of different network structures of NSR for GTR on 3DPW [68] and Human3.6M [23].
<table><tr><td rowspan="2">Model</td><td colspan="3">3DPW</td><td colspan="2">Human3.6M</td></tr><tr><td>MPVE</td><td>MPJPE</td><td>PAMPJPE</td><td>MPJPE</td><td>PAMPJPE</td></tr><tr><td>Multi-Layer Perceptron</td><td>99.0</td><td>80.4</td><td>49.6</td><td>57.7</td><td>38.9</td></tr><tr><td>Graph Convolutional Network</td><td>98.8</td><td>81.5</td><td>49.8</td><td>58.2</td><td>38.8</td></tr><tr><td>Neural Shape Regressor</td><td>95.9</td><td>79.2</td><td>49.2</td><td>57.2</td><td>38.6</td></tr></table>
# 4.6. Generalization on Hand Mesh Recovery
To investigate the generalizability of our framework, we conduct an experiment on monocular hand mesh recovery, which is summarized in Table 8. Following FastMETRO [8], we report PAMPJPE, F-score@15mm (F@15mm) on FreiHand [85] together with GFLOPs $^{\mathrm{T}}$ and throughput. The qualitative results are provided in Figure 5. The hand vertex-joint interactions are visualized in Appendix C.
# 4.7. Further Discussion
# 4.7.1 Analysis of Image Token Pruning
Image Token Pruning, in essence, achieves body-aware clustering results encoding discriminative body features.
Table 8. Comparison with the SOTA methods on hand mesh recovery on FreiHAND [85].
<table><tr><td>Method</td><td colspan="4">\( \mathrm{{GFLOPs}}{}^{\mathrm{T}} \downarrow \) Throughput \( \uparrow \) PAMPJPE \( \downarrow \mathrm{F}@{15}\mathrm{\;{mm}} \uparrow \)</td></tr><tr><td>METRO-H64 [39]</td><td>13.1</td><td>186.7</td><td>6.8</td><td>0.981</td></tr><tr><td>FastMETRO-H64 [8]</td><td>3.3</td><td>228.4</td><td>6.5</td><td>0.982</td></tr><tr><td>FastMETRO-H64+GTR+ITP@20%</td><td>1.0</td><td>260.2</td><td>6.7</td><td>0.980</td></tr></table>
 Figure 6. Visualization of learned semantics by ITP. Note that the clustering results are consistent across different identities, i.e., different clusters correspond to different body joints.
We visualize the heatmap of the predicted clustering scores in Figure 6, where the model is with ITP at $50\%$ pruning rate (resulting in 24 image tokens) and GTR. The backbone is ResNet-50. As shown in Figure 6, clustering-based pruning maps original tokens to a fewer number of clusters with semantics corresponding to the body joints. Note that the semantics is consistent across different identities.
# 4.7.2 ITP with Token Reduction Supervision
In Figure 7, we visualize the scores predicted by ITP in HMR. The mask supervision is generated by projecting mesh vertices to image patches using estimated camera parameters as shown in Figure 7 (b)(c). ITP effectively learns to pay attention to a human body region in the given image. Quantitatively, the projection supervision improves PAM
 Figure 7. Visualization of learned semantics by Image Token Pruner. (a) projected joints. (b) projected mesh vertices. (c) mask supervision. (d) scores predicted by ITP.
 Input R-Elbow R-Knee L-Elbow L-Knee Head Figure 8. Visualization of cross-attention between joint and vertices. Samples are from Human3.6M and 3DPW.
PJPE from 41.6 to 40.6 on Human3.6M.
# 4.7.3 Vertex-Body Feature Interactions
We show the interactions between vertices and joints modeled by cross attention within Neural Shape Regressor; See Figure 8, where the heatmap is obtained by averaging attention scores across all heads of the multi-head cross-attention between query vertices and body features. As shown in Figure 8, the interactions of mesh vertices and joints are at the body part level, e.g., elbow, knee, head, which are similar to the way of the blending of a human body model, i.e., SMPL [44] and thus validates our claims.
# 4.8. Limitations and Future Work
When an extremely high pruning rate is applied to ITP, the accuracy of the model drops dramatically, e.g., when the token number is pruned to be one, the accuracy of the model drops dramatically (12.1%) from 38.6 to 43.3 PAMPJPE. For GTR, since we regress joints and vertices progressively, the quality of the recovered vertices by NSR depends on the learned body features. More failure cases are in Appendix D. In future work, one of the promising directions could be applying the shown enhanced efficiency of
HMR from monocular images to methods exhibiting high complexity for improving the model efficiency, especially in tasks such as human-environment/object interaction that perceives environments [37, 22, 18, 75, 73, 19, 61], as well as HMR from videos that involve temporal information [28, 53, 35, 63, 79, 72].
# 5. Conclusion
In this paper, we investigate the issues of token redundancy in the existing Transformer-based methods for both body and hand mesh recovery tasks. To tackle the problem, we introduce two effective token reduction strategies for Transformers by incorporating insights from both 3D geometry structure and 2D image features. Specifically, we recover the body shape in a hierarchical manner and cluster for image features to feed fewer but more discriminative tokens to the Transformer. Our method dramatically reduces the high-complexity interactions in the Transformer, improving the Pareto-front of accuracy and efficiency. Extensive experiments validate the proposed strategies.
# 6. Acknowledgements
The authors would like to thank Gene Team for the fruitful discussion and the anonymous reviewers for their valuable comments and suggestions. This research is supported by Meta Reality Labs, Innovation and Technology Commission (Ref: ITS/319/21FP) and Research Grant Council (Ref: 17210222).
# References
[1] Mykhaylo Andriluka, Leonid Pishchulin, Peter Gehler, and Bernt Schiele. 2d human pose estimation: New benchmark and state of the art analysis. In Proceedings of the IEEE Conference on computer Vision and Pattern Recognition, pages 3686-3693, 2014. [2] Paolo Baerlocher and Ronan Boulic. Parametrization and range of motion of the ball-and-socket joint. In Deformable avatars, pages 180–190. Springer, 2001. [3] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. [4] Federica Bogo, Angjoo Kanazawa, Christoph Lassner, Peter Gehler, Javier Romero, and Michael J Black. Keep it smpl: Automatic estimation of 3d human pose and shape from a single image. In European conference on computer vision, pages 561-578. Springer, 2016. [5] Zhongang Cai, Daxuan Ren, Ailing Zeng, Zhengyu Lin, Tao Yu, Wenjia Wang, Xiangyu Fan, Yang Gao, Yifan Yu, Liang Pan, et al. Humman: Multi-modal 4d human dataset for versatile sensing and modeling. In Computer Vision-ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part VII, pages 557-577. Springer, 2022.
[6] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European conference on computer vision, pages 213-229. Springer, 2020. [7] Xuanyao Chen, Zhijian Liu, Haotian Tang, Li Yi, Hang Zhao, and Song Han. Sparsevit: Revisiting activation sparsity for efficient high-resolution vision transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2061-2070, 2023. [8] Junhyeong Cho, Kim Youwang, and Tae-Hyun Oh. Cross-attention of disentangled modalities for 3d human mesh recovery with transformers. In European Conference on Computer Vision (ECCV), 2022. [9] Hongsuk Choi, Gyeongsik Moon, and Kyoung Mu Lee. Pose2mesh: Graph convolutional network for 3d human pose and mesh recovery from a 2d human pose. In European Conference on Computer Vision, pages 769-787. Springer, 2020. [10] MMHuman3D Contributors. Openmmlab 3d human parametric model toolbox and benchmark. https://github.com/open-mmlab/mmhuman3d, 2021. [11] Haoye Dong, Xiaodan Liang, Xiaohui Shen, Bochao Wang, Hanjiang Lai, Jia Zhu, Zhiting Hu, and Jian Yin. Towards multi-pose guided virtual try-on network. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9026-9035, 2019. [12] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. [13] Sai Kumar Dwivedi, Nikos Athanasiou, Muhammed Kocabas, and Michael J Black. Learning to regress bodies from images using differentiable semantic rendering. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11250-11259, 2021. [14] Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 12873-12883, 2021. [15] Chuang Gan, Yi Yang, Linchao Zhu, Deli Zhao, and Yueting Zhuang. Recognizing an action using its name: A knowledge-based approach. International Journal of Computer Vision, 120(1):61-77, 2016. [16] Ryan Grainger, Thomas Paniagua, Xi Song, and Tianfu Wu. Learning patch-to-cluster attention in vision transformer. arXiv preprint arXiv:2203.11987, 2022. [17] Yong Guo, Zhiyang Dou, Nan Zhang, Xiyue Liu, Boni Su, Yuguo Li, and Yinping Zhang. Student close contact behavior and COVID-19 transmission in China's classrooms. PNAS Nexus, 2(5):pgad142, 05 2023. [18] Mohamed Hassan, Vasileios Choutas, Dimitrios Tzionas, and Michael J Black. Resolving 3d human pose ambiguities with 3d scene constraints. In Proceedings of the IEEE/CVF international conference on computer vision, pages 2282-2292, 2019. [19] Mohamed Hassan, Partha Ghosh, Joachim Tesch, Dimitrios Tzionas, and Michael J Black. Populating 3d scenes
by learning human-scene interaction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14708-14718, 2021. [20] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. [21] Dan Hendrycks and Kevin Gimpel. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415, 2016. [22] Chun-Hao P Huang, Hongwei Yi, Markus Höschle, Matvey Safroshkin, Tsvetelina Alexiadis, Senya Polikovsky, Daniel Scharstein, and Michael J Black. Capturing and inferring dense full-body human-scene contact. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13274-13285, 2022. [23] Catalin Ionescu, Dragos Papava, Vlad Olaru, and Cristian Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE transactions on pattern analysis and machine intelligence, 36(7):1325-1339, 2013. [24] Angjoo Kanazawa, Michael J. Black, David W. Jacobs, and Jitendra Malik. End-to-end recovery of human shape and pose. In Computer Vision and Pattern Recognition (CVPR), 2018. [25] Angjoo Kanazawa, Michael J Black, David W Jacobs, and Jitendra Malik. End-to-end recovery of human shape and pose. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7122-7131, 2018. [26] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR (Poster), 2015. [27] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. [28] Muhammed Kocabas, Nikos Athanasiou, and Michael J Black. Vibe: Video inference for human body pose and shape estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5253-5263, 2020. [29] Muhammed Kocabas, Chun-Hao P Huang, Otmar Hilliges, and Michael J Black. Pare: Part attention regressor for 3d human body estimation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11127-11137, 2021. [30] Nikos Kolotouros, Georgios Pavlakos, Michael J Black, and Kostas Daniilidis. Learning to reconstruct 3d human pose and shape via model-fitting in the loop. In ICCV, 2019. [31] Nikos Kolotouros, Georgios Pavlakos, Michael J Black, and Kostas Daniilidis. Learning to reconstruct 3d human pose and shape via model-fitting in the loop. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2252-2261, 2019. [32] Nikos Kolotouros, Georgios Pavlakos, and Kostas Dani-ilidis. Convolutional mesh regression for single-image human shape reconstruction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4501-4510, 2019. [33] Zhenglun Kong, Peiyan Dong, Xiaolong Ma, Xin Meng, Wei Niu, Mengshu Sun, Xuan Shen, Geng Yuan, Bin Ren,
Hao Tang, et al. Spvit: Enabling faster vision transformers via latency-aware soft token pruning. In Computer Vision-ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XI, pages 620-640. Springer, 2022. [34] Christoph Lassner, Javier Romero, Martin Kiefel, Federica Bogo, Michael J Black, and Peter V Gehler. Unite the people: Closing the loop between 3d and 2d human representations. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6050-6059, 2017. [35] Gun-Hee Lee and Seong-Whan Lee. Uncertainty-aware human mesh recovery from video by learning part-based 3d dynamics. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12375–12384, 2021. [36] Jiefeng Li, Chao Xu, Zhicun Chen, Siyuan Bian, Lixin Yang, and Cewu Lu. Hybrik: A hybrid analytical-neural inverse kinematics solution for 3d human pose and shape estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3383-3393, 2021. [37] Zhi Li, Soshi Shimada, Bernt Schiele, Christian Theobalt, and Vladislav Golyanik. Mocapdeform: Monocular 3d human motion capture in deformable scenes. In 2022 International Conference on 3D Vision (3DV), pages 1-11. IEEE, 2022. [38] Youwei Liang, Chongjian Ge, Zhan Tong, Yibing Song, Jue Wang, and Pengtao Xie. Not all patches are what you need: Expediting vision transformers via token reorganizations. arXiv preprint arXiv:2202.07800, 2022. [39] Kevin Lin, Lijuan Wang, and Zicheng Liu. End-to-end human pose and mesh reconstruction with transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1954-1963, 2021. [40] Kevin Lin, Lijuan Wang, and Zicheng Liu. Mesh graphomer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12939-12948, 2021. [41] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. [42] Xiyue Liu, Zhiyang Dou, Lei Wang, Boni Su, Tianyi Jin, Yong Guo, Jianjian Wei, and Nan Zhang. Close contact behavior-based Covid-19 transmission and interventions in a subway system. Journal of Hazardous Materials, 436:129233, 2022. [43] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10012-10022, 2021. [44] Matthew Loper, Naureen Mahmood, Javier Romero, Gerard Pons-Moll, and Michael J Black. Smpl: A skinned multiperson linear model. ACM transactions on graphics (TOG), 34(6):1-16, 2015. [45] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2018.
[46] Haoyu Ma, Liangjian Chen, Deying Kong, Zhe Wang, Xingwei Liu, Hao Tang, Xiangyi Yan, Yusheng Xie, Shih-Yao Lin, and Xiaohui Xie. Transfusion: Cross-view fusion with transformer for 3d human pose estimation. arXiv preprint arXiv:2110.09554, 2021. [47] Haoyu Ma, Zhe Wang, Yifei Chen, Deying Kong, Liangjian Chen, Xingwei Liu, Xiangyi Yan, Hao Tang, and Xiaohui Xie. Ppt: token-pruned pose transformer for monocular and multi-view human pose estimation. In ECCV, 2022. [48] Dushyant Mehta, Oleksandr Sotnychenko, Franziska Mueller, Weipeng Xu, Srinath Sridhar, Gerard Pons-Moll, and Christian Theobalt. Single-shot multi-person 3d pose estimation from monocular rgb. In 2018 International Conference on 3D Vision (3DV), pages 120-130. IEEE, 2018. [49] Lingchen Meng, Hengduo Li, Bor-Chun Chen, Shiyi Lan, Zuxuan Wu, Yu-Gang Jiang, and Ser-Nam Lim. Adavit: Adaptive vision transformers for efficient image recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12309-12318, 2022. [50] Gyeongsik Moon and Kyoung Mu Lee. I2l-meshnet: Image-to-lixel prediction network for accurate 3d human pose and mesh estimation from a single rgb image. In European Conference on Computer Vision, pages 752-768. Springer, 2020. [51] Paschalis Panteleris and Antonis Argyros. Pe-former: Pose estimation transformer. In International Conference on Pattern Recognition and Artificial Intelligence, pages 3-14. Springer, 2022. [52] Georgios Pavlakos, Nikos Kolotouros, and Kostas Daniilidis. Texturepose: Supervising human mesh estimation with texture consistency. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 803-812, 2019. [53] Georgios Pavlakos, Jitendra Malik, and Angjoo Kanazawa. Human mesh recovery from multiple shots. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1485-1495, 2022. [54] Georgios Pavlakos, Luyang Zhu, Xiaowei Zhou, and Kostas Daniilidis. Learning to estimate 3d human pose and shape from a single color image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 459-468, 2018. [55] Leonid Pishchulin, Eldar Insafutdinov, Siyu Tang, Bjoern Andres, Mykhaylo Andriluka, Peter V Gehler, and Bernt Schiele. Deepcut: Joint subset partition and labeling for multi person pose estimation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4929-4937, 2016. [56] Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu, Jie Zhou, and Cho-Jui Hsieh. Dynamicvit: Efficient vision transformers with dynamic token sparsification. Advances in neural information processing systems, 34:13937-13949, 2021. [57] Javier Romero, Dimitrios Tzionas, and Michael J. Black. Embodied hands: Modeling and capturing hands and bodies together. ACM Transactions on Graphics, (Proc. SIGGRAPH Asia), 36(6), Nov. 2017.
[58] Yu Rong, Jingbo Wang, Ziwei Liu, and Chen Change Loy. Monocular 3d reconstruction of interacting hands via collision-aware factorized refinements. In 2021 International Conference on 3D Vision (3DV), pages 432-441. IEEE, 2021. [59] Michael Ryoo, AJ Piergiovanni, Anurag Arnab, Mostafa Dehghani, and Anelia Angelova. Tokenlearner: Adaptive space-time tokenization for videos. 2021. [60] Akash Sengupta, Ignas Budvytis, and Roberto Cipolla. Hierarchical kinematic probability distributions for 3d human shape and pose estimation from images in the wild. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11219-11229, 2021. [61] Zehong Shen, Zhi Cen, Sida Peng, Qing Shuai, Hujun Bao, and Xiaowei Zhou. Learning human mesh recovery in 3d scenes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 17038-17047, 2023. [62] Deepak Sridhar, Niamul Quader, Srikanth Muralidharan, Yaoxin Li, Peng Dai, and Juwei Lu. Class semantics-based attention for action detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 13739-13748, 2021. [63] Zhaoqi Su, Weilin Wan, Tao Yu, Lingjie Liu, Lu Fang, Wenping Wang, and Yebin Liu. Mulaycap: Multi-layer human performance capture using a monocular video camera. IEEE Transactions on Visualization and Computer Graphics, 28(4):1862-1879, 2020. [64] Yu Sun, Qian Bao, Wu Liu, Yili Fu, Michael J Black, and Tao Mei. Monocular, one-stage, regression of multiple 3d people. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11179-11188, 2021. [65] Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pages 6105-6114. PMLR, 2019. [66] Yating Tian, Hongwen Zhang, Yebin Liu, and Limin Wang. Recovering 3d human mesh from monocular images: A survey. arXiv preprint arXiv:2203.01923, 2022. [67] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998-6008, 2017. [68] Timo von Marcard, Roberto Henschel, Michael Black, Bodo Rosenhahn, and Gerard Pons-Moll. Recovering accurate 3d human pose in the wild using imus and a moving camera. In European Conference on Computer Vision (ECCV), sep 2018. [69] Jingbo Wang, Yu Rong, Jingyuan Liu, Sijie Yan, Dahua Lin, and Bo Dai. Towards diverse and natural scene-aware 3d human motion synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 20460-20469, 2022. [70] Jingdong Wang, Ke Sun, Tianheng Cheng, Borui Jiang, Chaorui Deng, Yang Zhao, Dong Liu, Yadong Mu, Mingkui Tan, Xinggang Wang, et al. Deep high-resolution representation learning for visual recognition. IEEE transactions
on pattern analysis and machine intelligence, 43(10):3349-3364, 2020. [71] Wenjia Wang, Yongtao Ge, Haiyi Mei, Zhongang Cai, Qingping Sun, Yanjun Wang, Chunhua Shen, Lei Yang, and Taku Komura. Zolly: Zoom focal length correctly for perspective-distorted human mesh reconstruction. arXiv preprint arXiv:2303.13796, 2023. [72] Wen-Li Wei, Jen-Chun Lin, Tyng-Luh Liu, and Hong-Yuan Mark Liao. Capturing humans in motion: Temporal-attentive 3d human pose and shape estimation from monocular video. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13211–13220, 2022. [73] Qiangqiang Wu, Jia Wan, and Antoni B. Chan. Progressive unsupervised learning for visual object tracking. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2993-3002, June 2021. [74] Qiangqiang Wu, Tianyu Yang, Ziquan Liu, Baoyuan Wu, Ying Shan, and Antoni B. Chan. Dropmae: Masked autoencoders with spatial-attention dropout for tracking tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14561-14571, June 2023. [75] Yan Xia, Qiangqiang Wu, Wei Li, Antoni B Chan, and Uwe Stilla. A lightweight and detector-free 3d single object tracker on point clouds. IEEE Transactions on Intelligent Transportation Systems, 2023. [76] Yan Xia, Yusheng Xu, Shuang Li, Rui Wang, Juan Du, Daniel Cremers, and Uwe Stilla. Soe-net: A self-attention and orientation encoding network for point cloud based place recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11348–11357, 2021. [77] Yuanlu Xu, Song-Chun Zhu, and Tony Tung. Denserac: Joint 3d pose and shape estimation by dense render-and-compare. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 7760-7770, 2019. [78] Li Yuan, Yunpeng Chen, Tao Wang, Weihao Yu, Yujun Shi, Zi-Hang Jiang, Francis EH Tay, Jiashi Feng, and Shuicheng Yan. Tokens-to-token vit: Training vision transformers from scratch on imagenet. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 558-567, 2021. [79] Ye Yuan, Umar Iqbal, Pavlo Molchanov, Kris Kitani, and Jan Kautz. Glamr: Global occlusion-aware human mesh recovery with dynamic cameras. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11038-11049, 2022. [80] Wang Zeng, Sheng Jin, Wentao Liu, Chen Qian, Ping Luo, Wanli Ouyang, and Xiaogang Wang. Not all tokens are equal: Human-centric visual analysis via token clustering transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11101-11111, 2022. [81] Yuanhao Zhai, Le Wang, Wei Tang, Qilin Zhang, Junsong Yuan, and Gang Hua. Two-stream consensus network for weakly-supervised temporal action localization. In Euro-
pean conference on computer vision, pages 37-54. Springer, 2020. [82] Hongwen Zhang, Yating Tian, Xinchi Zhou, Wanli Ouyang, Yebin Liu, Limin Wang, and Zhenan Sun. Pymaf: 3d human pose and shape regression with pyramidal mesh alignment feedback loop. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11446-11456, 2021. [83] Hongwen Zhang, Yating Tian, Xinchi Zhou, Wanli Ouyang, Yebin Liu, Limin Wang, and Zhenan Sun. Pymaf: 3d human pose and shape regression with pyramidal mesh alignment feedback loop. In Proceedings of the IEEE International Conference on Computer Vision, 2021. [84] Nan Zhang, Li Liu, Zhiyang Dou, Xiyue Liu, Xueze Yang, Doudou Miao, Yong Guo, Silan Gu, Yuguo Li, Hua Qian, and Jianjian Wei. Close contact behaviors of university and school students in 10 indoor environments. Journal of Hazardous Materials, 458:132069, 2023. [85] Christian Zimmermann, Duygu Ceylan, Jimei Yang, Bryan Russell, Max Argus, and Thomas Brox. Freihand: A dataset for markerless capture of hand pose and shape from single rgb images. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 813-822, 2019.123version https://git-lfs.github.com/spec/v1oid sha256:6a1fa2c55c4b95733442a609afe7920b99f4eb1e4c74b18d782bec22cdc966c7size 79736012345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922[ { "type": "text", "text": "TRM-UAP: Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization", "text_level": 1, "bbox": [ 91, 128, 879, 174 ], "page_idx": 0 }, { "type": "text", "text": "Yiran Liu, Xin Feng, Yunlong Wang, Wu Yang, Di Ming* \nSchool of Computer Science and Engineering, Chongqing University of Technology \nChongqing, China", "bbox": [ 151, 203, 815, 256 ], "page_idx": 0 }, { "type": "text", "text": "lyrl99804@qq.com, {xfeng, ylwang, yangwu, diming}@cqut.edu.cn", "bbox": [ 215, 258, 754, 273 ], "page_idx": 0 }, { "type": "text", "text": "Abstract", "text_level": 1, "bbox": [ 233, 308, 313, 325 ], "page_idx": 0 }, { "type": "text", "text": "Aiming at crafting a single universal adversarial perturbation (UAP) to fool CNN models for various data samples, universal attack enables a more efficient and accurate evaluation for the robustness of CNN models. Early universal attacks craft UAPs depending on data priors. For more practical applications, the data-free universal attacks that make UAPs from random noises have aroused much attention recently. However, existing data-free UAP methods perturb all the CNN feature layers equally via the maximization of the CNN activation, leading to poor transferability. In this paper, we propose a novel data-free universal attack without depending on any real data samples through truncated ratio maximization, which we term as TRM-UAP. Specifically, different from the maximization of the positive activation in convolution layers, we propose to optimize the UAP generation from the ratio of positive and negative activations. To further enhance the transferability of universal attack, TRM-UAP not only performs the ratio maximization merely on low-level generic features via the truncation strategy, but also incorporates a curriculum optimization algorithm that can effectively learn the diversity of artificial images. Extensive experiments on the ImageNet dataset verify that TRM-UAP achieves a state-of-the-art average fooling rate and excellent transferability on different CNN models as compared to other data-free UAP methods. Code is available at https://github.com/RandolphCarter0/TRMUAP.", "bbox": [ 76, 340, 472, 750 ], "page_idx": 0 }, { "type": "text", "text": "1. Introduction", "text_level": 1, "bbox": [ 76, 777, 209, 792 ], "page_idx": 0 }, { "type": "text", "text": "Early research [26] shows that tiny and imperceptible perturbations can seriously disturb the prediction results of deep neural networks (DNNs), especially for image recognition tasks [3]. Adversarial Examples (AEs), crafted by adding tiny perturbations deliberately to benign samples,", "bbox": [ 76, 801, 468, 878 ], "page_idx": 0 }, { "type": "text", "text": "are not only imperceptible in computer vision tasks but also prone to transfer among the DNN models. Therefore, AEs have been regarded as a serious threat to DNN models since the development of deep learning [1].", "bbox": [ 500, 310, 890, 369 ], "page_idx": 0 }, { "type": "text", "text": "To explore the impact of AEs, many methods are proposed to craft the adversarial perturbation that is highly transferable to various DNN models (i.e., with a high fooling rate on other DNN models). However, the AEs generated by these works are explicitly designed for some specific samples and often fail to perturb other samples that are even from the same dataset. Different from the aforementioned image-specific attack, the universal attack that generates image-agnostic universal adversarial perturbation (UAP) was proposed in [16]. The UAP in a universal attack setting is trained from prior knowledge, such as substitute data, surrogate model, etc. By adding the UAP to benign samples, universal attacks can generate numerous AEs all together in a very short period. Furthermore, the universal attack can fool most DNN models that are trained from similar datasets, and can greatly reduce the computational cost of crafting AEs, making adversaries more applicable to real scenarios than the image-specific attacks [4, 6, 34].", "bbox": [ 496, 371, 892, 643 ], "page_idx": 0 }, { "type": "text", "text": "Whereas, no matter the image-specific attacks or the universal attacks, well-annotated training data (e.g., [21, 9, 7]) or substitute data (e.g., [16, 12, 22, 19]) is required to generate AEs. In practice, obtaining a well-labeled large-scale dataset is challenging and costly, especially for some applications with critical security demand, where less prior knowledge is available. Recently, researchers have investigated data-free universal attack methods [18, 17, 14, 20, 33], where AEs are generated directly from random noises rather than data priors. Compared with previous methods that disturb the gradient or maximize the classification loss in data-dependent scenarios, current data-free UAP methods explore the feature-based perturbation, which tries to maximize the activation (e.g., ReLU) of convolutional neural network (CNN) features. It is shown that feature-based UAP methods achieved highly efficient and applicable universal attack without using any data priors [4, 6, 34]. How", "bbox": [ 496, 643, 893, 901 ], "page_idx": 0 }, { "type": "header", "text": "CVF", "bbox": [ 106, 2, 181, 42 ], "page_idx": 0 }, { "type": "header", "text": "This ICCV paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore.", "bbox": [ 238, 0, 805, 46 ], "page_idx": 0 }, { "type": "page_footnote", "text": "*Corresponding Author: Di Ming", "bbox": [ 94, 886, 276, 900 ], "page_idx": 0 }, { "type": "page_number", "text": "4762", "bbox": [ 482, 944, 516, 955 ], "page_idx": 0 }, { "type": "text", "text": "ever, current data-free UAP methods only consider the positive activation [18, 17] and perturb all layers of CNN features equally [20, 14]. As a result, UAPs crafted by surrogate models are hard to transfer to target models [6, 34].", "bbox": [ 75, 90, 468, 151 ], "page_idx": 1 }, { "type": "text", "text": "Towards enhancing the transferability of data-free UAPs, we propose a novel data-free universal attack method called TRM-UAP, which formulates the UAP generation as a truncated ratio maximization problem. In particular, TRM-UAP attempts to over-fire positive neurons so that extracted features from multiple CNN layers can be fully disrupted. Besides the maximization of positive neurons, the proper activation on negative neurons may also be helpful. Hence, TRM-UAP performs a ratio maximization of positive and negative activations, which facilitates some negative neurons transiting to be positive. Moreover, some feature-based adversarial attacks [29, 35] reveal that multiple layers of CNN features are not equally important for disturbing the image classification [11, 28]. To further improve the transferability of universal attack, TRM-UAP performs ratio maximization only on parts of CNN activation layers. Specifically, a truncation strategy is proposed to truncate the activation of high-level convolutions and retain the activation of shallow convolutions to train perturbations. The intuition is that low-level CNN features are shown to provide more generic (data-independent) feature representations than high-level semantic features [30]. Thus the disturbed low-level features are expected to be able to transfer attacks across different CNN models, leading to highly transferable UAPs. Furthermore, a curriculum learning [2] based optimization algorithm is introduced to utilize artificial images and explore the diversity of input.", "bbox": [ 75, 152, 472, 559 ], "page_idx": 1 }, { "type": "text", "text": "In general, the main contributions of our work can be summarized as follows:", "bbox": [ 76, 561, 468, 589 ], "page_idx": 1 }, { "type": "list", "sub_type": "text", "list_items": [ "- We propose a novel data-free universal attack method to craft image-agnostic adversarial perturbations without utilizing any real data samples during training.", "- To the best of our knowledge, we are the first to formulate the data-free universal attack as a truncated ratio maximization problem. The proposed TRM-UAP enhances the transferability of UAPs from three perspectives: (i) the maximization on CNN features for crafting UAPs is enhanced by both maximization of positive activation and minimization of negative activation. (ii) the ratio maximization on truncated feature layers improves the generalizability of universal attacks to CNN models. (iii) artificial images are incorporated into curriculum optimization algorithm to strengthen the UAP dominance on feature activations.", "- Extensive experiments on the ImageNet dataset show that TRM-UAP obtains the highest average fooling rate compared with other data-free UAP methods, indicating that truncated ratio maximization can greatly improve the transferability of universal attack." ], "bbox": [ 94, 594, 467, 898 ], "page_idx": 1 }, { "type": "text", "text": "2. Related Work", "text_level": 1, "bbox": [ 500, 89, 640, 106 ], "page_idx": 1 }, { "type": "text", "text": "Image-specific attacks: The attacks that try to craft perturbations for corresponding images by utilizing training or substitute data are termed as image-specific attacks. Typical image-specific attacks, such as Fast Gradient Sign Method (FGSM) [9], I-FGSM and MI-FGSM [7], Project Gradient Descent (PGD) [15], and Output Diversified Sampling (ODS) [27], etc., usually make use of the gradient information from well-trained target CNN model (i.e., white-box attack) or surrogate model (i.e., black-box attack) to disturb images. However, since gradient-based attacks often require a number of iterations, the computational cost of making AEs becomes extremely expensive as the number of examples increases. Recently, feature-based attacks that try to craft AEs from the perspective of CNN features have received broad concern [29, 8, 35]. For example, Neuron Attribution based Attack (NAA) [35] conducted feature-level attacks by deploying a neuron attribution method to estimate the importance of neurons at multiple CNN layers.", "bbox": [ 496, 114, 890, 385 ], "page_idx": 1 }, { "type": "text", "text": "Data-dependent universal attacks: The universal attack aims at training a single perturbation that is independent of any specific sample, i.e., UAP. By adding a single UAP to various benign samples, numerous AEs can be generated very efficiently. Until recently, most of the universal attacks are still data-dependent, meaning that the perturbations are learned from data priors, such as training data, substitute data, etc. For example, the primary universal attack [16] tried to seek a universal perturbation for a set of training samples. On the other hand, there are some works [22, 19] applying generative adversarial models to craft perturbations. Recently, Zhang et al. [32] proposed to generate UAPs by training perturbations on the proxy datasets.", "bbox": [ 496, 387, 890, 583 ], "page_idx": 1 }, { "type": "text", "text": "Data-free universal attacks: The data-free universal attack makes UAP via random noise rather than prior knowledge from data directly. It is considered the most applicable attack for real applications in the adversarial attack field. However, since the information of both data and target models is unknown, the data-free universal attack is extremely challenging and only a few recent works focus on it. Mopuri et al. [18] first propose a data-free universal attack, i.e., the Fast Feature Fool (FFF) method, by maximizing the feature activations across all the CNN layers. In addition, they further propose a Generalizable Data-free UAP (GDUAP) to improve the FFF attack via optimizing the UAP training process with a saturation check strategy [17]. Besides, AAA [20] learns a generative model to make UAPs based on the pre-defined class impression. However, as the number of image categories increases, the cost of acquiring class impressions will also broaden. Prior-Driven Uncertainty Approximation (PD-UA) [14] proposes to craft UAPs by maximizing the uncertainty approximation of the model. Cosine-UAP [33] introduces the cosine similarity to train UAPs in a self-supervised way. Because of the shortage of", "bbox": [ 496, 584, 890, 900 ], "page_idx": 1 }, { "type": "page_number", "text": "4763", "bbox": [ 482, 944, 514, 955 ], "page_idx": 1 }, { "type": "text", "text": "prior knowledge, current data-free UAP methods generally present poor transferability across various CNN models.", "bbox": [ 76, 90, 468, 121 ], "page_idx": 2 }, { "type": "text", "text": "3. Methodology", "text_level": 1, "bbox": [ 76, 133, 210, 150 ], "page_idx": 2 }, { "type": "text", "text": "In this section, we first introduce the motivation of maximizing the ratio of activations. After that, we present the details of the proposed truncated ratio maximization method to craft the UAP in a strictly data-free fashion.", "bbox": [ 76, 159, 468, 219 ], "page_idx": 2 }, { "type": "text", "text": "3.1. Preliminary", "text_level": 1, "bbox": [ 76, 228, 205, 243 ], "page_idx": 2 }, { "type": "text", "text": "To fool CNN models $f$ , UAP [16] tries to find the universal perturbation $\\pmb{v}$ which maximizes the classification loss $\\mathcal{L}$ (e.g., cross entropy) over the data distribution $\\mathbb{D}$ :", "bbox": [ 76, 251, 468, 296 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\max _ {\\boldsymbol {v} \\sim \\mathbb {S}} \\underset {(\\boldsymbol {x}, \\boldsymbol {y}) \\sim \\mathbb {D}} {\\mathbb {E}} [ \\mathcal {L} (f (\\boldsymbol {v} + \\boldsymbol {x}), \\boldsymbol {y})) ] \\quad \\text {s . t .} \\| \\boldsymbol {v} \\| _ {p} \\leq \\epsilon \\tag {1}\n$$\n", "text_format": "latex", "bbox": [ 94, 306, 468, 332 ], "page_idx": 2 }, { "type": "text", "text": "where $\\mathbb{S}$ is the perturbation space, $(\\pmb{x},\\pmb{y})$ are the data and the class label (or one-hot ground truth) sampled from $\\mathbb{D}$ , $f(\\cdot)$ is the output of CNN models, and $\\epsilon$ is the constant to constrain the perturbation $\\pmb{v}$ in the $\\ell_p$ -norm bound ( $e.g., p = 0,1,2,\\infty$ ). To be consistent with previous works [18, 17, 32], we adopt the $\\ell_{\\infty}$ -norm to realize the imperceptibility of perturbation for all analyzes throughout this paper.", "bbox": [ 76, 340, 468, 446 ], "page_idx": 2 }, { "type": "text", "text": "However, the training data of the target model is usually unavailable and hard to access, making the data-dependence approaches not suitable for practical adversarial attacks. As a consequence, Mopuri et al. [18] propose the Fast Feature Fool (FFF) method to maximize the CNN activations in a strictly data-free fashion:", "bbox": [ 75, 446, 468, 536 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\max _ {\\boldsymbol {v}} \\quad | | \\mathcal {A} ^ {(i)} (\\boldsymbol {v}) | | _ {2}, \\quad \\text {f o r} i = 1, 2, \\dots , L \\tag {2}\n$$\n", "text_format": "latex", "bbox": [ 129, 546, 468, 573 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\text {s . t .} \\quad | | \\boldsymbol {v} | | _ {\\infty} \\leq \\epsilon\n$$\n", "text_format": "latex", "bbox": [ 135, 569, 251, 583 ], "page_idx": 2 }, { "type": "text", "text": "where $\\mathcal{A}^{(i)}(\\pmb{v}) = \\mathrm{Activation}(\\mathcal{C}^{(i)}(\\pmb{v}))$ (e.g.,ReLU activation), $\\mathcal{C}^{(i)}(\\pmb{v})$ is the output of the $i$ -th convolution layer, and $L$ is the total number of convolution layers. It can be seen that this typical data-free universal attack method aims at accumulating the errors gradually through multiple convolution layers to enlarge the classification loss, finally leading to the misclassification of perturbed samples $\\pmb{v} + \\pmb{x}$ .", "bbox": [ 76, 593, 468, 700 ], "page_idx": 2 }, { "type": "text", "text": "3.2. Maximizing the Ratio of Activations", "text_level": 1, "bbox": [ 76, 709, 390, 724 ], "page_idx": 2 }, { "type": "text", "text": "Different from previous data-free universal methods [18, 17] that only maximize the activation of convolution layer (see Fig. 1 (a)), we propose to craft the universal adversarial perturbation $\\pmb{v}$ via maximizing the ratio of activations:", "bbox": [ 76, 732, 468, 792 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\max _ {\\boldsymbol {v}} \\frac {| | \\mathcal {C} _ {+} ^ {(i)} (\\boldsymbol {v}) | | _ {2}}{| | \\mathcal {C} _ {-} ^ {(i)} (\\boldsymbol {v}) | | _ {2}}, \\quad \\text {f o r} i = 1, 2, \\dots , L \\tag {3}\n$$\n", "text_format": "latex", "bbox": [ 127, 801, 468, 840 ], "page_idx": 2 }, { "type": "equation", "text": "\n$$\n\\text {s . t .} \\quad | | \\boldsymbol {v} | | _ {\\infty} \\leq \\epsilon\n$$\n", "text_format": "latex", "bbox": [ 135, 844, 251, 859 ], "page_idx": 2 }, { "type": "text", "text": "where positive activation and negative activation in $i$ -th convolution layer are defined as $\\mathcal{C}_{+}^{(i)}(\\pmb{v}) = \\max (\\mathcal{C}^{(i)}(\\pmb{v}),0)$ and", "bbox": [ 76, 868, 468, 901 ], "page_idx": 2 }, { "type": "image", "img_path": "images/cd4db687608d88f9c2802209819768be2d60e16af792fcbe04bb63b9ff227737.jpg", "image_caption": [ "Figure 1. The illustration of previous positive maximization [18, 17] and our proposed ratio maximization." ], "image_footnote": [], "bbox": [ 516, 90, 875, 281 ], "page_idx": 2 }, { "type": "text", "text": "$\\mathcal{C}_{-}^{(i)}(\\pmb {v}) = \\min (\\mathcal{C}^{(i)}(\\pmb {v}),0)$ respectively, and their magnitudes are measured by $\\ell_2$ -norm.", "bbox": [ 498, 333, 888, 364 ], "page_idx": 2 }, { "type": "text", "text": "Towards further enlarging the fooling probability, this ratio formulation (3) tries to increase the magnitude and the number of positive activation via maximizing positive activation and minimizing negative activation simultaneously. Specifically speaking, ratio maximization is a dynamic process. Firstly, minimizing the negative activation could lead to the change of sign in some negative features whose values are close to zero, i.e., jumping from a tiny negative value to a tiny positive value, as shown in Fig. 1 (b). Afterward, at the next iteration, maximizing the positive activation will continue to increase the magnitude of above-mentioned features from a tiny positive value to a large positive value.", "bbox": [ 496, 366, 890, 547 ], "page_idx": 2 }, { "type": "text", "text": "During training, with the decrease in the number of negative activation and the increase in the number of positive activation, our proposed formulation (3) can achieve a higher ratio of positive activation as compared to previous data-free universal attacks, e.g., the formulation (2). Meanwhile, it also indicates that our ratio maximization could craft the UAP with more significant attack intensity so as to increase the fooling probability further.", "bbox": [ 496, 547, 890, 669 ], "page_idx": 2 }, { "type": "text", "text": "3.3. Truncated Ratio Maximization", "text_level": 1, "bbox": [ 500, 680, 772, 694 ], "page_idx": 2 }, { "type": "text", "text": "Features extracted from shallow to deep convolution layers behave differently in crafting the adversarial perturbation. LAFEAT [31] analyzes the influence of each intermediate convolution layer on the misclassification, and attacks features only in a specific layer. On the other hand, GD-UAP [17] thoroughly studied the relative change in feature activations of adversarial examples as compared to original images at multiple CNN layers. However, GD-UAP attacks the feature activations extracted from all convolution layers together, without taking layer-wise feature patterns into consideration. According to [30], low-level features in shallow layers have generic patterns, while high-level features in deep layers have specific patterns. It can be seen that", "bbox": [ 496, 704, 890, 900 ], "page_idx": 2 }, { "type": "page_number", "text": "4764", "bbox": [ 480, 944, 514, 955 ], "page_idx": 2 }, { "type": "image", "img_path": "images/3d806e9afd92dc1567563c9adf926db09e929a69e828aaa62d22d4334f4e8c45.jpg", "image_caption": [ "Figure 2. Truncated positive and negative activation losses, where cumulative shaded areas are used to craft the UAP." ], "image_footnote": [], "bbox": [ 135, 90, 410, 267 ], "page_idx": 3 }, { "type": "text", "text": "not all convolution layers contribute positively to increasing the positive activation and the objective loss. Therefore, based on ratio maximization defined in formulation (3), we propose a truncated ratio maximization method to further enhance the intensity and the transferability of UAPs.", "bbox": [ 75, 325, 467, 400 ], "page_idx": 3 }, { "type": "text", "text": "For notational simplicity, we begin by defining the ratio maximization problem in $i$ -th convolution layer as $\\mathcal{L}^{(i)}(\\pmb{v}) = \\mathcal{L}_{+}^{(i)}(\\pmb{v}) / \\mathcal{L}_{-}^{(i)}(\\pmb{v})$ , where $\\mathcal{L}_{+}^{(i)}(\\pmb{v}) = ||\\mathcal{C}_{+}^{(i)}(\\pmb{v})||_{2}$ and $\\mathcal{L}_{-}^{(i)}(\\pmb{v}) = ||\\mathcal{C}_{-}^{(i)}(\\pmb{v})||_{2}$ . To maximize the ratio of activations in convolution layers altogether, the overall loss function of ratio maximization is reformulated as", "bbox": [ 76, 401, 467, 496 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} (\\boldsymbol {v}) = \\sum_ {i = 1} ^ {L} \\log \\mathcal {L} ^ {(i)} (\\boldsymbol {v}) \\tag {4}\n$$\n", "text_format": "latex", "bbox": [ 192, 501, 468, 542 ], "page_idx": 3 }, { "type": "text", "text": "where log rescales the activation to prevent gradient explosions. Different from other methods that craft UAPs based on all convolution layers or a specific convolution layer, we propose to truncate the computation of positive and negative activations in deep convolution layers, since specific feature patterns are not beneficial for improving the quality of UAPs. Assuming that the truncation rate $(TR)$ is defined as $TR = \\lfloor (L - l) / L\\rfloor \\%$ , we make truncation on $(l + 1)$ -th convolution layer by setting $\\mathcal{L}_{+}^{(i)}(\\pmb {v}) = \\tau$ $(i > l)$ and $\\mathcal{L}_{-}^{(i)}(\\pmb {v}) = \\tau$ $(i > l)$ , where $\\tau$ is a small positive number such as $1e - 9$ . As a result, $\\mathcal{L}(\\pmb {v})$ can be equivalently rewritten as $\\mathcal{L}(\\pmb {v}) = \\sum_{i = 1}^{L}\\log \\mathcal{L}^{(i)}(\\pmb {v}) = \\sum_{i = 1}^{l}\\log \\mathcal{L}^{(i)}(\\pmb {v})$", "bbox": [ 75, 549, 467, 738 ], "page_idx": 3 }, { "type": "text", "text": "However, $\\mathcal{L}_{+}^{(i)}(\\pmb{v})$ and $\\mathcal{L}_{-}^{(i)}(\\pmb{v})$ not only have different scales but also behave differently in various layers for maximizing the ratio loss, which could lead to a degradation of the attack performance. To resolve these problems, we first reformulate the ratio loss in $i$ -th convolution layer as", "bbox": [ 75, 739, 467, 816 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} _ {\\alpha} ^ {(i)} (\\boldsymbol {v}) = \\frac {\\mathcal {L} _ {+} ^ {(i)} (\\boldsymbol {v})}{(\\mathcal {L} _ {-} ^ {(i)} (\\boldsymbol {v})) ^ {\\alpha}}, \\tag {5}\n$$\n", "text_format": "latex", "bbox": [ 189, 823, 468, 864 ], "page_idx": 3 }, { "type": "text", "text": "where $\\alpha$ is a scaling hyperparameter to adjust the relative importance between positive and negative activation losses.", "bbox": [ 76, 869, 467, 900 ], "page_idx": 3 }, { "type": "image", "img_path": "images/cd1b9880d0864a22bc1b11b2a6e89447b521da93c5cfcf74790729c2e5b06279.jpg", "image_caption": [ "Figure 3. The mean positive activation loss in various convolution layers with different truncation settings." ], "image_footnote": [], "bbox": [ 532, 92, 851, 268 ], "page_idx": 3 }, { "type": "text", "text": "Secondly, positive and negative truncation rates are defined as $PTR = \\lfloor (L - l') / L \\rfloor \\%$ and $NTR = \\lfloor (L - l'') / L \\rfloor \\%$ respectively. That is to say, we make truncation on different layers for positive and negative activation losses by setting $\\mathcal{L}_{+}^{(i)}(\\pmb{v}) = \\tau (i > l')$ and $\\mathcal{L}_{-}^{(i)}(\\pmb{v}) = \\tau (i > l'')$ , see Fig. 2. Finally, the overall loss function $\\mathcal{L}(\\pmb{v})$ can be reduced to", "bbox": [ 498, 327, 890, 421 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\begin{array}{l} \\mathcal {L} (\\boldsymbol {v}) = \\sum_ {i = 1} ^ {L} \\log \\mathcal {L} _ {\\alpha} ^ {(i)} (\\boldsymbol {v}) \\\\ = \\sum_ {i = 1} ^ {l ^ {\\prime}} \\log \\mathcal {L} _ {+} ^ {(i)} (\\boldsymbol {v}) - \\alpha \\cdot \\sum_ {i = 1} ^ {l ^ {\\prime \\prime}} \\log \\mathcal {L} _ {-} ^ {(i)} (\\boldsymbol {v}) + c \\\\ \\propto \\sum_ {i = 1} ^ {l ^ {\\prime}} \\log \\mathcal {L} _ {+} ^ {(i)} (\\boldsymbol {v}) - \\alpha \\cdot \\sum_ {i = 1} ^ {l ^ {\\prime \\prime}} \\log \\mathcal {L} _ {-} ^ {(i)} (\\boldsymbol {v}), \\tag {6} \\\\ \\end{array}\n$$\n", "text_format": "latex", "bbox": [ 511, 430, 888, 517 ], "page_idx": 3 }, { "type": "text", "text": "where $c = ((1 - \\alpha)\\cdot L - l^{\\prime} + \\alpha \\cdot l^{\\prime \\prime})\\cdot \\log \\tau$ , i.e., a constant.", "bbox": [ 500, 517, 888, 532 ], "page_idx": 3 }, { "type": "text", "text": "Consequently, for data-free universal adversarial attack, we propose a truncated ratio maximization method (TRMUAP) to craft the perturbation $\\pmb{v}$ satisfying", "bbox": [ 498, 532, 888, 579 ], "page_idx": 3 }, { "type": "equation", "text": "\n$$\n\\begin{array}{l} \\max _ {\\boldsymbol {v}} \\sum_ {i = 1} ^ {l ^ {\\prime}} \\log \\left| \\left| \\mathcal {C} _ {+} ^ {(i)} (\\boldsymbol {v}) \\right| \\right| _ {2} - \\alpha \\cdot \\sum_ {i = 1} ^ {l ^ {\\prime \\prime}} \\log \\left| \\left| \\mathcal {C} _ {-} ^ {(i)} (\\boldsymbol {v}) \\right| \\right| _ {2} \\tag {7} \\\\ \\text {s . t .} \\quad | | \\boldsymbol {v} | | _ {\\infty} \\leq \\epsilon \\\\ \\end{array}\n$$\n", "text_format": "latex", "bbox": [ 517, 588, 888, 646 ], "page_idx": 3 }, { "type": "text", "text": "where $\\pmb{v}$ is constrained by $\\ell_{\\infty}$ -norm and bound $\\epsilon$ . To verify the previous claim, we compute the mean positive activation loss in various convolution layers via feeding UAPs into CNN models (e.g., VGG19). As shown in Fig. 3, TRM-UAP $(PTR \\neq NTR$ , i.e., $l' \\neq l'' < L)$ generates a larger cumulative positive activation loss than RM-UAP $(l' = l'' = L)$ and TRM-UAP $(PTR = NTR$ , i.e., $l' = l'' < L)$ , which could lead to a further increase in fooling rates.", "bbox": [ 498, 656, 890, 777 ], "page_idx": 3 }, { "type": "text", "text": "3.4. Curriculum Optimization Algorithm", "text_level": 1, "bbox": [ 500, 786, 816, 803 ], "page_idx": 3 }, { "type": "text", "text": "For purpose of improving the diversity of inputs, we utilize Gaussian noise and jigsaw image [33] to generate artificial images, which are fed into surrogate models together with the perturbation. To resemble training samples in real-world datasets, the mean filter is used to smooth the edge between different regions in jigsaw images. However, it", "bbox": [ 498, 810, 890, 900 ], "page_idx": 3 }, { "type": "page_number", "text": "4765", "bbox": [ 480, 944, 514, 955 ], "page_idx": 3 }, { "type": "text", "text": "will be difficult for the optimization algorithm to converge if artificial images with complex patterns are provided at the beginning of the training procedure. Inspired by curriculum learning [2], we start the training with simple artificial images and then gradually feed more complex artificial images into surrogate models. Specifically, the generation of artificial images is controlled by the distribution parameter and the training iteration, defined as:", "bbox": [ 75, 90, 472, 212 ], "page_idx": 4 }, { "type": "equation", "text": "\n$$\nD _ {1} \\prec D _ {2} \\prec \\dots \\prec D _ {n},\n$$\n", "text_format": "latex", "bbox": [ 189, 219, 346, 234 ], "page_idx": 4 }, { "type": "equation", "text": "\n$$\nD _ {t} = \\left\\{\\boldsymbol {x} \\mid \\boldsymbol {x} \\sim P \\left(\\theta_ {0}, t\\right) \\right\\}, \\tag {8}\n$$\n", "text_format": "latex", "bbox": [ 189, 234, 467, 253 ], "page_idx": 4 }, { "type": "text", "text": "where $D_{t}$ is a set of artificial images $\\pmb{x}$ sampled at $t$ -th iteration $(t = 1,2,\\dots ,n)$ , $P$ is the distribution of artificial samples with the default parameter $\\theta_0$ , and $D_{a} \\prec D_{b}$ denotes that the pattern of artificial images in $D_{b}$ is more complex than $D_{a}$ . In detail, as the number of training iterations $t$ increases, the distribution parameter $\\theta_0$ (e.g., the standard deviation of Gaussian distribution and the frequency of jigsaw images) is gradually increasing. For $t$ -th iteration, our curriculum optimization algorithm is maximizing", "bbox": [ 75, 261, 472, 398 ], "page_idx": 4 }, { "type": "equation", "text": "\n$$\n\\mathcal {L} _ {t} = \\frac {1}{| D _ {t} |} \\sum_ {\\boldsymbol {x} \\in D _ {t}} \\left(\\sum_ {i = 1} ^ {l ^ {\\prime}} \\log \\mathcal {L} _ {+} ^ {(i)} (\\boldsymbol {v} + \\boldsymbol {x}) - \\alpha \\cdot \\sum_ {i = 1} ^ {l ^ {\\prime \\prime}} \\log \\mathcal {L} _ {-} ^ {(i)} (\\boldsymbol {v} + \\boldsymbol {x})\\right) \\tag {9}\n$$\n", "text_format": "latex", "bbox": [ 76, 406, 467, 460 ], "page_idx": 4 }, { "type": "text", "text": "where $|D_t|$ is the number of artificial images in the set $D_t$ .", "bbox": [ 75, 462, 464, 477 ], "page_idx": 4 }, { "type": "text", "text": "The entire procedure of our proposed TRM-UAP method is summarized in Algorithm 1. During the training process, the perturbation vector $\\pmb{v}$ is randomly initialized by the uniform distribution $\\mathcal{U}$ , and a surrogate dataset is used to validate the convergence of optimization for every $H$ iterations. $l^{\\prime}$ and $l''$ represent the retained layers of positive and negative activations corresponding to truncation rates $PTR$ and $NTR$ respectively. The scaling hyperparameter $\\alpha$ adjusts the ratio between truncated positive and negative activation losses. The algorithm is converged only if either the iteration number reaches the maximum $T$ or the fooling rate test reaches the threshold $F_{max}$ . Similar to GD-UAP [17], we run a saturation rate test for each iteration to dynamically compress the perturbation vector only if the saturation rate $\\hat{r}$ is smaller than the predefined threshold $r$ .", "bbox": [ 75, 477, 472, 704 ], "page_idx": 4 }, { "type": "text", "text": "3.5. Connection to Other Data-Free UAP Methods", "text_level": 1, "bbox": [ 76, 710, 465, 726 ], "page_idx": 4 }, { "type": "text", "text": "When positive and negative truncation rates are set as $PTR = 0\\%$ and $NTR = 100\\%$ (i.e., $l' = L, l'' = 0$ ), this means all the negative activations are truncated and all the positive activations are retained. Thus, the proposed TRM-UAP defined in Eq. (7) is reduced to GD-UAP [17]. It can be seen that GD-UAP is only a special case of TRM-UAP under the data-free universal attack setting. As compared to GD-UAP, our TRM-UAP improves both intensity and transferability of crafted UAPs via truncated ratio maximization. The detail of their differences will be further discussed in the experiments.", "bbox": [ 75, 734, 472, 902 ], "page_idx": 4 }, { "type": "text", "text": "Algorithm 1 Curriculum optimization algorithm for solving truncated ratio maximization problem to craft universal adversarial perturbations", "bbox": [ 498, 90, 890, 135 ], "page_idx": 4 }, { "type": "text", "text": "Input: surrogate CNN model $f$ , limitation value $\\epsilon$ , learning rate $\\eta$ , positive and negative truncation rates $PTR$ , $NTR$ , scaling hyperparameter $\\alpha$ , maximum iteration number $T$ , convergence threshold $F_{max}$ , validation test hyperparameter $H$ , saturation threshold $r$", "bbox": [ 498, 137, 893, 212 ], "page_idx": 4 }, { "type": "text", "text": "Output: universal adversarial perturbation $\\pmb{v}$", "bbox": [ 500, 214, 797, 228 ], "page_idx": 4 }, { "type": "list", "sub_type": "text", "list_items": [ "1: Initialize $\\pmb{v}_0\\sim \\mathcal{U}(-\\epsilon ,\\epsilon)$ $t = 0,F = 0$", "2: while $t < T$ and $F < F_{\\text{max}}$ do", "3: $t = t + 1$", "4: Generate the artificial image set $D_{t}$ via Eq. (8)", "5: Compute the gradient $\\nabla \\mathcal{L}_t$ of the loss $\\mathcal{L}_t$ in Eq. (9)", "6: Update $\\pmb{v}_t = \\pmb{v}_{t-1} + \\eta \\cdot \\nabla \\mathcal{L}_t$", "7: Clip $\\pmb{v}_t = \\min (\\epsilon ,\\max (\\pmb {v}_t, - \\epsilon))$", "8: Compute the saturation rate $\\hat{r}$ and adjust $\\pmb{v}_t$ if $\\hat{r} < r$", "9: Conduct the fooling rate test $FR$ if $t\\% H == 0$ and $F = F + 1$ if $FR$ not the best fooling rate" ], "bbox": [ 509, 231, 890, 381 ], "page_idx": 4 }, { "type": "list", "sub_type": "text", "list_items": [ "10: end while", "11: return $\\mathbf{v}_t$" ], "bbox": [ 504, 383, 599, 411 ], "page_idx": 4 }, { "type": "text", "text": "4. Experiments", "text_level": 1, "bbox": [ 500, 444, 632, 462 ], "page_idx": 4 }, { "type": "text", "text": "Setup: By following the experiment setup in existing data-free universal methods [18, 17, 20, 14], we evaluated the proposed TRM-UAP method on the validation set of ImageNet [23] with the classical pre-trained CNN models including AlexNet [13], VGG16 [24], VGG19 [24], ResNet152 [10] and GoogleNet [25].", "bbox": [ 496, 470, 890, 563 ], "page_idx": 4 }, { "type": "text", "text": "Evaluation Criteria: We used the fooling rate $(FR)$ proposed by data-free universal methods [18, 17] as the evaluation metric. Particularly, a higher fooling rate represented higher attack success rate and better transferability. In addition, we used the logit loss of C&W attack [5] to further evaluate the transferability of data-free UAPs.", "bbox": [ 496, 564, 890, 655 ], "page_idx": 4 }, { "type": "text", "text": "Comparative Methods: We made a comparison with data-free universal approaches, including FFF [18], AAA [20], GD-UAP [17], PD-UA [14] and Cosine-UAP [33]. Note that GD-UAP [17] trained models under different setups, for a fair comparison, we reproduced the results of GD-UAP [17] by making the setup consistent with TRM-UAP.", "bbox": [ 496, 657, 890, 747 ], "page_idx": 4 }, { "type": "text", "text": "Implementation Details: All of our experiments were implemented on PyTorch with a single NVIDIA GeForce RTX 3090Ti GPU. Following the common setting [18, 17], we set $\\epsilon = 10 / 255$ to restrict changes of the perturbation. The maximum iteration $T$ was set as 10000, and the saturation threshold $r$ was set to $0.001\\%$ . The value range of hyperparameters $PTR, NTR \\in [0, 1]$ denotes the truncation rate of positive and negative activations respectively. We set the scaling hyperparameter $\\alpha$ and truncation rates with appropriate values for different CNN models.", "bbox": [ 496, 750, 890, 901 ], "page_idx": 4 }, { "type": "page_number", "text": "4766", "bbox": [ 480, 944, 514, 955 ], "page_idx": 4 }, { "type": "table", "img_path": "images/74e3c5defd1bd3781f259e0fecfb7781e8fdada96f5ae0ddc1dac94346a44370.jpg", "table_caption": [], "table_footnote": [], "table_body": "<table><tr><td>Attack</td><td>AlexNet</td><td>VGG16</td><td>VGG19</td><td>ResNet152</td><td>GoogleNet</td><td>Average</td></tr><tr><td>FFF</td><td>80.92</td><td>47.10</td><td>43.62</td><td>-</td><td>56.44</td><td>-</td></tr><tr><td>AAA</td><td>89.04</td><td>71.59</td><td>72.84</td><td>60.72</td><td>75.28</td><td>73.89</td></tr><tr><td>GD-UAP</td><td>85.24</td><td>90.01</td><td>87.34</td><td>45.96</td><td>45.87</td><td>64.65</td></tr><tr><td>PD-UA</td><td>-</td><td>70.69</td><td>64.98</td><td>46.39</td><td>67.12</td><td>-</td></tr><tr><td>Cosine-UAP</td><td>91.07</td><td>89.48</td><td>86.81</td><td>65.35</td><td>87.57</td><td>84.08</td></tr><tr><td>TRM-UAP(Ours)</td><td>93.53±0.07</td><td>94.30±0.15</td><td>91.35±0.30</td><td>67.46±0.35</td><td>85.32±0.04</td><td>86.39</td></tr></table>", "bbox": [ 132, 88, 834, 209 ], "page_idx": 5 }, { "type": "table", "img_path": "images/48080ed138239a037176c0698ad4f11197de1d091466e7fd54eb6269d9dc5b19.jpg", "table_caption": [ "Table 1. The fooling rate $(FR)$ of our proposed TRM-UAP and other data-free universal methods. We show the mean and standard deviation of $FR$ with five runs." ], "table_footnote": [], "table_body": "<table><tr><td></td><td>AlexNet</td><td>VGG16</td><td>VGG19</td><td>ResNet152</td><td>GoogleNet</td></tr><tr><td>AlexNet</td><td>93.53±0.07</td><td>60.10±0.24</td><td>57.08±0.15</td><td>27.31±0.30</td><td>32.70±0.22</td></tr><tr><td>VGG16</td><td>47.53±0.51</td><td>94.30±0.12</td><td>89.68±0.14</td><td>61.43±0.40</td><td>53.95±0.59</td></tr><tr><td>VGG19</td><td>46.01±0.44</td><td>89.82±0.15</td><td>91.35±0.30</td><td>47.19±0.66</td><td>46.48±0.78</td></tr><tr><td>ResNet152</td><td>53.56±0.75</td><td>77.20±0.35</td><td>73.30±0.41</td><td>67.46±0.35</td><td>57.54±0.50</td></tr><tr><td>GoogleNet</td><td>60.10±1.16</td><td>79.66±0.95</td><td>79.98±1.06</td><td>58.85±1.94</td><td>85.32±0.04</td></tr></table>", "bbox": [ 191, 256, 777, 371 ], "page_idx": 5 }, { "type": "text", "text": "Table 2. The transferability of the perturbation crafted by our TRM-UAP method (rows: target models; columns: surrogate models). The fooling rate $(FR)$ on the diagonal represents white-box attacks (i.e., UAP is crafted by the target model itself), and other off-diagonal values are black-box attacks (i.e., UAP is crafted by non-target models.). All results of mean and standard deviation are computed on average with five turns.", "bbox": [ 75, 373, 893, 436 ], "page_idx": 5 }, { "type": "text", "text": "4.1. Main Results", "text_level": 1, "bbox": [ 76, 460, 217, 474 ], "page_idx": 5 }, { "type": "text", "text": "Our proposed TRM-UAP is applied to craft UAPs on five CNN models and create AEs to attack these CNN models separately on the ImageNet validation set. We set $\\alpha \\in \\{1.0, 1.0, 0.5, 1.5, 1.3\\}$ , $PTR \\in \\{0.0, 0.2, 0.2, 0.7, 0.4\\}$ , $NTR \\in \\{0.8, 0.3, 0.2, 0.8, 0.3\\}$ , corresponding to AlexNet, VGG16, VGG19, ResNet152, GoogleNet. The attack performance compared with other data-free universal methods is shown in Table 1. Note that the results of GD-UAP were reproduced by our best effort on PyTorch for a fair comparison. As compared to other methods, our TRM-UAP method improves the fooling rate in most CNN models. Although Cosine-UAP achieves a higher $FR$ in GoogleNet, TRM-UAP improves the $FR$ around $1 \\sim 5\\%$ on other four models and further improves the average $FR$ of all five models more than $2\\%$ . Besides, it is shown in Fig. 4 that the visualization of crafted UAPs has clearly particular image patterns with abundant features. We also visualized AEs of TRM-UAP attack in Fig. 6 and found that high probabilities of AEs were given to the labels of incorrect class.", "bbox": [ 75, 487, 472, 776 ], "page_idx": 5 }, { "type": "text", "text": "We further used the UAP made by surrogate models to attack other target models to verify the transferability. Table 2 represented the attack performance in different attack settings. The models in rows denote target models, and the models in columns denote surrogate models for crafting the UAP. The results on the diagonal denote the white-box attack, while the rest are transferable attacks in the black-box setting. Most TRM-UAP attacks perform excellently in", "bbox": [ 75, 779, 472, 902 ], "page_idx": 5 }, { "type": "text", "text": "transferability, which indicates that the universal perturbations crafted by TRM-UAP are generalized well to transfer attacks on target models.", "bbox": [ 496, 460, 893, 506 ], "page_idx": 5 }, { "type": "text", "text": "4.2. Evaluating the Transferability", "text_level": 1, "bbox": [ 498, 513, 769, 530 ], "page_idx": 5 }, { "type": "text", "text": "To further compare the effectiveness of universal attacks, we used the logit loss of C&W attack [5] to evaluate the transferability of GD-UAP, Cosine-UAP, and TRM-UAP. The logit loss is defined as $loss = (\\max_{j \\neq t} F(\\boldsymbol{v} + \\boldsymbol{x})_j) - F(\\boldsymbol{v} + \\boldsymbol{x})_t$ , where $F(\\cdot)_j$ is the $j$ -th output in the logits layer of network and $t$ is the index of ground truth. A larger logit loss value represents better transferability of attacks to CNN models. The logit loss of original images is calculated as a baseline. Note that the results of GD-UAP and Cosine-UAP are reproduced with our best effort on PyTorch. As shown in Fig. 5, TRM-UAP achieves a higher logit loss than GD-UAP and Cosine-UAP in most cases. Additionally, the discrepancy among GD-UAP, Cosine-UAP, and TRM-UAP becomes significant in deep CNN models (e.g., ResNet152 and GoogleNet). Therefore, TRM-UAP achieves relatively higher logit losses in both white-box and black-box attack settings, which indicates a better transferability across various CNN models.", "bbox": [ 496, 537, 893, 809 ], "page_idx": 5 }, { "type": "text", "text": "4.3. Parameter Study", "text_level": 1, "bbox": [ 498, 816, 669, 834 ], "page_idx": 5 }, { "type": "text", "text": "First, the influence of ratio maximization on attack performance is studied. Here we mainly focused on validating the effectiveness of truncated negative activation in deep CNN models (e.g., ResNet152 and GoogleNet). The experi", "bbox": [ 496, 839, 893, 902 ], "page_idx": 5 }, { "type": "page_number", "text": "4767", "bbox": [ 480, 944, 517, 957 ], "page_idx": 5 }, { "type": "image", "img_path": "images/65c9d802a59f4dcb81e3bb2f629100341f6cd3fcdc0b714697823fb1fac9f3fb.jpg", "image_caption": [ "(a) AlexNet" ], "image_footnote": [], "bbox": [ 86, 88, 223, 193 ], "page_idx": 6 }, { "type": "image", "img_path": "images/8b3d3196e40adb2a8c67e651bcb9c67e61ae87efae8b7629b9d7eebc61232f8a.jpg", "image_caption": [ "(b) VGG16" ], "image_footnote": [], "bbox": [ 251, 90, 388, 194 ], "page_idx": 6 }, { "type": "image", "img_path": "images/4d0f65dd6835d1346f5582a0f4930288b9eedb01e701bb03ed2c2121bcc69f9b.jpg", "image_caption": [ "(c) VGG19" ], "image_footnote": [], "bbox": [ 418, 90, 553, 194 ], "page_idx": 6 }, { "type": "image", "img_path": "images/1c573be2aaf3325f72df9cf636b44987fe6db48ffb6c2e2550e3c8b93bebc8bc.jpg", "image_caption": [ "(d) ResNet152" ], "image_footnote": [], "bbox": [ 584, 90, 718, 194 ], "page_idx": 6 }, { "type": "image", "img_path": "images/07d9ff150d5f58d2a1fba9577c128d092d352195bb49c0301f60596993b9fa6a.jpg", "image_caption": [ "(e) GoogleNet" ], "image_footnote": [], "bbox": [ 748, 89, 883, 193 ], "page_idx": 6 }, { "type": "image", "img_path": "images/d9840ca6ae6a1cec36052939a5a34a5c39b25a980b35c684409de51b5abd6c74.jpg", "image_caption": [ "Figure 4. The visualization of UAPs crafted by our TRM-UAP method. For the best visualization in color, we enhance the value of the pixel to [0, 255].", "(a) AlexNet" ], "image_footnote": [], "bbox": [ 83, 262, 241, 335 ], "page_idx": 6 }, { "type": "image", "img_path": "images/653907a0c232758cb095a21ffe5995ca6c5497a2b86518feee531c915091ac34.jpg", "image_caption": [ "(b) VGG16" ], "image_footnote": [], "bbox": [ 243, 262, 405, 335 ], "page_idx": 6 }, { "type": "image", "img_path": "images/0f231656c84bd49878ea6b3134009c957cfc20c7b313d705c8a8718447b12cda.jpg", "image_caption": [ "(c) VGG19" ], "image_footnote": [], "bbox": [ 408, 262, 570, 335 ], "page_idx": 6 }, { "type": "image", "img_path": "images/f14feee229e1d871c0c9f9a4bf3510d048914bbc72da18f37fdb2a00fb66fa2b.jpg", "image_caption": [ "(d) ResNet152" ], "image_footnote": [], "bbox": [ 573, 262, 728, 335 ], "page_idx": 6 }, { "type": "image", "img_path": "images/36beb49379502e532a7e458717f469680dd7428a62426c9cf841c1ad959c2396.jpg", "image_caption": [ "(e) GoogleNet" ], "image_footnote": [], "bbox": [ 730, 262, 887, 335 ], "page_idx": 6 }, { "type": "image", "img_path": "images/2d200e91fbd33143f9c0679bf72f2adaf5a50e390a19fae2b177fe7024a2f0c6.jpg", "image_caption": [ "Figure 5. The logit loss of original samples and adversarial samples crafted by GD-UAP, Cosine-UAP, our TRM-UAP methods. In each sub-figure, the subtitle indicates the surrogate model for crafting UAPs, and target models are shown on the horizontal axis. Original samples are classified correctly by the target model and exploited to craft AEs for comparisons. For each attack setting, we compute the average of the logit loss over all the samples.", "bullet train(98.15%)" ], "image_footnote": [], "bbox": [ 86, 431, 174, 500 ], "page_idx": 6 }, { "type": "image", "img_path": "images/0a432cc4dffc8d6ca71a39e3cb5fe1820ebee297308efd5c4adfbacffc937c49.jpg", "image_caption": [ "puffer(99.89%)" ], "image_footnote": [], "bbox": [ 181, 433, 267, 500 ], "page_idx": 6 }, { "type": "image", "img_path": "images/d0494d384130a691d241b67c8c68102120a3dfff002e4c448a3a996c3597b8a7.jpg", "image_caption": [ "quilt(45.63%)", "Figure 6. Examples of our TRM-UAP attack tested on VGG16 and the perturbation crafted by VGG19 (top: original examples; bottom: adversarial examples). The annotation represents the classification label and the probability predicted by CNNs." ], "image_footnote": [], "bbox": [ 88, 505, 174, 570 ], "page_idx": 6 }, { "type": "image", "img_path": "images/d0a84fbccd57c6376f0c62579ad8e800087dc0eafca838fd508e726eadfeb3b6.jpg", "image_caption": [ "theater curtain(72.82%)" ], "image_footnote": [], "bbox": [ 181, 505, 271, 570 ], "page_idx": 6 }, { "type": "image", "img_path": "images/2229b9cbff59ff4b52fb8a35ccf0888fea7ff1ec65ab48d6a669fe35af48b83c.jpg", "image_caption": [ "monastery(34.69%)" ], "image_footnote": [], "bbox": [ 274, 433, 361, 500 ], "page_idx": 6 }, { "type": "image", "img_path": "images/06e6dafd85668f5dc017d538c8984867aed7a23d311e63f3c5ad50d920fa6f07.jpg", "image_caption": [ "church(43.55%)" ], "image_footnote": [], "bbox": [ 274, 505, 361, 570 ], "page_idx": 6 }, { "type": "image", "img_path": "images/80fb138084f9b9a0ba6f8d92ce61ed8391114c0a95a22fd87cd9e3195cda1559.jpg", "image_caption": [ "shoji(87.62%)" ], "image_footnote": [], "bbox": [ 367, 433, 454, 500 ], "page_idx": 6 }, { "type": "image", "img_path": "images/fea73f939316b40e8544950656a81ac387fca478f012d0152d5a5d38dd1aa6c3.jpg", "image_caption": [ "shower curtain(94.35%)" ], "image_footnote": [], "bbox": [ 367, 505, 457, 570 ], "page_idx": 6 }, { "type": "text", "text": "imental setting is the same as Section 4.1. Based on this, we also crafted UAPs by truncated positive activation only, i.e., $PTR$ remains unchanged and $NTR = 100\\%$ . As shown in Fig. 7, the ablation experiment indicates that truncated negative activation combined with truncated positive activation improves the $FR$ by a large margin (around $8 \\sim 18\\%$ ) as compared to standalone truncated positive activation, thus enhancing both intensity and transferability of UAPs significantly.", "bbox": [ 75, 672, 468, 809 ], "page_idx": 6 }, { "type": "text", "text": "To explore the influence of truncation strategy, we computed the fooling rate of attacks in CNN models by varying truncation rates. Specifically, the proportion of retained activation increased by $10\\%$ for each step. That means UAP learned the feature information from shallow to deep convolution layers gradually. Due to space limitations, UAPs", "bbox": [ 75, 810, 468, 900 ], "page_idx": 6 }, { "type": "image", "img_path": "images/54360931ab4da5e24809ad0f987e60634e820290f30d4fddee5b2fc4c6a85944.jpg", "image_caption": [ "(a) ResNet152", "Figure 7. The ablation study of truncated negative activations on CNN models. Positive: the attack only uses the truncated positive activation. Positive&Negative: the attack integrates truncated positive and negative activations." ], "image_footnote": [], "bbox": [ 511, 444, 694, 540 ], "page_idx": 6 }, { "type": "image", "img_path": "images/4a0325d7a358b602399802ea52d8d43043b08f33eb2521616b840fe45c56fe47.jpg", "image_caption": [ "(b) GoogleNet" ], "image_footnote": [], "bbox": [ 699, 444, 883, 540 ], "page_idx": 6 }, { "type": "text", "text": "were only tested in white-box settings. The results of all CNN models were presented in Fig. 8, where the parameter space was explored w.r.t. NTR and PTR. As can be seen, the optimal result was obtained on the attack setting of the truncated activation rather than the whole activation. Especially in deep CNN models, only part of positive and negative activations were retained to craft UAPs. From the analysis of truncation in Fig. 8, we observe that the shallow convolution layer extracts generic features which are better at transferring the attack across different models.", "bbox": [ 496, 638, 890, 789 ], "page_idx": 6 }, { "type": "text", "text": "4.4. Exploring the Property of UAP", "text_level": 1, "bbox": [ 500, 800, 774, 816 ], "page_idx": 6 }, { "type": "text", "text": "In the following, the property of universal perturbations is thoroughly investigated. We studied the distinction between original example and adversarial examples made by image-specific attack (MI-FGSM) and data-free universal attacks (GD-UAP and TRM-UAP). As shown in Fig. 9, AEs", "bbox": [ 496, 824, 890, 900 ], "page_idx": 6 }, { "type": "page_number", "text": "4768", "bbox": [ 482, 944, 514, 955 ], "page_idx": 6 }, { "type": "image", "img_path": "images/572da65a74803e16285449d42a3de05c833fced37a732be51e6527405adca038.jpg", "image_caption": [ "(a) AlexNet" ], "image_footnote": [], "bbox": [ 91, 94, 223, 172 ], "page_idx": 7 }, { "type": "image", "img_path": "images/f9584c2a5a9435aa9c1cfe179bf4704a78f252e1f5274770805964feb08086e0.jpg", "image_caption": [ "(b) VGG16" ], "image_footnote": [], "bbox": [ 256, 94, 387, 172 ], "page_idx": 7 }, { "type": "image", "img_path": "images/87e3bfd800fe78c910306a2e98dce874140db9cd2cc92ade1b8e808d20971ab2.jpg", "image_caption": [ "(c) VGG19" ], "image_footnote": [], "bbox": [ 421, 92, 552, 171 ], "page_idx": 7 }, { "type": "image", "img_path": "images/b391c6653a3ce10e43f466c0221f525adc1ebc0ac56fce94b04cc371894a638f.jpg", "image_caption": [ "(d) ResNet152" ], "image_footnote": [], "bbox": [ 584, 94, 715, 172 ], "page_idx": 7 }, { "type": "image", "img_path": "images/920e604745f5203df0ea6803dfda4ff9d12dedefe1c86835061fe8dbfe052133.jpg", "image_caption": [ "(e) GoogleNet" ], "image_footnote": [], "bbox": [ 750, 94, 879, 172 ], "page_idx": 7 }, { "type": "image", "img_path": "images/a4b5e47d7ded467512cf5dec0c5bfe14807c8f647eed16c01d4b176527ca6108.jpg", "image_caption": [ "Figure 8. The parameter study of truncation rates on CNN models in white-box attack setting. The $x$ , $y$ , and $z$ axis are NTR, PTR, and FR, respectively. Note that there are only five convolution layers in AlexNet, truncation results (e.g., $10\\%$ , $30\\%$ , $50\\%$ , etc.) are omitted since these values are consistent with the ones at their right coordinate." ], "image_footnote": [], "bbox": [ 84, 257, 171, 333 ], "page_idx": 7 }, { "type": "image", "img_path": "images/a6e036f3f9eece8a241eb2c3235ead53938aeb250022b273360956be79176ce6.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 181, 258, 267, 333 ], "page_idx": 7 }, { "type": "image", "img_path": "images/891ea19d7f31bcdd2f5b5590e25f2f8fc377d0e4731f741e6638a74733302f89.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 277, 258, 364, 333 ], "page_idx": 7 }, { "type": "image", "img_path": "images/31dc80df69a5682a54422bbd9b097440f2f58e52df4477e33cb6207ce04b108e.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 372, 258, 460, 333 ], "page_idx": 7 }, { "type": "image", "img_path": "images/438c031f7e905448fb9b5d8ce6dd3a1b954c6bedb6ebdcb0f46d163df157fe45.jpg", "image_caption": [ "Figure 9. The distinction of feature maps among original image, image-specific attack, and universal attacks (top: feature maps extracted from a shallow convolution layer; bottom: original example and AEs made by VGG19)." ], "image_footnote": [], "bbox": [ 84, 340, 171, 407 ], "page_idx": 7 }, { "type": "image", "img_path": "images/5bc5ff70594099e09d7459d6747fc33c69384834846216e9a5078d68df1bbf0c.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 181, 340, 267, 407 ], "page_idx": 7 }, { "type": "image", "img_path": "images/bba6eb8b5f34e8f463ebbf59b2e27b1cf6ad621434c1670bf79a0dc52faf5d93.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 277, 340, 364, 407 ], "page_idx": 7 }, { "type": "image", "img_path": "images/34635c586aa6340dfa8f236ea295eec759a14ab0f58e24b2467881216340d752.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 374, 340, 460, 407 ], "page_idx": 7 }, { "type": "text", "text": "are indistinguishable compared with original example, and the imperceptible noise added to the input effectively perturbed feature maps in a shallow convolution layer. Furthermore, data-free universal attacks disturbed the feature map seriously in contrast to the image-specific attack. Nevertheless, the feature map of TRM-UAP had better regularity and repeatability than GD-UAP. We can conclude that features extracted by shallow convolution layers profoundly impact the final classification of CNN models and are beneficial for universal attack to craft the transferable perturbation.", "bbox": [ 75, 491, 467, 642 ], "page_idx": 7 }, { "type": "text", "text": "To further verify the above viewpoints, we trained UAPs in completely opposite truncation strategies (i.e., retaining former $80\\%$ layers versus retaining latter $20\\%$ layers), and counted the distribution of class labels of AEs. The result in Fig. 10 (a) was consistent with the hypothesis [33] that the top-1 logits prediction of UAP dominates the prediction of AEs. Both labels were theater curtain. Contrarily, it was shown in Fig. 10 (b) that the phenomenon of top-1 label domination disappeared, where the UAP label was obelisk and the AE label was brass. Thus, the shallow convolution layer is more beneficial to transfer universal attack with generic features through a variety of models.", "bbox": [ 75, 643, 467, 825 ], "page_idx": 7 }, { "type": "text", "text": "5. Conclusion", "text_level": 1, "bbox": [ 76, 843, 194, 858 ], "page_idx": 7 }, { "type": "text", "text": "In this paper, we have proposed a novel data-free universal attack, called TRM-UAP, to reformulate the UAP gener-", "bbox": [ 76, 869, 467, 900 ], "page_idx": 7 }, { "type": "image", "img_path": "images/01d53a6840e63a9d1b5bf12eaf66ab779888517bb3fbab19ae86c318d80a4959.jpg", "image_caption": [ "(a) UAP from low-level (former $80\\%$ ) convolution layers" ], "image_footnote": [], "bbox": [ 519, 263, 697, 351 ], "page_idx": 7 }, { "type": "image", "img_path": "images/c911b1a7b9b5b49dfa3f7a4e0c0296d9ed77dd75f12afc39f3dfbb359a82f5a5.jpg", "image_caption": [], "image_footnote": [], "bbox": [ 697, 263, 879, 351 ], "page_idx": 7 }, { "type": "image", "img_path": "images/7d129a42526e3fd9d856f53c514a5d25820b3343a1d11f7aa656c92dbfe0e2c5.jpg", "image_caption": [ "(b) UAP from high-level (latter $20\\%$ ) convolution layers" ], "image_footnote": [], "bbox": [ 517, 386, 697, 474 ], "page_idx": 7 }, { "type": "image", "img_path": "images/90d691a8ad3cbe797146d9aeffdfe746ba085acfa32aba42863f52dac3afeec5.jpg", "image_caption": [ "Figure 10. The analysis of the label distribution of UAPs and AEs (both made by VGG16). In each subfigure, the left is the top-10 logits value of UAP $(\\pmb{v})$ , and the right is the distribution of top-10 predicated labels of AEs $(\\pmb{v} + \\pmb{x})$ ." ], "image_footnote": [], "bbox": [ 699, 387, 874, 474 ], "page_idx": 7 }, { "type": "text", "text": "ation task as a truncated ratio optimization problem. Compared with previous methods, our TRM-UAP method integrates positive activation maximization with negative activation minimization. Towards further improving the transferability of UAPs, we propose a truncation strategy that computes positive and negative activation losses from low-level convolutions, as well as a curriculum optimization algorithm to fully mine the diversity of artificial images. Experimental results on the ImageNet dataset validate the better transferability of our TRM-UAP attack than other data-free UAP attacks on different CNN models. Additionally, UAPs learned from generic features in shallow convolution layers can dominate the model prediction and transfer the universal attack.", "bbox": [ 496, 580, 890, 790 ], "page_idx": 7 }, { "type": "text", "text": "Acknowledgement. This work is partially supported by the Scientific Research Foundation of Chongqing University of Technology under Grant No.2022ZDZ026, Natural Science Foundation of Chongqing, China under Grant No.CSTB2022NSCQ-MSX0493, the Key project of Chongqing Technology Innovation and Application Development under Grant No.cstc2021jscx-dxwtBX0018.", "bbox": [ 496, 795, 890, 900 ], "page_idx": 7 }, { "type": "page_number", "text": "4769", "bbox": [ 482, 944, 514, 955 ], "page_idx": 7 }, { "type": "text", "text": "References", "text_level": 1, "bbox": [ 78, 89, 173, 104 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[1] Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. IEEE Access, 6:14410-14430, 2018.", "[2] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pages 41-48, 2009.", "[3] Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Šrndić, Pavel Laskov, Giorgio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 387-402. Springer, 2013.", "[4] Battista Biggio and Fabio Roli. Wild patterns: Ten years after the rise of adversarial machine learning. Pattern Recognition, 84:317-331, 2018.", "[5] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy, pages 39-57, 2017.", "[6] Ashutosh Chaubey, Nikhil Agrawal, Kavya Barnwal, Keerat K Guliani, and Pramod Mehta. Universal adversarial perturbations: A survey. arXiv preprint arXiv:2005.08087, 2020.", "[7] Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9185-9193, 2018.", "[8] Aditya Ganeshan, Vivek BS, and R Venkatesh Babu. Fda: Feature disruptive attack. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8069-8079, 2019.", "[9] Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015.", "[10] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770-778, 2016.", "[11] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. Advances in Neural Information Processing Systems, 32, 2019.", "[12] Valentin Khrulkov and Ivan Oseledets. Art of singular vectors and universal adversarial perturbations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8562-8570, 2018.", "[13] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in Neural Information Processing Systems, 25, 2012.", "[14] Hong Liu, Rongrong Ji, Jie Li, Baochang Zhang, Yue Gao, Yongjian Wu, and Feiyue Huang. Universal adversarial perturbation via prior driven uncertainty approximation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2941-2949, 2019." ], "bbox": [ 78, 114, 470, 900 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[15] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018.", "[16] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1765-1773, 2017.", "[17] Konda Reddy Mopuri, Aditya Ganeshan, and R Venkatesh Babu. Generalizable data-free objective for crafting universal adversarial perturbations. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(10):2452-2465, 2018.", "[18] Konda Reddy Mopuri, Utsav Garg, and R Venkatesh Babu. Fast feature fool: A data independent approach to universal adversarial perturbations. In Proceedings of the British Machine Vision Conference, 2017.", "[19] Konda Reddy Mopuri, Utkarsh Ojha, Utsav Garg, and R Venkatesh Babu. Nag: Network for adversary generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 742-751, 2018.", "[20] Konda Reddy Mopuri, Phani Krishna Uppala, and R Venkatesh Babu. Ask, acquire, and attack: Data-free uap generation using class impressions. In Proceedings of the European Conference on Computer Vision, pages 20-35, 2018.", "[21] Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In 2016 IEEE European Symposium on Security and Privacy, pages 372-387, 2016.", "[22] Omid Poursaeed, Isay Katsman, Bicheng Gao, and Serge Belongie. Generative adversarial perturbations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4422-4431, 2018.", "[23] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision, 115(3):211–252, 2015.", "[24] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations, 2015.", "[25] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1-9, 2015.", "[26] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2014.", "[27] Yusuke Tashiro, Yang Song, and Stefano Ermon. Diversity can be transferred: Output diversification for white-and black-box attacks. Advances in Neural Information Processing Systems, 33:4536-4548, 2020." ], "bbox": [ 501, 92, 890, 900 ], "page_idx": 8 }, { "type": "page_number", "text": "4770", "bbox": [ 482, 945, 514, 955 ], "page_idx": 8 }, { "type": "list", "sub_type": "ref_text", "list_items": [ "[28] Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy. In International Conference on Learning Representations, 2019.", "[29] Zhibo Wang, Hengchang Guo, Zhifei Zhang, Wenxin Liu, Zhan Qin, and Kui Ren. Feature importance-aware transferable adversarial attacks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 7639-7648, 2021.", "[30] Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? Advances in Neural Information Processing Systems, 27, 2014.", "[31] Yunrui Yu, Xitong Gao, and Cheng-Zhong Xu. Lafeat: piercing through adversarial defenses with latent features. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5735-5745, 2021.", "[32] Chaoning Zhang, Philipp Benz, Tooba Imtiaz, and In So Kweon. Understanding adversarial examples from the mutual influence of images and perturbations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14521-14530, 2020.", "[33] Chaoning Zhang, Philipp Benz, Adil Karjauv, and In So Kweon. Data-free universal adversarial perturbation and black-box attack. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 7868-7877, 2021.", "[34] Chaoning Zhang, Philipp Benz, Chenguo Lin, Adil Karjauv, Jing Wu, and In So Kweon. A survey on universal adversarial attack. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, pages 4687-4694, 2021.", "[35] Jianping Zhang, Weibin Wu, Jen-tse Huang, Yizhan Huang, Wenxuan Wang, Yuxin Su, and Michael R Lyu. Improving adversarial transferability via neuron attribution-based attacks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14993-15002, 2022." ], "bbox": [ 78, 90, 470, 611 ], "page_idx": 9 }, { "type": "page_number", "text": "4771", "bbox": [ 482, 945, 513, 955 ], "page_idx": 9 }]123version https://git-lfs.github.com/spec/v1oid sha256:28a19447fec1632b084b64eb117436671e38a8ee5e9232f74346f32f6dd43ee8size 4849537.gitattributes+64
2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/ae7f1ffe-fe67-4917-84ae-5c196628c6e5_content_list.jsonAdded
2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/ae7f1ffe-fe67-4917-84ae-5c196628c6e5_model.jsonAdded
2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/ae7f1ffe-fe67-4917-84ae-5c196628c6e5_origin.pdfAdded+3
2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/full.mdAdded+582
2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/images.zipAdded+3
2023/TIFA_ Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answering/layout.jsonAdded
2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/7bfffc83-27ef-4c73-aa19-9a15a6ee13fd_content_list.jsonAdded+1360
2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/7bfffc83-27ef-4c73-aa19-9a15a6ee13fd_model.jsonAdded+1993
2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/7bfffc83-27ef-4c73-aa19-9a15a6ee13fd_origin.pdfAdded+3
2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/full.mdAdded+268
2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/images.zipAdded+3
2023/TIJO_ Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Models/layout.jsonAdded
2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/1834d63b-e3e0-4b42-9900-788dbb6bee22_content_list.jsonAdded+1581
2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/1834d63b-e3e0-4b42-9900-788dbb6bee22_model.jsonAdded
2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/1834d63b-e3e0-4b42-9900-788dbb6bee22_origin.pdfAdded+3
2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/full.mdAdded+309
2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/images.zipAdded+3
2023/TM2D_ Bimodality Driven 3D Dance Generation via Music-Text Integration/layout.jsonAdded
2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/9d269c18-5110-4a81-a1b9-317c1455548e_content_list.jsonAdded+1617
2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/9d269c18-5110-4a81-a1b9-317c1455548e_model.jsonAdded+2178
2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/9d269c18-5110-4a81-a1b9-317c1455548e_origin.pdfAdded+3
2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/full.mdAdded+318
2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/images.zipAdded+3
2023/TMA_ Temporal Motion Aggregation for Event-based Optical Flow/layout.jsonAdded
2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/d1f3cbdb-e07a-4952-8052-a9aa7bed81da_content_list.jsonAdded+1664
2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/d1f3cbdb-e07a-4952-8052-a9aa7bed81da_model.jsonAdded
2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/d1f3cbdb-e07a-4952-8052-a9aa7bed81da_origin.pdfAdded+3
2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/full.mdAdded+340
2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/images.zipAdded+3
2023/TMR_ Text-to-Motion Retrieval Using Contrastive 3D Human Motion Synthesis/layout.jsonAdded
2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/2d762d0d-bad4-403d-98f7-4210b7f7e39d_content_list.jsonAdded
2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/2d762d0d-bad4-403d-98f7-4210b7f7e39d_model.jsonAdded
2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/2d762d0d-bad4-403d-98f7-4210b7f7e39d_origin.pdfAdded+3
2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/full.mdAdded+403
2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/images.zipAdded+3
2023/TORE_ Token Reduction for Efficient Human Mesh Recovery with Transformer/layout.jsonAdded
2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/6ac05fcd-de6a-4657-a3f2-a897a887dcbb_content_list.jsonAdded+1922
2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/6ac05fcd-de6a-4657-a3f2-a897a887dcbb_model.jsonAdded
2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/6ac05fcd-de6a-4657-a3f2-a897a887dcbb_origin.pdfAdded+3
2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/full.mdAdded
2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/images.zipAdded
2023/TRM-UAP_ Enhancing the Transferability of Data-Free Universal Adversarial Perturbation via Truncated Ratio Maximization/layout.jsonAdded
2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/e286768b-a5b2-4ea3-a9f1-4d06c6cc68f6_content_list.jsonAdded
2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/e286768b-a5b2-4ea3-a9f1-4d06c6cc68f6_model.jsonAdded
2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/e286768b-a5b2-4ea3-a9f1-4d06c6cc68f6_origin.pdfAdded
2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/full.mdAdded
2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/images.zipAdded
2023/Take-A-Photo_ 3D-to-2D Generative Pre-training of Point Cloud Models/layout.jsonAdded
2023/Talking Head Generation with Probabilistic Audio-to-Visual Diffusion Priors/7d213d41-b6ba-4fcf-a556-dbfb8dc18cb6_content_list.jsonAdded