Chelsea707 commited on
Commit
effc360
·
verified ·
1 Parent(s): a8397e0

Add Batch baf1dd8b-56db-4970-8bd3-f49a7a1c7fd4 data

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +64 -0
  2. 2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/8a9d3b30-86dd-4aa7-b7f9-25429a73247f_content_list.json +2209 -0
  3. 2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/8a9d3b30-86dd-4aa7-b7f9-25429a73247f_model.json +0 -0
  4. 2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/8a9d3b30-86dd-4aa7-b7f9-25429a73247f_origin.pdf +3 -0
  5. 2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/full.md +383 -0
  6. 2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/images.zip +3 -0
  7. 2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/layout.json +0 -0
  8. 2024/GroundUp_ Rapid Sketch-Based 3D City Massing/37583a8f-8a33-432e-8cbc-63aa78c79e8c_content_list.json +1984 -0
  9. 2024/GroundUp_ Rapid Sketch-Based 3D City Massing/37583a8f-8a33-432e-8cbc-63aa78c79e8c_model.json +0 -0
  10. 2024/GroundUp_ Rapid Sketch-Based 3D City Massing/37583a8f-8a33-432e-8cbc-63aa78c79e8c_origin.pdf +3 -0
  11. 2024/GroundUp_ Rapid Sketch-Based 3D City Massing/full.md +364 -0
  12. 2024/GroundUp_ Rapid Sketch-Based 3D City Massing/images.zip +3 -0
  13. 2024/GroundUp_ Rapid Sketch-Based 3D City Massing/layout.json +0 -0
  14. 2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/aa4cae58-10af-482c-b4dc-840d2e57d73a_content_list.json +1805 -0
  15. 2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/aa4cae58-10af-482c-b4dc-840d2e57d73a_model.json +0 -0
  16. 2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/aa4cae58-10af-482c-b4dc-840d2e57d73a_origin.pdf +3 -0
  17. 2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/full.md +286 -0
  18. 2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/images.zip +3 -0
  19. 2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/layout.json +0 -0
  20. 2024/Grounding Image Matching in 3D with MASt3R/51268d49-0131-4ab5-9320-905d8065a0e2_content_list.json +0 -0
  21. 2024/Grounding Image Matching in 3D with MASt3R/51268d49-0131-4ab5-9320-905d8065a0e2_model.json +0 -0
  22. 2024/Grounding Image Matching in 3D with MASt3R/51268d49-0131-4ab5-9320-905d8065a0e2_origin.pdf +3 -0
  23. 2024/Grounding Image Matching in 3D with MASt3R/full.md +381 -0
  24. 2024/Grounding Image Matching in 3D with MASt3R/images.zip +3 -0
  25. 2024/Grounding Image Matching in 3D with MASt3R/layout.json +0 -0
  26. 2024/Grounding Language Models for Visual Entity Recognition/f81adb0c-1edb-4295-b40e-665cc7191457_content_list.json +2002 -0
  27. 2024/Grounding Language Models for Visual Entity Recognition/f81adb0c-1edb-4295-b40e-665cc7191457_model.json +0 -0
  28. 2024/Grounding Language Models for Visual Entity Recognition/f81adb0c-1edb-4295-b40e-665cc7191457_origin.pdf +3 -0
  29. 2024/Grounding Language Models for Visual Entity Recognition/full.md +354 -0
  30. 2024/Grounding Language Models for Visual Entity Recognition/images.zip +3 -0
  31. 2024/Grounding Language Models for Visual Entity Recognition/layout.json +0 -0
  32. 2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/60259d81-0140-404b-bad0-378f4d2302df_content_list.json +1232 -0
  33. 2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/60259d81-0140-404b-bad0-378f4d2302df_model.json +1629 -0
  34. 2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/60259d81-0140-404b-bad0-378f4d2302df_origin.pdf +3 -0
  35. 2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/full.md +214 -0
  36. 2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/images.zip +3 -0
  37. 2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/layout.json +0 -0
  38. 2024/GroupDiff_ Diffusion-based Group Portrait Editing/0180d5e1-adf4-499a-95e2-b1c477938796_content_list.json +1673 -0
  39. 2024/GroupDiff_ Diffusion-based Group Portrait Editing/0180d5e1-adf4-499a-95e2-b1c477938796_model.json +0 -0
  40. 2024/GroupDiff_ Diffusion-based Group Portrait Editing/0180d5e1-adf4-499a-95e2-b1c477938796_origin.pdf +3 -0
  41. 2024/GroupDiff_ Diffusion-based Group Portrait Editing/full.md +304 -0
  42. 2024/GroupDiff_ Diffusion-based Group Portrait Editing/images.zip +3 -0
  43. 2024/GroupDiff_ Diffusion-based Group Portrait Editing/layout.json +0 -0
  44. 2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/530ccc05-6bb4-41b7-8d2f-33c8296c81f7_content_list.json +2077 -0
  45. 2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/530ccc05-6bb4-41b7-8d2f-33c8296c81f7_model.json +0 -0
  46. 2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/530ccc05-6bb4-41b7-8d2f-33c8296c81f7_origin.pdf +3 -0
  47. 2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/full.md +374 -0
  48. 2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/images.zip +3 -0
  49. 2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/layout.json +0 -0
  50. 2024/H-V2X_ A Large Scale Highway Dataset for BEV Perception/8adfcc13-a5b5-4a35-898d-57c28538b797_content_list.json +1892 -0
.gitattributes CHANGED
@@ -980,3 +980,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
980
  2024/Grid-Attention_[[:space:]]Enhancing[[:space:]]Computational[[:space:]]Efficiency[[:space:]]of[[:space:]]Large[[:space:]]Vision[[:space:]]Models[[:space:]]without[[:space:]]Fine-Tuning/d781b14c-02f6-4960-a417-eeb969cba354_origin.pdf filter=lfs diff=lfs merge=lfs -text
981
  2024/Griffon_[[:space:]]Spelling[[:space:]]out[[:space:]]All[[:space:]]Object[[:space:]]Locations[[:space:]]at[[:space:]]Any[[:space:]]Granularity[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/a296d540-2b16-4d8e-85a1-b2df12103f79_origin.pdf filter=lfs diff=lfs merge=lfs -text
982
  2024/GroCo_[[:space:]]Ground[[:space:]]Constraint[[:space:]]for[[:space:]]Metric[[:space:]]Self-Supervised[[:space:]]Monocular[[:space:]]Depth/5ec42580-d7d6-4458-af09-fc89e328cb4f_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
980
  2024/Grid-Attention_[[:space:]]Enhancing[[:space:]]Computational[[:space:]]Efficiency[[:space:]]of[[:space:]]Large[[:space:]]Vision[[:space:]]Models[[:space:]]without[[:space:]]Fine-Tuning/d781b14c-02f6-4960-a417-eeb969cba354_origin.pdf filter=lfs diff=lfs merge=lfs -text
981
  2024/Griffon_[[:space:]]Spelling[[:space:]]out[[:space:]]All[[:space:]]Object[[:space:]]Locations[[:space:]]at[[:space:]]Any[[:space:]]Granularity[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/a296d540-2b16-4d8e-85a1-b2df12103f79_origin.pdf filter=lfs diff=lfs merge=lfs -text
982
  2024/GroCo_[[:space:]]Ground[[:space:]]Constraint[[:space:]]for[[:space:]]Metric[[:space:]]Self-Supervised[[:space:]]Monocular[[:space:]]Depth/5ec42580-d7d6-4458-af09-fc89e328cb4f_origin.pdf filter=lfs diff=lfs merge=lfs -text
983
+ 2024/Groma_[[:space:]]Localized[[:space:]]Visual[[:space:]]Tokenization[[:space:]]for[[:space:]]Grounding[[:space:]]Multimodal[[:space:]]Large[[:space:]]Language[[:space:]]Models/8a9d3b30-86dd-4aa7-b7f9-25429a73247f_origin.pdf filter=lfs diff=lfs merge=lfs -text
984
+ 2024/GroundUp_[[:space:]]Rapid[[:space:]]Sketch-Based[[:space:]]3D[[:space:]]City[[:space:]]Massing/37583a8f-8a33-432e-8cbc-63aa78c79e8c_origin.pdf filter=lfs diff=lfs merge=lfs -text
985
+ 2024/Grounding[[:space:]]DINO_[[:space:]]Marrying[[:space:]]DINO[[:space:]]with[[:space:]]Grounded[[:space:]]Pre-Training[[:space:]]for[[:space:]]Open-Set[[:space:]]Object[[:space:]]Detection/aa4cae58-10af-482c-b4dc-840d2e57d73a_origin.pdf filter=lfs diff=lfs merge=lfs -text
986
+ 2024/Grounding[[:space:]]Image[[:space:]]Matching[[:space:]]in[[:space:]]3D[[:space:]]with[[:space:]]MASt3R/51268d49-0131-4ab5-9320-905d8065a0e2_origin.pdf filter=lfs diff=lfs merge=lfs -text
987
+ 2024/Grounding[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Visual[[:space:]]Entity[[:space:]]Recognition/f81adb0c-1edb-4295-b40e-665cc7191457_origin.pdf filter=lfs diff=lfs merge=lfs -text
988
+ 2024/Group[[:space:]]Testing[[:space:]]for[[:space:]]Accurate[[:space:]]and[[:space:]]Efficient[[:space:]]Range-Based[[:space:]]Near[[:space:]]Neighbor[[:space:]]Search[[:space:]]for[[:space:]]Plagiarism[[:space:]]Detection/60259d81-0140-404b-bad0-378f4d2302df_origin.pdf filter=lfs diff=lfs merge=lfs -text
989
+ 2024/GroupDiff_[[:space:]]Diffusion-based[[:space:]]Group[[:space:]]Portrait[[:space:]]Editing/0180d5e1-adf4-499a-95e2-b1c477938796_origin.pdf filter=lfs diff=lfs merge=lfs -text
990
+ 2024/Guide-and-Rescale_[[:space:]]Self-Guidance[[:space:]]Mechanism[[:space:]]for[[:space:]]Effective[[:space:]]Tuning-Free[[:space:]]Real[[:space:]]Image[[:space:]]Editing/530ccc05-6bb4-41b7-8d2f-33c8296c81f7_origin.pdf filter=lfs diff=lfs merge=lfs -text
991
+ 2024/H-V2X_[[:space:]]A[[:space:]]Large[[:space:]]Scale[[:space:]]Highway[[:space:]]Dataset[[:space:]]for[[:space:]]BEV[[:space:]]Perception/8adfcc13-a5b5-4a35-898d-57c28538b797_origin.pdf filter=lfs diff=lfs merge=lfs -text
992
+ 2024/HAC_[[:space:]]Hash-grid[[:space:]]Assisted[[:space:]]Context[[:space:]]for[[:space:]]3D[[:space:]]Gaussian[[:space:]]Splatting[[:space:]]Compression/23a0f6b9-2e9f-4bc9-a19f-97233c10340d_origin.pdf filter=lfs diff=lfs merge=lfs -text
993
+ 2024/HARIVO_[[:space:]]Harnessing[[:space:]]Text-to-Image[[:space:]]Models[[:space:]]for[[:space:]]Video[[:space:]]Generation/bd1e59e9-c84e-4deb-b00c-c0e0582dbafc_origin.pdf filter=lfs diff=lfs merge=lfs -text
994
+ 2024/HAT_[[:space:]]History-Augmented[[:space:]]Anchor[[:space:]]Transformer[[:space:]]for[[:space:]]Online[[:space:]]Temporal[[:space:]]Action[[:space:]]Localization/c87d0734-4760-4a7b-93fe-1de887aaaac7_origin.pdf filter=lfs diff=lfs merge=lfs -text
995
+ 2024/HENet_[[:space:]]Hybrid[[:space:]]Encoding[[:space:]]for[[:space:]]End-to-end[[:space:]]Multi-task[[:space:]]3D[[:space:]]Perception[[:space:]]from[[:space:]]Multi-view[[:space:]]Cameras/4c639f7e-0aa2-4835-92ce-d326d8d6b41e_origin.pdf filter=lfs diff=lfs merge=lfs -text
996
+ 2024/HERGen_[[:space:]]Elevating[[:space:]]Radiology[[:space:]]Report[[:space:]]Generation[[:space:]]with[[:space:]]Longitudinal[[:space:]]Data/4757d70d-900e-4fca-a84f-63c85759aac1_origin.pdf filter=lfs diff=lfs merge=lfs -text
997
+ 2024/HGL_[[:space:]]Hierarchical[[:space:]]Geometry[[:space:]]Learning[[:space:]]for[[:space:]]Test-time[[:space:]]Adaptation[[:space:]]in[[:space:]]3D[[:space:]]Point[[:space:]]Cloud[[:space:]]Segmentation/a4a13b86-4545-4441-b3a8-f194ab3c79cb_origin.pdf filter=lfs diff=lfs merge=lfs -text
998
+ 2024/HIMO_[[:space:]]A[[:space:]]New[[:space:]]Benchmark[[:space:]]for[[:space:]]Full-Body[[:space:]]Human[[:space:]]Interacting[[:space:]]with[[:space:]]Multiple[[:space:]]Objects/e4044215-576e-45ab-a105-54259a8e008e_origin.pdf filter=lfs diff=lfs merge=lfs -text
999
+ 2024/HO-Gaussian_[[:space:]]Hybrid[[:space:]]Optimization[[:space:]]of[[:space:]]3D[[:space:]]Gaussian[[:space:]]Splatting[[:space:]]for[[:space:]]Urban[[:space:]]Scenes/513dec5d-0244-43bf-8fd6-2c22a0e24923_origin.pdf filter=lfs diff=lfs merge=lfs -text
1000
+ 2024/HPE-Li_[[:space:]]WiFi-enabled[[:space:]]Lightweight[[:space:]]Dual[[:space:]]Selective[[:space:]]Kernel[[:space:]]Convolution[[:space:]]for[[:space:]]Human[[:space:]]Pose[[:space:]]Estimation/abc2ff06-88f3-4f58-b5c7-54e4cfaecfa3_origin.pdf filter=lfs diff=lfs merge=lfs -text
1001
+ 2024/HPFF_[[:space:]]Hierarchical[[:space:]]Locally[[:space:]]Supervised[[:space:]]Learning[[:space:]]with[[:space:]]Patch[[:space:]]Feature[[:space:]]Fusion/38de3fde-6b0c-4d71-a1ab-151d3d9cd1ff_origin.pdf filter=lfs diff=lfs merge=lfs -text
1002
+ 2024/HSR_[[:space:]]Holistic[[:space:]]3D[[:space:]]Human-Scene[[:space:]]Reconstruction[[:space:]]from[[:space:]]Monocular[[:space:]]Videos/bcfdbf73-b111-4a94-abd5-42ea10b6efaf_origin.pdf filter=lfs diff=lfs merge=lfs -text
1003
+ 2024/HUMOS_[[:space:]]Human[[:space:]]Motion[[:space:]]Model[[:space:]]Conditioned[[:space:]]on[[:space:]]Body[[:space:]]Shape/7e7ad4fb-1c17-494a-9d08-8e27f2dbedb2_origin.pdf filter=lfs diff=lfs merge=lfs -text
1004
+ 2024/HVCLIP_[[:space:]]High-dimensional[[:space:]]Vector[[:space:]]in[[:space:]]CLIP[[:space:]]for[[:space:]]Unsupervised[[:space:]]Domain[[:space:]]Adaptation/0c31c34a-04f7-4c67-8276-ba30dbd83610_origin.pdf filter=lfs diff=lfs merge=lfs -text
1005
+ 2024/HYDRA_[[:space:]]A[[:space:]]Hyper[[:space:]]Agent[[:space:]]for[[:space:]]Dynamic[[:space:]]Compositional[[:space:]]Visual[[:space:]]Reasoning/09fdc4a0-bf75-43b5-84f8-934b66353413_origin.pdf filter=lfs diff=lfs merge=lfs -text
1006
+ 2024/HYPE_[[:space:]]Hyperbolic[[:space:]]Entailment[[:space:]]Filtering[[:space:]]for[[:space:]]Underspecified[[:space:]]Images[[:space:]]and[[:space:]]Texts/436371f0-a0c6-45a1-9c4c-d749a0c9168f_origin.pdf filter=lfs diff=lfs merge=lfs -text
1007
+ 2024/HaloQuest_[[:space:]]A[[:space:]]Visual[[:space:]]Hallucination[[:space:]]Dataset[[:space:]]for[[:space:]]Advancing[[:space:]]Multimodal[[:space:]]Reasoning/37582eda-4d58-4eab-85be-ecc7f19e38ff_origin.pdf filter=lfs diff=lfs merge=lfs -text
1008
+ 2024/HandDAGT_[[:space:]]A[[:space:]]Denoising[[:space:]]Adaptive[[:space:]]Graph[[:space:]]Transformer[[:space:]]for[[:space:]]3D[[:space:]]Hand[[:space:]]Pose[[:space:]]Estimation/2cbc2fb1-bf47-474f-8ab9-d7b2bacb9991_origin.pdf filter=lfs diff=lfs merge=lfs -text
1009
+ 2024/HandDGP_[[:space:]]Camera-Space[[:space:]]Hand[[:space:]]Mesh[[:space:]]Prediction[[:space:]]with[[:space:]]Differentiable[[:space:]]Global[[:space:]]Positioning/4ecfe483-97f4-4ec8-bb3a-92de803c8491_origin.pdf filter=lfs diff=lfs merge=lfs -text
1010
+ 2024/Handling[[:space:]]The[[:space:]]Non-Smooth[[:space:]]Challenge[[:space:]]in[[:space:]]Tensor[[:space:]]SVD_[[:space:]]A[[:space:]]Multi-Objective[[:space:]]Tensor[[:space:]]Recovery[[:space:]]Framework/18527f70-b4ae-45a0-9b9e-b4a2b5314423_origin.pdf filter=lfs diff=lfs merge=lfs -text
1011
+ 2024/Harmonizing[[:space:]]knowledge[[:space:]]Transfer[[:space:]]in[[:space:]]Neural[[:space:]]Network[[:space:]]with[[:space:]]Unified[[:space:]]Distillation/0520c497-773c-44f3-a78e-569139868e9c_origin.pdf filter=lfs diff=lfs merge=lfs -text
1012
+ 2024/Harnessing[[:space:]]Text-to-Image[[:space:]]Diffusion[[:space:]]Models[[:space:]]for[[:space:]]Category-Agnostic[[:space:]]Pose[[:space:]]Estimation/bf2e9fe8-dfbd-49a8-8c47-f101abbc5272_origin.pdf filter=lfs diff=lfs merge=lfs -text
1013
+ 2024/Head360_[[:space:]]Learning[[:space:]]a[[:space:]]Parametric[[:space:]]3D[[:space:]]Full-Head[[:space:]]for[[:space:]]Free-View[[:space:]]Synthesis[[:space:]]in[[:space:]]360°/64b05ea6-a394-4440-8812-fff547e9617b_origin.pdf filter=lfs diff=lfs merge=lfs -text
1014
+ 2024/HeadGaS_[[:space:]]Real-Time[[:space:]]Animatable[[:space:]]Head[[:space:]]Avatars[[:space:]]via[[:space:]]3D[[:space:]]Gaussian[[:space:]]Splatting/c8484105-b3c5-4f39-8422-e315f8cdc963_origin.pdf filter=lfs diff=lfs merge=lfs -text
1015
+ 2024/HeadStudio_[[:space:]]Text[[:space:]]to[[:space:]]Animatable[[:space:]]Head[[:space:]]Avatars[[:space:]]with[[:space:]]3D[[:space:]]Gaussian[[:space:]]Splatting/36f2e53d-2de9-42ef-a3af-234cb49f06e4_origin.pdf filter=lfs diff=lfs merge=lfs -text
1016
+ 2024/Hetecooper_[[:space:]]Feature[[:space:]]Collaboration[[:space:]]Graph[[:space:]]for[[:space:]]Heterogeneous[[:space:]]Collaborative[[:space:]]Perception/429ff2fa-0893-4721-8d31-c6faf6b02d7c_origin.pdf filter=lfs diff=lfs merge=lfs -text
1017
+ 2024/Heterogeneous[[:space:]]Graph[[:space:]]Learning[[:space:]]for[[:space:]]Scene[[:space:]]Graph[[:space:]]Prediction[[:space:]]in[[:space:]]3D[[:space:]]Point[[:space:]]Clouds/b1be9e3e-d58f-46a3-810c-d6643f82ba21_origin.pdf filter=lfs diff=lfs merge=lfs -text
1018
+ 2024/HiDiffusion_[[:space:]]Unlocking[[:space:]]Higher-Resolution[[:space:]]Creativity[[:space:]]and[[:space:]]Efficiency[[:space:]]in[[:space:]]Pretrained[[:space:]]Diffusion[[:space:]]Models/79a42ebe-0624-4905-bd66-a01d6a223255_origin.pdf filter=lfs diff=lfs merge=lfs -text
1019
+ 2024/HiEI_[[:space:]]A[[:space:]]Universal[[:space:]]Framework[[:space:]]for[[:space:]]Generating[[:space:]]High-quality[[:space:]]Emerging[[:space:]]Images[[:space:]]from[[:space:]]Natural[[:space:]]Images/ded922f8-f874-46b8-bf5a-0bf6dc46cbdb_origin.pdf filter=lfs diff=lfs merge=lfs -text
1020
+ 2024/HiFi-123_[[:space:]]Towards[[:space:]]High-fidelity[[:space:]]One[[:space:]]Image[[:space:]]to[[:space:]]3D[[:space:]]Content[[:space:]]Generation/3a2c56d2-f92e-4e30-bd0b-bf6f923d4af7_origin.pdf filter=lfs diff=lfs merge=lfs -text
1021
+ 2024/HiFi-Score_[[:space:]]Fine-grained[[:space:]]Image[[:space:]]Description[[:space:]]Evaluation[[:space:]]with[[:space:]]Hierarchical[[:space:]]Parsing[[:space:]]Graphs/994fd6f8-0380-4613-af14-1ec3afc1f4a3_origin.pdf filter=lfs diff=lfs merge=lfs -text
1022
+ 2024/HiT-SR_[[:space:]]Hierarchical[[:space:]]Transformer[[:space:]]for[[:space:]]Efficient[[:space:]]Image[[:space:]]Super-Resolution/8da60c30-c0b4-4adb-9b08-260cf5e0cb32_origin.pdf filter=lfs diff=lfs merge=lfs -text
1023
+ 2024/Hiding[[:space:]]Imperceptible[[:space:]]Noise[[:space:]]in[[:space:]]Curvature-Aware[[:space:]]Patches[[:space:]]for[[:space:]]3D[[:space:]]Point[[:space:]]Cloud[[:space:]]Attack/2b51b396-2375-47b8-b0b0-fac6b31936b6_origin.pdf filter=lfs diff=lfs merge=lfs -text
1024
+ 2024/Hierarchical[[:space:]]Conditioning[[:space:]]of[[:space:]]Diffusion[[:space:]]Models[[:space:]]Using[[:space:]]Tree-of-Life[[:space:]]for[[:space:]]Studying[[:space:]]Species[[:space:]]Evolution/bccb141d-c1ed-4110-a5ad-1835cad37dcd_origin.pdf filter=lfs diff=lfs merge=lfs -text
1025
+ 2024/Hierarchical[[:space:]]Gaussian[[:space:]]Mixture[[:space:]]Normalizing[[:space:]]Flow[[:space:]]Modeling[[:space:]]for[[:space:]]Unified[[:space:]]Anomaly[[:space:]]Detection/93065566-927f-4baf-88d3-3b3c6dc66d19_origin.pdf filter=lfs diff=lfs merge=lfs -text
1026
+ 2024/Hierarchical[[:space:]]Separable[[:space:]]Video[[:space:]]Transformer[[:space:]]for[[:space:]]Snapshot[[:space:]]Compressive[[:space:]]Imaging/b1f65dca-02eb-4214-b8b4-858fa68fafe9_origin.pdf filter=lfs diff=lfs merge=lfs -text
1027
+ 2024/Hierarchical[[:space:]]Temporal[[:space:]]Context[[:space:]]Learning[[:space:]]for[[:space:]]Camera-based[[:space:]]Semantic[[:space:]]Scene[[:space:]]Completion/8a170f16-7f3b-4e50-9443-792eb687b7bf_origin.pdf filter=lfs diff=lfs merge=lfs -text
1028
+ 2024/Hierarchical[[:space:]]Unsupervised[[:space:]]Relation[[:space:]]Distillation[[:space:]]for[[:space:]]Source[[:space:]]Free[[:space:]]Domain[[:space:]]Adaptation/79987ed5-281a-431e-92a4-c41f1a748e57_origin.pdf filter=lfs diff=lfs merge=lfs -text
1029
+ 2024/Hierarchically[[:space:]]Structured[[:space:]]Neural[[:space:]]Bones[[:space:]]for[[:space:]]Reconstructing[[:space:]]Animatable[[:space:]]Objects[[:space:]]from[[:space:]]Casual[[:space:]]Videos/db0b766a-3c09-4dc2-8c28-0f4a779638f8_origin.pdf filter=lfs diff=lfs merge=lfs -text
1030
+ 2024/High-Fidelity[[:space:]]3D[[:space:]]Textured[[:space:]]Shapes[[:space:]]Generation[[:space:]]by[[:space:]]Sparse[[:space:]]Encoding[[:space:]]and[[:space:]]Adversarial[[:space:]]Decoding/ef26342d-95e1-4a28-8e47-60f5c67b9813_origin.pdf filter=lfs diff=lfs merge=lfs -text
1031
+ 2024/High-Fidelity[[:space:]]Modeling[[:space:]]of[[:space:]]Generalizable[[:space:]]Wrinkle[[:space:]]Deformation/57fd0f24-e2df-42ab-a8ec-89f5a4c474ca_origin.pdf filter=lfs diff=lfs merge=lfs -text
1032
+ 2024/High-Fidelity[[:space:]]and[[:space:]]Transferable[[:space:]]NeRF[[:space:]]Editing[[:space:]]by[[:space:]]Frequency[[:space:]]Decomposition/d02ac1d5-40bf-4cf1-a0aa-2a3adf6ebdc6_origin.pdf filter=lfs diff=lfs merge=lfs -text
1033
+ 2024/High-Precision[[:space:]]Self-Supervised[[:space:]]Monocular[[:space:]]Depth[[:space:]]Estimation[[:space:]]with[[:space:]]Rich-Resource[[:space:]]Prior/1413eb29-c8f6-4a25-be14-5832051cb9d8_origin.pdf filter=lfs diff=lfs merge=lfs -text
1034
+ 2024/High-Quality[[:space:]]Mesh[[:space:]]Blendshape[[:space:]]Generation[[:space:]]from[[:space:]]Face[[:space:]]Videos[[:space:]]via[[:space:]]Neural[[:space:]]Inverse[[:space:]]Rendering/423a7d18-23f8-4062-996d-dfb58ea1e97b_origin.pdf filter=lfs diff=lfs merge=lfs -text
1035
+ 2024/High-Resolution[[:space:]]and[[:space:]]Few-shot[[:space:]]View[[:space:]]Synthesis[[:space:]]from[[:space:]]Asymmetric[[:space:]]Dual-lens[[:space:]]Inputs/2424ce04-ac67-432a-9d07-9a67a4911b33_origin.pdf filter=lfs diff=lfs merge=lfs -text
1036
+ 2024/HoloADMM_[[:space:]]High-Quality[[:space:]]Holographic[[:space:]]Complex[[:space:]]Field[[:space:]]Recovery/73c3a5e8-ee84-456a-b78f-403171bd67af_origin.pdf filter=lfs diff=lfs merge=lfs -text
1037
+ 2024/Holodepth_[[:space:]]Programmable[[:space:]]Depth-Varying[[:space:]]Projection[[:space:]]via[[:space:]]Computer-Generated[[:space:]]Holography/077754b5-502f-45bf-8c9d-47a302b86e7f_origin.pdf filter=lfs diff=lfs merge=lfs -text
1038
+ 2024/How[[:space:]]Far[[:space:]]Can[[:space:]]a[[:space:]]1-Pixel[[:space:]]Camera[[:space:]]Go_[[:space:]]Solving[[:space:]]Vision[[:space:]]Tasks[[:space:]]using[[:space:]]Photoreceptors[[:space:]]and[[:space:]]Computationally[[:space:]]Designed[[:space:]]Visual[[:space:]]Morphology/a6aef91a-1f35-4b5b-8bf6-30221c36e3b7_origin.pdf filter=lfs diff=lfs merge=lfs -text
1039
+ 2024/How[[:space:]]Many[[:space:]]Unicorns[[:space:]]Are[[:space:]]in[[:space:]]This[[:space:]]Image_[[:space:]]A[[:space:]]Safety[[:space:]]Evaluation[[:space:]]Benchmark[[:space:]]for[[:space:]]Vision[[:space:]]LLMs/a0fa1e8d-a7ff-4cf4-9600-b8db40815fb7_origin.pdf filter=lfs diff=lfs merge=lfs -text
1040
+ 2024/How[[:space:]]Video[[:space:]]Meetings[[:space:]]Change[[:space:]]Your[[:space:]]Expression/1cdeca4d-7c5b-4b64-bc7d-65d81268fe50_origin.pdf filter=lfs diff=lfs merge=lfs -text
1041
+ 2024/How[[:space:]]to[[:space:]]Train[[:space:]]the[[:space:]]Teacher[[:space:]]Model[[:space:]]for[[:space:]]Effective[[:space:]]Knowledge[[:space:]]Distillation/9f5ef602-98c0-48ea-b8af-60431928bf0a_origin.pdf filter=lfs diff=lfs merge=lfs -text
1042
+ 2024/HowToCaption_[[:space:]]Prompting[[:space:]]LLMs[[:space:]]to[[:space:]]Transform[[:space:]]Video[[:space:]]Annotations[[:space:]]at[[:space:]]Scale/be5a97e1-8674-4151-9596-1e09dbb98980_origin.pdf filter=lfs diff=lfs merge=lfs -text
1043
+ 2024/Human[[:space:]]Hair[[:space:]]Reconstruction[[:space:]]with[[:space:]]Strand-Aligned[[:space:]]3D[[:space:]]Gaussians/f1333e8e-a41e-46f4-9e8f-8593ab3e17bd_origin.pdf filter=lfs diff=lfs merge=lfs -text
1044
+ 2024/Human[[:space:]]Motion[[:space:]]Forecasting[[:space:]]in[[:space:]]Dynamic[[:space:]]Domain[[:space:]]Shifts_[[:space:]]A[[:space:]]Homeostatic[[:space:]]Continual[[:space:]]Test-time[[:space:]]Adaptation[[:space:]]Framework/4c7b6b92-219b-4e51-9f92-3709a3605254_origin.pdf filter=lfs diff=lfs merge=lfs -text
1045
+ 2024/Human[[:space:]]Pose[[:space:]]Recognition[[:space:]]via[[:space:]]Occlusion-Preserving[[:space:]]Abstract[[:space:]]Images/f38afc6e-f0b9-4acc-b848-43b4cb78f922_origin.pdf filter=lfs diff=lfs merge=lfs -text
1046
+ 2024/Human-in-the-Loop[[:space:]]Visual[[:space:]]Re-ID[[:space:]]for[[:space:]]Population[[:space:]]Size[[:space:]]Estimation/d7d4f862-073c-43ae-9cd1-0a15c0d7fcdf_origin.pdf filter=lfs diff=lfs merge=lfs -text
2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/8a9d3b30-86dd-4aa7-b7f9-25429a73247f_content_list.json ADDED
@@ -0,0 +1,2209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Groma: Localized Visual Tokenization for Grounding Multimodal Large Language Models",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 228,
8
+ 141,
9
+ 776,
10
+ 186
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Chuofan Ma $^{1\\star}$ Yi Jiang $^{2\\dagger}$ Jiannan Wu $^{1}$ Zehuan Yuan $^{2}$ Xiaojuan Qi $^{1\\dagger}$",
17
+ "bbox": [
18
+ 215,
19
+ 210,
20
+ 772,
21
+ 229
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup>The University of Hong Kong <sup>2</sup>ByteDance Inc.",
28
+ "bbox": [
29
+ 328,
30
+ 238,
31
+ 663,
32
+ 253
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract. We introduce Groma, a Multimodal Large Language Model (MLLM) with grounded and fine-grained visual perception ability. Beyond holistic image understanding, Groma is adept at region-level tasks such as region captioning and visual grounding. Such capabilities are built upon a localized visual tokenization mechanism, where an image input is decomposed into regions of interest and subsequently encoded into region tokens. By integrating region tokens into user instructions and model responses, we seamlessly enable Groma to understand user-specified region inputs and ground its textual output to images. Besides, to enhance the grounded chat ability of Groma, we curate a visually grounded instruction dataset by leveraging the powerful GPT-4V and visual prompting techniques. Compared with MLLMs that rely on the language model or external module for localization, Groma consistently demonstrates superior performances in standard referring and grounding benchmarks, highlighting the advantages of embedding localization into image tokenization. Project page: https://groma-mlm.github.io/.",
39
+ "bbox": [
40
+ 259,
41
+ 282,
42
+ 743,
43
+ 506
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "image",
49
+ "img_path": "images/58d02bd59f329b88fe61f78e37ab77d0a7c6eada7213e009568cf1c19ad69ece.jpg",
50
+ "image_caption": [],
51
+ "image_footnote": [],
52
+ "bbox": [
53
+ 230,
54
+ 523,
55
+ 372,
56
+ 594
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "image",
62
+ "img_path": "images/9794bb866207cac0040be1d5fcbbb414959999bc15e5971edb0c958469bc252e.jpg",
63
+ "image_caption": [],
64
+ "image_footnote": [],
65
+ "bbox": [
66
+ 233,
67
+ 595,
68
+ 256,
69
+ 614
70
+ ],
71
+ "page_idx": 0
72
+ },
73
+ {
74
+ "type": "text",
75
+ "text": "Locate the the reflection of the frog.",
76
+ "bbox": [
77
+ 259,
78
+ 598,
79
+ 354,
80
+ 618
81
+ ],
82
+ "page_idx": 0
83
+ },
84
+ {
85
+ "type": "image",
86
+ "img_path": "images/edefd98a8aedd5c20436131512406211a0630bd648d70f35bec523be89cb5aab.jpg",
87
+ "image_caption": [],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 233,
91
+ 622,
92
+ 256,
93
+ 640
94
+ ],
95
+ "page_idx": 0
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "It's located at <region>.",
100
+ "bbox": [
101
+ 259,
102
+ 625,
103
+ 359,
104
+ 635
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "image",
110
+ "img_path": "images/fea1eeed14c8236f8d20d61631383d4d97570e6328d756db5eac002961e0cb34.jpg",
111
+ "image_caption": [],
112
+ "image_footnote": [],
113
+ "bbox": [
114
+ 385,
115
+ 523,
116
+ 540,
117
+ 595
118
+ ],
119
+ "page_idx": 0
120
+ },
121
+ {
122
+ "type": "image",
123
+ "img_path": "images/f3a76dc295f5d37d00883f753e803b3fe2377fb564f762e13dd8f40be3425c92.jpg",
124
+ "image_caption": [],
125
+ "image_footnote": [],
126
+ "bbox": [
127
+ 390,
128
+ 597,
129
+ 410,
130
+ 613
131
+ ],
132
+ "page_idx": 0
133
+ },
134
+ {
135
+ "type": "text",
136
+ "text": "Please give a brief description of <region>",
137
+ "bbox": [
138
+ 411,
139
+ 598,
140
+ 516,
141
+ 618
142
+ ],
143
+ "page_idx": 0
144
+ },
145
+ {
146
+ "type": "image",
147
+ "img_path": "images/5b4ab757935da310157709ea3e7d70316efb88e1ca4084158230a77c178c92ba.jpg",
148
+ "image_caption": [],
149
+ "image_footnote": [],
150
+ "bbox": [
151
+ 393,
152
+ 625,
153
+ 413,
154
+ 633
155
+ ],
156
+ "page_idx": 0
157
+ },
158
+ {
159
+ "type": "text",
160
+ "text": "A large dinosaur skeleton.",
161
+ "bbox": [
162
+ 416,
163
+ 625,
164
+ 524,
165
+ 635
166
+ ],
167
+ "page_idx": 0
168
+ },
169
+ {
170
+ "type": "image",
171
+ "img_path": "images/1bf8f86d71760f5279f8a0bff0dbd80ce9cfbfcd686e12554a84eae325d0c1cb.jpg",
172
+ "image_caption": [],
173
+ "image_footnote": [],
174
+ "bbox": [
175
+ 232,
176
+ 647,
177
+ 256,
178
+ 665
179
+ ],
180
+ "page_idx": 0
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "[grounding] Is it safe to drive like this?",
185
+ "bbox": [
186
+ 259,
187
+ 651,
188
+ 423,
189
+ 662
190
+ ],
191
+ "page_idx": 0
192
+ },
193
+ {
194
+ "type": "image",
195
+ "img_path": "images/41eb81bc1ed13215f1bb77185b82611fabefcd8e6c60d87165955485f803135d.jpg",
196
+ "image_caption": [
197
+ "Fig. 1: Groma is a multimodal large language model with exceptional region understanding and visual grounding capabilities. It can take user-defined region inputs (boxes) as well as generate long-form responses that are grounded to visual context."
198
+ ],
199
+ "image_footnote": [],
200
+ "bbox": [
201
+ 230,
202
+ 664,
203
+ 372,
204
+ 737
205
+ ],
206
+ "page_idx": 0
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "It's not advisable. The man is holding a cup in one hand and talking on the phone, which means he's not using both hands on the steering wheel. This could be a distraction and increase the risk of an accident.",
211
+ "bbox": [
212
+ 382,
213
+ 667,
214
+ 537,
215
+ 737
216
+ ],
217
+ "page_idx": 0
218
+ },
219
+ {
220
+ "type": "image",
221
+ "img_path": "images/b69fca9e505551c47f8355ba3b22f00c949c5efdc9584c48eafe89f8b36d9190.jpg",
222
+ "image_caption": [],
223
+ "image_footnote": [],
224
+ "bbox": [
225
+ 550,
226
+ 522,
227
+ 767,
228
+ 642
229
+ ],
230
+ "page_idx": 0
231
+ },
232
+ {
233
+ "type": "image",
234
+ "img_path": "images/da7c0faff23d3cefbcb43e0fd92cf7c8532eae82ee740152be8da4268bb7679b.jpg",
235
+ "image_caption": [],
236
+ "image_footnote": [],
237
+ "bbox": [
238
+ 557,
239
+ 648,
240
+ 576,
241
+ 665
242
+ ],
243
+ "page_idx": 0
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "[grounding] Can you describe this image in details?",
248
+ "bbox": [
249
+ 578,
250
+ 651,
251
+ 753,
252
+ 670
253
+ ],
254
+ "page_idx": 0
255
+ },
256
+ {
257
+ "type": "image",
258
+ "img_path": "images/1c35278bf0a6f8b10bd27b00ac8d52de40d5526b18e84d0570b3d3af8289714a.jpg",
259
+ "image_caption": [],
260
+ "image_footnote": [],
261
+ "bbox": [
262
+ 560,
263
+ 674,
264
+ 576,
265
+ 683
266
+ ],
267
+ "page_idx": 0
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "In this image, we see a woman sitting on a concrete bench working on her laptop. She's surrounded by a green bag and a white bicycle that's leaning against the bench. Behind her, there's a large brick building and a tree.",
272
+ "bbox": [
273
+ 578,
274
+ 675,
275
+ 759,
276
+ 733
277
+ ],
278
+ "page_idx": 0
279
+ },
280
+ {
281
+ "type": "page_footnote",
282
+ "text": "* Part of the work was done during Chuofan's internship at ByteDance.",
283
+ "bbox": [
284
+ 217,
285
+ 810,
286
+ 697,
287
+ 824
288
+ ],
289
+ "page_idx": 0
290
+ },
291
+ {
292
+ "type": "page_footnote",
293
+ "text": "† Corresponding authors",
294
+ "bbox": [
295
+ 220,
296
+ 825,
297
+ 387,
298
+ 839
299
+ ],
300
+ "page_idx": 0
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "1 Introduction",
305
+ "text_level": 1,
306
+ "bbox": [
307
+ 217,
308
+ 143,
309
+ 375,
310
+ 160
311
+ ],
312
+ "page_idx": 1
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Multimodal Large Language Models (MLLMs) have spread the sparks of artificial general intelligence [5] from language to the visual domain [13,33,50,57,67]. Owing to the foundational capabilities of Large Language Models (LLMs) [12,36, 37,45,46], MLLMs excel in vision-language tasks that require advanced understanding and reasoning, such as image captioning and visual question answering. However, despite these achievements, current MLLMs typically fall short of localization capabilities, thus cannot ground understanding to the visual context. Such limitations constrains the model from fulfilling its potential in real-world applications like robotics, autonomous driving, and augmented reality.",
317
+ "bbox": [
318
+ 212,
319
+ 185,
320
+ 787,
321
+ 321
322
+ ],
323
+ "page_idx": 1
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "In light of the gap, one stream of research attempts to augment the LLM to directly output quantized object coordinates for localization [3,7,8,39,50,58] (Fig. 2(a)). While this method is simple in design, the substantial computational demands of LLMs make it challenging to process high-resolution image inputs, which are essential for accurate localization. Besides, the nature of sequence outputs in LLMs is not well-suited for dense prediction tasks such as segmentation. These concerns elicit another stream of research, which incorporates an external localization module (e.g., SAM [22]) to decode bounding boxes or masks [26,40,43,62] (Fig. 2(b)). This approach circumvents aforementioned issues, but introduces additional model complexity.",
328
+ "bbox": [
329
+ 212,
330
+ 323,
331
+ 787,
332
+ 474
333
+ ],
334
+ "page_idx": 1
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "The above motivates us to explore a new paradigm for grounded MLLMs. Drawing inspiration from open-vocabulary object detection [66], we decompose the grounding task into two sub-problems: discovering the object (localization) and relating the object to texts (recognition). We notice that localization alone requires little semantic understanding but demands perceptual skills, which is typically out of the scope of an LLM's expertise. This inspires us to decouple localization and recognition within MLLMs. But instead of using external modules, we propose exploiting the spatial understanding capability in the visual tokenizer of MLLMs for localization (Fig. 2(c)). This perceive-then-understand design also resembles human vision process.",
339
+ "bbox": [
340
+ 212,
341
+ 476,
342
+ 787,
343
+ 628
344
+ ],
345
+ "page_idx": 1
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "Building upon this concept, we introduce Groma<sup>1</sup> (Grounded Multimodal Assistant), an MLLM with localized and fine-grained visual perception abilities. Specifically, Groma incorporates region tokenization alongside standard image tokenization to identify and encode potential regions of interest (ROIs) into region tokens. During this process, location information is extracted from the image and associated with region tokens, with each region token anchored to the underlying ROI. This allows Groma to ground its textual output by simply referring to region tokens, alleviating the need for the LLM to meticulously regress object coordinates. Moreover, the tokenizer of Groma can also encode user-specified region inputs (i.e., bounding boxes) into region tokens, which are directly inserted into user instructions to initiate referential dialogue.",
350
+ "bbox": [
351
+ 212,
352
+ 628,
353
+ 787,
354
+ 796
355
+ ],
356
+ "page_idx": 1
357
+ },
358
+ {
359
+ "type": "page_number",
360
+ "text": "2",
361
+ "bbox": [
362
+ 217,
363
+ 114,
364
+ 228,
365
+ 126
366
+ ],
367
+ "page_idx": 1
368
+ },
369
+ {
370
+ "type": "header",
371
+ "text": "Ma et al., 2024",
372
+ "bbox": [
373
+ 271,
374
+ 114,
375
+ 374,
376
+ 127
377
+ ],
378
+ "page_idx": 1
379
+ },
380
+ {
381
+ "type": "page_footnote",
382
+ "text": "<sup>1</sup> In Latin, Groma refers to an instrument used for accurate measurement, which implies our focus on accurate localization for MLLMs.",
383
+ "bbox": [
384
+ 217,
385
+ 810,
386
+ 785,
387
+ 839
388
+ ],
389
+ "page_idx": 1
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "By settling localization to the image tokenization process, Groma circumvents the heavy computation of LLMs when handling high-resolution input. Specifically, Groma uses high-resolution images for tokenizer input but downsamples image tokens for LLM input, which saves computation without sacrificing localization accuracy. Besides, unlike methods adopting separate designs for modeling grounding outputs and referring inputs [43,62], Groma seamlessly unifies the two capabilities with the use of region tokens.",
394
+ "bbox": [
395
+ 212,
396
+ 146,
397
+ 782,
398
+ 252
399
+ ],
400
+ "page_idx": 2
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "From the data perspective, to improve the localized understanding of Groma, we adopt an extensive collection of datasets with region-level annotations for training, which encompasses a range of region semantics from objects and relationships to detailed region descriptions. In addition, to remedy the lack of long-form grounded data, we construct a visually grounded chat dataset called Groma Instruct for instruction finetuning. Groma Instruct is the first grounded chat dataset constructed with both visual and textual prompts, leveraging the powerful GPT-4V for data generation.",
405
+ "bbox": [
406
+ 212,
407
+ 252,
408
+ 784,
409
+ 372
410
+ ],
411
+ "page_idx": 2
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "Our comprehensive experiments demonstrate the superiority of the design of Groma, with results showing that it outperforms all comparable MLLMs on established referring and grounding benchmarks. We also showcase that Groma maintains strong image-level understanding and reasoning abilities on the conversational VQA benchmark. Moreover, to assess the ability to localize multiple, diverse, and variably-sized objects, we adapt the LVIS [15] detection benchmark for object grounding evaluation. On this challenging benchmark, Groma surpasses alternative methods by a significant margin (over $10\\%$ AR), highlighting its robust and precise localization capabilities.",
416
+ "bbox": [
417
+ 212,
418
+ 373,
419
+ 785,
420
+ 508
421
+ ],
422
+ "page_idx": 2
423
+ },
424
+ {
425
+ "type": "image",
426
+ "img_path": "images/490a6ee3777a53b6d0fdf04ebce8c57373c655b0a9685460f4a9f93b3e62d6c9.jpg",
427
+ "image_caption": [
428
+ "(a)"
429
+ ],
430
+ "image_footnote": [],
431
+ "bbox": [
432
+ 215,
433
+ 535,
434
+ 380,
435
+ 621
436
+ ],
437
+ "page_idx": 2
438
+ },
439
+ {
440
+ "type": "image",
441
+ "img_path": "images/d530591d360095a11deba732427672d0779260efda4534f731ffb4f50eca85ed.jpg",
442
+ "image_caption": [
443
+ "(b)",
444
+ "Fig. 2: Different paradigms of grounded MLLMs. We mark the modules for localization with $\\dagger$ . (a) LLM for localization (e.g., Kosmos-2 [39] and Shikra [8]); (b) External modules for localization (e.g., Lisa [26]); and (c) Localized visual tokenization (Ours)."
445
+ ],
446
+ "image_footnote": [],
447
+ "bbox": [
448
+ 413,
449
+ 537,
450
+ 584,
451
+ 622
452
+ ],
453
+ "page_idx": 2
454
+ },
455
+ {
456
+ "type": "image",
457
+ "img_path": "images/2d0a085ffccc2ceba4791dc374ca62549bd117816833c56b6fed620acd597352.jpg",
458
+ "image_caption": [
459
+ "(c)"
460
+ ],
461
+ "image_footnote": [],
462
+ "bbox": [
463
+ 617,
464
+ 537,
465
+ 785,
466
+ 619
467
+ ],
468
+ "page_idx": 2
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "2 Related Work",
473
+ "text_level": 1,
474
+ "bbox": [
475
+ 215,
476
+ 750,
477
+ 387,
478
+ 763
479
+ ],
480
+ "page_idx": 2
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "Image-level MLLMs. Large language models (LLMs) such as GPT series [1, 53] and LLaMA [45,46] have recently undergone rapid development and sparked a revolution in the field of natural language processing. Such progress inspires the community to extend the foundational capabilities of LLMs to the visual",
485
+ "bbox": [
486
+ 212,
487
+ 779,
488
+ 784,
489
+ 839
490
+ ],
491
+ "page_idx": 2
492
+ },
493
+ {
494
+ "type": "header",
495
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
496
+ "bbox": [
497
+ 395,
498
+ 114,
499
+ 732,
500
+ 127
501
+ ],
502
+ "page_idx": 2
503
+ },
504
+ {
505
+ "type": "page_number",
506
+ "text": "3",
507
+ "bbox": [
508
+ 774,
509
+ 116,
510
+ 784,
511
+ 126
512
+ ],
513
+ "page_idx": 2
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "domain, giving birth to multimodal large language models (MLLMs). The pioneering works [2, 13, 27, 28, 57, 62, 67] of MLLMs typically follow a tripartite architecture, comprising a visual encoder, a vision-language connector, and a large language model. Specifically, BLIP-2 [28] and Flamingo [2] first propose the Q-Former/Resampler to bridge vision and language. LLaVA [62] and MiniGPT4 [67] streamline this vision-language connector to a linear layer, and introduce visual instruction tuning to enhance the instruction-following ability of MLLMs. Following works [10, 50] further showcase the immense potential of MLLMs by scaling up the visual components to the magnitude as LLMs. While these works have exhibited impressive visual understanding capabilities, they are predominantly constrained to image-level tasks, such as image captioning and image visual question answering. This necessitates the research into region-level MLLMs, which unlock more nuanced and granular visual-language interactions.",
518
+ "bbox": [
519
+ 212,
520
+ 146,
521
+ 787,
522
+ 343
523
+ ],
524
+ "page_idx": 3
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "Region-level MLLMs. In pursuit of fine-grained and grounded image understanding, recent studies further integrate region-level data into the training of MLLMs [7, 8, 39, 51, 52, 60, 65]. In particular, to model box inputs and outputs, Kosmos-2 [39] and Shikra [8] directly quantize bounding boxes into discrete location tokens or numeric representation of positions. GPT4RoI [64] and RegionGPT [14] use a simple pooling operation to extract the features within boxes or masks as the region representations. While Ferret [58] proposes a spatial-aware visual sampler to deal with free-form region inputs. Besides, to achieve more accurate localization, some works [26, 43, 63] resort to off-the-shelf models for pixel-level grounding. For instance, LISA [26] takes the segmentation token generated by the MLLM as the prompts for SAM [22] to produce the segmentation masks. GLaMM [43] and LLaVA-Ground [62] further advance the concept and enable grounded conversation generation. Our work shares the same focus with the aforementioned methods on region-level understanding and grounding. Yet, we distinguish ourselves from existing studies by proposing a novel perspective in enhancing the localization ability of MLLMs.",
529
+ "bbox": [
530
+ 212,
531
+ 361,
532
+ 787,
533
+ 603
534
+ ],
535
+ "page_idx": 3
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "3 Method",
540
+ "text_level": 1,
541
+ "bbox": [
542
+ 215,
543
+ 622,
544
+ 330,
545
+ 636
546
+ ],
547
+ "page_idx": 3
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "In this section, we present Groma, a grounded multimodal large language model capable of understanding user-defined region inputs and generating visually grounded outputs. We first illustrate the model architecture of Groma in Sec. 3.1. Then we introduce how to format region input and output in Sec. 3.2. Finally, we detail the learning pipelines Sec. 3.3.",
552
+ "bbox": [
553
+ 212,
554
+ 648,
555
+ 787,
556
+ 726
557
+ ],
558
+ "page_idx": 3
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "3.1 Model Architecture",
563
+ "text_level": 1,
564
+ "bbox": [
565
+ 215,
566
+ 743,
567
+ 426,
568
+ 757
569
+ ],
570
+ "page_idx": 3
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "As illustrated in Fig. 3, Groma primarily consists of (1) an image encoder for scene-level image tokenization, (2) a region proposer for discovering regions of interest, (3) a region encoder for region-level image tokenization, and (4) a large language model for modeling multimodal input and output. We detail each component in the following paragraphs.",
575
+ "bbox": [
576
+ 212,
577
+ 763,
578
+ 787,
579
+ 840
580
+ ],
581
+ "page_idx": 3
582
+ },
583
+ {
584
+ "type": "page_number",
585
+ "text": "4",
586
+ "bbox": [
587
+ 217,
588
+ 114,
589
+ 228,
590
+ 126
591
+ ],
592
+ "page_idx": 3
593
+ },
594
+ {
595
+ "type": "header",
596
+ "text": "Ma et al., 2024",
597
+ "bbox": [
598
+ 271,
599
+ 114,
600
+ 374,
601
+ 128
602
+ ],
603
+ "page_idx": 3
604
+ },
605
+ {
606
+ "type": "image",
607
+ "img_path": "images/bc368c885623cf122996879d6b68f5fec2b0803d110c6aa67d19bbfffee55fba.jpg",
608
+ "image_caption": [
609
+ "Fig. 3: Overview of Groma. Groma encodes the image input into both global image tokens and local region tokens. For region tokenization, a general-purpose region proposer is introduced to discover regions of interest, followed by a light-weight region encoder. By integrating region tokens into user instructions and model responses, Groma unlocks the referring and grounding abilities of MLLMs."
610
+ ],
611
+ "image_footnote": [],
612
+ "bbox": [
613
+ 215,
614
+ 143,
615
+ 787,
616
+ 252
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "Image Encoder. Groma employs a pretrained DINOv2 [38] model as the image encoder with the input image resolution set to $448 \\times 448$ . Compared with the commonly adopted CLIP [42] visual encoder, DINOv2 is preferred in this work for its compatibility with high-resolution inputs and fine-grained features for localization. However, the use of higher-resolution images leads to extended sequences of visual input for the language model, e.g., 1024 tokens in this case. To save computations, we further concatenate every four neighbor patch tokens into a single token following MiniGPT-v2 [7]. But slightly different from [7], we merge tokens adjacent in 2D instead of 1D, which yields better performance.",
623
+ "bbox": [
624
+ 212,
625
+ 359,
626
+ 787,
627
+ 497
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Region Proposer. To obtain localized understanding of the image, Groma innovatively incorporates a region proposer into the image tokenization process. Specifically, the region proposer is implemented as a class-agnostic detector head using the Deformable DETR (DDETR) transformer [68]. The original classification head of DDETR is replaced by a binary classifier to score region proposals based on their localization quality. Inspired by ViTDet [29], we extract feature maps from the last 4 layers of the image encoder, and rescale these feature maps to construct a hierarchical feature pyramid as the input to the region proposer. For each image, the region proposer generates 300 region proposals, which are then filtered by NMS and objectness scores before fed into the region encoder.",
634
+ "bbox": [
635
+ 212,
636
+ 516,
637
+ 787,
638
+ 670
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "Region Encoder. The region encoder translates region proposals (i.e., bounding boxes), coming from both user input and the region proposer, into region tokens. Akin to the previous step, we select feature maps from the last three layers of the image encoder to create a hierarchical feature pyramid. A multiscale ROAlign [16] module as implemented in [43, 64] is utilized to crop and fuse these hierarchical features into unified region tokens. Compared with alternative ways to represent regional inputs, such as numerical representation of positions [8] and discrete location tokens [7, 39], the region token representation offers distinct benefits as it is semantically aligned with the underlying region, which renders it more intuitive for the language model to comprehend.",
645
+ "bbox": [
646
+ 212,
647
+ 688,
648
+ 789,
649
+ 840
650
+ ],
651
+ "page_idx": 4
652
+ },
653
+ {
654
+ "type": "header",
655
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
656
+ "bbox": [
657
+ 395,
658
+ 114,
659
+ 732,
660
+ 127
661
+ ],
662
+ "page_idx": 4
663
+ },
664
+ {
665
+ "type": "page_number",
666
+ "text": "5",
667
+ "bbox": [
668
+ 774,
669
+ 116,
670
+ 784,
671
+ 126
672
+ ],
673
+ "page_idx": 4
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "LLM. We adopt pretrained Vicuna [12] as the language model of Groma. In particular, we instantiate Groma with the 7B version of Vicuna. Besides, we follow LLaVA v1.5 [32] to use an MLP layer to project the image tokens and region tokens into the feature space of the LLM.",
678
+ "bbox": [
679
+ 212,
680
+ 146,
681
+ 787,
682
+ 207
683
+ ],
684
+ "page_idx": 5
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "3.2 Input and Output Formatting",
689
+ "text_level": 1,
690
+ "bbox": [
691
+ 214,
692
+ 224,
693
+ 511,
694
+ 242
695
+ ],
696
+ "page_idx": 5
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "Beyond textual only instructions and responses, Groma offers the flexibility to accept user-specified regions as input (referring) and generate visually grounded answers (grounding). Specifically, although different in task formulations, both referring and grounding are unified into one format with the use of region tokens.",
701
+ "bbox": [
702
+ 212,
703
+ 246,
704
+ 787,
705
+ 308
706
+ ],
707
+ "page_idx": 5
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "Grounding Output. Remember in the tokenization process, each region token is inherently anchored to a concrete location in the image, corresponding to its region proposal. This connection allows the language model to ground its text output to particular regions in the image by simply referring to the associated region tokens. However, as region tokens are continuous embeddings, they cannot be directly integrated into the codebook of the language model and referenced in the text output. To bridge the gap, we further introduce a set of proxy tokens “ $\\langle \\mathbf{r}_1\\rangle$ , $\\langle \\mathbf{r}_2\\rangle$ , ..., $\\langle \\mathbf{r}_n\\rangle$ ” to register region tokens. As illustrated below, Groma can refer to any region in the output by addressing the proxy token.",
712
+ "bbox": [
713
+ 212,
714
+ 325,
715
+ 787,
716
+ 464
717
+ ],
718
+ "page_idx": 5
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "User: Here is an image with region crops from it. Image: <image>. Regions: <r1><region>, <r2><region>, ..., <rn><region>. [grounding] Please briefly describe the image content.",
723
+ "bbox": [
724
+ 240,
725
+ 478,
726
+ 761,
727
+ 521
728
+ ],
729
+ "page_idx": 5
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "Groma: <p>A dog</p> <roi><r4></roi> is jumping to catch <p>a frisbee</p> <roi><r7></roi> over <p>a fallen man</p> <roi><r1></roi>.",
734
+ "bbox": [
735
+ 240,
736
+ 523,
737
+ 761,
738
+ 551
739
+ ],
740
+ "page_idx": 5
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "<image> and <region> stand for placeholders of image tokens and region tokens, which are replaced by corresponding visual tokens before being fed into the LLM. <p> and </p> marks the start and end of the grounded phrase. <roi> and </roi> are used to enclose the referenced regions. In addition, we use a special token [grounding] to inform the model to generate grounded responses.",
745
+ "bbox": [
746
+ 214,
747
+ 573,
748
+ 787,
749
+ 650
750
+ ],
751
+ "page_idx": 5
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "Referring Input. For a region pointed out by the user, we treat it the same as region proposals from the region proposer, i.e., encoding it into a region token and assigning a proxy token to it. This allows us to incorporate user-specified regions into our instructions by inserting corresponding region tokens. A simple example of referential dialogue in Groma is given below, where $\\langle r_{10} \\rangle$ comes from user-specified region input.",
756
+ "bbox": [
757
+ 212,
758
+ 667,
759
+ 787,
760
+ 758
761
+ ],
762
+ "page_idx": 5
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "User: Here is an image with region crops from it. Image: <image>. Regions: <r1><region>, <r2><region>, ..., <rn><region>. What is <r10><region?>",
767
+ "bbox": [
768
+ 240,
769
+ 773,
770
+ 761,
771
+ 803
772
+ ],
773
+ "page_idx": 5
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "Groma: A cute cat sleeping on a wooden bench.",
778
+ "bbox": [
779
+ 240,
780
+ 806,
781
+ 568,
782
+ 820
783
+ ],
784
+ "page_idx": 5
785
+ },
786
+ {
787
+ "type": "page_number",
788
+ "text": "6",
789
+ "bbox": [
790
+ 217,
791
+ 114,
792
+ 228,
793
+ 126
794
+ ],
795
+ "page_idx": 5
796
+ },
797
+ {
798
+ "type": "header",
799
+ "text": "Ma et al., 2024",
800
+ "bbox": [
801
+ 271,
802
+ 114,
803
+ 374,
804
+ 127
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "3.3 Model Training",
811
+ "text_level": 1,
812
+ "bbox": [
813
+ 215,
814
+ 146,
815
+ 392,
816
+ 162
817
+ ],
818
+ "page_idx": 6
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "The training of Groma is partitioned into three stages: $(i)$ detection pretraining for localization ability, $(ii)$ alignment pretraining for image-level and region-level vision-language alignment, $(iii)$ instruction finetuning for enhanced conversation capability. Tab. 1 enumerates the datasets used at different training stages. Additionally, we provide the instruction templates used to convert task-specified datasets to instruction following format in Appendix.",
823
+ "bbox": [
824
+ 212,
825
+ 167,
826
+ 787,
827
+ 258
828
+ ],
829
+ "page_idx": 6
830
+ },
831
+ {
832
+ "type": "table",
833
+ "img_path": "images/b5fd167e4acc7ab6063a03c8663577d54033efd3b52569ca79afbdc777d58feb.jpg",
834
+ "table_caption": [
835
+ "Table 1: Datasets used at three training stages. RefCOCO/g/ $^+$ is short for RefCOCO, RefCOCO+, and RefCOCOg. REC means referring expression comprehension."
836
+ ],
837
+ "table_footnote": [],
838
+ "table_body": "<table><tr><td>Training stage</td><td>Data types</td><td>Datasets</td></tr><tr><td>Detection pretraining</td><td>Detection</td><td>COCO, Objects365, OpenImages, V3Det, SA1B</td></tr><tr><td rowspan=\"4\">Alignment pretraining</td><td>Image caption</td><td>ShareGPT-4V-PT</td></tr><tr><td>Grounded caption</td><td>Flickr30k Entities</td></tr><tr><td>Region caption</td><td>Visual Genome, RefCOCOg</td></tr><tr><td>REC</td><td>COCO, RefCOCO/g/+, Grit-20m</td></tr><tr><td rowspan=\"4\">Instruction finetuning</td><td>Grounded caption</td><td>Flickr30k Entities</td></tr><tr><td>Region caption</td><td>Visual Genome, RefCOCOg</td></tr><tr><td>REC</td><td>COCO, RefCOCO/g/+</td></tr><tr><td>Instruction following</td><td>Groma Instruct, LLaVA Instruct, ShareGPT-4V</td></tr></table>",
839
+ "bbox": [
840
+ 220,
841
+ 309,
842
+ 782,
843
+ 470
844
+ ],
845
+ "page_idx": 6
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Detection Pretraining. This training stage only involves the image encoder and the region proposer, which collectively constitute a DDETR-like detector. The image encoder is kept frozen during training. To endow the region proposer with localization capability, an extensive collection of detection datasets, including COCO [30], Objects365 [44], OpenImages [25], and V3Det [47], is utilized for large-scale pretraining. Notably, category information is omitted from the training process, with a primary focus on box supervision.",
850
+ "bbox": [
851
+ 212,
852
+ 488,
853
+ 785,
854
+ 594
855
+ ],
856
+ "page_idx": 6
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Considering traditional detection data are typically limited to object-level annotations, we complement the training with a two million subset of SA1B [23] data filtered by GLEE [19]. Original mask annotations of SA1B are transformed into bounding boxes for consistency. The inclusion of this enriched dataset encourages the region proposer to produce region proposals encompassing not only object instances but also their constituent parts and various background stuff.",
861
+ "bbox": [
862
+ 212,
863
+ 594,
864
+ 785,
865
+ 686
866
+ ],
867
+ "page_idx": 6
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Alignment Pretraining. To align vision and language feature space of Groma, we pretrain the model on a wide range of vision-language tasks. Specifically, for image-level alignment, we leverage ShareGPT-4V-PT [9] for detailed image captioning. For region-level alignment, we engage COCO [30], RefCOCO [21], RefCOCO+ [59], RefCOCOg [35], and Grit-20m [39] for referring expression comprehension (REC), Visual Genome [24] for region captioning, and Flickr30k Entities [41] for grounded caption generation. To maintain training efficiency, we focus finetuning efforts on the MLP projection layer and the region encoder, while other modules are kept frozen throughout the training.",
872
+ "bbox": [
873
+ 212,
874
+ 703,
875
+ 787,
876
+ 840
877
+ ],
878
+ "page_idx": 6
879
+ },
880
+ {
881
+ "type": "header",
882
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
883
+ "bbox": [
884
+ 395,
885
+ 114,
886
+ 732,
887
+ 127
888
+ ],
889
+ "page_idx": 6
890
+ },
891
+ {
892
+ "type": "page_number",
893
+ "text": "7",
894
+ "bbox": [
895
+ 774,
896
+ 116,
897
+ 784,
898
+ 126
899
+ ],
900
+ "page_idx": 6
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "Instruction Finetuning. Based on alignment pretraining, we refine the training data to focus exclusively on high-quality datasets and proceed to unfreeze the language model for finetuning purposes. At this stage, LLaVA Instruct [33] and ShareGPT-4V [9] are incorporated to improve the conversational and instruction-following capabilities of Groma². Besides, we curate a high-quality grounded chat dataset, named Groma Instruct (see next section for more details), to facilitate synergy of chatting and grounding abilities of Groma.",
905
+ "bbox": [
906
+ 212,
907
+ 146,
908
+ 787,
909
+ 252
910
+ ],
911
+ "page_idx": 7
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "Discussions. A major difference between the training of Groma and current MLLMs is the integration of dedicated detection pretraining, which endows Groma with robust and precise localization ability. Thanks to the decoupled architecture of location and understanding within Groma, we circumvent the need to involve the LLM during detection pretraining. Such a strategic design allows Groma to benefit from pretraining on millions of bounding box annotations — a task that would be computationally prohibitive for classic MLLMs.",
916
+ "bbox": [
917
+ 212,
918
+ 275,
919
+ 787,
920
+ 381
921
+ ],
922
+ "page_idx": 7
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "4 GPT4V-assisted Grounded Conversation Generation",
927
+ "text_level": 1,
928
+ "bbox": [
929
+ 214,
930
+ 404,
931
+ 759,
932
+ 422
933
+ ],
934
+ "page_idx": 7
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "Visual dialogue data have proven to be crucial in advancing the conversational capability of the MLLM as a visual chatbot. Previous methods mostly rely on coarse-grained image descriptions to derive free-form visual dialogues, which typically lack fine-grained region details and precise location information [33, 67]. For grounded MLLMs, such free-form dialogue data are shown to be insufficient to enable the model to generate long-form grounded responses [62] - as the format of grounded responses significantly deviates from that of normal responses, it could be challenging for the grounded MLLM to generalize its grounding capability to long-form conversations.",
939
+ "bbox": [
940
+ 212,
941
+ 436,
942
+ 787,
943
+ 571
944
+ ],
945
+ "page_idx": 7
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "To bridge the gap, we have meticulously curated a dataset containing 30k visually grounded conversations for instruction finetuning, named Groma Instruct. An illustrative example from Groma Instruct is showcased in Fig. 4. Specifically, we select images with dense region annotations from Visual Genome [24] (VG), and take the following steps to construct grounded conversations with the assistance of advanced GPT-4V model:",
950
+ "bbox": [
951
+ 212,
952
+ 574,
953
+ 787,
954
+ 664
955
+ ],
956
+ "page_idx": 7
957
+ },
958
+ {
959
+ "type": "list",
960
+ "sub_type": "text",
961
+ "list_items": [
962
+ "- First, we remove highly overlapped regions (bounding boxes) from VG annotations, normally leaving 3-10 regions of interest for each image. Then we adapt the visual prompting techniques from SoM [56] to overlay a bright numeric marker at the center of each region. Using this marked image as input unleashes the grounding capabilities of GPT-4V - it can easily make references to specific image regions by addressing the corresponding numbers.",
963
+ "- Besides visual input, we supply GPT-4V with rich region descriptions, image descriptions, and image-based Q&A pairs, coming from COCO [30] and VG"
964
+ ],
965
+ "bbox": [
966
+ 214,
967
+ 672,
968
+ 787,
969
+ 801
970
+ ],
971
+ "page_idx": 7
972
+ },
973
+ {
974
+ "type": "page_number",
975
+ "text": "8",
976
+ "bbox": [
977
+ 217,
978
+ 114,
979
+ 228,
980
+ 126
981
+ ],
982
+ "page_idx": 7
983
+ },
984
+ {
985
+ "type": "header",
986
+ "text": "Ma et al., 2024",
987
+ "bbox": [
988
+ 271,
989
+ 114,
990
+ 374,
991
+ 128
992
+ ],
993
+ "page_idx": 7
994
+ },
995
+ {
996
+ "type": "page_footnote",
997
+ "text": "<sup>2</sup> Since the detailed description data in LLaVA Instruct contains severe hallucinations, we replace it with ShareGPT-4V as in [9].",
998
+ "bbox": [
999
+ 217,
1000
+ 810,
1001
+ 785,
1002
+ 840
1003
+ ],
1004
+ "page_idx": 7
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "annotations<sup>3</sup>. While such textual context is optional for GPT-4V input, we empirically find it useful to reduce hallucinations in generated contents and resolve potential ambiguities in visual prompts<sup>4</sup>.",
1009
+ "bbox": [
1010
+ 230,
1011
+ 146,
1012
+ 782,
1013
+ 191
1014
+ ],
1015
+ "page_idx": 8
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "- Inspired by prior studies on visual chat data construction [9, 33, 48, 67], we further provide GPT-4V with manually designed grounded chat as context examples. This provokes the in-context-learning ability of GPT-4V to generate grounded conversations in a uniform format. We also take a post-processing stage to filter out conversations not following the pre-defined format.",
1020
+ "bbox": [
1021
+ 215,
1022
+ 199,
1023
+ 784,
1024
+ 275
1025
+ ],
1026
+ "page_idx": 8
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Region descriptions:",
1031
+ "text_level": 1,
1032
+ "bbox": [
1033
+ 243,
1034
+ 309,
1035
+ 336,
1036
+ 319
1037
+ ],
1038
+ "page_idx": 8
1039
+ },
1040
+ {
1041
+ "type": "list",
1042
+ "sub_type": "text",
1043
+ "list_items": [
1044
+ "[1] dog walking on beach",
1045
+ "[2] surfboard under woman's arm",
1046
+ "[3] woman walking in wetsuit",
1047
+ "[4] sand on ocean shore",
1048
+ "[5] ocean with rolling waves",
1049
+ "[6] hazy mountains on horizon"
1050
+ ],
1051
+ "bbox": [
1052
+ 245,
1053
+ 321,
1054
+ 385,
1055
+ 387
1056
+ ],
1057
+ "page_idx": 8
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Q&A pairs:",
1062
+ "text_level": 1,
1063
+ "bbox": [
1064
+ 421,
1065
+ 309,
1066
+ 475,
1067
+ 319
1068
+ ],
1069
+ "page_idx": 8
1070
+ },
1071
+ {
1072
+ "type": "list",
1073
+ "sub_type": "text",
1074
+ "list_items": [
1075
+ "What is the surfer holding?",
1076
+ "Surf board.",
1077
+ "$= = =$",
1078
+ "What is the dog doing?",
1079
+ "Following its master.",
1080
+ "···"
1081
+ ],
1082
+ "bbox": [
1083
+ 421,
1084
+ 321,
1085
+ 535,
1086
+ 386
1087
+ ],
1088
+ "page_idx": 8
1089
+ },
1090
+ {
1091
+ "type": "image",
1092
+ "img_path": "images/c829acfb51442a9674d283be707b3586b0ad3d1cfb0ff0685636cb81974e46f4.jpg",
1093
+ "image_caption": [
1094
+ "Fig. 4: A data example from Groma Instruct. The top part demonstrates the image input with visual prompts and contextual text input to GPT-4V. Notably, all numbered regions have corresponding bounding box annotations, which are not shown in the image. The bottom part is the grounded conversations generated by GPT-4V."
1095
+ ],
1096
+ "image_footnote": [],
1097
+ "bbox": [
1098
+ 601,
1099
+ 305,
1100
+ 751,
1101
+ 468
1102
+ ],
1103
+ "page_idx": 8
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Image Descriptions:",
1108
+ "text_level": 1,
1109
+ "bbox": [
1110
+ 243,
1111
+ 398,
1112
+ 334,
1113
+ 409
1114
+ ],
1115
+ "page_idx": 8
1116
+ },
1117
+ {
1118
+ "type": "list",
1119
+ "sub_type": "text",
1120
+ "list_items": [
1121
+ "A woman in a wetsuit carries a surfboard and walks with a dog.",
1122
+ "A lady in a wet suit walking with a dog on a beach.",
1123
+ "A woman carries a surf board as a dog walks beside her.",
1124
+ "A woman and her dog are walking away from the ocean with a surfboard.",
1125
+ "A person is walking with a dog and a surfboard."
1126
+ ],
1127
+ "bbox": [
1128
+ 245,
1129
+ 411,
1130
+ 547,
1131
+ 465
1132
+ ],
1133
+ "page_idx": 8
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Generated Grounded Conversations:",
1138
+ "text_level": 1,
1139
+ "bbox": [
1140
+ 243,
1141
+ 482,
1142
+ 408,
1143
+ 491
1144
+ ],
1145
+ "page_idx": 8
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Question: Can you describe to me what you see in this image?",
1150
+ "bbox": [
1151
+ 245,
1152
+ 493,
1153
+ 501,
1154
+ 505
1155
+ ],
1156
+ "page_idx": 8
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Answer: Sure, I see a beach scene with $\\langle \\mathrm{p} \\rangle$ a woman $\\langle \\mathrm{p} \\rangle$ [3] wearing a wetsuit. She's walking near the water's edge, and there's $\\langle \\mathrm{p} \\rangle$ a dog $\\langle \\mathrm{p} \\rangle$ [1] walking alongside her. The woman $\\langle \\mathrm{p} \\rangle$ [3] is carrying a surfboard $\\langle \\mathrm{p} \\rangle$ [2] under her arm. I can also see the ocean $\\langle \\mathrm{p} \\rangle$ [5] with some waves and faint mountains $\\langle \\mathrm{p} \\rangle$ [6] in the distance.",
1161
+ "bbox": [
1162
+ 245,
1163
+ 506,
1164
+ 750,
1165
+ 539
1166
+ ],
1167
+ "page_idx": 8
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Question: What kind of dog is it, and what's it doing?",
1172
+ "bbox": [
1173
+ 245,
1174
+ 547,
1175
+ 465,
1176
+ 558
1177
+ ],
1178
+ "page_idx": 8
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Answer: It looks like $\\langle \\mathrm{p} \\rangle$ a medium-sized, short-haired dog $\\langle \\mathrm{/p} \\rangle$ [1], quite possibly a mixed breed. The dog $\\langle \\mathrm{/p} \\rangle$ [1] is just strolling beside $\\langle \\mathrm{p} \\rangle$ the woman $\\langle \\mathrm{/p} \\rangle$ [3], seemingly following her as they both walk across $\\langle \\mathrm{/p} \\rangle$ the sand $\\langle \\mathrm{/p} \\rangle$ [4].",
1183
+ "bbox": [
1184
+ 245,
1185
+ 560,
1186
+ 750,
1187
+ 583
1188
+ ],
1189
+ "page_idx": 8
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "Question: Is the beach crowded, or does it seem deserted?",
1194
+ "bbox": [
1195
+ 245,
1196
+ 592,
1197
+ 483,
1198
+ 602
1199
+ ],
1200
+ "page_idx": 8
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "Answer: It actually looks quite deserted, with no one else in sight apart from $\\langle \\mathfrak{p} \\rangle$ the woman $\\langle \\mathfrak{p} \\rangle$ [3] and $\\langle \\mathfrak{p} \\rangle$ her dog $\\langle \\mathfrak{p} \\rangle$ [1]. It gives off a peaceful, solitary vibe - just them and the $\\langle \\mathfrak{p} \\rangle$ vast ocean $\\langle \\mathfrak{p} \\rangle$ [5] and $\\langle \\mathfrak{p} \\rangle$ sandy shore $\\langle \\mathfrak{p} \\rangle$ [4].",
1205
+ "bbox": [
1206
+ 245,
1207
+ 604,
1208
+ 750,
1209
+ 628
1210
+ ],
1211
+ "page_idx": 8
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "Question: What is the state of the ocean, and is it suitable for surfing?",
1216
+ "bbox": [
1217
+ 245,
1218
+ 636,
1219
+ 532,
1220
+ 646
1221
+ ],
1222
+ "page_idx": 8
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "Answer: <p> The ocean </p> [5] appears quite serene but with rolling waves, hence appropriate for surfing.",
1227
+ "bbox": [
1228
+ 245,
1229
+ 648,
1230
+ 687,
1231
+ 657
1232
+ ],
1233
+ "page_idx": 8
1234
+ },
1235
+ {
1236
+ "type": "header",
1237
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
1238
+ "bbox": [
1239
+ 395,
1240
+ 114,
1241
+ 732,
1242
+ 127
1243
+ ],
1244
+ "page_idx": 8
1245
+ },
1246
+ {
1247
+ "type": "page_number",
1248
+ "text": "9",
1249
+ "bbox": [
1250
+ 774,
1251
+ 116,
1252
+ 784,
1253
+ 126
1254
+ ],
1255
+ "page_idx": 8
1256
+ },
1257
+ {
1258
+ "type": "page_footnote",
1259
+ "text": "<sup>3</sup> We select VG images that also have a coco id. Thus, we can retrieve corresponding image captions from COCO Caption.",
1260
+ "bbox": [
1261
+ 218,
1262
+ 755,
1263
+ 784,
1264
+ 782
1265
+ ],
1266
+ "page_idx": 8
1267
+ },
1268
+ {
1269
+ "type": "page_footnote",
1270
+ "text": "4 There are cases where two regions highly overlap with each other and GPT-4V can hardly tell from the image which region maps to which numeric marker. For these cases, GPT-4V could rely on the numbered region descriptions to find out correspondences between regions and markers.",
1271
+ "bbox": [
1272
+ 220,
1273
+ 784,
1274
+ 784,
1275
+ 839
1276
+ ],
1277
+ "page_idx": 8
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "5 Experiments",
1282
+ "text_level": 1,
1283
+ "bbox": [
1284
+ 215,
1285
+ 143,
1286
+ 375,
1287
+ 162
1288
+ ],
1289
+ "page_idx": 9
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "In this section, we first quantitatively access the abilities of Groma on grounding (Sec. 5.2), referring (Sec. 5.3), and image-based conversation (Sec. 5.4) tasks. Then we provide qualitative results to exemplify the strong capabilities of Groma on a wide range of region-level tasks (Sec. 5.5). Finally, we ablate the design and training of Groma in Sec. 5.6.",
1294
+ "bbox": [
1295
+ 212,
1296
+ 179,
1297
+ 787,
1298
+ 255
1299
+ ],
1300
+ "page_idx": 9
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "5.1 Implementation Details.",
1305
+ "text_level": 1,
1306
+ "bbox": [
1307
+ 214,
1308
+ 280,
1309
+ 460,
1310
+ 295
1311
+ ],
1312
+ "page_idx": 9
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "We adopt DINOv2-L/14 [38] as the image encoder and Vicuna-7B v1.5 [12] as the language model. The region proposer follows an encoder-decoder architecture with 6 encoder layers and 6 decoder layers. We further employ mixed query selection and look-forward-twice scheme as in [61] to accelerate convergence. We set NMS threshold to 0.6 and filter out region proposals with objectness scores lower than 0.15. Subsequently, we select the top 100 region proposals if there are more than 100 proposals left after filtering. This results in no more than 356 visual tokens in total. For training, we sequentially proceed 12 epochs of detection pretraining, 2 epochs of alignment pretraining, and 1 epoch of instruction finetuning. More training details can be found in the Appendix.",
1317
+ "bbox": [
1318
+ 212,
1319
+ 306,
1320
+ 787,
1321
+ 460
1322
+ ],
1323
+ "page_idx": 9
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "5.2 Grounding Benchmark Results",
1328
+ "text_level": 1,
1329
+ "bbox": [
1330
+ 214,
1331
+ 484,
1332
+ 517,
1333
+ 500
1334
+ ],
1335
+ "page_idx": 9
1336
+ },
1337
+ {
1338
+ "type": "table",
1339
+ "img_path": "images/130c6636f13d3e9528c413226795567898091407d995ec1179f0c9747d041775.jpg",
1340
+ "table_caption": [
1341
+ "Table 2: Results on referring expression comprehension benchmarks. We report accuracy with the IoU threshold set to 0.5. We make Qwen-VL gray because it uses a much larger visual tokenizer (1.9B ViT-bigG [17])."
1342
+ ],
1343
+ "table_footnote": [],
1344
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Model type</td><td colspan=\"3\">RefCOCO</td><td colspan=\"3\">RefCOCO+</td><td colspan=\"2\">RefCOCOg</td><td rowspan=\"2\">Average</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>test</td></tr><tr><td>MDETR [20]</td><td></td><td>86.75</td><td>89.58</td><td>81.41</td><td>79.52</td><td>84.09</td><td>70.62</td><td>81.64</td><td>80.89</td><td>81.81</td></tr><tr><td>G-DINO [34]</td><td>Specialist</td><td>90.56</td><td>93.19</td><td>88.24</td><td>82.75</td><td>88.95</td><td>75.92</td><td>86.13</td><td>87.02</td><td>86.60</td></tr><tr><td>UNINEXT-L [55]</td><td></td><td>91.43</td><td>93.73</td><td>88.93</td><td>83.09</td><td>87.90</td><td>76.15</td><td>86.91</td><td>87.48</td><td>86.95</td></tr><tr><td>VisionLLM [52]</td><td></td><td>-</td><td>86.70</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>OFA [49]</td><td></td><td>79.96</td><td>83.67</td><td>76.39</td><td>68.29</td><td>76.00</td><td>61.75</td><td>67.57</td><td>67.58</td><td>72.65</td></tr><tr><td>Shikra [8]</td><td></td><td>87.01</td><td>90.61</td><td>80.24</td><td>81.60</td><td>87.36</td><td>72.12</td><td>82.27</td><td>82.19</td><td>82.93</td></tr><tr><td>Ferret [58]</td><td>Generalist</td><td>87.49</td><td>91.35</td><td>82.45</td><td>80.78</td><td>87.38</td><td>73.14</td><td>83.93</td><td>84.76</td><td>83.91</td></tr><tr><td>MiniGPT-v2 [7]</td><td></td><td>88.69</td><td>91.65</td><td>85.33</td><td>79.97</td><td>85.12</td><td>74.45</td><td>84.44</td><td>84.66</td><td>84.29</td></tr><tr><td>Qwen-VL [4]</td><td></td><td>89.36</td><td>92.26</td><td>85.34</td><td>83.12</td><td>88.25</td><td>77.21</td><td>85.58</td><td>85.48</td><td>85.83</td></tr><tr><td>Groma</td><td></td><td>89.53</td><td>92.09</td><td>86.26</td><td>83.90</td><td>88.91</td><td>78.05</td><td>86.37</td><td>87.01</td><td>86.52</td></tr></table>",
1345
+ "bbox": [
1346
+ 220,
1347
+ 565,
1348
+ 782,
1349
+ 748
1350
+ ],
1351
+ "page_idx": 9
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "We evaluate the localization capability of Groma on visual grounding tasks. Tab. 2 showcases our performance on three classic referring expression comprehension benchmarks: RefCOCO [21], RefCOCO+ [59], and RefCOCOg [35]. Groma notably surpasses other generalist models of similar model size across all metrics. Moreover, as a generalist model, Groma shows competitive results with",
1356
+ "bbox": [
1357
+ 212,
1358
+ 763,
1359
+ 787,
1360
+ 840
1361
+ ],
1362
+ "page_idx": 9
1363
+ },
1364
+ {
1365
+ "type": "page_number",
1366
+ "text": "10",
1367
+ "bbox": [
1368
+ 217,
1369
+ 114,
1370
+ 235,
1371
+ 126
1372
+ ],
1373
+ "page_idx": 9
1374
+ },
1375
+ {
1376
+ "type": "header",
1377
+ "text": "Ma et al., 2024",
1378
+ "bbox": [
1379
+ 271,
1380
+ 114,
1381
+ 374,
1382
+ 127
1383
+ ],
1384
+ "page_idx": 9
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "state-of-the-art specialist models [34, 55]. These findings underscore the strong capability of Groma in visual grounding.",
1389
+ "bbox": [
1390
+ 212,
1391
+ 146,
1392
+ 782,
1393
+ 176
1394
+ ],
1395
+ "page_idx": 10
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "However, we notice that traditional REC benchmarks only cover a narrow range of common objects in their referring expressions, which is insufficient to thoroughly evaluate the MLLM's localization capability. Therefore, we further introduce LVIS-Ground, an object grounding benchmark converted from the LVIS [15] detection data. LVIS-Ground contains 4299 images covering 1203 categories of objects, with on average 3.7 target objects per image. Complementary to REC benchmarks, LVIS-Ground focuses on testing the model's ability to locate multiple, diverse, and variably-sized objects. For more details of LVIS-Ground, please refer to the Appendix.",
1400
+ "bbox": [
1401
+ 212,
1402
+ 176,
1403
+ 784,
1404
+ 311
1405
+ ],
1406
+ "page_idx": 10
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "Tab. 3 presents our results on LVIS-Ground. Notably, Groma demonstrates clear advantages over other grounded MLLMs, especially on the AR@0.75 metric. This evidences that the specialized design and training indeed bring more accurate localization for Groma. Moreover, it is noteworthy that current MLLMs all fall short of small object localization (AR@s metric). We conjecture this is mainly because the training data (e.g., RefCOCO/g/+, Flickr30k) lack annotations for small objects. We also notice that current models typically predict only one box per image, even though more than one targets are presented. This is an expected behavior as the they heavily rely on REC data for grounding training, which only has one target object per query. These findings call for the necessity of diversifying grounding data used for training in future MLLMs.",
1411
+ "bbox": [
1412
+ 212,
1413
+ 313,
1414
+ 785,
1415
+ 479
1416
+ ],
1417
+ "page_idx": 10
1418
+ },
1419
+ {
1420
+ "type": "table",
1421
+ "img_path": "images/bfad041795ba3580f1d7be42ab5e7a59f0ac77d43b5b6f78efd7f6c60c3a6710.jpg",
1422
+ "table_caption": [
1423
+ "Table 3: Results on the LVIS-Ground benchmark. We report average recall (AR) to measure performances. For each model, we use the native prompt template recommended by the paper for evaluation."
1424
+ ],
1425
+ "table_footnote": [],
1426
+ "table_body": "<table><tr><td>Method</td><td>AR</td><td>AR@0.5</td><td>AR@0.75</td><td>AR@s</td><td>AR@m</td><td>AR@l</td></tr><tr><td>Shikra [8]</td><td>4.9</td><td>14.2</td><td>2.0</td><td>0.1</td><td>3.1</td><td>18.5</td></tr><tr><td>MiniGPT-v2 [7]</td><td>11.4</td><td>19.8</td><td>11.2</td><td>0.3</td><td>8.0</td><td>41.1</td></tr><tr><td>Ferret [58]</td><td>16.8</td><td>29.6</td><td>16.3</td><td>1.6</td><td>16.7</td><td>51.1</td></tr><tr><td>Groma</td><td>28.8</td><td>37.9</td><td>30.3</td><td>8.7</td><td>35.6</td><td>64.3</td></tr></table>",
1427
+ "bbox": [
1428
+ 274,
1429
+ 537,
1430
+ 723,
1431
+ 625
1432
+ ],
1433
+ "page_idx": 10
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "5.3 Referring Benchmark Results",
1438
+ "text_level": 1,
1439
+ "bbox": [
1440
+ 214,
1441
+ 659,
1442
+ 504,
1443
+ 674
1444
+ ],
1445
+ "page_idx": 10
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "We evaluate Groma on the region captioning task to assess its fine-grained region understanding capability. To prompt the model to generate region-level descriptions, we use queries like \"Please describe <region> in details.\" Tab. 4 presents our results on two established region captioning benchmarks, RefCOCOg and Visual Genome. Without task-specific finetuning, Groma shows comparable or improved performance over GLaMM $^5$ [43], which has separate designs for input referring and output grounding. This exemplifies the superiority of unified refer-and-ground formulation in Groma.",
1450
+ "bbox": [
1451
+ 212,
1452
+ 681,
1453
+ 784,
1454
+ 801
1455
+ ],
1456
+ "page_idx": 10
1457
+ },
1458
+ {
1459
+ "type": "header",
1460
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
1461
+ "bbox": [
1462
+ 395,
1463
+ 114,
1464
+ 732,
1465
+ 127
1466
+ ],
1467
+ "page_idx": 10
1468
+ },
1469
+ {
1470
+ "type": "page_number",
1471
+ "text": "11",
1472
+ "bbox": [
1473
+ 767,
1474
+ 116,
1475
+ 782,
1476
+ 126
1477
+ ],
1478
+ "page_idx": 10
1479
+ },
1480
+ {
1481
+ "type": "page_footnote",
1482
+ "text": "We re-evaluate the performance of GLaMM using the officially released checkpoint after fixing the bug in its original evaluation scripts.",
1483
+ "bbox": [
1484
+ 217,
1485
+ 809,
1486
+ 782,
1487
+ 839
1488
+ ],
1489
+ "page_idx": 10
1490
+ },
1491
+ {
1492
+ "type": "table",
1493
+ "img_path": "images/135f4ea80412daaa662d1b3477e30e989423075395387d81acc10b100db3e363.jpg",
1494
+ "table_caption": [
1495
+ "Table 4: Results on region captioning benchmarks. We report METEOR and CIDER scores to measure caption quality. †: with task-specific finetuning."
1496
+ ],
1497
+ "table_footnote": [],
1498
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">RefCOCOg</td><td colspan=\"2\">Visual Genome</td></tr><tr><td>METEOR</td><td>CIDEr</td><td>METEOR</td><td>CIDEr</td></tr><tr><td>GRIT [54]</td><td>15.2</td><td>71.6</td><td>17.1</td><td>142</td></tr><tr><td>Kosmos-2 [39]</td><td>14.1</td><td>62.3</td><td>-</td><td>-</td></tr><tr><td>GPT4RoI [64]</td><td>-</td><td>-</td><td>17.4</td><td>145.2</td></tr><tr><td>GLaMM† [43]</td><td>16.1</td><td>101.9</td><td>19.0</td><td>163.9</td></tr><tr><td>ViP-LLaVA [6]</td><td>16.6</td><td>105.9</td><td>-</td><td>-</td></tr><tr><td>Groma</td><td>16.8</td><td>107.3</td><td>19.0</td><td>158.4</td></tr></table>",
1499
+ "bbox": [
1500
+ 305,
1501
+ 178,
1502
+ 697,
1503
+ 311
1504
+ ],
1505
+ "page_idx": 11
1506
+ },
1507
+ {
1508
+ "type": "text",
1509
+ "text": "5.4 Conversational VQA Benchmark Results",
1510
+ "text_level": 1,
1511
+ "bbox": [
1512
+ 215,
1513
+ 337,
1514
+ 599,
1515
+ 353
1516
+ ],
1517
+ "page_idx": 11
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "In addition to region-level tasks, we further evaluate Groma on the conversational style VQA benchmark, LLaVA Bench (COCO) [33], which contains three types of questions, namely conversation, detailed description, and complex reasoning. As shown in Tab. 5, Groma surpasses the strong baseline method LLaVA [33] and achieves competitive performance among grounded MLLMs, especially in detailed image description. This demonstrates that Groma maintains decent image understanding and visual chatting abilities. For the underperformance in conversation and complex reasoning questions, we speculate this could be resulted from the DINOv2 features, as shown in recent studies [18, 31]. But we believe such gap can be closed by scaling up vision-language alignment pretraining.",
1522
+ "bbox": [
1523
+ 212,
1524
+ 359,
1525
+ 787,
1526
+ 512
1527
+ ],
1528
+ "page_idx": 11
1529
+ },
1530
+ {
1531
+ "type": "table",
1532
+ "img_path": "images/194d38cd88d0512ca022e06e6309587ba96a82f6a11706306c983d363dce920d.jpg",
1533
+ "table_caption": [
1534
+ "Table 5: Results on LLaVA-Bench (COCO)."
1535
+ ],
1536
+ "table_footnote": [],
1537
+ "table_body": "<table><tr><td>Method</td><td>Conversation</td><td>Description</td><td>Reasoning</td><td>Average</td></tr><tr><td>LLaVA [33]</td><td>85.4</td><td>68.3</td><td>92.1</td><td>81.9</td></tr><tr><td>Kosmos-2 [39]</td><td>71.7</td><td>63.4</td><td>74.9</td><td>70.0</td></tr><tr><td>Shikra [8]</td><td>80.6</td><td>70.7</td><td>88.1</td><td>79.9</td></tr><tr><td>LLaVA-G [62]</td><td>79.3</td><td>71.2</td><td>92.8</td><td>81.2</td></tr><tr><td>Ferret [58]</td><td>84.4</td><td>79.4</td><td>96.3</td><td>86.7</td></tr><tr><td>Groma</td><td>82.6</td><td>84.0</td><td>88.8</td><td>85.2</td></tr></table>",
1538
+ "bbox": [
1539
+ 303,
1540
+ 540,
1541
+ 697,
1542
+ 650
1543
+ ],
1544
+ "page_idx": 11
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "5.5 Qualitative Results",
1549
+ "text_level": 1,
1550
+ "bbox": [
1551
+ 215,
1552
+ 681,
1553
+ 421,
1554
+ 696
1555
+ ],
1556
+ "page_idx": 11
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "Fig. 5 presents a comparison between Groma and other grounded MLLMs on the grounded image captioning task. We choose an exemplar image that is inherently challenging with multiple and occluded instances to ground. Groma manifests exceptional grounding performance in this case with the highest recall and minimum hallucinations. In addition, we provide several visualization examples in Fig. 6 for a complementary understanding of Groma's abilities on grounded chat and referential dialogue. We show that Groma is capable of generating long-form, grounded and logically rich answers, which can be mainly attributed to the introduction of Groma Instruct data in finetuning.",
1561
+ "bbox": [
1562
+ 212,
1563
+ 704,
1564
+ 787,
1565
+ 840
1566
+ ],
1567
+ "page_idx": 11
1568
+ },
1569
+ {
1570
+ "type": "page_number",
1571
+ "text": "12",
1572
+ "bbox": [
1573
+ 217,
1574
+ 114,
1575
+ 235,
1576
+ 126
1577
+ ],
1578
+ "page_idx": 11
1579
+ },
1580
+ {
1581
+ "type": "header",
1582
+ "text": "Ma et al., 2024",
1583
+ "bbox": [
1584
+ 271,
1585
+ 114,
1586
+ 374,
1587
+ 127
1588
+ ],
1589
+ "page_idx": 11
1590
+ },
1591
+ {
1592
+ "type": "image",
1593
+ "img_path": "images/f397344c26bcc5667bd757a7fc7c76fce74886b361365da2760afbafc29ee116.jpg",
1594
+ "image_caption": [
1595
+ "Kosmos2"
1596
+ ],
1597
+ "image_footnote": [
1598
+ "An image of a herd of giraffes and zebras."
1599
+ ],
1600
+ "bbox": [
1601
+ 218,
1602
+ 164,
1603
+ 395,
1604
+ 255
1605
+ ],
1606
+ "page_idx": 12
1607
+ },
1608
+ {
1609
+ "type": "image",
1610
+ "img_path": "images/8de6379c965a5a11686de84789ccf69eb88adf934534c2981cd8aa2744c781fd.jpg",
1611
+ "image_caption": [
1612
+ "MiniGPT v2"
1613
+ ],
1614
+ "image_footnote": [
1615
+ "A herd of zebras and giraffes are standing in a field with trees in the background."
1616
+ ],
1617
+ "bbox": [
1618
+ 411,
1619
+ 162,
1620
+ 589,
1621
+ 255
1622
+ ],
1623
+ "page_idx": 12
1624
+ },
1625
+ {
1626
+ "type": "image",
1627
+ "img_path": "images/eec3e20322456c782fc37fea2ac56595a33186bf40393cab3634c6fd728f5a34.jpg",
1628
+ "image_caption": [
1629
+ "Groma"
1630
+ ],
1631
+ "image_footnote": [
1632
+ "A group of giraffes and zebras are walking through a field."
1633
+ ],
1634
+ "bbox": [
1635
+ 606,
1636
+ 162,
1637
+ 782,
1638
+ 255
1639
+ ],
1640
+ "page_idx": 12
1641
+ },
1642
+ {
1643
+ "type": "image",
1644
+ "img_path": "images/0b4651f713101d3388995774244a199a2166a7c0154420599503e7f81794967d.jpg",
1645
+ "image_caption": [
1646
+ "Fig. 5: A qualitative comparison on the grounded image captioning task."
1647
+ ],
1648
+ "image_footnote": [],
1649
+ "bbox": [
1650
+ 222,
1651
+ 327,
1652
+ 241,
1653
+ 342
1654
+ ],
1655
+ "page_idx": 12
1656
+ },
1657
+ {
1658
+ "type": "image",
1659
+ "img_path": "images/7b7bf5f5fe0258ef74a5caf262f66e36a7f11f274025ea53fd3479bf6fcf5fbd.jpg",
1660
+ "image_caption": [
1661
+ "[grounding] Where is this city? Can you identify its landmark?"
1662
+ ],
1663
+ "image_footnote": [],
1664
+ "bbox": [
1665
+ 243,
1666
+ 352,
1667
+ 395,
1668
+ 431
1669
+ ],
1670
+ "page_idx": 12
1671
+ },
1672
+ {
1673
+ "type": "image",
1674
+ "img_path": "images/d5f1ad3cc78a6fa50f2595d49458297e938ce81a65459ef77ad6b8814b406dd8.jpg",
1675
+ "image_caption": [
1676
+ "This is a view of Sydney, Australia. You can identify the landmark by the iconic large white sailboat-shaped building which is the Sydney Opera House."
1677
+ ],
1678
+ "image_footnote": [],
1679
+ "bbox": [
1680
+ 223,
1681
+ 440,
1682
+ 240,
1683
+ 454
1684
+ ],
1685
+ "page_idx": 12
1686
+ },
1687
+ {
1688
+ "type": "image",
1689
+ "img_path": "images/4f99cc14dba65fb3dabc3fbfdbfbc025a41437cdd50c4603e93a386aa37c8383.jpg",
1690
+ "image_caption": [
1691
+ "Fig. 6: Examples on visually grounded chat and referential dialogue."
1692
+ ],
1693
+ "image_footnote": [],
1694
+ "bbox": [
1695
+ 243,
1696
+ 483,
1697
+ 395,
1698
+ 561
1699
+ ],
1700
+ "page_idx": 12
1701
+ },
1702
+ {
1703
+ "type": "image",
1704
+ "img_path": "images/4516d10160d5db348118370badeb31495107a9fed2f29222dc1a196cc59dfa64.jpg",
1705
+ "image_caption": [
1706
+ "[grounding] Which equipment should I choose for aerobic exercise?"
1707
+ ],
1708
+ "image_footnote": [],
1709
+ "bbox": [
1710
+ 426,
1711
+ 351,
1712
+ 578,
1713
+ 431
1714
+ ],
1715
+ "page_idx": 12
1716
+ },
1717
+ {
1718
+ "type": "image",
1719
+ "img_path": "images/504ba6968d916963f466b644366d8542559e0dd46599e8e954ee5c26a4f2be09.jpg",
1720
+ "image_caption": [
1721
+ "For aerobic exercise, you might consider using the treadmill or the elliptical machine. Both are great for cardiovascular workouts."
1722
+ ],
1723
+ "image_footnote": [],
1724
+ "bbox": [
1725
+ 426,
1726
+ 481,
1727
+ 578,
1728
+ 561
1729
+ ],
1730
+ "page_idx": 12
1731
+ },
1732
+ {
1733
+ "type": "image",
1734
+ "img_path": "images/321c7bdff40e9991ffb83252808d430c53a042eda6a5a9d99f8dca71cc783f71.jpg",
1735
+ "image_caption": [
1736
+ "What is the functionality of <region> in the image?",
1737
+ "In the image, the telescope is situated on a hill, with a dark blue sky and stars in the background. The telescope serves the purpose of observing celestial objects, such as stars, planets, and other astronomical phenomena. It allows people to study and learn about the universe, as well as to enjoy the beauty of the night sky. The telescope's location on the hill provides an elevated vantage point, which can enhance its view of the sky and the celestial objects it is observing."
1738
+ ],
1739
+ "image_footnote": [],
1740
+ "bbox": [
1741
+ 609,
1742
+ 351,
1743
+ 761,
1744
+ 431
1745
+ ],
1746
+ "page_idx": 12
1747
+ },
1748
+ {
1749
+ "type": "text",
1750
+ "text": "5.6 Ablation",
1751
+ "text_level": 1,
1752
+ "bbox": [
1753
+ 215,
1754
+ 616,
1755
+ 334,
1756
+ 628
1757
+ ],
1758
+ "page_idx": 12
1759
+ },
1760
+ {
1761
+ "type": "text",
1762
+ "text": "CLIP vs. DINOv2. To quantitatively assess the differences in localization capabilities between CLIP and DINOv2, we compare the two backbones on the COCO detection benchmark in Tab. 6. For this comparison, we equip each backbone with a DDETR [68] detection head and finetune only the detection head on COCO dataset. It can be seen that under the same resolution, DINOv2 backbone significantly outperforms CLIP backbone by 6.5 AP. Furthermore, by scaling the resolution to $448 \\times 448$ , DINOv2 backbone achieves a commendable performance of 43.6 AP. The results consolidate our choice of DINOv2 backbone in Groma.",
1763
+ "bbox": [
1764
+ 212,
1765
+ 638,
1766
+ 787,
1767
+ 758
1768
+ ],
1769
+ "page_idx": 12
1770
+ },
1771
+ {
1772
+ "type": "text",
1773
+ "text": "Frozen LLM. In Tab. 7, we reveal that Groma retains robust localized understanding even without finetuning the LLM, i.e., it demonstrates a referring ability on par with GPT4ROI [64] (148.0 vs. 145.2) and grounding ability comparable to Ferret [58] (84.02% vs. 83.91%). This finding suggests our design",
1774
+ "bbox": [
1775
+ 212,
1776
+ 779,
1777
+ 787,
1778
+ 840
1779
+ ],
1780
+ "page_idx": 12
1781
+ },
1782
+ {
1783
+ "type": "header",
1784
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
1785
+ "bbox": [
1786
+ 395,
1787
+ 114,
1788
+ 732,
1789
+ 127
1790
+ ],
1791
+ "page_idx": 12
1792
+ },
1793
+ {
1794
+ "type": "page_number",
1795
+ "text": "13",
1796
+ "bbox": [
1797
+ 767,
1798
+ 114,
1799
+ 784,
1800
+ 126
1801
+ ],
1802
+ "page_idx": 12
1803
+ },
1804
+ {
1805
+ "type": "text",
1806
+ "text": "effectively decouples localization and understanding within Groma, such that it requires minimum 'new knowledge' from the LLM for localized understanding.",
1807
+ "bbox": [
1808
+ 212,
1809
+ 146,
1810
+ 782,
1811
+ 176
1812
+ ],
1813
+ "page_idx": 13
1814
+ },
1815
+ {
1816
+ "type": "text",
1817
+ "text": "Token Merge. To save computations, Groma by default concatenates every 4 image tokens into one as LLM inputs. Through control experiments in Tab. 8, we find that such downsampling has negligible impacts on the grounding performances (e.g., less than $0.1\\%$ average accuracy drop on the REC benchmarks). The results evidence that the decoupled design is optimal in both efficiency and localization accuracy.",
1818
+ "bbox": [
1819
+ 212,
1820
+ 196,
1821
+ 784,
1822
+ 287
1823
+ ],
1824
+ "page_idx": 13
1825
+ },
1826
+ {
1827
+ "type": "table",
1828
+ "img_path": "images/59cecf9e1a8c7a570e0f8db79eff569f5f672df8401ca0738b9a25e768ee29b8.jpg",
1829
+ "table_caption": [
1830
+ "Table 6: Object detection performances on COCO with different backbones and image resolutions."
1831
+ ],
1832
+ "table_footnote": [],
1833
+ "table_body": "<table><tr><td>Backbone</td><td>Resolution</td><td>AP</td></tr><tr><td>CLIP</td><td>336×336</td><td>32.4</td></tr><tr><td>DINOv2</td><td>336×336</td><td>38.9</td></tr><tr><td>DINOv2</td><td>448×448</td><td>43.6</td></tr></table>",
1834
+ "bbox": [
1835
+ 217,
1836
+ 362,
1837
+ 419,
1838
+ 439
1839
+ ],
1840
+ "page_idx": 13
1841
+ },
1842
+ {
1843
+ "type": "table",
1844
+ "img_path": "images/4a87bcfdee22b4fdbbe47609d5cafedb71a3d5f43101c293825f572e763558e5.jpg",
1845
+ "table_caption": [
1846
+ "Table 7: Referring and grounding abilities with the frozen LLM. We measure referring ability with CIDEr score on Visual Genome and grounding ability with average accuracy on REC benchmarks."
1847
+ ],
1848
+ "table_footnote": [],
1849
+ "table_body": "<table><tr><td>Stage</td><td>LLM status</td><td>Referring</td><td>Grounding</td></tr><tr><td>pretraining</td><td>frozen</td><td>-</td><td>82.33</td></tr><tr><td>finetuning</td><td>frozen</td><td>148.0</td><td>84.02</td></tr><tr><td>finetuning</td><td>unfrozen</td><td>158.4</td><td>86.52</td></tr></table>",
1850
+ "bbox": [
1851
+ 442,
1852
+ 362,
1853
+ 785,
1854
+ 439
1855
+ ],
1856
+ "page_idx": 13
1857
+ },
1858
+ {
1859
+ "type": "table",
1860
+ "img_path": "images/b02f0a2384cf835a86b4c8e442046650c801eba2d3c83003106c2b61f34341d4.jpg",
1861
+ "table_caption": [
1862
+ "Table 8: Ablation on image token downsampling on the REC benchmarks."
1863
+ ],
1864
+ "table_footnote": [],
1865
+ "table_body": "<table><tr><td rowspan=\"2\">Downsampling</td><td colspan=\"3\">RefCOCO</td><td colspan=\"3\">RefCOCO+</td><td colspan=\"2\">RefCOCOg</td><td rowspan=\"2\">Average</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>test</td></tr><tr><td>✓</td><td>89.32</td><td>92.15</td><td>85.96</td><td>84.11</td><td>88.10</td><td>78.40</td><td>86.33</td><td>87.40</td><td>86.47</td></tr><tr><td>X</td><td>89.54</td><td>92.54</td><td>86.18</td><td>83.72</td><td>88.52</td><td>78.96</td><td>86.17</td><td>86.84</td><td>86.55</td></tr></table>",
1866
+ "bbox": [
1867
+ 222,
1868
+ 477,
1869
+ 781,
1870
+ 566
1871
+ ],
1872
+ "page_idx": 13
1873
+ },
1874
+ {
1875
+ "type": "text",
1876
+ "text": "6 Limitations and Conclusions",
1877
+ "text_level": 1,
1878
+ "bbox": [
1879
+ 214,
1880
+ 599,
1881
+ 526,
1882
+ 614
1883
+ ],
1884
+ "page_idx": 13
1885
+ },
1886
+ {
1887
+ "type": "text",
1888
+ "text": "In this paper, we introduce a novel paradigm, Groma, to unleash the localized perception capabilities of MLLMs. We make the pioneering attempt to embed localization into image tokenization. Our paradigm is based on a perception-then-understand mindset that separates localization from high-level understanding and reasoning. Without introducing external modules, our approach overcomes the resolution bottleneck of using LLMs as location decoders and unifies referring and visual grounding tasks. Extensive experiments showcase the superior performance of our approach in localized perception, as evidenced by its success in referring and visual grounding tasks.",
1889
+ "bbox": [
1890
+ 212,
1891
+ 628,
1892
+ 784,
1893
+ 763
1894
+ ],
1895
+ "page_idx": 13
1896
+ },
1897
+ {
1898
+ "type": "text",
1899
+ "text": "However, the current implementation does not support free-form region inputs and pixel-level grounding. A promising direction to address such limitations is to re-implement the region encoder with a visual sampler as in [58, 69] and replace the box region proposer by a mask region proposer like Mask2Former [11]. We leave this for future studies.",
1900
+ "bbox": [
1901
+ 212,
1902
+ 765,
1903
+ 784,
1904
+ 838
1905
+ ],
1906
+ "page_idx": 13
1907
+ },
1908
+ {
1909
+ "type": "page_number",
1910
+ "text": "14",
1911
+ "bbox": [
1912
+ 217,
1913
+ 114,
1914
+ 235,
1915
+ 126
1916
+ ],
1917
+ "page_idx": 13
1918
+ },
1919
+ {
1920
+ "type": "header",
1921
+ "text": "Ma et al., 2024",
1922
+ "bbox": [
1923
+ 271,
1924
+ 114,
1925
+ 374,
1926
+ 127
1927
+ ],
1928
+ "page_idx": 13
1929
+ },
1930
+ {
1931
+ "type": "text",
1932
+ "text": "Acknowledgements",
1933
+ "text_level": 1,
1934
+ "bbox": [
1935
+ 217,
1936
+ 143,
1937
+ 401,
1938
+ 162
1939
+ ],
1940
+ "page_idx": 14
1941
+ },
1942
+ {
1943
+ "type": "text",
1944
+ "text": "This work has been supported by Hong Kong Research Grant Council - Early Career Scheme (Grant No. 27209621), General Research Fund Scheme (Grant No. 17202422), Theme-based Research (Grant No. T45-701/22-R) and RGC Matching Fund Scheme (RMGS). Part of the described research work is conducted in the JC STEM Lab of Robotics for Soft Materials funded by The Hong Kong Jockey Club Charities Trust.",
1945
+ "bbox": [
1946
+ 212,
1947
+ 180,
1948
+ 787,
1949
+ 270
1950
+ ],
1951
+ "page_idx": 14
1952
+ },
1953
+ {
1954
+ "type": "text",
1955
+ "text": "References",
1956
+ "text_level": 1,
1957
+ "bbox": [
1958
+ 217,
1959
+ 297,
1960
+ 321,
1961
+ 313
1962
+ ],
1963
+ "page_idx": 14
1964
+ },
1965
+ {
1966
+ "type": "list",
1967
+ "sub_type": "ref_text",
1968
+ "list_items": [
1969
+ "1. Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al.: Gpt-4 technical report. arXiv preprint arXiv:2303.08774 (2023) 3",
1970
+ "2. Alayrac, J.B., Donahue, J., Luc, P., Miech, A., Barr, I., Hasson, Y., Lenc, K., Mensch, A., Millican, K., Reynolds, M., et al.: Flamingo: a visual language model for few-shot learning. Advances in Neural Information Processing Systems 35, 23716-23736 (2022) 4",
1971
+ "3. Bai, J., Bai, S., Yang, S., Wang, S., Tan, S., Wang, P., Lin, J., Zhou, C., Zhou, J.: Qwen-vl: A frontier large vision-language model with versatile abilities. arXiv preprint arXiv:2308.12966 (2023) 2",
1972
+ "4. Bai, J., Bai, S., Yang, S., Wang, S., Tan, S., Wang, P., Lin, J., Zhou, C., Zhou, J.: Qwen-vl: A versatile vision-language model for understanding, localization, text reading, and beyond (2023) 10",
1973
+ "5. Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J., Horvitz, E., Kamar, E., Lee, P., Lee, Y.T., Li, Y., Lundberg, S., et al.: Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712 (2023) 2",
1974
+ "6. Cai, M., Liu, H., Mustikovela, S.K., Meyer, G.P., Chai, Y., Park, D., Lee, Y.J.: Making large multimodal models understand arbitrary visual prompts. arXiv preprint arXiv:2312.00784 (2023) 12",
1975
+ "7. Chen, J., Zhu, D., Shen, X., Li, X., Liu, Z., Zhang, P., Krishnamoorthi, R., Chandra, V., Xiong, Y., Elhoseiny, M.: Minigpt-v2: large language model as a unified interface for vision-language multi-task learning. arXiv preprint arXiv:2310.09478 (2023) 2, 4, 5, 10, 11",
1976
+ "8. Chen, K., Zhang, Z., Zeng, W., Zhang, R., Zhu, F., Zhao, R.: Shikra: Unleashing multimodal llm's referential dialogue magic. arXiv preprint arXiv:2306.15195 (2023) 2, 3, 4, 5, 10, 11, 12",
1977
+ "9. Chen, L., Li, J., Dong, X., Zhang, P., He, C., Wang, J., Zhao, F., Lin, D.: Sharegpt4v: Improving large multi-modal models with better captions. arXiv preprint arXiv:2311.12793 (2023) 7, 8, 9",
1978
+ "10. Chen, Z., Wu, J., Wang, W., Su, W., Chen, G., Xing, S., Muyan, Z., Zhang, Q., Zhu, X., Lu, L., et al.: Intervl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks. arXiv preprint arXiv:2312.14238 (2023) 4",
1979
+ "11. Cheng, B., Misra, I., Schwing, A.G., Kirillov, A., Girdhar, R.: Masked-attention mask transformer for universal image segmentation. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 1290–1299 (2022) 14"
1980
+ ],
1981
+ "bbox": [
1982
+ 218,
1983
+ 333,
1984
+ 784,
1985
+ 839
1986
+ ],
1987
+ "page_idx": 14
1988
+ },
1989
+ {
1990
+ "type": "header",
1991
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
1992
+ "bbox": [
1993
+ 395,
1994
+ 114,
1995
+ 730,
1996
+ 127
1997
+ ],
1998
+ "page_idx": 14
1999
+ },
2000
+ {
2001
+ "type": "page_number",
2002
+ "text": "15",
2003
+ "bbox": [
2004
+ 767,
2005
+ 116,
2006
+ 784,
2007
+ 126
2008
+ ],
2009
+ "page_idx": 14
2010
+ },
2011
+ {
2012
+ "type": "list",
2013
+ "sub_type": "ref_text",
2014
+ "list_items": [
2015
+ "12. Chiang, W.L., Li, Z., Lin, Z., Sheng, Y., Wu, Z., Zhang, H., Zheng, L., Zhuang, S., Zhuang, Y., Gonzalez, J.E., et al.: Vicuna: An open-source chatbot impressing gpt-4 with $90\\%$ chatgpt quality. See https://vicuna.lmsys.org (accessed 14 April 2023) (2023) 2, 6, 10",
2016
+ "13. Dai, W., Li, J., Li, D., Tiong, A., Zhao, J., Wang, W., Li, B., Fung, P., Hoi, S.: InstructBLIP: Towards general-purpose vision-language models with instruction tuning. In: Thirty-seventh Conference on Neural Information Processing Systems (2023), https://openreview.net/forum?id=vvoWPYqZJA 2, 4",
2017
+ "14. Guo, Q., Mello, S.D., Yin, H., Byeon, W., Cheung, K.C., Yu, Y., Luo, P., Liu, S.: Regionpt: Towards region understanding vision language model (2024) 4",
2018
+ "15. Gupta, A., Dollar, P., Girshick, R.: Lvis: A dataset for large vocabulary instance segmentation. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 5356-5364 (2019) 3, 11",
2019
+ "16. He, K., Gkioxari, G., Dollar, P., Girshick, R.: Mask r-cnn. In: Proceedings of the IEEE international conference on computer vision. pp. 2961-2969 (2017) 5",
2020
+ "17. Ilharco, G., Wortsman, M., Wightman, R., Gordon, C., Carlini, N., Taori, R., Dave, A., Shankar, V., Namkoong, H., Miller, J., Hajishirzi, H., Farhadi, A., Schmidt, L.: Openclip (2021), https://doi.org/10.5281/zenodo.5143773 10",
2021
+ "18. Jiang, D., Liu, Y., Liu, S., Zhang, X., Li, J., Xiong, H., Tian, Q.: From clip to dino: Visual encoders shout in multi-modal large language models (2023) 12",
2022
+ "19. Junfeng, W., Yi, J., Qihao, L., Zehuan, Y., Xiang, B., Song, B.: General object foundation model for images and videos at scale. arXiv preprint 2312.09158 (2023) 7",
2023
+ "20. Kamath, A., Singh, M., LeCun, Y., Synnaeve, G., Misra, I., Carion, N.: Mdetr-modulated detection for end-to-end multi-modal understanding. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 1780-1790 (2021) 10",
2024
+ "21. Kazemzadeh, S., Ordonez, V., Matten, M., Berg, T.: Referitgame: Referring to objects in photographs of natural scenes. In: Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP). pp. 787-798 (2014) 7, 10",
2025
+ "22. Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., Lo, W.Y., et al.: Segment anything. arXiv preprint arXiv:2304.02643 (2023) 2, 4",
2026
+ "23. Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., Lo, W.Y., et al.: Segment anything. arXiv preprint arXiv:2304.02643 (2023) 7",
2027
+ "24. Krishna, R., Zhu, Y., Groth, O., Johnson, J., Hata, K., Kravitz, J., Chen, S., Kalantidis, Y., Li, L.J., Shamma, D.A., et al.: Visual genome: Connecting language and vision using crowdsourced dense image annotations. International journal of computer vision 123, 32-73 (2017) 7, 8",
2028
+ "25. Kuznetsova, A., Rom, H., Alldrin, N., Uijlings, J., Krasin, I., Pont-Tuset, J., Kamali, S., Popov, S., Malloci, M., Kolesnikov, A., et al.: The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. International Journal of Computer Vision 128(7), 1956-1981 (2020) 7",
2029
+ "26. Lai, X., Tian, Z., Chen, Y., Li, Y., Yuan, Y., Liu, S., Jia, J.: Lisa: Reasoning segmentation via large language model. arXiv preprint arXiv:2308.00692 (2023) 2, 3, 4",
2030
+ "27. Li, B., Zhang, Y., Chen, L., Wang, J., Yang, J., Liu, Z.: Otter: A multi-modal model with in-context instruction tuning. arXiv preprint arXiv:2305.03726 (2023) 4"
2031
+ ],
2032
+ "bbox": [
2033
+ 215,
2034
+ 146,
2035
+ 785,
2036
+ 838
2037
+ ],
2038
+ "page_idx": 15
2039
+ },
2040
+ {
2041
+ "type": "page_number",
2042
+ "text": "16",
2043
+ "bbox": [
2044
+ 217,
2045
+ 114,
2046
+ 235,
2047
+ 126
2048
+ ],
2049
+ "page_idx": 15
2050
+ },
2051
+ {
2052
+ "type": "header",
2053
+ "text": "Ma et al., 2024",
2054
+ "bbox": [
2055
+ 271,
2056
+ 114,
2057
+ 374,
2058
+ 127
2059
+ ],
2060
+ "page_idx": 15
2061
+ },
2062
+ {
2063
+ "type": "list",
2064
+ "sub_type": "ref_text",
2065
+ "list_items": [
2066
+ "28. Li, J., Li, D., Savarese, S., Hoi, S.: Blip-2: Bootstrapping language-image pretraining with frozen image encoders and large language models. arXiv preprint arXiv:2301.12597 (2023) 4",
2067
+ "29. Li, Y., Mao, H., Girshick, R., He, K.: Exploring plain vision transformer backbones for object detection. In: European Conference on Computer Vision. pp. 280-296. Springer (2022) 5",
2068
+ "30. Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollar, P., Zitnick, C.L.: Microsoft coco: Common objects in context. In: Computer Vision-ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13. pp. 740-755. Springer (2014) 7, 8",
2069
+ "31. Lin, Z., Liu, C., Zhang, R., Gao, P., Qiu, L., Xiao, H., Qiu, H., Lin, C., Shao, W., Chen, K., et al.: Sphinx: The joint mixing of weights, tasks, and visual embeddings for multi-modal large language models. arXiv preprint arXiv:2311.07575 (2023) 12",
2070
+ "32. Liu, H., Li, C., Li, Y., Lee, Y.J.: Improved baselines with visual instruction tuning. arXiv preprint arXiv:2310.03744 (2023) 6",
2071
+ "33. Liu, H., Li, C., Wu, Q., Lee, Y.J.: Visual instruction tuning. Advances in neural information processing systems 36 (2024) 2, 8, 9, 12",
2072
+ "34. Liu, S., Zeng, Z., Ren, T., Li, F., Zhang, H., Yang, J., Li, C., Yang, J., Su, H., Zhu, J., et al.: Grounding dino: Marrying dino with grounded pre-training for open-set object detection. arXiv preprint arXiv:2303.05499 (2023) 10, 11",
2073
+ "35. Mao, J., Huang, J., Toshev, A., Camburu, O., Yuille, A.L., Murphy, K.: Generation and comprehension of unambiguous object descriptions. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 11-20 (2016) 7, 10",
2074
+ "36. OpenAI: Chatgpt. https://openai.com/blog/chatgpt/ (2023) 2",
2075
+ "37. OpenAI: Gpt-4 technical report (2023) 2",
2076
+ "38. Oquab, M., Darcet, T., Moutakanni, T., Vo, H., Szafraniec, M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-Nouby, A., et al.: Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193 (2023) 5, 10",
2077
+ "39. Peng, Z., Wang, W., Dong, L., Hao, Y., Huang, S., Ma, S., Wei, F.: Kosmos-2: Grounding multimodal large language models to the world. arXiv preprint arXiv:2306.14824 (2023) 2, 3, 4, 5, 7, 12",
2078
+ "40. Pi, R., Gao, J., Diao, S., Pan, R., Dong, H., Zhang, J., Yao, L., Han, J., Xu, H., Zhang, L.K.T.: Detgpt: Detect what you need via reasoning. arXiv preprint arXiv:2305.14167 (2023) 2",
2079
+ "41. Plummer, B.A., Wang, L., Cervantes, C.M., Caicedo, J.C., Hockenmaier, J., Lazebnik, S.: Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In: Proceedings of the IEEE international conference on computer vision. pp. 2641–2649 (2015) 7",
2080
+ "42. Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al.: Learning transferable visual models from natural language supervision. In: International conference on machine learning. pp. 8748-8763. PMLR (2021) 5",
2081
+ "43. Rasheed, H., Maaz, M., Shaji, S., Shaker, A., Khan, S., Cholakkal, H., Anwer, R.M., Xing, E., Yang, M.H., Khan, F.S.: Glamm: Pixel grounding large multimodal model. arXiv preprint arXiv:2311.03356 (2023) 2, 3, 4, 5, 11, 12",
2082
+ "44. Shao, S., Li, Z., Zhang, T., Peng, C., Yu, G., Zhang, X., Li, J., Sun, J.: Objects365: A large-scale, high-quality dataset for object detection. In: Proceedings of the IEEE/CVF international conference on computer vision. pp. 8430-8439 (2019) 7"
2083
+ ],
2084
+ "bbox": [
2085
+ 212,
2086
+ 146,
2087
+ 787,
2088
+ 840
2089
+ ],
2090
+ "page_idx": 16
2091
+ },
2092
+ {
2093
+ "type": "header",
2094
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
2095
+ "bbox": [
2096
+ 395,
2097
+ 114,
2098
+ 730,
2099
+ 127
2100
+ ],
2101
+ "page_idx": 16
2102
+ },
2103
+ {
2104
+ "type": "page_number",
2105
+ "text": "17",
2106
+ "bbox": [
2107
+ 767,
2108
+ 116,
2109
+ 784,
2110
+ 126
2111
+ ],
2112
+ "page_idx": 16
2113
+ },
2114
+ {
2115
+ "type": "list",
2116
+ "sub_type": "ref_text",
2117
+ "list_items": [
2118
+ "45. Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al.: Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971 (2023) 2, 3",
2119
+ "46. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al.: Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 (2023) 2, 3",
2120
+ "47. Wang, J., Zhang, P., Chu, T., Cao, Y., Zhou, Y., Wu, T., Wang, B., He, C., Lin, D.: V3det: Vast vocabulary visual detection dataset. arXiv preprint arXiv:2304.03752 (2023) 7",
2121
+ "48. Wang, J., Meng, L., Weng, Z., He, B., Wu, Z., Jiang, Y.G.: To see is to believe: Prompting gpt-4v for better visual instruction tuning. arXiv preprint arXiv:2311.07574 (2023) 9",
2122
+ "49. Wang, P., Yang, A., Men, R., Lin, J., Bai, S., Li, Z., Ma, J., Zhou, C., Zhou, J., Yang, H.: Ofa: Unifying architectures, tasks, and modalities through a simple sequence-to-sequence learning framework. In: International Conference on Machine Learning. pp. 23318-23340. PMLR (2022) 10",
2123
+ "50. Wang, W., Lv, Q., Yu, W., Hong, W., Qi, J., Wang, Y., Ji, J., Yang, Z., Zhao, L., Song, X., et al.: Cogvlm: Visual expert for pretrained language models. arXiv preprint arXiv:2311.03079 (2023) 2, 4",
2124
+ "51. Wang, W., Shi, M., Li, Q., Wang, W., Huang, Z., Xing, L., Chen, Z., Li, H., Zhu, X., Cao, Z., et al.: The all-seeing project: Towards panoptic visual recognition and understanding of the open world. arXiv preprint arXiv:2308.01907 (2023) 4",
2125
+ "52. Wang, W., Chen, Z., Chen, X., Wu, J., Zhu, X., Zeng, G., Luo, P., Lu, T., Zhou, J., Qiao, Y., et al.: Visionllm: Large language model is also an open-ended decoder for vision-centric tasks. Advances in Neural Information Processing Systems 36 (2024) 4, 10",
2126
+ "53. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Xia, F., Chi, E., Le, Q.V., Zhou, D., et al.: Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems 35, 24824-24837 (2022) 3",
2127
+ "54. Wu, J., Wang, J., Yang, Z., Gan, Z., Liu, Z., Yuan, J., Wang, L.: Grit: A generative region-to-text transformer for object understanding. arXiv preprint arXiv:2212.00280 (2022) 12",
2128
+ "55. Yan, B., Jiang, Y., Wu, J., Wang, D., Luo, P., Yuan, Z., Lu, H.: Universal instance perception as object discovery and retrieval. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 15325-15336 (2023) 10, 11",
2129
+ "56. Yang, J., Zhang, H., Li, F., Zou, X., Li, C., Gao, J.: Set-of-mark prompting unleashes extraordinary visual grounding in gpt-4v. arXiv preprint arXiv:2310.11441 (2023) 8",
2130
+ "57. Ye, Q., Xu, H., Xu, G., Ye, J., Yan, M., Zhou, Y., Wang, J., Hu, A., Shi, P., Shi, Y., et al.: mplug-owl: Modularization empowers large language models with multimodality. arXiv preprint arXiv:2304.14178 (2023) 2, 4",
2131
+ "58. You, H., Zhang, H., Gan, Z., Du, X., Zhang, B., Wang, Z., Cao, L., Chang, S.F., Yang, Y.: Ferret: Refer and ground anything anywhere at any granularity. arXiv preprint arXiv:2310.07704 (2023) 2, 4, 10, 11, 12, 13, 14",
2132
+ "59. Yu, L., Poirson, P., Yang, S., Berg, A.C., Berg, T.L.: Modeling context in referring expressions. In: Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part II 14. pp. 69-85. Springer (2016) 7, 10"
2133
+ ],
2134
+ "bbox": [
2135
+ 215,
2136
+ 146,
2137
+ 785,
2138
+ 839
2139
+ ],
2140
+ "page_idx": 17
2141
+ },
2142
+ {
2143
+ "type": "page_number",
2144
+ "text": "18",
2145
+ "bbox": [
2146
+ 217,
2147
+ 114,
2148
+ 235,
2149
+ 126
2150
+ ],
2151
+ "page_idx": 17
2152
+ },
2153
+ {
2154
+ "type": "header",
2155
+ "text": "Ma et al., 2024",
2156
+ "bbox": [
2157
+ 271,
2158
+ 114,
2159
+ 374,
2160
+ 127
2161
+ ],
2162
+ "page_idx": 17
2163
+ },
2164
+ {
2165
+ "type": "list",
2166
+ "sub_type": "ref_text",
2167
+ "list_items": [
2168
+ "60. Yuan, Y., Li, W., Liu, J., Tang, D., Luo, X., Qin, C., Zhang, L., Zhu, J.: Osprey: Pixel understanding with visual instruction tuning. arXiv preprint arXiv:2312.10032 (2023) 4",
2169
+ "61. Zhang, H., Li, F., Liu, S., Zhang, L., Su, H., Zhu, J., Ni, L.M., Shum, H.Y.: Dino: Detr with improved denoising anchor boxes for end-to-end object detection. arXiv preprint arXiv:2203.03605 (2022) 10",
2170
+ "62. Zhang, H., Li, H., Li, F., Ren, T., Zou, X., Liu, S., Huang, S., Gao, J., Zhang, L., Li, C., et al.: Llava-grounding: Grounded visual chat with large multimodal models. arXiv preprint arXiv:2312.02949 (2023) 2, 3, 4, 8, 12",
2171
+ "63. Zhang, H., Li, H., Li, F., Ren, T., Zou, X., Liu, S., Huang, S., Gao, J., Zhang, L., Li, C., et al.: Llava-grounding: Grounded visual chat with large multimodal models. arXiv preprint arXiv:2312.02949 (2023) 4",
2172
+ "64. Zhang, S., Sun, P., Chen, S., Xiao, M., Shao, W., Zhang, W., Chen, K., Luo, P.: Gpt4roi: Instruction tuning large language model on region-of-interest. arXiv preprint arXiv:2307.03601 (2023) 4, 5, 12, 13",
2173
+ "65. Zhao, Y., Lin, Z., Zhou, D., Huang, Z., Feng, J., Kang, B.: Bubogpt: Enabling visual grounding in multi-modal llms. arXiv preprint arXiv:2307.08581 (2023) 4",
2174
+ "66. Zhou, X., Girdhar, R., Joulin, A., Krahenbuhl, P., Misra, I.: Detecting twenty-thousand classes using image-level supervision. In: European Conference on Computer Vision. pp. 350-368. Springer (2022) 2",
2175
+ "67. Zhu, D., Chen, J., Shen, X., Li, X., Elhoseiny, M.: Minigpt-4: Enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592 (2023) 2, 4, 8, 9",
2176
+ "68. Zhu, X., Su, W., Lu, L., Li, B., Wang, X., Dai, J.: Deformable detr: Deformable transformers for end-to-end object detection. arXiv preprint arXiv:2010.04159 (2020) 5, 13",
2177
+ "69. Zou, X., Yang, J., Zhang, H., Li, F., Li, L., Wang, J., Wang, L., Gao, J., Lee, Y.J.: Segment everything everywhere all at once. Advances in Neural Information Processing Systems 36 (2024) 14"
2178
+ ],
2179
+ "bbox": [
2180
+ 212,
2181
+ 146,
2182
+ 787,
2183
+ 549
2184
+ ],
2185
+ "page_idx": 18
2186
+ },
2187
+ {
2188
+ "type": "header",
2189
+ "text": "Groma: Localized Visual Tokenization for MLLMs",
2190
+ "bbox": [
2191
+ 395,
2192
+ 114,
2193
+ 730,
2194
+ 127
2195
+ ],
2196
+ "page_idx": 18
2197
+ },
2198
+ {
2199
+ "type": "page_number",
2200
+ "text": "19",
2201
+ "bbox": [
2202
+ 767,
2203
+ 116,
2204
+ 784,
2205
+ 126
2206
+ ],
2207
+ "page_idx": 18
2208
+ }
2209
+ ]
2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/8a9d3b30-86dd-4aa7-b7f9-25429a73247f_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/8a9d3b30-86dd-4aa7-b7f9-25429a73247f_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49db75fe594deb74e855d6cd13c8258dda5578c677dd9b86dc56df1b765e4996
3
+ size 2903978
2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/full.md ADDED
@@ -0,0 +1,383 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Groma: Localized Visual Tokenization for Grounding Multimodal Large Language Models
2
+
3
+ Chuofan Ma $^{1\star}$ Yi Jiang $^{2\dagger}$ Jiannan Wu $^{1}$ Zehuan Yuan $^{2}$ Xiaojuan Qi $^{1\dagger}$
4
+
5
+ <sup>1</sup>The University of Hong Kong <sup>2</sup>ByteDance Inc.
6
+
7
+ Abstract. We introduce Groma, a Multimodal Large Language Model (MLLM) with grounded and fine-grained visual perception ability. Beyond holistic image understanding, Groma is adept at region-level tasks such as region captioning and visual grounding. Such capabilities are built upon a localized visual tokenization mechanism, where an image input is decomposed into regions of interest and subsequently encoded into region tokens. By integrating region tokens into user instructions and model responses, we seamlessly enable Groma to understand user-specified region inputs and ground its textual output to images. Besides, to enhance the grounded chat ability of Groma, we curate a visually grounded instruction dataset by leveraging the powerful GPT-4V and visual prompting techniques. Compared with MLLMs that rely on the language model or external module for localization, Groma consistently demonstrates superior performances in standard referring and grounding benchmarks, highlighting the advantages of embedding localization into image tokenization. Project page: https://groma-mlm.github.io/.
8
+
9
+ ![](images/58d02bd59f329b88fe61f78e37ab77d0a7c6eada7213e009568cf1c19ad69ece.jpg)
10
+
11
+ ![](images/9794bb866207cac0040be1d5fcbbb414959999bc15e5971edb0c958469bc252e.jpg)
12
+
13
+ Locate the the reflection of the frog.
14
+
15
+ ![](images/edefd98a8aedd5c20436131512406211a0630bd648d70f35bec523be89cb5aab.jpg)
16
+
17
+ It's located at <region>.
18
+
19
+ ![](images/fea1eeed14c8236f8d20d61631383d4d97570e6328d756db5eac002961e0cb34.jpg)
20
+
21
+ ![](images/f3a76dc295f5d37d00883f753e803b3fe2377fb564f762e13dd8f40be3425c92.jpg)
22
+
23
+ Please give a brief description of <region>
24
+
25
+ ![](images/5b4ab757935da310157709ea3e7d70316efb88e1ca4084158230a77c178c92ba.jpg)
26
+
27
+ A large dinosaur skeleton.
28
+
29
+ ![](images/1bf8f86d71760f5279f8a0bff0dbd80ce9cfbfcd686e12554a84eae325d0c1cb.jpg)
30
+
31
+ [grounding] Is it safe to drive like this?
32
+
33
+ ![](images/41eb81bc1ed13215f1bb77185b82611fabefcd8e6c60d87165955485f803135d.jpg)
34
+ Fig. 1: Groma is a multimodal large language model with exceptional region understanding and visual grounding capabilities. It can take user-defined region inputs (boxes) as well as generate long-form responses that are grounded to visual context.
35
+
36
+ It's not advisable. The man is holding a cup in one hand and talking on the phone, which means he's not using both hands on the steering wheel. This could be a distraction and increase the risk of an accident.
37
+
38
+ ![](images/b69fca9e505551c47f8355ba3b22f00c949c5efdc9584c48eafe89f8b36d9190.jpg)
39
+
40
+ ![](images/da7c0faff23d3cefbcb43e0fd92cf7c8532eae82ee740152be8da4268bb7679b.jpg)
41
+
42
+ [grounding] Can you describe this image in details?
43
+
44
+ ![](images/1c35278bf0a6f8b10bd27b00ac8d52de40d5526b18e84d0570b3d3af8289714a.jpg)
45
+
46
+ In this image, we see a woman sitting on a concrete bench working on her laptop. She's surrounded by a green bag and a white bicycle that's leaning against the bench. Behind her, there's a large brick building and a tree.
47
+
48
+ # 1 Introduction
49
+
50
+ Multimodal Large Language Models (MLLMs) have spread the sparks of artificial general intelligence [5] from language to the visual domain [13,33,50,57,67]. Owing to the foundational capabilities of Large Language Models (LLMs) [12,36, 37,45,46], MLLMs excel in vision-language tasks that require advanced understanding and reasoning, such as image captioning and visual question answering. However, despite these achievements, current MLLMs typically fall short of localization capabilities, thus cannot ground understanding to the visual context. Such limitations constrains the model from fulfilling its potential in real-world applications like robotics, autonomous driving, and augmented reality.
51
+
52
+ In light of the gap, one stream of research attempts to augment the LLM to directly output quantized object coordinates for localization [3,7,8,39,50,58] (Fig. 2(a)). While this method is simple in design, the substantial computational demands of LLMs make it challenging to process high-resolution image inputs, which are essential for accurate localization. Besides, the nature of sequence outputs in LLMs is not well-suited for dense prediction tasks such as segmentation. These concerns elicit another stream of research, which incorporates an external localization module (e.g., SAM [22]) to decode bounding boxes or masks [26,40,43,62] (Fig. 2(b)). This approach circumvents aforementioned issues, but introduces additional model complexity.
53
+
54
+ The above motivates us to explore a new paradigm for grounded MLLMs. Drawing inspiration from open-vocabulary object detection [66], we decompose the grounding task into two sub-problems: discovering the object (localization) and relating the object to texts (recognition). We notice that localization alone requires little semantic understanding but demands perceptual skills, which is typically out of the scope of an LLM's expertise. This inspires us to decouple localization and recognition within MLLMs. But instead of using external modules, we propose exploiting the spatial understanding capability in the visual tokenizer of MLLMs for localization (Fig. 2(c)). This perceive-then-understand design also resembles human vision process.
55
+
56
+ Building upon this concept, we introduce Groma<sup>1</sup> (Grounded Multimodal Assistant), an MLLM with localized and fine-grained visual perception abilities. Specifically, Groma incorporates region tokenization alongside standard image tokenization to identify and encode potential regions of interest (ROIs) into region tokens. During this process, location information is extracted from the image and associated with region tokens, with each region token anchored to the underlying ROI. This allows Groma to ground its textual output by simply referring to region tokens, alleviating the need for the LLM to meticulously regress object coordinates. Moreover, the tokenizer of Groma can also encode user-specified region inputs (i.e., bounding boxes) into region tokens, which are directly inserted into user instructions to initiate referential dialogue.
57
+
58
+ By settling localization to the image tokenization process, Groma circumvents the heavy computation of LLMs when handling high-resolution input. Specifically, Groma uses high-resolution images for tokenizer input but downsamples image tokens for LLM input, which saves computation without sacrificing localization accuracy. Besides, unlike methods adopting separate designs for modeling grounding outputs and referring inputs [43,62], Groma seamlessly unifies the two capabilities with the use of region tokens.
59
+
60
+ From the data perspective, to improve the localized understanding of Groma, we adopt an extensive collection of datasets with region-level annotations for training, which encompasses a range of region semantics from objects and relationships to detailed region descriptions. In addition, to remedy the lack of long-form grounded data, we construct a visually grounded chat dataset called Groma Instruct for instruction finetuning. Groma Instruct is the first grounded chat dataset constructed with both visual and textual prompts, leveraging the powerful GPT-4V for data generation.
61
+
62
+ Our comprehensive experiments demonstrate the superiority of the design of Groma, with results showing that it outperforms all comparable MLLMs on established referring and grounding benchmarks. We also showcase that Groma maintains strong image-level understanding and reasoning abilities on the conversational VQA benchmark. Moreover, to assess the ability to localize multiple, diverse, and variably-sized objects, we adapt the LVIS [15] detection benchmark for object grounding evaluation. On this challenging benchmark, Groma surpasses alternative methods by a significant margin (over $10\%$ AR), highlighting its robust and precise localization capabilities.
63
+
64
+ ![](images/490a6ee3777a53b6d0fdf04ebce8c57373c655b0a9685460f4a9f93b3e62d6c9.jpg)
65
+ (a)
66
+
67
+ ![](images/d530591d360095a11deba732427672d0779260efda4534f731ffb4f50eca85ed.jpg)
68
+ (b)
69
+ Fig. 2: Different paradigms of grounded MLLMs. We mark the modules for localization with $\dagger$ . (a) LLM for localization (e.g., Kosmos-2 [39] and Shikra [8]); (b) External modules for localization (e.g., Lisa [26]); and (c) Localized visual tokenization (Ours).
70
+
71
+ ![](images/2d0a085ffccc2ceba4791dc374ca62549bd117816833c56b6fed620acd597352.jpg)
72
+ (c)
73
+
74
+ # 2 Related Work
75
+
76
+ Image-level MLLMs. Large language models (LLMs) such as GPT series [1, 53] and LLaMA [45,46] have recently undergone rapid development and sparked a revolution in the field of natural language processing. Such progress inspires the community to extend the foundational capabilities of LLMs to the visual
77
+
78
+ domain, giving birth to multimodal large language models (MLLMs). The pioneering works [2, 13, 27, 28, 57, 62, 67] of MLLMs typically follow a tripartite architecture, comprising a visual encoder, a vision-language connector, and a large language model. Specifically, BLIP-2 [28] and Flamingo [2] first propose the Q-Former/Resampler to bridge vision and language. LLaVA [62] and MiniGPT4 [67] streamline this vision-language connector to a linear layer, and introduce visual instruction tuning to enhance the instruction-following ability of MLLMs. Following works [10, 50] further showcase the immense potential of MLLMs by scaling up the visual components to the magnitude as LLMs. While these works have exhibited impressive visual understanding capabilities, they are predominantly constrained to image-level tasks, such as image captioning and image visual question answering. This necessitates the research into region-level MLLMs, which unlock more nuanced and granular visual-language interactions.
79
+
80
+ Region-level MLLMs. In pursuit of fine-grained and grounded image understanding, recent studies further integrate region-level data into the training of MLLMs [7, 8, 39, 51, 52, 60, 65]. In particular, to model box inputs and outputs, Kosmos-2 [39] and Shikra [8] directly quantize bounding boxes into discrete location tokens or numeric representation of positions. GPT4RoI [64] and RegionGPT [14] use a simple pooling operation to extract the features within boxes or masks as the region representations. While Ferret [58] proposes a spatial-aware visual sampler to deal with free-form region inputs. Besides, to achieve more accurate localization, some works [26, 43, 63] resort to off-the-shelf models for pixel-level grounding. For instance, LISA [26] takes the segmentation token generated by the MLLM as the prompts for SAM [22] to produce the segmentation masks. GLaMM [43] and LLaVA-Ground [62] further advance the concept and enable grounded conversation generation. Our work shares the same focus with the aforementioned methods on region-level understanding and grounding. Yet, we distinguish ourselves from existing studies by proposing a novel perspective in enhancing the localization ability of MLLMs.
81
+
82
+ # 3 Method
83
+
84
+ In this section, we present Groma, a grounded multimodal large language model capable of understanding user-defined region inputs and generating visually grounded outputs. We first illustrate the model architecture of Groma in Sec. 3.1. Then we introduce how to format region input and output in Sec. 3.2. Finally, we detail the learning pipelines Sec. 3.3.
85
+
86
+ # 3.1 Model Architecture
87
+
88
+ As illustrated in Fig. 3, Groma primarily consists of (1) an image encoder for scene-level image tokenization, (2) a region proposer for discovering regions of interest, (3) a region encoder for region-level image tokenization, and (4) a large language model for modeling multimodal input and output. We detail each component in the following paragraphs.
89
+
90
+ ![](images/bc368c885623cf122996879d6b68f5fec2b0803d110c6aa67d19bbfffee55fba.jpg)
91
+ Fig. 3: Overview of Groma. Groma encodes the image input into both global image tokens and local region tokens. For region tokenization, a general-purpose region proposer is introduced to discover regions of interest, followed by a light-weight region encoder. By integrating region tokens into user instructions and model responses, Groma unlocks the referring and grounding abilities of MLLMs.
92
+
93
+ Image Encoder. Groma employs a pretrained DINOv2 [38] model as the image encoder with the input image resolution set to $448 \times 448$ . Compared with the commonly adopted CLIP [42] visual encoder, DINOv2 is preferred in this work for its compatibility with high-resolution inputs and fine-grained features for localization. However, the use of higher-resolution images leads to extended sequences of visual input for the language model, e.g., 1024 tokens in this case. To save computations, we further concatenate every four neighbor patch tokens into a single token following MiniGPT-v2 [7]. But slightly different from [7], we merge tokens adjacent in 2D instead of 1D, which yields better performance.
94
+
95
+ Region Proposer. To obtain localized understanding of the image, Groma innovatively incorporates a region proposer into the image tokenization process. Specifically, the region proposer is implemented as a class-agnostic detector head using the Deformable DETR (DDETR) transformer [68]. The original classification head of DDETR is replaced by a binary classifier to score region proposals based on their localization quality. Inspired by ViTDet [29], we extract feature maps from the last 4 layers of the image encoder, and rescale these feature maps to construct a hierarchical feature pyramid as the input to the region proposer. For each image, the region proposer generates 300 region proposals, which are then filtered by NMS and objectness scores before fed into the region encoder.
96
+
97
+ Region Encoder. The region encoder translates region proposals (i.e., bounding boxes), coming from both user input and the region proposer, into region tokens. Akin to the previous step, we select feature maps from the last three layers of the image encoder to create a hierarchical feature pyramid. A multiscale ROAlign [16] module as implemented in [43, 64] is utilized to crop and fuse these hierarchical features into unified region tokens. Compared with alternative ways to represent regional inputs, such as numerical representation of positions [8] and discrete location tokens [7, 39], the region token representation offers distinct benefits as it is semantically aligned with the underlying region, which renders it more intuitive for the language model to comprehend.
98
+
99
+ LLM. We adopt pretrained Vicuna [12] as the language model of Groma. In particular, we instantiate Groma with the 7B version of Vicuna. Besides, we follow LLaVA v1.5 [32] to use an MLP layer to project the image tokens and region tokens into the feature space of the LLM.
100
+
101
+ # 3.2 Input and Output Formatting
102
+
103
+ Beyond textual only instructions and responses, Groma offers the flexibility to accept user-specified regions as input (referring) and generate visually grounded answers (grounding). Specifically, although different in task formulations, both referring and grounding are unified into one format with the use of region tokens.
104
+
105
+ Grounding Output. Remember in the tokenization process, each region token is inherently anchored to a concrete location in the image, corresponding to its region proposal. This connection allows the language model to ground its text output to particular regions in the image by simply referring to the associated region tokens. However, as region tokens are continuous embeddings, they cannot be directly integrated into the codebook of the language model and referenced in the text output. To bridge the gap, we further introduce a set of proxy tokens “ $\langle \mathbf{r}_1\rangle$ , $\langle \mathbf{r}_2\rangle$ , ..., $\langle \mathbf{r}_n\rangle$ ” to register region tokens. As illustrated below, Groma can refer to any region in the output by addressing the proxy token.
106
+
107
+ User: Here is an image with region crops from it. Image: <image>. Regions: <r1><region>, <r2><region>, ..., <rn><region>. [grounding] Please briefly describe the image content.
108
+
109
+ Groma: <p>A dog</p> <roi><r4></roi> is jumping to catch <p>a frisbee</p> <roi><r7></roi> over <p>a fallen man</p> <roi><r1></roi>.
110
+
111
+ <image> and <region> stand for placeholders of image tokens and region tokens, which are replaced by corresponding visual tokens before being fed into the LLM. <p> and </p> marks the start and end of the grounded phrase. <roi> and </roi> are used to enclose the referenced regions. In addition, we use a special token [grounding] to inform the model to generate grounded responses.
112
+
113
+ Referring Input. For a region pointed out by the user, we treat it the same as region proposals from the region proposer, i.e., encoding it into a region token and assigning a proxy token to it. This allows us to incorporate user-specified regions into our instructions by inserting corresponding region tokens. A simple example of referential dialogue in Groma is given below, where $\langle r_{10} \rangle$ comes from user-specified region input.
114
+
115
+ User: Here is an image with region crops from it. Image: <image>. Regions: <r1><region>, <r2><region>, ..., <rn><region>. What is <r10><region?>
116
+
117
+ Groma: A cute cat sleeping on a wooden bench.
118
+
119
+ # 3.3 Model Training
120
+
121
+ The training of Groma is partitioned into three stages: $(i)$ detection pretraining for localization ability, $(ii)$ alignment pretraining for image-level and region-level vision-language alignment, $(iii)$ instruction finetuning for enhanced conversation capability. Tab. 1 enumerates the datasets used at different training stages. Additionally, we provide the instruction templates used to convert task-specified datasets to instruction following format in Appendix.
122
+
123
+ Table 1: Datasets used at three training stages. RefCOCO/g/ $^+$ is short for RefCOCO, RefCOCO+, and RefCOCOg. REC means referring expression comprehension.
124
+
125
+ <table><tr><td>Training stage</td><td>Data types</td><td>Datasets</td></tr><tr><td>Detection pretraining</td><td>Detection</td><td>COCO, Objects365, OpenImages, V3Det, SA1B</td></tr><tr><td rowspan="4">Alignment pretraining</td><td>Image caption</td><td>ShareGPT-4V-PT</td></tr><tr><td>Grounded caption</td><td>Flickr30k Entities</td></tr><tr><td>Region caption</td><td>Visual Genome, RefCOCOg</td></tr><tr><td>REC</td><td>COCO, RefCOCO/g/+, Grit-20m</td></tr><tr><td rowspan="4">Instruction finetuning</td><td>Grounded caption</td><td>Flickr30k Entities</td></tr><tr><td>Region caption</td><td>Visual Genome, RefCOCOg</td></tr><tr><td>REC</td><td>COCO, RefCOCO/g/+</td></tr><tr><td>Instruction following</td><td>Groma Instruct, LLaVA Instruct, ShareGPT-4V</td></tr></table>
126
+
127
+ Detection Pretraining. This training stage only involves the image encoder and the region proposer, which collectively constitute a DDETR-like detector. The image encoder is kept frozen during training. To endow the region proposer with localization capability, an extensive collection of detection datasets, including COCO [30], Objects365 [44], OpenImages [25], and V3Det [47], is utilized for large-scale pretraining. Notably, category information is omitted from the training process, with a primary focus on box supervision.
128
+
129
+ Considering traditional detection data are typically limited to object-level annotations, we complement the training with a two million subset of SA1B [23] data filtered by GLEE [19]. Original mask annotations of SA1B are transformed into bounding boxes for consistency. The inclusion of this enriched dataset encourages the region proposer to produce region proposals encompassing not only object instances but also their constituent parts and various background stuff.
130
+
131
+ Alignment Pretraining. To align vision and language feature space of Groma, we pretrain the model on a wide range of vision-language tasks. Specifically, for image-level alignment, we leverage ShareGPT-4V-PT [9] for detailed image captioning. For region-level alignment, we engage COCO [30], RefCOCO [21], RefCOCO+ [59], RefCOCOg [35], and Grit-20m [39] for referring expression comprehension (REC), Visual Genome [24] for region captioning, and Flickr30k Entities [41] for grounded caption generation. To maintain training efficiency, we focus finetuning efforts on the MLP projection layer and the region encoder, while other modules are kept frozen throughout the training.
132
+
133
+ Instruction Finetuning. Based on alignment pretraining, we refine the training data to focus exclusively on high-quality datasets and proceed to unfreeze the language model for finetuning purposes. At this stage, LLaVA Instruct [33] and ShareGPT-4V [9] are incorporated to improve the conversational and instruction-following capabilities of Groma². Besides, we curate a high-quality grounded chat dataset, named Groma Instruct (see next section for more details), to facilitate synergy of chatting and grounding abilities of Groma.
134
+
135
+ Discussions. A major difference between the training of Groma and current MLLMs is the integration of dedicated detection pretraining, which endows Groma with robust and precise localization ability. Thanks to the decoupled architecture of location and understanding within Groma, we circumvent the need to involve the LLM during detection pretraining. Such a strategic design allows Groma to benefit from pretraining on millions of bounding box annotations — a task that would be computationally prohibitive for classic MLLMs.
136
+
137
+ # 4 GPT4V-assisted Grounded Conversation Generation
138
+
139
+ Visual dialogue data have proven to be crucial in advancing the conversational capability of the MLLM as a visual chatbot. Previous methods mostly rely on coarse-grained image descriptions to derive free-form visual dialogues, which typically lack fine-grained region details and precise location information [33, 67]. For grounded MLLMs, such free-form dialogue data are shown to be insufficient to enable the model to generate long-form grounded responses [62] - as the format of grounded responses significantly deviates from that of normal responses, it could be challenging for the grounded MLLM to generalize its grounding capability to long-form conversations.
140
+
141
+ To bridge the gap, we have meticulously curated a dataset containing 30k visually grounded conversations for instruction finetuning, named Groma Instruct. An illustrative example from Groma Instruct is showcased in Fig. 4. Specifically, we select images with dense region annotations from Visual Genome [24] (VG), and take the following steps to construct grounded conversations with the assistance of advanced GPT-4V model:
142
+
143
+ - First, we remove highly overlapped regions (bounding boxes) from VG annotations, normally leaving 3-10 regions of interest for each image. Then we adapt the visual prompting techniques from SoM [56] to overlay a bright numeric marker at the center of each region. Using this marked image as input unleashes the grounding capabilities of GPT-4V - it can easily make references to specific image regions by addressing the corresponding numbers.
144
+ - Besides visual input, we supply GPT-4V with rich region descriptions, image descriptions, and image-based Q&A pairs, coming from COCO [30] and VG
145
+
146
+ annotations<sup>3</sup>. While such textual context is optional for GPT-4V input, we empirically find it useful to reduce hallucinations in generated contents and resolve potential ambiguities in visual prompts<sup>4</sup>.
147
+
148
+ - Inspired by prior studies on visual chat data construction [9, 33, 48, 67], we further provide GPT-4V with manually designed grounded chat as context examples. This provokes the in-context-learning ability of GPT-4V to generate grounded conversations in a uniform format. We also take a post-processing stage to filter out conversations not following the pre-defined format.
149
+
150
+ # Region descriptions:
151
+
152
+ [1] dog walking on beach
153
+ [2] surfboard under woman's arm
154
+ [3] woman walking in wetsuit
155
+ [4] sand on ocean shore
156
+ [5] ocean with rolling waves
157
+ [6] hazy mountains on horizon
158
+
159
+ # Q&A pairs:
160
+
161
+ What is the surfer holding?
162
+ Surf board.
163
+ $= = =$
164
+ What is the dog doing?
165
+ Following its master.
166
+ ···
167
+
168
+ ![](images/c829acfb51442a9674d283be707b3586b0ad3d1cfb0ff0685636cb81974e46f4.jpg)
169
+ Fig. 4: A data example from Groma Instruct. The top part demonstrates the image input with visual prompts and contextual text input to GPT-4V. Notably, all numbered regions have corresponding bounding box annotations, which are not shown in the image. The bottom part is the grounded conversations generated by GPT-4V.
170
+
171
+ # Image Descriptions:
172
+
173
+ A woman in a wetsuit carries a surfboard and walks with a dog.
174
+ A lady in a wet suit walking with a dog on a beach.
175
+ A woman carries a surf board as a dog walks beside her.
176
+ A woman and her dog are walking away from the ocean with a surfboard.
177
+ A person is walking with a dog and a surfboard.
178
+
179
+ # Generated Grounded Conversations:
180
+
181
+ Question: Can you describe to me what you see in this image?
182
+
183
+ Answer: Sure, I see a beach scene with $\langle \mathrm{p} \rangle$ a woman $\langle \mathrm{p} \rangle$ [3] wearing a wetsuit. She's walking near the water's edge, and there's $\langle \mathrm{p} \rangle$ a dog $\langle \mathrm{p} \rangle$ [1] walking alongside her. The woman $\langle \mathrm{p} \rangle$ [3] is carrying a surfboard $\langle \mathrm{p} \rangle$ [2] under her arm. I can also see the ocean $\langle \mathrm{p} \rangle$ [5] with some waves and faint mountains $\langle \mathrm{p} \rangle$ [6] in the distance.
184
+
185
+ Question: What kind of dog is it, and what's it doing?
186
+
187
+ Answer: It looks like $\langle \mathrm{p} \rangle$ a medium-sized, short-haired dog $\langle \mathrm{/p} \rangle$ [1], quite possibly a mixed breed. The dog $\langle \mathrm{/p} \rangle$ [1] is just strolling beside $\langle \mathrm{p} \rangle$ the woman $\langle \mathrm{/p} \rangle$ [3], seemingly following her as they both walk across $\langle \mathrm{/p} \rangle$ the sand $\langle \mathrm{/p} \rangle$ [4].
188
+
189
+ Question: Is the beach crowded, or does it seem deserted?
190
+
191
+ Answer: It actually looks quite deserted, with no one else in sight apart from $\langle \mathfrak{p} \rangle$ the woman $\langle \mathfrak{p} \rangle$ [3] and $\langle \mathfrak{p} \rangle$ her dog $\langle \mathfrak{p} \rangle$ [1]. It gives off a peaceful, solitary vibe - just them and the $\langle \mathfrak{p} \rangle$ vast ocean $\langle \mathfrak{p} \rangle$ [5] and $\langle \mathfrak{p} \rangle$ sandy shore $\langle \mathfrak{p} \rangle$ [4].
192
+
193
+ Question: What is the state of the ocean, and is it suitable for surfing?
194
+
195
+ Answer: <p> The ocean </p> [5] appears quite serene but with rolling waves, hence appropriate for surfing.
196
+
197
+ # 5 Experiments
198
+
199
+ In this section, we first quantitatively access the abilities of Groma on grounding (Sec. 5.2), referring (Sec. 5.3), and image-based conversation (Sec. 5.4) tasks. Then we provide qualitative results to exemplify the strong capabilities of Groma on a wide range of region-level tasks (Sec. 5.5). Finally, we ablate the design and training of Groma in Sec. 5.6.
200
+
201
+ # 5.1 Implementation Details.
202
+
203
+ We adopt DINOv2-L/14 [38] as the image encoder and Vicuna-7B v1.5 [12] as the language model. The region proposer follows an encoder-decoder architecture with 6 encoder layers and 6 decoder layers. We further employ mixed query selection and look-forward-twice scheme as in [61] to accelerate convergence. We set NMS threshold to 0.6 and filter out region proposals with objectness scores lower than 0.15. Subsequently, we select the top 100 region proposals if there are more than 100 proposals left after filtering. This results in no more than 356 visual tokens in total. For training, we sequentially proceed 12 epochs of detection pretraining, 2 epochs of alignment pretraining, and 1 epoch of instruction finetuning. More training details can be found in the Appendix.
204
+
205
+ # 5.2 Grounding Benchmark Results
206
+
207
+ Table 2: Results on referring expression comprehension benchmarks. We report accuracy with the IoU threshold set to 0.5. We make Qwen-VL gray because it uses a much larger visual tokenizer (1.9B ViT-bigG [17]).
208
+
209
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Model type</td><td colspan="3">RefCOCO</td><td colspan="3">RefCOCO+</td><td colspan="2">RefCOCOg</td><td rowspan="2">Average</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>test</td></tr><tr><td>MDETR [20]</td><td></td><td>86.75</td><td>89.58</td><td>81.41</td><td>79.52</td><td>84.09</td><td>70.62</td><td>81.64</td><td>80.89</td><td>81.81</td></tr><tr><td>G-DINO [34]</td><td>Specialist</td><td>90.56</td><td>93.19</td><td>88.24</td><td>82.75</td><td>88.95</td><td>75.92</td><td>86.13</td><td>87.02</td><td>86.60</td></tr><tr><td>UNINEXT-L [55]</td><td></td><td>91.43</td><td>93.73</td><td>88.93</td><td>83.09</td><td>87.90</td><td>76.15</td><td>86.91</td><td>87.48</td><td>86.95</td></tr><tr><td>VisionLLM [52]</td><td></td><td>-</td><td>86.70</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>OFA [49]</td><td></td><td>79.96</td><td>83.67</td><td>76.39</td><td>68.29</td><td>76.00</td><td>61.75</td><td>67.57</td><td>67.58</td><td>72.65</td></tr><tr><td>Shikra [8]</td><td></td><td>87.01</td><td>90.61</td><td>80.24</td><td>81.60</td><td>87.36</td><td>72.12</td><td>82.27</td><td>82.19</td><td>82.93</td></tr><tr><td>Ferret [58]</td><td>Generalist</td><td>87.49</td><td>91.35</td><td>82.45</td><td>80.78</td><td>87.38</td><td>73.14</td><td>83.93</td><td>84.76</td><td>83.91</td></tr><tr><td>MiniGPT-v2 [7]</td><td></td><td>88.69</td><td>91.65</td><td>85.33</td><td>79.97</td><td>85.12</td><td>74.45</td><td>84.44</td><td>84.66</td><td>84.29</td></tr><tr><td>Qwen-VL [4]</td><td></td><td>89.36</td><td>92.26</td><td>85.34</td><td>83.12</td><td>88.25</td><td>77.21</td><td>85.58</td><td>85.48</td><td>85.83</td></tr><tr><td>Groma</td><td></td><td>89.53</td><td>92.09</td><td>86.26</td><td>83.90</td><td>88.91</td><td>78.05</td><td>86.37</td><td>87.01</td><td>86.52</td></tr></table>
210
+
211
+ We evaluate the localization capability of Groma on visual grounding tasks. Tab. 2 showcases our performance on three classic referring expression comprehension benchmarks: RefCOCO [21], RefCOCO+ [59], and RefCOCOg [35]. Groma notably surpasses other generalist models of similar model size across all metrics. Moreover, as a generalist model, Groma shows competitive results with
212
+
213
+ state-of-the-art specialist models [34, 55]. These findings underscore the strong capability of Groma in visual grounding.
214
+
215
+ However, we notice that traditional REC benchmarks only cover a narrow range of common objects in their referring expressions, which is insufficient to thoroughly evaluate the MLLM's localization capability. Therefore, we further introduce LVIS-Ground, an object grounding benchmark converted from the LVIS [15] detection data. LVIS-Ground contains 4299 images covering 1203 categories of objects, with on average 3.7 target objects per image. Complementary to REC benchmarks, LVIS-Ground focuses on testing the model's ability to locate multiple, diverse, and variably-sized objects. For more details of LVIS-Ground, please refer to the Appendix.
216
+
217
+ Tab. 3 presents our results on LVIS-Ground. Notably, Groma demonstrates clear advantages over other grounded MLLMs, especially on the AR@0.75 metric. This evidences that the specialized design and training indeed bring more accurate localization for Groma. Moreover, it is noteworthy that current MLLMs all fall short of small object localization (AR@s metric). We conjecture this is mainly because the training data (e.g., RefCOCO/g/+, Flickr30k) lack annotations for small objects. We also notice that current models typically predict only one box per image, even though more than one targets are presented. This is an expected behavior as the they heavily rely on REC data for grounding training, which only has one target object per query. These findings call for the necessity of diversifying grounding data used for training in future MLLMs.
218
+
219
+ Table 3: Results on the LVIS-Ground benchmark. We report average recall (AR) to measure performances. For each model, we use the native prompt template recommended by the paper for evaluation.
220
+
221
+ <table><tr><td>Method</td><td>AR</td><td>AR@0.5</td><td>AR@0.75</td><td>AR@s</td><td>AR@m</td><td>AR@l</td></tr><tr><td>Shikra [8]</td><td>4.9</td><td>14.2</td><td>2.0</td><td>0.1</td><td>3.1</td><td>18.5</td></tr><tr><td>MiniGPT-v2 [7]</td><td>11.4</td><td>19.8</td><td>11.2</td><td>0.3</td><td>8.0</td><td>41.1</td></tr><tr><td>Ferret [58]</td><td>16.8</td><td>29.6</td><td>16.3</td><td>1.6</td><td>16.7</td><td>51.1</td></tr><tr><td>Groma</td><td>28.8</td><td>37.9</td><td>30.3</td><td>8.7</td><td>35.6</td><td>64.3</td></tr></table>
222
+
223
+ # 5.3 Referring Benchmark Results
224
+
225
+ We evaluate Groma on the region captioning task to assess its fine-grained region understanding capability. To prompt the model to generate region-level descriptions, we use queries like "Please describe <region> in details." Tab. 4 presents our results on two established region captioning benchmarks, RefCOCOg and Visual Genome. Without task-specific finetuning, Groma shows comparable or improved performance over GLaMM $^5$ [43], which has separate designs for input referring and output grounding. This exemplifies the superiority of unified refer-and-ground formulation in Groma.
226
+
227
+ Table 4: Results on region captioning benchmarks. We report METEOR and CIDER scores to measure caption quality. †: with task-specific finetuning.
228
+
229
+ <table><tr><td rowspan="2">Method</td><td colspan="2">RefCOCOg</td><td colspan="2">Visual Genome</td></tr><tr><td>METEOR</td><td>CIDEr</td><td>METEOR</td><td>CIDEr</td></tr><tr><td>GRIT [54]</td><td>15.2</td><td>71.6</td><td>17.1</td><td>142</td></tr><tr><td>Kosmos-2 [39]</td><td>14.1</td><td>62.3</td><td>-</td><td>-</td></tr><tr><td>GPT4RoI [64]</td><td>-</td><td>-</td><td>17.4</td><td>145.2</td></tr><tr><td>GLaMM† [43]</td><td>16.1</td><td>101.9</td><td>19.0</td><td>163.9</td></tr><tr><td>ViP-LLaVA [6]</td><td>16.6</td><td>105.9</td><td>-</td><td>-</td></tr><tr><td>Groma</td><td>16.8</td><td>107.3</td><td>19.0</td><td>158.4</td></tr></table>
230
+
231
+ # 5.4 Conversational VQA Benchmark Results
232
+
233
+ In addition to region-level tasks, we further evaluate Groma on the conversational style VQA benchmark, LLaVA Bench (COCO) [33], which contains three types of questions, namely conversation, detailed description, and complex reasoning. As shown in Tab. 5, Groma surpasses the strong baseline method LLaVA [33] and achieves competitive performance among grounded MLLMs, especially in detailed image description. This demonstrates that Groma maintains decent image understanding and visual chatting abilities. For the underperformance in conversation and complex reasoning questions, we speculate this could be resulted from the DINOv2 features, as shown in recent studies [18, 31]. But we believe such gap can be closed by scaling up vision-language alignment pretraining.
234
+
235
+ Table 5: Results on LLaVA-Bench (COCO).
236
+
237
+ <table><tr><td>Method</td><td>Conversation</td><td>Description</td><td>Reasoning</td><td>Average</td></tr><tr><td>LLaVA [33]</td><td>85.4</td><td>68.3</td><td>92.1</td><td>81.9</td></tr><tr><td>Kosmos-2 [39]</td><td>71.7</td><td>63.4</td><td>74.9</td><td>70.0</td></tr><tr><td>Shikra [8]</td><td>80.6</td><td>70.7</td><td>88.1</td><td>79.9</td></tr><tr><td>LLaVA-G [62]</td><td>79.3</td><td>71.2</td><td>92.8</td><td>81.2</td></tr><tr><td>Ferret [58]</td><td>84.4</td><td>79.4</td><td>96.3</td><td>86.7</td></tr><tr><td>Groma</td><td>82.6</td><td>84.0</td><td>88.8</td><td>85.2</td></tr></table>
238
+
239
+ # 5.5 Qualitative Results
240
+
241
+ Fig. 5 presents a comparison between Groma and other grounded MLLMs on the grounded image captioning task. We choose an exemplar image that is inherently challenging with multiple and occluded instances to ground. Groma manifests exceptional grounding performance in this case with the highest recall and minimum hallucinations. In addition, we provide several visualization examples in Fig. 6 for a complementary understanding of Groma's abilities on grounded chat and referential dialogue. We show that Groma is capable of generating long-form, grounded and logically rich answers, which can be mainly attributed to the introduction of Groma Instruct data in finetuning.
242
+
243
+ Kosmos2
244
+ ![](images/f397344c26bcc5667bd757a7fc7c76fce74886b361365da2760afbafc29ee116.jpg)
245
+ An image of a herd of giraffes and zebras.
246
+
247
+ MiniGPT v2
248
+ ![](images/8de6379c965a5a11686de84789ccf69eb88adf934534c2981cd8aa2744c781fd.jpg)
249
+ A herd of zebras and giraffes are standing in a field with trees in the background.
250
+
251
+ Groma
252
+ ![](images/eec3e20322456c782fc37fea2ac56595a33186bf40393cab3634c6fd728f5a34.jpg)
253
+ A group of giraffes and zebras are walking through a field.
254
+
255
+ ![](images/0b4651f713101d3388995774244a199a2166a7c0154420599503e7f81794967d.jpg)
256
+ Fig. 5: A qualitative comparison on the grounded image captioning task.
257
+
258
+ ![](images/7b7bf5f5fe0258ef74a5caf262f66e36a7f11f274025ea53fd3479bf6fcf5fbd.jpg)
259
+ [grounding] Where is this city? Can you identify its landmark?
260
+
261
+ ![](images/d5f1ad3cc78a6fa50f2595d49458297e938ce81a65459ef77ad6b8814b406dd8.jpg)
262
+ This is a view of Sydney, Australia. You can identify the landmark by the iconic large white sailboat-shaped building which is the Sydney Opera House.
263
+
264
+ ![](images/4f99cc14dba65fb3dabc3fbfdbfbc025a41437cdd50c4603e93a386aa37c8383.jpg)
265
+ Fig. 6: Examples on visually grounded chat and referential dialogue.
266
+
267
+ ![](images/4516d10160d5db348118370badeb31495107a9fed2f29222dc1a196cc59dfa64.jpg)
268
+ [grounding] Which equipment should I choose for aerobic exercise?
269
+
270
+ ![](images/504ba6968d916963f466b644366d8542559e0dd46599e8e954ee5c26a4f2be09.jpg)
271
+ For aerobic exercise, you might consider using the treadmill or the elliptical machine. Both are great for cardiovascular workouts.
272
+
273
+ ![](images/321c7bdff40e9991ffb83252808d430c53a042eda6a5a9d99f8dca71cc783f71.jpg)
274
+ What is the functionality of <region> in the image?
275
+ In the image, the telescope is situated on a hill, with a dark blue sky and stars in the background. The telescope serves the purpose of observing celestial objects, such as stars, planets, and other astronomical phenomena. It allows people to study and learn about the universe, as well as to enjoy the beauty of the night sky. The telescope's location on the hill provides an elevated vantage point, which can enhance its view of the sky and the celestial objects it is observing.
276
+
277
+ # 5.6 Ablation
278
+
279
+ CLIP vs. DINOv2. To quantitatively assess the differences in localization capabilities between CLIP and DINOv2, we compare the two backbones on the COCO detection benchmark in Tab. 6. For this comparison, we equip each backbone with a DDETR [68] detection head and finetune only the detection head on COCO dataset. It can be seen that under the same resolution, DINOv2 backbone significantly outperforms CLIP backbone by 6.5 AP. Furthermore, by scaling the resolution to $448 \times 448$ , DINOv2 backbone achieves a commendable performance of 43.6 AP. The results consolidate our choice of DINOv2 backbone in Groma.
280
+
281
+ Frozen LLM. In Tab. 7, we reveal that Groma retains robust localized understanding even without finetuning the LLM, i.e., it demonstrates a referring ability on par with GPT4ROI [64] (148.0 vs. 145.2) and grounding ability comparable to Ferret [58] (84.02% vs. 83.91%). This finding suggests our design
282
+
283
+ effectively decouples localization and understanding within Groma, such that it requires minimum 'new knowledge' from the LLM for localized understanding.
284
+
285
+ Token Merge. To save computations, Groma by default concatenates every 4 image tokens into one as LLM inputs. Through control experiments in Tab. 8, we find that such downsampling has negligible impacts on the grounding performances (e.g., less than $0.1\%$ average accuracy drop on the REC benchmarks). The results evidence that the decoupled design is optimal in both efficiency and localization accuracy.
286
+
287
+ Table 6: Object detection performances on COCO with different backbones and image resolutions.
288
+
289
+ <table><tr><td>Backbone</td><td>Resolution</td><td>AP</td></tr><tr><td>CLIP</td><td>336×336</td><td>32.4</td></tr><tr><td>DINOv2</td><td>336×336</td><td>38.9</td></tr><tr><td>DINOv2</td><td>448×448</td><td>43.6</td></tr></table>
290
+
291
+ Table 7: Referring and grounding abilities with the frozen LLM. We measure referring ability with CIDEr score on Visual Genome and grounding ability with average accuracy on REC benchmarks.
292
+
293
+ <table><tr><td>Stage</td><td>LLM status</td><td>Referring</td><td>Grounding</td></tr><tr><td>pretraining</td><td>frozen</td><td>-</td><td>82.33</td></tr><tr><td>finetuning</td><td>frozen</td><td>148.0</td><td>84.02</td></tr><tr><td>finetuning</td><td>unfrozen</td><td>158.4</td><td>86.52</td></tr></table>
294
+
295
+ Table 8: Ablation on image token downsampling on the REC benchmarks.
296
+
297
+ <table><tr><td rowspan="2">Downsampling</td><td colspan="3">RefCOCO</td><td colspan="3">RefCOCO+</td><td colspan="2">RefCOCOg</td><td rowspan="2">Average</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>test</td></tr><tr><td>✓</td><td>89.32</td><td>92.15</td><td>85.96</td><td>84.11</td><td>88.10</td><td>78.40</td><td>86.33</td><td>87.40</td><td>86.47</td></tr><tr><td>X</td><td>89.54</td><td>92.54</td><td>86.18</td><td>83.72</td><td>88.52</td><td>78.96</td><td>86.17</td><td>86.84</td><td>86.55</td></tr></table>
298
+
299
+ # 6 Limitations and Conclusions
300
+
301
+ In this paper, we introduce a novel paradigm, Groma, to unleash the localized perception capabilities of MLLMs. We make the pioneering attempt to embed localization into image tokenization. Our paradigm is based on a perception-then-understand mindset that separates localization from high-level understanding and reasoning. Without introducing external modules, our approach overcomes the resolution bottleneck of using LLMs as location decoders and unifies referring and visual grounding tasks. Extensive experiments showcase the superior performance of our approach in localized perception, as evidenced by its success in referring and visual grounding tasks.
302
+
303
+ However, the current implementation does not support free-form region inputs and pixel-level grounding. A promising direction to address such limitations is to re-implement the region encoder with a visual sampler as in [58, 69] and replace the box region proposer by a mask region proposer like Mask2Former [11]. We leave this for future studies.
304
+
305
+ # Acknowledgements
306
+
307
+ This work has been supported by Hong Kong Research Grant Council - Early Career Scheme (Grant No. 27209621), General Research Fund Scheme (Grant No. 17202422), Theme-based Research (Grant No. T45-701/22-R) and RGC Matching Fund Scheme (RMGS). Part of the described research work is conducted in the JC STEM Lab of Robotics for Soft Materials funded by The Hong Kong Jockey Club Charities Trust.
308
+
309
+ # References
310
+
311
+ 1. Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al.: Gpt-4 technical report. arXiv preprint arXiv:2303.08774 (2023) 3
312
+ 2. Alayrac, J.B., Donahue, J., Luc, P., Miech, A., Barr, I., Hasson, Y., Lenc, K., Mensch, A., Millican, K., Reynolds, M., et al.: Flamingo: a visual language model for few-shot learning. Advances in Neural Information Processing Systems 35, 23716-23736 (2022) 4
313
+ 3. Bai, J., Bai, S., Yang, S., Wang, S., Tan, S., Wang, P., Lin, J., Zhou, C., Zhou, J.: Qwen-vl: A frontier large vision-language model with versatile abilities. arXiv preprint arXiv:2308.12966 (2023) 2
314
+ 4. Bai, J., Bai, S., Yang, S., Wang, S., Tan, S., Wang, P., Lin, J., Zhou, C., Zhou, J.: Qwen-vl: A versatile vision-language model for understanding, localization, text reading, and beyond (2023) 10
315
+ 5. Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J., Horvitz, E., Kamar, E., Lee, P., Lee, Y.T., Li, Y., Lundberg, S., et al.: Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712 (2023) 2
316
+ 6. Cai, M., Liu, H., Mustikovela, S.K., Meyer, G.P., Chai, Y., Park, D., Lee, Y.J.: Making large multimodal models understand arbitrary visual prompts. arXiv preprint arXiv:2312.00784 (2023) 12
317
+ 7. Chen, J., Zhu, D., Shen, X., Li, X., Liu, Z., Zhang, P., Krishnamoorthi, R., Chandra, V., Xiong, Y., Elhoseiny, M.: Minigpt-v2: large language model as a unified interface for vision-language multi-task learning. arXiv preprint arXiv:2310.09478 (2023) 2, 4, 5, 10, 11
318
+ 8. Chen, K., Zhang, Z., Zeng, W., Zhang, R., Zhu, F., Zhao, R.: Shikra: Unleashing multimodal llm's referential dialogue magic. arXiv preprint arXiv:2306.15195 (2023) 2, 3, 4, 5, 10, 11, 12
319
+ 9. Chen, L., Li, J., Dong, X., Zhang, P., He, C., Wang, J., Zhao, F., Lin, D.: Sharegpt4v: Improving large multi-modal models with better captions. arXiv preprint arXiv:2311.12793 (2023) 7, 8, 9
320
+ 10. Chen, Z., Wu, J., Wang, W., Su, W., Chen, G., Xing, S., Muyan, Z., Zhang, Q., Zhu, X., Lu, L., et al.: Intervl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks. arXiv preprint arXiv:2312.14238 (2023) 4
321
+ 11. Cheng, B., Misra, I., Schwing, A.G., Kirillov, A., Girdhar, R.: Masked-attention mask transformer for universal image segmentation. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 1290–1299 (2022) 14
322
+
323
+ 12. Chiang, W.L., Li, Z., Lin, Z., Sheng, Y., Wu, Z., Zhang, H., Zheng, L., Zhuang, S., Zhuang, Y., Gonzalez, J.E., et al.: Vicuna: An open-source chatbot impressing gpt-4 with $90\%$ chatgpt quality. See https://vicuna.lmsys.org (accessed 14 April 2023) (2023) 2, 6, 10
324
+ 13. Dai, W., Li, J., Li, D., Tiong, A., Zhao, J., Wang, W., Li, B., Fung, P., Hoi, S.: InstructBLIP: Towards general-purpose vision-language models with instruction tuning. In: Thirty-seventh Conference on Neural Information Processing Systems (2023), https://openreview.net/forum?id=vvoWPYqZJA 2, 4
325
+ 14. Guo, Q., Mello, S.D., Yin, H., Byeon, W., Cheung, K.C., Yu, Y., Luo, P., Liu, S.: Regionpt: Towards region understanding vision language model (2024) 4
326
+ 15. Gupta, A., Dollar, P., Girshick, R.: Lvis: A dataset for large vocabulary instance segmentation. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 5356-5364 (2019) 3, 11
327
+ 16. He, K., Gkioxari, G., Dollar, P., Girshick, R.: Mask r-cnn. In: Proceedings of the IEEE international conference on computer vision. pp. 2961-2969 (2017) 5
328
+ 17. Ilharco, G., Wortsman, M., Wightman, R., Gordon, C., Carlini, N., Taori, R., Dave, A., Shankar, V., Namkoong, H., Miller, J., Hajishirzi, H., Farhadi, A., Schmidt, L.: Openclip (2021), https://doi.org/10.5281/zenodo.5143773 10
329
+ 18. Jiang, D., Liu, Y., Liu, S., Zhang, X., Li, J., Xiong, H., Tian, Q.: From clip to dino: Visual encoders shout in multi-modal large language models (2023) 12
330
+ 19. Junfeng, W., Yi, J., Qihao, L., Zehuan, Y., Xiang, B., Song, B.: General object foundation model for images and videos at scale. arXiv preprint 2312.09158 (2023) 7
331
+ 20. Kamath, A., Singh, M., LeCun, Y., Synnaeve, G., Misra, I., Carion, N.: Mdetr-modulated detection for end-to-end multi-modal understanding. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 1780-1790 (2021) 10
332
+ 21. Kazemzadeh, S., Ordonez, V., Matten, M., Berg, T.: Referitgame: Referring to objects in photographs of natural scenes. In: Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP). pp. 787-798 (2014) 7, 10
333
+ 22. Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., Lo, W.Y., et al.: Segment anything. arXiv preprint arXiv:2304.02643 (2023) 2, 4
334
+ 23. Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., Lo, W.Y., et al.: Segment anything. arXiv preprint arXiv:2304.02643 (2023) 7
335
+ 24. Krishna, R., Zhu, Y., Groth, O., Johnson, J., Hata, K., Kravitz, J., Chen, S., Kalantidis, Y., Li, L.J., Shamma, D.A., et al.: Visual genome: Connecting language and vision using crowdsourced dense image annotations. International journal of computer vision 123, 32-73 (2017) 7, 8
336
+ 25. Kuznetsova, A., Rom, H., Alldrin, N., Uijlings, J., Krasin, I., Pont-Tuset, J., Kamali, S., Popov, S., Malloci, M., Kolesnikov, A., et al.: The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. International Journal of Computer Vision 128(7), 1956-1981 (2020) 7
337
+ 26. Lai, X., Tian, Z., Chen, Y., Li, Y., Yuan, Y., Liu, S., Jia, J.: Lisa: Reasoning segmentation via large language model. arXiv preprint arXiv:2308.00692 (2023) 2, 3, 4
338
+ 27. Li, B., Zhang, Y., Chen, L., Wang, J., Yang, J., Liu, Z.: Otter: A multi-modal model with in-context instruction tuning. arXiv preprint arXiv:2305.03726 (2023) 4
339
+
340
+ 28. Li, J., Li, D., Savarese, S., Hoi, S.: Blip-2: Bootstrapping language-image pretraining with frozen image encoders and large language models. arXiv preprint arXiv:2301.12597 (2023) 4
341
+ 29. Li, Y., Mao, H., Girshick, R., He, K.: Exploring plain vision transformer backbones for object detection. In: European Conference on Computer Vision. pp. 280-296. Springer (2022) 5
342
+ 30. Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollar, P., Zitnick, C.L.: Microsoft coco: Common objects in context. In: Computer Vision-ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13. pp. 740-755. Springer (2014) 7, 8
343
+ 31. Lin, Z., Liu, C., Zhang, R., Gao, P., Qiu, L., Xiao, H., Qiu, H., Lin, C., Shao, W., Chen, K., et al.: Sphinx: The joint mixing of weights, tasks, and visual embeddings for multi-modal large language models. arXiv preprint arXiv:2311.07575 (2023) 12
344
+ 32. Liu, H., Li, C., Li, Y., Lee, Y.J.: Improved baselines with visual instruction tuning. arXiv preprint arXiv:2310.03744 (2023) 6
345
+ 33. Liu, H., Li, C., Wu, Q., Lee, Y.J.: Visual instruction tuning. Advances in neural information processing systems 36 (2024) 2, 8, 9, 12
346
+ 34. Liu, S., Zeng, Z., Ren, T., Li, F., Zhang, H., Yang, J., Li, C., Yang, J., Su, H., Zhu, J., et al.: Grounding dino: Marrying dino with grounded pre-training for open-set object detection. arXiv preprint arXiv:2303.05499 (2023) 10, 11
347
+ 35. Mao, J., Huang, J., Toshev, A., Camburu, O., Yuille, A.L., Murphy, K.: Generation and comprehension of unambiguous object descriptions. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 11-20 (2016) 7, 10
348
+ 36. OpenAI: Chatgpt. https://openai.com/blog/chatgpt/ (2023) 2
349
+ 37. OpenAI: Gpt-4 technical report (2023) 2
350
+ 38. Oquab, M., Darcet, T., Moutakanni, T., Vo, H., Szafraniec, M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-Nouby, A., et al.: Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193 (2023) 5, 10
351
+ 39. Peng, Z., Wang, W., Dong, L., Hao, Y., Huang, S., Ma, S., Wei, F.: Kosmos-2: Grounding multimodal large language models to the world. arXiv preprint arXiv:2306.14824 (2023) 2, 3, 4, 5, 7, 12
352
+ 40. Pi, R., Gao, J., Diao, S., Pan, R., Dong, H., Zhang, J., Yao, L., Han, J., Xu, H., Zhang, L.K.T.: Detgpt: Detect what you need via reasoning. arXiv preprint arXiv:2305.14167 (2023) 2
353
+ 41. Plummer, B.A., Wang, L., Cervantes, C.M., Caicedo, J.C., Hockenmaier, J., Lazebnik, S.: Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In: Proceedings of the IEEE international conference on computer vision. pp. 2641–2649 (2015) 7
354
+ 42. Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al.: Learning transferable visual models from natural language supervision. In: International conference on machine learning. pp. 8748-8763. PMLR (2021) 5
355
+ 43. Rasheed, H., Maaz, M., Shaji, S., Shaker, A., Khan, S., Cholakkal, H., Anwer, R.M., Xing, E., Yang, M.H., Khan, F.S.: Glamm: Pixel grounding large multimodal model. arXiv preprint arXiv:2311.03356 (2023) 2, 3, 4, 5, 11, 12
356
+ 44. Shao, S., Li, Z., Zhang, T., Peng, C., Yu, G., Zhang, X., Li, J., Sun, J.: Objects365: A large-scale, high-quality dataset for object detection. In: Proceedings of the IEEE/CVF international conference on computer vision. pp. 8430-8439 (2019) 7
357
+
358
+ 45. Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al.: Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971 (2023) 2, 3
359
+ 46. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al.: Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 (2023) 2, 3
360
+ 47. Wang, J., Zhang, P., Chu, T., Cao, Y., Zhou, Y., Wu, T., Wang, B., He, C., Lin, D.: V3det: Vast vocabulary visual detection dataset. arXiv preprint arXiv:2304.03752 (2023) 7
361
+ 48. Wang, J., Meng, L., Weng, Z., He, B., Wu, Z., Jiang, Y.G.: To see is to believe: Prompting gpt-4v for better visual instruction tuning. arXiv preprint arXiv:2311.07574 (2023) 9
362
+ 49. Wang, P., Yang, A., Men, R., Lin, J., Bai, S., Li, Z., Ma, J., Zhou, C., Zhou, J., Yang, H.: Ofa: Unifying architectures, tasks, and modalities through a simple sequence-to-sequence learning framework. In: International Conference on Machine Learning. pp. 23318-23340. PMLR (2022) 10
363
+ 50. Wang, W., Lv, Q., Yu, W., Hong, W., Qi, J., Wang, Y., Ji, J., Yang, Z., Zhao, L., Song, X., et al.: Cogvlm: Visual expert for pretrained language models. arXiv preprint arXiv:2311.03079 (2023) 2, 4
364
+ 51. Wang, W., Shi, M., Li, Q., Wang, W., Huang, Z., Xing, L., Chen, Z., Li, H., Zhu, X., Cao, Z., et al.: The all-seeing project: Towards panoptic visual recognition and understanding of the open world. arXiv preprint arXiv:2308.01907 (2023) 4
365
+ 52. Wang, W., Chen, Z., Chen, X., Wu, J., Zhu, X., Zeng, G., Luo, P., Lu, T., Zhou, J., Qiao, Y., et al.: Visionllm: Large language model is also an open-ended decoder for vision-centric tasks. Advances in Neural Information Processing Systems 36 (2024) 4, 10
366
+ 53. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Xia, F., Chi, E., Le, Q.V., Zhou, D., et al.: Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems 35, 24824-24837 (2022) 3
367
+ 54. Wu, J., Wang, J., Yang, Z., Gan, Z., Liu, Z., Yuan, J., Wang, L.: Grit: A generative region-to-text transformer for object understanding. arXiv preprint arXiv:2212.00280 (2022) 12
368
+ 55. Yan, B., Jiang, Y., Wu, J., Wang, D., Luo, P., Yuan, Z., Lu, H.: Universal instance perception as object discovery and retrieval. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 15325-15336 (2023) 10, 11
369
+ 56. Yang, J., Zhang, H., Li, F., Zou, X., Li, C., Gao, J.: Set-of-mark prompting unleashes extraordinary visual grounding in gpt-4v. arXiv preprint arXiv:2310.11441 (2023) 8
370
+ 57. Ye, Q., Xu, H., Xu, G., Ye, J., Yan, M., Zhou, Y., Wang, J., Hu, A., Shi, P., Shi, Y., et al.: mplug-owl: Modularization empowers large language models with multimodality. arXiv preprint arXiv:2304.14178 (2023) 2, 4
371
+ 58. You, H., Zhang, H., Gan, Z., Du, X., Zhang, B., Wang, Z., Cao, L., Chang, S.F., Yang, Y.: Ferret: Refer and ground anything anywhere at any granularity. arXiv preprint arXiv:2310.07704 (2023) 2, 4, 10, 11, 12, 13, 14
372
+ 59. Yu, L., Poirson, P., Yang, S., Berg, A.C., Berg, T.L.: Modeling context in referring expressions. In: Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part II 14. pp. 69-85. Springer (2016) 7, 10
373
+
374
+ 60. Yuan, Y., Li, W., Liu, J., Tang, D., Luo, X., Qin, C., Zhang, L., Zhu, J.: Osprey: Pixel understanding with visual instruction tuning. arXiv preprint arXiv:2312.10032 (2023) 4
375
+ 61. Zhang, H., Li, F., Liu, S., Zhang, L., Su, H., Zhu, J., Ni, L.M., Shum, H.Y.: Dino: Detr with improved denoising anchor boxes for end-to-end object detection. arXiv preprint arXiv:2203.03605 (2022) 10
376
+ 62. Zhang, H., Li, H., Li, F., Ren, T., Zou, X., Liu, S., Huang, S., Gao, J., Zhang, L., Li, C., et al.: Llava-grounding: Grounded visual chat with large multimodal models. arXiv preprint arXiv:2312.02949 (2023) 2, 3, 4, 8, 12
377
+ 63. Zhang, H., Li, H., Li, F., Ren, T., Zou, X., Liu, S., Huang, S., Gao, J., Zhang, L., Li, C., et al.: Llava-grounding: Grounded visual chat with large multimodal models. arXiv preprint arXiv:2312.02949 (2023) 4
378
+ 64. Zhang, S., Sun, P., Chen, S., Xiao, M., Shao, W., Zhang, W., Chen, K., Luo, P.: Gpt4roi: Instruction tuning large language model on region-of-interest. arXiv preprint arXiv:2307.03601 (2023) 4, 5, 12, 13
379
+ 65. Zhao, Y., Lin, Z., Zhou, D., Huang, Z., Feng, J., Kang, B.: Bubogpt: Enabling visual grounding in multi-modal llms. arXiv preprint arXiv:2307.08581 (2023) 4
380
+ 66. Zhou, X., Girdhar, R., Joulin, A., Krahenbuhl, P., Misra, I.: Detecting twenty-thousand classes using image-level supervision. In: European Conference on Computer Vision. pp. 350-368. Springer (2022) 2
381
+ 67. Zhu, D., Chen, J., Shen, X., Li, X., Elhoseiny, M.: Minigpt-4: Enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592 (2023) 2, 4, 8, 9
382
+ 68. Zhu, X., Su, W., Lu, L., Li, B., Wang, X., Dai, J.: Deformable detr: Deformable transformers for end-to-end object detection. arXiv preprint arXiv:2010.04159 (2020) 5, 13
383
+ 69. Zou, X., Yang, J., Zhang, H., Li, F., Li, L., Wang, J., Wang, L., Gao, J., Lee, Y.J.: Segment everything everywhere all at once. Advances in Neural Information Processing Systems 36 (2024) 14
2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:332c1f52696c146c62927ab913761b2b7e13cdccb8282b44133d5ae498b7065c
3
+ size 444774
2024/Groma_ Localized Visual Tokenization for Grounding Multimodal Large Language Models/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/GroundUp_ Rapid Sketch-Based 3D City Massing/37583a8f-8a33-432e-8cbc-63aa78c79e8c_content_list.json ADDED
@@ -0,0 +1,1984 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "GroundUp: Rapid Sketch-Based 3D City Massing",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 217,
8
+ 141,
9
+ 782,
10
+ 165
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Gizem Esra Ünlü<sup>1</sup> Mohamed Sayed<sup>2</sup> Yulia Gryaditskaya<sup>3</sup> Gabriel Brostow<sup>1</sup>",
17
+ "bbox": [
18
+ 215,
19
+ 188,
20
+ 785,
21
+ 205
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup>University College London <sup>2</sup>Niantic <sup>3</sup>PAI and CVSSP, University of Surrey",
28
+ "bbox": [
29
+ 235,
30
+ 215,
31
+ 764,
32
+ 232
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract. We propose GroundUp, the first sketch-based ideation tool for 3D city massing of urban areas. We focus on early-stage urban design, where sketching is a common tool and the design starts from balancing building volumes (masses) and open spaces. With Human-Centered AI in mind, we aim to help architects quickly revise their ideas by easily switching between 2D sketches and 3D models, allowing for smoother iteration and sharing of ideas. Inspired by feedback from architects and existing workflows, our system takes as a first input a user sketch of multiple buildings in a top-down view. The user then draws a perspective sketch of the envisioned site. Our method is designed to exploit the complementarity of information in the two sketches and allows users to quickly preview and adjust the inferred 3D shapes. Our model has two main components. First, we propose a novel sketch-to-depth prediction network for perspective sketches that exploits top-down sketch shapes. Second, we use depth cues derived from the perspective sketch as a condition to our diffusion model, which ultimately completes the geometry in a top-down view. Thus, our final 3D geometry is represented as a heightfield, allowing users to construct the city \"from the ground up\". The code, datasets, and interface are available at visual.cs.ucl.ac.uk/pubs/groundup.",
39
+ "bbox": [
40
+ 259,
41
+ 265,
42
+ 743,
43
+ 529
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "1 Introduction",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 215,
53
+ 551,
54
+ 375,
55
+ 569
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Urban design has a deep impact on people's lives, and it epitomizes the opportunities to bring Human-Centered AI for Computer Vision [91] into iterative design [34]. The loop of drawing and discussing buildings, and specifically sketching the buildings' masses, i.e. coarse shapes, is the crucial first stage of urban planning [59]. \"Architectural design begins with a massing study\" [40], where the term \"massing\" is used for this stage because it locks in the long-term balance between constructed mass versus open space. In pilot interviews, architects said that existing 3D software for urban modeling is too cumbersome for ideation and does not support beginners.",
62
+ "bbox": [
63
+ 212,
64
+ 583,
65
+ 787,
66
+ 718
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Presently, the ease of sketching is hard to beat. 3D model precision is not the top priority in massing. Rather, urban design aims to satisfy the constraints and desires of whole teams of stakeholders. For example, an architect will play with many massing alternatives, often changing their mind mid-sketch. Currently, they iterate further in 2D with fellow architects on a shortlist of favorites, before re-doing just one or a few designs in 3D software (e.g. Rhino or Sketchup), to test out the idea. Our work aims to facilitate the design process by providing the means to quickly preview designs in 3D.",
73
+ "bbox": [
74
+ 212,
75
+ 719,
76
+ 787,
77
+ 840
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "image",
83
+ "img_path": "images/06e26bb0b5ac06c02ab2c93fdb49485debae746390b1617beaae12a7e48a3fbc.jpg",
84
+ "image_caption": [
85
+ "Fig. 1: An illustrative example of our method. (0) Users of our web-based GroundUp system can optionally load registered maps, satellite images, or perspective photographs as underlay layers. These give context for the \"massing\" process. A blank underlay is used in this example. (1) (bottom) The user sketches the initial footprints of multiple buildings in a top-down view. These strokes are projected into the perspective-view canvas (top). (2) The user sketches a perspective view of the site, and then (3) they trigger our trained model to infer the 3D shape of the sketched buildings. The user can then refine their ideas, iterating between 2D sketching and 3D visuals."
86
+ ],
87
+ "image_footnote": [],
88
+ "bbox": [
89
+ 220,
90
+ 143,
91
+ 303,
92
+ 239
93
+ ],
94
+ "page_idx": 1
95
+ },
96
+ {
97
+ "type": "image",
98
+ "img_path": "images/f2bc4ee41210958ab7f831e873b70b7bd4d548ebcebad80814d7d5999ad69b9c.jpg",
99
+ "image_caption": [],
100
+ "image_footnote": [],
101
+ "bbox": [
102
+ 308,
103
+ 143,
104
+ 421,
105
+ 253
106
+ ],
107
+ "page_idx": 1
108
+ },
109
+ {
110
+ "type": "image",
111
+ "img_path": "images/a52f85c2823661a1cf13d58a3b597c7da57e7bd16a3dfcbef21cce2337b6cb14.jpg",
112
+ "image_caption": [],
113
+ "image_footnote": [],
114
+ "bbox": [
115
+ 426,
116
+ 143,
117
+ 573,
118
+ 253
119
+ ],
120
+ "page_idx": 1
121
+ },
122
+ {
123
+ "type": "image",
124
+ "img_path": "images/16ae5babb1761c14cfe387efe95bc5b4d08149b56f478e0291c21149daa06219.jpg",
125
+ "image_caption": [],
126
+ "image_footnote": [],
127
+ "bbox": [
128
+ 576,
129
+ 143,
130
+ 785,
131
+ 253
132
+ ],
133
+ "page_idx": 1
134
+ },
135
+ {
136
+ "type": "text",
137
+ "text": "We propose GroundUp, a sketch-based 3D modeling tool for city massing. As shown in Fig. 1 and the video, it works by getting the user to draw and refine their ideas in two views: a top-down \"plan\" sketch and a perspective sketch. In both views, users can optionally sketch on top of backprojected lines and selected underlay photos. This helps to iterate or when remodeling of an existing site is required. Tightly coupled with this interface, our algorithm quickly infers 3D massing-quality geometry. Such 3D geometry, once approved, can be refined outside of GroundUp and used in the downstream stages of architectural design.",
138
+ "bbox": [
139
+ 212,
140
+ 415,
141
+ 787,
142
+ 536
143
+ ],
144
+ "page_idx": 1
145
+ },
146
+ {
147
+ "type": "text",
148
+ "text": "The model intertwined with this interface faces multiple challenges. Compared to photos, sketch lines only provide a sparse signal about the scene. Between a top-down and perspective sketch, it is hard to expect texture regions to match in appearance, making off-the-shelf approaches targeting 3D reconstruction from multi-view images [18, 47, 66] inapplicable to our problem. Additionally, urban areas are inherently complex scenes, so perspective views that convey building heights and roof shapes also suffer from extreme self-occlusions. With many unobserved or partially-observed regions, we turn to diffusion as a generative formulation that could help our method to reconstruct plausible building shapes (Fig. 1(3)).",
149
+ "bbox": [
150
+ 212,
151
+ 540,
152
+ 787,
153
+ 691
154
+ ],
155
+ "page_idx": 1
156
+ },
157
+ {
158
+ "type": "text",
159
+ "text": "Critically, the model updates must be responsive for the system to be usable, imposing trade-offs between interactivity and the geometric quality from our adapted latent diffusion model.",
160
+ "bbox": [
161
+ 212,
162
+ 695,
163
+ 787,
164
+ 742
165
+ ],
166
+ "page_idx": 1
167
+ },
168
+ {
169
+ "type": "text",
170
+ "text": "Our proposed solution to these challenges offers the following contributions:",
171
+ "bbox": [
172
+ 238,
173
+ 744,
174
+ 784,
175
+ 760
176
+ ],
177
+ "page_idx": 1
178
+ },
179
+ {
180
+ "type": "list",
181
+ "sub_type": "text",
182
+ "list_items": [
183
+ "- GroundUp is the first system for quick 2D sketch-based iteration on 3D massing design of city blocks.",
184
+ "- Our novel sketch-to-depth prediction network for perspective sketches exploits the top-down view's cues, and necessitated a bespoke training data process for this important domain."
185
+ ],
186
+ "bbox": [
187
+ 223,
188
+ 763,
189
+ 784,
190
+ 839
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "page_number",
196
+ "text": "2",
197
+ "bbox": [
198
+ 217,
199
+ 114,
200
+ 228,
201
+ 126
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "header",
207
+ "text": "Unlui et al.",
208
+ "bbox": [
209
+ 271,
210
+ 113,
211
+ 346,
212
+ 127
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "- We carefully design our top-down diffusion model to handle multiple conditions, integrating cues from both top-down and perspective sketches.",
219
+ "bbox": [
220
+ 223,
221
+ 146,
222
+ 782,
223
+ 176
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "2 Related Work",
230
+ "text_level": 1,
231
+ "bbox": [
232
+ 215,
233
+ 199,
234
+ 388,
235
+ 215
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "Sketch-based 3D shape modeling systems greatly facilitate the creation of 3D content, and the first proposed systems came in the 1970s [12,33]. For an in-depth review of existing systems, we refer the reader to the comprehensive reviews [2, 4,6]. Here, we focus on works related to our overall goal of urban reconstruction and papers most related to our method.",
242
+ "bbox": [
243
+ 212,
244
+ 231,
245
+ 782,
246
+ 308
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "2.1 3D Building and City Reconstruction",
253
+ "text_level": 1,
254
+ "bbox": [
255
+ 215,
256
+ 329,
257
+ 571,
258
+ 345
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "The exciting works related to the problems of urban reconstruction can be classified into two sets of problems [20]: first of layout generation [1,16,32] and second, of city modeling and rendering [37-39,46,77]. In our work, we aim to provide the user with direct control of the layout via sketching in a top-down view, rather than generating it automatically. Next, many algorithms [43,69,74] for architectural modeling take as input point clouds or Digital Surface Models (DSMs) that contain building height information, obtained with LiDAR (Light Detection and Ranging) or photogrammetry [85]. In contrast, we pursue a different goal of how to obtain buildings' height information from sparse user-provided sketches.",
265
+ "bbox": [
266
+ 212,
267
+ 354,
268
+ 784,
269
+ 489
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "Multiple works utilize convolutional neural networks (CNNs) for monocular depth estimation from a satellite image [8,9,24,52,54] and building segmentation in a satellite image [7,44,51], or both [44,51]. In the first stage of our method, we also rely on a CNN to obtain a segmentation of a top-down sketch into individual buildings. We then propose to inject this information into a monocular depth estimation network that takes a perspective sketch as an input - the step that we show is paramount in the context of sparse sketch inputs.",
276
+ "bbox": [
277
+ 212,
278
+ 489,
279
+ 785,
280
+ 597
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "2.2 3D from Sketches",
287
+ "text_level": 1,
288
+ "bbox": [
289
+ 215,
290
+ 618,
291
+ 408,
292
+ 632
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "3D representations: Sketch to 3D inference has been based on voxel-based representations [14], point clouds [73, 88], implicit functions [11, 29, 89], and 3D diffusion models [3]. Existing methods have a restricted ability to reconstruct details and to scale to larger scenes (e.g. multiple objects). We aim for the prompt reconstruction of multiple object shapes within an interactive interface. Our method controls for computational complexity and reduces memory footprint by regressing only 2.5D information, which is subsequently converted to a 3D mesh. We leverage depth and normal maps as intermediate representations. Using intermediate representations such as depth and normal maps is a common approach in sketch-based 3D reconstruction [23, 70, 76]. Just as we leverage a U-Net architecture [63], several works do so to predict multi-view depth and normal maps [42, 49, 90]. These methods then fuse the maps to a 3D shape. In contrast, aiming at complex scenes with multiple occlusions, we predict only",
299
+ "bbox": [
300
+ 212,
301
+ 643,
302
+ 787,
303
+ 840
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "header",
309
+ "text": "GroundUp",
310
+ "bbox": [
311
+ 656,
312
+ 114,
313
+ 730,
314
+ 128
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "page_number",
320
+ "text": "3",
321
+ "bbox": [
322
+ 774,
323
+ 116,
324
+ 785,
325
+ 126
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "one perspective view map and rely on a diffusion model to predict a plausible heightfiled, matching perspective and top-down views. Recent work targeting lifting sketches of machine-made shapes to 3D [60], similar to us, first predicts depth. Their full method focuses on the reconstruction of sharp edges. However, it takes about two minutes for single object inference on average. In comparison, our method runs end-to-end in under 2.7 seconds on multi-building scenes.",
332
+ "bbox": [
333
+ 212,
334
+ 146,
335
+ 787,
336
+ 238
337
+ ],
338
+ "page_idx": 3
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "Ambiguity of 3D reconstruction: For single-view and even sparse multi-view reconstruction, unobserved regions create uncertainty, on top of the shape ambiguity of the observed geometric surfaces. Learning of shape category priors is one of the most prominent approaches to dealing with sparse sketch inputs [3, 10, 29, 73, 83, 87, 88]. To further alleviate uncertainty, in single object modeling, symmetry can be leveraged [30, 79]. Other approaches regress parameters of predefined procedural programs [56, 58], or assume availability of additional information [41, 86]. For our task of modeling 3D building shape masses in city neighborhoods, we have more pronounced uncertainty from the multiple layers of occlusions in any perspective view. Additionally, 3D buildings and their groups also have irregular shapes covering diverse geometric configurations. Therefore, we leverage a generative diffusion model that allows us to obtain plausible-looking building masses from two sparse sketch constraints (Fig. 1).",
343
+ "bbox": [
344
+ 212,
345
+ 251,
346
+ 789,
347
+ 450
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "Urban modeling: Nishida et al. [56] explored data-driven inference of procedural grammars for individual building reconstruction. The reconstruction ability of such methods is limited to what is possible to represent with the considered grammar. Also, their approach cannot infer the shape from a complete drawing and assumes a specific drawing order, matching the grammar used. Liu et al. [48] extends procedural modeling to VR sketch inputs. Vitruvio [72] targets individual 3D building reconstruction from input sketches. The paper stresses the importance of perspective 2D sketch-based modeling in architectural applications for early idea development. Their method adopts an occupancy network [53] that is either fine-tuned or trained from scratch on synthetic sketches of individual buildings. However, their results show blobby reconstructions with some floating geometry pieces, typical in implicit 3D shape representations such as occupancy grids and signed distance fields [50,55,57]. Our heightfield representation allows us to obtain higher quality reconstructions of multiple buildings in one scene.",
354
+ "bbox": [
355
+ 212,
356
+ 460,
357
+ 789,
358
+ 676
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "2.3 Depth Estimation from RGB Images",
365
+ "text_level": 1,
366
+ "bbox": [
367
+ 214,
368
+ 695,
369
+ 566,
370
+ 710
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "Sketches are harder for shape inference than RGB images, but we draw lessons nonetheless. For calibrated stereo pairs [13, 35, 82] or unstructured views with known poses [22, 28, 67], cost volumes reveal metric depth by matching photometric appearance between views. Unfortunately, the winning disparities are misleading with our textureless sketches. For depth from a single image, recent methods rely on a learned prior for depth estimation [19, 27, 84]. Follow-ups utilize 3D point networks [81] to combat scale ambiguity, dataset mixing [61] for more generalizable models, classification heads [21] for improved accuracy, or",
377
+ "bbox": [
378
+ 212,
379
+ 719,
380
+ 787,
381
+ 843
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "page_number",
387
+ "text": "4",
388
+ "bbox": [
389
+ 217,
390
+ 114,
391
+ 228,
392
+ 126
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "header",
398
+ "text": "Unli et al.",
399
+ "bbox": [
400
+ 271,
401
+ 113,
402
+ 344,
403
+ 127
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "generative models [17,36,65] for sharper depth maps. Recent methods combine the two: cost volumes and strong image priors, to produce sharp metric depths from multiple views [18,47,66]. Rather than relying on photometric matching, we utilize a top-down sketch in an occupancy volume to resolve scale ambiguity.",
410
+ "bbox": [
411
+ 214,
412
+ 146,
413
+ 787,
414
+ 208
415
+ ],
416
+ "page_idx": 4
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "3 Method",
421
+ "text_level": 1,
422
+ "bbox": [
423
+ 215,
424
+ 227,
425
+ 330,
426
+ 243
427
+ ],
428
+ "page_idx": 4
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "Our supervised model is tightly coupled with the user-facing 2D and 3D interface described in Sec. 1 and in Fig. 1. The model has several components, shown and summarised in Fig. 2.",
433
+ "bbox": [
434
+ 214,
435
+ 256,
436
+ 787,
437
+ 303
438
+ ],
439
+ "page_idx": 4
440
+ },
441
+ {
442
+ "type": "image",
443
+ "img_path": "images/f5bb8f119cbe40e3953786dff11ef52a7365d6143dc70ca8e12f65c2a8e22670.jpg",
444
+ "image_caption": [
445
+ "Fig. 2: Reconstruction pipeline overview. (I.) From input sketches, (II.) we estimate the segmentation of the top-down sketch into individual buildings (as detailed in Sec. 3.1). (III.) We then inject the volumetric information about the spaces not occupied by buildings (based on the segmentation result and using a known perspective camera from our interface) into the network that predicts depth and a foreground mask for the perspective sketch view (further detailed in Sec. 3.2). (IV.) From the predicted depth values, we obtain a partial 3D point cloud of the user-envisioned 3D city block. (V) By projecting a sparse 3D prediction into a top-down view, we obtain an initial guess for a top-down view heightfield. Finally, we rely on a diffusion model to obtain a plausible 3D reconstruction that aligns with the perspective and top-down sketches (as shown in V-VI. and detailed in Sec. 3.3)."
446
+ ],
447
+ "image_footnote": [],
448
+ "bbox": [
449
+ 218,
450
+ 325,
451
+ 784,
452
+ 452
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "3.1 Building occupancy mask estimation for top-down sketches",
459
+ "text_level": 1,
460
+ "bbox": [
461
+ 215,
462
+ 664,
463
+ 750,
464
+ 680
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "First, given a top-down sketch $S_{t}$ we aim to obtain building occupancy $M_{t}$ , and instance segmentation $M_{t}^{\\star}$ maps (Fig. 2 II.): We use a subscript $t$ to denote maps of the top-down views. Our top-down occupancy prediction network follows a UNet++ architecture: an encoder-decoder network with dense and nested skip connections introduced in [92]. As an encoder, we use ResNet-50 [31], initialized with the weights of the model pre-trained on ImageNet [15]. We train our network with a weighted binary-cross entropy (BCE) loss",
471
+ "bbox": [
472
+ 214,
473
+ 686,
474
+ 787,
475
+ 792
476
+ ],
477
+ "page_idx": 4
478
+ },
479
+ {
480
+ "type": "equation",
481
+ "text": "\n$$\n\\mathcal {L} _ {\\text {m a s k}} = - \\frac {1}{N} \\sum_ {i = 1} ^ {N} \\left[ \\lambda_ {1} \\left[ y _ {i} \\log \\left(p _ {i}\\right) \\right] + \\lambda_ {0} \\left[ \\left(1 - y _ {i}\\right) \\log \\left(1 - p _ {i}\\right) \\right] \\right], \\tag {1}\n$$\n",
482
+ "text_format": "latex",
483
+ "bbox": [
484
+ 289,
485
+ 801,
486
+ 785,
487
+ 844
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "header",
493
+ "text": "GroundUp",
494
+ "bbox": [
495
+ 656,
496
+ 114,
497
+ 730,
498
+ 128
499
+ ],
500
+ "page_idx": 4
501
+ },
502
+ {
503
+ "type": "page_number",
504
+ "text": "5",
505
+ "bbox": [
506
+ 774,
507
+ 116,
508
+ 785,
509
+ 126
510
+ ],
511
+ "page_idx": 4
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "where $y_{i}$ and $p_i$ are the ground-truth and predicted mask values for the $i^{th}$ pixel, respectively. $\\lambda_0$ and $\\lambda_{1}$ are the weights for ground and building class predictions, respectively. We empirically found that a bigger weight $\\lambda_{1}$ for the building pixels improves mask prediction performance, accounting for class imbalance as buildings occupy a smaller area in the image. We provide further implementation details in the supplemental.",
516
+ "bbox": [
517
+ 212,
518
+ 146,
519
+ 787,
520
+ 236
521
+ ],
522
+ "page_idx": 5
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "We then segment into individual buildings, $M_t^\\star$ , by applying Connected-Component Labeling [64] (Fig. 2 II.). We use this building-level segmentation $M_t^\\star$ for visualization of the 3D reconstruction results in our UI (Fig. 2 VI).",
527
+ "bbox": [
528
+ 214,
529
+ 237,
530
+ 787,
531
+ 284
532
+ ],
533
+ "page_idx": 5
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "3.2 Depth prediction from perspective sketches",
538
+ "text_level": 1,
539
+ "bbox": [
540
+ 214,
541
+ 301,
542
+ 620,
543
+ 316
544
+ ],
545
+ "page_idx": 5
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "Given a perspective sketch $S_{p}$ and a top-down building mask $M_{t}$ , we aim to predict perspective depth maps $D_{p}$ and foreground masks $M_{p}$ (Fig. 2 III.) - We use a subscript $p$ to denote maps of the perspective views. In contrast to the masks in Sec. 3.1, $M_{p}$ labels both the building and ground pixels as foreground, with the background being sky pixels.",
550
+ "bbox": [
551
+ 212,
552
+ 321,
553
+ 787,
554
+ 398
555
+ ],
556
+ "page_idx": 5
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "Network design Predicting depth from a single sparse sketch is an ill-posed problem. Moreover, in our scenario, each sketch can be quite complex with multiple buildings and occlusions. We design our perspective view depth predictor to handle such complex urban scenes.",
561
+ "bbox": [
562
+ 212,
563
+ 417,
564
+ 785,
565
+ 477
566
+ ],
567
+ "page_idx": 5
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "Our architecture is inspired by a multi-view depth estimation method [66]. The backbone of this network is a UNet++ architecture, identical to the one we introduced in Sec. 3.1. To reduce ambiguity in a perspective view, we leverage top-down view information. However, applying the multi-view stereo as in [66,78] is not feasible, as our views have little visual overlap so it is infeasible to perform meaningful feature matching between such views. Instead, we exploit the fact that the top-down building occupancy mask, $M_t$ , provides information on whether a location in 3D space is free. We construct a 3D occupancy volume, which is aligned with the perspective view frustum. We construct it by slicing the 3D view frustum of the perspective camera with $n$ depth planes at equidistant intervals between the near $d_{\\mathrm{near}}$ and far planes $d_{\\mathrm{far}}$ . We populate the occupancy volume by setting all voxels that fall above non-occupied regions to $-\\nu$ and all voxels above occupied regions to $\\nu$ . We discuss the choice of $\\nu$ in detail in the supplemental material. Intuitively, we pick $\\nu$ to be sufficiently large, but within the range of our encoder features. We feed 3D occupancy features as input to the UNet++ encoder. Namely, the 3D occupancy features are of shape $D \\times H \\times W$ , where $D$ is the number of depth planes. When feeding these features into the 2D encoder in the UNet++, we consider depth planes as image feature channels $C$ . Then, similarly to [66], we pass the input sketch through a ResNet-50 encoder to obtain multi-level features. Starting from the first layer of the UNet++, at every second layer, we concatenate output features with corresponding encoded sketch features. This network design allows us to efficiently inject top-down sketch information, resulting in more accurate perspective depth predictions. We provide the ablation study of our design in Sec. 4.",
572
+ "bbox": [
573
+ 212,
574
+ 478,
575
+ 787,
576
+ 840
577
+ ],
578
+ "page_idx": 5
579
+ },
580
+ {
581
+ "type": "page_number",
582
+ "text": "6",
583
+ "bbox": [
584
+ 217,
585
+ 114,
586
+ 228,
587
+ 126
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "header",
593
+ "text": "Unli et al.",
594
+ "bbox": [
595
+ 271,
596
+ 113,
597
+ 344,
598
+ 127
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "Training During training, we use ground-truth $M_t$ building occupancy masks. We train our depth predictor with a weighted sum of four loss terms, so",
605
+ "bbox": [
606
+ 215,
607
+ 146,
608
+ 782,
609
+ 176
610
+ ],
611
+ "page_idx": 6
612
+ },
613
+ {
614
+ "type": "equation",
615
+ "text": "\n$$\n\\mathcal {L} _ {D} = \\omega_ {d} \\mathcal {L} _ {\\text {d e p t h}} + \\omega_ {g} \\mathcal {L} _ {\\text {g r a d}} + \\omega_ {n} \\mathcal {L} _ {\\text {p , n o r m}} + \\omega_ {m} \\mathcal {L} _ {\\text {m a s k}}, \\tag {2}\n$$\n",
616
+ "text_format": "latex",
617
+ "bbox": [
618
+ 320,
619
+ 190,
620
+ 782,
621
+ 205
622
+ ],
623
+ "page_idx": 6
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "where $\\omega_{*}$ denotes the weight of the corresponding loss component. We introduce each term below.",
628
+ "bbox": [
629
+ 212,
630
+ 217,
631
+ 782,
632
+ 244
633
+ ],
634
+ "page_idx": 6
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "$\\mathcal{L}_{\\mathrm{depth}}$ is a multi-scale loss on depth predictions, that was shown to provide sharper depth maps at depth discontinuities than a loss applied only at the final depth map resolution [19,25,26,66]. Following previous works, we predict depths at four resolutions from different levels of our UNet++ decoder, such that at each of the subsequent scales the spatial resolution is doubled. It is defined as",
639
+ "bbox": [
640
+ 212,
641
+ 247,
642
+ 784,
643
+ 321
644
+ ],
645
+ "page_idx": 6
646
+ },
647
+ {
648
+ "type": "equation",
649
+ "text": "\n$$\n\\mathcal {L} _ {\\text {d e p t h}} = \\sum_ {s = 1} ^ {S} \\left\\| \\left(D _ {p}\\right) _ {s} - \\left(D _ {p} ^ {g t}\\right) _ {s} \\right\\| _ {1} \\tag {3}\n$$\n",
650
+ "text_format": "latex",
651
+ "bbox": [
652
+ 388,
653
+ 335,
654
+ 782,
655
+ 375
656
+ ],
657
+ "page_idx": 6
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "where $\\| \\cdot \\|_1$ is the $L_1$ -norm and $(D_{ps}, D_{ps}^{gt})$ are the predicted and ground-truth depth maps at the $s^{th}$ scale.",
662
+ "bbox": [
663
+ 212,
664
+ 386,
665
+ 782,
666
+ 417
667
+ ],
668
+ "page_idx": 6
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "Similarly, inspired by [45, 66], to encourage smoother gradient changes and sharper depth discontinuities in predicted depth maps, we use a multi-scale loss $\\mathcal{L}_{\\mathrm{grad}}$ that penalizes differences in depth gradients between the predicted and ground-truth depth map:",
673
+ "bbox": [
674
+ 214,
675
+ 419,
676
+ 782,
677
+ 479
678
+ ],
679
+ "page_idx": 6
680
+ },
681
+ {
682
+ "type": "equation",
683
+ "text": "\n$$\n\\mathcal {L} _ {\\text {g r a d}} = \\sum_ {s = 1} ^ {S} \\left\\| \\nabla_ {x} R _ {s} \\right\\| _ {1} + \\left\\| \\nabla_ {y} R _ {s} \\right\\| _ {1}, \\tag {4}\n$$\n",
684
+ "text_format": "latex",
685
+ "bbox": [
686
+ 380,
687
+ 492,
688
+ 782,
689
+ 531
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "where $R_{s} = (D_{p})_{s} - (D_{p}^{gt})_{s}$",
696
+ "bbox": [
697
+ 214,
698
+ 542,
699
+ 418,
700
+ 559
701
+ ],
702
+ "page_idx": 6
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "Following Yin et al. [80], who showed that a geometric constraint on normal maps improves monocular depth estimation, we use a loss $\\mathcal{L}_{\\mathrm{p,norm}}$ between ground-truth $N_{p}^{gt}$ and predicted $N_{p}$ normal maps:",
707
+ "bbox": [
708
+ 212,
709
+ 559,
710
+ 782,
711
+ 604
712
+ ],
713
+ "page_idx": 6
714
+ },
715
+ {
716
+ "type": "equation",
717
+ "text": "\n$$\n\\mathcal {L} _ {\\mathrm {p}, \\text {n o r m}} = \\sum_ {i = 1} ^ {N} \\left(1 - \\left(N _ {p}\\right) _ {i} \\cdot \\left(N _ {p} ^ {g t}\\right) _ {i}\\right), \\tag {5}\n$$\n",
718
+ "text_format": "latex",
719
+ "bbox": [
720
+ 380,
721
+ 619,
722
+ 782,
723
+ 657
724
+ ],
725
+ "page_idx": 6
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "where we sum over the dot products of normal vectors $(N_p^*)_i \\in \\mathbb{R}^3$ in corresponding normal map locations $i$ . We observed that this loss improves the performance in our setting as well. Both $N_p$ and $N_p^{gt}$ are computed on the fly from their corresponding depth maps.",
730
+ "bbox": [
731
+ 212,
732
+ 670,
733
+ 782,
734
+ 731
735
+ ],
736
+ "page_idx": 6
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "Finally, $\\mathcal{L}_{\\mathrm{mask}}$ is a weighted BCE loss, defined similarly to the one in Eq. (1). We use it to segment out building and ground pixels.",
741
+ "bbox": [
742
+ 214,
743
+ 731,
744
+ 782,
745
+ 762
746
+ ],
747
+ "page_idx": 6
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "3.3 Conditional diffusion model for 3D building reconstruction",
752
+ "text_level": 1,
753
+ "bbox": [
754
+ 214,
755
+ 784,
756
+ 743,
757
+ 799
758
+ ],
759
+ "page_idx": 6
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "In the previous section, we described how we obtain a depth estimation for a perspective sketch view. As the next step, we backproject the depth map to",
764
+ "bbox": [
765
+ 212,
766
+ 809,
767
+ 782,
768
+ 839
769
+ ],
770
+ "page_idx": 6
771
+ },
772
+ {
773
+ "type": "header",
774
+ "text": "GroundUp",
775
+ "bbox": [
776
+ 656,
777
+ 114,
778
+ 730,
779
+ 128
780
+ ],
781
+ "page_idx": 6
782
+ },
783
+ {
784
+ "type": "page_number",
785
+ "text": "7",
786
+ "bbox": [
787
+ 774,
788
+ 116,
789
+ 785,
790
+ 126
791
+ ],
792
+ "page_idx": 6
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "obtain a 3D point cloud. From this point cloud, we initialize a heightfield of the city block aligned with the top-down user sketch. To account for possible inaccuracies in the depth prediction network, we leverage a mask $M_{t}$ , predicted with our building occupancy mask estimation network as described in Sec. 3.1. We set all heightfield predictions that fall outside the occupied regions to a constant ground-level value. We then use a diffusion model conditioned on the input sketch and the initial heightfield from the perspective sketch view to complete missing depth regions in the top-down view. Since our conditioning relies on both views, the model predicts plausible 3D buildings that align with user sketches. Note that, during training, we initialize heightfields using ground-truth perspective view depth maps.",
797
+ "bbox": [
798
+ 212,
799
+ 146,
800
+ 787,
801
+ 313
802
+ ],
803
+ "page_idx": 7
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "Network architecture We build on the latent space diffusion model by Duan et al. [17], adapting it to handle multiple conditions. We chose a latent diffusion model due to its memory efficiency and inference speed compared to image-space diffusion models.",
808
+ "bbox": [
809
+ 212,
810
+ 334,
811
+ 787,
812
+ 393
813
+ ],
814
+ "page_idx": 7
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "We map ground-truth depth maps to a latent space using a depth encoder: $z = \\mathcal{E}_{\\mathrm{depth}}(D_t^{gt})$ . Additionally, we encode sketch and depth conditions: $c_{\\mathrm{sketch}} = \\mathcal{E}_{\\mathrm{sketch}}(C_{St})$ and $c_{\\mathrm{depth}} = \\mathcal{E}_{\\mathrm{depth}}(C_{Dt})$ , respectively. We initialize $\\mathcal{E}_{\\mathrm{sketch}}$ and $\\mathcal{E}_{\\mathrm{depth}}$ with pre-trained weights. Specifically, for $\\mathcal{E}_{\\mathrm{sketch}}$ , we employ a ResNet-50 architecture pre-trained on ImageNet. For the depth encoder, we employ the one from the Stable Diffusion [62]. We pre-train the autoencoder following their strategy and supervise using ground-truth top-down depth maps $D_t^{gt}$ using KL-regularization in the latent space. We fine-tune both latent encoders when training the full model.",
819
+ "bbox": [
820
+ 212,
821
+ 393,
822
+ 787,
823
+ 529
824
+ ],
825
+ "page_idx": 7
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "To construct the final input to the denoising network, we combine the sketch, $c_{\\mathrm{sketch}}$ , and depth, $c_{\\mathrm{depth}}$ , conditions with the noisy depth latent $z_{k}$ , for a given noise level $k$ . To align features, we pass latent representations $c_{\\mathrm{depth}}$ and $z_{k}$ through two separate CNNs, consisting of two convolutional layers. The final denoising network input is created by combining sketch latent features and depth conditions with the noisy depth latent through an element-wise summation.",
830
+ "bbox": [
831
+ 212,
832
+ 530,
833
+ 787,
834
+ 621
835
+ ],
836
+ "page_idx": 7
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "Training The training objective for the diffusion process is defined as",
841
+ "bbox": [
842
+ 215,
843
+ 642,
844
+ 723,
845
+ 657
846
+ ],
847
+ "page_idx": 7
848
+ },
849
+ {
850
+ "type": "equation",
851
+ "text": "\n$$\n\\mathcal {L} _ {\\text {d i f f}} = \\mathbb {E} _ {k \\sim [ 1, T ], z _ {k}, \\epsilon_ {k}} \\left[ \\| \\epsilon_ {k} - \\epsilon_ {\\theta} \\left(z _ {k}, c _ {S _ {t}}, c _ {D _ {t}}, k\\right) \\| \\right] ^ {2}, \\tag {6}\n$$\n",
852
+ "text_format": "latex",
853
+ "bbox": [
854
+ 331,
855
+ 667,
856
+ 784,
857
+ 686
858
+ ],
859
+ "page_idx": 7
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "where $\\epsilon_t$ and $\\epsilon_{\\theta}$ are the ground-truth and predicted noise maps, at timestep $k$ .",
864
+ "bbox": [
865
+ 212,
866
+ 696,
867
+ 779,
868
+ 710
869
+ ],
870
+ "page_idx": 7
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "Additionally, we use auxiliary pixel-based losses to help train the conditioning process. Firstly, $L_{1}$ and $L_{2}$ losses on predicted $D_{t}$ and ground-truth $D_{t}^{gt}$ depth maps are used, defined as",
875
+ "bbox": [
876
+ 212,
877
+ 710,
878
+ 785,
879
+ 756
880
+ ],
881
+ "page_idx": 7
882
+ },
883
+ {
884
+ "type": "equation",
885
+ "text": "\n$$\n\\mathcal {L} _ {L _ {1}} = \\left\\| D _ {t} - D _ {t} ^ {g t} \\right\\| _ {1} \\quad \\text {a n d} \\quad \\mathcal {L} _ {L _ {2}} = \\left\\| D _ {t} - D _ {t} ^ {g t} \\right\\| _ {2}. \\tag {7}\n$$\n",
886
+ "text_format": "latex",
887
+ "bbox": [
888
+ 330,
889
+ 767,
890
+ 784,
891
+ 785
892
+ ],
893
+ "page_idx": 7
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "We also use a loss on normal maps $\\mathcal{L}_{t,norm}$ , defined similarly to the one in Eq. (5). We find that this loss results in sharper, more uniform depth predictions. We ablate its effect in Sec. 4.",
898
+ "bbox": [
899
+ 212,
900
+ 794,
901
+ 785,
902
+ 839
903
+ ],
904
+ "page_idx": 7
905
+ },
906
+ {
907
+ "type": "page_number",
908
+ "text": "8",
909
+ "bbox": [
910
+ 217,
911
+ 114,
912
+ 228,
913
+ 126
914
+ ],
915
+ "page_idx": 7
916
+ },
917
+ {
918
+ "type": "header",
919
+ "text": "Unlui et al.",
920
+ "bbox": [
921
+ 271,
922
+ 113,
923
+ 346,
924
+ 127
925
+ ],
926
+ "page_idx": 7
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "The complete objective loss of our top-down heightfield completion diffusion model is defined as",
931
+ "bbox": [
932
+ 215,
933
+ 146,
934
+ 782,
935
+ 175
936
+ ],
937
+ "page_idx": 8
938
+ },
939
+ {
940
+ "type": "equation",
941
+ "text": "\n$$\n\\mathcal {L} _ {\\text {t o t a l}} = \\mathcal {L} _ {\\text {d i f f}} + \\mathcal {L} _ {L _ {1}} + \\mathcal {L} _ {L _ {2}} + \\mathcal {L} _ {\\mathrm {t}, \\text {n o r m}}. \\tag {8}\n$$\n",
942
+ "text_format": "latex",
943
+ "bbox": [
944
+ 370,
945
+ 190,
946
+ 782,
947
+ 205
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "3D mesh: From the ground up Finally, to obtain a 3D mesh, we create a 3D mesh grid $\\mathcal{M}^{3D} \\in \\mathbb{R}^{N \\times N \\times 3}$ with $N \\times N$ vertices, where $N$ is the width/height of the top-down depth map where the horizontal $x$ and vertical $y$ axes map to pixel coordinates. We obtain the height of each vertex $v_{ij}$ in $\\mathcal{M}^{3D}$ as",
954
+ "bbox": [
955
+ 214,
956
+ 226,
957
+ 782,
958
+ 287
959
+ ],
960
+ "page_idx": 8
961
+ },
962
+ {
963
+ "type": "equation",
964
+ "text": "\n$$\nv _ {i j} ^ {z} = d _ {\\text {g r o u n d}} - \\left(D _ {t}\\right) _ {i j}, \\tag {9}\n$$\n",
965
+ "text_format": "latex",
966
+ "bbox": [
967
+ 421,
968
+ 299,
969
+ 782,
970
+ 315
971
+ ],
972
+ "page_idx": 8
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "where $d_{\\mathrm{ground}}$ is the depth value of the ground plane and $(D_t)_{ij}$ is the predicted top-down depth at pixel location $(i,j)$ . We assign $d_{\\mathrm{ground}}$ to the maximum depth value in $D_t$ .",
977
+ "bbox": [
978
+ 214,
979
+ 325,
980
+ 782,
981
+ 369
982
+ ],
983
+ "page_idx": 8
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "4 Experiments",
988
+ "text_level": 1,
989
+ "bbox": [
990
+ 215,
991
+ 393,
992
+ 374,
993
+ 411
994
+ ],
995
+ "page_idx": 8
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "In this section, we evaluate our method on synthetic sketches. We first evaluate our perspective depth prediction network and discuss the importance of various design choices. We then assess our complete method, by evaluating our top-down completion network on inputs predicted by the perspective depth network. We compare with a few alternative baselines and ablate our design choices. The details of data generation and splits are provided in the supplemental.",
1000
+ "bbox": [
1001
+ 214,
1002
+ 425,
1003
+ 782,
1004
+ 516
1005
+ ],
1006
+ "page_idx": 8
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Perspective depth prediction In Tab. 1, we assess our design choices for the perspective depth prediction network and compare against several baselines using standard depth metrics [19]. Briefly, Abs Diff is the absolute difference between ground-truth and predicted depth maps, Abs Rel is the absolute difference normalized by the ground-truth depth map, Sq Rel is the square of Abs Rel, RMSE is the root mean square error between both depth maps, Log RMSE is the root mean square error on logged depths, and $a5$ is the ratio of pixels whose depth values have a relative depth error lower than $5\\%$ .",
1011
+ "bbox": [
1012
+ 214,
1013
+ 537,
1014
+ 782,
1015
+ 659
1016
+ ],
1017
+ "page_idx": 8
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Baselines: We train a naive monocular depth predictor baseline from Sayed et al. [66] without a cost volume (no source views for multi-view stereo), which we refer to as Mono, and compare two image encoder backbones. In Tab. 1, lines [1-2] refer to $\\text{Mono}_S$ for a smaller (EfficientNet [71]) and $\\text{Mono}_L$ for a larger encoder (ResNet-50 [31]). A large image encoder leads to superiority across all depth metrics, with a minimal increase in inference speed - 0.16s on average per sample. Given this, we use this larger backbone for all other experiments.",
1022
+ "bbox": [
1023
+ 214,
1024
+ 672,
1025
+ 782,
1026
+ 779
1027
+ ],
1028
+ "page_idx": 8
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Ablations: In Tab. 1, $OV$ represents our model with the occupancy volume obtained as described in Sec. 3.2. We empirically found $\\nu = 50$ to give the best results. This value is close to the mid-point of the range of multi-scale",
1033
+ "bbox": [
1034
+ 214,
1035
+ 794,
1036
+ 782,
1037
+ 839
1038
+ ],
1039
+ "page_idx": 8
1040
+ },
1041
+ {
1042
+ "type": "header",
1043
+ "text": "GroundUp",
1044
+ "bbox": [
1045
+ 656,
1046
+ 114,
1047
+ 730,
1048
+ 128
1049
+ ],
1050
+ "page_idx": 8
1051
+ },
1052
+ {
1053
+ "type": "page_number",
1054
+ "text": "9",
1055
+ "bbox": [
1056
+ 774,
1057
+ 116,
1058
+ 785,
1059
+ 126
1060
+ ],
1061
+ "page_idx": 8
1062
+ },
1063
+ {
1064
+ "type": "table",
1065
+ "img_path": "images/a3a9544b4f85c4dba347a446b6fa250fed9237711e92ad816ab8a71ddab87ccc.jpg",
1066
+ "table_caption": [],
1067
+ "table_footnote": [],
1068
+ "table_body": "<table><tr><td></td><td>Model</td><td>Abs</td><td>Diff ↓</td><td>Abs</td><td>Rel↓</td><td>Sq</td><td>Rel↓</td><td>RMSE↓</td><td>Log</td><td>RMSE↓</td><td>a5↑</td></tr><tr><td>1</td><td>Monos</td><td>6.64</td><td>5.33</td><td>0.79</td><td>10.06</td><td>9.41</td><td>66.13</td><td></td><td></td><td></td><td></td></tr><tr><td>2</td><td>MonoL</td><td>5.57</td><td>4.33</td><td>0.53</td><td>8.58</td><td>7.44</td><td>68.82</td><td></td><td></td><td></td><td></td></tr><tr><td>3</td><td>OVs</td><td>6.23</td><td>5.24</td><td>0.74</td><td>9.28</td><td>9.55</td><td>67.80</td><td></td><td></td><td></td><td></td></tr><tr><td>4</td><td>OVL</td><td>3.49</td><td>2.13</td><td>0.21</td><td>6.54</td><td>3.43</td><td>89.20</td><td></td><td></td><td></td><td></td></tr></table>",
1069
+ "bbox": [
1070
+ 256,
1071
+ 143,
1072
+ 746,
1073
+ 215
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Table 1: Quantitative evaluation of the perspective depth estimation. Mono stands for a monocular depth predictor baseline by Sayed et al. [66], where subscripts $S$ and $L$ define a smaller and larger encoder backbones, respectively. $OV$ represents our model with the occupancy volume obtained as described in Sec. 3.2. Please see Sec. 4 for the details. All metric values apart from $a5$ are scaled up by $10^{2}$ .",
1080
+ "bbox": [
1081
+ 215,
1082
+ 215,
1083
+ 785,
1084
+ 285
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "image features. We hypothesize that this setting allows the network to leverage the occupancy information most beneficially. We provide a detailed analysis of the choice of $\\nu$ in the supplemental. Lines [4] vs. [3] show the advantage of the larger encoder backbone. Our complete model then comprises a ResNet-50 encoder backbone, and an occupancy volume with voxels assigned using $\\nu = 50$ .",
1091
+ "bbox": [
1092
+ 212,
1093
+ 325,
1094
+ 784,
1095
+ 401
1096
+ ],
1097
+ "page_idx": 9
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Comparison: In Tab. 1, lines [3-4] vs [1-2] show that the $OV$ models outperform Mono models. We show a qualitative comparison of the Mono baseline with our $OV$ method in Fig. 3, showing the importance of the proposed occupancy feature volume for correcting for spatial ambiguity from single-view depth estimation.",
1102
+ "bbox": [
1103
+ 214,
1104
+ 415,
1105
+ 784,
1106
+ 476
1107
+ ],
1108
+ "page_idx": 9
1109
+ },
1110
+ {
1111
+ "type": "image",
1112
+ "img_path": "images/113e75f504b9e86188c63e632672c9af8ce0f540342dd3f0d289258e5a46935b.jpg",
1113
+ "image_caption": [
1114
+ "TopView"
1115
+ ],
1116
+ "image_footnote": [],
1117
+ "bbox": [
1118
+ 218,
1119
+ 503,
1120
+ 316,
1121
+ 577
1122
+ ],
1123
+ "page_idx": 9
1124
+ },
1125
+ {
1126
+ "type": "image",
1127
+ "img_path": "images/a5fc52cbb6c77b81f8a4f3732f12ed3087947bbe216bfec699d9ed1c84ea29d5.jpg",
1128
+ "image_caption": [
1129
+ "Mono (Baseline)"
1130
+ ],
1131
+ "image_footnote": [],
1132
+ "bbox": [
1133
+ 316,
1134
+ 517,
1135
+ 496,
1136
+ 575
1137
+ ],
1138
+ "page_idx": 9
1139
+ },
1140
+ {
1141
+ "type": "image",
1142
+ "img_path": "images/feb7e72417dbf81092617bcba62d97ad974d714f598af4268aefc5a7f25d1126.jpg",
1143
+ "image_caption": [
1144
+ "TopView",
1145
+ "Fig. 3: Qualitative evaluation of the perspective depth estimation. Mono stands for a monocular depth predictor baseline by Sayed et al. [66]. $OV$ represents our model with the occupancy volume, obtained as described in Sec. 3.2. Grey mesh corresponds to the geometry obtained from the ground-truth heightfield. Point clouds represent the estimated depth values from a perspective sketch. Colors encode the distance from a camera. Our prediction visually aligns better with the ground-truth."
1146
+ ],
1147
+ "image_footnote": [],
1148
+ "bbox": [
1149
+ 504,
1150
+ 503,
1151
+ 599,
1152
+ 577
1153
+ ],
1154
+ "page_idx": 9
1155
+ },
1156
+ {
1157
+ "type": "image",
1158
+ "img_path": "images/09ace3a7b48764ab5bc3a28e4b99484b962b57fdd93bdf8a3f74bdd98f2e7d75.jpg",
1159
+ "image_caption": [
1160
+ "OV (Ours)"
1161
+ ],
1162
+ "image_footnote": [],
1163
+ "bbox": [
1164
+ 602,
1165
+ 517,
1166
+ 784,
1167
+ 575
1168
+ ],
1169
+ "page_idx": 9
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Top-down depth completion Our final goal is to infer plausible building geometries from top-down $S_{t}$ and perspective $S_{p}$ sketches (Fig. 5 [a,b]). Namely, we rely on the top-down sketch to recover building layouts and on the perspective sketch to estimate buildings' heights. We obtain height cues with the perspective depth prediction network. Then, the aim of our diffusion model, introduced in Sec. 3.3, is to produce top-down depth maps faithful to the top-down sketch $S_{t}$ and height cues $C_{Dt}$ .",
1174
+ "bbox": [
1175
+ 212,
1176
+ 733,
1177
+ 787,
1178
+ 840
1179
+ ],
1180
+ "page_idx": 9
1181
+ },
1182
+ {
1183
+ "type": "page_number",
1184
+ "text": "10",
1185
+ "bbox": [
1186
+ 217,
1187
+ 114,
1188
+ 235,
1189
+ 126
1190
+ ],
1191
+ "page_idx": 9
1192
+ },
1193
+ {
1194
+ "type": "header",
1195
+ "text": "Unlui et al.",
1196
+ "bbox": [
1197
+ 271,
1198
+ 113,
1199
+ 344,
1200
+ 126
1201
+ ],
1202
+ "page_idx": 9
1203
+ },
1204
+ {
1205
+ "type": "table",
1206
+ "img_path": "images/d3b723931c7ec026b3b36f13273ce18f7f770f22969d936d26268ebd52002f5b.jpg",
1207
+ "table_caption": [],
1208
+ "table_footnote": [],
1209
+ "table_body": "<table><tr><td>Model</td><td>Abs Diff↓</td><td>Abs Rel↓</td><td>Sq Rel↓</td><td>RMSE↓</td></tr><tr><td>St+CDt(fs)</td><td>0.1090</td><td>0.0221</td><td>0.0042</td><td>0.1246</td></tr><tr><td>St+CDt(pt)</td><td>0.1079</td><td>0.0218</td><td>0.0040</td><td>0.1221</td></tr><tr><td>St+CDt(pt)+Lt,norm</td><td>0.1056</td><td>0.0214</td><td>0.0039</td><td>0.1200</td></tr><tr><td>HeightFields [75]</td><td>0.1099</td><td>0.0225</td><td>0.0046</td><td>0.1341</td></tr></table>",
1210
+ "bbox": [
1211
+ 282,
1212
+ 142,
1213
+ 720,
1214
+ 213
1215
+ ],
1216
+ "page_idx": 10
1217
+ },
1218
+ {
1219
+ "type": "table",
1220
+ "img_path": "images/1b0f8e9e68387c286358069e5c69950eaf92c1966d29c8ae3833bed3ce0ab4ab.jpg",
1221
+ "table_caption": [
1222
+ "Table 2: Quantitative analysis of top-down depth prediction. (fs) denotes training sketch and depth encoders from scratch jointly with the diffusion model. (pt) refers to pre-trained encoders for sketch and depth conditions, as described in Sec. 3.3. $S_{t} + C_{Dt}$ denotes that we use two conditions: a top-down sketch and a partial top-down depth prediction based on the perspective sketch view. The numbers in the first two lines represent diffusion models trained with the losses defined by equations Eqs. (6) and (7), while the last line represents the model trained with the full loss Eq. (8)."
1223
+ ],
1224
+ "table_footnote": [],
1225
+ "table_body": "<table><tr><td>Model</td><td>Acc↓</td><td>Compl↓</td><td>Chamfer↓</td><td>Precision↑</td><td>Recall↑</td><td>F Score↑</td></tr><tr><td>St+CDt (fs)</td><td>3.89</td><td>2.91</td><td>3.40</td><td>81.6</td><td>87.7</td><td>84.2</td></tr><tr><td>St+CDt (pt)</td><td>3.79</td><td>2.90</td><td>3.34</td><td>81.8</td><td>88.1</td><td>84.4</td></tr><tr><td>St+CDt (pt) + Lt,norm</td><td>4.35</td><td>3.54</td><td>3.94</td><td>76.1</td><td>82.0</td><td>78.3</td></tr><tr><td>HeightFields [75]</td><td>5.35</td><td>6.99</td><td>6.17</td><td>70.4</td><td>63.9</td><td>66.0</td></tr></table>",
1226
+ "bbox": [
1227
+ 222,
1228
+ 337,
1229
+ 781,
1230
+ 407
1231
+ ],
1232
+ "page_idx": 10
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Table 3: Quantitative 3D evaluation of the final reconstructed meshes. The metrics in this table account for the visibility of 3D geometry in a perspective sketch view. Please see Sec. 4 for details. The notation in this table matches the caption of Tab. 2. We details on the metrics: Completion, Accuracy, Chamfer Distance, Precision, Recall, and F-Score can be found in [5].",
1237
+ "bbox": [
1238
+ 212,
1239
+ 407,
1240
+ 787,
1241
+ 478
1242
+ ],
1243
+ "page_idx": 10
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "We first ablate the design of our network and then compare it with a deterministic baseline. For evaluations, we use metrics in 2D (Tab. 2) and 3D (Tab. 3), comparing against the ground-truth. For 2D evaluation, we use metrics similar to the ones in Tab. 1. Since we focus on buildings and not the terrain, we compute all 2D metrics only within buildings' ground-truth regions, using building masks $M_{t}$ . We evaluate 3D metrics only for the parts of geometries observed in the perspective sketch viewpoints. This allows us to focus the evaluation on regions for which the perspective sketches provide explicit control of the buildings' heights. Before computing sampled point cloud distances between predicted and ground-truth meshes, we remove points not in the region around the back-projected ground-truth perspective depth map.",
1248
+ "bbox": [
1249
+ 212,
1250
+ 521,
1251
+ 787,
1252
+ 688
1253
+ ],
1254
+ "page_idx": 10
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Role of pre-training: Tab. 2 demonstrates the importance of pretraining sketch and depth encoders, $\\mathcal{E}_{\\mathrm{sketch}}$ and $\\mathcal{E}_{\\mathrm{depth}}$ , respectively. (fs) refers to training the encoders from scratch jointly with the diffusion model and (pt) refers to pretraining latent encoders for sketch and depth conditions.",
1259
+ "bbox": [
1260
+ 212,
1261
+ 702,
1262
+ 787,
1263
+ 763
1264
+ ],
1265
+ "page_idx": 10
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Role of normal loss: We show the qualitative evaluation of the role of the normal loss in Fig. 4. It shows that the normal loss yields building geometries with sharper corners and flat building tops. Computed on all building regions, 2D losses in Tab. 2 show that the normal loss $\\mathcal{L}_{\\mathrm{t,norm}}$ , defined with Eq. (8), sig-",
1270
+ "bbox": [
1271
+ 212,
1272
+ 779,
1273
+ 787,
1274
+ 842
1275
+ ],
1276
+ "page_idx": 10
1277
+ },
1278
+ {
1279
+ "type": "header",
1280
+ "text": "GroundUp",
1281
+ "bbox": [
1282
+ 656,
1283
+ 114,
1284
+ 730,
1285
+ 128
1286
+ ],
1287
+ "page_idx": 10
1288
+ },
1289
+ {
1290
+ "type": "page_number",
1291
+ "text": "11",
1292
+ "bbox": [
1293
+ 767,
1294
+ 114,
1295
+ 784,
1296
+ 126
1297
+ ],
1298
+ "page_idx": 10
1299
+ },
1300
+ {
1301
+ "type": "image",
1302
+ "img_path": "images/0124452ecf5aadbecb073deb1c6ad82713688f2346177f1fc78ed371a5116122.jpg",
1303
+ "image_caption": [
1304
+ "Fig. 4: Role of the normal loss. a) Visibility regions (red points) are computed based on ground-truth geometry and the perspective sketch viewpoint. b) Prediction when the normal loss is used: The red point cloud is riding slightly above the green prediction. As shown in view 2 the height is slightly underestimated in the visible regions, but the loss results in more even roofs overall. c) Prediction when the normal loss is not used: the model produces blobby building geometry outside the visible regions."
1305
+ ],
1306
+ "image_footnote": [],
1307
+ "bbox": [
1308
+ 223,
1309
+ 146,
1310
+ 341,
1311
+ 260
1312
+ ],
1313
+ "page_idx": 11
1314
+ },
1315
+ {
1316
+ "type": "image",
1317
+ "img_path": "images/c7f86ed1bf12faf5632e492a1f7a199e3f0387615c2d46ef5b49eacedfe5df52.jpg",
1318
+ "image_caption": [],
1319
+ "image_footnote": [],
1320
+ "bbox": [
1321
+ 351,
1322
+ 146,
1323
+ 465,
1324
+ 258
1325
+ ],
1326
+ "page_idx": 11
1327
+ },
1328
+ {
1329
+ "type": "image",
1330
+ "img_path": "images/42596e5bc2bbda4f025a4033fdf547df864521186e6d9009a96520a8eaff10df.jpg",
1331
+ "image_caption": [],
1332
+ "image_footnote": [],
1333
+ "bbox": [
1334
+ 467,
1335
+ 146,
1336
+ 557,
1337
+ 258
1338
+ ],
1339
+ "page_idx": 11
1340
+ },
1341
+ {
1342
+ "type": "image",
1343
+ "img_path": "images/4b25ac75d83e830e3ebc654d5f65708e4240108c921081b5619485655d45c5b7.jpg",
1344
+ "image_caption": [],
1345
+ "image_footnote": [],
1346
+ "bbox": [
1347
+ 566,
1348
+ 146,
1349
+ 681,
1350
+ 258
1351
+ ],
1352
+ "page_idx": 11
1353
+ },
1354
+ {
1355
+ "type": "image",
1356
+ "img_path": "images/2bb4d633b9bedeb25cc507e6debde6a47682e1403e33e22e3c847e72a59fa0bf.jpg",
1357
+ "image_caption": [],
1358
+ "image_footnote": [],
1359
+ "bbox": [
1360
+ 683,
1361
+ 146,
1362
+ 772,
1363
+ 258
1364
+ ],
1365
+ "page_idx": 11
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "nificantly improves the accuracy of top-down depth-predictions - reflecting on the overall appearance of the buildings. 3D metrics in Tab. 3, computed only on visible regions from the perspective sketch viewpoint, highlight a slight geometry shrinkage, visible in View 2 in Fig. 4. While adding a normal loss hurts quantitative 3D metrics, we advocate its usage as it produces much sharper and smoother surfaces, as shown in Fig. 4 and supported with Tab. 2.",
1370
+ "bbox": [
1371
+ 212,
1372
+ 386,
1373
+ 787,
1374
+ 478
1375
+ ],
1376
+ "page_idx": 11
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "Comparison with a deterministic baseline: Qualitative results of our method are shown in Fig. 5 (d) and (g): We can infer realistic building geometries following input sketches that closely resemble the ground-truth - Fig. 5 (e) and (h). We compare our generative approach against the HeightFields [75] baseline - a deterministic model designed for heightfield completion from multi-frame RGB sequences. We train and test it on the same input as our model and visualize the results in Fig. 5 (c) and (f). In particular, the HeightFields model's test time input is the output of our first step: the predicted partial point cloud from a perspective view. This model is not a suitable stand-alone method for the task. To train this model, we also added $\\mathcal{L}_{\\mathrm{t,norm}}$ , as we found it to result in better performance. However, even with this additional loss, the HeightFields model fails to produce buildings with correct heights, and produces less plausible building geometries. In particular, it fails to capture sharp details and flat rooftops.",
1381
+ "bbox": [
1382
+ 212,
1383
+ 494,
1384
+ 787,
1385
+ 690
1386
+ ],
1387
+ "page_idx": 11
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "Tabs. 2 and 3 show quantitative comparison of our full model with Height-Fields [75] baseline. They show the superiority of our diffusion model in all settings, confirming the visual observations.",
1392
+ "bbox": [
1393
+ 212,
1394
+ 690,
1395
+ 787,
1396
+ 736
1397
+ ],
1398
+ "page_idx": 11
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "5 User Study",
1403
+ "text_level": 1,
1404
+ "bbox": [
1405
+ 215,
1406
+ 760,
1407
+ 362,
1408
+ 779
1409
+ ],
1410
+ "page_idx": 11
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "Modeling Interface: To validate our contributions, we built an interactive user interface in HTML, JavaScript, and Python. The 3D massing system runs real-time on a Titan X and can be used on any touch-screen device thorough a",
1415
+ "bbox": [
1416
+ 212,
1417
+ 794,
1418
+ 785,
1419
+ 839
1420
+ ],
1421
+ "page_idx": 11
1422
+ },
1423
+ {
1424
+ "type": "page_number",
1425
+ "text": "12",
1426
+ "bbox": [
1427
+ 217,
1428
+ 114,
1429
+ 235,
1430
+ 126
1431
+ ],
1432
+ "page_idx": 11
1433
+ },
1434
+ {
1435
+ "type": "header",
1436
+ "text": "Unlui et al.",
1437
+ "bbox": [
1438
+ 271,
1439
+ 113,
1440
+ 344,
1441
+ 126
1442
+ ],
1443
+ "page_idx": 11
1444
+ },
1445
+ {
1446
+ "type": "image",
1447
+ "img_path": "images/6e93fec26e6a18f971ec6f59d6247df03723b45e1e2224cc64e07e76778df325.jpg",
1448
+ "image_caption": [
1449
+ "Fig. 5: Qualitative evaluation on synthetic sketches. (a) and (b) show example top-down and perspective sketches. (c) and (f) show reconstruction results obtained with the HeightFields [75] method, which is trained and tested on the same data as our method. (d) and (g) show reconstruction results by our method. (e) and (h) show the heightfield of the ground-truth top-down depth map. Note that the colors are assigned according to the ground-truth segmentation of buildings. Please zoom in to better see the alignment of predicted geometries with the ground-truth buildings' areas."
1450
+ ],
1451
+ "image_footnote": [],
1452
+ "bbox": [
1453
+ 220,
1454
+ 143,
1455
+ 782,
1456
+ 325
1457
+ ],
1458
+ "page_idx": 12
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "browser, ideally with a stylus. Broadly, the UI lets users sketch perspective and top-down views on 2D canvases, edit strokes, project a top-down sketch into the perspective canvas to align their sketches, and contains a 3D viewer. An overview of the UI is in Fig. 1 and is described in greater detail in the supplemental.",
1463
+ "bbox": [
1464
+ 212,
1465
+ 463,
1466
+ 787,
1467
+ 525
1468
+ ],
1469
+ "page_idx": 12
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "Evaluation: To validate our system, we run a proof-of-concept user study. For the study, we collaborated with one of the world-leading schools in urban design, the Bartlett School of Architecture, at University College London. We engaged 5 urban design architects: 2 undergraduate students, advanced in their studies, and 3 postgraduates with varying years of professional practice. Additionally, to test how friendly our system is for users with limited modeling and sketching experience, we engaged 5 further volunteers. All users watched a short video tutorial and had 5 minutes to play with the interface before starting the task. To have a concrete qualitative goal in our main study, we chose to provide participants with reference top-down and perspective renderings as underlays (the example screenshot is provided in the supplemental). We selected 9 scenes, randomly distributed between participants. Each participant drew two scenes.",
1474
+ "bbox": [
1475
+ 212,
1476
+ 537,
1477
+ 787,
1478
+ 718
1479
+ ],
1480
+ "page_idx": 12
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "In a post-study questionnaire, all architects indicated that they were able to recreate the building from the reference in under 5 minutes. As expected, it was more challenging for novices, yet, $2/5$ were satisfied with the outcome. On a 5-point Likert scale, architects (novices) gave an average score of 0.8 (1.2) on how well the results match the reference, with $+2$ for matching the reference well and $-2$ for failing completely. On a 5-point Likert scale, architects gave an average 1.4 score on how likely they are to use such an interface: where $-2$ for highly unlikely and $+2$ for highly likely. This analysis shows that overall our",
1485
+ "bbox": [
1486
+ 212,
1487
+ 719,
1488
+ 787,
1489
+ 839
1490
+ ],
1491
+ "page_idx": 12
1492
+ },
1493
+ {
1494
+ "type": "header",
1495
+ "text": "GroundUp",
1496
+ "bbox": [
1497
+ 656,
1498
+ 114,
1499
+ 730,
1500
+ 128
1501
+ ],
1502
+ "page_idx": 12
1503
+ },
1504
+ {
1505
+ "type": "page_number",
1506
+ "text": "13",
1507
+ "bbox": [
1508
+ 767,
1509
+ 114,
1510
+ 785,
1511
+ 126
1512
+ ],
1513
+ "page_idx": 12
1514
+ },
1515
+ {
1516
+ "type": "image",
1517
+ "img_path": "images/ddd2a713b332f1ae6efc72bec933cfc3d04b3cfcc4b05a3f9c456420f649c918.jpg",
1518
+ "image_caption": [
1519
+ "Fig. 6: Freehand sketches and corresponding 3D reconstructions in our user interface, made by urban design architects in our study. (e) shows automatically post-processed results, rendered with an offline rendered, as described in the supplemental."
1520
+ ],
1521
+ "image_footnote": [],
1522
+ "bbox": [
1523
+ 228,
1524
+ 143,
1525
+ 416,
1526
+ 297
1527
+ ],
1528
+ "page_idx": 13
1529
+ },
1530
+ {
1531
+ "type": "image",
1532
+ "img_path": "images/41d9ab73ed2bffe6432b4e636ae55d629fb730e3d5b34b63070cf4de2e07b5d3.jpg",
1533
+ "image_caption": [],
1534
+ "image_footnote": [],
1535
+ "bbox": [
1536
+ 436,
1537
+ 143,
1538
+ 519,
1539
+ 297
1540
+ ],
1541
+ "page_idx": 13
1542
+ },
1543
+ {
1544
+ "type": "image",
1545
+ "img_path": "images/5ad0c6e9a948740dde81b5d403a1f3f6d0743b44f0f552c35b0705505d678b43.jpg",
1546
+ "image_caption": [],
1547
+ "image_footnote": [],
1548
+ "bbox": [
1549
+ 534,
1550
+ 143,
1551
+ 620,
1552
+ 297
1553
+ ],
1554
+ "page_idx": 13
1555
+ },
1556
+ {
1557
+ "type": "image",
1558
+ "img_path": "images/9ab4f20bbc461dcbef5141d0b5474ee900887e0e26da8660c0076608f6f72586.jpg",
1559
+ "image_caption": [],
1560
+ "image_footnote": [],
1561
+ "bbox": [
1562
+ 635,
1563
+ 157,
1564
+ 779,
1565
+ 297
1566
+ ],
1567
+ "page_idx": 13
1568
+ },
1569
+ {
1570
+ "type": "text",
1571
+ "text": "system achieves a set goal of fast prototyping of building masses, while future work could aim to further improve the reconstruction accuracy. The detailed statistics for the post-study questionnaire are provided in the supplementary.",
1572
+ "bbox": [
1573
+ 212,
1574
+ 383,
1575
+ 784,
1576
+ 428
1577
+ ],
1578
+ "page_idx": 13
1579
+ },
1580
+ {
1581
+ "type": "text",
1582
+ "text": "In our pilot study, architects consistently indicated that it would take them about 10 minutes in Rhino for scenes comparable to the ones we target. The pilot study on SketchUp, documented in the supplemental, similarly showed that it is not suitable for fast prototyping. This, in particular, shows the lack of convenient tools for early design stages and reinforces the motivation for our work.",
1583
+ "bbox": [
1584
+ 212,
1585
+ 429,
1586
+ 784,
1587
+ 503
1588
+ ],
1589
+ "page_idx": 13
1590
+ },
1591
+ {
1592
+ "type": "text",
1593
+ "text": "Two urban design architects also did freehand modeling after the main study and completed post-study questionnaires. These sketches are shown in Fig. 6.",
1594
+ "bbox": [
1595
+ 214,
1596
+ 505,
1597
+ 784,
1598
+ 536
1599
+ ],
1600
+ "page_idx": 13
1601
+ },
1602
+ {
1603
+ "type": "text",
1604
+ "text": "6 Conclusion and discussion",
1605
+ "text_level": 1,
1606
+ "bbox": [
1607
+ 214,
1608
+ 561,
1609
+ 503,
1610
+ 579
1611
+ ],
1612
+ "page_idx": 13
1613
+ },
1614
+ {
1615
+ "type": "text",
1616
+ "text": "We have presented the first sketch-based method for early-stage urban design, aligning it with the Human-Centered AI philosophy [68]. Taking into account design workflows that commonly start from top-down city layouts, we proposed models that, while working in image space, efficiently leverage information from both perspective and top-down sketch views. GroundUp addresses the especially challenging (but not unique) aspects of our problem: complexity and diversity of scene geometries, sparsity of sketch inputs, and incomplete depth cues in user-provided views. While we only show the results for a single perspective sketch, our system is trivially extended to a multi-view setting: by projecting point clouds inferred from extra perspective sketches into the top-down views passed to our diffusion model. We provide numerical experiments in the supplemental. With this work, we have taken a step toward quick building massing. To propel the integration of our tool into design workflows, future work might focus on directly predicting editable mesh representations and supporting finer details. Additionally, it could be interesting to extend this work to trees and terrain, for example, by sketching trunks and contour lines for the terrain.",
1617
+ "bbox": [
1618
+ 212,
1619
+ 598,
1620
+ 785,
1621
+ 839
1622
+ ],
1623
+ "page_idx": 13
1624
+ },
1625
+ {
1626
+ "type": "page_number",
1627
+ "text": "14",
1628
+ "bbox": [
1629
+ 217,
1630
+ 114,
1631
+ 235,
1632
+ 126
1633
+ ],
1634
+ "page_idx": 13
1635
+ },
1636
+ {
1637
+ "type": "header",
1638
+ "text": "Unlui et al.",
1639
+ "bbox": [
1640
+ 271,
1641
+ 113,
1642
+ 344,
1643
+ 126
1644
+ ],
1645
+ "page_idx": 13
1646
+ },
1647
+ {
1648
+ "type": "text",
1649
+ "text": "Acknowledgements",
1650
+ "text_level": 1,
1651
+ "bbox": [
1652
+ 217,
1653
+ 143,
1654
+ 401,
1655
+ 162
1656
+ ],
1657
+ "page_idx": 14
1658
+ },
1659
+ {
1660
+ "type": "text",
1661
+ "text": "We thank Prof. Tobias Ritschel for his invaluable feedback and help; Natalia Laskovaya for an inspiring and detailed early discussion on design processes in architecture; Sharon Betts for her huge help in making our user study possible. We also thank Kening Guo and all the anonymous participants of the user studies. Gizem Esra Ünlü is funded by a Niantic PhD scholarship.",
1662
+ "bbox": [
1663
+ 212,
1664
+ 180,
1665
+ 787,
1666
+ 256
1667
+ ],
1668
+ "page_idx": 14
1669
+ },
1670
+ {
1671
+ "type": "text",
1672
+ "text": "References",
1673
+ "text_level": 1,
1674
+ "bbox": [
1675
+ 215,
1676
+ 282,
1677
+ 321,
1678
+ 299
1679
+ ],
1680
+ "page_idx": 14
1681
+ },
1682
+ {
1683
+ "type": "list",
1684
+ "sub_type": "ref_text",
1685
+ "list_items": [
1686
+ "1. Benes, B., Zhou, X., Chang, P., Cani, M.P.R.: Urban brush: Intuitive and controllable urban layout editing. In: The 34th Annual ACM Symposium on User Interface Software and Technology (2021)",
1687
+ "2. Bhattacharjee, S., Chaudhuri, P.: A survey on sketch based content creation: from the desktop to virtual and augmented reality. Computer Graphics Forum 39, 757-780 (05 2020)",
1688
+ "3. Binninger, A., Hertz, A., Sorkine-Hornung, O., Cohen-Or, D., Giryes, R.: Sens: Sketch-based implicit neural shape modeling. Arxiv preprint -(-) (06 2023)",
1689
+ "4. Bonnici, A., Akman, A., Calleja, G., Camilleri, K., Fehling, P., Ferreira, A., Hermuth, F., Israel, J., Landwehr, T., Liu, J., Padfield, N., Sezgin, T., Rosin, P.: Sketch-based interaction and modeling: where do we stand? Artificial Intelligence for Engineering Design, Analysis and Manufacturing 33, 1-19 (11 2019)",
1690
+ "5. Bozic, A., Palafox, P., Thies, J., Dai, A., Nießner, M.: TransformerFusion: Monocular RGB scene reconstruction using transformers. NeurIPS (2021)",
1691
+ "6. Camba, J.D., Company, P., Naya, F.: Sketch-based modeling in mechanical engineering design: Current status and opportunities. Computer-Aided Design 150, 103283 (2022)",
1692
+ "7. Chen, S., Ogawa, Y., Zhao, C., Sekimoto, Y.: Large-scale individual building extraction from open-source satellite imagery via super-resolution-based instance segmentation approach. ISPRS Journal of Photogrammetry and Remote Sensing 195 (2023)",
1693
+ "8. Chen, S., Shi, Y., Xiong, Z., Zhu, X.X.: Htc-dc net: Monocular height estimation from single remote sensing images. IEEE Transactions on Geoscience and Remote Sensing 61 (2023)",
1694
+ "9. Chen, Z., Zhang, Y., Qi, X., Mao, Y., Zhou, X., Niu, L., Wu, H., Wang, L., Ge, Y.: Heightformer: A multilevel interaction and image-adaptive classification-regression network for monocular height estimation with aerial images. arXiv preprint arXiv:2310.07995 (2023)",
1695
+ "0. Cheng, Z., Chai, M., Ren, J., Lee, H.Y., Olszewski, K., Huang, Z., Maji, S., Tulyakov, S.: Cross-modal 3D Shape Generation and Manipulation, pp. 303-321. Springer (11 2022)",
1696
+ "1. Chowdhury, P.N., Wang, T., Ceylan, D., Song, Y.Z., Gryaditskaya, Y.: Garment ideation: Iterative view-aware sketch-based garment modeling. In: 2022 International Conference on 3D Vision (3DV). pp. 22-31 (2022)",
1697
+ "12. Clowes, M.B.: On seeing things. Artificial intelligence 2(1), 79-116 (1971)",
1698
+ "13. Collins, R.T.: A space-sweep approach to true multi-image matching. In: CVPR (1996)"
1699
+ ],
1700
+ "bbox": [
1701
+ 220,
1702
+ 316,
1703
+ 784,
1704
+ 839
1705
+ ],
1706
+ "page_idx": 14
1707
+ },
1708
+ {
1709
+ "type": "header",
1710
+ "text": "GroundUp",
1711
+ "bbox": [
1712
+ 656,
1713
+ 114,
1714
+ 730,
1715
+ 128
1716
+ ],
1717
+ "page_idx": 14
1718
+ },
1719
+ {
1720
+ "type": "page_number",
1721
+ "text": "15",
1722
+ "bbox": [
1723
+ 767,
1724
+ 116,
1725
+ 785,
1726
+ 126
1727
+ ],
1728
+ "page_idx": 14
1729
+ },
1730
+ {
1731
+ "type": "list",
1732
+ "sub_type": "ref_text",
1733
+ "list_items": [
1734
+ "14. Delanoy, J., Aubry, M., Isola, P., Efros, A.A., Bousseau, A.: 3d sketching using multi-view deep volumetric prediction. Proc. ACM Comput. Graph. Interact. Tech. 1(1) (Jul 2018)",
1735
+ "15. Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., Fei-Fei, L.: Imagenet: A large-scale hierarchical image database. In: 2009 IEEE conference on computer vision and pattern recognition. IEEE (2009)",
1736
+ "16. Deng, J., Chai, W., Guo, J., Huang, Q., Hu, W., Hwang, J.N., Wang, G.: Citygen: Infinite and controllable 3d city layout generation. arXiv preprint arXiv:2312.01508 (2023)",
1737
+ "17. Duan, Y., Zhu, Z., Guo, X.: Diffusiondepth: Diffusion denoising approach for monocular depth estimation. CoRR abs/2303.05021 (2023)",
1738
+ "18. Duzceker, A., Galliani, S., Vogel, C., Speciale, P., Dusmanu, M., Pollefeys, M.: Deepvideomvs: Multi-view stereo on video with recurrent spatio-temporal fusion. In: CVPR (2021)",
1739
+ "19. Eigen, D., Puhrsch, C., Fergus, R.: Depth map prediction from a single image using a multi-scale deep network. In: Ghahramani, Z., Welling, M., Cortes, C., Lawrence, N.D., Weinberger, K.Q. (eds.) Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada. pp. 2366-2374 (2014)",
1740
+ "20. Feng, T., Fan, F., Bednarz, T.: A review of computer graphics approaches to urban modeling from a machine learning perspective. Frontiers of Information Technology & Electronic Engineering 22(7) (2021)",
1741
+ "21. Fu, H., Gong, M., Wang, C., Batmanghelich, K., Tao, D.: Deep ordinal regression network for monocular depth estimation. In: Proceedings of the IEEE conference on computer vision and pattern recognition (2018)",
1742
+ "22. Furukawa, Y., Hernández, C., et al.: Multi-view stereo: A tutorial. Foundations and Trends in Computer Graphics and Vision 9(1-2), 1-148 (2015)",
1743
+ "23. Gao, C., Yu, Q., Sheng, L., Song, Y., Xu, D.: Sketchsampler: Sketch-based 3d reconstruction via view-dependent depth sampling. In: ECCV (2022)",
1744
+ "24. Ghamisi, P., Yokoya, N.: Img2dsm: Height simulation from single imagery using conditional generative adversarial net. IEEE Geoscience and Remote Sensing Letters 15(5) (2018)",
1745
+ "25. Godard, C., Aodha, O.M., Brostow, G.J.: Unsupervised monocular depth estimation with left-right consistency. In: 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017. pp. 6602-6611. IEEE Computer Society (2017)",
1746
+ "26. Godard, C., Aodha, O.M., Firman, M., Brostow, G.J.: Digging into self-supervised monocular depth estimation. In: 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019. pp. 3827-3837. IEEE (2019)",
1747
+ "27. Godard, C., Mac Aodha, O., Brostow, G.J.: Unsupervised monocular depth estimation with left-right consistency. In: CVPR (2017)",
1748
+ "28. Goesele, M., Curless, B., Seitz, S.M.: Multi-view stereo revisited. In: CVPR (2006)",
1749
+ "29. Guillard, B., Remelli, E., Yvernay, P., Fua, P.: Sketch2mesh: Reconstructing and editing 3d shapes from sketches. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (2021)",
1750
+ "30. Hahnlein, F., Gryaditskaya, Y., Sheffer, A., Bousseau, A.: Symmetry-driven 3d reconstruction from concept sketches. In: ACM SIGGRAPH 2022 Conference Proceedings. pp. 1-8 (2022)"
1751
+ ],
1752
+ "bbox": [
1753
+ 215,
1754
+ 147,
1755
+ 784,
1756
+ 839
1757
+ ],
1758
+ "page_idx": 15
1759
+ },
1760
+ {
1761
+ "type": "page_number",
1762
+ "text": "16",
1763
+ "bbox": [
1764
+ 217,
1765
+ 114,
1766
+ 235,
1767
+ 126
1768
+ ],
1769
+ "page_idx": 15
1770
+ },
1771
+ {
1772
+ "type": "header",
1773
+ "text": "Unlui et al.",
1774
+ "bbox": [
1775
+ 271,
1776
+ 113,
1777
+ 344,
1778
+ 126
1779
+ ],
1780
+ "page_idx": 15
1781
+ },
1782
+ {
1783
+ "type": "list",
1784
+ "sub_type": "ref_text",
1785
+ "list_items": [
1786
+ "31. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: Proceedings of the IEEE conference on computer vision and pattern recognition (2016)",
1787
+ "32. He, L., Aliaga, D.: Globalmapper: Arbitrary-shaped urban layout generation. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). pp. 454-464 (October 2023)",
1788
+ "33. Huffman, D.A.: Impossible objects as nonsense sentences. Machine intelligence 6, 295-323 (1971)",
1789
+ "34. Jacoby, S.: Drawing Architecture and the Urban. Wiley (2016)",
1790
+ "35. Kang, S.B., Szeliski, R., Chai, J.: Handling occlusions in dense multi-view stereo. In: CVPR (2001)",
1791
+ "36. Ke, B., Obukhov, A., Huang, S., Metzger, N., Daudt, R.C., Schindler, K.: Repurposing diffusion-based image generators for monocular depth estimation. arXiv preprint arXiv:2312.02145 (2023)",
1792
+ "37. Kelly, T., Femiani, J., Wonka, P., Mitra, N.J.: Bigsur: Large-scale structured urban reconstruction. ACM Transactions on Graphics 36(6) (November 2017)",
1793
+ "38. Kelly, T., Guerrero, P., Steed, A., Wonka, P., Mitra, N.J.: Frankengan: Guided detail synthesis for building mass models using style-synchronized gans. ACM Trans. Graph. 37(6), 1:1-1:14 (2018)",
1794
+ "39. Kim, S., Kim, D., Choi, S.: Citycraft: 3d virtual city creation from a single image. The Visual Computer 36 (2020)",
1795
+ "40. Leyton, M.: A generative theory of shape. vol. 2145, p. p366. Springer Berlin / Heidelberg, Germany (2001)",
1796
+ "41. Li, C., Pan, H., Bousseau, A., Mitra, N.J.: Free2cad: Parsing freehand drawings into cad commands. ACM TOG (2022)",
1797
+ "42. Li, C., Pan, H., Liu, Y., Tong, X., Sheffer, A., Wang, W.: Robust flow-guided neural prediction for sketch-based freeform surface modeling. ACM Trans. Graph. 37(6) (2018)",
1798
+ "43. Li, L., Song, N., Sun, F., Liu, X., Wang, R., Yao, J., Cao, S.: Point2roof: End-to-end 3d building roof modeling from airborne lidar point clouds. ISPRS Journal of Photogrammetry and Remote Sensing 193, 17-28 (2022)",
1799
+ "44. Li, X., Wen, C., Wang, L., Fang, Y.: Geometry-aware segmentation of remote sensing images via joint height estimation. IEEE Geoscience and Remote Sensing Letters 19 (2021)",
1800
+ "45. Li, Z., Snavely, N.: Megadepth: Learning single-view depth prediction from internet photos. In: 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018. pp. 2041-2050. Computer Vision Foundation / IEEE Computer Society (2018)",
1801
+ "46. Lin, C.H., Lee, H.Y., Menapace, W., Chai, M., Siarohin, A., Yang, M.H., Tulyakov, S.: Infinity: Infinite-scale city synthesis. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) (October 2023)",
1802
+ "47. Lipson, L., Teed, Z., Deng, J.: Raft-stereo: Multilevel recurrent field transforms for stereo matching. In: 2021 International Conference on 3D Vision (3DV). pp. 218-227. IEEE (2021)",
1803
+ "48. Liu, Z., Zhang, F., Cheng, Z.: Buildingsketch: Freehand mid-air sketching for building modeling. In: IEEE International Symposium on Mixed and Augmented Reality (ISMAR). IEEE (2021)",
1804
+ "49. Lun, Z., Gadelha, M., Kalogerakis, E., Maji, S., Wang, R.: 3d shape reconstruction from sketches via multi-view convolutional networks. In: International Conference on 3D Vision (3DV) (2017)"
1805
+ ],
1806
+ "bbox": [
1807
+ 212,
1808
+ 146,
1809
+ 787,
1810
+ 839
1811
+ ],
1812
+ "page_idx": 16
1813
+ },
1814
+ {
1815
+ "type": "header",
1816
+ "text": "GroundUp",
1817
+ "bbox": [
1818
+ 656,
1819
+ 114,
1820
+ 730,
1821
+ 128
1822
+ ],
1823
+ "page_idx": 16
1824
+ },
1825
+ {
1826
+ "type": "page_number",
1827
+ "text": "17",
1828
+ "bbox": [
1829
+ 767,
1830
+ 114,
1831
+ 785,
1832
+ 126
1833
+ ],
1834
+ "page_idx": 16
1835
+ },
1836
+ {
1837
+ "type": "list",
1838
+ "sub_type": "ref_text",
1839
+ "list_items": [
1840
+ "50. Luo, L., Chowdhury, P.N., Xiang, T., Song, Y.Z., Gryaditskaya, Y.: 3d vr sketch guided 3d shape prototyping and exploration. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (2023)",
1841
+ "51. Mahdi, E., Ziming, Z., Xinming, H.: Aerial height prediction and refinement neural networks with semantic and geometric guidance. arXiv preprint arXiv:2011.10697 (2020)",
1842
+ "52. Mahmud, J., Price, T., Bapat, A., Frahm, J.M.: Boundary-aware 3d building reconstruction from a single overhead image. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2020)",
1843
+ "53. Mescheder, L.M., Oechsle, M., Niemeyer, M., Nowozin, S., Geiger, A.: Occupancy networks: Learning 3d reconstruction in function space. In: IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019. pp. 4460-4470. Computer Vision Foundation / IEEE, Long Beach, CA, USA (2019)",
1844
+ "54. Mou, L., Zhu, X.X.: Im2height: Height estimation from single monocular imagery via fully residual convolutional-deconvolutional network. arXiv preprint arXiv:1802.10249 (2018)",
1845
+ "55. Nam, G., Khlifi, M., Rodriguez, A., Tono, A., Zhou, L., Guerrero, P.: 3d-ldm: Neural implicit 3d shape generation with latent diffusion models. arXiv preprint arXiv:2212.00842 (2022)",
1846
+ "56. Nishida, G., Garcia-Dorado, I., Aliaga, D.G., Benes, B., Bousseau, A.: Interactive sketching of urban procedural models. ACM Transactions on Graphics (TOG) 35(4) (2016)",
1847
+ "57. Park, J.J., Florence, P., Straub, J., Newcombe, R., Lovegrove, S.: Deepsdf: Learning continuous signed distance functions for shape representation. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (2019)",
1848
+ "58. Pearl, O., Lang, I., Hu, Y., Yeh, R.A., Hanocka, R.: Geocode: Interpretable shape programs. arXiv preprint arXiv:2212.11715 (2022)",
1849
+ "59. Pitts, G., Luther, M.: A parametric approach to 3d massing and density modelling. In: Digital Physicality: Proceedings of the 30th eCAADe Conference. pp. 157-165 (2012)",
1850
+ "60. Puhachov, I., Martens, C., Kry, P.G., Bessmeltsev, M.: Reconstruction of machine-made shapes from bitmap sketches. ACM Trans. Graph. 42(6) (2023)",
1851
+ "61. Ranftl, R., Lasinger, K., Hafner, D., Schindler, K., Koltun, V.: Towards robust monocular depth estimation: Mixing datasets for zero-shot cross-dataset transfer. IEEE transactions on pattern analysis and machine intelligence 44(3), 1623-1637 (2020)",
1852
+ "62. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022. pp. 10674-10685. IEEE, New Orleans, Louisiana, USA (2022)",
1853
+ "63. Ronneberger, O., Fischer, P., Brox, T.: U-net: Convolutional networks for biomedical image segmentation. In: Medical Image Computing and Computer-Assisted Intervention-MICCAI 2015: 18th International Conference, Munich, Germany, October 5-9, 2015, Proceedings, Part III 18. Springer (2015)",
1854
+ "64. Rosenfeld, A., Pfaltz, J.L.: Sequential operations in digital picture processing. Journal of the ACM (JACM) 13(4), 471-494 (1966)",
1855
+ "65. Saxena, S., Kar, A., Norouzi, M., Fleet, D.J.: Monocular depth estimation using diffusion models. CoRR abs/2302.14816 (2023)"
1856
+ ],
1857
+ "bbox": [
1858
+ 215,
1859
+ 146,
1860
+ 784,
1861
+ 839
1862
+ ],
1863
+ "page_idx": 17
1864
+ },
1865
+ {
1866
+ "type": "page_number",
1867
+ "text": "18",
1868
+ "bbox": [
1869
+ 217,
1870
+ 114,
1871
+ 235,
1872
+ 126
1873
+ ],
1874
+ "page_idx": 17
1875
+ },
1876
+ {
1877
+ "type": "header",
1878
+ "text": "Unlui et al.",
1879
+ "bbox": [
1880
+ 271,
1881
+ 113,
1882
+ 344,
1883
+ 126
1884
+ ],
1885
+ "page_idx": 17
1886
+ },
1887
+ {
1888
+ "type": "list",
1889
+ "sub_type": "ref_text",
1890
+ "list_items": [
1891
+ "66. Sayed, M., Gibson, J., Watson, J., Prisacariu, V., Firman, M., Godard, C.: Simplorecon: 3d reconstruction without 3d convolutions. In: Computer Vision - ECCV 2022 - 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXXIII. Lecture Notes in Computer Science, vol. 13693, pp. 1-19. Springer (2022)",
1892
+ "67. Schonberger, J.L., Zheng, E., Frahm, J.M., Pollefeys, M.: Pixelwise view selection for unstructured multi-view stereo. In: Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part III 14. pp. 501-518. Springer (2016)",
1893
+ "68. Shneiderman, B.: Human-centered AI. Oxford University Press (2022), https://books.google.co.uk/books?id=YS9VEAAAQBAJ",
1894
+ "69. Stucker, C., Schindler, K.: Resdepth: A deep residual prior for 3d reconstruction from high-resolution satellite images. ISPRS Journal of Photogrammetry and Remote Sensing 183 (2022)",
1895
+ "70. Su, W., Du, D., Yang, X., Zhou, S., Fu, H.: Interactive sketch-based normal map generation with deep neural networks. Proceedings of the ACM on Computer Graphics and Interactive Techniques 1(1) (2018)",
1896
+ "71. Tan, M., Le, Q.: Efficientnet: Rethinking model scaling for convolutional neural networks. In: International conference on machine learning. PMLR (2019)",
1897
+ "72. Tono, A., Huang, H., Agrawal, A., Fischer, M.: Vitruvio: 3d building meshes via single perspective sketches. arXiv preprint arXiv:2210.13634 (2022)",
1898
+ "73. Wang, J., Lin, J., Yu, Q., Liu, R., Chen, Y., Yu, S.X.: 3d shape reconstruction from free-hand sketches. In: Karlinsky, L., Michaeli, T., Nishino, K. (eds.) ECCV Workshops (2022)",
1899
+ "74. Wang, Y., Zorzi, S., Bittner, K.: Machine-learned 3d building vectorization from satellite imagery. In: IEEE Conference on Computer Vision and Pattern Recognition Workshops, CVPR Workshops 2021, virtual, June 19-25, 2021. pp. 1072-1081. Computer Vision Foundation / IEEE, Virtual (2021)",
1900
+ "75. Watson, J., Vicente, S., Aodha, O.M., Godard, C., Brostow, G.J., Firman, M.: Heightfields for efficient scene reconstruction for AR. In: IEEE/CVF Winter Conference on Applications of Computer Vision, WACV 2023, Waikoloa, HI, USA, January 2-7, 2023. pp. 5839-5849. IEEE (2023)",
1901
+ "76. Wu, J., Zhang, C., Zhang, X., Zhang, Z., Freeman, W.T., Tenenbaum, J.B.: Learning shape priors for single-view 3d completion and reconstruction. In: ECCV (2018)",
1902
+ "77. Xie, H., Chen, Z., Hong, F., Liu, Z.: Citydreamer: Compositional generative model of unbounded 3d cities. arXiv preprint arXiv:2309.00610 (2023)",
1903
+ "78. Yao, Y., Luo, Z., Li, S., Fang, T., Quan, L.: MVSNet: Depth inference for unstructured multi-view stereo. In: ECCV (2018)",
1904
+ "79. Yao, Y., Schertler, N., Rosales, E., Rhodin, H., Sigal, L., Sheffer, A.: Front2back: Single view 3d shape reconstruction via front to back prediction. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2020)",
1905
+ "80. Yin, W., Liu, Y., Shen, C., Yan, Y.: Enforcing geometric constraints of virtual normal for depth prediction. In: 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019. pp. 5683-5692. IEEE (2019)",
1906
+ "81. Yin, W., Zhang, J., Wang, O., Niklaus, S., Mai, L., Chen, S., Shen, C.: Learning to recover 3d scene shape from a single image. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 204-213 (2021)",
1907
+ "82. Zbontar, J., LeCun, Y.: Stereo matching by training a convolutional neural network to compare image patches. JMLR (2016)"
1908
+ ],
1909
+ "bbox": [
1910
+ 212,
1911
+ 146,
1912
+ 787,
1913
+ 839
1914
+ ],
1915
+ "page_idx": 18
1916
+ },
1917
+ {
1918
+ "type": "header",
1919
+ "text": "GroundUp",
1920
+ "bbox": [
1921
+ 656,
1922
+ 114,
1923
+ 730,
1924
+ 128
1925
+ ],
1926
+ "page_idx": 18
1927
+ },
1928
+ {
1929
+ "type": "page_number",
1930
+ "text": "19",
1931
+ "bbox": [
1932
+ 767,
1933
+ 114,
1934
+ 785,
1935
+ 126
1936
+ ],
1937
+ "page_idx": 18
1938
+ },
1939
+ {
1940
+ "type": "list",
1941
+ "sub_type": "ref_text",
1942
+ "list_items": [
1943
+ "83. Zhang, S.H., Guo, Y.C., Gu, Q.W.: Sketch2model: View-aware 3d modeling from single free-hand sketches. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 6012-6021 (2021)",
1944
+ "84. Zhao, C., Sun, Q., Zhang, C., Tang, Y., Qian, F.: Monocular depth estimation based on deep learning: An overview. Science China Technological Sciences 63(9) (2020)",
1945
+ "85. Zhao, L., Wang, H., Zhu, Y., Song, M.: A review of 3d reconstruction from high-resolution urban satellite images. International Journal of Remote Sensing 44(2) (2023)",
1946
+ "86. Zheng, J., Zhu, Y., Wang, K., Zou, Q., Zhou, Z.: Deep learning assisted optimization for 3d reconstruction from single 2d line drawings. arXiv e-prints pp. arXiv-2209 (2022)",
1947
+ "87. Zheng, X.Y., Pan, H., Wang, P.S., Tong, X., Liu, Y., Shum, H.Y.: Locally attentional sdf diffusion for controllable 3d shape generation. ACM Trans. Graph. 42(4) (2023)",
1948
+ "88. Zhong, Y., Gryaditskaya, Y., Zhang, H., Song, Y.: Deep sketch-based modeling: Tips and tricks. In: Struc, V., Fernández, F.G. (eds.) International Conference on 3D Vision (3DV). IEEE (2020)",
1949
+ "89. Zhong, Y., Gryaditskaya, Y., Zhang, H., Song, Y.Z.: A study of deep single sketch-based modeling: View/style invariance, sparsity and latent space disentanglement. Computers & Graphics 106, 237-247 (2022)",
1950
+ "90. Zhong, Y., Qi, Y., Gryaditskaya, Y., Zhang, H., Song, Y.Z.: Towards practical sketch-based 3d shape generation: The role of professional sketches. IEEE Transactions on Circuits and Systems for Video Technology (2020)",
1951
+ "91. Zhou, B., Russakovsky, O., Fong, R., Hoffman, J.: CVPR Tutorial on Human-Centered AI for Computer Vision (2022), https://human-centeredai.github.io/",
1952
+ "92. Zhou, Z., Rahman Siddiquee, M.M., Tajbakhsh, N., Liang, J.: Unet++: A nested u-net architecture for medical image segmentation. In: Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support: 4th International Workshop, DLMIA 2018, and 8th International Workshop, ML-CDS 2018, Held in Conjunction with MICCAI 2018, Granada, Spain, September 20, 2018, Proceedings 4. Springer (2018)"
1953
+ ],
1954
+ "bbox": [
1955
+ 215,
1956
+ 146,
1957
+ 784,
1958
+ 590
1959
+ ],
1960
+ "page_idx": 19
1961
+ },
1962
+ {
1963
+ "type": "page_number",
1964
+ "text": "20",
1965
+ "bbox": [
1966
+ 217,
1967
+ 114,
1968
+ 235,
1969
+ 126
1970
+ ],
1971
+ "page_idx": 19
1972
+ },
1973
+ {
1974
+ "type": "header",
1975
+ "text": "Unli et al.",
1976
+ "bbox": [
1977
+ 271,
1978
+ 113,
1979
+ 344,
1980
+ 127
1981
+ ],
1982
+ "page_idx": 19
1983
+ }
1984
+ ]
2024/GroundUp_ Rapid Sketch-Based 3D City Massing/37583a8f-8a33-432e-8cbc-63aa78c79e8c_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/GroundUp_ Rapid Sketch-Based 3D City Massing/37583a8f-8a33-432e-8cbc-63aa78c79e8c_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec784bd487a558d4e429cddd9b451160ea6b95e75f54198f6216c804a790f26d
3
+ size 9126289
2024/GroundUp_ Rapid Sketch-Based 3D City Massing/full.md ADDED
@@ -0,0 +1,364 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GroundUp: Rapid Sketch-Based 3D City Massing
2
+
3
+ Gizem Esra Ünlü<sup>1</sup> Mohamed Sayed<sup>2</sup> Yulia Gryaditskaya<sup>3</sup> Gabriel Brostow<sup>1</sup>
4
+
5
+ <sup>1</sup>University College London <sup>2</sup>Niantic <sup>3</sup>PAI and CVSSP, University of Surrey
6
+
7
+ Abstract. We propose GroundUp, the first sketch-based ideation tool for 3D city massing of urban areas. We focus on early-stage urban design, where sketching is a common tool and the design starts from balancing building volumes (masses) and open spaces. With Human-Centered AI in mind, we aim to help architects quickly revise their ideas by easily switching between 2D sketches and 3D models, allowing for smoother iteration and sharing of ideas. Inspired by feedback from architects and existing workflows, our system takes as a first input a user sketch of multiple buildings in a top-down view. The user then draws a perspective sketch of the envisioned site. Our method is designed to exploit the complementarity of information in the two sketches and allows users to quickly preview and adjust the inferred 3D shapes. Our model has two main components. First, we propose a novel sketch-to-depth prediction network for perspective sketches that exploits top-down sketch shapes. Second, we use depth cues derived from the perspective sketch as a condition to our diffusion model, which ultimately completes the geometry in a top-down view. Thus, our final 3D geometry is represented as a heightfield, allowing users to construct the city "from the ground up". The code, datasets, and interface are available at visual.cs.ucl.ac.uk/pubs/groundup.
8
+
9
+ # 1 Introduction
10
+
11
+ Urban design has a deep impact on people's lives, and it epitomizes the opportunities to bring Human-Centered AI for Computer Vision [91] into iterative design [34]. The loop of drawing and discussing buildings, and specifically sketching the buildings' masses, i.e. coarse shapes, is the crucial first stage of urban planning [59]. "Architectural design begins with a massing study" [40], where the term "massing" is used for this stage because it locks in the long-term balance between constructed mass versus open space. In pilot interviews, architects said that existing 3D software for urban modeling is too cumbersome for ideation and does not support beginners.
12
+
13
+ Presently, the ease of sketching is hard to beat. 3D model precision is not the top priority in massing. Rather, urban design aims to satisfy the constraints and desires of whole teams of stakeholders. For example, an architect will play with many massing alternatives, often changing their mind mid-sketch. Currently, they iterate further in 2D with fellow architects on a shortlist of favorites, before re-doing just one or a few designs in 3D software (e.g. Rhino or Sketchup), to test out the idea. Our work aims to facilitate the design process by providing the means to quickly preview designs in 3D.
14
+
15
+ ![](images/06e26bb0b5ac06c02ab2c93fdb49485debae746390b1617beaae12a7e48a3fbc.jpg)
16
+ Fig. 1: An illustrative example of our method. (0) Users of our web-based GroundUp system can optionally load registered maps, satellite images, or perspective photographs as underlay layers. These give context for the "massing" process. A blank underlay is used in this example. (1) (bottom) The user sketches the initial footprints of multiple buildings in a top-down view. These strokes are projected into the perspective-view canvas (top). (2) The user sketches a perspective view of the site, and then (3) they trigger our trained model to infer the 3D shape of the sketched buildings. The user can then refine their ideas, iterating between 2D sketching and 3D visuals.
17
+
18
+ ![](images/f2bc4ee41210958ab7f831e873b70b7bd4d548ebcebad80814d7d5999ad69b9c.jpg)
19
+
20
+ ![](images/a52f85c2823661a1cf13d58a3b597c7da57e7bd16a3dfcbef21cce2337b6cb14.jpg)
21
+
22
+ ![](images/16ae5babb1761c14cfe387efe95bc5b4d08149b56f478e0291c21149daa06219.jpg)
23
+
24
+ We propose GroundUp, a sketch-based 3D modeling tool for city massing. As shown in Fig. 1 and the video, it works by getting the user to draw and refine their ideas in two views: a top-down "plan" sketch and a perspective sketch. In both views, users can optionally sketch on top of backprojected lines and selected underlay photos. This helps to iterate or when remodeling of an existing site is required. Tightly coupled with this interface, our algorithm quickly infers 3D massing-quality geometry. Such 3D geometry, once approved, can be refined outside of GroundUp and used in the downstream stages of architectural design.
25
+
26
+ The model intertwined with this interface faces multiple challenges. Compared to photos, sketch lines only provide a sparse signal about the scene. Between a top-down and perspective sketch, it is hard to expect texture regions to match in appearance, making off-the-shelf approaches targeting 3D reconstruction from multi-view images [18, 47, 66] inapplicable to our problem. Additionally, urban areas are inherently complex scenes, so perspective views that convey building heights and roof shapes also suffer from extreme self-occlusions. With many unobserved or partially-observed regions, we turn to diffusion as a generative formulation that could help our method to reconstruct plausible building shapes (Fig. 1(3)).
27
+
28
+ Critically, the model updates must be responsive for the system to be usable, imposing trade-offs between interactivity and the geometric quality from our adapted latent diffusion model.
29
+
30
+ Our proposed solution to these challenges offers the following contributions:
31
+
32
+ - GroundUp is the first system for quick 2D sketch-based iteration on 3D massing design of city blocks.
33
+ - Our novel sketch-to-depth prediction network for perspective sketches exploits the top-down view's cues, and necessitated a bespoke training data process for this important domain.
34
+
35
+ - We carefully design our top-down diffusion model to handle multiple conditions, integrating cues from both top-down and perspective sketches.
36
+
37
+ # 2 Related Work
38
+
39
+ Sketch-based 3D shape modeling systems greatly facilitate the creation of 3D content, and the first proposed systems came in the 1970s [12,33]. For an in-depth review of existing systems, we refer the reader to the comprehensive reviews [2, 4,6]. Here, we focus on works related to our overall goal of urban reconstruction and papers most related to our method.
40
+
41
+ # 2.1 3D Building and City Reconstruction
42
+
43
+ The exciting works related to the problems of urban reconstruction can be classified into two sets of problems [20]: first of layout generation [1,16,32] and second, of city modeling and rendering [37-39,46,77]. In our work, we aim to provide the user with direct control of the layout via sketching in a top-down view, rather than generating it automatically. Next, many algorithms [43,69,74] for architectural modeling take as input point clouds or Digital Surface Models (DSMs) that contain building height information, obtained with LiDAR (Light Detection and Ranging) or photogrammetry [85]. In contrast, we pursue a different goal of how to obtain buildings' height information from sparse user-provided sketches.
44
+
45
+ Multiple works utilize convolutional neural networks (CNNs) for monocular depth estimation from a satellite image [8,9,24,52,54] and building segmentation in a satellite image [7,44,51], or both [44,51]. In the first stage of our method, we also rely on a CNN to obtain a segmentation of a top-down sketch into individual buildings. We then propose to inject this information into a monocular depth estimation network that takes a perspective sketch as an input - the step that we show is paramount in the context of sparse sketch inputs.
46
+
47
+ # 2.2 3D from Sketches
48
+
49
+ 3D representations: Sketch to 3D inference has been based on voxel-based representations [14], point clouds [73, 88], implicit functions [11, 29, 89], and 3D diffusion models [3]. Existing methods have a restricted ability to reconstruct details and to scale to larger scenes (e.g. multiple objects). We aim for the prompt reconstruction of multiple object shapes within an interactive interface. Our method controls for computational complexity and reduces memory footprint by regressing only 2.5D information, which is subsequently converted to a 3D mesh. We leverage depth and normal maps as intermediate representations. Using intermediate representations such as depth and normal maps is a common approach in sketch-based 3D reconstruction [23, 70, 76]. Just as we leverage a U-Net architecture [63], several works do so to predict multi-view depth and normal maps [42, 49, 90]. These methods then fuse the maps to a 3D shape. In contrast, aiming at complex scenes with multiple occlusions, we predict only
50
+
51
+ one perspective view map and rely on a diffusion model to predict a plausible heightfiled, matching perspective and top-down views. Recent work targeting lifting sketches of machine-made shapes to 3D [60], similar to us, first predicts depth. Their full method focuses on the reconstruction of sharp edges. However, it takes about two minutes for single object inference on average. In comparison, our method runs end-to-end in under 2.7 seconds on multi-building scenes.
52
+
53
+ Ambiguity of 3D reconstruction: For single-view and even sparse multi-view reconstruction, unobserved regions create uncertainty, on top of the shape ambiguity of the observed geometric surfaces. Learning of shape category priors is one of the most prominent approaches to dealing with sparse sketch inputs [3, 10, 29, 73, 83, 87, 88]. To further alleviate uncertainty, in single object modeling, symmetry can be leveraged [30, 79]. Other approaches regress parameters of predefined procedural programs [56, 58], or assume availability of additional information [41, 86]. For our task of modeling 3D building shape masses in city neighborhoods, we have more pronounced uncertainty from the multiple layers of occlusions in any perspective view. Additionally, 3D buildings and their groups also have irregular shapes covering diverse geometric configurations. Therefore, we leverage a generative diffusion model that allows us to obtain plausible-looking building masses from two sparse sketch constraints (Fig. 1).
54
+
55
+ Urban modeling: Nishida et al. [56] explored data-driven inference of procedural grammars for individual building reconstruction. The reconstruction ability of such methods is limited to what is possible to represent with the considered grammar. Also, their approach cannot infer the shape from a complete drawing and assumes a specific drawing order, matching the grammar used. Liu et al. [48] extends procedural modeling to VR sketch inputs. Vitruvio [72] targets individual 3D building reconstruction from input sketches. The paper stresses the importance of perspective 2D sketch-based modeling in architectural applications for early idea development. Their method adopts an occupancy network [53] that is either fine-tuned or trained from scratch on synthetic sketches of individual buildings. However, their results show blobby reconstructions with some floating geometry pieces, typical in implicit 3D shape representations such as occupancy grids and signed distance fields [50,55,57]. Our heightfield representation allows us to obtain higher quality reconstructions of multiple buildings in one scene.
56
+
57
+ # 2.3 Depth Estimation from RGB Images
58
+
59
+ Sketches are harder for shape inference than RGB images, but we draw lessons nonetheless. For calibrated stereo pairs [13, 35, 82] or unstructured views with known poses [22, 28, 67], cost volumes reveal metric depth by matching photometric appearance between views. Unfortunately, the winning disparities are misleading with our textureless sketches. For depth from a single image, recent methods rely on a learned prior for depth estimation [19, 27, 84]. Follow-ups utilize 3D point networks [81] to combat scale ambiguity, dataset mixing [61] for more generalizable models, classification heads [21] for improved accuracy, or
60
+
61
+ generative models [17,36,65] for sharper depth maps. Recent methods combine the two: cost volumes and strong image priors, to produce sharp metric depths from multiple views [18,47,66]. Rather than relying on photometric matching, we utilize a top-down sketch in an occupancy volume to resolve scale ambiguity.
62
+
63
+ # 3 Method
64
+
65
+ Our supervised model is tightly coupled with the user-facing 2D and 3D interface described in Sec. 1 and in Fig. 1. The model has several components, shown and summarised in Fig. 2.
66
+
67
+ ![](images/f5bb8f119cbe40e3953786dff11ef52a7365d6143dc70ca8e12f65c2a8e22670.jpg)
68
+ Fig. 2: Reconstruction pipeline overview. (I.) From input sketches, (II.) we estimate the segmentation of the top-down sketch into individual buildings (as detailed in Sec. 3.1). (III.) We then inject the volumetric information about the spaces not occupied by buildings (based on the segmentation result and using a known perspective camera from our interface) into the network that predicts depth and a foreground mask for the perspective sketch view (further detailed in Sec. 3.2). (IV.) From the predicted depth values, we obtain a partial 3D point cloud of the user-envisioned 3D city block. (V) By projecting a sparse 3D prediction into a top-down view, we obtain an initial guess for a top-down view heightfield. Finally, we rely on a diffusion model to obtain a plausible 3D reconstruction that aligns with the perspective and top-down sketches (as shown in V-VI. and detailed in Sec. 3.3).
69
+
70
+ # 3.1 Building occupancy mask estimation for top-down sketches
71
+
72
+ First, given a top-down sketch $S_{t}$ we aim to obtain building occupancy $M_{t}$ , and instance segmentation $M_{t}^{\star}$ maps (Fig. 2 II.): We use a subscript $t$ to denote maps of the top-down views. Our top-down occupancy prediction network follows a UNet++ architecture: an encoder-decoder network with dense and nested skip connections introduced in [92]. As an encoder, we use ResNet-50 [31], initialized with the weights of the model pre-trained on ImageNet [15]. We train our network with a weighted binary-cross entropy (BCE) loss
73
+
74
+ $$
75
+ \mathcal {L} _ {\text {m a s k}} = - \frac {1}{N} \sum_ {i = 1} ^ {N} \left[ \lambda_ {1} \left[ y _ {i} \log \left(p _ {i}\right) \right] + \lambda_ {0} \left[ \left(1 - y _ {i}\right) \log \left(1 - p _ {i}\right) \right] \right], \tag {1}
76
+ $$
77
+
78
+ where $y_{i}$ and $p_i$ are the ground-truth and predicted mask values for the $i^{th}$ pixel, respectively. $\lambda_0$ and $\lambda_{1}$ are the weights for ground and building class predictions, respectively. We empirically found that a bigger weight $\lambda_{1}$ for the building pixels improves mask prediction performance, accounting for class imbalance as buildings occupy a smaller area in the image. We provide further implementation details in the supplemental.
79
+
80
+ We then segment into individual buildings, $M_t^\star$ , by applying Connected-Component Labeling [64] (Fig. 2 II.). We use this building-level segmentation $M_t^\star$ for visualization of the 3D reconstruction results in our UI (Fig. 2 VI).
81
+
82
+ # 3.2 Depth prediction from perspective sketches
83
+
84
+ Given a perspective sketch $S_{p}$ and a top-down building mask $M_{t}$ , we aim to predict perspective depth maps $D_{p}$ and foreground masks $M_{p}$ (Fig. 2 III.) - We use a subscript $p$ to denote maps of the perspective views. In contrast to the masks in Sec. 3.1, $M_{p}$ labels both the building and ground pixels as foreground, with the background being sky pixels.
85
+
86
+ Network design Predicting depth from a single sparse sketch is an ill-posed problem. Moreover, in our scenario, each sketch can be quite complex with multiple buildings and occlusions. We design our perspective view depth predictor to handle such complex urban scenes.
87
+
88
+ Our architecture is inspired by a multi-view depth estimation method [66]. The backbone of this network is a UNet++ architecture, identical to the one we introduced in Sec. 3.1. To reduce ambiguity in a perspective view, we leverage top-down view information. However, applying the multi-view stereo as in [66,78] is not feasible, as our views have little visual overlap so it is infeasible to perform meaningful feature matching between such views. Instead, we exploit the fact that the top-down building occupancy mask, $M_t$ , provides information on whether a location in 3D space is free. We construct a 3D occupancy volume, which is aligned with the perspective view frustum. We construct it by slicing the 3D view frustum of the perspective camera with $n$ depth planes at equidistant intervals between the near $d_{\mathrm{near}}$ and far planes $d_{\mathrm{far}}$ . We populate the occupancy volume by setting all voxels that fall above non-occupied regions to $-\nu$ and all voxels above occupied regions to $\nu$ . We discuss the choice of $\nu$ in detail in the supplemental material. Intuitively, we pick $\nu$ to be sufficiently large, but within the range of our encoder features. We feed 3D occupancy features as input to the UNet++ encoder. Namely, the 3D occupancy features are of shape $D \times H \times W$ , where $D$ is the number of depth planes. When feeding these features into the 2D encoder in the UNet++, we consider depth planes as image feature channels $C$ . Then, similarly to [66], we pass the input sketch through a ResNet-50 encoder to obtain multi-level features. Starting from the first layer of the UNet++, at every second layer, we concatenate output features with corresponding encoded sketch features. This network design allows us to efficiently inject top-down sketch information, resulting in more accurate perspective depth predictions. We provide the ablation study of our design in Sec. 4.
89
+
90
+ Training During training, we use ground-truth $M_t$ building occupancy masks. We train our depth predictor with a weighted sum of four loss terms, so
91
+
92
+ $$
93
+ \mathcal {L} _ {D} = \omega_ {d} \mathcal {L} _ {\text {d e p t h}} + \omega_ {g} \mathcal {L} _ {\text {g r a d}} + \omega_ {n} \mathcal {L} _ {\text {p , n o r m}} + \omega_ {m} \mathcal {L} _ {\text {m a s k}}, \tag {2}
94
+ $$
95
+
96
+ where $\omega_{*}$ denotes the weight of the corresponding loss component. We introduce each term below.
97
+
98
+ $\mathcal{L}_{\mathrm{depth}}$ is a multi-scale loss on depth predictions, that was shown to provide sharper depth maps at depth discontinuities than a loss applied only at the final depth map resolution [19,25,26,66]. Following previous works, we predict depths at four resolutions from different levels of our UNet++ decoder, such that at each of the subsequent scales the spatial resolution is doubled. It is defined as
99
+
100
+ $$
101
+ \mathcal {L} _ {\text {d e p t h}} = \sum_ {s = 1} ^ {S} \left\| \left(D _ {p}\right) _ {s} - \left(D _ {p} ^ {g t}\right) _ {s} \right\| _ {1} \tag {3}
102
+ $$
103
+
104
+ where $\| \cdot \|_1$ is the $L_1$ -norm and $(D_{ps}, D_{ps}^{gt})$ are the predicted and ground-truth depth maps at the $s^{th}$ scale.
105
+
106
+ Similarly, inspired by [45, 66], to encourage smoother gradient changes and sharper depth discontinuities in predicted depth maps, we use a multi-scale loss $\mathcal{L}_{\mathrm{grad}}$ that penalizes differences in depth gradients between the predicted and ground-truth depth map:
107
+
108
+ $$
109
+ \mathcal {L} _ {\text {g r a d}} = \sum_ {s = 1} ^ {S} \left\| \nabla_ {x} R _ {s} \right\| _ {1} + \left\| \nabla_ {y} R _ {s} \right\| _ {1}, \tag {4}
110
+ $$
111
+
112
+ where $R_{s} = (D_{p})_{s} - (D_{p}^{gt})_{s}$
113
+
114
+ Following Yin et al. [80], who showed that a geometric constraint on normal maps improves monocular depth estimation, we use a loss $\mathcal{L}_{\mathrm{p,norm}}$ between ground-truth $N_{p}^{gt}$ and predicted $N_{p}$ normal maps:
115
+
116
+ $$
117
+ \mathcal {L} _ {\mathrm {p}, \text {n o r m}} = \sum_ {i = 1} ^ {N} \left(1 - \left(N _ {p}\right) _ {i} \cdot \left(N _ {p} ^ {g t}\right) _ {i}\right), \tag {5}
118
+ $$
119
+
120
+ where we sum over the dot products of normal vectors $(N_p^*)_i \in \mathbb{R}^3$ in corresponding normal map locations $i$ . We observed that this loss improves the performance in our setting as well. Both $N_p$ and $N_p^{gt}$ are computed on the fly from their corresponding depth maps.
121
+
122
+ Finally, $\mathcal{L}_{\mathrm{mask}}$ is a weighted BCE loss, defined similarly to the one in Eq. (1). We use it to segment out building and ground pixels.
123
+
124
+ # 3.3 Conditional diffusion model for 3D building reconstruction
125
+
126
+ In the previous section, we described how we obtain a depth estimation for a perspective sketch view. As the next step, we backproject the depth map to
127
+
128
+ obtain a 3D point cloud. From this point cloud, we initialize a heightfield of the city block aligned with the top-down user sketch. To account for possible inaccuracies in the depth prediction network, we leverage a mask $M_{t}$ , predicted with our building occupancy mask estimation network as described in Sec. 3.1. We set all heightfield predictions that fall outside the occupied regions to a constant ground-level value. We then use a diffusion model conditioned on the input sketch and the initial heightfield from the perspective sketch view to complete missing depth regions in the top-down view. Since our conditioning relies on both views, the model predicts plausible 3D buildings that align with user sketches. Note that, during training, we initialize heightfields using ground-truth perspective view depth maps.
129
+
130
+ Network architecture We build on the latent space diffusion model by Duan et al. [17], adapting it to handle multiple conditions. We chose a latent diffusion model due to its memory efficiency and inference speed compared to image-space diffusion models.
131
+
132
+ We map ground-truth depth maps to a latent space using a depth encoder: $z = \mathcal{E}_{\mathrm{depth}}(D_t^{gt})$ . Additionally, we encode sketch and depth conditions: $c_{\mathrm{sketch}} = \mathcal{E}_{\mathrm{sketch}}(C_{St})$ and $c_{\mathrm{depth}} = \mathcal{E}_{\mathrm{depth}}(C_{Dt})$ , respectively. We initialize $\mathcal{E}_{\mathrm{sketch}}$ and $\mathcal{E}_{\mathrm{depth}}$ with pre-trained weights. Specifically, for $\mathcal{E}_{\mathrm{sketch}}$ , we employ a ResNet-50 architecture pre-trained on ImageNet. For the depth encoder, we employ the one from the Stable Diffusion [62]. We pre-train the autoencoder following their strategy and supervise using ground-truth top-down depth maps $D_t^{gt}$ using KL-regularization in the latent space. We fine-tune both latent encoders when training the full model.
133
+
134
+ To construct the final input to the denoising network, we combine the sketch, $c_{\mathrm{sketch}}$ , and depth, $c_{\mathrm{depth}}$ , conditions with the noisy depth latent $z_{k}$ , for a given noise level $k$ . To align features, we pass latent representations $c_{\mathrm{depth}}$ and $z_{k}$ through two separate CNNs, consisting of two convolutional layers. The final denoising network input is created by combining sketch latent features and depth conditions with the noisy depth latent through an element-wise summation.
135
+
136
+ Training The training objective for the diffusion process is defined as
137
+
138
+ $$
139
+ \mathcal {L} _ {\text {d i f f}} = \mathbb {E} _ {k \sim [ 1, T ], z _ {k}, \epsilon_ {k}} \left[ \| \epsilon_ {k} - \epsilon_ {\theta} \left(z _ {k}, c _ {S _ {t}}, c _ {D _ {t}}, k\right) \| \right] ^ {2}, \tag {6}
140
+ $$
141
+
142
+ where $\epsilon_t$ and $\epsilon_{\theta}$ are the ground-truth and predicted noise maps, at timestep $k$ .
143
+
144
+ Additionally, we use auxiliary pixel-based losses to help train the conditioning process. Firstly, $L_{1}$ and $L_{2}$ losses on predicted $D_{t}$ and ground-truth $D_{t}^{gt}$ depth maps are used, defined as
145
+
146
+ $$
147
+ \mathcal {L} _ {L _ {1}} = \left\| D _ {t} - D _ {t} ^ {g t} \right\| _ {1} \quad \text {a n d} \quad \mathcal {L} _ {L _ {2}} = \left\| D _ {t} - D _ {t} ^ {g t} \right\| _ {2}. \tag {7}
148
+ $$
149
+
150
+ We also use a loss on normal maps $\mathcal{L}_{t,norm}$ , defined similarly to the one in Eq. (5). We find that this loss results in sharper, more uniform depth predictions. We ablate its effect in Sec. 4.
151
+
152
+ The complete objective loss of our top-down heightfield completion diffusion model is defined as
153
+
154
+ $$
155
+ \mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\text {d i f f}} + \mathcal {L} _ {L _ {1}} + \mathcal {L} _ {L _ {2}} + \mathcal {L} _ {\mathrm {t}, \text {n o r m}}. \tag {8}
156
+ $$
157
+
158
+ 3D mesh: From the ground up Finally, to obtain a 3D mesh, we create a 3D mesh grid $\mathcal{M}^{3D} \in \mathbb{R}^{N \times N \times 3}$ with $N \times N$ vertices, where $N$ is the width/height of the top-down depth map where the horizontal $x$ and vertical $y$ axes map to pixel coordinates. We obtain the height of each vertex $v_{ij}$ in $\mathcal{M}^{3D}$ as
159
+
160
+ $$
161
+ v _ {i j} ^ {z} = d _ {\text {g r o u n d}} - \left(D _ {t}\right) _ {i j}, \tag {9}
162
+ $$
163
+
164
+ where $d_{\mathrm{ground}}$ is the depth value of the ground plane and $(D_t)_{ij}$ is the predicted top-down depth at pixel location $(i,j)$ . We assign $d_{\mathrm{ground}}$ to the maximum depth value in $D_t$ .
165
+
166
+ # 4 Experiments
167
+
168
+ In this section, we evaluate our method on synthetic sketches. We first evaluate our perspective depth prediction network and discuss the importance of various design choices. We then assess our complete method, by evaluating our top-down completion network on inputs predicted by the perspective depth network. We compare with a few alternative baselines and ablate our design choices. The details of data generation and splits are provided in the supplemental.
169
+
170
+ Perspective depth prediction In Tab. 1, we assess our design choices for the perspective depth prediction network and compare against several baselines using standard depth metrics [19]. Briefly, Abs Diff is the absolute difference between ground-truth and predicted depth maps, Abs Rel is the absolute difference normalized by the ground-truth depth map, Sq Rel is the square of Abs Rel, RMSE is the root mean square error between both depth maps, Log RMSE is the root mean square error on logged depths, and $a5$ is the ratio of pixels whose depth values have a relative depth error lower than $5\%$ .
171
+
172
+ Baselines: We train a naive monocular depth predictor baseline from Sayed et al. [66] without a cost volume (no source views for multi-view stereo), which we refer to as Mono, and compare two image encoder backbones. In Tab. 1, lines [1-2] refer to $\text{Mono}_S$ for a smaller (EfficientNet [71]) and $\text{Mono}_L$ for a larger encoder (ResNet-50 [31]). A large image encoder leads to superiority across all depth metrics, with a minimal increase in inference speed - 0.16s on average per sample. Given this, we use this larger backbone for all other experiments.
173
+
174
+ Ablations: In Tab. 1, $OV$ represents our model with the occupancy volume obtained as described in Sec. 3.2. We empirically found $\nu = 50$ to give the best results. This value is close to the mid-point of the range of multi-scale
175
+
176
+ <table><tr><td></td><td>Model</td><td>Abs</td><td>Diff ↓</td><td>Abs</td><td>Rel↓</td><td>Sq</td><td>Rel↓</td><td>RMSE↓</td><td>Log</td><td>RMSE↓</td><td>a5↑</td></tr><tr><td>1</td><td>Monos</td><td>6.64</td><td>5.33</td><td>0.79</td><td>10.06</td><td>9.41</td><td>66.13</td><td></td><td></td><td></td><td></td></tr><tr><td>2</td><td>MonoL</td><td>5.57</td><td>4.33</td><td>0.53</td><td>8.58</td><td>7.44</td><td>68.82</td><td></td><td></td><td></td><td></td></tr><tr><td>3</td><td>OVs</td><td>6.23</td><td>5.24</td><td>0.74</td><td>9.28</td><td>9.55</td><td>67.80</td><td></td><td></td><td></td><td></td></tr><tr><td>4</td><td>OVL</td><td>3.49</td><td>2.13</td><td>0.21</td><td>6.54</td><td>3.43</td><td>89.20</td><td></td><td></td><td></td><td></td></tr></table>
177
+
178
+ Table 1: Quantitative evaluation of the perspective depth estimation. Mono stands for a monocular depth predictor baseline by Sayed et al. [66], where subscripts $S$ and $L$ define a smaller and larger encoder backbones, respectively. $OV$ represents our model with the occupancy volume obtained as described in Sec. 3.2. Please see Sec. 4 for the details. All metric values apart from $a5$ are scaled up by $10^{2}$ .
179
+
180
+ image features. We hypothesize that this setting allows the network to leverage the occupancy information most beneficially. We provide a detailed analysis of the choice of $\nu$ in the supplemental. Lines [4] vs. [3] show the advantage of the larger encoder backbone. Our complete model then comprises a ResNet-50 encoder backbone, and an occupancy volume with voxels assigned using $\nu = 50$ .
181
+
182
+ Comparison: In Tab. 1, lines [3-4] vs [1-2] show that the $OV$ models outperform Mono models. We show a qualitative comparison of the Mono baseline with our $OV$ method in Fig. 3, showing the importance of the proposed occupancy feature volume for correcting for spatial ambiguity from single-view depth estimation.
183
+
184
+ ![](images/113e75f504b9e86188c63e632672c9af8ce0f540342dd3f0d289258e5a46935b.jpg)
185
+ TopView
186
+
187
+ ![](images/a5fc52cbb6c77b81f8a4f3732f12ed3087947bbe216bfec699d9ed1c84ea29d5.jpg)
188
+ Mono (Baseline)
189
+
190
+ ![](images/feb7e72417dbf81092617bcba62d97ad974d714f598af4268aefc5a7f25d1126.jpg)
191
+ TopView
192
+ Fig. 3: Qualitative evaluation of the perspective depth estimation. Mono stands for a monocular depth predictor baseline by Sayed et al. [66]. $OV$ represents our model with the occupancy volume, obtained as described in Sec. 3.2. Grey mesh corresponds to the geometry obtained from the ground-truth heightfield. Point clouds represent the estimated depth values from a perspective sketch. Colors encode the distance from a camera. Our prediction visually aligns better with the ground-truth.
193
+
194
+ ![](images/09ace3a7b48764ab5bc3a28e4b99484b962b57fdd93bdf8a3f74bdd98f2e7d75.jpg)
195
+ OV (Ours)
196
+
197
+ Top-down depth completion Our final goal is to infer plausible building geometries from top-down $S_{t}$ and perspective $S_{p}$ sketches (Fig. 5 [a,b]). Namely, we rely on the top-down sketch to recover building layouts and on the perspective sketch to estimate buildings' heights. We obtain height cues with the perspective depth prediction network. Then, the aim of our diffusion model, introduced in Sec. 3.3, is to produce top-down depth maps faithful to the top-down sketch $S_{t}$ and height cues $C_{Dt}$ .
198
+
199
+ <table><tr><td>Model</td><td>Abs Diff↓</td><td>Abs Rel↓</td><td>Sq Rel↓</td><td>RMSE↓</td></tr><tr><td>St+CDt(fs)</td><td>0.1090</td><td>0.0221</td><td>0.0042</td><td>0.1246</td></tr><tr><td>St+CDt(pt)</td><td>0.1079</td><td>0.0218</td><td>0.0040</td><td>0.1221</td></tr><tr><td>St+CDt(pt)+Lt,norm</td><td>0.1056</td><td>0.0214</td><td>0.0039</td><td>0.1200</td></tr><tr><td>HeightFields [75]</td><td>0.1099</td><td>0.0225</td><td>0.0046</td><td>0.1341</td></tr></table>
200
+
201
+ Table 2: Quantitative analysis of top-down depth prediction. (fs) denotes training sketch and depth encoders from scratch jointly with the diffusion model. (pt) refers to pre-trained encoders for sketch and depth conditions, as described in Sec. 3.3. $S_{t} + C_{Dt}$ denotes that we use two conditions: a top-down sketch and a partial top-down depth prediction based on the perspective sketch view. The numbers in the first two lines represent diffusion models trained with the losses defined by equations Eqs. (6) and (7), while the last line represents the model trained with the full loss Eq. (8).
202
+
203
+ <table><tr><td>Model</td><td>Acc↓</td><td>Compl↓</td><td>Chamfer↓</td><td>Precision↑</td><td>Recall↑</td><td>F Score↑</td></tr><tr><td>St+CDt (fs)</td><td>3.89</td><td>2.91</td><td>3.40</td><td>81.6</td><td>87.7</td><td>84.2</td></tr><tr><td>St+CDt (pt)</td><td>3.79</td><td>2.90</td><td>3.34</td><td>81.8</td><td>88.1</td><td>84.4</td></tr><tr><td>St+CDt (pt) + Lt,norm</td><td>4.35</td><td>3.54</td><td>3.94</td><td>76.1</td><td>82.0</td><td>78.3</td></tr><tr><td>HeightFields [75]</td><td>5.35</td><td>6.99</td><td>6.17</td><td>70.4</td><td>63.9</td><td>66.0</td></tr></table>
204
+
205
+ Table 3: Quantitative 3D evaluation of the final reconstructed meshes. The metrics in this table account for the visibility of 3D geometry in a perspective sketch view. Please see Sec. 4 for details. The notation in this table matches the caption of Tab. 2. We details on the metrics: Completion, Accuracy, Chamfer Distance, Precision, Recall, and F-Score can be found in [5].
206
+
207
+ We first ablate the design of our network and then compare it with a deterministic baseline. For evaluations, we use metrics in 2D (Tab. 2) and 3D (Tab. 3), comparing against the ground-truth. For 2D evaluation, we use metrics similar to the ones in Tab. 1. Since we focus on buildings and not the terrain, we compute all 2D metrics only within buildings' ground-truth regions, using building masks $M_{t}$ . We evaluate 3D metrics only for the parts of geometries observed in the perspective sketch viewpoints. This allows us to focus the evaluation on regions for which the perspective sketches provide explicit control of the buildings' heights. Before computing sampled point cloud distances between predicted and ground-truth meshes, we remove points not in the region around the back-projected ground-truth perspective depth map.
208
+
209
+ Role of pre-training: Tab. 2 demonstrates the importance of pretraining sketch and depth encoders, $\mathcal{E}_{\mathrm{sketch}}$ and $\mathcal{E}_{\mathrm{depth}}$ , respectively. (fs) refers to training the encoders from scratch jointly with the diffusion model and (pt) refers to pretraining latent encoders for sketch and depth conditions.
210
+
211
+ Role of normal loss: We show the qualitative evaluation of the role of the normal loss in Fig. 4. It shows that the normal loss yields building geometries with sharper corners and flat building tops. Computed on all building regions, 2D losses in Tab. 2 show that the normal loss $\mathcal{L}_{\mathrm{t,norm}}$ , defined with Eq. (8), sig-
212
+
213
+ ![](images/0124452ecf5aadbecb073deb1c6ad82713688f2346177f1fc78ed371a5116122.jpg)
214
+ Fig. 4: Role of the normal loss. a) Visibility regions (red points) are computed based on ground-truth geometry and the perspective sketch viewpoint. b) Prediction when the normal loss is used: The red point cloud is riding slightly above the green prediction. As shown in view 2 the height is slightly underestimated in the visible regions, but the loss results in more even roofs overall. c) Prediction when the normal loss is not used: the model produces blobby building geometry outside the visible regions.
215
+
216
+ ![](images/c7f86ed1bf12faf5632e492a1f7a199e3f0387615c2d46ef5b49eacedfe5df52.jpg)
217
+
218
+ ![](images/42596e5bc2bbda4f025a4033fdf547df864521186e6d9009a96520a8eaff10df.jpg)
219
+
220
+ ![](images/4b25ac75d83e830e3ebc654d5f65708e4240108c921081b5619485655d45c5b7.jpg)
221
+
222
+ ![](images/2bb4d633b9bedeb25cc507e6debde6a47682e1403e33e22e3c847e72a59fa0bf.jpg)
223
+
224
+ nificantly improves the accuracy of top-down depth-predictions - reflecting on the overall appearance of the buildings. 3D metrics in Tab. 3, computed only on visible regions from the perspective sketch viewpoint, highlight a slight geometry shrinkage, visible in View 2 in Fig. 4. While adding a normal loss hurts quantitative 3D metrics, we advocate its usage as it produces much sharper and smoother surfaces, as shown in Fig. 4 and supported with Tab. 2.
225
+
226
+ Comparison with a deterministic baseline: Qualitative results of our method are shown in Fig. 5 (d) and (g): We can infer realistic building geometries following input sketches that closely resemble the ground-truth - Fig. 5 (e) and (h). We compare our generative approach against the HeightFields [75] baseline - a deterministic model designed for heightfield completion from multi-frame RGB sequences. We train and test it on the same input as our model and visualize the results in Fig. 5 (c) and (f). In particular, the HeightFields model's test time input is the output of our first step: the predicted partial point cloud from a perspective view. This model is not a suitable stand-alone method for the task. To train this model, we also added $\mathcal{L}_{\mathrm{t,norm}}$ , as we found it to result in better performance. However, even with this additional loss, the HeightFields model fails to produce buildings with correct heights, and produces less plausible building geometries. In particular, it fails to capture sharp details and flat rooftops.
227
+
228
+ Tabs. 2 and 3 show quantitative comparison of our full model with Height-Fields [75] baseline. They show the superiority of our diffusion model in all settings, confirming the visual observations.
229
+
230
+ # 5 User Study
231
+
232
+ Modeling Interface: To validate our contributions, we built an interactive user interface in HTML, JavaScript, and Python. The 3D massing system runs real-time on a Titan X and can be used on any touch-screen device thorough a
233
+
234
+ ![](images/6e93fec26e6a18f971ec6f59d6247df03723b45e1e2224cc64e07e76778df325.jpg)
235
+ Fig. 5: Qualitative evaluation on synthetic sketches. (a) and (b) show example top-down and perspective sketches. (c) and (f) show reconstruction results obtained with the HeightFields [75] method, which is trained and tested on the same data as our method. (d) and (g) show reconstruction results by our method. (e) and (h) show the heightfield of the ground-truth top-down depth map. Note that the colors are assigned according to the ground-truth segmentation of buildings. Please zoom in to better see the alignment of predicted geometries with the ground-truth buildings' areas.
236
+
237
+ browser, ideally with a stylus. Broadly, the UI lets users sketch perspective and top-down views on 2D canvases, edit strokes, project a top-down sketch into the perspective canvas to align their sketches, and contains a 3D viewer. An overview of the UI is in Fig. 1 and is described in greater detail in the supplemental.
238
+
239
+ Evaluation: To validate our system, we run a proof-of-concept user study. For the study, we collaborated with one of the world-leading schools in urban design, the Bartlett School of Architecture, at University College London. We engaged 5 urban design architects: 2 undergraduate students, advanced in their studies, and 3 postgraduates with varying years of professional practice. Additionally, to test how friendly our system is for users with limited modeling and sketching experience, we engaged 5 further volunteers. All users watched a short video tutorial and had 5 minutes to play with the interface before starting the task. To have a concrete qualitative goal in our main study, we chose to provide participants with reference top-down and perspective renderings as underlays (the example screenshot is provided in the supplemental). We selected 9 scenes, randomly distributed between participants. Each participant drew two scenes.
240
+
241
+ In a post-study questionnaire, all architects indicated that they were able to recreate the building from the reference in under 5 minutes. As expected, it was more challenging for novices, yet, $2/5$ were satisfied with the outcome. On a 5-point Likert scale, architects (novices) gave an average score of 0.8 (1.2) on how well the results match the reference, with $+2$ for matching the reference well and $-2$ for failing completely. On a 5-point Likert scale, architects gave an average 1.4 score on how likely they are to use such an interface: where $-2$ for highly unlikely and $+2$ for highly likely. This analysis shows that overall our
242
+
243
+ ![](images/ddd2a713b332f1ae6efc72bec933cfc3d04b3cfcc4b05a3f9c456420f649c918.jpg)
244
+ Fig. 6: Freehand sketches and corresponding 3D reconstructions in our user interface, made by urban design architects in our study. (e) shows automatically post-processed results, rendered with an offline rendered, as described in the supplemental.
245
+
246
+ ![](images/41d9ab73ed2bffe6432b4e636ae55d629fb730e3d5b34b63070cf4de2e07b5d3.jpg)
247
+
248
+ ![](images/5ad0c6e9a948740dde81b5d403a1f3f6d0743b44f0f552c35b0705505d678b43.jpg)
249
+
250
+ ![](images/9ab4f20bbc461dcbef5141d0b5474ee900887e0e26da8660c0076608f6f72586.jpg)
251
+
252
+ system achieves a set goal of fast prototyping of building masses, while future work could aim to further improve the reconstruction accuracy. The detailed statistics for the post-study questionnaire are provided in the supplementary.
253
+
254
+ In our pilot study, architects consistently indicated that it would take them about 10 minutes in Rhino for scenes comparable to the ones we target. The pilot study on SketchUp, documented in the supplemental, similarly showed that it is not suitable for fast prototyping. This, in particular, shows the lack of convenient tools for early design stages and reinforces the motivation for our work.
255
+
256
+ Two urban design architects also did freehand modeling after the main study and completed post-study questionnaires. These sketches are shown in Fig. 6.
257
+
258
+ # 6 Conclusion and discussion
259
+
260
+ We have presented the first sketch-based method for early-stage urban design, aligning it with the Human-Centered AI philosophy [68]. Taking into account design workflows that commonly start from top-down city layouts, we proposed models that, while working in image space, efficiently leverage information from both perspective and top-down sketch views. GroundUp addresses the especially challenging (but not unique) aspects of our problem: complexity and diversity of scene geometries, sparsity of sketch inputs, and incomplete depth cues in user-provided views. While we only show the results for a single perspective sketch, our system is trivially extended to a multi-view setting: by projecting point clouds inferred from extra perspective sketches into the top-down views passed to our diffusion model. We provide numerical experiments in the supplemental. With this work, we have taken a step toward quick building massing. To propel the integration of our tool into design workflows, future work might focus on directly predicting editable mesh representations and supporting finer details. Additionally, it could be interesting to extend this work to trees and terrain, for example, by sketching trunks and contour lines for the terrain.
261
+
262
+ # Acknowledgements
263
+
264
+ We thank Prof. Tobias Ritschel for his invaluable feedback and help; Natalia Laskovaya for an inspiring and detailed early discussion on design processes in architecture; Sharon Betts for her huge help in making our user study possible. We also thank Kening Guo and all the anonymous participants of the user studies. Gizem Esra Ünlü is funded by a Niantic PhD scholarship.
265
+
266
+ # References
267
+
268
+ 1. Benes, B., Zhou, X., Chang, P., Cani, M.P.R.: Urban brush: Intuitive and controllable urban layout editing. In: The 34th Annual ACM Symposium on User Interface Software and Technology (2021)
269
+ 2. Bhattacharjee, S., Chaudhuri, P.: A survey on sketch based content creation: from the desktop to virtual and augmented reality. Computer Graphics Forum 39, 757-780 (05 2020)
270
+ 3. Binninger, A., Hertz, A., Sorkine-Hornung, O., Cohen-Or, D., Giryes, R.: Sens: Sketch-based implicit neural shape modeling. Arxiv preprint -(-) (06 2023)
271
+ 4. Bonnici, A., Akman, A., Calleja, G., Camilleri, K., Fehling, P., Ferreira, A., Hermuth, F., Israel, J., Landwehr, T., Liu, J., Padfield, N., Sezgin, T., Rosin, P.: Sketch-based interaction and modeling: where do we stand? Artificial Intelligence for Engineering Design, Analysis and Manufacturing 33, 1-19 (11 2019)
272
+ 5. Bozic, A., Palafox, P., Thies, J., Dai, A., Nießner, M.: TransformerFusion: Monocular RGB scene reconstruction using transformers. NeurIPS (2021)
273
+ 6. Camba, J.D., Company, P., Naya, F.: Sketch-based modeling in mechanical engineering design: Current status and opportunities. Computer-Aided Design 150, 103283 (2022)
274
+ 7. Chen, S., Ogawa, Y., Zhao, C., Sekimoto, Y.: Large-scale individual building extraction from open-source satellite imagery via super-resolution-based instance segmentation approach. ISPRS Journal of Photogrammetry and Remote Sensing 195 (2023)
275
+ 8. Chen, S., Shi, Y., Xiong, Z., Zhu, X.X.: Htc-dc net: Monocular height estimation from single remote sensing images. IEEE Transactions on Geoscience and Remote Sensing 61 (2023)
276
+ 9. Chen, Z., Zhang, Y., Qi, X., Mao, Y., Zhou, X., Niu, L., Wu, H., Wang, L., Ge, Y.: Heightformer: A multilevel interaction and image-adaptive classification-regression network for monocular height estimation with aerial images. arXiv preprint arXiv:2310.07995 (2023)
277
+ 0. Cheng, Z., Chai, M., Ren, J., Lee, H.Y., Olszewski, K., Huang, Z., Maji, S., Tulyakov, S.: Cross-modal 3D Shape Generation and Manipulation, pp. 303-321. Springer (11 2022)
278
+ 1. Chowdhury, P.N., Wang, T., Ceylan, D., Song, Y.Z., Gryaditskaya, Y.: Garment ideation: Iterative view-aware sketch-based garment modeling. In: 2022 International Conference on 3D Vision (3DV). pp. 22-31 (2022)
279
+ 12. Clowes, M.B.: On seeing things. Artificial intelligence 2(1), 79-116 (1971)
280
+ 13. Collins, R.T.: A space-sweep approach to true multi-image matching. In: CVPR (1996)
281
+
282
+ 14. Delanoy, J., Aubry, M., Isola, P., Efros, A.A., Bousseau, A.: 3d sketching using multi-view deep volumetric prediction. Proc. ACM Comput. Graph. Interact. Tech. 1(1) (Jul 2018)
283
+ 15. Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., Fei-Fei, L.: Imagenet: A large-scale hierarchical image database. In: 2009 IEEE conference on computer vision and pattern recognition. IEEE (2009)
284
+ 16. Deng, J., Chai, W., Guo, J., Huang, Q., Hu, W., Hwang, J.N., Wang, G.: Citygen: Infinite and controllable 3d city layout generation. arXiv preprint arXiv:2312.01508 (2023)
285
+ 17. Duan, Y., Zhu, Z., Guo, X.: Diffusiondepth: Diffusion denoising approach for monocular depth estimation. CoRR abs/2303.05021 (2023)
286
+ 18. Duzceker, A., Galliani, S., Vogel, C., Speciale, P., Dusmanu, M., Pollefeys, M.: Deepvideomvs: Multi-view stereo on video with recurrent spatio-temporal fusion. In: CVPR (2021)
287
+ 19. Eigen, D., Puhrsch, C., Fergus, R.: Depth map prediction from a single image using a multi-scale deep network. In: Ghahramani, Z., Welling, M., Cortes, C., Lawrence, N.D., Weinberger, K.Q. (eds.) Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada. pp. 2366-2374 (2014)
288
+ 20. Feng, T., Fan, F., Bednarz, T.: A review of computer graphics approaches to urban modeling from a machine learning perspective. Frontiers of Information Technology & Electronic Engineering 22(7) (2021)
289
+ 21. Fu, H., Gong, M., Wang, C., Batmanghelich, K., Tao, D.: Deep ordinal regression network for monocular depth estimation. In: Proceedings of the IEEE conference on computer vision and pattern recognition (2018)
290
+ 22. Furukawa, Y., Hernández, C., et al.: Multi-view stereo: A tutorial. Foundations and Trends in Computer Graphics and Vision 9(1-2), 1-148 (2015)
291
+ 23. Gao, C., Yu, Q., Sheng, L., Song, Y., Xu, D.: Sketchsampler: Sketch-based 3d reconstruction via view-dependent depth sampling. In: ECCV (2022)
292
+ 24. Ghamisi, P., Yokoya, N.: Img2dsm: Height simulation from single imagery using conditional generative adversarial net. IEEE Geoscience and Remote Sensing Letters 15(5) (2018)
293
+ 25. Godard, C., Aodha, O.M., Brostow, G.J.: Unsupervised monocular depth estimation with left-right consistency. In: 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017. pp. 6602-6611. IEEE Computer Society (2017)
294
+ 26. Godard, C., Aodha, O.M., Firman, M., Brostow, G.J.: Digging into self-supervised monocular depth estimation. In: 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019. pp. 3827-3837. IEEE (2019)
295
+ 27. Godard, C., Mac Aodha, O., Brostow, G.J.: Unsupervised monocular depth estimation with left-right consistency. In: CVPR (2017)
296
+ 28. Goesele, M., Curless, B., Seitz, S.M.: Multi-view stereo revisited. In: CVPR (2006)
297
+ 29. Guillard, B., Remelli, E., Yvernay, P., Fua, P.: Sketch2mesh: Reconstructing and editing 3d shapes from sketches. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (2021)
298
+ 30. Hahnlein, F., Gryaditskaya, Y., Sheffer, A., Bousseau, A.: Symmetry-driven 3d reconstruction from concept sketches. In: ACM SIGGRAPH 2022 Conference Proceedings. pp. 1-8 (2022)
299
+
300
+ 31. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: Proceedings of the IEEE conference on computer vision and pattern recognition (2016)
301
+ 32. He, L., Aliaga, D.: Globalmapper: Arbitrary-shaped urban layout generation. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). pp. 454-464 (October 2023)
302
+ 33. Huffman, D.A.: Impossible objects as nonsense sentences. Machine intelligence 6, 295-323 (1971)
303
+ 34. Jacoby, S.: Drawing Architecture and the Urban. Wiley (2016)
304
+ 35. Kang, S.B., Szeliski, R., Chai, J.: Handling occlusions in dense multi-view stereo. In: CVPR (2001)
305
+ 36. Ke, B., Obukhov, A., Huang, S., Metzger, N., Daudt, R.C., Schindler, K.: Repurposing diffusion-based image generators for monocular depth estimation. arXiv preprint arXiv:2312.02145 (2023)
306
+ 37. Kelly, T., Femiani, J., Wonka, P., Mitra, N.J.: Bigsur: Large-scale structured urban reconstruction. ACM Transactions on Graphics 36(6) (November 2017)
307
+ 38. Kelly, T., Guerrero, P., Steed, A., Wonka, P., Mitra, N.J.: Frankengan: Guided detail synthesis for building mass models using style-synchronized gans. ACM Trans. Graph. 37(6), 1:1-1:14 (2018)
308
+ 39. Kim, S., Kim, D., Choi, S.: Citycraft: 3d virtual city creation from a single image. The Visual Computer 36 (2020)
309
+ 40. Leyton, M.: A generative theory of shape. vol. 2145, p. p366. Springer Berlin / Heidelberg, Germany (2001)
310
+ 41. Li, C., Pan, H., Bousseau, A., Mitra, N.J.: Free2cad: Parsing freehand drawings into cad commands. ACM TOG (2022)
311
+ 42. Li, C., Pan, H., Liu, Y., Tong, X., Sheffer, A., Wang, W.: Robust flow-guided neural prediction for sketch-based freeform surface modeling. ACM Trans. Graph. 37(6) (2018)
312
+ 43. Li, L., Song, N., Sun, F., Liu, X., Wang, R., Yao, J., Cao, S.: Point2roof: End-to-end 3d building roof modeling from airborne lidar point clouds. ISPRS Journal of Photogrammetry and Remote Sensing 193, 17-28 (2022)
313
+ 44. Li, X., Wen, C., Wang, L., Fang, Y.: Geometry-aware segmentation of remote sensing images via joint height estimation. IEEE Geoscience and Remote Sensing Letters 19 (2021)
314
+ 45. Li, Z., Snavely, N.: Megadepth: Learning single-view depth prediction from internet photos. In: 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018. pp. 2041-2050. Computer Vision Foundation / IEEE Computer Society (2018)
315
+ 46. Lin, C.H., Lee, H.Y., Menapace, W., Chai, M., Siarohin, A., Yang, M.H., Tulyakov, S.: Infinity: Infinite-scale city synthesis. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) (October 2023)
316
+ 47. Lipson, L., Teed, Z., Deng, J.: Raft-stereo: Multilevel recurrent field transforms for stereo matching. In: 2021 International Conference on 3D Vision (3DV). pp. 218-227. IEEE (2021)
317
+ 48. Liu, Z., Zhang, F., Cheng, Z.: Buildingsketch: Freehand mid-air sketching for building modeling. In: IEEE International Symposium on Mixed and Augmented Reality (ISMAR). IEEE (2021)
318
+ 49. Lun, Z., Gadelha, M., Kalogerakis, E., Maji, S., Wang, R.: 3d shape reconstruction from sketches via multi-view convolutional networks. In: International Conference on 3D Vision (3DV) (2017)
319
+
320
+ 50. Luo, L., Chowdhury, P.N., Xiang, T., Song, Y.Z., Gryaditskaya, Y.: 3d vr sketch guided 3d shape prototyping and exploration. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (2023)
321
+ 51. Mahdi, E., Ziming, Z., Xinming, H.: Aerial height prediction and refinement neural networks with semantic and geometric guidance. arXiv preprint arXiv:2011.10697 (2020)
322
+ 52. Mahmud, J., Price, T., Bapat, A., Frahm, J.M.: Boundary-aware 3d building reconstruction from a single overhead image. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2020)
323
+ 53. Mescheder, L.M., Oechsle, M., Niemeyer, M., Nowozin, S., Geiger, A.: Occupancy networks: Learning 3d reconstruction in function space. In: IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019. pp. 4460-4470. Computer Vision Foundation / IEEE, Long Beach, CA, USA (2019)
324
+ 54. Mou, L., Zhu, X.X.: Im2height: Height estimation from single monocular imagery via fully residual convolutional-deconvolutional network. arXiv preprint arXiv:1802.10249 (2018)
325
+ 55. Nam, G., Khlifi, M., Rodriguez, A., Tono, A., Zhou, L., Guerrero, P.: 3d-ldm: Neural implicit 3d shape generation with latent diffusion models. arXiv preprint arXiv:2212.00842 (2022)
326
+ 56. Nishida, G., Garcia-Dorado, I., Aliaga, D.G., Benes, B., Bousseau, A.: Interactive sketching of urban procedural models. ACM Transactions on Graphics (TOG) 35(4) (2016)
327
+ 57. Park, J.J., Florence, P., Straub, J., Newcombe, R., Lovegrove, S.: Deepsdf: Learning continuous signed distance functions for shape representation. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (2019)
328
+ 58. Pearl, O., Lang, I., Hu, Y., Yeh, R.A., Hanocka, R.: Geocode: Interpretable shape programs. arXiv preprint arXiv:2212.11715 (2022)
329
+ 59. Pitts, G., Luther, M.: A parametric approach to 3d massing and density modelling. In: Digital Physicality: Proceedings of the 30th eCAADe Conference. pp. 157-165 (2012)
330
+ 60. Puhachov, I., Martens, C., Kry, P.G., Bessmeltsev, M.: Reconstruction of machine-made shapes from bitmap sketches. ACM Trans. Graph. 42(6) (2023)
331
+ 61. Ranftl, R., Lasinger, K., Hafner, D., Schindler, K., Koltun, V.: Towards robust monocular depth estimation: Mixing datasets for zero-shot cross-dataset transfer. IEEE transactions on pattern analysis and machine intelligence 44(3), 1623-1637 (2020)
332
+ 62. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022. pp. 10674-10685. IEEE, New Orleans, Louisiana, USA (2022)
333
+ 63. Ronneberger, O., Fischer, P., Brox, T.: U-net: Convolutional networks for biomedical image segmentation. In: Medical Image Computing and Computer-Assisted Intervention-MICCAI 2015: 18th International Conference, Munich, Germany, October 5-9, 2015, Proceedings, Part III 18. Springer (2015)
334
+ 64. Rosenfeld, A., Pfaltz, J.L.: Sequential operations in digital picture processing. Journal of the ACM (JACM) 13(4), 471-494 (1966)
335
+ 65. Saxena, S., Kar, A., Norouzi, M., Fleet, D.J.: Monocular depth estimation using diffusion models. CoRR abs/2302.14816 (2023)
336
+
337
+ 66. Sayed, M., Gibson, J., Watson, J., Prisacariu, V., Firman, M., Godard, C.: Simplorecon: 3d reconstruction without 3d convolutions. In: Computer Vision - ECCV 2022 - 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXXIII. Lecture Notes in Computer Science, vol. 13693, pp. 1-19. Springer (2022)
338
+ 67. Schonberger, J.L., Zheng, E., Frahm, J.M., Pollefeys, M.: Pixelwise view selection for unstructured multi-view stereo. In: Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part III 14. pp. 501-518. Springer (2016)
339
+ 68. Shneiderman, B.: Human-centered AI. Oxford University Press (2022), https://books.google.co.uk/books?id=YS9VEAAAQBAJ
340
+ 69. Stucker, C., Schindler, K.: Resdepth: A deep residual prior for 3d reconstruction from high-resolution satellite images. ISPRS Journal of Photogrammetry and Remote Sensing 183 (2022)
341
+ 70. Su, W., Du, D., Yang, X., Zhou, S., Fu, H.: Interactive sketch-based normal map generation with deep neural networks. Proceedings of the ACM on Computer Graphics and Interactive Techniques 1(1) (2018)
342
+ 71. Tan, M., Le, Q.: Efficientnet: Rethinking model scaling for convolutional neural networks. In: International conference on machine learning. PMLR (2019)
343
+ 72. Tono, A., Huang, H., Agrawal, A., Fischer, M.: Vitruvio: 3d building meshes via single perspective sketches. arXiv preprint arXiv:2210.13634 (2022)
344
+ 73. Wang, J., Lin, J., Yu, Q., Liu, R., Chen, Y., Yu, S.X.: 3d shape reconstruction from free-hand sketches. In: Karlinsky, L., Michaeli, T., Nishino, K. (eds.) ECCV Workshops (2022)
345
+ 74. Wang, Y., Zorzi, S., Bittner, K.: Machine-learned 3d building vectorization from satellite imagery. In: IEEE Conference on Computer Vision and Pattern Recognition Workshops, CVPR Workshops 2021, virtual, June 19-25, 2021. pp. 1072-1081. Computer Vision Foundation / IEEE, Virtual (2021)
346
+ 75. Watson, J., Vicente, S., Aodha, O.M., Godard, C., Brostow, G.J., Firman, M.: Heightfields for efficient scene reconstruction for AR. In: IEEE/CVF Winter Conference on Applications of Computer Vision, WACV 2023, Waikoloa, HI, USA, January 2-7, 2023. pp. 5839-5849. IEEE (2023)
347
+ 76. Wu, J., Zhang, C., Zhang, X., Zhang, Z., Freeman, W.T., Tenenbaum, J.B.: Learning shape priors for single-view 3d completion and reconstruction. In: ECCV (2018)
348
+ 77. Xie, H., Chen, Z., Hong, F., Liu, Z.: Citydreamer: Compositional generative model of unbounded 3d cities. arXiv preprint arXiv:2309.00610 (2023)
349
+ 78. Yao, Y., Luo, Z., Li, S., Fang, T., Quan, L.: MVSNet: Depth inference for unstructured multi-view stereo. In: ECCV (2018)
350
+ 79. Yao, Y., Schertler, N., Rosales, E., Rhodin, H., Sigal, L., Sheffer, A.: Front2back: Single view 3d shape reconstruction via front to back prediction. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2020)
351
+ 80. Yin, W., Liu, Y., Shen, C., Yan, Y.: Enforcing geometric constraints of virtual normal for depth prediction. In: 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019. pp. 5683-5692. IEEE (2019)
352
+ 81. Yin, W., Zhang, J., Wang, O., Niklaus, S., Mai, L., Chen, S., Shen, C.: Learning to recover 3d scene shape from a single image. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 204-213 (2021)
353
+ 82. Zbontar, J., LeCun, Y.: Stereo matching by training a convolutional neural network to compare image patches. JMLR (2016)
354
+
355
+ 83. Zhang, S.H., Guo, Y.C., Gu, Q.W.: Sketch2model: View-aware 3d modeling from single free-hand sketches. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 6012-6021 (2021)
356
+ 84. Zhao, C., Sun, Q., Zhang, C., Tang, Y., Qian, F.: Monocular depth estimation based on deep learning: An overview. Science China Technological Sciences 63(9) (2020)
357
+ 85. Zhao, L., Wang, H., Zhu, Y., Song, M.: A review of 3d reconstruction from high-resolution urban satellite images. International Journal of Remote Sensing 44(2) (2023)
358
+ 86. Zheng, J., Zhu, Y., Wang, K., Zou, Q., Zhou, Z.: Deep learning assisted optimization for 3d reconstruction from single 2d line drawings. arXiv e-prints pp. arXiv-2209 (2022)
359
+ 87. Zheng, X.Y., Pan, H., Wang, P.S., Tong, X., Liu, Y., Shum, H.Y.: Locally attentional sdf diffusion for controllable 3d shape generation. ACM Trans. Graph. 42(4) (2023)
360
+ 88. Zhong, Y., Gryaditskaya, Y., Zhang, H., Song, Y.: Deep sketch-based modeling: Tips and tricks. In: Struc, V., Fernández, F.G. (eds.) International Conference on 3D Vision (3DV). IEEE (2020)
361
+ 89. Zhong, Y., Gryaditskaya, Y., Zhang, H., Song, Y.Z.: A study of deep single sketch-based modeling: View/style invariance, sparsity and latent space disentanglement. Computers & Graphics 106, 237-247 (2022)
362
+ 90. Zhong, Y., Qi, Y., Gryaditskaya, Y., Zhang, H., Song, Y.Z.: Towards practical sketch-based 3d shape generation: The role of professional sketches. IEEE Transactions on Circuits and Systems for Video Technology (2020)
363
+ 91. Zhou, B., Russakovsky, O., Fong, R., Hoffman, J.: CVPR Tutorial on Human-Centered AI for Computer Vision (2022), https://human-centeredai.github.io/
364
+ 92. Zhou, Z., Rahman Siddiquee, M.M., Tajbakhsh, N., Liang, J.: Unet++: A nested u-net architecture for medical image segmentation. In: Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support: 4th International Workshop, DLMIA 2018, and 8th International Workshop, ML-CDS 2018, Held in Conjunction with MICCAI 2018, Granada, Spain, September 20, 2018, Proceedings 4. Springer (2018)
2024/GroundUp_ Rapid Sketch-Based 3D City Massing/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d51472656235cc2f19653d6c5e11be94c2655ae943ebae6460d68a683bf34a3
3
+ size 375014
2024/GroundUp_ Rapid Sketch-Based 3D City Massing/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/aa4cae58-10af-482c-b4dc-840d2e57d73a_content_list.json ADDED
@@ -0,0 +1,1805 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 217,
8
+ 140,
9
+ 785,
10
+ 186
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Shilong Liu $^{1,2\\star}$ , Zhaoyang Zeng $^{2}$ , Tianhe Ren $^{2}$ , Feng Li $^{2,3}$ , Hao Zhang $^{2,3}$ ,",
17
+ "bbox": [
18
+ 228,
19
+ 210,
20
+ 772,
21
+ 229
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Jie Yang $^{2,4}$ , Qing Jiang $^{2,6}$ Chunyuan Li $^{5}$ , Jianwei Yang $^{5}$ ,",
28
+ "bbox": [
29
+ 292,
30
+ 228,
31
+ 712,
32
+ 243
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Hang $\\mathrm{Su}^1$ , Jun Zhu<sup>1*</sup>, Lei Zhang<sup>2*</sup>.",
39
+ "bbox": [
40
+ 367,
41
+ 243,
42
+ 638,
43
+ 258
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "<sup>1</sup> Dept. of Comp. Sci. and Tech., BNRist Center, State Key Lab for Intell. Tech. & Sys.,",
50
+ "bbox": [
51
+ 215,
52
+ 268,
53
+ 785,
54
+ 284
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Institute for AI, Tsinghua-Bosch Joint Center for ML, Tsinghua University",
61
+ "bbox": [
62
+ 251,
63
+ 284,
64
+ 750,
65
+ 297
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "$^{2}$ International Digital Economy Academy (IDEA)",
72
+ "bbox": [
73
+ 333,
74
+ 297,
75
+ 669,
76
+ 311
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "<sup>3</sup> The Hong Kong University of Science and Technology",
83
+ "bbox": [
84
+ 315,
85
+ 311,
86
+ 687,
87
+ 325
88
+ ],
89
+ "page_idx": 0
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "<sup>4</sup> The Chinese University of Hong Kong (Shenzhen) <sup>5</sup> Microsoft Research, Redmond",
94
+ "bbox": [
95
+ 215,
96
+ 325,
97
+ 784,
98
+ 340
99
+ ],
100
+ "page_idx": 0
101
+ },
102
+ {
103
+ "type": "text",
104
+ "text": "$^{6}$ South China University of Technology",
105
+ "bbox": [
106
+ 367,
107
+ 339,
108
+ 635,
109
+ 354
110
+ ],
111
+ "page_idx": 0
112
+ },
113
+ {
114
+ "type": "text",
115
+ "text": "liusl20@mails.tsinghua.edu.cn, leizhang@idea.edu.cn",
116
+ "bbox": [
117
+ 302,
118
+ 354,
119
+ 699,
120
+ 367
121
+ ],
122
+ "page_idx": 0
123
+ },
124
+ {
125
+ "type": "image",
126
+ "img_path": "images/6f7d96853f9fcb920416ec5f1dd0f96b521a1a909e4c21689a01b352e0b6ddbe.jpg",
127
+ "image_caption": [
128
+ "Fig. 1: (a) Closed-set object detection requires models to detect objects of pre-defined categories. (b) We evaluate models on novel objects and standard Referring expression comprehension (REC) benchmarks for model generalizations on novel objects with attributes. (c) We present an image editing application by combining Grounding DINO and Stable Diffusion [40]. Best viewed in colors."
129
+ ],
130
+ "image_footnote": [],
131
+ "bbox": [
132
+ 277,
133
+ 391,
134
+ 725,
135
+ 556
136
+ ],
137
+ "page_idx": 0
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "Abstract. In this paper, we develop an open-set object detector, called Grounding DINO, by marrying Transformer-based detector DINO with grounded pre-training, which can detect arbitrary objects with human inputs such as category names or referring expressions. The key solution of open-set object detection is introducing language to a closed-set detector for open-set concept generalization. To effectively fuse language and vision modalities, we conceptually divide a closed-set detector into three phases and propose a tight fusion solution, which includes a feature enhancer, a language-guided query selection, and a cross-modality decoder for modalities fusion. We first pre-train Grounding DINO on large-scale datasets,",
142
+ "bbox": [
143
+ 259,
144
+ 648,
145
+ 743,
146
+ 789
147
+ ],
148
+ "page_idx": 0
149
+ },
150
+ {
151
+ "type": "page_footnote",
152
+ "text": "* This work was done when Shilong Liu, Feng Li, Hao Zhang, Jie Yang, and Qing Jiang were interns at IDEA.",
153
+ "bbox": [
154
+ 217,
155
+ 797,
156
+ 785,
157
+ 825
158
+ ],
159
+ "page_idx": 0
160
+ },
161
+ {
162
+ "type": "page_footnote",
163
+ "text": "\\*\\* Corresponding authors.",
164
+ "bbox": [
165
+ 215,
166
+ 825,
167
+ 392,
168
+ 839
169
+ ],
170
+ "page_idx": 0
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "including object detection data, grounding data, and caption data, and evaluate the model on both open-set object detection and referring object detection benchmarks. Grounding DINO performs remarkably well on all three settings, including benchmarks on COCO, LVIS, ODinW, and RefCOCO/+/g. Grounding DINO achieves a 52.5 AP on the COCO zero-shot $^{1}$ detection benchmark. It sets a new record on the ODinW zero-shot benchmark with a mean 26.1 AP. We release some checkpoints and inference codes at https://github.com/IDEA-Research/GroundingDINO.",
175
+ "bbox": [
176
+ 259,
177
+ 147,
178
+ 743,
179
+ 258
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "Keywords: Object Detection $\\cdot$ Image Grounding $\\cdot$ Multi-modal learning",
186
+ "bbox": [
187
+ 261,
188
+ 272,
189
+ 740,
190
+ 287
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "1 Introduction",
197
+ "text_level": 1,
198
+ "bbox": [
199
+ 215,
200
+ 315,
201
+ 375,
202
+ 330
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "A key indicator of an Artificial General Intelligence (AGI) system's capability is its proficiency in handling open-world scenarios. In this paper, we aim to develop a strong system to detect arbitrary objects specified by human language inputs, a task commonly referred to as open-set object detection<sup>2</sup>. The task has wide applications for its great potential as a generic object detector. For example, we can cooperate with generative models for image editing (as shown in Fig. 1 (b)).",
209
+ "bbox": [
210
+ 212,
211
+ 349,
212
+ 787,
213
+ 439
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "In pursuit of this goal, we design the strong open-set object detector Grounding DINO by following the two principles: tight modality fusion based on DINO [56] and large-scale grounded pre-train for concept generalization.",
220
+ "bbox": [
221
+ 212,
222
+ 441,
223
+ 787,
224
+ 486
225
+ ],
226
+ "page_idx": 1
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "Tight modality fusion based on DINO. The key to open-set detection is introducing language for unseen object generalization [1,6,24]. Most existing open-set detectors are developed by extending closed-set detectors to open-set scenarios with language information. As shown in Fig. 2, a closed-set detector typically has three important modules, a backbone for feature extraction, a neck for feature enhancement, and a head for region refinement (or box prediction). A closed-set detector can be generalized to detect novel objects by learning language-aware region embeddings so that each region can be classified into novel categories in a language-aware semantic space. The key to achieving this goal is using contrastive loss between region outputs and language features at the neck",
231
+ "bbox": [
232
+ 212,
233
+ 486,
234
+ 787,
235
+ 637
236
+ ],
237
+ "page_idx": 1
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "and/or head outputs. To help a model align cross-modality information some work tried to fuse features before the final loss stage. We summarize the modulized design",
242
+ "bbox": [
243
+ 215,
244
+ 637,
245
+ 372,
246
+ 758
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "image",
252
+ "img_path": "images/a7145f69a8e398231250672b4d34ec039badb55117e5490ece788596ccde5963.jpg",
253
+ "image_caption": [
254
+ "Fig. 2: Extending closed-set detectors to open-set scenarios."
255
+ ],
256
+ "image_footnote": [],
257
+ "bbox": [
258
+ 426,
259
+ 643,
260
+ 746,
261
+ 739
262
+ ],
263
+ "page_idx": 1
264
+ },
265
+ {
266
+ "type": "page_number",
267
+ "text": "2",
268
+ "bbox": [
269
+ 217,
270
+ 114,
271
+ 228,
272
+ 126
273
+ ],
274
+ "page_idx": 1
275
+ },
276
+ {
277
+ "type": "header",
278
+ "text": "S. Liu et al.",
279
+ "bbox": [
280
+ 271,
281
+ 114,
282
+ 352,
283
+ 127
284
+ ],
285
+ "page_idx": 1
286
+ },
287
+ {
288
+ "type": "page_footnote",
289
+ "text": "<sup>1</sup> In this paper, 'zero-shot' refers to scenarios where the training split of the test dataset is not utilized in the training process.",
290
+ "bbox": [
291
+ 217,
292
+ 768,
293
+ 784,
294
+ 797
295
+ ],
296
+ "page_idx": 1
297
+ },
298
+ {
299
+ "type": "page_footnote",
300
+ "text": "2 We view the terms open-set object detection, open-world object detection, and open-vocabulary object detection the same task in this paper. To avoid confusion, we always use open-set object detection in our paper.",
301
+ "bbox": [
302
+ 218,
303
+ 797,
304
+ 785,
305
+ 839
306
+ ],
307
+ "page_idx": 1
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "of object detectors in Fig. 2. Feature fusion can be performed in three phases: neck (phase A), query initialization (phase B), and head (phase C). For example, GLIP [24] performs early fusion in the neck module (phase A), and OV-DETR [54] uses language-aware queries as head inputs (phase B). We argue that introducing more feature fusion into the pipeline can facilitate better alignment between different modality features, thereby achieving better performance.",
312
+ "bbox": [
313
+ 212,
314
+ 146,
315
+ 787,
316
+ 236
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "Although conceptually simple, it is hard for previous work to perform feature fusion in all three phases. The design of classical detectors like Faster RCNN makes it hard to interact with language information in most blocks. Unlike classical detectors, the Transformer-based detector method such as DINO has a consistent structure with language blocks. The layer-by-layer design enables it to interact with language information easily. Under this principle, we design three feature fusion approaches in the neck, query initialization, and head phases. More specifically, we design a feature enhancer by stacking self-attention, text-to-image cross-attention, and image-to-text cross-attention as the neck module. We then develop a language-guided query selection method to initialize queries for the detection head. We also design a cross-modality decoder for the head phase with image and text cross-attention layers to boost query representations.",
323
+ "bbox": [
324
+ 212,
325
+ 238,
326
+ 787,
327
+ 419
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "Large-scale grounded pre-train for zero-shot transfer. Most existing open-set models [13, 20] rely on pre-trained CLIP models for concept generalization. Nevertheless, the efficacy of CLIP, specifically pre-trained on image-text pairs, is limited for region-text pair detection tasks, as identified in the Region-CLIP study by RegionCLIP [60]. In contrast, GLIP [24] presents a different way by reformulating object detection as a phrase grounding task and introducing contrastive training between object regions and language phrases on large-scale data. It shows great flexibility for heterogeneous datasets and remarkable performance on closed-set and open-set detection.",
334
+ "bbox": [
335
+ 212,
336
+ 421,
337
+ 787,
338
+ 556
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "We have adopted and refined the grounded training methodology. GLIP's approach involves concatenating all categories into a sentence in a random order. However, the direct category names concatenation does not consider the potential influence of unrelated categories on each other when extracting features. To mitigate this issue and improve model performance during grounded training, we introduce a technique that utilizes sub-sentence level text features. It removes the attention between unrelated categories during word feature extractions. Further elaboration on this technique can be found in Section 3.4.",
345
+ "bbox": [
346
+ 212,
347
+ 556,
348
+ 787,
349
+ 678
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "We pre-train the Grounding DINO on a large-scale dataset and evaluate the performance on mainstream object detection benchmarks like COCO [28]. While some studies have examined open-set detection models under a \"partial label\" framework—training on a subset of data (e.g., base categories) and testing on additional categories—we advocate for a fully zero-shot approach to enhance practical applicability. Moreover, we extend the model to another important scenario Referring Expression Comprehension (REC) [29,33]<sup>3</sup>, where objects are described with attributes.",
356
+ "bbox": [
357
+ 212,
358
+ 679,
359
+ 787,
360
+ 800
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "header",
366
+ "text": "Grounding DINO",
367
+ "bbox": [
368
+ 612,
369
+ 114,
370
+ 730,
371
+ 128
372
+ ],
373
+ "page_idx": 2
374
+ },
375
+ {
376
+ "type": "page_number",
377
+ "text": "3",
378
+ "bbox": [
379
+ 774,
380
+ 116,
381
+ 784,
382
+ 126
383
+ ],
384
+ "page_idx": 2
385
+ },
386
+ {
387
+ "type": "page_footnote",
388
+ "text": "<sup>3</sup> We use the term Referring Expression Comprehension (REC) and Referring (Object) Detection exchangeable in this paper.",
389
+ "bbox": [
390
+ 217,
391
+ 810,
392
+ 787,
393
+ 839
394
+ ],
395
+ "page_idx": 2
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "We conduct experiments on all three settings, including closed-set detection, open-set detection, and referring object detection, as shown in Fig. 1, to comprehensively evaluate open-set detection performance. Grounding DINO outperforms competitors by a large margin. For example, Grounding DINO reaches a 52.5 AP on COCO minimal without any COCO training data. It also establishes a new state of the art on the ODinW [22] zero-shot benchmark with a 26.1 mean AP.",
400
+ "bbox": [
401
+ 212,
402
+ 146,
403
+ 787,
404
+ 238
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "table",
410
+ "img_path": "images/545f83dd7af4aed36f4017128b30512f9dd9b2cc8877cce722b76955a3155503.jpg",
411
+ "table_caption": [],
412
+ "table_footnote": [],
413
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"3\">Model Design</td><td rowspan=\"2\">Text Prompt Represent. Level (Sec. 3.4)</td><td rowspan=\"2\">Closed-Set Settings COCO</td><td colspan=\"3\">Zero-Shot Transfer</td><td rowspan=\"2\">Referring Detection RefCOCO/+g</td></tr><tr><td>Base Detector</td><td>Fusion (Fig. 2)</td><td>CLIP</td><td>COCO</td><td>LVIS</td><td>ODinW</td></tr><tr><td>ViLD [13]</td><td>Mask R-CNN</td><td>-</td><td>✓</td><td>sentence</td><td>✓</td><td>partial label</td><td>partial label</td><td></td><td></td></tr><tr><td>RegionCLIP [60]</td><td>Faster RCNN</td><td>-</td><td>✓</td><td>sentence</td><td>✓</td><td>partial label</td><td>partial label</td><td></td><td></td></tr><tr><td>FindIt [20]</td><td>Faster RCNN</td><td>A</td><td></td><td>sentence</td><td>✓</td><td>partial label</td><td></td><td></td><td>fine-tune</td></tr><tr><td>MDETR [17]</td><td>DETR</td><td>A,C</td><td></td><td>word</td><td></td><td></td><td>fine-tune</td><td>zero-shot</td><td>fine-tune</td></tr><tr><td>DQ-DETR [44]</td><td>DETR</td><td>A,C</td><td></td><td>word</td><td>✓</td><td></td><td>zero-shot</td><td></td><td>fine-tune</td></tr><tr><td>GLIP [24]</td><td>DyHead</td><td>A</td><td></td><td>word</td><td>✓</td><td>zero-shot</td><td>zero-shot</td><td>zero-shot</td><td></td></tr><tr><td>GLIP+2 [57]</td><td>DyHead</td><td>A</td><td></td><td>word</td><td>✓</td><td>zero-shot</td><td>zero-shot</td><td>zero-shot</td><td></td></tr><tr><td>OV-DETR [54]</td><td>Deformable DETR</td><td>B</td><td>✓</td><td>sentence</td><td>✓</td><td>partial label</td><td>partial label</td><td></td><td></td></tr><tr><td>OWL-ViT [34]</td><td>-</td><td>-</td><td>✓</td><td>sentence</td><td>✓</td><td>partial label</td><td>partial label</td><td>zero-shot</td><td></td></tr><tr><td>DetCLIP [51]</td><td>ATSS</td><td>-</td><td>✓</td><td>sentence</td><td></td><td></td><td>zero-shot</td><td>zero-shot</td><td></td></tr><tr><td>OmDet [59]</td><td>Sparse R-CNN</td><td>C</td><td>✓</td><td>sentence</td><td>✓</td><td></td><td></td><td>zero-shot</td><td></td></tr><tr><td>Grounding DINO (Ours)</td><td>DINO</td><td>A,B,C</td><td></td><td>sub-sentence</td><td>✓</td><td>zero-shot</td><td>zero-shot</td><td>zero-shot</td><td>zero-shot</td></tr></table>",
414
+ "bbox": [
415
+ 215,
416
+ 265,
417
+ 787,
418
+ 377
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "Table 1: A comparison of previous open-set object detectors. Our summarization is based on the experiments in their paper, but not the ability to extend their models to other tasks. It is worth noting that some related works may not (only) be designed for the open-set object detection initially, like MDETR [17] and GLIPv2 [57], but we list them here for a comprehensive comparison with existing work. We use the term \"partial label\" for the settings, where models are trained on partial data (e.g. base categories) and evaluated on other cases. [55]",
425
+ "bbox": [
426
+ 212,
427
+ 387,
428
+ 789,
429
+ 486
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "2 Related Work",
436
+ "text_level": 1,
437
+ "bbox": [
438
+ 215,
439
+ 532,
440
+ 387,
441
+ 549
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Detection Transformers. Grounding DINO is built upon the DETR-like model DINO [56], which is an end-to-end Transformer-based detector. DETR was first proposed in [2] and then has been improved from many directions [4, 5, 12, 16, 32, 47, 63] in the past few years. DAB-DETR [30] introduces anchor boxes as DETR queries for more accurate box prediction. DN-DETR [23] proposes a query-denoising approach to stabilizing the bipartite matching. DINO [56] further develops several techniques including contrastive de-noising and sets a new record on the COCO object detection benchmark. However, such detectors mainly focus on closed-set detection and are difficult to generalize to novel classes because of the limited pre-defined categories.",
448
+ "bbox": [
449
+ 212,
450
+ 566,
451
+ 787,
452
+ 718
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "Open-Set Object Detection. Open-set object detection is trained using existing bounding box annotations and aims at detecting arbitrary classes with the help of language generalization. OV-DETR [55] uses image and text embedding encoded by a CLIP model as queries to decode the category-specified boxes in the DETR framework [2]. ViLD [13] distills knowledge from a CLIP teacher model into a R-CNN-like detector so that the learned region embeddings contain the semantics of language. GLIP [11] formulates object detection as a grounding problem and leverages additional grounding data to help learn aligned semantics",
459
+ "bbox": [
460
+ 212,
461
+ 719,
462
+ 787,
463
+ 840
464
+ ],
465
+ "page_idx": 3
466
+ },
467
+ {
468
+ "type": "page_number",
469
+ "text": "4",
470
+ "bbox": [
471
+ 217,
472
+ 114,
473
+ 228,
474
+ 126
475
+ ],
476
+ "page_idx": 3
477
+ },
478
+ {
479
+ "type": "header",
480
+ "text": "S. Liu et al.",
481
+ "bbox": [
482
+ 271,
483
+ 114,
484
+ 352,
485
+ 127
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "image",
491
+ "img_path": "images/b6c23d7cce6c12675e78f340ca112ed4a788a4a065249feaf48fdf541f623ea3.jpg",
492
+ "image_caption": [
493
+ "Fig. 3: The framework of Grounding DINO. We present the overall framework, a feature enhancer layer, and a decoder layer in block 1, block 2, and block 3, respectively."
494
+ ],
495
+ "image_footnote": [],
496
+ "bbox": [
497
+ 217,
498
+ 143,
499
+ 509,
500
+ 449
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "image",
506
+ "img_path": "images/356f672f279383c36dd20786faaeff98c4811b03320fa55f353ee2dae75a5f18.jpg",
507
+ "image_caption": [],
508
+ "image_footnote": [],
509
+ "bbox": [
510
+ 514,
511
+ 143,
512
+ 787,
513
+ 448
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "at phrase and region levels. It shows that such a formulation can even achieve stronger performance on fully-supervised detection benchmarks. DetCLIP [51] involves large-scale image captioning datasets and uses the generated pseudo labels to expand the knowledge database. The generated pseudo labels effectively help extend the generalization ability.",
520
+ "bbox": [
521
+ 212,
522
+ 515,
523
+ 787,
524
+ 590
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "However, previous works only fuse multi-modal information in partial phases, which may lead to sub-optimal language generalization ability. For example, GLIP only considers fusion in the feature enhancement (phase A) and OV-DETR only injects language information at the decoder inputs (phase B). Moreover, the REC task is normally overlooked in evaluation, which is an important scenario for open-set detection. We compare our model with other open-set methods in Table 1.",
531
+ "bbox": [
532
+ 212,
533
+ 590,
534
+ 787,
535
+ 696
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "3 Grounding DINO",
542
+ "text_level": 1,
543
+ "bbox": [
544
+ 215,
545
+ 718,
546
+ 423,
547
+ 734
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "Grounding DINO outputs multiple pairs of object boxes and noun phrases for a given (Image, Text) pair. For example, as shown in Fig. 3, the model locates a cat and a table from the input image and extracts word cat and table from the input text as corresponding labels. Both object detection and REC tasks can be aligned with the pipeline. Following GLIP [24], we concatenate all category names as input texts for object detection tasks. REC requires a bounding box for",
554
+ "bbox": [
555
+ 212,
556
+ 750,
557
+ 787,
558
+ 840
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "header",
564
+ "text": "Grounding DINO",
565
+ "bbox": [
566
+ 612,
567
+ 114,
568
+ 730,
569
+ 128
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "page_number",
575
+ "text": "5",
576
+ "bbox": [
577
+ 774,
578
+ 116,
579
+ 784,
580
+ 126
581
+ ],
582
+ "page_idx": 4
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "each text input. We use the output object with the largest scores as the output for the REC task.",
587
+ "bbox": [
588
+ 212,
589
+ 146,
590
+ 782,
591
+ 175
592
+ ],
593
+ "page_idx": 5
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "Grounding DINO is a dual-encoder-single-decoder architecture. It contains an image backbone for image feature extraction, a text backbone for text feature extraction, a feature enhancer for image and text feature fusion (Sec. 3.1), a language-guided query selection module for query initialization (Sec. 3.2), and a cross-modality decoder for box refinement (Sec. 3.3).",
598
+ "bbox": [
599
+ 212,
600
+ 176,
601
+ 784,
602
+ 251
603
+ ],
604
+ "page_idx": 5
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "For each (Image, Text) pair, we first extract vanilla image features and vanilla text features using an image backbone and a text backbone, respectively. The two vanilla features are fed into a feature enhancer module for cross-modality feature fusion. After obtaining cross-modality text and image features, we use a language-guided query selection module to select cross-modality queries from image features. Like the object queries in most DETR-like models, these cross-modality queries will be fed into a cross-modality decoder to probe desired features from the two modal features and update themselves. The output queries of the last decoder layer will be used to predict object boxes and extract corresponding phrases.",
609
+ "bbox": [
610
+ 212,
611
+ 252,
612
+ 785,
613
+ 402
614
+ ],
615
+ "page_idx": 5
616
+ },
617
+ {
618
+ "type": "image",
619
+ "img_path": "images/21d02da1dd367602577f5e5b21911ab9991111c5be4e2ad09b473132e1095bac.jpg",
620
+ "image_caption": [
621
+ "Fig. 4: Comparisons of text representations."
622
+ ],
623
+ "image_footnote": [],
624
+ "bbox": [
625
+ 302,
626
+ 419,
627
+ 702,
628
+ 513
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "3.1 Feature Extraction and Enhancer",
635
+ "text_level": 1,
636
+ "bbox": [
637
+ 214,
638
+ 575,
639
+ 537,
640
+ 589
641
+ ],
642
+ "page_idx": 5
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "Given an (Image, Text) pair, we extract multi-scale image features with an image backbone like Swin Transformer [31], and text features with a text backbone like BERT [7]. Following previous DETR-like detectors [56,63], multi-scale features are extracted from the outputs of different blocks. After extracting vanilla image and text features, we fed them into a feature enhancer for cross-modality feature fusion. The feature enhancer includes multiple feature enhancer layers. We illustrate a feature enhancer layer in Fig. 3 block 2. We leverage the Deformable self-attention to enhance image features and the vanilla self-attention for text feature enhancers. Inspired by GLIP [24], we add an image-to-text and a text-to-image cross-attention modules for feature fusion. These modules help align features of different modalities.",
647
+ "bbox": [
648
+ 212,
649
+ 599,
650
+ 787,
651
+ 765
652
+ ],
653
+ "page_idx": 5
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "3.2 Language-Guided Query Selection",
658
+ "text_level": 1,
659
+ "bbox": [
660
+ 214,
661
+ 785,
662
+ 542,
663
+ 801
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "Grounding DINO aims to detect objects from an image specified by an input text. To effectively leverage the input text to guide object detection, we design a",
670
+ "bbox": [
671
+ 212,
672
+ 809,
673
+ 785,
674
+ 839
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "page_number",
680
+ "text": "6",
681
+ "bbox": [
682
+ 217,
683
+ 114,
684
+ 228,
685
+ 126
686
+ ],
687
+ "page_idx": 5
688
+ },
689
+ {
690
+ "type": "header",
691
+ "text": "S. Liu et al.",
692
+ "bbox": [
693
+ 271,
694
+ 114,
695
+ 352,
696
+ 127
697
+ ],
698
+ "page_idx": 5
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "language-guided query selection module to select features that are more relevant to the input text as decoder queries.",
703
+ "bbox": [
704
+ 212,
705
+ 146,
706
+ 782,
707
+ 176
708
+ ],
709
+ "page_idx": 6
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "Let's denote the image feature as $\\mathbf{X}_I \\in \\mathbb{R}^{N_I \\times d}$ and the text features as $\\mathbf{X}_T \\in \\mathbb{R}^{N_T \\times d}$ . Here, $N_I$ represents the number of image tokens, $N_T$ indicates the number of text tokens, and $d$ corresponds to the feature dimension. In our experiments, we specifically utilize a feature dimension of $d = 256$ . Typically, in our models, the value of $N_I$ exceeds 10,000, while $N_T$ remains below 256. Our objective is to extract $N_q$ queries from the encoder's image features to be used as inputs for the decoder. In alignment with the DINO method, we set $N_q$ to be 900. The top $N_q$ query indices for the image feature, denoted as $\\mathbf{I}_{N_q}$ , are selected using the following expression:",
714
+ "bbox": [
715
+ 212,
716
+ 176,
717
+ 787,
718
+ 313
719
+ ],
720
+ "page_idx": 6
721
+ },
722
+ {
723
+ "type": "equation",
724
+ "text": "\n$$\n\\mathbf {I} _ {N _ {q}} = \\operatorname {T o p} _ {N _ {q}} (\\operatorname {M a x} ^ {(- 1)} (\\mathbf {X} _ {I} \\mathbf {X} _ {T} ^ {\\intercal})). \\tag {1}\n$$\n",
725
+ "text_format": "latex",
726
+ "bbox": [
727
+ 392,
728
+ 325,
729
+ 787,
730
+ 347
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "In this expression, $\\mathrm{Top}_{N_q}$ represents the operation to pick the top $N_{q}$ indices. The function $\\mathbf{Max}^{(-1)}$ executes the max operation along the $-1$ dimension, and the symbol $\\daleth$ denotes matrix transposition. We present the query selection process in Algorithm 1 in PyTorch style. The language-guided query selection module outputs $N_{q}$ indices. We can extract features based on the selected indices to initialize queries. Following DINO [56], we use mixed query selection to initialize decoder queries. Each decoder query contains two parts: content part and positional part [32], respectively. We formulate the positional part as dynamic anchor boxes [30], which are initialized with encoder outputs. The other part, the content queries, are set to be learnable during training.",
737
+ "bbox": [
738
+ 212,
739
+ 349,
740
+ 787,
741
+ 505
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "3.3 Cross-Modality Decoder",
748
+ "text_level": 1,
749
+ "bbox": [
750
+ 214,
751
+ 526,
752
+ 465,
753
+ 541
754
+ ],
755
+ "page_idx": 6
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "We develop a cross-modality decoder to combine image and text modality features, as shown in Fig. 3 block 3. Each cross-modality query is fed into a self-attention layer, an image cross-attention layer to combine image features, a text cross-attention layer to combine text features, and an FFN layer in each cross-modality decoder layer. Each decoder layer has an extra text cross-attention layer compared with the DINO decoder layer, as we need to inject text information into queries for better modality alignment.",
760
+ "bbox": [
761
+ 212,
762
+ 551,
763
+ 787,
764
+ 657
765
+ ],
766
+ "page_idx": 6
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "3.4 Sub-Sentence Level Text Feature",
771
+ "text_level": 1,
772
+ "bbox": [
773
+ 214,
774
+ 679,
775
+ 532,
776
+ 694
777
+ ],
778
+ "page_idx": 6
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Two kinds of text prompts are explored in previous works, which we named as sentence level representation and word level representation, as shown in Fig. 4. Sentence level representation [34,51] encodes a whole sentence to one feature. If some sentences in phrase grounding data have multiple phrases, it extracts these phrases and discards other words. In this way, it removes the influence between words while losing fine-grained information in sentences. Word level representation [11,17] enables encoding multiple category names with one forward but introduces unnecessary dependencies among categories, especially when the input text is a concatenation of multiple category names in an arbitrary order.",
783
+ "bbox": [
784
+ 212,
785
+ 704,
786
+ 787,
787
+ 840
788
+ ],
789
+ "page_idx": 6
790
+ },
791
+ {
792
+ "type": "header",
793
+ "text": "Grounding DINO",
794
+ "bbox": [
795
+ 612,
796
+ 114,
797
+ 730,
798
+ 128
799
+ ],
800
+ "page_idx": 6
801
+ },
802
+ {
803
+ "type": "page_number",
804
+ "text": "7",
805
+ "bbox": [
806
+ 774,
807
+ 114,
808
+ 785,
809
+ 126
810
+ ],
811
+ "page_idx": 6
812
+ },
813
+ {
814
+ "type": "table",
815
+ "img_path": "images/d9fd42237b0daf4fee0a659b8f994e49390d950b2a5f48e3f9824633a352a1fc.jpg",
816
+ "table_caption": [],
817
+ "table_footnote": [],
818
+ "table_body": "<table><tr><td>Model</td><td>Backbone</td><td>Pre-Training Data</td><td>Zero-Shot 2017val</td><td>Fine-Tuning 2017val/test-dev</td></tr><tr><td>Faster R-CNN</td><td>RN50-FPN</td><td>-</td><td>-</td><td>40.2 / -</td></tr><tr><td>Faster R-CNN</td><td>RN101-FPN</td><td>-</td><td>-</td><td>42.0 / -</td></tr><tr><td>DyHead-T [5]</td><td>Swin-T</td><td>-</td><td>-</td><td>49.7 / -</td></tr><tr><td>DyHead-L [5]</td><td>Swin-L</td><td>-</td><td>-</td><td>58.4 / 58.7</td></tr><tr><td>DyHead-L [5]</td><td>Swin-L</td><td>O365,ImageNet21K</td><td>-</td><td>60.3 / 60.6</td></tr><tr><td>SoftTeacher [49]</td><td>Swin-L</td><td>O365,SS-COCO</td><td>-</td><td>60.7 / 61.3</td></tr><tr><td>DINO(Swin-L) [56]</td><td>Swin-L</td><td>O365</td><td>-</td><td>62.5 / -</td></tr><tr><td>DyHead-T† [5]</td><td>Swin-T</td><td>O365</td><td>43.6</td><td>53.3 / -</td></tr><tr><td>GLIP-T (B) [24]</td><td>Swin-T</td><td>O365</td><td>44.9</td><td>53.8 / -</td></tr><tr><td>GLIP-T (C) [24]</td><td>Swin-T</td><td>O365,GoldG</td><td>46.7</td><td>55.1 / -</td></tr><tr><td>GLIP-L [24]</td><td>Swin-L</td><td>FourODs,GoldG,Cap24M</td><td>49.8</td><td>60.8 / 61.0</td></tr><tr><td>DINO(Swin-T)† [56]</td><td>Swin-T</td><td>O365</td><td>46.2</td><td>56.9 / -</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365</td><td>46.7</td><td>56.9 / -</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG</td><td>48.1</td><td>57.1 / -</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG,Cap4M</td><td>48.4</td><td>57.2 / -</td></tr><tr><td>Grounding DINO L (Ours)</td><td>Swin-L</td><td>O365,OI [18],GoldG</td><td>52.5</td><td>62.6 / 62.7 (63.0 / 63.0)*</td></tr><tr><td>Grounding DINO L (Ours)</td><td>Swin-L</td><td>O365,OI,GoldG,Cap4M,COCO,RefC</td><td>60.7‡</td><td>62.6 / -</td></tr></table>",
819
+ "bbox": [
820
+ 218,
821
+ 143,
822
+ 782,
823
+ 351
824
+ ],
825
+ "page_idx": 7
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "Table 2: Zero-shot domain transfer and fine-tuning on COCO. * The results in brackets are trained with $1.5 \\times$ image sizes, i.e., with a maximum image size of 2000. †The models map a subset of O365 categories to COCO for zero-shot evaluations. ‡This is not a real zero-shot performance as we add COCO data during model training. We list the result here for a reference.",
830
+ "bbox": [
831
+ 212,
832
+ 354,
833
+ 787,
834
+ 424
835
+ ],
836
+ "page_idx": 7
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "As shown in Fig. 4 (b), some unrelated words interact during attention. To avoid unwanted word interactions, we introduce attention masks to block attentions among unrelated category names, named \"sub-sentence\" level representation. It eliminates the influence between different category names while keeping per-word features for fine-grained understanding.",
841
+ "bbox": [
842
+ 212,
843
+ 455,
844
+ 787,
845
+ 532
846
+ ],
847
+ "page_idx": 7
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "3.5 Loss Function",
852
+ "text_level": 1,
853
+ "bbox": [
854
+ 215,
855
+ 546,
856
+ 377,
857
+ 561
858
+ ],
859
+ "page_idx": 7
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Following previous DETR-like works [2, 23, 30, 32, 56, 63], we use the L1 loss and the GIOU [39] loss for bounding box regressions. We follow GLIP [24] and use contrastive loss between predicted objects and language tokens for classification. Specifically, we dot product each query with text features to predict logits for each text token and then compute focal loss [27] for each logit. Box regression and classification costs are first used for bipartite matching between predictions and ground truths. We then calculate final losses between ground truths and matched predictions with the same loss components. Following DETR-like models, we add auxiliary loss after each decoder layer and after the encoder outputs.",
864
+ "bbox": [
865
+ 212,
866
+ 571,
867
+ 787,
868
+ 709
869
+ ],
870
+ "page_idx": 7
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "4 Experiments",
875
+ "text_level": 1,
876
+ "bbox": [
877
+ 215,
878
+ 732,
879
+ 375,
880
+ 750
881
+ ],
882
+ "page_idx": 7
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "We conduct extensive experiments on three settings: a closed-set setting on the COCO detection benchmark (Sec. C.2), an open-set setting on zero-shot COCO, LVIS, and ODinW (Sec. 4.2), and a referring detection setting on RefCOCO $/ + / \\mathrm{g}$ (Sec. 4.3). Ablations are then conducted to show the effectiveness of our model design (Sec. 4.5). We also explore a way to transfer a well-trained DINO to the",
887
+ "bbox": [
888
+ 212,
889
+ 763,
890
+ 787,
891
+ 840
892
+ ],
893
+ "page_idx": 7
894
+ },
895
+ {
896
+ "type": "page_number",
897
+ "text": "8",
898
+ "bbox": [
899
+ 217,
900
+ 114,
901
+ 228,
902
+ 126
903
+ ],
904
+ "page_idx": 7
905
+ },
906
+ {
907
+ "type": "header",
908
+ "text": "S. Liu et al.",
909
+ "bbox": [
910
+ 271,
911
+ 114,
912
+ 352,
913
+ 126
914
+ ],
915
+ "page_idx": 7
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "open-set scenario by training a few plug-in modules in Sec. C.1. The test of our model efficiency is presented in Sec. C.4.",
920
+ "bbox": [
921
+ 212,
922
+ 146,
923
+ 787,
924
+ 176
925
+ ],
926
+ "page_idx": 8
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "4.1 Implementation Details",
931
+ "text_level": 1,
932
+ "bbox": [
933
+ 214,
934
+ 199,
935
+ 457,
936
+ 214
937
+ ],
938
+ "page_idx": 8
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "We trained two model variants, Grounding DINO T with Swin-T [31], and Grounding DINO L with Swin-L [31] as an image backbone, respectively. We leveraged BERT-base [7] from Hugging Face [48] as text backbones. As we focus more on the model performance on novel classes, we list zero-shot transfer and referring detection results in the main text.",
943
+ "bbox": [
944
+ 212,
945
+ 224,
946
+ 787,
947
+ 299
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "By default, we use 900 queries in our model following DINO. We set the maximum text token number as 256. Using BERT as our text encoder, we follow BERT to tokenize texts with a BPE scheme [41]. We use six feature enhancer layers in the feature enhancer module. The cross-modality decoder is composed of six decoder layers as well. We leverage deformable attention [63] in image cross-attention layers.",
954
+ "bbox": [
955
+ 212,
956
+ 300,
957
+ 787,
958
+ 390
959
+ ],
960
+ "page_idx": 8
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Both matching costs and final losses include classification losses (or contrastive losses), box L1 losses, and GIOU [39] losses. Following DINO, we set the weight of classification costs, box L1 costs, and GIOU costs as 2.0, 5.0, and 2.0, respectively, during Hungarian matching. The corresponding loss weights are 1.0, 5.0, and 2.0 in the final loss calculation.",
965
+ "bbox": [
966
+ 212,
967
+ 391,
968
+ 787,
969
+ 465
970
+ ],
971
+ "page_idx": 8
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Our Swin Transformer Tiny models are trained on 16 Nvidia V100 GPUs with a total batch size of 32. We extract three image feature scales, from $8 \\times$ to $32 \\times$ . It is named \"4scale\" in DINO since we downsample the $32 \\times$ feature map to $64 \\times$ as an extra feature scale. For the model with Swin Transformer Large, we extract four image feature scales from backbones, from $4 \\times$ to $32 \\times$ . The model is trained on 64 Nvidia A100 GPUs with a total batch size of 64.",
976
+ "bbox": [
977
+ 212,
978
+ 465,
979
+ 787,
980
+ 556
981
+ ],
982
+ "page_idx": 8
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "4.2 Zero-Shot Transfer of Grounding DINO",
987
+ "text_level": 1,
988
+ "bbox": [
989
+ 214,
990
+ 579,
991
+ 589,
992
+ 595
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "In this setting, we pre-train models on large-scale datasets and directly evaluate models on new datasets. We also list some fine-tuned results for a more thorough comparison of our model with prior works.",
999
+ "bbox": [
1000
+ 212,
1001
+ 604,
1002
+ 785,
1003
+ 651
1004
+ ],
1005
+ "page_idx": 8
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "COCO Benchmark We compare Grounding DINO with GLIP and DINO in Table 2. We pre-train models on large-scale datasets and directly evaluate our model on the COCO benchmark. As the O365 dataset [42] has (nearly $^4$ ) covered all categories in COCO, we evaluate an O365 pre-trined DINO on COCO as a zero-shot baseline. The result shows that DINO performs better on the COCO zero-shot transfer than DyHead. Grounding DINO outperforms all previous models on the zero-shot transfer setting, with $+0.5\\mathrm{AP}$ and $+1.8\\mathrm{AP}$ compared with DINO and GLIP under the same setting. Grounding data is still helpful for Grounding DINO, introducing more than 1AP (48.1 vs. 46.7) on the zero-shot",
1010
+ "bbox": [
1011
+ 212,
1012
+ 665,
1013
+ 787,
1014
+ 801
1015
+ ],
1016
+ "page_idx": 8
1017
+ },
1018
+ {
1019
+ "type": "header",
1020
+ "text": "Grounding DINO",
1021
+ "bbox": [
1022
+ 612,
1023
+ 114,
1024
+ 730,
1025
+ 128
1026
+ ],
1027
+ "page_idx": 8
1028
+ },
1029
+ {
1030
+ "type": "page_number",
1031
+ "text": "9",
1032
+ "bbox": [
1033
+ 774,
1034
+ 114,
1035
+ 785,
1036
+ 126
1037
+ ],
1038
+ "page_idx": 8
1039
+ },
1040
+ {
1041
+ "type": "page_footnote",
1042
+ "text": "It is not an exact mapping between O365 and COCO categories. We made some approximations during evaluation.",
1043
+ "bbox": [
1044
+ 217,
1045
+ 810,
1046
+ 787,
1047
+ 839
1048
+ ],
1049
+ "page_idx": 8
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "transfer setting. With stronger backbones and larger data, Grounding DINO sets a new record of 52.5 AP on the COCO object detection benchmark without seeing any COCO images during training. Grounding DINO obtains a 62.6 AP on COCO minimal, outperforming DINO's 62.5 AP. When enlarging the input images by $1.5 \\times$ , the benefits reduce. We suspect that the text branch enlarges the gap between models with different input images. Even though the performance plateaus with larger input size, Grounding DINO gets an impressive 63.0 AP on COCO test-dev with fine-tuning on the COCO dataset (See the number in brackets of Table 2).",
1054
+ "bbox": [
1055
+ 212,
1056
+ 146,
1057
+ 787,
1058
+ 282
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "LVIS Benchmark LVIS [14] is a dataset for long-tail objects. It contains more than 1000 categories for evaluation. We use LVIS as a downstream task to test the zero-shot abilities of our model. We use GLIP and DetCLIPv2 as baselines for our models. The results are shown in Table 3.",
1065
+ "bbox": [
1066
+ 212,
1067
+ 295,
1068
+ 787,
1069
+ 354
1070
+ ],
1071
+ "page_idx": 9
1072
+ },
1073
+ {
1074
+ "type": "table",
1075
+ "img_path": "images/ffeb04a9438a7b85bcdc3bf86c7157ee6b7e282f44cd514dd940cc43cfdee660.jpg",
1076
+ "table_caption": [],
1077
+ "table_footnote": [],
1078
+ "table_body": "<table><tr><td>Model</td><td>Backbone</td><td>Pre-Training Data</td><td>AP</td><td>MiniVal [17]APr/APc/APf</td></tr><tr><td colspan=\"5\">Zero-Shot Setting</td></tr><tr><td>GLIP-T (C)</td><td>Swin-T</td><td>O365,GoldG</td><td>24.9</td><td>17.7/19.5/31.0</td></tr><tr><td>GLIP-T</td><td>Swin-T</td><td>O365,GoldG,Cap4M</td><td>26.0</td><td>20.8/21.4/31.0</td></tr><tr><td>DetCLIPv2</td><td>Swin-T</td><td>O365,GoldG,CC15M</td><td>40.4</td><td>36.0/41.7/40.0</td></tr><tr><td>Grounding DINO T</td><td>Swin-T</td><td>O365,GoldG</td><td>25.6</td><td>14.4/19.6/32.2</td></tr><tr><td>Grounding DINO T</td><td>Swin-T</td><td>O365,GoldG,Cap4M</td><td>27.4</td><td>18.1/23.3/32.7</td></tr><tr><td>Grounding DINO L</td><td>Swin-L</td><td>O365,OI,GoldG,Cap4M,COCO,RefC</td><td>33.9</td><td>22.2/30.7/38.8</td></tr><tr><td colspan=\"5\">Fine-Tune Setting</td></tr><tr><td>MDETR</td><td>RN101</td><td>GoldG,RefC</td><td>24.2</td><td>20.9/24.9/24.3</td></tr><tr><td>Mask R-CNN</td><td>RN101</td><td>-</td><td>33.3</td><td>26.3/34.0/33.9</td></tr><tr><td>DetCLIPv2 [50]</td><td>Swin-T</td><td>O365,GoldG,CC15M</td><td>50.7</td><td>44.3/52.4/50.3</td></tr><tr><td>Grounding DINO T</td><td>Swin-T</td><td>O365,GoldG</td><td>52.1</td><td>35.4/51.3/55.7</td></tr></table>",
1079
+ "bbox": [
1080
+ 303,
1081
+ 378,
1082
+ 697,
1083
+ 555
1084
+ ],
1085
+ "page_idx": 9
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Table 3: Model results on LVIS.",
1090
+ "bbox": [
1091
+ 388,
1092
+ 566,
1093
+ 611,
1094
+ 579
1095
+ ],
1096
+ "page_idx": 9
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "We found two interesting phenomena in the results. First, Grounding DINO works better than common objects than GLIP, but worse on rare categories. We reviewed DETR-like models on LVIS and noted these models often exhibit lower rare category AP despite similar overall AP, like Table 2 of [8] and Table 6 of [17]. To our knowledge, no existing DETR-like models effectively address the rarity challenge in LVIS without extra training data, which may be a characteristic limitation of the architecture.",
1101
+ "bbox": [
1102
+ 212,
1103
+ 598,
1104
+ 787,
1105
+ 702
1106
+ ],
1107
+ "page_idx": 9
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "The other phenomenon is that Grounding DINO has larger gains with more data than GLIP. For example, Grounding DINO introduces $+1.8$ AP gains with the caption data Cap4M, whereas GLIP has only $+1.1$ AP. We believe that Grounding DINO has better scalability compared with GLIP. A larger-scale training will be left as our future work.",
1112
+ "bbox": [
1113
+ 212,
1114
+ 704,
1115
+ 787,
1116
+ 779
1117
+ ],
1118
+ "page_idx": 9
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Although achieving better results than GLIP, we found that Grounding DINO is inferior to DetCLIPv2, which is trained on a larger scale data. This performance difference might be attributed to the disparity in data distribution between the training dataset and the LVIS dataset.",
1123
+ "bbox": [
1124
+ 212,
1125
+ 779,
1126
+ 787,
1127
+ 839
1128
+ ],
1129
+ "page_idx": 9
1130
+ },
1131
+ {
1132
+ "type": "page_number",
1133
+ "text": "10",
1134
+ "bbox": [
1135
+ 217,
1136
+ 114,
1137
+ 235,
1138
+ 126
1139
+ ],
1140
+ "page_idx": 9
1141
+ },
1142
+ {
1143
+ "type": "header",
1144
+ "text": "S. Liu et al.",
1145
+ "bbox": [
1146
+ 271,
1147
+ 114,
1148
+ 351,
1149
+ 126
1150
+ ],
1151
+ "page_idx": 9
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "To unveil the full potential of Grounding DINO, we fine-tuned it on the LVIS dataset. Table 3 highlights the commendable capability of our model. Remarkably, despite being pre-trained only on the O365 and GoldG datasets, Grounding DINO outperforms DetCLIPv2-T by a margin of 1.5 AP. This result shows that Grounding DINO might have learned a better object-level representation which helps yield a better performance after fine-tuning (aligning with the target dataset). In our future work, we will perform more studies, including varying the semantic concept coverage of the training data and increasing the scale of the training data, to further improve the zero-shot generalization performance.",
1156
+ "bbox": [
1157
+ 212,
1158
+ 146,
1159
+ 787,
1160
+ 282
1161
+ ],
1162
+ "page_idx": 10
1163
+ },
1164
+ {
1165
+ "type": "table",
1166
+ "img_path": "images/3ae91486ff1feb3c3de722afef9d2640a87be968a5b8520b440a026ed10c642d.jpg",
1167
+ "table_caption": [],
1168
+ "table_footnote": [],
1169
+ "table_body": "<table><tr><td>Model</td><td>Language Input</td><td>Backbone</td><td>Model Size</td><td>Pre-Training Data</td><td>Test\nAPrequency</td><td>APmedian</td></tr><tr><td colspan=\"7\">Zero-Shot Setting</td></tr><tr><td>MDETR [17]</td><td>✓</td><td>ENB5 [45]</td><td>169M</td><td>GoldG,RefC</td><td>10.7</td><td>3.0</td></tr><tr><td>OWL-ViT [34]</td><td>✓</td><td>ViT L/14(CLIP)</td><td>&gt;1243M</td><td>O365, VG</td><td>18.8</td><td>9.8</td></tr><tr><td>GLIP-T [24]</td><td>✓</td><td>Swin-T</td><td>232M</td><td>O365,GoldG,Cap4M</td><td>19.6</td><td>5.1</td></tr><tr><td>OmDet [59]</td><td>✓</td><td>ConvNeXt-B</td><td>230M</td><td>COCO,O365,LVIS,PhraseCut</td><td>19.7</td><td>10.8</td></tr><tr><td>GLIPv2-T [58]</td><td>✓</td><td>Swin-T</td><td>232M</td><td>O365,GoldG,Cap4M</td><td>22.3</td><td>8.9</td></tr><tr><td>DetCLIP [51]</td><td>✓</td><td>Swin-L</td><td>267M</td><td>O365,GoldG,YFCC1M</td><td>24.9</td><td>18.3</td></tr><tr><td>Florence [53]</td><td>✓</td><td>CoSwinH</td><td>≈841M</td><td>FLD900M,O365,GoldG</td><td>25.8</td><td>14.3</td></tr><tr><td>Grounding DINO T(Ours)</td><td>✓</td><td>Swin-T</td><td>172M</td><td>O365,GoldG</td><td>20.0</td><td>9.5</td></tr><tr><td>Grounding DINO T(Ours)</td><td>✓</td><td>Swin-T</td><td>172M</td><td>O365,GoldG,Cap4M</td><td>22.3</td><td>11.9</td></tr><tr><td>Grounding DINO L(Ours)</td><td>✓</td><td>Swin-L</td><td>341M</td><td>O365,O1,GoldG,Cap4M,COCO,RefC</td><td>26.1</td><td>18.4</td></tr><tr><td colspan=\"7\">Few-Shot Setting</td></tr><tr><td>DyHead-T [5]</td><td>✗</td><td>Swin-T</td><td>≈100M</td><td>O365</td><td>37.5</td><td>36.7</td></tr><tr><td>GLIP-T [24]</td><td>✓</td><td>Swin-T</td><td>232M</td><td>O365,GoldG,Cap4M</td><td>38.9</td><td>33.7</td></tr><tr><td>DINO-Swin-T [56]</td><td>✗</td><td>Swin-T</td><td>49M</td><td>O365</td><td>41.2</td><td>41.1</td></tr><tr><td>OmDet [59]</td><td>✓</td><td>ConvNeXt-B</td><td>230M</td><td>COCO,O365,LVIS,PhraseCut</td><td>42.4</td><td>41.7</td></tr><tr><td>Grounding DINO T(Ours)</td><td>✓</td><td>Swin-T</td><td>172M</td><td>O365,GoldG</td><td>46.4</td><td>51.1</td></tr><tr><td colspan=\"7\">Full-Shot Setting</td></tr><tr><td>GLIP-T [24]</td><td>✓</td><td>Swin-T</td><td>232M</td><td>O365,GoldG,Cap4M</td><td>62.6</td><td>62.1</td></tr><tr><td>DyHead-T [5]</td><td>✗</td><td>Swin-T</td><td>≈100M</td><td>O365</td><td>63.2</td><td>64.9</td></tr><tr><td>DINO-Swin-T [56]</td><td>✗</td><td>Swin-T</td><td>49M</td><td>O365</td><td>66.7</td><td>68.5</td></tr><tr><td>OmDet [59]</td><td>✓</td><td>ConvNeXt-B</td><td>230M</td><td>COCO,O365,LVIS,PhraseCut</td><td>67.1</td><td>71.2</td></tr><tr><td>DINO-Swin-L [56]</td><td>✗</td><td>Swin-L</td><td>218M</td><td>O365</td><td>68.8</td><td>70.7</td></tr><tr><td>Grounding DINO T(Ours)</td><td>✓</td><td>Swin-T</td><td>172M</td><td>O365,GoldG</td><td>70.7</td><td>76.2</td></tr></table>",
1170
+ "bbox": [
1171
+ 218,
1172
+ 309,
1173
+ 784,
1174
+ 569
1175
+ ],
1176
+ "page_idx": 10
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Table 4: Model results on the ODinW benchmark.",
1181
+ "bbox": [
1182
+ 328,
1183
+ 578,
1184
+ 671,
1185
+ 592
1186
+ ],
1187
+ "page_idx": 10
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "ODinW Benchmark ODinW (Object Detection in the Wild) [22] is a more challenging benchmark to test model performance under real-world scenarios. It collects more than 35 datasets for evaluation. We report three settings, zero-shot, few-shot, and full-shot results in Table 4. Grounding DINO performs well on this benchmark. With only O365 and GoldG for pre-train, Grounding DINO T outperforms DINO on few-shot and full-shot settings. Impressively, Grounding DINO with a Swin-T backbone outperforms DINO with Swin-L on the full-shot setting.",
1192
+ "bbox": [
1193
+ 212,
1194
+ 612,
1195
+ 787,
1196
+ 733
1197
+ ],
1198
+ "page_idx": 10
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Grounding DINO outperforms GLIP under the same backbone for the zero-shot setting. Grounding DINO and GLIPv2-T show similar $AP_{average}$ . However, a key distinction lies in the $AP_{median}$ , where Grounding DINO significantly outperforms GLIPv2-T (11.9 vs 8.9). This suggests that while GLIPv2 may exhibit larger performance variance across different datasets, Grounding DINO maintains a more consistent performance level. GLIPv2 incorporates advanced techniques like masked text training and cross-instance contrastive learning, making it",
1203
+ "bbox": [
1204
+ 212,
1205
+ 734,
1206
+ 787,
1207
+ 840
1208
+ ],
1209
+ "page_idx": 10
1210
+ },
1211
+ {
1212
+ "type": "header",
1213
+ "text": "Grounding DINO",
1214
+ "bbox": [
1215
+ 612,
1216
+ 114,
1217
+ 730,
1218
+ 128
1219
+ ],
1220
+ "page_idx": 10
1221
+ },
1222
+ {
1223
+ "type": "page_number",
1224
+ "text": "11",
1225
+ "bbox": [
1226
+ 767,
1227
+ 114,
1228
+ 782,
1229
+ 126
1230
+ ],
1231
+ "page_idx": 10
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "more complex than our Grounding DINO model. Moreover, our model is more compact (172M parameters) compared to GLIPv2 (232M parameters). These factors combined—performance consistency, model complexity, and size—should address concerns about our model's capability in true open-set scenarios.",
1236
+ "bbox": [
1237
+ 212,
1238
+ 146,
1239
+ 782,
1240
+ 205
1241
+ ],
1242
+ "page_idx": 11
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Grounding DINO L set a new record on ODimW zero-shot with a 26.1 AP, even outperforming the giant Florence models [53]. The results show the generalization and scalability of Grounding DINO.",
1247
+ "bbox": [
1248
+ 212,
1249
+ 207,
1250
+ 782,
1251
+ 252
1252
+ ],
1253
+ "page_idx": 11
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "4.3 Referring Object Detection Settings",
1258
+ "text_level": 1,
1259
+ "bbox": [
1260
+ 214,
1261
+ 270,
1262
+ 560,
1263
+ 286
1264
+ ],
1265
+ "page_idx": 11
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "We further explore our models' performances on the REC task. We leverage GLIP [24] as our baseline. We evaluate the model performance on RefCOCO/+/g directly. The results are shown in Table 5. Grounding DINO outperforms GLIP under the same setting. Nevertheless, both GLIP and Grounding DINO perform not well without REC data. More training data like caption data or larger models help the final performance, but quite minor. After injecting RefCOCO/+/g data into training, Grounding DINO obtains significant gains. The results reveal that most nowadays open-set object detectors need to pay more attention for a more fine-grained detection.",
1270
+ "bbox": [
1271
+ 212,
1272
+ 292,
1273
+ 784,
1274
+ 428
1275
+ ],
1276
+ "page_idx": 11
1277
+ },
1278
+ {
1279
+ "type": "table",
1280
+ "img_path": "images/a0ef0005a48054fed9414e2af05ff207ee1c5dce6f8d3a515c0dcb84ca994ffd.jpg",
1281
+ "table_caption": [],
1282
+ "table_footnote": [],
1283
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Backbone</td><td rowspan=\"2\">Pre-Training Data</td><td rowspan=\"2\">Fine-tuning</td><td colspan=\"3\">RefCOCO</td><td colspan=\"3\">RefCOCO+</td><td colspan=\"2\">RefCOCOg</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>test</td></tr><tr><td>MAntNet [52]</td><td>R101</td><td>None</td><td>✓</td><td>76.65</td><td>81.14</td><td>69.99</td><td>65.33</td><td>71.62</td><td>56.02</td><td>66.58</td><td>67.27</td></tr><tr><td>VGTR [9]</td><td>R101</td><td>None</td><td>✓</td><td>79.20</td><td>82.32</td><td>73.78</td><td>63.91</td><td>70.09</td><td>56.51</td><td>65.73</td><td>67.23</td></tr><tr><td>TransVG [6]</td><td>R101</td><td>None</td><td>✓</td><td>81.02</td><td>82.72</td><td>78.35</td><td>64.82</td><td>70.70</td><td>56.94</td><td>68.67</td><td>67.73</td></tr><tr><td>VILLA_L* [10]</td><td>R101</td><td>CC, SBU, COCO, VG</td><td>✓</td><td>82.39</td><td>87.48</td><td>74.84</td><td>76.17</td><td>81.54</td><td>66.84</td><td>76.18</td><td>76.71</td></tr><tr><td>RefTR [25]</td><td>R101</td><td>VG</td><td>✓</td><td>85.65</td><td>88.73</td><td>81.16</td><td>77.55</td><td>82.26</td><td>68.99</td><td>79.25</td><td>80.01</td></tr><tr><td>MDETR [17]</td><td>R101</td><td>GoldG,RefC</td><td>✓</td><td>86.75</td><td>89.58</td><td>81.41</td><td>79.52</td><td>84.09</td><td>70.62</td><td>81.64</td><td>80.89</td></tr><tr><td>DQ-DETR [44]</td><td>R101</td><td>GoldG,RefC</td><td>✓</td><td>88.63</td><td>91.04</td><td>83.51</td><td>81.66</td><td>86.15</td><td>73.21</td><td>82.76</td><td>83.44</td></tr><tr><td>GLIP-T(B)</td><td>Swin-T</td><td>O365,GoldG</td><td></td><td>49.96</td><td>54.69</td><td>43.06</td><td>49.01</td><td>53.44</td><td>43.42</td><td>65.58</td><td>66.08</td></tr><tr><td>GLIP-T</td><td>Swin-T</td><td>O365,GoldG,Cap4M</td><td></td><td>50.42</td><td>54.30</td><td>43.83</td><td>49.50</td><td>52.78</td><td>44.59</td><td>66.09</td><td>66.89</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG</td><td></td><td>50.41</td><td>57.24</td><td>43.21</td><td>51.40</td><td>57.59</td><td>45.81</td><td>67.46</td><td>67.13</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG,RefC</td><td></td><td>73.98</td><td>74.88</td><td>59.29</td><td>66.81</td><td>69.91</td><td>56.09</td><td>71.06</td><td>72.07</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG,RefC</td><td>✓</td><td>89.19</td><td>91.86</td><td>85.99</td><td>81.09</td><td>87.40</td><td>74.71</td><td>84.15</td><td>84.94</td></tr><tr><td>Grounding DINO L (Ours)*</td><td>Swin-L</td><td>O365,OI,GoldG,Cap4M,COCO,RefC</td><td>✓</td><td>90.56</td><td>93.19</td><td>88.24</td><td>82.75</td><td>88.95</td><td>75.92</td><td>86.13</td><td>87.02</td></tr></table>",
1284
+ "bbox": [
1285
+ 215,
1286
+ 452,
1287
+ 782,
1288
+ 609
1289
+ ],
1290
+ "page_idx": 11
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "Table 5: Top-1 accuracy comparison on the referring expression comprehension task. We mark the best results in bold. All models are trained with a ResNet-101 backbone. We use the notations \"CC\", \"SBU\", \"VG\", \"OI\", \"O365\", and \"YFCC\" for Conceptual Captions [43], SBU Captions [35], Visual Genome [19], OpenImage [21], Objects365 [62], YFCC100M [46] respectively. The term \"RefC\" is used for RefCOCO, RefCOCO+, and RefCOCOg three datasets. * There might be a data leak since COCO includes validation images in RefC. But the annotations of the two datasets are different.",
1295
+ "bbox": [
1296
+ 212,
1297
+ 614,
1298
+ 787,
1299
+ 712
1300
+ ],
1301
+ "page_idx": 11
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "4.4 Effects of RefC and COCO Data",
1306
+ "text_level": 1,
1307
+ "bbox": [
1308
+ 214,
1309
+ 752,
1310
+ 532,
1311
+ 767
1312
+ ],
1313
+ "page_idx": 11
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "We add the $\\mathrm{RefCOCO} / + / \\mathrm{g}$ (we note it as \"RefC\" in tables) and COCO into training in some settings. We explore the influence of these data in Table 6.",
1318
+ "bbox": [
1319
+ 212,
1320
+ 773,
1321
+ 787,
1322
+ 805
1323
+ ],
1324
+ "page_idx": 11
1325
+ },
1326
+ {
1327
+ "type": "page_number",
1328
+ "text": "12",
1329
+ "bbox": [
1330
+ 217,
1331
+ 114,
1332
+ 235,
1333
+ 126
1334
+ ],
1335
+ "page_idx": 11
1336
+ },
1337
+ {
1338
+ "type": "header",
1339
+ "text": "S. Liu et al.",
1340
+ "bbox": [
1341
+ 271,
1342
+ 114,
1343
+ 352,
1344
+ 126
1345
+ ],
1346
+ "page_idx": 11
1347
+ },
1348
+ {
1349
+ "type": "page_footnote",
1350
+ "text": "We used the official released code and checkpoints in https://github.com/microsoft/GLIP.",
1351
+ "bbox": [
1352
+ 217,
1353
+ 809,
1354
+ 787,
1355
+ 839
1356
+ ],
1357
+ "page_idx": 11
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "The results show that RefC helps improve the COCO zero-shot and fine-tuning performance but hurts the LVIS and ODinW results. With COCO introduced, the COCO results are greatly improved. It shows that COCO brings marginal improvements in LVIS and slight decreases on ODinW.",
1362
+ "bbox": [
1363
+ 212,
1364
+ 146,
1365
+ 787,
1366
+ 205
1367
+ ],
1368
+ "page_idx": 12
1369
+ },
1370
+ {
1371
+ "type": "table",
1372
+ "img_path": "images/eaff4f039ae10c75c2a0899c508930a94a6932c3a84fe33625905a617fa878aa.jpg",
1373
+ "table_caption": [],
1374
+ "table_footnote": [],
1375
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Pre-Train</td><td colspan=\"2\">COCO minival</td><td>LVIS minival</td><td>ODinW</td></tr><tr><td>Zero-Shot</td><td>Fine-Tune</td><td>Zero-Shot</td><td>Zero-Shot</td></tr><tr><td>Grounding DINO T</td><td>O365,GoldG</td><td>48.1</td><td>57.1</td><td>25.6</td><td>20.0</td></tr><tr><td>Grounding DINO T</td><td>O365,GoldG,RefC</td><td>48.5</td><td>57.3</td><td>21.9</td><td>17.7</td></tr><tr><td>Grounding DINO T</td><td>O365,GoldG,RefC,COCO</td><td>56.1</td><td>57.5</td><td>22.3</td><td>17.4</td></tr></table>",
1376
+ "bbox": [
1377
+ 297,
1378
+ 232,
1379
+ 699,
1380
+ 282
1381
+ ],
1382
+ "page_idx": 12
1383
+ },
1384
+ {
1385
+ "type": "text",
1386
+ "text": "Table 6: Impacts of RefC and COCO data for open-set settings. All models are trained with a Swin Transformer Tiny backbone.",
1387
+ "bbox": [
1388
+ 212,
1389
+ 289,
1390
+ 785,
1391
+ 316
1392
+ ],
1393
+ "page_idx": 12
1394
+ },
1395
+ {
1396
+ "type": "text",
1397
+ "text": "4.5 Ablations",
1398
+ "text_level": 1,
1399
+ "bbox": [
1400
+ 214,
1401
+ 369,
1402
+ 341,
1403
+ 383
1404
+ ],
1405
+ "page_idx": 12
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "We conduct ablation studies in this section. We propose a tight fusion grounding model for open-set object detection and a sub-sentence level text prompt. To verify the effectiveness of the model design, we remove some fusion blocks for different variants. Results are shown in Table 7. All models are pre-trained on O365 with a Swin-T backbone.",
1410
+ "bbox": [
1411
+ 212,
1412
+ 393,
1413
+ 787,
1414
+ 467
1415
+ ],
1416
+ "page_idx": 12
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "The results show that encoder fusion significantly improves model performance on both COCO and LVIS datasets. The results from comparing model #1 with the baseline model #0 validate this observation. Other techniques, such as language-guided query selection, text cross-attention, and sub-sentence text prompt, also contribute positively to the LVIS performance, yielding significant gains of $+3.0$ AP, $+1.8$ AP, and $+0.5$ AP, respectively. Additionally, these methods enhance the COCO zero-shot performance, further underscoring their effectiveness. However, we observed that language-guided query selection and sub-sentence text prompt had minimal impact on the COCO fine-tune performance. This outcome is reasonable, given that these methods do not alter model parameters or add computational burdens. Text cross-attention, while introducing fewer parameters than encoder fusion, showed less performance improvement compared to encoder fusion $(+0.6$ vs. $+0.8)$ . This finding suggests that fine-tuning performance is predominantly influenced by the model's parameters, indicating that scaling models is a promising direction for enhancing performance.",
1421
+ "bbox": [
1422
+ 212,
1423
+ 469,
1424
+ 787,
1425
+ 696
1426
+ ],
1427
+ "page_idx": 12
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "5 Conclusion",
1432
+ "text_level": 1,
1433
+ "bbox": [
1434
+ 214,
1435
+ 718,
1436
+ 359,
1437
+ 734
1438
+ ],
1439
+ "page_idx": 12
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "text": "We have presented a Grounding DINO model in this paper. Grounding DINO extends DINO to open-set object detection, enabling it to detect arbitrary objects given texts as queries. We review open-set object detector designs and propose a tight fusion approach to better fusing cross-modality information. We propose a sub-sentence level representation to use detection data for text prompts in a more reasonable way. The results show the effectiveness of our model design and",
1444
+ "bbox": [
1445
+ 212,
1446
+ 750,
1447
+ 787,
1448
+ 840
1449
+ ],
1450
+ "page_idx": 12
1451
+ },
1452
+ {
1453
+ "type": "header",
1454
+ "text": "Grounding DINO",
1455
+ "bbox": [
1456
+ 612,
1457
+ 114,
1458
+ 730,
1459
+ 128
1460
+ ],
1461
+ "page_idx": 12
1462
+ },
1463
+ {
1464
+ "type": "page_number",
1465
+ "text": "13",
1466
+ "bbox": [
1467
+ 767,
1468
+ 114,
1469
+ 785,
1470
+ 126
1471
+ ],
1472
+ "page_idx": 12
1473
+ },
1474
+ {
1475
+ "type": "table",
1476
+ "img_path": "images/73b1242ae20204156c43fed25f1d1f233afe8582c6005ce9185046ff9bc4edb3.jpg",
1477
+ "table_caption": [],
1478
+ "table_footnote": [],
1479
+ "table_body": "<table><tr><td rowspan=\"2\">#ID</td><td rowspan=\"2\">Model</td><td colspan=\"2\">COCO minimal</td><td>LVIS minimal</td></tr><tr><td>Zero-Shot</td><td>Fine-Tune</td><td>Zero-Shot</td></tr><tr><td>0</td><td>Grounding DINO (Full Model)</td><td>46.7</td><td>56.9</td><td>16.1</td></tr><tr><td>1</td><td>w/o encoder fusion</td><td>45.8</td><td>56.1</td><td>13.1</td></tr><tr><td>2</td><td>static query selection</td><td>46.3</td><td>56.6</td><td>13.6</td></tr><tr><td>3</td><td>w/o text cross-attention</td><td>46.1</td><td>56.3</td><td>14.3</td></tr><tr><td>4</td><td>word-level text prompt</td><td>46.4</td><td>56.6</td><td>15.6</td></tr></table>",
1480
+ "bbox": [
1481
+ 299,
1482
+ 143,
1483
+ 699,
1484
+ 234
1485
+ ],
1486
+ "page_idx": 13
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "Table 7: Ablations for our model. All models are trained on the O365 dataset with a Swin Transformer Tiny backbone.",
1491
+ "bbox": [
1492
+ 212,
1493
+ 238,
1494
+ 785,
1495
+ 266
1496
+ ],
1497
+ "page_idx": 13
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "fusion approach. Moreover, we extend open-set object detection to REC tasks and perform evaluation accordingly. We show that existing open-set detectors do not work well for REC data without fine-tuning. Hence we call extra attention to REC zero-shot performance in future studies.",
1502
+ "bbox": [
1503
+ 212,
1504
+ 295,
1505
+ 785,
1506
+ 354
1507
+ ],
1508
+ "page_idx": 13
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "Limitations: Despite the great performance on open-set object detection settings, Grounding DINO cannot be used for segmentation tasks like GLIPv2. Our training data is less than the largest GLIP model, which may limit our final performance. Moreover, we find that our model will produce false positive results in some cases, which may need more techniques or data to reduce the hallucination.",
1513
+ "bbox": [
1514
+ 212,
1515
+ 356,
1516
+ 787,
1517
+ 431
1518
+ ],
1519
+ "page_idx": 13
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "Social Impacts: The use of deep learning models, such as this one, exposes them to vulnerabilities through adversarial attacks. Additionally, the accuracy and correctness of the model's outputs cannot be guaranteed. There is also the risk that the open-set detection capabilities of the model could be exploited for unlawful purposes.",
1524
+ "bbox": [
1525
+ 212,
1526
+ 431,
1527
+ 785,
1528
+ 506
1529
+ ],
1530
+ "page_idx": 13
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "Acknowledgement",
1535
+ "text_level": 1,
1536
+ "bbox": [
1537
+ 215,
1538
+ 527,
1539
+ 393,
1540
+ 547
1541
+ ],
1542
+ "page_idx": 13
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "text": "We thank the authors of GLIP [24]: Lianian Harold Li, Pengchuan Zhang, and Haotian Zhang for their helpful discussions and instructions. We also thank Tiancheng Zhao, the author of OmDet [59], and Jianhua Han, the author of DetCLIP [51], for their response to their model details. We thank He Cao of The Hong Kong University of Science and Technology for his help on diffusion models.",
1547
+ "bbox": [
1548
+ 212,
1549
+ 559,
1550
+ 787,
1551
+ 650
1552
+ ],
1553
+ "page_idx": 13
1554
+ },
1555
+ {
1556
+ "type": "text",
1557
+ "text": "References",
1558
+ "text_level": 1,
1559
+ "bbox": [
1560
+ 215,
1561
+ 671,
1562
+ 323,
1563
+ 688
1564
+ ],
1565
+ "page_idx": 13
1566
+ },
1567
+ {
1568
+ "type": "list",
1569
+ "sub_type": "ref_text",
1570
+ "list_items": [
1571
+ "1. Anderson, P., He, X., Buehler, C., Teney, D., Johnson, M., Gould, S., Zhang, L.: Bottom-up and top-down attention for image captioning and visual question answering. computer vision and pattern recognition (2017)",
1572
+ "2. Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., Zagoruyko, S.: End-to-end object detection with transformers. In: European Conference on Computer Vision. pp. 213-229. Springer (2020)",
1573
+ "3. Chen, K., Pang, J., Wang, J., Xiong, Y., Li, X., Sun, S., Feng, W., Liu, Z., Shi, J., Ouyang, W., et al.: Hybrid task cascade for instance segmentation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 4974-4983 (2019)"
1574
+ ],
1575
+ "bbox": [
1576
+ 222,
1577
+ 700,
1578
+ 785,
1579
+ 839
1580
+ ],
1581
+ "page_idx": 13
1582
+ },
1583
+ {
1584
+ "type": "page_number",
1585
+ "text": "14",
1586
+ "bbox": [
1587
+ 217,
1588
+ 114,
1589
+ 235,
1590
+ 126
1591
+ ],
1592
+ "page_idx": 13
1593
+ },
1594
+ {
1595
+ "type": "header",
1596
+ "text": "S. Liu et al.",
1597
+ "bbox": [
1598
+ 271,
1599
+ 114,
1600
+ 352,
1601
+ 126
1602
+ ],
1603
+ "page_idx": 13
1604
+ },
1605
+ {
1606
+ "type": "list",
1607
+ "sub_type": "ref_text",
1608
+ "list_items": [
1609
+ "4. Chen, Q., Chen, X., Wang, J., Feng, H., Han, J., Ding, E., Zeng, G., Wang, J.: Group DETR: Fast detr training with group-wise one-to-many assignment (2022)",
1610
+ "5. Dai, X., Chen, Y., Xiao, B., Chen, D., Liu, M., Yuan, L., Zhang, L.: Dynamic head: Unifying object detection heads with attentions. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 7373-7382 (2021)",
1611
+ "6. Deng, J., Yang, Z., Chen, T., Zhou, W., Li, H.: Transvg: End-to-end visual grounding with transformers. arXiv: Computer Vision and Pattern Recognition (2021)",
1612
+ "7. Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805 (2018)",
1613
+ "8. Dong, N., Zhang, Y., Ding, M., Lee, G.H.: Boosting long-tailed object detection via step-wise learning on smooth-tail data (2023), https://arxiv.org/abs/2305.12833",
1614
+ "9. Du, Y., Fu, Z., Liu, Q., Wang, Y.: Visual grounding with transformers. (2021)",
1615
+ "10. Gan, Z., Chen, Y.C., Li, L., Zhu, C., Cheng, Y., Liu, J.: Large-scale adversarial training for vision-and-language representation learning. neural information processing systems (2020)",
1616
+ "11. Gao, P., Geng, S., Zhang, R., Ma, T., Fang, R., Zhang, Y., Li, H., Qiao, Y.: Clip-adapter: Better vision-language models with feature adapters. arXiv preprint arXiv:2110.04544 (2021)",
1617
+ "12. Gao, P., Zheng, M., Wang, X., Dai, J., Li, H.: Fast convergence of DETR with spatially modulated co-attention. arXiv preprint arXiv:2101.07448 (2021)",
1618
+ "13. Gu, X., Lin, T.Y., Kuo, W., Cui, Y.: Open-vocabulary object detection via vision and language knowledge distillation. Learning (2021)",
1619
+ "14. Gupta, A., Dollar, P., Girshick, R.: Lvis: A dataset for large vocabulary instance segmentation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5356-5364 (2019)",
1620
+ "15. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). pp. 770-778 (2016)",
1621
+ "16. Jia, D., Yuan, Y., He, H., Wu, X., Yu, H., Lin, W., Sun, L., Zhang, C., Hu, H.: DETRs with hybrid matching (2022)",
1622
+ "17. Kamath, A., Singh, M., LeCun, Y., Synnaeve, G., Misra, I., Carion, N.: MDETR-modulated detection for end-to-end multi-modal understanding. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 1780-1790 (2021)",
1623
+ "18. Krasin, I., Duerig, T., Alldrin, N., Ferrari, V., Abu-El-Haija, S., Kuznetsova, A., Rom, H., Uijlings, J., Popov, S., Veit, A., et al.: Openimages: A public dataset for large-scale multi-label and multi-class image classification. Dataset available from https://github.com/openimages2(3), 18 (2017)",
1624
+ "19. Krishna, R., Zhu, Y., Groth, O., Johnson, J., Hata, K., Kravitz, J., Chen, S., Kalantidis, Y., Li, L.J., Shamma, D.A., Bernstein, M.S., Fei-Fei, L.: Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision (2017)",
1625
+ "20. Kuo, W., Bertsch, F., Li, W., Piergiovanni, A., Saffar, M., Angelova, A.: Findit: Generalized localization with natural language queries (2022)",
1626
+ "21. Kuznetsova, A., Rom, H., Alldrin, N., Uijlings, J., Krasin, I., Pont-Tuset, J., Kamali, S., Popov, S., Malloci, M., Kolesnikov, A., Duerig, T., Ferrari, V.: The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. arXiv: Computer Vision and Pattern Recognition (2018)"
1627
+ ],
1628
+ "bbox": [
1629
+ 217,
1630
+ 146,
1631
+ 787,
1632
+ 839
1633
+ ],
1634
+ "page_idx": 14
1635
+ },
1636
+ {
1637
+ "type": "header",
1638
+ "text": "Grounding DINO",
1639
+ "bbox": [
1640
+ 612,
1641
+ 114,
1642
+ 730,
1643
+ 128
1644
+ ],
1645
+ "page_idx": 14
1646
+ },
1647
+ {
1648
+ "type": "page_number",
1649
+ "text": "15",
1650
+ "bbox": [
1651
+ 767,
1652
+ 114,
1653
+ 785,
1654
+ 126
1655
+ ],
1656
+ "page_idx": 14
1657
+ },
1658
+ {
1659
+ "type": "list",
1660
+ "sub_type": "ref_text",
1661
+ "list_items": [
1662
+ "22. Li, C., Liu, H., Li, L.H., Zhang, P., Aneja, J., Yang, J., Jin, P., Lee, Y.J., Hu, H., Liu, Z., Gao, J.: Elevater: A benchmark and toolkit for evaluating language-augmented visual models (2022)",
1663
+ "23. Li, F., Zhang, H., Liu, S., Guo, J., Ni, L.M., Zhang, L.: DN-DETR: Accelerate DETR training by introducing query denoising. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 13619–13627 (2022)",
1664
+ "24. Li, L.H., Zhang, P., Zhang, H., Yang, J., Li, C., Zhong, Y., Wang, L., Yuan, L., Zhang, L., Hwang, J.N., et al.: Grounded language-image pre-training. arXiv preprint arXiv:2112.03857 (2021)",
1665
+ "25. Li, M., Sigal, L.: Referring transformer: A one-step approach to multi-task visual grounding. arXiv: Computer Vision and Pattern Recognition (2021)",
1666
+ "26. Li, Y., Liu, H., Wu, Q., Mu, F., Yang, J., Gao, J., Li, C., Lee, Y.J.: GLIGEN: Open-set grounded text-to-image generation. CVPR (2023)",
1667
+ "27. Lin, T.Y., Goyal, P., Girshick, R., He, K., Dollar, P.: Focal loss for dense object detection. In: Proceedings of the IEEE international conference on computer vision. pp. 2980-2988 (2017)",
1668
+ "28. Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dólar, P., Zitnick, C.L.: Microsoft coco: Common objects in context. In: European conference on computer vision. pp. 740-755. Springer (2014)",
1669
+ "29. Liu, J., Wang, L., Yang, M.H.: Referring expression generation and comprehension via attributes. international conference on computer vision (2017)",
1670
+ "30. Liu, S., Li, F., Zhang, H., Yang, X., Qi, X., Su, H., Zhu, J., Zhang, L.: DABDETR: Dynamic anchor boxes are better queries for DETR. In: International Conference on Learning Representations (2022), https://openreview.net/forum?id=oMI9Pj0b9J1",
1671
+ "31. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., Guo, B.: Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030 (2021)",
1672
+ "32. Meng, D., Chen, X., Fan, Z., Zeng, G., Li, H., Yuan, Y., Sun, L., Wang, J.: Conditional DETR for fast training convergence. arXiv preprint arXiv:2108.06152 (2021)",
1673
+ "33. Miao, P., Su, W., Wang, L., Fu, Y., Li, X.: Referring expression comprehension via cross-level multi-modal fusion. ArXiv abs/2204.09957 (2022)",
1674
+ "34. Minderer, M., Gritsenko, A., Stone, A., Neumann, M., Weissenborn, D., Dosovitskiy, A., Mahendran, A., Arnab, A., Dehghani, M., Shen, Z., Wang, X., Zhai, X., Kipf, T., Houlsby, N.: Simple open-vocabulary object detection with vision transformers (2022)",
1675
+ "35. Ordonez, V., Kulkarni, G., Berg, T.L.: Im2text: Describing images using 1 million captioned photographs. neural information processing systems (2011)",
1676
+ "36. Plummer, B.A., Wang, L., Cervantes, C.M., Caicedo, J.C., Hockenmaier, J., Lazebnik, S.: Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In: Proceedings of the IEEE international conference on computer vision. pp. 2641-2649 (2015)",
1677
+ "37. Plummer, B.A., Wang, L., Cervantes, C.M., Caicedo, J.C., Hockenmaier, J., Lazebnik, S.: Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. International Journal of Computer Vision (2015)",
1678
+ "38. Ren, S., He, K., Girshick, R., Sun, J.: Faster r-cnn: Towards real-time object detection with region proposal networks. IEEE Transactions on Pattern Analysis and Machine Intelligence 39(6), 1137-1149 (2017)"
1679
+ ],
1680
+ "bbox": [
1681
+ 215,
1682
+ 146,
1683
+ 785,
1684
+ 839
1685
+ ],
1686
+ "page_idx": 15
1687
+ },
1688
+ {
1689
+ "type": "page_number",
1690
+ "text": "16",
1691
+ "bbox": [
1692
+ 217,
1693
+ 114,
1694
+ 235,
1695
+ 126
1696
+ ],
1697
+ "page_idx": 15
1698
+ },
1699
+ {
1700
+ "type": "header",
1701
+ "text": "S. Liu et al.",
1702
+ "bbox": [
1703
+ 271,
1704
+ 114,
1705
+ 351,
1706
+ 126
1707
+ ],
1708
+ "page_idx": 15
1709
+ },
1710
+ {
1711
+ "type": "list",
1712
+ "sub_type": "ref_text",
1713
+ "list_items": [
1714
+ "39. Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., Savarese, S.: Generalized intersection over union: A metric and a loss for bounding box regression. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 658-666 (2019)",
1715
+ "40. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models (2021)",
1716
+ "41. Sennrich, R., Haddow, B., Birch, A.: Neural machine translation of rare words with subword units. meeting of the association for computational linguistics (2015)",
1717
+ "42. Shao, S., Li, Z., Zhang, T., Peng, C., Yu, G., Zhang, X., Li, J., Sun, J.: Objects365: A large-scale, high-quality dataset for object detection. In: Proceedings of the IEEE international conference on computer vision. pp. 8430-8439 (2019)",
1718
+ "43. Sharma, P., Ding, N., Goodman, S., Soricut, R.: Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. meeting of the association for computational linguistics (2018)",
1719
+ "44. Shilong, L., Yaoyuan, L., Shijia, H., Feng, L., Hao, Z., Hang, S., Jun, Z., Lei, Z.: DQ-DETR: Dual query detection transformer for phrase extraction and grounding. In: Proceedings of the AAAI Conference on Artificial Intelligence (2023)",
1720
+ "45. Tan, M., Le, Q.V.: Efficientnet: Rethinking model scaling for convolutional neural networks. international conference on machine learning (2019)",
1721
+ "46. Thomee, B., Shamma, D.A., Friedland, G., Elizalde, B., Ni, K., Poland, D.N., Borth, D., Li, L.J.: Yfcc100m: the new data in multimedia research. Communications of The ACM (2016)",
1722
+ "47. Wang, Y., Zhang, X., Yang, T., Sun, J.: Anchor DETR: Query design for transformer-based detector. national conference on artificial intelligence (2021)",
1723
+ "48. Wolf, T., Debut, L., Sanh, V., Chaumont, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., et al.: Huggingface's transformers: State-of-the-art natural language processing. arXiv preprint arXiv:1910.03771 (2019)",
1724
+ "49. Xu, M., Zhang, Z., Hu, H., Wang, J., Wang, L., Wei, F., Bai, X., Liu, Z.: End-to-end semi-supervised object detection with soft teacher. arXiv preprint arXiv:2106.09018 (2021)",
1725
+ "50. Yao, L., Han, J., Liang, X., Xu, D., Zhang, W., Li, Z., Xu, H.: DetCLIPv2: Scalable Open-Vocabulary Object Detection Pre-training via Word-Region Alignment (2023)",
1726
+ "51. Yao, L., Han, J., Wen, Y., Liang, X., Xu, D., Zhang, W., Li, Z., Xu, C., Xu, H.: Detclip: Dictionary-enriched visual-concept paralleled pre-training for open-world detection (2022)",
1727
+ "52. Yu, L., Lin, Z., Shen, X., Yang, J., Lu, X., Bansal, M., Berg, T.L.: Matttnet: Modular attention network for referring expression comprehension. computer vision and pattern recognition (2018)",
1728
+ "53. Yuan, L., Chen, D., Chen, Y.L., Codella, N., Dai, X., Gao, J., Hu, H., Huang, X., Li, B., Li, C., Liu, C., Liu, M., Liu, Z., Lu, Y., Shi, Y., Wang, L., Wang, J., Xiao, B., Xiao, Z., Yang, J., Zeng, M., Zhou, L., Zhang, P.: Florence: A new foundation model for computer vision (2022)",
1729
+ "54. Zang, Y., Li, W., Zhou, K., Huang, C., Loy, C.C.: Open-vocabulary DETR with conditional matching (2022)",
1730
+ "55. Zareian, A., Rosa, K.D., Hu, D.H., Chang, S.F.: Open-vocabulary object detection using captions. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 14393-14402 (2021)",
1731
+ "56. Zhang, H., Li, F., Liu, S., Zhang, L., Su, H., Zhu, J., Ni, L.M., Shum, H.Y.: DINO: DETR with improved denoising anchor boxes for end-to-end object detection (2022)"
1732
+ ],
1733
+ "bbox": [
1734
+ 212,
1735
+ 146,
1736
+ 787,
1737
+ 839
1738
+ ],
1739
+ "page_idx": 16
1740
+ },
1741
+ {
1742
+ "type": "header",
1743
+ "text": "Grounding DINO",
1744
+ "bbox": [
1745
+ 612,
1746
+ 114,
1747
+ 730,
1748
+ 128
1749
+ ],
1750
+ "page_idx": 16
1751
+ },
1752
+ {
1753
+ "type": "page_number",
1754
+ "text": "17",
1755
+ "bbox": [
1756
+ 767,
1757
+ 114,
1758
+ 785,
1759
+ 126
1760
+ ],
1761
+ "page_idx": 16
1762
+ },
1763
+ {
1764
+ "type": "list",
1765
+ "sub_type": "ref_text",
1766
+ "list_items": [
1767
+ "57. Zhang, H., Zhang, P., Hu, X., Chen, Y.C., Li, L.H., Dai, X., Wang, L., Yuan, L., Hwang, J.N., Gao, J.: GLIPv2: Unifying Localization and Vision-Language Understanding (2022)",
1768
+ "58. Zhang, H., Zhang, P., Hu, X., Chen, Y.C., Li, L.H., Dai, X., Wang, L., Yuan, L., Hwang, J.N., Gao, J.: Glipv2: Unifying localization and vision-language understanding (2022)",
1769
+ "59. Zhao, T., Liu, P., Lu, X., Lee, K.: Omdet: Language-aware object detection with large-scale vision-language multi-dataset pre-training (2022)",
1770
+ "60. Zhong, Y., Yang, J., Zhang, P., Li, C., Codella, N., Li, L.H., Zhou, L., Dai, X., Yuan, L., Li, Y., Gao, J.: Regionclip: Region-based language-image pretraining (2022)",
1771
+ "61. Zhou, X., Girdhar, R., Joulin, A., Krahenbuhl, P., Misra, I.: Detecting twenty-thousand classes using image-level supervision. In: ECCV (2022)",
1772
+ "62. Zhou, X., Wang, D., Krähenbuhl, P.: Objects as points. arXiv preprint arXiv:1904.07850 (2019)",
1773
+ "63. Zhu, X., Su, W., Lu, L., Li, B., Wang, X., Dai, J.: Deformable DETR: Deformable transformers for end-to-end object detection. In: ICLR 2021: The Ninth International Conference on Learning Representations (2021)"
1774
+ ],
1775
+ "bbox": [
1776
+ 215,
1777
+ 146,
1778
+ 787,
1779
+ 397
1780
+ ],
1781
+ "page_idx": 17
1782
+ },
1783
+ {
1784
+ "type": "page_number",
1785
+ "text": "18",
1786
+ "bbox": [
1787
+ 217,
1788
+ 114,
1789
+ 235,
1790
+ 126
1791
+ ],
1792
+ "page_idx": 17
1793
+ },
1794
+ {
1795
+ "type": "header",
1796
+ "text": "S. Liu et al.",
1797
+ "bbox": [
1798
+ 271,
1799
+ 114,
1800
+ 351,
1801
+ 126
1802
+ ],
1803
+ "page_idx": 17
1804
+ }
1805
+ ]
2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/aa4cae58-10af-482c-b4dc-840d2e57d73a_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/aa4cae58-10af-482c-b4dc-840d2e57d73a_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7981173d367318b28db5a9fa60f5fec243e8380b19bb34507602a1f6741e48f
3
+ size 1740263
2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/full.md ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection
2
+
3
+ Shilong Liu $^{1,2\star}$ , Zhaoyang Zeng $^{2}$ , Tianhe Ren $^{2}$ , Feng Li $^{2,3}$ , Hao Zhang $^{2,3}$ ,
4
+
5
+ Jie Yang $^{2,4}$ , Qing Jiang $^{2,6}$ Chunyuan Li $^{5}$ , Jianwei Yang $^{5}$ ,
6
+
7
+ Hang $\mathrm{Su}^1$ , Jun Zhu<sup>1*</sup>, Lei Zhang<sup>2*</sup>.
8
+
9
+ <sup>1</sup> Dept. of Comp. Sci. and Tech., BNRist Center, State Key Lab for Intell. Tech. & Sys.,
10
+
11
+ Institute for AI, Tsinghua-Bosch Joint Center for ML, Tsinghua University
12
+
13
+ $^{2}$ International Digital Economy Academy (IDEA)
14
+
15
+ <sup>3</sup> The Hong Kong University of Science and Technology
16
+
17
+ <sup>4</sup> The Chinese University of Hong Kong (Shenzhen) <sup>5</sup> Microsoft Research, Redmond
18
+
19
+ $^{6}$ South China University of Technology
20
+
21
+ liusl20@mails.tsinghua.edu.cn, leizhang@idea.edu.cn
22
+
23
+ ![](images/6f7d96853f9fcb920416ec5f1dd0f96b521a1a909e4c21689a01b352e0b6ddbe.jpg)
24
+ Fig. 1: (a) Closed-set object detection requires models to detect objects of pre-defined categories. (b) We evaluate models on novel objects and standard Referring expression comprehension (REC) benchmarks for model generalizations on novel objects with attributes. (c) We present an image editing application by combining Grounding DINO and Stable Diffusion [40]. Best viewed in colors.
25
+
26
+ Abstract. In this paper, we develop an open-set object detector, called Grounding DINO, by marrying Transformer-based detector DINO with grounded pre-training, which can detect arbitrary objects with human inputs such as category names or referring expressions. The key solution of open-set object detection is introducing language to a closed-set detector for open-set concept generalization. To effectively fuse language and vision modalities, we conceptually divide a closed-set detector into three phases and propose a tight fusion solution, which includes a feature enhancer, a language-guided query selection, and a cross-modality decoder for modalities fusion. We first pre-train Grounding DINO on large-scale datasets,
27
+
28
+ including object detection data, grounding data, and caption data, and evaluate the model on both open-set object detection and referring object detection benchmarks. Grounding DINO performs remarkably well on all three settings, including benchmarks on COCO, LVIS, ODinW, and RefCOCO/+/g. Grounding DINO achieves a 52.5 AP on the COCO zero-shot $^{1}$ detection benchmark. It sets a new record on the ODinW zero-shot benchmark with a mean 26.1 AP. We release some checkpoints and inference codes at https://github.com/IDEA-Research/GroundingDINO.
29
+
30
+ Keywords: Object Detection $\cdot$ Image Grounding $\cdot$ Multi-modal learning
31
+
32
+ # 1 Introduction
33
+
34
+ A key indicator of an Artificial General Intelligence (AGI) system's capability is its proficiency in handling open-world scenarios. In this paper, we aim to develop a strong system to detect arbitrary objects specified by human language inputs, a task commonly referred to as open-set object detection<sup>2</sup>. The task has wide applications for its great potential as a generic object detector. For example, we can cooperate with generative models for image editing (as shown in Fig. 1 (b)).
35
+
36
+ In pursuit of this goal, we design the strong open-set object detector Grounding DINO by following the two principles: tight modality fusion based on DINO [56] and large-scale grounded pre-train for concept generalization.
37
+
38
+ Tight modality fusion based on DINO. The key to open-set detection is introducing language for unseen object generalization [1,6,24]. Most existing open-set detectors are developed by extending closed-set detectors to open-set scenarios with language information. As shown in Fig. 2, a closed-set detector typically has three important modules, a backbone for feature extraction, a neck for feature enhancement, and a head for region refinement (or box prediction). A closed-set detector can be generalized to detect novel objects by learning language-aware region embeddings so that each region can be classified into novel categories in a language-aware semantic space. The key to achieving this goal is using contrastive loss between region outputs and language features at the neck
39
+
40
+ and/or head outputs. To help a model align cross-modality information some work tried to fuse features before the final loss stage. We summarize the modulized design
41
+
42
+ ![](images/a7145f69a8e398231250672b4d34ec039badb55117e5490ece788596ccde5963.jpg)
43
+ Fig. 2: Extending closed-set detectors to open-set scenarios.
44
+
45
+ of object detectors in Fig. 2. Feature fusion can be performed in three phases: neck (phase A), query initialization (phase B), and head (phase C). For example, GLIP [24] performs early fusion in the neck module (phase A), and OV-DETR [54] uses language-aware queries as head inputs (phase B). We argue that introducing more feature fusion into the pipeline can facilitate better alignment between different modality features, thereby achieving better performance.
46
+
47
+ Although conceptually simple, it is hard for previous work to perform feature fusion in all three phases. The design of classical detectors like Faster RCNN makes it hard to interact with language information in most blocks. Unlike classical detectors, the Transformer-based detector method such as DINO has a consistent structure with language blocks. The layer-by-layer design enables it to interact with language information easily. Under this principle, we design three feature fusion approaches in the neck, query initialization, and head phases. More specifically, we design a feature enhancer by stacking self-attention, text-to-image cross-attention, and image-to-text cross-attention as the neck module. We then develop a language-guided query selection method to initialize queries for the detection head. We also design a cross-modality decoder for the head phase with image and text cross-attention layers to boost query representations.
48
+
49
+ Large-scale grounded pre-train for zero-shot transfer. Most existing open-set models [13, 20] rely on pre-trained CLIP models for concept generalization. Nevertheless, the efficacy of CLIP, specifically pre-trained on image-text pairs, is limited for region-text pair detection tasks, as identified in the Region-CLIP study by RegionCLIP [60]. In contrast, GLIP [24] presents a different way by reformulating object detection as a phrase grounding task and introducing contrastive training between object regions and language phrases on large-scale data. It shows great flexibility for heterogeneous datasets and remarkable performance on closed-set and open-set detection.
50
+
51
+ We have adopted and refined the grounded training methodology. GLIP's approach involves concatenating all categories into a sentence in a random order. However, the direct category names concatenation does not consider the potential influence of unrelated categories on each other when extracting features. To mitigate this issue and improve model performance during grounded training, we introduce a technique that utilizes sub-sentence level text features. It removes the attention between unrelated categories during word feature extractions. Further elaboration on this technique can be found in Section 3.4.
52
+
53
+ We pre-train the Grounding DINO on a large-scale dataset and evaluate the performance on mainstream object detection benchmarks like COCO [28]. While some studies have examined open-set detection models under a "partial label" framework—training on a subset of data (e.g., base categories) and testing on additional categories—we advocate for a fully zero-shot approach to enhance practical applicability. Moreover, we extend the model to another important scenario Referring Expression Comprehension (REC) [29,33]<sup>3</sup>, where objects are described with attributes.
54
+
55
+ We conduct experiments on all three settings, including closed-set detection, open-set detection, and referring object detection, as shown in Fig. 1, to comprehensively evaluate open-set detection performance. Grounding DINO outperforms competitors by a large margin. For example, Grounding DINO reaches a 52.5 AP on COCO minimal without any COCO training data. It also establishes a new state of the art on the ODinW [22] zero-shot benchmark with a 26.1 mean AP.
56
+
57
+ <table><tr><td rowspan="2">Model</td><td colspan="3">Model Design</td><td rowspan="2">Text Prompt Represent. Level (Sec. 3.4)</td><td rowspan="2">Closed-Set Settings COCO</td><td colspan="3">Zero-Shot Transfer</td><td rowspan="2">Referring Detection RefCOCO/+g</td></tr><tr><td>Base Detector</td><td>Fusion (Fig. 2)</td><td>CLIP</td><td>COCO</td><td>LVIS</td><td>ODinW</td></tr><tr><td>ViLD [13]</td><td>Mask R-CNN</td><td>-</td><td>✓</td><td>sentence</td><td>✓</td><td>partial label</td><td>partial label</td><td></td><td></td></tr><tr><td>RegionCLIP [60]</td><td>Faster RCNN</td><td>-</td><td>✓</td><td>sentence</td><td>✓</td><td>partial label</td><td>partial label</td><td></td><td></td></tr><tr><td>FindIt [20]</td><td>Faster RCNN</td><td>A</td><td></td><td>sentence</td><td>✓</td><td>partial label</td><td></td><td></td><td>fine-tune</td></tr><tr><td>MDETR [17]</td><td>DETR</td><td>A,C</td><td></td><td>word</td><td></td><td></td><td>fine-tune</td><td>zero-shot</td><td>fine-tune</td></tr><tr><td>DQ-DETR [44]</td><td>DETR</td><td>A,C</td><td></td><td>word</td><td>✓</td><td></td><td>zero-shot</td><td></td><td>fine-tune</td></tr><tr><td>GLIP [24]</td><td>DyHead</td><td>A</td><td></td><td>word</td><td>✓</td><td>zero-shot</td><td>zero-shot</td><td>zero-shot</td><td></td></tr><tr><td>GLIP+2 [57]</td><td>DyHead</td><td>A</td><td></td><td>word</td><td>✓</td><td>zero-shot</td><td>zero-shot</td><td>zero-shot</td><td></td></tr><tr><td>OV-DETR [54]</td><td>Deformable DETR</td><td>B</td><td>✓</td><td>sentence</td><td>✓</td><td>partial label</td><td>partial label</td><td></td><td></td></tr><tr><td>OWL-ViT [34]</td><td>-</td><td>-</td><td>✓</td><td>sentence</td><td>✓</td><td>partial label</td><td>partial label</td><td>zero-shot</td><td></td></tr><tr><td>DetCLIP [51]</td><td>ATSS</td><td>-</td><td>✓</td><td>sentence</td><td></td><td></td><td>zero-shot</td><td>zero-shot</td><td></td></tr><tr><td>OmDet [59]</td><td>Sparse R-CNN</td><td>C</td><td>✓</td><td>sentence</td><td>✓</td><td></td><td></td><td>zero-shot</td><td></td></tr><tr><td>Grounding DINO (Ours)</td><td>DINO</td><td>A,B,C</td><td></td><td>sub-sentence</td><td>✓</td><td>zero-shot</td><td>zero-shot</td><td>zero-shot</td><td>zero-shot</td></tr></table>
58
+
59
+ Table 1: A comparison of previous open-set object detectors. Our summarization is based on the experiments in their paper, but not the ability to extend their models to other tasks. It is worth noting that some related works may not (only) be designed for the open-set object detection initially, like MDETR [17] and GLIPv2 [57], but we list them here for a comprehensive comparison with existing work. We use the term "partial label" for the settings, where models are trained on partial data (e.g. base categories) and evaluated on other cases. [55]
60
+
61
+ # 2 Related Work
62
+
63
+ Detection Transformers. Grounding DINO is built upon the DETR-like model DINO [56], which is an end-to-end Transformer-based detector. DETR was first proposed in [2] and then has been improved from many directions [4, 5, 12, 16, 32, 47, 63] in the past few years. DAB-DETR [30] introduces anchor boxes as DETR queries for more accurate box prediction. DN-DETR [23] proposes a query-denoising approach to stabilizing the bipartite matching. DINO [56] further develops several techniques including contrastive de-noising and sets a new record on the COCO object detection benchmark. However, such detectors mainly focus on closed-set detection and are difficult to generalize to novel classes because of the limited pre-defined categories.
64
+
65
+ Open-Set Object Detection. Open-set object detection is trained using existing bounding box annotations and aims at detecting arbitrary classes with the help of language generalization. OV-DETR [55] uses image and text embedding encoded by a CLIP model as queries to decode the category-specified boxes in the DETR framework [2]. ViLD [13] distills knowledge from a CLIP teacher model into a R-CNN-like detector so that the learned region embeddings contain the semantics of language. GLIP [11] formulates object detection as a grounding problem and leverages additional grounding data to help learn aligned semantics
66
+
67
+ ![](images/b6c23d7cce6c12675e78f340ca112ed4a788a4a065249feaf48fdf541f623ea3.jpg)
68
+ Fig. 3: The framework of Grounding DINO. We present the overall framework, a feature enhancer layer, and a decoder layer in block 1, block 2, and block 3, respectively.
69
+
70
+ ![](images/356f672f279383c36dd20786faaeff98c4811b03320fa55f353ee2dae75a5f18.jpg)
71
+
72
+ at phrase and region levels. It shows that such a formulation can even achieve stronger performance on fully-supervised detection benchmarks. DetCLIP [51] involves large-scale image captioning datasets and uses the generated pseudo labels to expand the knowledge database. The generated pseudo labels effectively help extend the generalization ability.
73
+
74
+ However, previous works only fuse multi-modal information in partial phases, which may lead to sub-optimal language generalization ability. For example, GLIP only considers fusion in the feature enhancement (phase A) and OV-DETR only injects language information at the decoder inputs (phase B). Moreover, the REC task is normally overlooked in evaluation, which is an important scenario for open-set detection. We compare our model with other open-set methods in Table 1.
75
+
76
+ # 3 Grounding DINO
77
+
78
+ Grounding DINO outputs multiple pairs of object boxes and noun phrases for a given (Image, Text) pair. For example, as shown in Fig. 3, the model locates a cat and a table from the input image and extracts word cat and table from the input text as corresponding labels. Both object detection and REC tasks can be aligned with the pipeline. Following GLIP [24], we concatenate all category names as input texts for object detection tasks. REC requires a bounding box for
79
+
80
+ each text input. We use the output object with the largest scores as the output for the REC task.
81
+
82
+ Grounding DINO is a dual-encoder-single-decoder architecture. It contains an image backbone for image feature extraction, a text backbone for text feature extraction, a feature enhancer for image and text feature fusion (Sec. 3.1), a language-guided query selection module for query initialization (Sec. 3.2), and a cross-modality decoder for box refinement (Sec. 3.3).
83
+
84
+ For each (Image, Text) pair, we first extract vanilla image features and vanilla text features using an image backbone and a text backbone, respectively. The two vanilla features are fed into a feature enhancer module for cross-modality feature fusion. After obtaining cross-modality text and image features, we use a language-guided query selection module to select cross-modality queries from image features. Like the object queries in most DETR-like models, these cross-modality queries will be fed into a cross-modality decoder to probe desired features from the two modal features and update themselves. The output queries of the last decoder layer will be used to predict object boxes and extract corresponding phrases.
85
+
86
+ ![](images/21d02da1dd367602577f5e5b21911ab9991111c5be4e2ad09b473132e1095bac.jpg)
87
+ Fig. 4: Comparisons of text representations.
88
+
89
+ # 3.1 Feature Extraction and Enhancer
90
+
91
+ Given an (Image, Text) pair, we extract multi-scale image features with an image backbone like Swin Transformer [31], and text features with a text backbone like BERT [7]. Following previous DETR-like detectors [56,63], multi-scale features are extracted from the outputs of different blocks. After extracting vanilla image and text features, we fed them into a feature enhancer for cross-modality feature fusion. The feature enhancer includes multiple feature enhancer layers. We illustrate a feature enhancer layer in Fig. 3 block 2. We leverage the Deformable self-attention to enhance image features and the vanilla self-attention for text feature enhancers. Inspired by GLIP [24], we add an image-to-text and a text-to-image cross-attention modules for feature fusion. These modules help align features of different modalities.
92
+
93
+ # 3.2 Language-Guided Query Selection
94
+
95
+ Grounding DINO aims to detect objects from an image specified by an input text. To effectively leverage the input text to guide object detection, we design a
96
+
97
+ language-guided query selection module to select features that are more relevant to the input text as decoder queries.
98
+
99
+ Let's denote the image feature as $\mathbf{X}_I \in \mathbb{R}^{N_I \times d}$ and the text features as $\mathbf{X}_T \in \mathbb{R}^{N_T \times d}$ . Here, $N_I$ represents the number of image tokens, $N_T$ indicates the number of text tokens, and $d$ corresponds to the feature dimension. In our experiments, we specifically utilize a feature dimension of $d = 256$ . Typically, in our models, the value of $N_I$ exceeds 10,000, while $N_T$ remains below 256. Our objective is to extract $N_q$ queries from the encoder's image features to be used as inputs for the decoder. In alignment with the DINO method, we set $N_q$ to be 900. The top $N_q$ query indices for the image feature, denoted as $\mathbf{I}_{N_q}$ , are selected using the following expression:
100
+
101
+ $$
102
+ \mathbf {I} _ {N _ {q}} = \operatorname {T o p} _ {N _ {q}} (\operatorname {M a x} ^ {(- 1)} (\mathbf {X} _ {I} \mathbf {X} _ {T} ^ {\intercal})). \tag {1}
103
+ $$
104
+
105
+ In this expression, $\mathrm{Top}_{N_q}$ represents the operation to pick the top $N_{q}$ indices. The function $\mathbf{Max}^{(-1)}$ executes the max operation along the $-1$ dimension, and the symbol $\daleth$ denotes matrix transposition. We present the query selection process in Algorithm 1 in PyTorch style. The language-guided query selection module outputs $N_{q}$ indices. We can extract features based on the selected indices to initialize queries. Following DINO [56], we use mixed query selection to initialize decoder queries. Each decoder query contains two parts: content part and positional part [32], respectively. We formulate the positional part as dynamic anchor boxes [30], which are initialized with encoder outputs. The other part, the content queries, are set to be learnable during training.
106
+
107
+ # 3.3 Cross-Modality Decoder
108
+
109
+ We develop a cross-modality decoder to combine image and text modality features, as shown in Fig. 3 block 3. Each cross-modality query is fed into a self-attention layer, an image cross-attention layer to combine image features, a text cross-attention layer to combine text features, and an FFN layer in each cross-modality decoder layer. Each decoder layer has an extra text cross-attention layer compared with the DINO decoder layer, as we need to inject text information into queries for better modality alignment.
110
+
111
+ # 3.4 Sub-Sentence Level Text Feature
112
+
113
+ Two kinds of text prompts are explored in previous works, which we named as sentence level representation and word level representation, as shown in Fig. 4. Sentence level representation [34,51] encodes a whole sentence to one feature. If some sentences in phrase grounding data have multiple phrases, it extracts these phrases and discards other words. In this way, it removes the influence between words while losing fine-grained information in sentences. Word level representation [11,17] enables encoding multiple category names with one forward but introduces unnecessary dependencies among categories, especially when the input text is a concatenation of multiple category names in an arbitrary order.
114
+
115
+ <table><tr><td>Model</td><td>Backbone</td><td>Pre-Training Data</td><td>Zero-Shot 2017val</td><td>Fine-Tuning 2017val/test-dev</td></tr><tr><td>Faster R-CNN</td><td>RN50-FPN</td><td>-</td><td>-</td><td>40.2 / -</td></tr><tr><td>Faster R-CNN</td><td>RN101-FPN</td><td>-</td><td>-</td><td>42.0 / -</td></tr><tr><td>DyHead-T [5]</td><td>Swin-T</td><td>-</td><td>-</td><td>49.7 / -</td></tr><tr><td>DyHead-L [5]</td><td>Swin-L</td><td>-</td><td>-</td><td>58.4 / 58.7</td></tr><tr><td>DyHead-L [5]</td><td>Swin-L</td><td>O365,ImageNet21K</td><td>-</td><td>60.3 / 60.6</td></tr><tr><td>SoftTeacher [49]</td><td>Swin-L</td><td>O365,SS-COCO</td><td>-</td><td>60.7 / 61.3</td></tr><tr><td>DINO(Swin-L) [56]</td><td>Swin-L</td><td>O365</td><td>-</td><td>62.5 / -</td></tr><tr><td>DyHead-T† [5]</td><td>Swin-T</td><td>O365</td><td>43.6</td><td>53.3 / -</td></tr><tr><td>GLIP-T (B) [24]</td><td>Swin-T</td><td>O365</td><td>44.9</td><td>53.8 / -</td></tr><tr><td>GLIP-T (C) [24]</td><td>Swin-T</td><td>O365,GoldG</td><td>46.7</td><td>55.1 / -</td></tr><tr><td>GLIP-L [24]</td><td>Swin-L</td><td>FourODs,GoldG,Cap24M</td><td>49.8</td><td>60.8 / 61.0</td></tr><tr><td>DINO(Swin-T)† [56]</td><td>Swin-T</td><td>O365</td><td>46.2</td><td>56.9 / -</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365</td><td>46.7</td><td>56.9 / -</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG</td><td>48.1</td><td>57.1 / -</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG,Cap4M</td><td>48.4</td><td>57.2 / -</td></tr><tr><td>Grounding DINO L (Ours)</td><td>Swin-L</td><td>O365,OI [18],GoldG</td><td>52.5</td><td>62.6 / 62.7 (63.0 / 63.0)*</td></tr><tr><td>Grounding DINO L (Ours)</td><td>Swin-L</td><td>O365,OI,GoldG,Cap4M,COCO,RefC</td><td>60.7‡</td><td>62.6 / -</td></tr></table>
116
+
117
+ Table 2: Zero-shot domain transfer and fine-tuning on COCO. * The results in brackets are trained with $1.5 \times$ image sizes, i.e., with a maximum image size of 2000. †The models map a subset of O365 categories to COCO for zero-shot evaluations. ‡This is not a real zero-shot performance as we add COCO data during model training. We list the result here for a reference.
118
+
119
+ As shown in Fig. 4 (b), some unrelated words interact during attention. To avoid unwanted word interactions, we introduce attention masks to block attentions among unrelated category names, named "sub-sentence" level representation. It eliminates the influence between different category names while keeping per-word features for fine-grained understanding.
120
+
121
+ # 3.5 Loss Function
122
+
123
+ Following previous DETR-like works [2, 23, 30, 32, 56, 63], we use the L1 loss and the GIOU [39] loss for bounding box regressions. We follow GLIP [24] and use contrastive loss between predicted objects and language tokens for classification. Specifically, we dot product each query with text features to predict logits for each text token and then compute focal loss [27] for each logit. Box regression and classification costs are first used for bipartite matching between predictions and ground truths. We then calculate final losses between ground truths and matched predictions with the same loss components. Following DETR-like models, we add auxiliary loss after each decoder layer and after the encoder outputs.
124
+
125
+ # 4 Experiments
126
+
127
+ We conduct extensive experiments on three settings: a closed-set setting on the COCO detection benchmark (Sec. C.2), an open-set setting on zero-shot COCO, LVIS, and ODinW (Sec. 4.2), and a referring detection setting on RefCOCO $/ + / \mathrm{g}$ (Sec. 4.3). Ablations are then conducted to show the effectiveness of our model design (Sec. 4.5). We also explore a way to transfer a well-trained DINO to the
128
+
129
+ open-set scenario by training a few plug-in modules in Sec. C.1. The test of our model efficiency is presented in Sec. C.4.
130
+
131
+ # 4.1 Implementation Details
132
+
133
+ We trained two model variants, Grounding DINO T with Swin-T [31], and Grounding DINO L with Swin-L [31] as an image backbone, respectively. We leveraged BERT-base [7] from Hugging Face [48] as text backbones. As we focus more on the model performance on novel classes, we list zero-shot transfer and referring detection results in the main text.
134
+
135
+ By default, we use 900 queries in our model following DINO. We set the maximum text token number as 256. Using BERT as our text encoder, we follow BERT to tokenize texts with a BPE scheme [41]. We use six feature enhancer layers in the feature enhancer module. The cross-modality decoder is composed of six decoder layers as well. We leverage deformable attention [63] in image cross-attention layers.
136
+
137
+ Both matching costs and final losses include classification losses (or contrastive losses), box L1 losses, and GIOU [39] losses. Following DINO, we set the weight of classification costs, box L1 costs, and GIOU costs as 2.0, 5.0, and 2.0, respectively, during Hungarian matching. The corresponding loss weights are 1.0, 5.0, and 2.0 in the final loss calculation.
138
+
139
+ Our Swin Transformer Tiny models are trained on 16 Nvidia V100 GPUs with a total batch size of 32. We extract three image feature scales, from $8 \times$ to $32 \times$ . It is named "4scale" in DINO since we downsample the $32 \times$ feature map to $64 \times$ as an extra feature scale. For the model with Swin Transformer Large, we extract four image feature scales from backbones, from $4 \times$ to $32 \times$ . The model is trained on 64 Nvidia A100 GPUs with a total batch size of 64.
140
+
141
+ # 4.2 Zero-Shot Transfer of Grounding DINO
142
+
143
+ In this setting, we pre-train models on large-scale datasets and directly evaluate models on new datasets. We also list some fine-tuned results for a more thorough comparison of our model with prior works.
144
+
145
+ COCO Benchmark We compare Grounding DINO with GLIP and DINO in Table 2. We pre-train models on large-scale datasets and directly evaluate our model on the COCO benchmark. As the O365 dataset [42] has (nearly $^4$ ) covered all categories in COCO, we evaluate an O365 pre-trined DINO on COCO as a zero-shot baseline. The result shows that DINO performs better on the COCO zero-shot transfer than DyHead. Grounding DINO outperforms all previous models on the zero-shot transfer setting, with $+0.5\mathrm{AP}$ and $+1.8\mathrm{AP}$ compared with DINO and GLIP under the same setting. Grounding data is still helpful for Grounding DINO, introducing more than 1AP (48.1 vs. 46.7) on the zero-shot
146
+
147
+ transfer setting. With stronger backbones and larger data, Grounding DINO sets a new record of 52.5 AP on the COCO object detection benchmark without seeing any COCO images during training. Grounding DINO obtains a 62.6 AP on COCO minimal, outperforming DINO's 62.5 AP. When enlarging the input images by $1.5 \times$ , the benefits reduce. We suspect that the text branch enlarges the gap between models with different input images. Even though the performance plateaus with larger input size, Grounding DINO gets an impressive 63.0 AP on COCO test-dev with fine-tuning on the COCO dataset (See the number in brackets of Table 2).
148
+
149
+ LVIS Benchmark LVIS [14] is a dataset for long-tail objects. It contains more than 1000 categories for evaluation. We use LVIS as a downstream task to test the zero-shot abilities of our model. We use GLIP and DetCLIPv2 as baselines for our models. The results are shown in Table 3.
150
+
151
+ <table><tr><td>Model</td><td>Backbone</td><td>Pre-Training Data</td><td>AP</td><td>MiniVal [17]APr/APc/APf</td></tr><tr><td colspan="5">Zero-Shot Setting</td></tr><tr><td>GLIP-T (C)</td><td>Swin-T</td><td>O365,GoldG</td><td>24.9</td><td>17.7/19.5/31.0</td></tr><tr><td>GLIP-T</td><td>Swin-T</td><td>O365,GoldG,Cap4M</td><td>26.0</td><td>20.8/21.4/31.0</td></tr><tr><td>DetCLIPv2</td><td>Swin-T</td><td>O365,GoldG,CC15M</td><td>40.4</td><td>36.0/41.7/40.0</td></tr><tr><td>Grounding DINO T</td><td>Swin-T</td><td>O365,GoldG</td><td>25.6</td><td>14.4/19.6/32.2</td></tr><tr><td>Grounding DINO T</td><td>Swin-T</td><td>O365,GoldG,Cap4M</td><td>27.4</td><td>18.1/23.3/32.7</td></tr><tr><td>Grounding DINO L</td><td>Swin-L</td><td>O365,OI,GoldG,Cap4M,COCO,RefC</td><td>33.9</td><td>22.2/30.7/38.8</td></tr><tr><td colspan="5">Fine-Tune Setting</td></tr><tr><td>MDETR</td><td>RN101</td><td>GoldG,RefC</td><td>24.2</td><td>20.9/24.9/24.3</td></tr><tr><td>Mask R-CNN</td><td>RN101</td><td>-</td><td>33.3</td><td>26.3/34.0/33.9</td></tr><tr><td>DetCLIPv2 [50]</td><td>Swin-T</td><td>O365,GoldG,CC15M</td><td>50.7</td><td>44.3/52.4/50.3</td></tr><tr><td>Grounding DINO T</td><td>Swin-T</td><td>O365,GoldG</td><td>52.1</td><td>35.4/51.3/55.7</td></tr></table>
152
+
153
+ Table 3: Model results on LVIS.
154
+
155
+ We found two interesting phenomena in the results. First, Grounding DINO works better than common objects than GLIP, but worse on rare categories. We reviewed DETR-like models on LVIS and noted these models often exhibit lower rare category AP despite similar overall AP, like Table 2 of [8] and Table 6 of [17]. To our knowledge, no existing DETR-like models effectively address the rarity challenge in LVIS without extra training data, which may be a characteristic limitation of the architecture.
156
+
157
+ The other phenomenon is that Grounding DINO has larger gains with more data than GLIP. For example, Grounding DINO introduces $+1.8$ AP gains with the caption data Cap4M, whereas GLIP has only $+1.1$ AP. We believe that Grounding DINO has better scalability compared with GLIP. A larger-scale training will be left as our future work.
158
+
159
+ Although achieving better results than GLIP, we found that Grounding DINO is inferior to DetCLIPv2, which is trained on a larger scale data. This performance difference might be attributed to the disparity in data distribution between the training dataset and the LVIS dataset.
160
+
161
+ To unveil the full potential of Grounding DINO, we fine-tuned it on the LVIS dataset. Table 3 highlights the commendable capability of our model. Remarkably, despite being pre-trained only on the O365 and GoldG datasets, Grounding DINO outperforms DetCLIPv2-T by a margin of 1.5 AP. This result shows that Grounding DINO might have learned a better object-level representation which helps yield a better performance after fine-tuning (aligning with the target dataset). In our future work, we will perform more studies, including varying the semantic concept coverage of the training data and increasing the scale of the training data, to further improve the zero-shot generalization performance.
162
+
163
+ <table><tr><td>Model</td><td>Language Input</td><td>Backbone</td><td>Model Size</td><td>Pre-Training Data</td><td>Test
164
+ APrequency</td><td>APmedian</td></tr><tr><td colspan="7">Zero-Shot Setting</td></tr><tr><td>MDETR [17]</td><td>✓</td><td>ENB5 [45]</td><td>169M</td><td>GoldG,RefC</td><td>10.7</td><td>3.0</td></tr><tr><td>OWL-ViT [34]</td><td>���</td><td>ViT L/14(CLIP)</td><td>&gt;1243M</td><td>O365, VG</td><td>18.8</td><td>9.8</td></tr><tr><td>GLIP-T [24]</td><td>✓</td><td>Swin-T</td><td>232M</td><td>O365,GoldG,Cap4M</td><td>19.6</td><td>5.1</td></tr><tr><td>OmDet [59]</td><td>✓</td><td>ConvNeXt-B</td><td>230M</td><td>COCO,O365,LVIS,PhraseCut</td><td>19.7</td><td>10.8</td></tr><tr><td>GLIPv2-T [58]</td><td>✓</td><td>Swin-T</td><td>232M</td><td>O365,GoldG,Cap4M</td><td>22.3</td><td>8.9</td></tr><tr><td>DetCLIP [51]</td><td>✓</td><td>Swin-L</td><td>267M</td><td>O365,GoldG,YFCC1M</td><td>24.9</td><td>18.3</td></tr><tr><td>Florence [53]</td><td>✓</td><td>CoSwinH</td><td>≈841M</td><td>FLD900M,O365,GoldG</td><td>25.8</td><td>14.3</td></tr><tr><td>Grounding DINO T(Ours)</td><td>✓</td><td>Swin-T</td><td>172M</td><td>O365,GoldG</td><td>20.0</td><td>9.5</td></tr><tr><td>Grounding DINO T(Ours)</td><td>✓</td><td>Swin-T</td><td>172M</td><td>O365,GoldG,Cap4M</td><td>22.3</td><td>11.9</td></tr><tr><td>Grounding DINO L(Ours)</td><td>✓</td><td>Swin-L</td><td>341M</td><td>O365,O1,GoldG,Cap4M,COCO,RefC</td><td>26.1</td><td>18.4</td></tr><tr><td colspan="7">Few-Shot Setting</td></tr><tr><td>DyHead-T [5]</td><td>✗</td><td>Swin-T</td><td>≈100M</td><td>O365</td><td>37.5</td><td>36.7</td></tr><tr><td>GLIP-T [24]</td><td>✓</td><td>Swin-T</td><td>232M</td><td>O365,GoldG,Cap4M</td><td>38.9</td><td>33.7</td></tr><tr><td>DINO-Swin-T [56]</td><td>✗</td><td>Swin-T</td><td>49M</td><td>O365</td><td>41.2</td><td>41.1</td></tr><tr><td>OmDet [59]</td><td>✓</td><td>ConvNeXt-B</td><td>230M</td><td>COCO,O365,LVIS,PhraseCut</td><td>42.4</td><td>41.7</td></tr><tr><td>Grounding DINO T(Ours)</td><td>✓</td><td>Swin-T</td><td>172M</td><td>O365,GoldG</td><td>46.4</td><td>51.1</td></tr><tr><td colspan="7">Full-Shot Setting</td></tr><tr><td>GLIP-T [24]</td><td>✓</td><td>Swin-T</td><td>232M</td><td>O365,GoldG,Cap4M</td><td>62.6</td><td>62.1</td></tr><tr><td>DyHead-T [5]</td><td>✗</td><td>Swin-T</td><td>≈100M</td><td>O365</td><td>63.2</td><td>64.9</td></tr><tr><td>DINO-Swin-T [56]</td><td>✗</td><td>Swin-T</td><td>49M</td><td>O365</td><td>66.7</td><td>68.5</td></tr><tr><td>OmDet [59]</td><td>✓</td><td>ConvNeXt-B</td><td>230M</td><td>COCO,O365,LVIS,PhraseCut</td><td>67.1</td><td>71.2</td></tr><tr><td>DINO-Swin-L [56]</td><td>✗</td><td>Swin-L</td><td>218M</td><td>O365</td><td>68.8</td><td>70.7</td></tr><tr><td>Grounding DINO T(Ours)</td><td>✓</td><td>Swin-T</td><td>172M</td><td>O365,GoldG</td><td>70.7</td><td>76.2</td></tr></table>
165
+
166
+ Table 4: Model results on the ODinW benchmark.
167
+
168
+ ODinW Benchmark ODinW (Object Detection in the Wild) [22] is a more challenging benchmark to test model performance under real-world scenarios. It collects more than 35 datasets for evaluation. We report three settings, zero-shot, few-shot, and full-shot results in Table 4. Grounding DINO performs well on this benchmark. With only O365 and GoldG for pre-train, Grounding DINO T outperforms DINO on few-shot and full-shot settings. Impressively, Grounding DINO with a Swin-T backbone outperforms DINO with Swin-L on the full-shot setting.
169
+
170
+ Grounding DINO outperforms GLIP under the same backbone for the zero-shot setting. Grounding DINO and GLIPv2-T show similar $AP_{average}$ . However, a key distinction lies in the $AP_{median}$ , where Grounding DINO significantly outperforms GLIPv2-T (11.9 vs 8.9). This suggests that while GLIPv2 may exhibit larger performance variance across different datasets, Grounding DINO maintains a more consistent performance level. GLIPv2 incorporates advanced techniques like masked text training and cross-instance contrastive learning, making it
171
+
172
+ more complex than our Grounding DINO model. Moreover, our model is more compact (172M parameters) compared to GLIPv2 (232M parameters). These factors combined—performance consistency, model complexity, and size—should address concerns about our model's capability in true open-set scenarios.
173
+
174
+ Grounding DINO L set a new record on ODimW zero-shot with a 26.1 AP, even outperforming the giant Florence models [53]. The results show the generalization and scalability of Grounding DINO.
175
+
176
+ # 4.3 Referring Object Detection Settings
177
+
178
+ We further explore our models' performances on the REC task. We leverage GLIP [24] as our baseline. We evaluate the model performance on RefCOCO/+/g directly. The results are shown in Table 5. Grounding DINO outperforms GLIP under the same setting. Nevertheless, both GLIP and Grounding DINO perform not well without REC data. More training data like caption data or larger models help the final performance, but quite minor. After injecting RefCOCO/+/g data into training, Grounding DINO obtains significant gains. The results reveal that most nowadays open-set object detectors need to pay more attention for a more fine-grained detection.
179
+
180
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Backbone</td><td rowspan="2">Pre-Training Data</td><td rowspan="2">Fine-tuning</td><td colspan="3">RefCOCO</td><td colspan="3">RefCOCO+</td><td colspan="2">RefCOCOg</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>test</td></tr><tr><td>MAntNet [52]</td><td>R101</td><td>None</td><td>✓</td><td>76.65</td><td>81.14</td><td>69.99</td><td>65.33</td><td>71.62</td><td>56.02</td><td>66.58</td><td>67.27</td></tr><tr><td>VGTR [9]</td><td>R101</td><td>None</td><td>✓</td><td>79.20</td><td>82.32</td><td>73.78</td><td>63.91</td><td>70.09</td><td>56.51</td><td>65.73</td><td>67.23</td></tr><tr><td>TransVG [6]</td><td>R101</td><td>None</td><td>✓</td><td>81.02</td><td>82.72</td><td>78.35</td><td>64.82</td><td>70.70</td><td>56.94</td><td>68.67</td><td>67.73</td></tr><tr><td>VILLA_L* [10]</td><td>R101</td><td>CC, SBU, COCO, VG</td><td>✓</td><td>82.39</td><td>87.48</td><td>74.84</td><td>76.17</td><td>81.54</td><td>66.84</td><td>76.18</td><td>76.71</td></tr><tr><td>RefTR [25]</td><td>R101</td><td>VG</td><td>✓</td><td>85.65</td><td>88.73</td><td>81.16</td><td>77.55</td><td>82.26</td><td>68.99</td><td>79.25</td><td>80.01</td></tr><tr><td>MDETR [17]</td><td>R101</td><td>GoldG,RefC</td><td>✓</td><td>86.75</td><td>89.58</td><td>81.41</td><td>79.52</td><td>84.09</td><td>70.62</td><td>81.64</td><td>80.89</td></tr><tr><td>DQ-DETR [44]</td><td>R101</td><td>GoldG,RefC</td><td>✓</td><td>88.63</td><td>91.04</td><td>83.51</td><td>81.66</td><td>86.15</td><td>73.21</td><td>82.76</td><td>83.44</td></tr><tr><td>GLIP-T(B)</td><td>Swin-T</td><td>O365,GoldG</td><td></td><td>49.96</td><td>54.69</td><td>43.06</td><td>49.01</td><td>53.44</td><td>43.42</td><td>65.58</td><td>66.08</td></tr><tr><td>GLIP-T</td><td>Swin-T</td><td>O365,GoldG,Cap4M</td><td></td><td>50.42</td><td>54.30</td><td>43.83</td><td>49.50</td><td>52.78</td><td>44.59</td><td>66.09</td><td>66.89</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG</td><td></td><td>50.41</td><td>57.24</td><td>43.21</td><td>51.40</td><td>57.59</td><td>45.81</td><td>67.46</td><td>67.13</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG,RefC</td><td></td><td>73.98</td><td>74.88</td><td>59.29</td><td>66.81</td><td>69.91</td><td>56.09</td><td>71.06</td><td>72.07</td></tr><tr><td>Grounding DINO T (Ours)</td><td>Swin-T</td><td>O365,GoldG,RefC</td><td>✓</td><td>89.19</td><td>91.86</td><td>85.99</td><td>81.09</td><td>87.40</td><td>74.71</td><td>84.15</td><td>84.94</td></tr><tr><td>Grounding DINO L (Ours)*</td><td>Swin-L</td><td>O365,OI,GoldG,Cap4M,COCO,RefC</td><td>✓</td><td>90.56</td><td>93.19</td><td>88.24</td><td>82.75</td><td>88.95</td><td>75.92</td><td>86.13</td><td>87.02</td></tr></table>
181
+
182
+ Table 5: Top-1 accuracy comparison on the referring expression comprehension task. We mark the best results in bold. All models are trained with a ResNet-101 backbone. We use the notations "CC", "SBU", "VG", "OI", "O365", and "YFCC" for Conceptual Captions [43], SBU Captions [35], Visual Genome [19], OpenImage [21], Objects365 [62], YFCC100M [46] respectively. The term "RefC" is used for RefCOCO, RefCOCO+, and RefCOCOg three datasets. * There might be a data leak since COCO includes validation images in RefC. But the annotations of the two datasets are different.
183
+
184
+ # 4.4 Effects of RefC and COCO Data
185
+
186
+ We add the $\mathrm{RefCOCO} / + / \mathrm{g}$ (we note it as "RefC" in tables) and COCO into training in some settings. We explore the influence of these data in Table 6.
187
+
188
+ The results show that RefC helps improve the COCO zero-shot and fine-tuning performance but hurts the LVIS and ODinW results. With COCO introduced, the COCO results are greatly improved. It shows that COCO brings marginal improvements in LVIS and slight decreases on ODinW.
189
+
190
+ <table><tr><td rowspan="2">Model</td><td rowspan="2">Pre-Train</td><td colspan="2">COCO minival</td><td>LVIS minival</td><td>ODinW</td></tr><tr><td>Zero-Shot</td><td>Fine-Tune</td><td>Zero-Shot</td><td>Zero-Shot</td></tr><tr><td>Grounding DINO T</td><td>O365,GoldG</td><td>48.1</td><td>57.1</td><td>25.6</td><td>20.0</td></tr><tr><td>Grounding DINO T</td><td>O365,GoldG,RefC</td><td>48.5</td><td>57.3</td><td>21.9</td><td>17.7</td></tr><tr><td>Grounding DINO T</td><td>O365,GoldG,RefC,COCO</td><td>56.1</td><td>57.5</td><td>22.3</td><td>17.4</td></tr></table>
191
+
192
+ Table 6: Impacts of RefC and COCO data for open-set settings. All models are trained with a Swin Transformer Tiny backbone.
193
+
194
+ # 4.5 Ablations
195
+
196
+ We conduct ablation studies in this section. We propose a tight fusion grounding model for open-set object detection and a sub-sentence level text prompt. To verify the effectiveness of the model design, we remove some fusion blocks for different variants. Results are shown in Table 7. All models are pre-trained on O365 with a Swin-T backbone.
197
+
198
+ The results show that encoder fusion significantly improves model performance on both COCO and LVIS datasets. The results from comparing model #1 with the baseline model #0 validate this observation. Other techniques, such as language-guided query selection, text cross-attention, and sub-sentence text prompt, also contribute positively to the LVIS performance, yielding significant gains of $+3.0$ AP, $+1.8$ AP, and $+0.5$ AP, respectively. Additionally, these methods enhance the COCO zero-shot performance, further underscoring their effectiveness. However, we observed that language-guided query selection and sub-sentence text prompt had minimal impact on the COCO fine-tune performance. This outcome is reasonable, given that these methods do not alter model parameters or add computational burdens. Text cross-attention, while introducing fewer parameters than encoder fusion, showed less performance improvement compared to encoder fusion $(+0.6$ vs. $+0.8)$ . This finding suggests that fine-tuning performance is predominantly influenced by the model's parameters, indicating that scaling models is a promising direction for enhancing performance.
199
+
200
+ # 5 Conclusion
201
+
202
+ We have presented a Grounding DINO model in this paper. Grounding DINO extends DINO to open-set object detection, enabling it to detect arbitrary objects given texts as queries. We review open-set object detector designs and propose a tight fusion approach to better fusing cross-modality information. We propose a sub-sentence level representation to use detection data for text prompts in a more reasonable way. The results show the effectiveness of our model design and
203
+
204
+ <table><tr><td rowspan="2">#ID</td><td rowspan="2">Model</td><td colspan="2">COCO minimal</td><td>LVIS minimal</td></tr><tr><td>Zero-Shot</td><td>Fine-Tune</td><td>Zero-Shot</td></tr><tr><td>0</td><td>Grounding DINO (Full Model)</td><td>46.7</td><td>56.9</td><td>16.1</td></tr><tr><td>1</td><td>w/o encoder fusion</td><td>45.8</td><td>56.1</td><td>13.1</td></tr><tr><td>2</td><td>static query selection</td><td>46.3</td><td>56.6</td><td>13.6</td></tr><tr><td>3</td><td>w/o text cross-attention</td><td>46.1</td><td>56.3</td><td>14.3</td></tr><tr><td>4</td><td>word-level text prompt</td><td>46.4</td><td>56.6</td><td>15.6</td></tr></table>
205
+
206
+ Table 7: Ablations for our model. All models are trained on the O365 dataset with a Swin Transformer Tiny backbone.
207
+
208
+ fusion approach. Moreover, we extend open-set object detection to REC tasks and perform evaluation accordingly. We show that existing open-set detectors do not work well for REC data without fine-tuning. Hence we call extra attention to REC zero-shot performance in future studies.
209
+
210
+ Limitations: Despite the great performance on open-set object detection settings, Grounding DINO cannot be used for segmentation tasks like GLIPv2. Our training data is less than the largest GLIP model, which may limit our final performance. Moreover, we find that our model will produce false positive results in some cases, which may need more techniques or data to reduce the hallucination.
211
+
212
+ Social Impacts: The use of deep learning models, such as this one, exposes them to vulnerabilities through adversarial attacks. Additionally, the accuracy and correctness of the model's outputs cannot be guaranteed. There is also the risk that the open-set detection capabilities of the model could be exploited for unlawful purposes.
213
+
214
+ # Acknowledgement
215
+
216
+ We thank the authors of GLIP [24]: Lianian Harold Li, Pengchuan Zhang, and Haotian Zhang for their helpful discussions and instructions. We also thank Tiancheng Zhao, the author of OmDet [59], and Jianhua Han, the author of DetCLIP [51], for their response to their model details. We thank He Cao of The Hong Kong University of Science and Technology for his help on diffusion models.
217
+
218
+ # References
219
+
220
+ 1. Anderson, P., He, X., Buehler, C., Teney, D., Johnson, M., Gould, S., Zhang, L.: Bottom-up and top-down attention for image captioning and visual question answering. computer vision and pattern recognition (2017)
221
+ 2. Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., Zagoruyko, S.: End-to-end object detection with transformers. In: European Conference on Computer Vision. pp. 213-229. Springer (2020)
222
+ 3. Chen, K., Pang, J., Wang, J., Xiong, Y., Li, X., Sun, S., Feng, W., Liu, Z., Shi, J., Ouyang, W., et al.: Hybrid task cascade for instance segmentation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 4974-4983 (2019)
223
+
224
+ 4. Chen, Q., Chen, X., Wang, J., Feng, H., Han, J., Ding, E., Zeng, G., Wang, J.: Group DETR: Fast detr training with group-wise one-to-many assignment (2022)
225
+ 5. Dai, X., Chen, Y., Xiao, B., Chen, D., Liu, M., Yuan, L., Zhang, L.: Dynamic head: Unifying object detection heads with attentions. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 7373-7382 (2021)
226
+ 6. Deng, J., Yang, Z., Chen, T., Zhou, W., Li, H.: Transvg: End-to-end visual grounding with transformers. arXiv: Computer Vision and Pattern Recognition (2021)
227
+ 7. Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805 (2018)
228
+ 8. Dong, N., Zhang, Y., Ding, M., Lee, G.H.: Boosting long-tailed object detection via step-wise learning on smooth-tail data (2023), https://arxiv.org/abs/2305.12833
229
+ 9. Du, Y., Fu, Z., Liu, Q., Wang, Y.: Visual grounding with transformers. (2021)
230
+ 10. Gan, Z., Chen, Y.C., Li, L., Zhu, C., Cheng, Y., Liu, J.: Large-scale adversarial training for vision-and-language representation learning. neural information processing systems (2020)
231
+ 11. Gao, P., Geng, S., Zhang, R., Ma, T., Fang, R., Zhang, Y., Li, H., Qiao, Y.: Clip-adapter: Better vision-language models with feature adapters. arXiv preprint arXiv:2110.04544 (2021)
232
+ 12. Gao, P., Zheng, M., Wang, X., Dai, J., Li, H.: Fast convergence of DETR with spatially modulated co-attention. arXiv preprint arXiv:2101.07448 (2021)
233
+ 13. Gu, X., Lin, T.Y., Kuo, W., Cui, Y.: Open-vocabulary object detection via vision and language knowledge distillation. Learning (2021)
234
+ 14. Gupta, A., Dollar, P., Girshick, R.: Lvis: A dataset for large vocabulary instance segmentation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5356-5364 (2019)
235
+ 15. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). pp. 770-778 (2016)
236
+ 16. Jia, D., Yuan, Y., He, H., Wu, X., Yu, H., Lin, W., Sun, L., Zhang, C., Hu, H.: DETRs with hybrid matching (2022)
237
+ 17. Kamath, A., Singh, M., LeCun, Y., Synnaeve, G., Misra, I., Carion, N.: MDETR-modulated detection for end-to-end multi-modal understanding. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 1780-1790 (2021)
238
+ 18. Krasin, I., Duerig, T., Alldrin, N., Ferrari, V., Abu-El-Haija, S., Kuznetsova, A., Rom, H., Uijlings, J., Popov, S., Veit, A., et al.: Openimages: A public dataset for large-scale multi-label and multi-class image classification. Dataset available from https://github.com/openimages2(3), 18 (2017)
239
+ 19. Krishna, R., Zhu, Y., Groth, O., Johnson, J., Hata, K., Kravitz, J., Chen, S., Kalantidis, Y., Li, L.J., Shamma, D.A., Bernstein, M.S., Fei-Fei, L.: Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision (2017)
240
+ 20. Kuo, W., Bertsch, F., Li, W., Piergiovanni, A., Saffar, M., Angelova, A.: Findit: Generalized localization with natural language queries (2022)
241
+ 21. Kuznetsova, A., Rom, H., Alldrin, N., Uijlings, J., Krasin, I., Pont-Tuset, J., Kamali, S., Popov, S., Malloci, M., Kolesnikov, A., Duerig, T., Ferrari, V.: The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. arXiv: Computer Vision and Pattern Recognition (2018)
242
+
243
+ 22. Li, C., Liu, H., Li, L.H., Zhang, P., Aneja, J., Yang, J., Jin, P., Lee, Y.J., Hu, H., Liu, Z., Gao, J.: Elevater: A benchmark and toolkit for evaluating language-augmented visual models (2022)
244
+ 23. Li, F., Zhang, H., Liu, S., Guo, J., Ni, L.M., Zhang, L.: DN-DETR: Accelerate DETR training by introducing query denoising. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 13619–13627 (2022)
245
+ 24. Li, L.H., Zhang, P., Zhang, H., Yang, J., Li, C., Zhong, Y., Wang, L., Yuan, L., Zhang, L., Hwang, J.N., et al.: Grounded language-image pre-training. arXiv preprint arXiv:2112.03857 (2021)
246
+ 25. Li, M., Sigal, L.: Referring transformer: A one-step approach to multi-task visual grounding. arXiv: Computer Vision and Pattern Recognition (2021)
247
+ 26. Li, Y., Liu, H., Wu, Q., Mu, F., Yang, J., Gao, J., Li, C., Lee, Y.J.: GLIGEN: Open-set grounded text-to-image generation. CVPR (2023)
248
+ 27. Lin, T.Y., Goyal, P., Girshick, R., He, K., Dollar, P.: Focal loss for dense object detection. In: Proceedings of the IEEE international conference on computer vision. pp. 2980-2988 (2017)
249
+ 28. Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dólar, P., Zitnick, C.L.: Microsoft coco: Common objects in context. In: European conference on computer vision. pp. 740-755. Springer (2014)
250
+ 29. Liu, J., Wang, L., Yang, M.H.: Referring expression generation and comprehension via attributes. international conference on computer vision (2017)
251
+ 30. Liu, S., Li, F., Zhang, H., Yang, X., Qi, X., Su, H., Zhu, J., Zhang, L.: DABDETR: Dynamic anchor boxes are better queries for DETR. In: International Conference on Learning Representations (2022), https://openreview.net/forum?id=oMI9Pj0b9J1
252
+ 31. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., Guo, B.: Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030 (2021)
253
+ 32. Meng, D., Chen, X., Fan, Z., Zeng, G., Li, H., Yuan, Y., Sun, L., Wang, J.: Conditional DETR for fast training convergence. arXiv preprint arXiv:2108.06152 (2021)
254
+ 33. Miao, P., Su, W., Wang, L., Fu, Y., Li, X.: Referring expression comprehension via cross-level multi-modal fusion. ArXiv abs/2204.09957 (2022)
255
+ 34. Minderer, M., Gritsenko, A., Stone, A., Neumann, M., Weissenborn, D., Dosovitskiy, A., Mahendran, A., Arnab, A., Dehghani, M., Shen, Z., Wang, X., Zhai, X., Kipf, T., Houlsby, N.: Simple open-vocabulary object detection with vision transformers (2022)
256
+ 35. Ordonez, V., Kulkarni, G., Berg, T.L.: Im2text: Describing images using 1 million captioned photographs. neural information processing systems (2011)
257
+ 36. Plummer, B.A., Wang, L., Cervantes, C.M., Caicedo, J.C., Hockenmaier, J., Lazebnik, S.: Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In: Proceedings of the IEEE international conference on computer vision. pp. 2641-2649 (2015)
258
+ 37. Plummer, B.A., Wang, L., Cervantes, C.M., Caicedo, J.C., Hockenmaier, J., Lazebnik, S.: Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. International Journal of Computer Vision (2015)
259
+ 38. Ren, S., He, K., Girshick, R., Sun, J.: Faster r-cnn: Towards real-time object detection with region proposal networks. IEEE Transactions on Pattern Analysis and Machine Intelligence 39(6), 1137-1149 (2017)
260
+
261
+ 39. Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., Savarese, S.: Generalized intersection over union: A metric and a loss for bounding box regression. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 658-666 (2019)
262
+ 40. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models (2021)
263
+ 41. Sennrich, R., Haddow, B., Birch, A.: Neural machine translation of rare words with subword units. meeting of the association for computational linguistics (2015)
264
+ 42. Shao, S., Li, Z., Zhang, T., Peng, C., Yu, G., Zhang, X., Li, J., Sun, J.: Objects365: A large-scale, high-quality dataset for object detection. In: Proceedings of the IEEE international conference on computer vision. pp. 8430-8439 (2019)
265
+ 43. Sharma, P., Ding, N., Goodman, S., Soricut, R.: Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. meeting of the association for computational linguistics (2018)
266
+ 44. Shilong, L., Yaoyuan, L., Shijia, H., Feng, L., Hao, Z., Hang, S., Jun, Z., Lei, Z.: DQ-DETR: Dual query detection transformer for phrase extraction and grounding. In: Proceedings of the AAAI Conference on Artificial Intelligence (2023)
267
+ 45. Tan, M., Le, Q.V.: Efficientnet: Rethinking model scaling for convolutional neural networks. international conference on machine learning (2019)
268
+ 46. Thomee, B., Shamma, D.A., Friedland, G., Elizalde, B., Ni, K., Poland, D.N., Borth, D., Li, L.J.: Yfcc100m: the new data in multimedia research. Communications of The ACM (2016)
269
+ 47. Wang, Y., Zhang, X., Yang, T., Sun, J.: Anchor DETR: Query design for transformer-based detector. national conference on artificial intelligence (2021)
270
+ 48. Wolf, T., Debut, L., Sanh, V., Chaumont, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., et al.: Huggingface's transformers: State-of-the-art natural language processing. arXiv preprint arXiv:1910.03771 (2019)
271
+ 49. Xu, M., Zhang, Z., Hu, H., Wang, J., Wang, L., Wei, F., Bai, X., Liu, Z.: End-to-end semi-supervised object detection with soft teacher. arXiv preprint arXiv:2106.09018 (2021)
272
+ 50. Yao, L., Han, J., Liang, X., Xu, D., Zhang, W., Li, Z., Xu, H.: DetCLIPv2: Scalable Open-Vocabulary Object Detection Pre-training via Word-Region Alignment (2023)
273
+ 51. Yao, L., Han, J., Wen, Y., Liang, X., Xu, D., Zhang, W., Li, Z., Xu, C., Xu, H.: Detclip: Dictionary-enriched visual-concept paralleled pre-training for open-world detection (2022)
274
+ 52. Yu, L., Lin, Z., Shen, X., Yang, J., Lu, X., Bansal, M., Berg, T.L.: Matttnet: Modular attention network for referring expression comprehension. computer vision and pattern recognition (2018)
275
+ 53. Yuan, L., Chen, D., Chen, Y.L., Codella, N., Dai, X., Gao, J., Hu, H., Huang, X., Li, B., Li, C., Liu, C., Liu, M., Liu, Z., Lu, Y., Shi, Y., Wang, L., Wang, J., Xiao, B., Xiao, Z., Yang, J., Zeng, M., Zhou, L., Zhang, P.: Florence: A new foundation model for computer vision (2022)
276
+ 54. Zang, Y., Li, W., Zhou, K., Huang, C., Loy, C.C.: Open-vocabulary DETR with conditional matching (2022)
277
+ 55. Zareian, A., Rosa, K.D., Hu, D.H., Chang, S.F.: Open-vocabulary object detection using captions. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 14393-14402 (2021)
278
+ 56. Zhang, H., Li, F., Liu, S., Zhang, L., Su, H., Zhu, J., Ni, L.M., Shum, H.Y.: DINO: DETR with improved denoising anchor boxes for end-to-end object detection (2022)
279
+
280
+ 57. Zhang, H., Zhang, P., Hu, X., Chen, Y.C., Li, L.H., Dai, X., Wang, L., Yuan, L., Hwang, J.N., Gao, J.: GLIPv2: Unifying Localization and Vision-Language Understanding (2022)
281
+ 58. Zhang, H., Zhang, P., Hu, X., Chen, Y.C., Li, L.H., Dai, X., Wang, L., Yuan, L., Hwang, J.N., Gao, J.: Glipv2: Unifying localization and vision-language understanding (2022)
282
+ 59. Zhao, T., Liu, P., Lu, X., Lee, K.: Omdet: Language-aware object detection with large-scale vision-language multi-dataset pre-training (2022)
283
+ 60. Zhong, Y., Yang, J., Zhang, P., Li, C., Codella, N., Li, L.H., Zhou, L., Dai, X., Yuan, L., Li, Y., Gao, J.: Regionclip: Region-based language-image pretraining (2022)
284
+ 61. Zhou, X., Girdhar, R., Joulin, A., Krahenbuhl, P., Misra, I.: Detecting twenty-thousand classes using image-level supervision. In: ECCV (2022)
285
+ 62. Zhou, X., Wang, D., Krähenbuhl, P.: Objects as points. arXiv preprint arXiv:1904.07850 (2019)
286
+ 63. Zhu, X., Su, W., Lu, L., Li, B., Wang, X., Dai, J.: Deformable DETR: Deformable transformers for end-to-end object detection. In: ICLR 2021: The Ninth International Conference on Learning Representations (2021)
2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a203a9048ffb127831a3f267ee9893461318ba9aa24629d7bbba54b0de0b77dc
3
+ size 556181
2024/Grounding DINO_ Marrying DINO with Grounded Pre-Training for Open-Set Object Detection/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Grounding Image Matching in 3D with MASt3R/51268d49-0131-4ab5-9320-905d8065a0e2_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Grounding Image Matching in 3D with MASt3R/51268d49-0131-4ab5-9320-905d8065a0e2_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Grounding Image Matching in 3D with MASt3R/51268d49-0131-4ab5-9320-905d8065a0e2_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:486aab8e9a98128dbf793439329d884f03bf3886c146a27932272b1bb54a9ca7
3
+ size 7320779
2024/Grounding Image Matching in 3D with MASt3R/full.md ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Grounding Image Matching in 3D with MAST3R
2
+
3
+ Vincent Leroy, Yohann Cabon, and Jerome Revaud
4
+
5
+ Naver Labs Europe <firstname>.<lastname>@naverlabs.com
6
+
7
+ Abstract. Image Matching is a core component of all best-performing algorithms and pipelines in 3D vision. Yet despite matching being fundamentally a 3D problem, intrinsically linked to camera pose and scene geometry, it is typically treated as a 2D problem. This makes sense as the goal of matching is to establish correspondences between 2D pixel fields, but also seems like a potentially hazardous choice. In this work, we take a different stance and propose to cast matching as a 3D task with DUSt3R, a recent and powerful 3D reconstruction framework based on Transformers. Based on pointmaps regression, this method displayed impressive robustness in matching views with extreme viewpoint changes, yet with limited accuracy. We aim here to improve the matching capabilities of such an approach while preserving its robustness. We thus propose to augment the DUSt3R network with a new head that outputs dense local features, trained with an additional matching loss. We further address the issue of quadratic complexity of dense matching, which becomes prohibitively slow for downstream applications if not treated carefully. We introduce a fast reciprocal matching scheme that not only accelerates matching by orders of magnitude, but also comes with theoretical guarantees and, lastly, yields improved results. Extensive experiments show that our approach, coined MAST3R, significantly outperforms the state of the art on multiple matching tasks. In particular, it largely outperforms the best published methods on the challenging Map-free localization dataset.
8
+
9
+ # 1 Introduction
10
+
11
+ Being able to establish correspondences between pixels across different images of the same scene, denoted as image matching, constitutes a core component of all 3D vision applications, spanning mapping [15, 63], localization [43, 78], navigation [16], photogrammetry [35, 68] and autonomous robotics in general [67, 92]. State-of-the-art methods for visual localization, for instance, overwhelmingly rely upon image matching during the offline mapping stage, e.g. using COLMAP [81], as well as during the online localization step, typically using PnP [31]. In this paper, we focus on this core task and aim at producing, given two images, a list of pairwise correspondences, denoted as matches. In particular, we seek to output highly accurate and dense matches that are robust to viewpoint and illumination changes because these are, in the end, the limiting factor for real-world applications [38].
12
+
13
+ In the past, matching methods have traditionally been cast into a three-steps pipeline consisting of first extracting sparse and repeatable keypoints, then describing them with locally invariant features, and finally pairing the discrete set of keypoints by comparing their distance in the feature space. This pipeline has several merits: keypoint detectors are precise under low-to-moderate illumination and viewpoint changes, and the sparsity of keypoints makes the problem computationally tractable, enabling very precise matching in milliseconds whenever the images are viewed under similar conditions. This explains the success and persistence of SIFT [54] in 3D reconstruction pipelines like COLMAP [81].
14
+
15
+ Unfortunately, keypoint-based methods, by reducing matching to a bag-of-keypoint problem, discard the global geometric context of the correspondence task. This makes them especially prone to errors in situation with repetitive patterns or low-texture areas, which are in fact ill-posed for local descriptors. One way to remedy this is to introduce a global optimization strategy during the pairing step, typically leveraging some learned priors about matching, which SuperGlue and similar methods successfully implemented [53, 78]. However, leveraging global context during matching might be too late, if keypoints and their descriptors do not already encode enough information. For this reason, another direction is to consider dense holistic matching, i.e. avoiding keypoints altogether, and matching the entire image at once. This recently became possible with the advent of mechanism for global attention [100]. Such approaches, like LoFTR [87], thus consider images as a whole and the resulting set of correspondences is dense and more robust to repetitive patterns and low-texture areas [45, 72, 73, 87]. This led to new state-of-the-art results on the most challenging benchmarks, such as the Map-free localization benchmark [5].
16
+
17
+ Nevertheless, even a top-performing methods like LoFTR [87] score a relatively disappointing VCRE precision of $34\%$ on the Map-free localization benchmark. We argue that this is because, so far, practically all matching approaches have been treating matching as a 2D problem in image space. In reality, the formulation of the matching task is intrinsically and fundamentally a 3D problem: pixels that correspond are pixels that observe the same 3D point. Indeed, 2D pixel correspondences and a relative camera pose in 3D space are two sides of the same coin, as they are directly related by the epipolar matrix [38]. Another evidence is that the current top-performer on the Map-free benchmark is DUSt3R [106], a method initially designed for 3D reconstruction rather than matching, and for which matches are only a by-product of the 3D reconstruction. Yet, correspondences obtained naively from this 3D output currently outperform all other keypoint- and matching-based methods on the Map-free benchmark.
18
+
19
+ In this paper, we point out that, while DUSt3R [106] can indeed be used for matching, it is relatively imprecise, despite being extremely robust to viewpoint changes. To remedy this flaw, we propose to attach a second head that regresses dense local feature maps, and train it with an InfoNCE loss. The resulting architecture, called MAST3R for "Matching And Stereo 3D Reconstruction" outperforms DUSt3R on multiple benchmarks. To get pixel-accurate matches, we propose a coarse-to-fine matching scheme during which matching is performed at
20
+
21
+ several scales. Each matching step involves extracting reciprocal matches from dense feature maps which, perhaps counter-intuitively, is by far more time consuming than computing the dense feature maps themselves. Our proposed solution is a faster algorithm for finding reciprocal matches that is almost two orders of magnitude faster while improving the pose estimation quality.
22
+
23
+ To summarize, we claim three main contributions. First, we propose MASt3R, a 3D-aware matching approach building on the recently released DUSt3R framework. It outputs local feature maps that enable highly accurate and extremely robust matching. Second, we propose a coarse-to-fine matching scheme associated with a fast matching algorithm, enabling to work with high-resolution images. Third, MASt3R significantly outperform the state-of-the-art on several absolute and relative pose localization benchmarks.
24
+
25
+ # 2 Related works
26
+
27
+ Keypoint-based matching has been a cornerstone of computer vision. Matching is carried out in three distinct stages: keypoint detection, locally invariant description and nearest-neighbor search in descriptor space. Departing from the former handcrafted methods like SIFT [54,76], modern approaches have been shifting towards learning-based data-driven schemes for detecting keypoints [9,62,101,121], describing them [7,34,39,93] or both at the same time [11,21,55,56,74,102]. Overall, keypoint-based approaches are predominant in many benchmarks [7, 8,37,46,80], underscoring their enduring value in tasks requiring high precision and speed [19,80]. One notable issue, however, is they reduce matching to a local problem, i.e. discarding its holistic nature. SuperGlue and similar approaches [53,78] thus propose to perform global reasoning in the last pairing step leveraging stronger priors to guide matching, yet leaving the detection and description local. While successful, it is still limited by the local nature of keypoints and their inability to remain invariant to strong viewpoint changes. Dense matching. In contrast to keypoint-based approaches, semi-dense [12, 17,45,48,87,90] and dense approaches [28-30,60,97-99,126] offer a different paradigm for establishing image correspondences, considering all possible pixel associations. Very reminiscent of optical flow approaches [23,42,44,84,85,91], they are usually employing coarse-to-fine schemes to decrease computational complexity. Overall, these methods aim to consider matching from a global perspective, at the cost of increased computational resources. Dense matching has proven effective in scenarios where detailed spatial relationships and textures are critical for understanding scene geometry, leading to top performance on many benchmarks [4-6,61,78,87] that are especially challenging for keypoints due to extreme changes in viewpoint or illumination. These approaches still cast matching as a 2D problem, which limits their usage for visual localization.
28
+
29
+ Camera Pose estimation techniques vary widely, but the most successful strategies, for speed, accuracy and robustness trade-off, are fundamentally based on pixel matching [77, 81, 109]. The constant improvement of matching methods has fostered the introduction of more challenging camera pose estimation bench
30
+
31
+ ![](images/6fd3fa9c8f3ceede898af60a15b34b2485de4ef217a3ef829099152a553ba20d.jpg)
32
+ Fig. 1: Overview of the proposed approach. Given two input images to match, our network regresses for each image and each input pixel a 3D point, a confidence value and a local feature. Plugging either 3D points or local features into our fast reciprocal NN matcher (3.3) yields robust correspondences. Compared to the DUSt3R framework which we build upon, our contributions are highlighted in blue.
33
+
34
+ marks, such as Aachen Day-Night, InLoc, CO3D or Map-free [5,71,89,123], all featuring strong viewpoint and/or illumination changes. The most challenging of them is undoubtedly Map-free [5], a localization dataset for which a single reference image is provided but no map, with viewpoint changes up to $180^{\circ}$ .
35
+
36
+ Grounding matching in 3D thus becomes a crucial necessity in these challenging conditions where classical 2D-based matching utterly falls short. Leveraging priors about the physical properties of the scene in order to improve accuracy or robustness has been widely explored in the past, but most previous works settle for leveraging epipolar constraints for fully-supervised [22,36,64,103,114] or semi-supervised learning of correspondences without any fundamental change [10,40, 49,105,112,116,118,124]. Toft et al. [94], on its part, propose to improve keypoint descriptors by rectifying images with perspective transformations obtained from an off-the-shelf monocular depth predictor. Recently, diffusion for pose [104] or rays [119], although not matching approaches strictly speaking, show promising performance by incorporating 3D geometric constraints into their pose estimation formulation. Finally, the recent DUSt3R [106] explore the possibility of recovering correspondences from the $a$ -priori harder task of 3D reconstruction from uncalibrated images. Despite not being trained explicitly for matching, this approach yields promising results, topping the Map-free leaderboard [5]. Our contribution is to pursue this idea, by regressing local features and explicitly training them for pairwise matching.
37
+
38
+ # 3 Method
39
+
40
+ Given two images $I^1$ and $I^2$ , respectively captured by two cameras $C^1$ and $C^2$ with unknown parameters, we wish to recover a set of pixel correspondences $\{(i,j)\}$ where $i,j$ are pixels $i = (u_i,v_i), j = (u_j,v_j) \in \{1,\dots ,W\} \times \{1,\dots ,H\}$ , $W,H$ being the respective width and height of the images. We assume they have the same resolution for the sake of simplicity, yet without loss of generality. The final network can handle pairs of variable aspect ratios.
41
+
42
+ Our approach, illustrated in Fig. 1, aims at jointly performing 3D scene reconstruction and matching given two input images. It is based on the DUSt3R framework recently proposed by Wang et al. [106], which we first review in
43
+
44
+ Sec. 3.1 before presenting our proposed matching head and its corresponding loss in Sec. 3.2. We then introduce an optimized matching scheme specially devised to deal with dense feature maps in 3.3, that we use for coarse-to-fine matching in Sec. 3.4.
45
+
46
+ # 3.1 The DUSt3R framework
47
+
48
+ DUSt3R [106] is a recently proposed approach that jointly solves the calibration and 3D reconstruction problems from images alone. A transformer-based network predicts a local 3D reconstruction given two input images, in the form of two dense 3D point-clouds $X^{1,1}$ and $X^{2,1}$ , denoted as pointmaps in the following. A pointmap $X^{a,b} \in \mathbb{R}^{H \times W \times 3}$ represents a dense 2D-to-3D mapping between each pixel $i = (u,v)$ of the image $I^a$ and its corresponding 3D point $X_{u,v}^{a,b} \in \mathbb{R}^3$ expressed in the coordinate system of camera $C^b$ . By regressing two pointmaps $X^{1,1}, X^{2,1}$ expressed in the same coordinate system of camera $C^1$ , DUSt3R effectively solves the joint calibration and 3D reconstruction problem. In the case where more than two images are provided, a second step of global alignment merges all pointmaps in the same coordinate system. Note that, in this paper, we do not make use of this step and restrict ourselves to the binocular case. We now explain the inference in more details.
49
+
50
+ Both images are first encoded in a Siamese manner with a ViT encoder [24], yielding two representations $H^{1}$ and $H^{2}$ , with $H^{i} = \mathrm{Encoder}(I^{i})$ . Then, two intertwined decoders process these representations jointly, exchanging information via cross-attention to 'understand' the spatial relationship between viewpoints and the global 3D geometry of the scene. The new representations augmented with this spatial information are denoted as $H^{\prime 1}, H^{\prime 2} = \mathrm{Decoder}(H^{1}, H^{2})$ . Finally, two prediction heads regress the final pointmaps and confidence maps from the concatenated representations output by the encoder and decoder:
51
+
52
+ $$
53
+ X ^ {1, 1}, C ^ {1} = \operatorname {H e a d} _ {\mathrm {3 D}} ^ {1} \left(\left[ H ^ {1}, H ^ {\prime 1} \right]\right), \tag {1}
54
+ $$
55
+
56
+ $$
57
+ X ^ {2, 1}, C ^ {2} = \operatorname {H e a d} _ {\mathrm {3 D}} ^ {2} ([ H ^ {2}, H ^ {\prime 2} ]). \tag {2}
58
+ $$
59
+
60
+ Regression loss. DUSt3R is trained in a fully-supervised manner using a simple regression loss
61
+
62
+ $$
63
+ \ell_ {\text {r e g r}} (v, i) = \left\| \frac {1}{z} X _ {i} ^ {v, 1} - \frac {1}{\hat {z}} \hat {X} _ {i} ^ {v, 1} \right\|, \tag {3}
64
+ $$
65
+
66
+ where $v \in \{1,2\}$ is the view and $i$ is a pixel for which the ground-truth 3D point $\hat{X}^{v,1} \in \mathbb{R}^3$ is defined. In the original formulation, normalizing factors $z, \hat{z}$ are introduced to make the reconstruction invariant to scale. These are simply defined as the mean distance of all valid 3D points to the origin.
67
+
68
+ Metric predictions. In this work, we note that scale invariance is not necessarily desirable, as some potential use-cases like map-free visual localization necessitate metric-scale predictions. Therefore, we modify the regression loss to ignore normalization for the predicted pointmaps when the ground-truth pointmaps are known to be metric. That is, we set $z \coloneqq \hat{z}$ whenever ground-truth is metric,
69
+
70
+ so that $\ell_{\mathrm{regr}}(v,i) = ||X_i^{v,1} - \hat{X}_i^{v,1}|| / \hat{z}$ in this case. As in DUSt3R [106], the final confidence-aware regression loss is defined as
71
+
72
+ $$
73
+ \mathcal {L} _ {\text {c o n f}} = \sum_ {v \in \{1, 2 \}} \sum_ {i \in \mathcal {V} ^ {v}} C _ {i} ^ {v} \ell_ {\text {r e g r}} (v, i) - \alpha \log C _ {i} ^ {v}. \tag {4}
74
+ $$
75
+
76
+ # 3.2 Matching prediction head and loss
77
+
78
+ To obtain reliable pixel correspondences from pointmaps, a standard solution is to look for reciprocal matches in some invariant feature space [27, 83, 106, 110]. While such a scheme works remarkably well with DUSt3R's regressed pointmaps (i.e. in a 3-dimensional space) even in presence of extreme viewpoint changes, we note that the resulting correspondences are rather imprecise, yielding suboptimal accuracy. This is a rather natural result as (i) regression is inherently affected by noise, and (ii) because DUSt3R was never explicitly trained for matching.
79
+
80
+ Matching head. For these reasons, we propose to add a second head that outputs two dense feature maps $D^{1}$ and $D^{2} \in \mathbb{R}^{H \times W \times d}$ of dimensional $d$ :
81
+
82
+ $$
83
+ D ^ {1} = \operatorname {H e a d} _ {\text {d e s c}} ^ {1} \left(\left[ H ^ {1}, H ^ {\prime 1} \right]\right), \tag {5}
84
+ $$
85
+
86
+ $$
87
+ D ^ {2} = \operatorname {H e a d} _ {\text {d e s c}} ^ {2} \left(\left[ H ^ {2}, H ^ {\prime 2} \right]\right). \tag {6}
88
+ $$
89
+
90
+ We implement the head as a simple 2-layers MLP interleaved with a non-linear GELU activation function [41]. Lastly, we normalize each local feature to unit norm. More details can be found in the supplementary material.
91
+
92
+ Matching objective. We wish to encourage each local descriptor from one image to match with at most a single descriptor from the other image that represents the same 3D point in the scene. To that aim, we leverage the infoNCE [65] loss over the set of ground-truth correspondences $\hat{\mathcal{M}} = \{(i,j)|\hat{X}_i^{1,1} = \hat{X}_j^{2,1}\}$ :
93
+
94
+ $$
95
+ \mathcal {L} _ {\text {m a t c h}} = - \sum_ {(i, j) \in \hat {\mathcal {M}}} \log \frac {s _ {\tau} (i , j)}{\sum_ {k \in \mathcal {P} ^ {1}} s _ {\tau} (k , j)} + \log \frac {s _ {\tau} (i , j)}{\sum_ {k \in \mathcal {P} ^ {2}} s _ {\tau} (i , k)}, \tag {7}
96
+ $$
97
+
98
+ $$
99
+ \text {w i t h} s _ {\tau} (i, j) = \exp \left[ - \tau D _ {i} ^ {1 \top} D _ {j} ^ {2} \right]. \tag {8}
100
+ $$
101
+
102
+ Here, $\mathcal{P}^1 = \{i|(i,j)\in \hat{\mathcal{M}}\}$ and $\mathcal{P}^2 = \{j|(i,j)\in \hat{\mathcal{M}}\}$ denote the subset of considered pixels in each image and $\tau$ is a temperature hyper-parameter. Note that this matching objective is essentially a cross-entropy classification loss: contrary to regression in Eq. (3), the network is only rewarded if it gets the correct pixel right, not a nearby pixel. This strongly encourages the network to achieve high-precision matching. Finally, both regression and matching losses are combined to get the final training objective:
103
+
104
+ $$
105
+ \mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\text {c o n f}} + \beta \mathcal {L} _ {\text {m a t c h}} \tag {9}
106
+ $$
107
+
108
+ # 3.3 Fast reciprocal matching
109
+
110
+ Given two predicted feature maps $D^{1}, D^{2} \in \mathbb{R}^{H \times W \times d}$ , we aim to extract a set of reliable pixel correspondences, i.e. mutual nearest neighbors of each others:
111
+
112
+ $$
113
+ \mathcal {M} = \{(i, j) \mid j = \mathrm {N N} _ {2} \left(D _ {i} ^ {1}\right) \text {a n d} i = \mathrm {N N} _ {1} \left(D _ {j} ^ {2}\right) \}, \tag {10}
114
+ $$
115
+
116
+ $$
117
+ \text {w i t h} \mathrm {N N} _ {A} \left(D _ {j} ^ {B}\right) = \underset {i} {\arg \min } \left\| D _ {i} ^ {A} - D _ {j} ^ {B} \right\|. \tag {11}
118
+ $$
119
+
120
+ Unfortunately, naive implementation of reciprocal matching has a high computational complexity of $O(W^{2}H^{2})$ , since every pixel from an image must be compared to every pixels in the other image. While optimizing the nearest-neighbor (NN) search is possible, e.g. using K-d trees [1], this kind of optimization becomes typically very inefficient in high dimensional feature space and, in all cases, orders of magnitude slower than the inference time of MAST3R to output $D^{1}$ and $D^{2}$ .
121
+
122
+ Fast matching. We therefore propose a faster approach based on sub-sampling. It is based on an iterated process that starts from an initial sparse set of $k$ pixels $U^0 = \{U_n^0\}_{n=1}^k$ , typically sampled regularly on a grid in the first image $I^1$ . Each pixel is then mapped to its NN on $I^2$ , yielding $V^1$ , and the resulting pixels are mapped back again to $I^1$ in the same way:
123
+
124
+ $$
125
+ U ^ {t} \longmapsto [ \mathrm {N N} _ {2} \left(D _ {u} ^ {1}\right) ] _ {u \in U ^ {t}} \equiv V ^ {t} \longmapsto [ \mathrm {N N} _ {1} \left(D _ {v} ^ {2}\right) ] _ {v \in V ^ {t}} \equiv U ^ {t + 1} \tag {12}
126
+ $$
127
+
128
+ The set of reciprocal matches (those which form a cycle, i.e. $\mathcal{M}_k^t = \{(U_n^t,V_n^t)\mid$ $U_{n}^{t} = U_{n}^{t + 1}\}$ ) are then collected. For the next iteration, pixels that already converged are filtered out, i.e. updating $U^{t + 1}\coloneqq U^{t + 1}\setminus U^t$ . Likewise, starting from $t = 1$ we also verify and filter $V^{t + 1}$ , comparing it with $V^t$ in a similar fashion. As illustrated in Fig. 2 (left), this process is then iterated a fixed number of times, until most correspondences converge to stable (reciprocal) pairs. In Fig. 2 (center), we show that the number of un-converged point $|U^t|$ rapidly decreases to zero after a few iterations. Finally, the output set of correspondences consists of the concatenation of all reciprocal pairs $\mathcal{M}_k = \bigcup_t\mathcal{M}_k^t$ .
129
+
130
+ Theoretical guarantees. The overall complexity of the fast matching is $O(kWH)$ , which is $WH / k \gg 1$ times faster than the naive approach denoted all, as illustrated in Fig. 2 (right). It is worth pointing out that our fast matching algorithm extracts a subset of the full set $\mathcal{M}$ , which is bounded in size by $|\mathcal{M}_k| \leq k$ . We study in the supplementary material the convergence guarantees of this algorithm and how it evinces outlier-filtering properties, which explains why the end accuracy is actually higher than when using the full correspondence set $\mathcal{M}$ , see Fig. 2 (right).
131
+
132
+ # 3.4 Coarse-to-fine matching
133
+
134
+ Due to the quadratic complexity of attention w.r.t. the input image area $(W\times H)$ , MASt3R only handles images of 512 pixels in their largest dimension. Larger images would require significantly more compute power to train, and ViTs do not
135
+
136
+ ![](images/d67297b02cb0703129dc858dd1425a4feea5defec2c74f8b7513910b3583e0e3.jpg)
137
+ Fig. 2: Fast reciprocal matching. Left: Illustration of the fast matching process, starting from an initial subset of pixels $U^0$ and propagating it iteratively using $NN$ search. Searching for cycles (blue arrows) detect reciprocal correspondences and allows to accelerate the subsequent steps, by removing points that converged. Center: Average number of remaining points in $U^t$ at iteration $t = 1 \ldots 6$ . After only 5 iterations, nearly all points have already converged to a reciprocal match. Right: Performance-versus-time trade-off on the Map-free dataset. Performance actually improves, along with matching speed, when performing moderate levels of subsampling.
138
+
139
+ ![](images/96377d1c5db0869711e970dc5591a11277744684f2c5e72310687aaef5b43e37.jpg)
140
+
141
+ ![](images/0384d81d8e153b362799b8b572b6b78731fdd706412806cdd2a4aef387d126b8.jpg)
142
+
143
+ generalize yet to larger test-time resolutions [66, 69]. As a result, high-resolution images (e.g. 1M pixel) needs to be downscaled to be matched, afterwards the resulting correspondences are upscaled back to the original image resolution. This can lead to some performance loss, sometimes sufficient to cause substantial degradation in term of localization accuracy or reconstruction quality.
144
+
145
+ Coarse-to-fine matching is a standard technique to preserve the benefit of matching high-resolution images with a lower-resolution algorithm [70, 91]. We thus explore this idea for MASt3R. Our procedure starts with performing matching on downscaled versions of the two images. We denote the set of coarse correspondences obtained with subsampling $k$ as $\mathcal{M}_k^0$ . Next, we generate a grid of overlapping window crops $W^1$ and $W^2 \in \mathbb{R}^{w \times 4}$ on each full-resolution image independently. Each window crop measures 512 pixels in its largest dimension and contiguous windows overlap by $50\%$ . We can then enumerate the set of all window pairs $(w_1, w_2) \in W^1 \times W^2$ , from which we select a subset covering most of the coarse correspondences $\mathcal{M}_k^0$ . Specifically, we add window pairs one by one in a greedy fashion until $90\%$ of correspondences are covered. Finally, we perform matching for each window pair independently:
146
+
147
+ $$
148
+ D ^ {w _ {1}}, D ^ {w _ {2}} = \operatorname {M A S t 3 R} \left(I _ {w _ {1}} ^ {1}, I _ {w _ {2}} ^ {2}\right) \tag {13}
149
+ $$
150
+
151
+ $$
152
+ \mathcal {M} _ {k} ^ {w _ {1}, w _ {2}} = \text {f a s t} \_ \text {r e c i p r o c a l} \_ \mathrm {N N} \left(D ^ {w _ {1}}, D ^ {w _ {2}}\right) \tag {14}
153
+ $$
154
+
155
+ Correspondences obtained from each window pair are finally mapped back to the original image coordinates and concatenated, thus providing dense full-resolution matches.
156
+
157
+ # 4 Experimental results
158
+
159
+ We detail in Sec. 4.1 the training procedure of MASt3R. Then, we evaluate on several tasks, each time comparing with the state of the art, starting with visual camera pose estimation on the Map-Free Relocalization Benchmark [5]
160
+
161
+ (Sec. 4.2), the CO3D and RealEstate datasets (Sec. 4.3) and other standard Visual Localization benchmarks in Sec. 4.4. Finally, we leverage MASTR for Dense Multi-View Stereo (MVS) reconstruction in Sec. 4.5.
162
+
163
+ # 4.1 Training
164
+
165
+ Training data. We train our network with a mixture of 14 datasets: Habitat [79], ARKitScenes [20], Blended MVS [115], MegaDepth [50], Static Scenes 3D [59], ScanNet++ [117], CO3D-v2 [71], Waymo [88], Map-free [5], WildRGB [2], VirtualKitti [13], Unreal4K [96], TartanAir [107] and an internal dataset. These datasets feature diverse scene types: indoor, outdoor, synthetic, real-world, object-centric, etc. Among them, 10 datasets have metric ground-truth. When image pairs are not directly provided with the dataset, we extract them based on the method described in [108]. Specifically, we utilize off-the-shelf image retrieval and point matching algorithms to match and verify image pairs.
166
+
167
+ Training. We base our model architecture on the public DUSt3R model [106] and use the same backbone (ViT-Large encoder and ViT-Base decoder). To benefit the most from DUSt3R's 3D matching abilities, we initialize the model weights to the publicly available DUSt3R checkpoint. During each epoch, we randomly sample $650k$ pairs equally distributed between all datasets. We train our network for 35 epochs with a cosine schedule and initial learning rate set to 0.0001. Similar to [106], we randomize the image aspect ratio at training time, ensuring that the largest image dimension is 512 pixels. We set the local feature dimension to $d = 24$ and the matching loss weight to $\beta = 1$ . It is important that the network sees different scales at training time, because coarse-to-fine matching starts from zoomed-out images to then zoom-in on details (see Sec. 3.4). We therefore perform aggressive data augmentation during training in the form of random cropping. Image crops are transformed with a homography to preserve the central position of the principal point.
168
+
169
+ Correspondence sampling. To generate ground-truth correspondences necessary for the matching loss (Eq. (7)), we simply find reciprocal correspondences between on the ground-truth 3D pointmaps $\hat{X}^{1,1}\leftrightarrow \hat{X}^{2,1}$ . We then randomly subsample 4096 correspondences per image pairs. If we cannot find enough correspondences, we pad with random false correspondences so that the likelihood of finding a true match remains constant.
170
+
171
+ Fast nearest neighbors. For the fast reciprocal matching from Sec. 3.3, we implement the nearest neighbor function $\mathrm{NN}(x)$ from Eq. (11) differently depending on the dimension of $x$ . When matching 3D points $x \in \mathbb{R}^3$ , we implement $\mathrm{NN}(x)$ using K-d trees [58]. For matching local features with $d = 24$ , however, K-d trees become highly inefficient due to the curse of dimensionality [26]. Therefore, we rely on the optimized FAISS library [25,47] in this case.
172
+
173
+ # 4.2 Map-free localization
174
+
175
+ Dataset description. We start our experiments with the Map-free relocalization benchmark [5], an extremely challenging dataset aiming at localizing the camera
176
+
177
+ in metric space given a single reference image without any map. It comprises a training, validation and test sets of 460, 65 and 130 scenes resp., each featuring two video sequences. Following the benchmark, we evaluate in term of Virtual Correspondence Reprojection Error (VCRE) and camera pose accuracy, see [5] for details.
178
+
179
+ Impact of subsampling. We do not resort to coarse-to-fine matching for this dataset, as the image resolution is already close to MASt3R working resolution $(720 \times 540$ vs. $512 \times 384$ resp.). As mentioned in Sec. 3.3, computing dense reciprocal matching is prohibitively slow even with optimized code for searching nearest neighbors. We therefore resort to subsampling the set of reciprocal correspondences, keeping at most $k$ correspondences from the complete set $\mathcal{M}$ (Eq. (10)). Fig. 2 (right) shows the impact of subsampling in terms of AUC (VCRE) performance and timing. Surprisingly, the performance significantly improves for intermediate values of subsampling. Using $k = 3000$ , we can accelerate matching by a factor of 64 while significantly improving the performance. We provide insights in the supplementary material regarding this phenomenon. Unless stated otherwise, we keep $k = 3000$ for subsequent experiments.
180
+
181
+ Ablations on losses and matching modes. We report results on the validation set in Tab. 1 for different variants of our approach: DUSt3R matching 3D points (I); MAST3R also matching 3D points (II) or local features (III, IV, V). For all methods, we compute the relative pose from the essential matrix [38] estimated with the set of predicted matches (PnP performs similarly). The metric scene scale is inferred from the depth extracted with an off-the-shelf DPT finetuned on KITTI [69] (I-IV) or from the depth directly output by MAST3R (V).
182
+
183
+ First, we note that all proposed methods significantly outperforms the DUSt3R baseline, probably because MASt3R is trained longer and with more data. All other things being equal, matching descriptors perform significantly better than matching 3D points (II versus IV). This confirms our initial analysis that regression is inherently unsuited to compute pixel correspondences, see Sec. 3.2.
184
+
185
+ We also study the impact of training only with a single matching objective $(\mathcal{L}_{\mathrm{match}}$ from Eq. (7), III). In this case, the performance overall degrades compared to training with both 3D and matching losses (IV), in particular in term of pose estimation accuracy (e.g. median rotation of $10.8^{\circ}$ for (III) compared to $3.0^{\circ}$ for (IV)). We point out that this is in spite of the decoder now having more capacity to carry out a single task, instead of two when performing 3D reconstruction simultaneously, indicating that grounding matching in 3D is indeed crucial to improve matching. Lastly, we observe that, when using metric depth directly output by MASt3R, the performance largely improves. This suggests that, as for matching, the depth prediction task is largely correlated with 3D scene understanding, and that the two tasks strongly benefit from each other.
186
+
187
+ Comparisons on the test set is reported in Tab. 2. Overall, MASt3R outperforms all state-of-the-art approaches by a large margin, achieving more than $93\%$ in VCRE AUC. This is a $30\%$ absolute improvement compared to the second best published method, LoFTR+KBR [86, 87], that get $63.4\%$ in AUC. Likewise, the median translation error is vastly reduced to $36\mathrm{cm}$ , compared to approx. $2\mathrm{m}$ for
188
+
189
+ Table 1: Results on the validation set of the Map-free dataset. (First and second best)
190
+
191
+ <table><tr><td rowspan="2"></td><td rowspan="2">match</td><td rowspan="2">depth</td><td colspan="3">VCRE (&lt;90px)</td><td colspan="3">Pose Error (&lt;25cm, 5°)</td></tr><tr><td>Reproj. ↓</td><td>Prec. ↑</td><td>AUC ↑</td><td>Median Err.↓</td><td>Precision ↑</td><td>AUC ↑</td></tr><tr><td>(I) DUSt3R</td><td>3d</td><td>DPT</td><td>125.8 px</td><td>45.2%</td><td>0.704</td><td>1.10m 9.4°</td><td>17.0%</td><td>0.344</td></tr><tr><td>(II) MAST3R</td><td>3d</td><td>DPT</td><td>112.0 px</td><td>49.9%</td><td>0.732</td><td>0.94m 3.6°</td><td>21.5%</td><td>0.409</td></tr><tr><td>(III) MAST3R-M</td><td>feat</td><td>DPT</td><td>107.7 px</td><td>51.7%</td><td>0.744</td><td>1.10m 10.8°</td><td>19.3%</td><td>0.382</td></tr><tr><td>(IV) MAST3R</td><td>feat</td><td>DPT</td><td>112.9 px</td><td>51.5%</td><td>0.752</td><td>0.93m 3.0°</td><td>23.2%</td><td>0.435</td></tr><tr><td>(V) MAST3R</td><td>feat (auto)</td><td>57.2 px</td><td>75.9%</td><td>0.934</td><td>0.46m 3.0°</td><td>51.7%</td><td>0.746</td><td></td></tr></table>
192
+
193
+ Table 2: Comparison with the state of the art on the test set of the Map-free dataset.
194
+
195
+ <table><tr><td rowspan="2"></td><td rowspan="2">depth</td><td colspan="3">VCRE (&lt;90px)</td><td colspan="3">Pose Error (&lt;25cm, 5°)</td></tr><tr><td>Reproj. ↓</td><td>Prec. ↑</td><td>AUC ↑</td><td>Median Err.↓</td><td>Precision ↑</td><td>AUC ↑</td></tr><tr><td>RPR [5]</td><td>DPT</td><td>147.1 px</td><td>40.2%</td><td>0.402</td><td>1.68m 22.5°</td><td>6.0%</td><td>0.060</td></tr><tr><td>SIFT [54]</td><td>DPT</td><td>222.8 px</td><td>25.0%</td><td>0.504</td><td>2.93m 61.4°</td><td>10.3%</td><td>0.252</td></tr><tr><td>SP+SG [78]</td><td>DPT</td><td>160.3 px</td><td>36.1%</td><td>0.602</td><td>1.88m 25.4°</td><td>16.8%</td><td>0.346</td></tr><tr><td>LoFTR [87]</td><td>KBR</td><td>165.0 px</td><td>34.3%</td><td>0.634</td><td>2.23m 37.8°</td><td>11.0%</td><td>0.295</td></tr><tr><td>FAR [75]</td><td>auto)</td><td>137.0 px</td><td>44.2%</td><td>0.680</td><td>1.48m 17.2°</td><td>17.7%</td><td>0.392</td></tr><tr><td>RoMa [29]</td><td>DPT</td><td>128.8 px</td><td>45.6%</td><td>0.669</td><td>1.23m 11.1°</td><td>22.8%</td><td>0.407</td></tr><tr><td>Mickey [8]</td><td>auto)</td><td>129.5 px</td><td>49.3%</td><td>0.748</td><td>1.66m 27.3°</td><td>13.3%</td><td>0.325</td></tr><tr><td>DUSt3R [106]</td><td>DPT</td><td>116.0 px</td><td>50.3%</td><td>0.697</td><td>0.97m 7.1°</td><td>21.6%</td><td>0.394</td></tr><tr><td>MASt3R</td><td>DPT</td><td>104.0 px</td><td>54.2%</td><td>0.726</td><td>0.80m 2.2°</td><td>27.0%</td><td>0.456</td></tr><tr><td>MASt3R</td><td>auto)</td><td>48.7 px</td><td>79.3%</td><td>0.933</td><td>0.36m 2.2°</td><td>54.7%</td><td>0.740</td></tr><tr><td colspan="2">MASt3R (direct reg.)</td><td>53.2 px</td><td>79.1%</td><td>0.941</td><td>0.42m 3.1°</td><td>53.0%</td><td>0.777</td></tr></table>
196
+
197
+ the state-of-the-art methods. A large part of the improvement is of course due to MAST3R predicting metric depth, but note that our variant leveraging depth from DPT-KITTI (thus purely matching-based) outperforms all state-of-the-art approaches as well.
198
+
199
+ We also provide the results of direct regression with MASt3R, i.e. without matching, simply using PnP on the pointmap $X^{2,1}$ of the second image. These results are surprisingly on par with our matching-based variant, even though the ground-truth calibration of the reference camera is not used. As we show below, this does not hold true for other localization datasets, and computing the pose via matching (e.g. with PnP or essential matrix) with known intrinsics seems safer in general.
200
+
201
+ Qualitative results. We show in Fig. 3 some matching results for pairs with strong viewpoint change (up to $180^{\circ}$ ). We also highlight with insets some specific regions that are correctly matched by MAST3R in spite of drastic appearance changes. We believe these correspondences to be nearly impossible to get with 2D-based matching methods. In contrast, grounding the matching in 3D allows to solve the issue relatively straightforwardly.
202
+
203
+ # 4.3 Relative pose estimation
204
+
205
+ Datasets and protocol. Next, we evaluate for the task of relative pose estimation on the CO3Dv2 [71] and RealEstate10k [125] datasets. CO3Dv2 contains 6 million frames extracted from approximately 37k videos, covering 51 MS-COCO
206
+
207
+ ![](images/c451830a7b98f23fe37e01bd17ca3e08bfbea1e821e012a0d9832d7cc4d3f3dd.jpg)
208
+ Fig. 3: Qualitative examples on the Map-free dataset. Top row: Pairs with strong viewpoint changes. Third one is a failure case. For clarity, we only draw a subset of all correspondences. Bottom row: We highlight interesting spots in close-up. These regions could hardly be matched by local keypoints. See text for details.
209
+
210
+ categories. Ground-truth camera poses are obtained using COLMAP [81] from 200 frames in each video. RealEstate10k is an indoor/outdoor dataset that features 80K video clips on YouTube totalling 10 million frames, camera poses being obtained via SLAM with bundle adjustment. Following [104], we evaluate MASt3R on 41 categories from CO3Dv2 and 1.8K video clips from the test set of RealEstate10k. Each sequence is 10 frames long, we evaluate relative camera poses between all possible 45 pairs, not using ground-truth focals.
211
+
212
+ Baselines and metrics. As before, matches obtained with MASt3R are used to estimate Essential Matrices and relative pose. Please note that our predictions are always done pairwise, contrary to all other methods that leverage multiple views (at the exception of DUSt3R-PnP). We compare to recent data-driven approaches like RelPose [120], RelPose++ [120], PoseReg and PoseDiff [104], the recent RayDiff [119] and DUSt3R [106]. We also report results for more traditional SfM methods like PixSFM [52] and COLMAP [82] extended with SuperPoint [21] and SuperGlue [78] (COLMAP+SPSG). Similar to [104], we report the Relative Rotation Accuracy (RRA) and Relative Translation Accuracy (RTA) for each image pair to evaluate the relative pose error and select a threshold $\tau = 15$ to report RTA@15 and RRA@15. Additionally, we calculate the mean Average Accuracy (mAA30), defined as the area under the accuracy curve of the angular differences at min(RRA@30, RTA@30).
213
+
214
+ Results. As shown in Tab. 3, SfM approaches tend to perform significantly worse on this task, mainly due to the poor visual support. This because images usually observe a small object, combined with the fact that many pairs have a wide baseline, sometimes up to $180^{\circ}$ . On the contrary, 3D grounded approaches like RayDiffusion, DUSt3R and MASt3R are the two most competitive methods
215
+
216
+ <table><tr><td rowspan="2" colspan="2">Methods</td><td colspan="3">Co3Dv2</td><td>RealEstate10K</td></tr><tr><td>RRA@15</td><td>RTA@15</td><td>mAA(30)</td><td>mAA(30)</td></tr><tr><td rowspan="8">(a)</td><td>Colmap+SG [21,78]</td><td>36.1</td><td>27.3</td><td>25.3</td><td>45.2</td></tr><tr><td>PixSIM [52]</td><td>33.7</td><td>32.9</td><td>30.1</td><td>49.4</td></tr><tr><td>RelPose [120]</td><td>57.1</td><td>-</td><td>-</td><td>-</td></tr><tr><td>PosReg [104]</td><td>53.2</td><td>49.1</td><td>45.0</td><td>-</td></tr><tr><td>PoseDiff [104]</td><td>80.5</td><td>79.8</td><td>66.5</td><td>48.0</td></tr><tr><td>RelPose++ [51]</td><td>(85.5)</td><td>-</td><td>-</td><td>-</td></tr><tr><td>RayDiff [119]</td><td>(93.3)</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DUSt3R-GA [106]</td><td>96.2</td><td>86.8</td><td>76.7</td><td>67.7</td></tr><tr><td rowspan="2">(b)</td><td>DUSt3R [106]</td><td>94.3</td><td>88.4</td><td>77.2</td><td>61.2</td></tr><tr><td>MASt3R</td><td>94.6</td><td>91.9</td><td>81.8</td><td>76.4</td></tr></table>
217
+
218
+ Table 3: Left: Multi-view pose regression on the CO3Dv2 [71] and RealEstate10K [125] with 10 random frames. Parenthesis () denote methods that do not report results on the 10 views set, we report their best for comparison (8 views). We distinguish between (a) multi-view and (b) pairwise methods. Right: Dense MVS results on the DTU dataset, in mm. Handcrafted methods (c) perform worse than learning-based approaches (d) that train on this specific domain. Among the methods that operate in a zero-shot setting (e), MASt3R is the only one attaining reasonable performance.
219
+
220
+ <table><tr><td colspan="2">Methods</td><td>Acc.↓</td><td>Comp.↓</td><td>Overall↓</td></tr><tr><td rowspan="4">(c)</td><td>Camp [14]</td><td>0.835</td><td>0.554</td><td>0.695</td></tr><tr><td>Furu [32]</td><td>0.613</td><td>0.941</td><td>0.777</td></tr><tr><td>Tola [95]</td><td>0.342</td><td>1.190</td><td>0.766</td></tr><tr><td>Gipuma [33]</td><td>0.283</td><td>0.873</td><td>0.578</td></tr><tr><td rowspan="9">(d)</td><td>MVSNet [114]</td><td>0.396</td><td>0.527</td><td>0.462</td></tr><tr><td>CVP-MVSNet [113]</td><td>0.296</td><td>0.406</td><td>0.351</td></tr><tr><td>UCS-Net [18]</td><td>0.338</td><td>0.349</td><td>0.344</td></tr><tr><td>CER-MVS [57]</td><td>0.359</td><td>0.305</td><td>0.332</td></tr><tr><td>CIDER [111]</td><td>0.417</td><td>0.437</td><td>0.427</td></tr><tr><td>PatchmatchNet [103]</td><td>0.427</td><td>0.277</td><td>0.352</td></tr><tr><td>CasMVSNet [36]</td><td>0.325</td><td>0.385</td><td>0.355</td></tr><tr><td>TransMVSNet [22]</td><td>0.321</td><td>0.289</td><td>0.305</td></tr><tr><td>GeoMVSNet [122]</td><td>0.331</td><td>0.259</td><td>0.295</td></tr><tr><td rowspan="2">(e)</td><td>DUSt3R [106]</td><td>2.677</td><td>0.805</td><td>1.741</td></tr><tr><td>MASt3R</td><td>0.403</td><td>0.344</td><td>0.374</td></tr></table>
221
+
222
+ on this dataset, the latter leading in translation and mAA on both datasets. Notably, on RealEstate our mAA score improves by at least 8.7 points over the best multi-view methods and 15.2 points over pairwise DUSt3R. This showcases the accuracy and robustness of our approach to few input view setups.
223
+
224
+ # 4.4 Visual localization
225
+
226
+ Datasets. We then evaluate MAST3R for the task of absolute pose estimation on the Aachen Day-Night [123] and InLoc [89] datasets. Aachen comprises 4,328 reference images taken with hand-held cameras, as well as 824 daytime and 98 nighttime query images taken with mobile phones in the old inner city of Aachen, Germany. InLoc [89] is an indoor dataset with challenging appearance variation between the 9,972 RGB-D + 6DOF pose database images and the 329 query images taken from an iPhone 7.
227
+
228
+ Metrics. We report the percentage of successfully localized images within three thresholds: $(0.25\mathrm{m}, 2^{\circ})$ , $(0.5\mathrm{m}, 5^{\circ})$ and $(5\mathrm{m}, 10^{\circ})$ for Aachen and $(0.25\mathrm{m}, 10^{\circ})$ , $(0.5\mathrm{m}, 10^{\circ})$ , $(1\mathrm{m}, 10^{\circ})$ for InLoc.
229
+
230
+ Results are reported in Table 4. We study the performance of MAST3R with variable number of retrieved images. As expected, a greater number of retrieved images (top40) yields better performance, achieving competitive performance on Aachen and significantly outperforming the state of the art on InLoc. Interestingly, our approach still performs very well even with a single retrieved image (top1), showcasing the robustness of 3D grounded matching. We also include direct regression results, which are rather poor, showing a striking impact of the dataset scale on the localization error, i.e. small scenes are much less affected (see results on Map-free in 4.2). This confirms the importance of feature matching to estimate reliable poses.
231
+
232
+ Table 4: Visual localization results on Aachen Day-Night and InLoc. We report our results for different number of retrieved database images (topN).
233
+
234
+ <table><tr><td rowspan="2">Methods</td><td colspan="2">AachenDayNight [123]</td><td colspan="2">InLoc [89]</td></tr><tr><td>Day</td><td>Night</td><td>DUC1</td><td>DUC2</td></tr><tr><td>Kapture+R2D2 [43]</td><td>91.3/97.0/99.5</td><td>78.5/91.6/100</td><td>41.4/60.1/73.7</td><td>47.3/67.2/73.3</td></tr><tr><td>SP+SuperGlue [78]</td><td>89.8/96.1/99.4</td><td>77.0/90.6/100</td><td>49.0/68.7/80.8</td><td>53.4/77.1/82.4</td></tr><tr><td>SP+LightGlue [53]</td><td>90.2/96.0/99.4</td><td>77.0/91.1/100</td><td>49.0/68.2/79.3</td><td>55.0/74.8/79.4</td></tr><tr><td>LoFTR [87]</td><td>88.7/95.6/99.0</td><td>78.5/90.6/99.0</td><td>47.5/72.2/84.8</td><td>54.2/74.8/85.5</td></tr><tr><td>DKM [28]</td><td>-</td><td>-</td><td>51.5/75.3/86.9</td><td>63.4/82.4/87.8</td></tr><tr><td>DUSt3R top1 [106]</td><td>72.7/89.6/98.1</td><td>59.7/80.1/93.2</td><td>36.4/55.1/66.7</td><td>27.5/42.7/49.6</td></tr><tr><td>DUSt3R top20 [106]</td><td>79.4/94.3/99.5</td><td>74.9/91.1/99.0</td><td>53.0/74.2/89.9</td><td>61.8/77.1/84.0</td></tr><tr><td>MASt3R top1</td><td>79.6/93.5/98.7</td><td>70.2/88.0/97.4</td><td>41.9/64.1/73.2</td><td>38.9/55.7/62.6</td></tr><tr><td>MASt3R top20</td><td>83.4/95.3/99.4</td><td>76.4/91.6/100</td><td>55.1/77.8/90.4</td><td>71.0/84.7/89.3</td></tr><tr><td>MASt3R top40</td><td>82.2/93.9/99.5</td><td>75.4/91.6/100</td><td>56.1/79.3/90.9</td><td>71.0/87.0/91.6</td></tr><tr><td>MASt3R direct reg. top1</td><td>1.5/4.5/60.7</td><td>1.6/4.2/47.6</td><td>13.1/32.3/58.1</td><td>10.7/26.0/38.2</td></tr></table>
235
+
236
+ # 4.5 Multiview 3D reconstruction
237
+
238
+ We finally perform MVS by triangulating the obtained matches. Note that the matching is performed in full resolution without prior knowledge of cameras, and the latter are only used to triangulate matches to 3D in ground-truth reference frame. To remove spurious 3D points, we simply apply geometric consistency post-processing [103].
239
+
240
+ Datasets and metrics. We evaluate our predictions on the DTU [3] dataset. Contrary to all competing learning methods, we apply our network in a zero-shot setting, i.e. we do not train nor finetune on the DTU train set and apply our model as is. In Tab. 3 we report the average accuracy, completeness and Chamfer distances error metrics as provided by the authors of the benchmarks. The accuracy for a point of the reconstructed shape is defined as the smallest Euclidean distance to the ground-truth, and the completeness of a point of the ground-truth as the smallest Euclidean distance to the reconstructed shape. The overall Chamfer distance is the average of both previous metrics.
241
+
242
+ Results. Data-driven approaches trained on this domain significantly outperform handcrafted ones, cutting the Chamfer error by half. To the best of our knowledge, we are the first to draw such conclusion in a zero-shot setting. MAST3R not only outperforms the DUSt3R baseline but also compete with the best methods, all without leveraging camera calibration nor poses for matching, neither having seen this camera setup before.
243
+
244
+ # 5 Conclusion
245
+
246
+ Grounding image matching in 3D with MASt3R significantly raised the bar on camera pose and localization tasks on many public benchmarks. We successfully improved DUSt3R with matching, getting the best of both worlds: enhanced robustness, while attaining and even surpassing what could be done with pixel matching alone. We introduced a fast reciprocal matcher and a coarse to fine approach for efficient processing, allowing users to balance between accuracy and speed. MASt3R is able to perform in few-view regimes (even in top1), that we believe will greatly increase versatility of localization.
247
+
248
+ # References
249
+
250
+ 1. Scipy. https://docs.scipy.org/doc/scipy
251
+ 2. RGBD Objects in the Wild: Scaling Real-World 3D Object Learning from RGB-D Videos (2024), http://arxiv.org/abs/2401.12592, arXiv:2401.12592 [cs]
252
+ 3. Aanæs, H., Jensen, R.R., Vogiatzis, G., Tola, E., Dahl, A.B.: Large-scale data for multiple-view stereopsis. IJCV (2016)
253
+ 4. Addison, H., Eduard, T., etru1927, Kwang Moo, Y., old ufo, Sohier, D., Yuhe, J.: Image matching challenge 2022 (2022), https://kaggle.com/competitions/image-matching-challenge-2022
254
+ 5. Arnold, E., Wynn, J., Vicente, S., Garcia-Hernando, G., Monszpart, Å., Prisacariu, V.A., Turmukhambetov, D., Brachmann, E.: Map-free visual localization: Metric pose relative to a single image. In: ECCV (2022)
255
+ 6. Ashley, C., Eduard, T., HCL-Jevster, Kwang Moo, Y., lcmrll, old ufo, Sohier, D., tanjigou, WastedCode, Weiwei, S.: Image matching challenge 2023 (2023), https://kaggle.com/competitions/image-matching-challenge-2023
256
+ 7. Balntas, V., Lenc, K., Vedaldi, A., Mikolajczyk, K.: HPatches: A benchmark and evaluation of handcrafted and learned local descriptors. In: CVPR (2017)
257
+ 8. Barroso-Laguna, A., Munukutla, S., Prisacariu, V.A., Brachmann, E.: Matching 2d images in 3d: Metric relative pose from metric correspondences. In: CVPR (2024)
258
+ 9. Barroso-Laguna, A., Riba, E., Ponsa, D., Mikolajczyk, K.: Key.Net: Keypoint Detection by Handcrafted and Learned CNN Filters. In: ICCV (2019)
259
+ 10. Bhalgat, Y., Henriques, J.F., Zisserman, A.: A light touch approach to teaching transformers multi-view geometry. In: IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2023, Vancouver, BC, Canada, June 17-24, 2023 (2023)
260
+ 11. Bhowmik, A., Gumhold, S., Rother, C., Brachmann, E.: Reinforced feature points: Optimizing feature detection and description for a high-level task. In: CVPR (2020)
261
+ 12. Bökman, G., Kahl, F.: A case for using rotation invariant features in state of the art feature matchers. In: CVPRW (2022)
262
+ 13. Cabon, Y., Murray, N., Humenberger, M.: Virtual KITTI 2. CoRR abs/2001.10773 (2020)
263
+ 14. Campbell, N.D.F., Vogiatzis, G., Hernández, C., Cipolla, R.: Using multiple hypotheses to improve depth-maps for multi-view stereo. In: ECCV (2008)
264
+ 15. Campos, C., Elvira, R., Rodríguez, J.J.G., M. Montiel, J.M., D. Tardós, J.: Orb-slam3: An accurate open-source library for visual, visual-inertial, and multimap slam. IEEE Transactions on Robotics (2021)
265
+ 16. Chaplot, D.S., Gandhi, D., Gupta, S., Gupta, A., Salakhutdinov, R.: Learning to explore using active neural slam. arXiv preprint arXiv:2004.05155 (2020)
266
+ 17. Chen, H., Luo, Z., Zhou, L., Tian, Y., Zhen, M., Fang, T., McKinnon, D., Tsin, Y., Quan, L.: Aspanformer: Detector-free image matching with adaptive span transformer. European Conference on Computer Vision (ECCV) (2022)
267
+ 18. Cheng, S., Xu, Z., Zhu, S., Li, Z., Li, L.E., Ramamoorthi, R., Su, H.: Deep stereo using adaptive thin volume representation with uncertainty awareness. In: CVPR (2020)
268
+ 19. Csurka, G., Dance, C., Humenberger, M.: From Handcrafted to Deep Local Invariant Features. arXiv 1807.10254 (2018)
269
+
270
+ 20. Dehghan, A., Baruch, G., Chen, Z., Feigin, Y., Fu, P., Gebauer, T., Kurz, D., Dimry, T., Joffe, B., Schwartz, A., Shulman, E.: ARKitScenes: A diverse real-world dataset for 3d indoor scene understanding using mobile RGB-D data. In: NeurIPS Datasets and Benchmarks (2021)
271
+ 21. DeTone, D., Malisiewicz, T., Rabinovich, A.: Superpoint: Self-supervised Interest Point Detection and Description. In: CVPR (2018)
272
+ 22. Ding, Y., Yuan, W., Zhu, Q., Zhang, H., Liu, X., Wang, Y., Liu, X.: Transmvsnet: Global context-aware multi-view stereo network with transformers. In: CVPR (2022)
273
+ 23. Dong, Q., Cao, C., Fu, Y.: Rethinking optical flow from geometric matching consistent perspective. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2023)
274
+ 24. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., Houlsby, N.: An image is worth 16x16 words: Transformers for image recognition at scale. ICLR (2021)
275
+ 25. Douze, M., Guzhva, A., Deng, C., Johnson, J., Szilvasy, G., Mazaré, P.E., Lomeli, M., Hosseini, L., Jégou, H.: The faiss library (2024)
276
+ 26. Duda, R., Hart, P., G.Stork, D.: Pattern Classification (01 2001)
277
+ 27. Dusmanu, M., Rocco, I., Pajdla, T., Pollefeys, M., Sivic, J., Torii, A., Sattler, T.: D2-net: A trainable CNN for joint description and detection of local features. In: IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019. pp. 8092-8101. Computer Vision Foundation / IEEE (2019). https://doi.org/10.1109/CVPR.2019.00828, http://openaccess.thecvf.com/content_CVPR_2019/html/Dusmanu_D2-Net_A_Trainable_CNN_for_Joint_Description_and_Detection_of_CVPR_2019_paper.html
278
+ 28. Edstedt, J., Athanasiadis, I., Wadenback, M., Felsberg, M.: DKM: Dense kernelized feature matching for geometry estimation. In: IEEE Conference on Computer Vision and Pattern Recognition (2023)
279
+ 29. Edstedt, J., Sun, Q., Bökman, G., Wadenback, M., Felsberg, M.: RoMa: Robust Dense Feature Matching. arXiv preprint arXiv:2305.15404 (2023)
280
+ 30. Efe, U., Ince, K.G., Alatan, A.: Dfm: A performance baseline for deep feature matching. In: CVPRW (2021)
281
+ 31. Fischler, M.A., Bolles, R.C.: Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography. Commun. ACM 24(6), 381-395 (1981). https://doi.org/10.1145/358669.358692, https://doi.org/10.1145/358669.358692
282
+ 32. Furukawa, Y., Ponce, J.: Accurate, dense, and robust multiview stereopsis. PAMI (2010)
283
+ 33. Galliani, S., Lasinger, K., Schindler, K.: Massively parallel multiview stereopsis by surface normal diffusion. In: ICCV (June 2015)
284
+ 34. Germain, H., Bourmaud, G., Lepetit, V.: S2DNet: Learning image features for accurate sparse-to-dense matching. In: ECCV (2020)
285
+ 35. Gomes, L., Bellon, O.R.P., Silva, L.: 3d reconstruction methods for digital preservation of cultural heritage: A survey. Pattern Recognit. Lett. (2014)
286
+ 36. Gu, X., Fan, Z., Zhu, S., Dai, Z., Tan, F., Tan, P.: Cascade cost volume for high-resolution multi-view stereo and stereo matching. In: CVPR (2020)
287
+ 37. Hammarstrand, L., Kahl, F., Maddern, W., Pajdla, T., Pollefeys, M., Sattler, T., Sivic, J., Stenberg, E., Toft, C., Torii, A.: Long-Term Visual Localization Benchmark. https://www.visuallocalization.net/
288
+
289
+ 38. Hartley, R., Zisserman, A.: Multiple View Geometry in Computer Vision. Cambridge University Press (2004). https://doi.org/10.1017/CB09780511811685, https://doi.org/10.1017/cbo9780511811685
290
+ 39. He, K., Lu, Y., Sclaroff, S.: Local descriptors optimized for average precision. In: CVPR (2018)
291
+ 40. He, Y., Yan, R., Fragkiadaki, K., Yu, S.: Epipolar transformers. In: 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2020, Seattle, WA, USA, June 13-19, 2020 (2020)
292
+ 41. Hendrycks, D., Gimpel, K.: Bridging nonlinearities and stochastic regularizers with gaussian error linear units. CoRR abs/1606.08415 (2016), http://arxiv.org/abs/1606.08415
293
+ 42. Huang, Z., Shi, X., Zhang, C., Wang, Q., Cheung, K.C., Qin, H., Dai, J., Li, H.: Flowformer: A transformer architecture for optical flow. In: ECCV (2022)
294
+ 43. Humenberger, M., Cabon, Y., Guerin, N., Morat, J., Revaud, J., Rerole, P., Pion, N., de Souza, C., Leroy, V., Csurka, G.: Robust image retrieval-based visual localization using kapture (2020)
295
+ 44. Jiang, S., Campbell, D., Lu, Y., Li, H., Hartley, R.I.: Learning to estimate hidden motions with global motion aggregation (2021)
296
+ 45. Jiang, W., Trulls, E., Hosang, J., Tagliasacchi, A., Yi, K.M.: COTR: Correspondence Transformer for Matching Across Images. In: ICCV (2021)
297
+ 46. Jin, Y., Mishkin, D., Mishchuk, A., Matas, J., Fua, P., Yi, K., Trulls, E.: Image Matching across Wide Baselines: From Paper to Practice. IJCV (2020)
298
+ 47. Johnson, J., Douze, M., Jégou, H.: Billion-scale similarity search with GPUs. IEEE Transactions on Big Data 7(3), 535-547 (2019)
299
+ 48. Junjie, N., Yijin, L., Zhaoyang, H., Hongsheng, L., Hujun, B., Zhaopeng, C., Guofeng, Z.: Pats: Patch area transportation with subdivision for local feature matching. In: CVPR (2023)
300
+ 49. Kloepfer, D.A., Henriques, J.F., Campbell, D.: SCENES: Subpixel Correspondence Estimation With Epipolar Supervision (2024), http://arxiv.org/abs/2401.10886
301
+ 50. Li, Z., Snavely, N.: Megadepth: Learning single-view depth prediction from internet photos. In: CVPR. pp. 2041-2050 (2018)
302
+ 51. Lin, A., Zhang, J.Y., Ramanan, D., Tulsiani, S.: Relpose++: Recovering 6d poses from sparse-view observations. CoRR abs/2305.04926 (2023)
303
+ 52. Lindenberger, P., Sarlin, P., Larsson, V., Pollefeys, M.: Pixel-perfect structure-from-motion with featuremetric refinement. In: ICCV (2021)
304
+ 53. Lindenberger, P., Sarlin, P., Pollefeys, M.: Lightglue: Local feature matching at light speed. In: ICCV (2023)
305
+ 54. Lowe, D.: Distinctive Image Features from Scale-invariant Keypoints. IJCV (2004)
306
+ 55. Luo, Z., Zhou, L., Bai, X., Chen, H., Zhang, J., Yao, Y., Li, S., Fang, T., Quan, L.: Aslfeat: Learning local features of accurate shape and localization. In: CVPR (2020)
307
+ 56. Ma, J., Jiang, X., Fan, A., Jiang, J., Yan, J.: Image matching from handcrafted to deep features: A survey. IJCV (2021)
308
+ 57. Ma, Z., Teed, Z., Deng, J.: Multiview stereo with cascaded epipolar raft. In: ECCV (2022)
309
+ 58. Maneewongvatana, S., Mount, D.M.: Analysis of approximate nearest neighbor searching with clustered point sets. In: DIMACS. DIMACS Series in Discrete Mathematics and Theoretical Computer Science (1999)
310
+
311
+ 59. Mayer, N., Ilg, E., Häusser, P., Fischer, P., Cremers, D., Dosovitskiy, A., Brox, T.: A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In: CVPR (2016)
312
+ 60. Melekhov, I., Tiulpin, A., Sattler, T., Pollefeys, M., Rahtu, E., Kannala, J.: DGC-Net: Dense geometric correspondence network. In: Proceedings of the IEEE Winter Conference on Applications of Computer Vision (WACV) (2019)
313
+ 61. Mishkin, D., Matas, J., Perdoch, M., Lenc, K.: Wxbs: Wide baseline stereo generalizations. In: Xie, X., Jones, M.W., Tam, G.K.L. (eds.) BMVC (2015)
314
+ 62. Mishkin, D., Radenovic, F., Matas, J.: Repeatability is not enough: Learning affine regions via discriminability. In: ECCV (2018)
315
+ 63. Mur-Artal, R., Montiel, J.M.M., Tardos, J.D.: Orb-slam: a versatile and accurate monocular slam system. IEEE transactions on robotics (2015)
316
+ 64. Na, Y., Kim, W.J., Han, K.B., Ha, S., Yoon, S.E.: Ufoorecon: Generalizable sparseview surface reconstruction from arbitrary and unfavorable sets. In: CVPR (2024)
317
+ 65. van den Oord, A., Li, Y., Vinyals, O.: Representation learning with contrastive predictive coding. CoRR abs/1807.03748 (2018), http://arxiv.org/abs/1807.03748
318
+ 66. Oquab, M., Darcet, T., Moutakanni, T., Vo, H., Szafraniec, M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-Nouby, A., Assran, M., Ballas, N., Galuba, W., Howes, R., Huang, P., Li, S., Misra, I., Rabbat, M.G., Sharma, V., Synnaeve, G., Xu, H., Jegou, H., Mairal, J., Labatut, P., Joulin, A., Bojanowski, P.: Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193 (2023)
319
+ 67. Özyeşil, O., Voroninski, V., Basri, R., Singer, A.: A survey of structure from motion*. Acta Numerica 26, 305-364 (2017)
320
+ 68. Peppa, M., Mills, J., Fieber, K., Haynes, I., Turner, S., Turner, A., Douglas, M., Bryan, P.: Archaeological feature detection from archive aerial photography with a sfm-mvs and image enhancement pipeline. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences 42, 869-875 (2018)
321
+ 69. Ranftl, R., Bochkovskiy, A., Koltun, V.: Vision transformers for dense prediction. In: ICCV (2021)
322
+ 70. Ranjan, A., Black, M.J.: Optical flow estimation using a spatial pyramid network. In: CVPR (2017)
323
+ 71. Reizenstein, J., Shapovalov, R., Henzler, P., Sbordone, L., Labatut, P., Novotny, D.: Common objects in 3d: Large-scale learning and evaluation of real-life 3d category reconstruction. In: ICCV (2021)
324
+ 72. Revaud, J., Weinzaepfel, P., Harchaoui, Z., Schmid, C.: EpicFlow: Edge-Preserving Interpolation of Correspondences for Optical Flow. In: CVPR (2015)
325
+ 73. Revaud, J., Weinzaepfel, P., Harchaoui, Z., Schmid, C.: DeepMatching: Hierarchical deformable dense matching. IJCV (2016)
326
+ 74. Revaud, J., Weinzaepfel, P., de Souza, C.R., Humenberger, M.: R2D2: repeatable and reliable detector and descriptor. In: NIPS (2019)
327
+ 75. Rockwell, C., Kulkarni, N., Jin, L., Park, J.J., Johnson, J., Fouhey, D.F.: Far: Flexible, accurate and robust 6 dof relative camera pose estimation (2024)
328
+ 76. Rublee, E., Rabaud, V., Konolige, K., Bradski, G.R.: ORB: an efficient alternative to SIFT or SURF. In: ICCV (2011)
329
+ 77. Sarlin, P.E., Cadena, C., Siegwart, R., Dymczyk, M.: From coarse to fine: Robust hierarchical localization at large scale. In: CVPR (2019)
330
+ 78. Sarlin, P., DeTone, D., Malisiewicz, T., Rabinovich, A.: SuperGlue: Learning feature matching with graph neural networks. In: CVPR (2020)
331
+
332
+ 79. Savva, M., Kadian, A., Maksymets, O., Zhao, Y., Wijmans, E., Jain, B., Straub, J., Liu, J., Koltun, V., Malik, J., Parikh, D., Batra, D.: Habitat: A platform for embodied ai research. In: ICCV (2019)
333
+ 80. Schonberger, J.L., Hardmeier, H., Sattler, T., Pollefeys, M.: Comparative Evaluation of Hand-Crafted and Learned Local Features. In: CVPR (2017)
334
+ 81. Schonberger, J.L., Frahm, J.M.: Structure-from-motion revisited. In: Conference on Computer Vision and Pattern Recognition (CVPR) (2016)
335
+ 82. Schonberger, J.L., Zheng, E., Pollefeys, M., Frahm, J.M.: Pixelwise view selection for unstructured multi-view stereo. In: ECCV (2016)
336
+ 83. Sethi, I.K., Jain, R.C.: Finding trajectories of feature points in a monocular image sequence. IEEE TPAMI (1987)
337
+ 84. Shi, X., Huang, Z., Bian, W., Li, D., Zhang, M., Cheung, K.C., See, S., Qin, H., Dai, J., Li, H.: Videoflow: Exploiting temporal cues for multi-frame optical flow estimation. In: ICCV (2023)
338
+ 85. Shi, X., Huang, Z., Li, D., Zhang, M., Cheung, K.C., See, S., Qin, H., Dai, J., Li, H.: Flowformer++: Masked cost volume autoencoding for pretraining optical flow estimation. In: CVPR (2023)
339
+ 86. Spencer, J., Russell, C., Hadfield, S., Bowden, R.: Kick back & relax++: Scaling beyond ground-truth depth with slowtv & cribstv. In: ArXiv Preprint (2024)
340
+ 87. Sun, J., Shen, Z., Wang, Y., Bao, H., Zhou, X.: LoFTR: Detector-free local feature matching with transformers. CVPR (2021)
341
+ 88. Sun, P., Kretzschmar, H., Dotiwalla, X., Chouard, A., Patnaik, V., Tsui, P., Guo, J., Zhou, Y., Chai, Y., Caine, B., Vasudevan, V., Han, W., Ngiam, J., Zhao, H., Timofeev, A., Ettinger, S., Krivokon, M., Gao, A., Joshi, A., Zhang, Y., Shlens, J., Chen, Z., Anguelov, D.: Scalability in perception for autonomous driving: Waymo open dataset. In: CVPR (June 2020)
342
+ 89. Taira, H., Okutomi, M., Sattler, T., Cimpoi, M., Pollefeys, M., Sivic, J., Pajdla, T., Torii, A.: InLoc: Indoor Visual Localization with Dense Matching and View Synthesis. PAMI (2019)
343
+ 90. Tang, S., Zhang, J., Zhu, S., Tan, P.: Quadtree attention for vision transformers. ICLR (2022)
344
+ 91. Teed, Z., Deng, J.: RAFT: recurrent all-pairs field transforms for optical flow. In: ECCV (2020)
345
+ 92. Thrun, S.: Probabilistic robotics. Communications of the ACM 45(3), 52-57 (2002)
346
+ 93. Tian, Y., Yu, X., Fan, B., Wu, F., Heijnen, H., Balntas, V.: Sosnet: Second order similarity regularization for local descriptor learning. In: CVPR (2019)
347
+ 94. Toft, C., Turmukhambetov, D., Sattler, T., Kahl, F., Brostow, G.J.: Single-image depth prediction makes feature matching easier. In: ECCV (2020)
348
+ 95. Tola, E., Strecha, C., Fua, P.: Efficient large-scale multi-view stereo for ultra high-resolution image sets. Mach. Vis. Appl. (2012)
349
+ 96. Tosi, F., Liao, Y., Schmitt, C., Geiger, A.: Smd-nets: Stereo mixture density networks. In: Conference on Computer Vision and Pattern Recognition (CVPR) (2021)
350
+ 97. Truong, P., Danelljan, M., Gool, L.V., Timofte, R.: Learning accurate dense correspondences and when to trust them. In: CVPR (2021)
351
+ 98. Truong, P., Danelljan, M., Timofte, R.: GLU-Net: Global-local universal network for dense flow and correspondences. In: CVPR (2020)
352
+ 99. Truong, P., Danelljan, M., Timofte, R., Gool, L.V.: Pdc-net+: Enhanced probabilistic dense correspondence network. IEEE TPAMI (2023)
353
+
354
+ 100. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need. In: Guyon, I., von Luxburg, U., Bengio, S., Wallach, H.M., Fergus, R., Vishwanathan, S.V.N., Garnett, R. (eds.) NeurIPS (2017)
355
+ 101. Verdie, Y., Yi, K.M., Fua, P., Lepetit, V.: TILDE: A temporally invariant learned detector. In: CVPR (2015)
356
+ 102. Wang, B., Chen, C., Cui, Z., Qin, J., Lu, C.X., Yu, Z., Zhao, P., Dong, Z., Zhu, F., Trigoni, N., Markham, A.: P2-net: Joint description and detection of local features for pixel and point matching. In: ICCV (2021)
357
+ 103. Wang, F., Galliani, S., Vogel, C., Speciale, P., Pollefeys, M.: Patchmatchnet: Learned multi-view patchmatch stereo. In: CVPR. pp. 14194-14203 (2021)
358
+ 104. Wang, J., Rupprecht, C., Novotny, D.: PoseDiffusion: Solving pose estimation via diffusion-aided bundle adjustment (2023)
359
+ 105. Wang, Q., Zhou, X., Hariharan, B., Snavely, N.: Learning Feature Descriptors using Camera Pose Supervision. In: ECCV (2020)
360
+ 106. Wang, S., Leroy, V., Cabon, Y., Chidlovskii, B., Revaud, J.: Dust3r: Geometric 3d vision made easy (2023)
361
+ 107. Wang, W., Zhu, D., Wang, X., Hu, Y., Qiu, Y., Wang, C., Hu, Y., Kapoor, A., Scherer, S.: Tartanair: A dataset to push the limits of visual slam (2020)
362
+ 108. Weinzaepfel, P., Lucas, T., Leroy, V., Cabon, Y., Arora, V., Brégier, R., Csurka, G., Antsfeld, L., Chidlovskii, B., Revaud, J.: CroCo v2: Improved Cross-view Completion Pre-training for Stereo Matching and Optical Flow. In: ICCV (2023)
363
+ 109. Wu, C.: VisualSFM: A Visual Structure from Motion System. http://ccwu.me/vsfm/ (2011)
364
+ 110. Wu, H., Sankaranarayanan, A.C., Chellappa, R.: Cvpr (2007)
365
+ 111. Xu, Q., Tao, W.: Learning inverse depth regression for multi-view stereo with correlation cost volume. In: AAAI (2020)
366
+ 112. Yang, G., Malisiewicz, T., Belongie, S.J.: Learning data-adaptive interest points through epipolar adaptation. In: CVPR Workshops (2019)
367
+ 113. Yang, J., Mao, W., Álvarez, J.M., Liu, M.: Cost volume pyramid based depth inference for multi-view stereo. In: CVPR. pp. 4876-4885 (2020)
368
+ 114. Yao, Y., Luo, Z., Li, S., Fang, T., Quan, L.: Mvsnet: Depth inference for unstructured multi-view stereo. In: ECCV (2018)
369
+ 115. Yao, Y., Luo, Z., Li, S., Zhang, J., Ren, Y., Zhou, L., Fang, T., Quan, L.: Blended-mvs: A large-scale dataset for generalized multi-view stereo networks. In: CVPR (2020)
370
+ 116. Yao, Y., Jafarian, Y., Park, H.S.: MONET: multiview semi-supervised keypoint detection via epipolar divergence. In: ICCV (2019)
371
+ 117. Yeshwanth, C., Liu, Y.C., Nießner, M., Dai, A.: Scannet++: A high-fidelity dataset of 3d indoor scenes. In: Proceedings of the International Conference on Computer Vision (ICCV) (2023)
372
+ 118. Yifan, W., Doersch, C., Arandjelovic, R., Carreira, J., Zisserman, A.: Input-level inductive biases for 3d reconstruction. In: IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022 (2022)
373
+ 119. Zhang, J.Y., Lin, A., Kumar, M., Yang, T.H., Ramanan, D., Tulsiani, S.: Cameras as rays: Pose estimation via ray diffusion. In: International Conference on Learning Representations (ICLR) (2024)
374
+ 120. Zhang, J.Y., Ramanan, D., Tulsiani, S.: Relpose: Predicting probabilistic relative rotation for single objects in the wild. In: ECCV (2022)
375
+
376
+ 121. Zhang, X., Yu, F.X., Karaman, S., Chang, S.: Learning discriminative and transformation covariant local feature detectors. In: CVPR (2017)
377
+ 122. Zhang, Z., Peng, R., Hu, Y., Wang, R.: Geomvsnet: Learning multi-view stereo with geometry perception. In: CVPR (2023)
378
+ 123. Zhang, Z., Sattler, T., Scaramuzza, D.: Reference pose generation for long-term visual localization via learned features and view synthesis. IJCV (2021)
379
+ 124. Zhou, Q., Sattler, T., Leal-Taixe, L.: Patch2pix: Epipolar-guided pixel-level correspondences. In: CVPR (2021)
380
+ 125. Zhou, T., Tucker, R., Flynn, J., Fyffe, G., Snavely, N.: Stereo magnification: Learning view synthesis using multiplane images. SIGGRAPH (2018)
381
+ 126. Zhu, S., Liu, X.: Pmatch: Paired masked image modeling for dense geometric matching. In: CVPR (2023)
2024/Grounding Image Matching in 3D with MASt3R/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3b660f9ec5d80a54b20b662ba43f2a96acfcda6269e6b23ac514f8de774f48f
3
+ size 518840
2024/Grounding Image Matching in 3D with MASt3R/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Grounding Language Models for Visual Entity Recognition/f81adb0c-1edb-4295-b40e-665cc7191457_content_list.json ADDED
@@ -0,0 +1,2002 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Grounding Language Models for Visual Entity Recognition",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 238,
8
+ 138,
9
+ 767,
10
+ 186
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Zilin Xiao $^{1}$ , Ming Gong $^{2}$ , Paola Cascante-Bonilla $^{1}$ , Xingyao Zhang $^{2}$ , Jie Wu $^{2}$ , and Vicente Ordonez $^{1}$",
17
+ "bbox": [
18
+ 316,
19
+ 210,
20
+ 684,
21
+ 243
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "$^{1}$ Department of Computer Science, Rice University, USA {zilin, pc51, vicenteor}@rice.edu \n $^{2}$ Microsoft STCA, China {migon, xingyaozhang, jiewu1}@microsoft.com",
28
+ "bbox": [
29
+ 305,
30
+ 253,
31
+ 694,
32
+ 311
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract. We introduce AutoVER, an Autoregressive model for Visual Entity Recognition. Our model extends an autoregressive Multi-modal Large Language Model by employing retrieval augmented constrained generation. It mitigates low performance on out-of-domain entities while excelling in queries that require visual reasoning. Our method learns to distinguish similar entities within a vast label space by contrastively training on hard negative pairs in parallel with a sequence-to-sequence objective without an external retriever. During inference, a list of retrieved candidate answers explicitly guides language generation by removing invalid decoding paths. The proposed method achieves significant improvements across different dataset splits in the recently proposed OVEN-Wiki benchmark with accuracy on the ENTITY SEEN split rising from $32.7\\%$ to $61.5\\%$ . It demonstrates superior performance on the UNSEEN and QUERY splits by a substantial double-digit margin, while also preserving the ability to effectively transfer to other generic visual question answering benchmarks without further training.",
39
+ "bbox": [
40
+ 261,
41
+ 349,
42
+ 743,
43
+ 571
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Keywords: Language Model $\\cdot$ Visual Entity Recognition",
50
+ "bbox": [
51
+ 261,
52
+ 584,
53
+ 650,
54
+ 599
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "1 Introduction",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 217,
64
+ 626,
65
+ 375,
66
+ 642
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Multimodal Large Language Models (MLLMs) have demonstrated superior performance on a variety of vision-and-language tasks such as visual question answering, image captioning, zero-shot image classification, among others [40, 55]. Their abilities can be transferred with few-shot tuning [2, 69] or even learning in context without parameter updates [5, 73]. Given their remarkable generalization abilities and prior knowledge based on large-scale pre-training, we consider there is still great potential for using them on tasks that require knowledge grounding.",
73
+ "bbox": [
74
+ 212,
75
+ 657,
76
+ 787,
77
+ 763
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "A recently proposed task requiring knowledge grounding is the Open-domain Visual Entity Recognition (OVEN-Wiki) [28] task. In this task, given an input image and a question about the image, the goal is to answer with a very specific entity from Wikipedia. For instance, the answers could be a specific model of airplane, e.g. ATR 42, or BRITISH AEROSPACE 146. This is a very challenging",
84
+ "bbox": [
85
+ 212,
86
+ 765,
87
+ 787,
88
+ 840
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "image",
94
+ "img_path": "images/d9d0a4a631eb04634c7263bbd0f1438c85d9f554d8a6c2e1f3a0431969ba8005.jpg",
95
+ "image_caption": [
96
+ "Fig. 1: A representative query-entity pair from OVEN-Wiki. We briefly illustrate the model inference process and compare predictions from PaLI-17B (in red) and AutoVER-7B (in green) which obtains the correct answer: ATR 42. AutoVER retrieves entity candidates without an external retriever (step 1), dynamically constructs a prefix tree (trie) (step 2), and performs decoding-time augmentation to guide autoregressive generation (step 3)."
97
+ ],
98
+ "image_footnote": [],
99
+ "bbox": [
100
+ 215,
101
+ 142,
102
+ 787,
103
+ 296
104
+ ],
105
+ "page_idx": 1
106
+ },
107
+ {
108
+ "type": "text",
109
+ "text": "task where MLLM-based solutions are prone to hallucinations, or producing answers that are not at the right level of granularity. Importantly, visual entity recognition requires recognizing entities that never appear in the training data (UNSEEN split). Moreover, a portion of the OVEN-Wiki benchmark (QUERY split) extends the task beyond recognition, requiring non-trivial reasoning to resolve the query question.",
110
+ "bbox": [
111
+ 212,
112
+ 414,
113
+ 787,
114
+ 505
115
+ ],
116
+ "page_idx": 1
117
+ },
118
+ {
119
+ "type": "text",
120
+ "text": "Visual Entity Recognition (VER) presents unique challenges compared to general Visual Question Answering (VQA) [1, 45]. The first challenge lies in the answer label space comprising over 6 million Wikipedia entities, which is prohibitive for classifier-based VQA models [58] as many entities considered in this ontology are visually very similar. The second issue involves generation-based VQA solutions [18, 40], where hallucinations can lead to generated text that is not grounded to the entity space. Lastly, existing VQA approaches fail to consider the visual information of candidates [41, 65]. Entity images from the knowledge base also play a significant role when disambiguating between entities with similar identifiers but different visual appearance. These methods also struggle with out-of-domain generalization and multi-hop reasoning, challenges which are covered by the UNSEEN and QUERY split of the OVEN-Wiki dataset.",
121
+ "bbox": [
122
+ 212,
123
+ 506,
124
+ 787,
125
+ 686
126
+ ],
127
+ "page_idx": 1
128
+ },
129
+ {
130
+ "type": "text",
131
+ "text": "In this work, we introduce an Autoregressive Visual Entity Recognizer (AutoVER), the first approach that enables multimodal language models to perform accurate visual entity recognition over a massive knowledge base. AutoVER addresses entity recognition by reformulating the problem as a sequence-to-sequence generation problem, as depicted in Fig. 1. The query image is translated into the token embedding space using a learnable projection layer, in a manner akin to treating images as a foreign language [43, 72]. This allows us to utilize pre-trained multi-modal language models and enormously improves performance on the QUERY split of OVEN-Wiki which requires reasoning over spatial relations, commonsense, and other visually-situated contexts.",
132
+ "bbox": [
133
+ 212,
134
+ 688,
135
+ 787,
136
+ 839
137
+ ],
138
+ "page_idx": 1
139
+ },
140
+ {
141
+ "type": "page_number",
142
+ "text": "2",
143
+ "bbox": [
144
+ 217,
145
+ 114,
146
+ 228,
147
+ 126
148
+ ],
149
+ "page_idx": 1
150
+ },
151
+ {
152
+ "type": "header",
153
+ "text": "Z. Xiao et al.",
154
+ "bbox": [
155
+ 271,
156
+ 114,
157
+ 361,
158
+ 126
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "To take advantage of visual clues on the entity side and enhance the generalization capability of the model on UNSEEN entities, we propose a unified and compact retrieval-augmented generation (RAG) framework upon AutoVER. Specifically, a special token $\\langle \\text{ret} \\rangle$ is added to the vocabulary, whose last-layer hidden states serve as the representation for the query side. A lightweight two-layer Transformer is responsible for fusing visual features from entity images and textual features from entity descriptions and producing a representation for the entities, allowing contrastive learning with query-entity positive pairs in parallel with language modeling. Unlike other RAG systems that directly use retrieved items as context [57, 75] or infuse them into the model's intermediate hidden states [17, 24, 39], AutoVER dynamically constructs a prefix tree (trie) from the retrieved entity identifiers, and then generates entity identifiers by leveraging a methodology that constrains the next possible tokens and eliminates invalid options based on the trie, thus ensuring the generated text can always be grounded in retrieved candidates. To alleviate the entity granularity problem, two hard negative sampling strategies are proposed in our contrastive-generative framework to encourage the model to maximally distinguish between similar entities.",
165
+ "bbox": [
166
+ 217,
167
+ 146,
168
+ 785,
169
+ 416
170
+ ],
171
+ "page_idx": 2
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "In summary, AUTOVER offers several advantages over baselines and prior work on VQA in the realm of visual entity recognition: (i) It refines the recognition process by integrating contrastive training into an MLLM. (ii) The proposed retrieval-augmented constrained decoding framework guarantees correct grounded entity prediction and enhances prediction over UNSEEN entities; (iii) AUTOVER leverages pre-trained visual models and knowledge graphs for hard negative mining which significantly strengthens our contrastive-generative framework in fine-grained entity recognition; (iv) Experimental results show that AUTOVER consistently outperforms fine-tuned CLIP and PaLI variants on all OVEN-Wiki splits. For instance, AUTOVER-7B achieves a $61.5\\%$ accuracy on the OVEN-Wiki ENTITY SEEN split over PaLI-17B's $30.6\\%$ , and $21.7\\%$ on ENTITY UNSEEN over PaLI-17B's $12.4\\%$ . Additionally, we evaluate AUTOVER alongside public multimodal LLMs on entity-related questions from the A-OKVQA dataset, demonstrating that our model can effectively zero-shot transfer to out-of-domain VQA datasets beyond OVEN-Wiki. Furthermore, ablation studies confirm the effectiveness of the introduced retrieve-generate framework. Code is released at https://github.com/MrZilinXiao/AutoVER.",
176
+ "bbox": [
177
+ 217,
178
+ 417,
179
+ 785,
180
+ 674
181
+ ],
182
+ "page_idx": 2
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "2 Related Work",
187
+ "text_level": 1,
188
+ "bbox": [
189
+ 217,
190
+ 698,
191
+ 385,
192
+ 714
193
+ ],
194
+ "page_idx": 2
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "Visual Entity Recognition (VER) [28] is an emerging task for assessing the ability of a model to perform multi-modal knowledge grounding [29,53,79]. It can be regarded as a variant of visual question answering [1,45,59] with the key distinction that the choice set will comprise all entities in a specific knowledge base. Earlier solutions view this problem as an image-text-to-image-text retrieval task, where CLIP-based models [56] are fine-tuned and the top-scored answer in inference is treated as the model prediction. Alternatively, others rely on fine-tuning",
199
+ "bbox": [
200
+ 217,
201
+ 734,
202
+ 785,
203
+ 839
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "header",
209
+ "text": "Grounding Language Models for Visual Entity Recognition",
210
+ "bbox": [
211
+ 339,
212
+ 114,
213
+ 730,
214
+ 128
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "page_number",
220
+ "text": "3",
221
+ "bbox": [
222
+ 774,
223
+ 116,
224
+ 784,
225
+ 126
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "generative language models such as PaLI [12] and Git [8,71] in an attempt to match the generated text with candidate entity identifiers using sparse matching approaches such as BM25 [61]. Entity Linking (EL) has been a long-standing text-only counterpart to VER, which entails locating mentions in the document and disambiguating them against a set of candidate entities. Our method bears the closest resemblance with the recent generative EL paradigm [7,47,78], which also reduces the knowledge-grounding problem into a sequence-to-sequence generation task. However, we stand out with several distinct advantages, including the seamless integration of retrieval capabilities into the language model and the use of explicit guidance for sequence generation.",
232
+ "bbox": [
233
+ 212,
234
+ 146,
235
+ 787,
236
+ 297
237
+ ],
238
+ "page_idx": 3
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "Multimodal LLMs (MLLMs) are motivated by the remarkable reasoning abilities of Large Language Models (LLMs). LLaVA [43] builds upon LLaMA [68] and uses instruction-tuning to align visual features to the language space. The common practice of prompting MLLMs to produce proxy representations for downstream usage is to expand the vocabulary of language models. Such expansion augments the MLLM functionality beyond language generation. FROMAGe [34], GILL [33], GenLLaVa [26] and LISA [37] achieve satisfactory results over image-text-to-text retrieval, image generation and reasoning segmentation by inserting special tokens to augment the MLLMs original functionality. Our approach, built upon one of the latest MLLM model architecture, presents a compelling alternative to the bi-encoder shallow dot-product interaction or encoder-decoder sparse surface form matching employed in previous works on visual entity recognition. Our method also integrates contrastive learning on the outputs of entities and question pairs, analogous to the image-text contrastive learning used in CLIP-like models [54, 56, 66] and among visual features used for self-supervised contrastive learning [3, 11, 16, 25].",
243
+ "bbox": [
244
+ 212,
245
+ 311,
246
+ 787,
247
+ 554
248
+ ],
249
+ "page_idx": 3
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "Retrieval-Augmented Language Models (RALMs) represent a class of NLP solutions focusing on knowledge-intensive tasks. RALMs typically condition a language model on relevant documents from a grounding corpus during generation, thereby enhancing the performance in knowledge-intensive language understanding tasks. Lewis et al. [39] jointly fine-tune a retriever with an encoder-decoder model, enabling the community to explore the RALM paradigm in language understanding. Guu et al. [23] train a bi-directional variant and also demonstrate superior performance. Apart from retrieved items in context, Févry et al. [17] are the first to integrate retrieved entity supervision by injecting intermediate representations. While augmented context helps in mitigating the well-known issue of hallucination, it does not ensure a faithful prediction with respect to an external knowledge base. Our retrieve-generate framework is distinct from existing retrieval-augmented methods. AUTOVER reduces the candidate entity set from millions to hundreds for generative language models through retrieval [30] and dynamically constrains language model generation using a prefix tree. This framework coincides with the design philosophy of agents [22] in Interactive NLP [74], where an agent interacts with the dynamic environment by performing beam-search on all available options.",
254
+ "bbox": [
255
+ 212,
256
+ 566,
257
+ 787,
258
+ 840
259
+ ],
260
+ "page_idx": 3
261
+ },
262
+ {
263
+ "type": "page_number",
264
+ "text": "4",
265
+ "bbox": [
266
+ 217,
267
+ 114,
268
+ 228,
269
+ 126
270
+ ],
271
+ "page_idx": 3
272
+ },
273
+ {
274
+ "type": "header",
275
+ "text": "Z. Xiao et al.",
276
+ "bbox": [
277
+ 271,
278
+ 114,
279
+ 361,
280
+ 127
281
+ ],
282
+ "page_idx": 3
283
+ },
284
+ {
285
+ "type": "image",
286
+ "img_path": "images/0b98eb3cac018630fc99a4e28956a39499267543492cd431c21911f775cd4837.jpg",
287
+ "image_caption": [
288
+ "Fig. 2: Joint training of in-batch contrastive learning and language modeling in AU-TOVER. For each training quadruple consisting of an entity image, an entity description, a query image and a query question, a lightweight Transformer encoder produces the fused entity representation $E_{i}$ (left half). A special retrieval token prompts the multimodal language model to generate the query representation $Q_{i}$ . The query-to-entity contrastive training (Lquery2ent) encourages the correct retrieval of entities given the query pair, and the language modeling (LLM) helps the successful entity grounding."
289
+ ],
290
+ "image_footnote": [],
291
+ "bbox": [
292
+ 228,
293
+ 143,
294
+ 776,
295
+ 359
296
+ ],
297
+ "page_idx": 4
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "3 Methodology",
302
+ "text_level": 1,
303
+ "bbox": [
304
+ 215,
305
+ 506,
306
+ 379,
307
+ 523
308
+ ],
309
+ "page_idx": 4
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "We first formulate the Visual Entity Recognition problem in Sec. 3.1. Then we present the overview design of AUTOVER in Sec. 3.2. We illustrate hard-negative mining with knowledge base source and pre-trained visual model in Sec. 3.3 and retrieval-augmented constrained decoding process in Sec. 3.4.",
314
+ "bbox": [
315
+ 212,
316
+ 537,
317
+ 787,
318
+ 599
319
+ ],
320
+ "page_idx": 4
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "3.1 Problem Definition",
325
+ "text_level": 1,
326
+ "bbox": [
327
+ 215,
328
+ 619,
329
+ 419,
330
+ 633
331
+ ],
332
+ "page_idx": 4
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "Visual Entity Recognition can be viewed as a multimodal knowledge grounding task, in which the model is required to process an image-text pair input $x = (\\mathbf{Q}_{\\mathrm{im}}, \\mathbf{Q}_{\\mathrm{t}})$ and predict an entity $e$ . $\\mathbf{Q}_{\\mathrm{t}}$ describes the specific intent that prompts the model to ground some entity $e$ in the image $\\mathbf{Q}_{\\mathrm{im}}$ to a label space $\\mathcal{E}$ . Each entity $e \\in \\mathcal{E}$ is a member of the knowledge base $\\mathcal{K} = \\{(e, \\mathbf{E}_{\\mathrm{im}}, \\mathbf{E}_{\\mathrm{desc}}) \\mid e \\in \\mathcal{E}\\}$ where $\\mathbf{E}_{\\mathrm{desc}}$ is a text description and $\\mathbf{E}_{\\mathrm{im}}$ is a set of relevant images of the entity. To circumvent trivial solutions for some query questions, all image-text pairs are annotated so the question cannot be correctly answered without the image.",
337
+ "bbox": [
338
+ 212,
339
+ 642,
340
+ 787,
341
+ 765
342
+ ],
343
+ "page_idx": 4
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "3.2 Model Overview",
348
+ "text_level": 1,
349
+ "bbox": [
350
+ 215,
351
+ 785,
352
+ 398,
353
+ 799
354
+ ],
355
+ "page_idx": 4
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "AUTOVER consists of two main modules: a multi-modal language model $f_{\\phi}$ initialized with pre-trained weights $\\phi$ , and a multi-modal entity encoder $F_{\\varphi}$",
360
+ "bbox": [
361
+ 212,
362
+ 809,
363
+ 785,
364
+ 842
365
+ ],
366
+ "page_idx": 4
367
+ },
368
+ {
369
+ "type": "header",
370
+ "text": "Grounding Language Models for Visual Entity Recognition",
371
+ "bbox": [
372
+ 338,
373
+ 114,
374
+ 730,
375
+ 128
376
+ ],
377
+ "page_idx": 4
378
+ },
379
+ {
380
+ "type": "page_number",
381
+ "text": "5",
382
+ "bbox": [
383
+ 774,
384
+ 116,
385
+ 784,
386
+ 126
387
+ ],
388
+ "page_idx": 4
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "that fuses the entity image and textual description. To integrate the retrieval functionality into $f_{\\phi}$ , we insert a special token $\\langle \\mathrm{ret} \\rangle$ into the vocabulary of $f_{\\phi}$ with its corresponding token embedding denoted as $\\mathbf{H}_{\\langle \\mathrm{ret} \\rangle}$ .",
393
+ "bbox": [
394
+ 212,
395
+ 146,
396
+ 782,
397
+ 191
398
+ ],
399
+ "page_idx": 5
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "We illustrate the training process in Fig. 2. For a training sample $(\\mathbf{Q}_{\\mathrm{im}},\\mathbf{Q}_{\\mathrm{t}},$ $\\mathbf{E}_{\\mathrm{im}},\\mathbf{E}_{\\mathrm{desc}})$ , we first use a frozen pre-trained CLIP visual encoder $g_{\\mathrm{vision}}$ and a learnable projection $\\mathbf{W}_q$ to extract query image features $\\mathbf{H}_{\\mathrm{im}}$ and the embedded query text representations $\\mathbf{H}_{\\mathrm{t}}$ as follow:",
404
+ "bbox": [
405
+ 212,
406
+ 191,
407
+ 784,
408
+ 252
409
+ ],
410
+ "page_idx": 5
411
+ },
412
+ {
413
+ "type": "equation",
414
+ "text": "\n$$\n\\mathbf {H} _ {\\mathrm {i m}} = \\mathbf {W} _ {q} \\cdot g _ {\\text {v i s i o n}} \\left(\\mathbf {Q} _ {\\mathrm {i m}}\\right),\n$$\n",
415
+ "text_format": "latex",
416
+ "bbox": [
417
+ 408,
418
+ 266,
419
+ 593,
420
+ 281
421
+ ],
422
+ "page_idx": 5
423
+ },
424
+ {
425
+ "type": "equation",
426
+ "text": "\n$$\n\\mathbf {H} _ {\\mathrm {t}} = \\mathbf {W} _ {\\text {e m b e d}} \\cdot \\mathbf {Q} _ {\\mathrm {t}},\n$$\n",
427
+ "text_format": "latex",
428
+ "bbox": [
429
+ 408,
430
+ 285,
431
+ 544,
432
+ 299
433
+ ],
434
+ "page_idx": 5
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "where $\\mathbf{W}_{\\mathrm{embed}}$ is the token embedding layer associated with $f_{\\phi}$ , thus, treating the query image features as a foreign language. We concatenate the embedded query text representations and the query image features with the retrieval token embedding to organize the input instruction to model $\\mathbf{H} = [\\mathbf{H}_{\\mathrm{im}}, \\mathbf{H}_{\\mathrm{t}}, \\mathbf{H}_{<\\mathrm{ret}}]$ . The last-layer hidden states of $\\langle \\mathrm{ret} \\rangle$ token undergo dimension-matching projection and L2 normalization to a hyperspherical space, serving as the representation on the query side denoted as $Q$ . The use of a causal attention mask in $f_{\\phi}$ allows this representation to incorporate the multi-modal query without leaking any label information.",
439
+ "bbox": [
440
+ 212,
441
+ 311,
442
+ 784,
443
+ 446
444
+ ],
445
+ "page_idx": 5
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "On the entity encoder side, a frozen CLIP visual encoder $g_{\\text{vision}}$ transforms entity image $\\mathbf{E}_{\\text{im}}$ into grid image features $\\mathbf{Z}_{\\text{im}}$ , and the frozen CLIP text encoder $g_{\\text{text}}$ encodes the entity identifier and description into text features $\\mathbf{Z}_{\\text{text}}$ . A two-layer Transformer encoder handles the fusion of two modalities by a fusion token as a soft prompt [38], whose design was also adopted in [32]. The final-layer hidden states of the fusion token are also subjected to dimension matching and L2 normalization, providing the entity representation $E$ .",
450
+ "bbox": [
451
+ 212,
452
+ 448,
453
+ 784,
454
+ 554
455
+ ],
456
+ "page_idx": 5
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "In-Batch Contrastive Training. Given normalized representations from both the query and entity side, $Q$ and $E$ , we formally introduce our in-batch contrastive training method specifically designed for query-to-entity retrieval. While image-text retrieval has been popular in learning joint vision and language representations [31, 56], few studies have delved into image-text-to-image-text retrieval, which happens to be the focus of query-to-entity retrieval. We adopt contrastive learning [13] and the InfoNCE loss [50] used in previous image-text retrieval work. Starting with computing the cosine similarity for a pair of representations,",
461
+ "bbox": [
462
+ 212,
463
+ 558,
464
+ 784,
465
+ 691
466
+ ],
467
+ "page_idx": 5
468
+ },
469
+ {
470
+ "type": "equation",
471
+ "text": "\n$$\n\\operatorname {s i m} (Q, E) = \\frac {Q \\cdot E}{\\| Q \\| \\| E \\|},\n$$\n",
472
+ "text_format": "latex",
473
+ "bbox": [
474
+ 419,
475
+ 693,
476
+ 581,
477
+ 724
478
+ ],
479
+ "page_idx": 5
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "we minimize the InfoNCE loss for query-to-entity on a mini-batch consisting of $N$ query-entity pairs $(Q_{i},E_{i})$ . Each corresponding pair is considered a positive pair and others are treated as negatives. $\\tau$ is a learnable temperature parameter. Our formulation is as follows:",
484
+ "bbox": [
485
+ 212,
486
+ 731,
487
+ 784,
488
+ 790
489
+ ],
490
+ "page_idx": 5
491
+ },
492
+ {
493
+ "type": "equation",
494
+ "text": "\n$$\n\\mathcal {L} _ {\\mathrm {q u e r y 2 e n t}} = - \\frac {1}{N} \\sum_ {i = 1} ^ {N} \\left(\\log \\frac {\\exp \\left(\\mathrm {s i m} \\left(Q _ {i} , E _ {i}\\right) / \\tau\\right)}{\\sum_ {j = 1} ^ {N} \\exp \\left(\\mathrm {s i m} \\left(Q _ {i} , E _ {j}\\right) / \\tau\\right)}\\right).\n$$\n",
495
+ "text_format": "latex",
496
+ "bbox": [
497
+ 300,
498
+ 801,
499
+ 700,
500
+ 844
501
+ ],
502
+ "page_idx": 5
503
+ },
504
+ {
505
+ "type": "page_number",
506
+ "text": "6",
507
+ "bbox": [
508
+ 217,
509
+ 114,
510
+ 228,
511
+ 126
512
+ ],
513
+ "page_idx": 5
514
+ },
515
+ {
516
+ "type": "header",
517
+ "text": "Z. Xiao et al.",
518
+ "bbox": [
519
+ 271,
520
+ 114,
521
+ 362,
522
+ 127
523
+ ],
524
+ "page_idx": 5
525
+ },
526
+ {
527
+ "type": "image",
528
+ "img_path": "images/fa4c29e372e65b90854f30e56c84bef71c7550286f367ef1f1344c5331395b78.jpg",
529
+ "image_caption": [
530
+ "Fig. 3: Retrieval-augmented constrained decoding illustration of our proposed AutoVER inference process. The representation $Q$ will query a pre-cached entity database constructed using the multimodal entity encoder, and get the top- $k$ candidate entities. A prefix-constrained tree is dynamically built based on retrieved entity identifiers and guides the language model to autoregressively generate the next token, thereby ensuring the successful grounding of generated content."
531
+ ],
532
+ "image_footnote": [],
533
+ "bbox": [
534
+ 217,
535
+ 143,
536
+ 782,
537
+ 282
538
+ ],
539
+ "page_idx": 6
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "Note that we do not train for the reversed objective, i.e. entity-to-query, as it does not align with our retrieval-augmented intuition.",
544
+ "bbox": [
545
+ 212,
546
+ 406,
547
+ 782,
548
+ 436
549
+ ],
550
+ "page_idx": 6
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "In contrast to image-text retrieval which offers a unique correspondence between images and texts, query-to-entity mapping is subjective, i.e. multiple queries in the training data are associated with the same entity. This requires a particular sampling strategy during training to ensure that a batch does not include the same entity, referred to as a \"conflicting batch\". To preserve the integrity of the training data distribution, we implement a rejection sampling [20] method as an alternative to standard random sampling, resorting to resampling upon encountering conflicting batches.",
555
+ "bbox": [
556
+ 212,
557
+ 438,
558
+ 784,
559
+ 559
560
+ ],
561
+ "page_idx": 6
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "Language Modeling. With organized input instruction $\\mathbf{H}$ , we optimize the following cross-entropy loss, which is known as the next token prediction loss in causal language modeling:",
566
+ "bbox": [
567
+ 212,
568
+ 564,
569
+ 784,
570
+ 609
571
+ ],
572
+ "page_idx": 6
573
+ },
574
+ {
575
+ "type": "equation",
576
+ "text": "\n$$\n\\mathcal {L} _ {\\mathrm {L M}} = - \\frac {1}{N - n} \\sum_ {i = n} ^ {N} \\log P (y _ {i} \\mid \\mathbf {H}, \\dots , y _ {i - 1}),\n$$\n",
577
+ "text_format": "latex",
578
+ "bbox": [
579
+ 341,
580
+ 625,
581
+ 658,
582
+ 666
583
+ ],
584
+ "page_idx": 6
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "where $n$ is the length of $\\mathbf{H}$ , $N$ denotes the length of the concatenation of $\\mathbf{H}$ and the expected output, i.e. entity text identifier (BUGATTI VEYRON in Figure 2). Note that we do not backward the next token prediction loss on the input sequence, but only on the target sequence.",
589
+ "bbox": [
590
+ 212,
591
+ 681,
592
+ 782,
593
+ 742
594
+ ],
595
+ "page_idx": 6
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "The final training loss is a linear combination of the language modeling loss and in-batch contrastive loss, denoted as follows:",
600
+ "bbox": [
601
+ 212,
602
+ 743,
603
+ 782,
604
+ 773
605
+ ],
606
+ "page_idx": 6
607
+ },
608
+ {
609
+ "type": "equation",
610
+ "text": "\n$$\n\\mathcal {L} = \\mathcal {L} _ {\\mathrm {L M}} + \\lambda_ {r} \\cdot \\mathcal {L} _ {\\text {q u e r y 2 e n t}},\n$$\n",
611
+ "text_format": "latex",
612
+ "bbox": [
613
+ 403,
614
+ 792,
615
+ 596,
616
+ 809
617
+ ],
618
+ "page_idx": 6
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "where $\\lambda_r$ is an empirically determined trade-off hyperparameter.",
623
+ "bbox": [
624
+ 212,
625
+ 824,
626
+ 678,
627
+ 840
628
+ ],
629
+ "page_idx": 6
630
+ },
631
+ {
632
+ "type": "header",
633
+ "text": "Grounding Language Models for Visual Entity Recognition",
634
+ "bbox": [
635
+ 338,
636
+ 114,
637
+ 732,
638
+ 128
639
+ ],
640
+ "page_idx": 6
641
+ },
642
+ {
643
+ "type": "page_number",
644
+ "text": "7",
645
+ "bbox": [
646
+ 774,
647
+ 116,
648
+ 784,
649
+ 126
650
+ ],
651
+ "page_idx": 6
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "3.3 Hard-Negative Mining",
656
+ "text_level": 1,
657
+ "bbox": [
658
+ 215,
659
+ 146,
660
+ 449,
661
+ 162
662
+ ],
663
+ "page_idx": 7
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "To alleviate the entity granularity problem, two hard negative sampling approaches are proposed in our contrastive-generative framework, i.e. VISION-HARD and KB-HARD. Both approaches create entity groups used for constructing an in-batch sampler that prefers sampling similar entities in contrastive training, yet they differ in how they generate these similar groups. VISION-HARD relies on a pre-trained ViT [15] image classifier to identify visually similar entities based on shared prediction classes. In contrast, KB-HARD uses the category hierarchy of Wikidata as an external knowledge source, considering entities that share a parent node in the category hierarchy as knowledge-similar entities. We refer readers to the supplementary material for details about the construction of hard negative groups.",
668
+ "bbox": [
669
+ 212,
670
+ 174,
671
+ 787,
672
+ 340
673
+ ],
674
+ "page_idx": 7
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "3.4 Retrieval-augmented Constrained Decoding",
679
+ "text_level": 1,
680
+ "bbox": [
681
+ 215,
682
+ 364,
683
+ 622,
684
+ 382
685
+ ],
686
+ "page_idx": 7
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "We illustrate the proposed model inference in Fig. 3. After training, all entity candidates are cached using the multi-modal entity encoder $F_{\\varphi}$ to construct an entity vector database $\\mathcal{V} \\in \\mathbb{R}^{n \\times d}$ for efficient retrieval. Given an evaluation sample $(\\mathbf{Q}_{\\mathrm{im}}, \\mathbf{Q}_{\\mathrm{t}})$ , we first forward the MLLM for the normalized representation of the <ret> token, and query database $\\mathcal{V}$ using top- $k$ similarity search to get $k$ entity candidates. The model dynamically generates a prefix tree (trie) that covers $k$ entity candidates, and the trie will explicitly guide entity identifier generation by eliminating impossible decoding paths when autoregressively generating tokens. The retrieval process takes into consideration the image of entities and improves the model towards out-of-domain entities. Moreover, the retrieval-augmented constrained decoding guarantees the grounding of the generated content to the knowledge base, alleviating the issue of hallucinations.",
691
+ "bbox": [
692
+ 212,
693
+ 392,
694
+ 787,
695
+ 574
696
+ ],
697
+ "page_idx": 7
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "4 Experiments",
702
+ "text_level": 1,
703
+ "bbox": [
704
+ 215,
705
+ 599,
706
+ 375,
707
+ 616
708
+ ],
709
+ "page_idx": 7
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "We describe the experimental setting in Sec. 4.1 and report the main results in Sec. 4.2. We present the zero-shot generalization results in Sec. 4.3 and ablation study in Sec. 4.4 with discussions. For an intuitive demonstration of our model, we present the case study in Sec. 4.5.",
714
+ "bbox": [
715
+ 212,
716
+ 633,
717
+ 787,
718
+ 694
719
+ ],
720
+ "page_idx": 7
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "4.1 Settings",
725
+ "text_level": 1,
726
+ "bbox": [
727
+ 215,
728
+ 718,
729
+ 330,
730
+ 734
731
+ ],
732
+ "page_idx": 7
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "Metrics. We follow the standard setup in Hu et al. [28], which uses accuracy and harmonic mean to evaluate model performance on different data splits. The harmonic mean of each split will equally weigh the importance of the seen and unseen subsets and penalize models that show weakness in either aspect. Finally, we report the overall harmonic mean on the ENTITY and QUERY splits as the final metric for the validation and test sets.",
737
+ "bbox": [
738
+ 212,
739
+ 750,
740
+ 787,
741
+ 839
742
+ ],
743
+ "page_idx": 7
744
+ },
745
+ {
746
+ "type": "page_number",
747
+ "text": "8",
748
+ "bbox": [
749
+ 217,
750
+ 114,
751
+ 228,
752
+ 126
753
+ ],
754
+ "page_idx": 7
755
+ },
756
+ {
757
+ "type": "header",
758
+ "text": "Z. Xiao et al.",
759
+ "bbox": [
760
+ 271,
761
+ 114,
762
+ 362,
763
+ 127
764
+ ],
765
+ "page_idx": 7
766
+ },
767
+ {
768
+ "type": "table",
769
+ "img_path": "images/64e8e88bc383e034ad3058dd9f51b9826de25aa260cc1524e13e808de859c899.jpg",
770
+ "table_caption": [
771
+ "Table 1: Comparison among models on the OVEN-Wiki validation set. We report accuracies for the SEEN and UNSEEN subsets and the harmonic mean of each split (HM). Metrics of CLIP and PaLI variants are from [28]. For each subset, bold indicates the best metric."
772
+ ],
773
+ "table_footnote": [],
774
+ "table_body": "<table><tr><td rowspan=\"2\">Category</td><td rowspan=\"2\">Method</td><td colspan=\"3\">Entity Split</td><td colspan=\"3\">Query Split</td><td>Overall</td></tr><tr><td>SEEN</td><td>UNSEEN</td><td>HM</td><td>SEEN</td><td>UNSEEN</td><td>HM</td><td>HM</td></tr><tr><td rowspan=\"3\">Discriminative</td><td>CLIPViTL14</td><td>5.4</td><td>5.3</td><td>5.4</td><td>0.8</td><td>1.4</td><td>1.0</td><td>1.7</td></tr><tr><td>CLIP FusionViTL14</td><td>32.7</td><td>4.3</td><td>7.7</td><td>33.4</td><td>2.2</td><td>4.2</td><td>5.4</td></tr><tr><td>CLIP2CLIPViTL14</td><td>12.6</td><td>10.1</td><td>11.2</td><td>4.1</td><td>2.1</td><td>2.8</td><td>4.4</td></tr><tr><td rowspan=\"2\">Generative</td><td>PaLI-3B</td><td>21.6</td><td>6.6</td><td>10.1</td><td>33.2</td><td>14.7</td><td>20.4</td><td>13.5</td></tr><tr><td>PaLI-17B</td><td>30.6</td><td>12.4</td><td>17.6</td><td>44.2</td><td>22.4</td><td>29.8</td><td>22.1</td></tr><tr><td rowspan=\"2\">Zero-shot</td><td>BLIP-2Flan-T5-XXL</td><td>8.6</td><td>3.4</td><td>4.9</td><td>24.6</td><td>17.7</td><td>20.6</td><td>7.9</td></tr><tr><td>GPT-4V</td><td>29.8</td><td>19.3</td><td>23.4</td><td>56.5</td><td>52.7</td><td>54.5</td><td>32.9</td></tr><tr><td rowspan=\"2\">Ours</td><td>AUTOVER-7B</td><td>61.5</td><td>21.7</td><td>32.1</td><td>69.0</td><td>31.4</td><td>43.2</td><td>36.8</td></tr><tr><td>AUTOVER-13B</td><td>63.6</td><td>24.5</td><td>35.6</td><td>68.6</td><td>32.3</td><td>43.9</td><td>39.2</td></tr></table>",
775
+ "bbox": [
776
+ 215,
777
+ 224,
778
+ 787,
779
+ 420
780
+ ],
781
+ "page_idx": 8
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "Data Pre-processing and Models. We pre-process all query and entity images by resizing them into $336 \\times 336$ pixels with padding to keep an identical aspect ratio. Entity descriptions are truncated to 77 tokens to fit the context window size of CLIP by cutting off sentences to the maximum available ones. Since query texts are typically short, no truncation is needed for query texts. Encoders on the entity side and visual encoder in MLLM are pre-trained CLIP-ViT/L/14-336px. The MLLM is initialized with the vicuna-7b-v1.5 or vicuna-13b-v1.5 checkpoint and corresponding visual projectors pre-aligned on a 558k subset of LAION [63], CC [9] and SBU [52] curated by Liu et al. [42].",
786
+ "bbox": [
787
+ 212,
788
+ 440,
789
+ 787,
790
+ 578
791
+ ],
792
+ "page_idx": 8
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "Training and Evaluation. We train on the entity train and query train splits of OVEN-Wiki, which consists of nearly 5 million query-entity pairs. We conduct all pieces of training in a batch size of 256 on 32 V100-SXM2-32GB GPUs. We refer to the supplementary material for hyper-parameter choices and training details. We set $\\lambda_r$ to 1 for all training settings. Due to a limited compute budget, we select $10\\%$ and $50\\%$ of the training data through weighted sampling according to entity occurrence frequency to facilitate ablation studies and reporting final results. For the same reason, we do not run a hyperparameter search. In evaluation, the number of retrieved entities $k$ is set to 300 according to empirical trials on the validation split.",
797
+ "bbox": [
798
+ 212,
799
+ 580,
800
+ 787,
801
+ 733
802
+ ],
803
+ "page_idx": 8
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "4.2 Main Results",
808
+ "text_level": 1,
809
+ "bbox": [
810
+ 215,
811
+ 753,
812
+ 372,
813
+ 768
814
+ ],
815
+ "page_idx": 8
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "Results on the validation set are presented in Tab. 1. Our experimental results demonstrate a consistent improvement in all data splits and subsets on OVEN-Wiki. Specifically, we observe a double accuracy improvement in the ENTITY SEEN subsets of both OVEN-Wiki validation and test splits. This indicates that",
820
+ "bbox": [
821
+ 212,
822
+ 779,
823
+ 787,
824
+ 839
825
+ ],
826
+ "page_idx": 8
827
+ },
828
+ {
829
+ "type": "header",
830
+ "text": "Grounding Language Models for Visual Entity Recognition",
831
+ "bbox": [
832
+ 338,
833
+ 114,
834
+ 730,
835
+ 128
836
+ ],
837
+ "page_idx": 8
838
+ },
839
+ {
840
+ "type": "page_number",
841
+ "text": "9",
842
+ "bbox": [
843
+ 774,
844
+ 116,
845
+ 784,
846
+ 126
847
+ ],
848
+ "page_idx": 8
849
+ },
850
+ {
851
+ "type": "table",
852
+ "img_path": "images/94dd85df33955f01c071a179a95d80808139c46f793afd78623de4cacc9f8165.jpg",
853
+ "table_caption": [
854
+ "Table 2: Results of methods on the OVEN-Wiki test set and human evaluation set. Human evaluation results from [28] are highlighted in gray."
855
+ ],
856
+ "table_footnote": [],
857
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Entity Split</td><td colspan=\"2\">Query Split</td><td colspan=\"2\">Overall</td><td colspan=\"3\">Human Eval</td></tr><tr><td>SEEN</td><td>UNSEEN</td><td>SEEN</td><td>UNSEEN</td><td>HM</td><td>SEEN</td><td>UNSEEN</td><td>HM</td><td></td></tr><tr><td>Human + Search</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>76.1</td><td>79.3</td><td>77.7</td><td></td></tr><tr><td>\\(CLIP_{ViTL14}\\)</td><td>5.6</td><td>4.9</td><td>1.3</td><td>2.0</td><td>2.4</td><td>4.6</td><td>6.0</td><td>5.2</td><td></td></tr><tr><td>CLIP \\(Fusion_{ViTL14}\\)</td><td>33.6</td><td>4.8</td><td>25.8</td><td>1.4</td><td>4.1</td><td>18.0</td><td>2.9</td><td>5.0</td><td></td></tr><tr><td>CLIP2\\(CLIP_{ViTL14}\\)</td><td>12.6</td><td>10.5</td><td>3.8</td><td>3.2</td><td>5.3</td><td>14.0</td><td>11.1</td><td>12.4</td><td></td></tr><tr><td>PaLI-3B</td><td>19.1</td><td>6.0</td><td>27.4</td><td>12.0</td><td>11.8</td><td>30.5</td><td>15.8</td><td>20.8</td><td></td></tr><tr><td>PaLI-17B</td><td>28.3</td><td>11.2</td><td>36.2</td><td>21.7</td><td>20.2</td><td>40.3</td><td>26.0</td><td>31.6</td><td></td></tr><tr><td>GER-400M [8]</td><td>31.5</td><td>17.7</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td></td></tr><tr><td>11ava-v1.5-7b [43]</td><td>7.5</td><td>2.1</td><td>41.9</td><td>37.4</td><td>6.2</td><td>-</td><td>-</td><td>-</td><td></td></tr><tr><td>AUTOVER-7B</td><td>62.8</td><td>16.0</td><td>63.7</td><td>31.9</td><td>31.8</td><td>64.7</td><td>39.9</td><td>49.4</td><td></td></tr><tr><td>AUTOVER-13B</td><td>65.0</td><td>18.6</td><td>65.7</td><td>32.0</td><td>34.6</td><td>68.4</td><td>44.2</td><td>53.7</td><td></td></tr></table>",
858
+ "bbox": [
859
+ 217,
860
+ 186,
861
+ 785,
862
+ 395
863
+ ],
864
+ "page_idx": 9
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "AUTOVER can more effectively utilize its parameter capacity, achieving stronger in-domain visual entity recognition capabilities with fewer model parameters. The improvement on the QUERY SEEN subsets is slightly lower compared with the ENTITY SEEN improvement but still significant with $+24.8\\%$ relative accuracy difference. We attribute this to the inherent reasoning and visual localization capabilities within the MLLM, a proficiency that has been extensively demonstrated across various benchmarks targeting MLLMs [10, 48].",
869
+ "bbox": [
870
+ 212,
871
+ 424,
872
+ 782,
873
+ 530
874
+ ],
875
+ "page_idx": 9
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "On UNSEEN subsets, accuracy is severely impacted by queries whose answers involve out-of-domain entities, particularly in the Entity split. Nevertheless, AU-TOVER still outperforms the largest model, PaLI-17B, which can be attributed to the retrieval-augmented framework eliminating many improbable options for the decision-making of the MLLM.",
880
+ "bbox": [
881
+ 212,
882
+ 530,
883
+ 784,
884
+ 604
885
+ ],
886
+ "page_idx": 9
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "We report results on test and human evaluation set in Tab. 2. Similarly, AUTOVER-13B achieves the best performance on subsets and splits of the test set. However, it must be acknowledged that there remains a gap between our results and those of Human + Search in the human validation set, particularly in the human UNSEEN subset, where the difference reaches $35.1\\%$ .",
891
+ "bbox": [
892
+ 212,
893
+ 604,
894
+ 784,
895
+ 680
896
+ ],
897
+ "page_idx": 9
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "In addition, we report the zero-shot visual entity recognition abilities of the largest BLIP-2 [40] checkpoint and GPT-4V $^3$ [51] on the validation set in Tab. 1, whereas no fine-tuning is performed on the training dataset. For BLIP-2, zero-shot generated outputs are grounded to Wikipedia using BM25, following generative baseline methods. As for GPT-4V, its elaborate generation, a result of instruction tuning, impedes effective evaluation with BM25. Hence, we adopt a partial matching evaluation strategy, treating the presence of the entity identi",
902
+ "bbox": [
903
+ 212,
904
+ 681,
905
+ 785,
906
+ 787
907
+ ],
908
+ "page_idx": 9
909
+ },
910
+ {
911
+ "type": "page_number",
912
+ "text": "10",
913
+ "bbox": [
914
+ 217,
915
+ 114,
916
+ 235,
917
+ 126
918
+ ],
919
+ "page_idx": 9
920
+ },
921
+ {
922
+ "type": "header",
923
+ "text": "Z. Xiao et al.",
924
+ "bbox": [
925
+ 271,
926
+ 114,
927
+ 361,
928
+ 127
929
+ ],
930
+ "page_idx": 9
931
+ },
932
+ {
933
+ "type": "page_footnote",
934
+ "text": "<sup>3</sup> Due to the limited budget, we only conduct experiments on 10% of Entity Split<sub>(Val)</sub> and 50% of Query Split<sub>(Val)</sub>. Also, the detail of the image is set to low to minimize prompt token consumption.",
935
+ "bbox": [
936
+ 217,
937
+ 796,
938
+ 785,
939
+ 839
940
+ ],
941
+ "page_idx": 9
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "fer in the generated text as a true positive. While BLIP-2 performance is anticipated, as its lack of fine-tuning hinders the acknowledgment of entity grounding intents, GPT-4V has surprisingly exceptional performance on the QUERY split. Nevertheless, GPT-4V poor performance on the ENTITY split still leaves it trailing behind AutoVER. Furthermore, the opacity of its training data prevents us from determining if GPT-4V excellent zero-shot performance is attributable to possible data leakage.",
946
+ "bbox": [
947
+ 212,
948
+ 146,
949
+ 787,
950
+ 252
951
+ ],
952
+ "page_idx": 10
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "4.3 Zero-shot Generalization Results",
957
+ "text_level": 1,
958
+ "bbox": [
959
+ 214,
960
+ 276,
961
+ 532,
962
+ 291
963
+ ],
964
+ "page_idx": 10
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "Although OVEN-Wiki has already incorporated 14 classic datasets<sup>4</sup> from image recognition and visual question answering, along with extensive annotation efforts that ground answers to the knowledge base, we still hope to test the generalization capability of our method using additional out-of-domain datasets. As such, we manually curated a subset from the A-OKVQA [64] validation dataset. The subset does not overlap with any dataset sources in OVEN-Wiki and covers all question-answer pairs in the A-OKVQA validation split whose answer can be grounded to entities in the Wikipedia knowledge base. We name the subset A-OKVQA-ENT to emphasize this distinct property. Following the design of OVEN-Wiki, we divide the subset into SEEN and UNSEEN splits depending on whether the answer entity is in the OVEN-Wiki train set. This subset includes 478 entries out of 1,145 in the A-OKVQA validation set, of which 322 are identified as SEEN, while the remaining 156 are classified as UNSEEN.",
969
+ "bbox": [
970
+ 212,
971
+ 303,
972
+ 787,
973
+ 500
974
+ ],
975
+ "page_idx": 10
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "To adhere to the evaluation setting of A-OKVQA, we adopted two evaluation approaches - multi-choice and entity match. In the multi-choice setting, AUTOVER constructs a prefix tree with four available options to guide generation, while for other models, options are numbered in the prompt and either the correct option number or an exact entity identifier match in the response is considered a true prediction. In the entity match setting, a partial match of the entity text identifier within the generated response qualifies a correct prediction. To ensure equitable comparison, baselines included are other generative models comparable in size with AUTOVER-7B, specifically LLaVA [43] and its improved v1.5 version [42], OpenFlamingo [4], and InstructBLIP [14]. While we expect that all models have not seen the A-OKVQA dataset so that we can assess the zero-shot generalization ability, it is important to acknowledge that LLaVA-v1.5 has been fine-tuned with 50k A-OKVQA multi-choice instructions, potentially giving it an edge. For context, we still include LLaVA-v1.5 results although they are not directly comparable.",
980
+ "bbox": [
981
+ 212,
982
+ 500,
983
+ 787,
984
+ 726
985
+ ],
986
+ "page_idx": 10
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "We present results on A-OKVQA-ENT in Tab. 3 and Tab. 4, and refer readers to the supplementary material for qualitative analysis on this dataset. Our method still outperforms baseline models across all evaluation settings, with the exception of multiple-choice LLaVA-v1.5 which has been tuned with in-domain",
991
+ "bbox": [
992
+ 212,
993
+ 726,
994
+ 787,
995
+ 787
996
+ ],
997
+ "page_idx": 10
998
+ },
999
+ {
1000
+ "type": "header",
1001
+ "text": "Grounding Language Models for Visual Entity Recognition",
1002
+ "bbox": [
1003
+ 338,
1004
+ 114,
1005
+ 730,
1006
+ 128
1007
+ ],
1008
+ "page_idx": 10
1009
+ },
1010
+ {
1011
+ "type": "page_number",
1012
+ "text": "11",
1013
+ "bbox": [
1014
+ 767,
1015
+ 114,
1016
+ 782,
1017
+ 126
1018
+ ],
1019
+ "page_idx": 10
1020
+ },
1021
+ {
1022
+ "type": "page_footnote",
1023
+ "text": "4 ImageNet21k-P [60,62], iNaturalist2017 [70], Cars196 [35], SUN397 [77], Food101 [6], Sports100 [19], Aircraft [44], Oxford Flower [49], Google Landmarks v2 [76], VQA v2 [21], Visual7W [80], Visual Genome [36], OK-VQA [46], Text-VQA [67]",
1024
+ "bbox": [
1025
+ 217,
1026
+ 796,
1027
+ 787,
1028
+ 840
1029
+ ],
1030
+ "page_idx": 10
1031
+ },
1032
+ {
1033
+ "type": "table",
1034
+ "img_path": "images/c79bb94d772e283e6f3cc09b34d3a21e851312543befcd9fc9ff1ee8bafa431f.jpg",
1035
+ "table_caption": [
1036
+ "Table 3: Model accuracies on A-OKVQA-ENT under multi-choice evaluation. Here methods are provided with multiple choices for answers in the prompt. $(^{*})$ Denotes unusual results due to failure to adhere to the provided multiple-choice prompts. Bold indicates the best metric under the same setting."
1037
+ ],
1038
+ "table_footnote": [],
1039
+ "table_body": "<table><tr><td>Supervision</td><td>Method</td><td>SEEN</td><td>UNSEEN</td><td>Overall</td></tr><tr><td rowspan=\"4\">Zero-shot</td><td>OpenFlamingo-9B*</td><td>5.9</td><td>9.0</td><td>6.9</td></tr><tr><td>InstructBLIP_vicuna-7B</td><td>53.7</td><td>49.4</td><td>52.4</td></tr><tr><td>LLaVA-v1-7B*</td><td>13.0</td><td>10.3</td><td>12.1</td></tr><tr><td>AUTOVER-7B (Ours)</td><td>67.7</td><td>52.5</td><td>62.8</td></tr><tr><td>Fine-tuned</td><td>LLaVA-v1.5-7B</td><td>72.4</td><td>73.7</td><td>72.8</td></tr></table>",
1040
+ "bbox": [
1041
+ 287,
1042
+ 212,
1043
+ 715,
1044
+ 320
1045
+ ],
1046
+ "page_idx": 11
1047
+ },
1048
+ {
1049
+ "type": "table",
1050
+ "img_path": "images/1446f54931efb4dc03c635ef8f8a6cc6231ba45fc30a2dbc0171a9b979339289.jpg",
1051
+ "table_caption": [
1052
+ "Table 4: Model hit rates on A-OKVQA-ENT under entity match evaluation. Here methods are not provided with multiple choices in the prompt and are deemed successful if they produce the right entity anywhere in their output."
1053
+ ],
1054
+ "table_footnote": [],
1055
+ "table_body": "<table><tr><td>Supervision</td><td>Method</td><td>SEEN</td><td>UNSEEN</td><td>Overall</td></tr><tr><td rowspan=\"4\">Zero-shot</td><td>OpenFlamingo-9B</td><td>39.8</td><td>30.8</td><td>36.8</td></tr><tr><td>InstructBLIP_vicuna-7B</td><td>38.8</td><td>34.0</td><td>37.2</td></tr><tr><td>LLaVA-v1-7B</td><td>45.7</td><td>36.5</td><td>42.7</td></tr><tr><td>AUTOVER-7B (Ours)</td><td>61.3</td><td>42.3</td><td>55.0</td></tr><tr><td>Fine-tuned</td><td>LLaVA-v1.5-7B</td><td>47.8</td><td>42.9</td><td>46.2</td></tr></table>",
1056
+ "bbox": [
1057
+ 287,
1058
+ 385,
1059
+ 715,
1060
+ 492
1061
+ ],
1062
+ "page_idx": 11
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "instructions. Interestingly, we find that LLaVA-v1.5 in the entity match evaluation setting still falls short of AutoVER-7B, although it has seen in-domain samples. We also observed that LLaVA-v1 and OpenFlamingo, with inadequate instruction tuning, find it challenging to comply with the multiple-choice setting, and instead generate content unrelated to the given options, leading to their significantly lower metrics. Those findings reveal that generative language models struggle to adapt well to out-of-domain instructions and that unrestricted generation is prone to hallucinations in tasks requiring precise recognition. This further emphasizes the advantages of retrieval-assisted decoding-time augmentation for such tasks.",
1067
+ "bbox": [
1068
+ 212,
1069
+ 518,
1070
+ 787,
1071
+ 670
1072
+ ],
1073
+ "page_idx": 11
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "4.4 Ablation Study and Discussion",
1078
+ "text_level": 1,
1079
+ "bbox": [
1080
+ 214,
1081
+ 691,
1082
+ 517,
1083
+ 707
1084
+ ],
1085
+ "page_idx": 11
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "We present ablation studies exploring the effect of retrieval augmented generation, constrained decoding, and hard negative mining in Tab. 5. Ablations are conducted with $10\\%$ of the training data and as such the metrics in ablations differ from our main results and we refer to our model as AutoVER-7B-0.1.",
1090
+ "bbox": [
1091
+ 212,
1092
+ 715,
1093
+ 785,
1094
+ 775
1095
+ ],
1096
+ "page_idx": 11
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "Retrieval Augmentation. We first focus on the absence of retrieval augmentation in AutoVER. Without retrieval, the model performs constrained decoding over a prefix tree composed of all Wikipedia entity identifiers instead of a set of retrieved candidates. We notice a slight performance gain on the seen subset,",
1101
+ "bbox": [
1102
+ 212,
1103
+ 779,
1104
+ 787,
1105
+ 840
1106
+ ],
1107
+ "page_idx": 11
1108
+ },
1109
+ {
1110
+ "type": "page_number",
1111
+ "text": "12",
1112
+ "bbox": [
1113
+ 217,
1114
+ 114,
1115
+ 235,
1116
+ 126
1117
+ ],
1118
+ "page_idx": 11
1119
+ },
1120
+ {
1121
+ "type": "header",
1122
+ "text": "Z. Xiao et al.",
1123
+ "bbox": [
1124
+ 271,
1125
+ 114,
1126
+ 361,
1127
+ 126
1128
+ ],
1129
+ "page_idx": 11
1130
+ },
1131
+ {
1132
+ "type": "table",
1133
+ "img_path": "images/23af2c6eb6b4560b42c32bb3ee07c6933f54dcbae2bf316470a5313d8d6ee442.jpg",
1134
+ "table_caption": [
1135
+ "Table 5: Ablation study of AUTOVER-7B-0.1 on OVEN-Wiki ENTITY Split(Va1)."
1136
+ ],
1137
+ "table_footnote": [],
1138
+ "table_body": "<table><tr><td>Method</td><td>SEEN</td><td>UNSEEN</td><td>HM</td></tr><tr><td>AUTOVER-7B-0.1</td><td>48.9</td><td>19.0</td><td>27.4</td></tr><tr><td>+ w/o retrieval</td><td>50.7</td><td>0.6</td><td>1.2</td></tr><tr><td>+ w/o constrained decoding</td><td>46.8</td><td>0.6</td><td>1.2</td></tr><tr><td>+ w/ LoRA</td><td>43.5</td><td>2.8</td><td>5.3</td></tr><tr><td>AUTOVER-7B-0.1-[CLS]</td><td>12.8</td><td>0.1</td><td>0.2</td></tr></table>",
1139
+ "bbox": [
1140
+ 326,
1141
+ 171,
1142
+ 676,
1143
+ 280
1144
+ ],
1145
+ "page_idx": 12
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "likely due to the gold entity not being covered in retrieval. Conversely, the integrated retrieval design is found to significantly improve the performance of AUTOVER on the UNSEEN subset from non-viable to viable. Retrieval-augmented constrained decoding narrows down the decision-making scope of the language model, allowing AUTOVER to generate entity identifiers that are never seen during training.",
1150
+ "bbox": [
1151
+ 212,
1152
+ 311,
1153
+ 782,
1154
+ 402
1155
+ ],
1156
+ "page_idx": 12
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Constrained Decoding. Upon the excluding of retrieval augmentation, we proceed to disable the entire constrained decoding mechanism, reverting AUTOVER to greedily decode the next token, where grounding to an external knowledge base is no longer assured. The consequent decrease in SEEN accuracy demonstrates that constrained decoding effectively alleviates hallucinations of the model in predicting entities. Unfortunately, since neither checkpoints of encoder-decoder variants from [28] in Table 1 and 2 nor PaLI pre-trained weights are publicly available, we are unable to assess whether our proposed decoding-time augmenting methods can bring universal improvement on generative baselines.",
1161
+ "bbox": [
1162
+ 212,
1163
+ 407,
1164
+ 784,
1165
+ 542
1166
+ ],
1167
+ "page_idx": 12
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Parameter-Efficient Tuning (LoRA). Our ablations extend to the impact of parameter-efficient tuning methods on AUTOVER. Specifically, we configure a low-rank adapter (LoRA) [27] with a rank of 128 and alpha set at 256 and train this LoRA-variant of AUTOVER. The results reveal that the efficacy of LoRA falls short of expectation and explicitly harms the recognition performance on the SEEN subset. We leave more specialized efficient tuning methods for the generative VER framework as future work.",
1172
+ "bbox": [
1173
+ 212,
1174
+ 547,
1175
+ 785,
1176
+ 652
1177
+ ],
1178
+ "page_idx": 12
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Autoregressive Model or Classifier. One may attribute the success of AutoVER to the large model size of its underlying MLLM and accompanied expressive capacity instead of our proposed design. In response to that, we devise a [CLS] variant of AutoVER. It follows the classical design of treating a decoder-only LM as a classifier. Specifically, we introduce a new [CLS] token into the MLLM vocabulary and append this token at the end of each query image-question pair. The corresponding last-layer hidden states are then finetuned for classifying the query into the 20,549 existing entities in OVEN-Wiki. We observed a significant performance degradation in this setting, particularly in the UNSEEN subset. This highlights the ineffectiveness of classifier-based VQA methods in the realm of visual entity recognition, indicating that our model performance stems from more than just its size.",
1183
+ "bbox": [
1184
+ 212,
1185
+ 657,
1186
+ 785,
1187
+ 839
1188
+ ],
1189
+ "page_idx": 12
1190
+ },
1191
+ {
1192
+ "type": "header",
1193
+ "text": "Grounding Language Models for Visual Entity Recognition",
1194
+ "bbox": [
1195
+ 338,
1196
+ 114,
1197
+ 730,
1198
+ 128
1199
+ ],
1200
+ "page_idx": 12
1201
+ },
1202
+ {
1203
+ "type": "page_number",
1204
+ "text": "13",
1205
+ "bbox": [
1206
+ 767,
1207
+ 114,
1208
+ 785,
1209
+ 126
1210
+ ],
1211
+ "page_idx": 12
1212
+ },
1213
+ {
1214
+ "type": "image",
1215
+ "img_path": "images/491d46ec091cf6cb14c53bd10cbd081f0cb745b31e711ae2bf18348cc55a0e89.jpg",
1216
+ "image_caption": [],
1217
+ "image_footnote": [],
1218
+ "bbox": [
1219
+ 217,
1220
+ 143,
1221
+ 316,
1222
+ 212
1223
+ ],
1224
+ "page_idx": 13
1225
+ },
1226
+ {
1227
+ "type": "image",
1228
+ "img_path": "images/2130ad7c6617da05ae40d553bf2cadd64d233a6fed0b4db3bab85d7ef4005843.jpg",
1229
+ "image_caption": [
1230
+ "Input"
1231
+ ],
1232
+ "image_footnote": [],
1233
+ "bbox": [
1234
+ 318,
1235
+ 150,
1236
+ 452,
1237
+ 210
1238
+ ],
1239
+ "page_idx": 13
1240
+ },
1241
+ {
1242
+ "type": "image",
1243
+ "img_path": "images/dde33d6889781601579a7eaaf6db2a461f9c3ebe9a0d6330e941ffbe5cb10ff6.jpg",
1244
+ "image_caption": [
1245
+ "一",
1246
+ "一",
1247
+ "Boeing",
1248
+ "Fairchild Aircraft"
1249
+ ],
1250
+ "image_footnote": [],
1251
+ "bbox": [
1252
+ 459,
1253
+ 150,
1254
+ 504,
1255
+ 210
1256
+ ],
1257
+ "page_idx": 13
1258
+ },
1259
+ {
1260
+ "type": "image",
1261
+ "img_path": "images/66a8617a5d2964592c5d6f9c88feed3a9faac49f2d6f1f46c727570283aabbca.jpg",
1262
+ "image_caption": [],
1263
+ "image_footnote": [],
1264
+ "bbox": [
1265
+ 504,
1266
+ 150,
1267
+ 532,
1268
+ 188
1269
+ ],
1270
+ "page_idx": 13
1271
+ },
1272
+ {
1273
+ "type": "image",
1274
+ "img_path": "images/238b816aa71bba3fc65a55c66b05e06e5a338382b0a8994f41ee4fe6c62447b6.jpg",
1275
+ "image_caption": [
1276
+ "一",
1277
+ "Candidates"
1278
+ ],
1279
+ "image_footnote": [],
1280
+ "bbox": [
1281
+ 534,
1282
+ 150,
1283
+ 584,
1284
+ 188
1285
+ ],
1286
+ "page_idx": 13
1287
+ },
1288
+ {
1289
+ "type": "image",
1290
+ "img_path": "images/961a17ce5cf07f4f068705586a2964d60536f4bb8de65e64b486b250e942379b.jpg",
1291
+ "image_caption": [
1292
+ "tes —"
1293
+ ],
1294
+ "image_footnote": [],
1295
+ "bbox": [
1296
+ 584,
1297
+ 150,
1298
+ 612,
1299
+ 188
1300
+ ],
1301
+ "page_idx": 13
1302
+ },
1303
+ {
1304
+ "type": "image",
1305
+ "img_path": "images/a646132a1964047e095e1f6792a9396086f8e399d6ff0bbe182e1e81eaee096b.jpg",
1306
+ "image_caption": [],
1307
+ "image_footnote": [],
1308
+ "bbox": [
1309
+ 612,
1310
+ 150,
1311
+ 663,
1312
+ 188
1313
+ ],
1314
+ "page_idx": 13
1315
+ },
1316
+ {
1317
+ "type": "image",
1318
+ "img_path": "images/bf857c2e9adb810cdc3e24b0d98719c680fb0952ece9743ec97e850e6c2a65c2.jpg",
1319
+ "image_caption": [],
1320
+ "image_footnote": [],
1321
+ "bbox": [
1322
+ 666,
1323
+ 143,
1324
+ 717,
1325
+ 188
1326
+ ],
1327
+ "page_idx": 13
1328
+ },
1329
+ {
1330
+ "type": "image",
1331
+ "img_path": "images/10849b52149114db5581528916d189c25ba1a3d4e152311adb9fa6a678f622a1.jpg",
1332
+ "image_caption": [
1333
+ "MLLM Decision",
1334
+ "BOEING"
1335
+ ],
1336
+ "image_footnote": [],
1337
+ "bbox": [
1338
+ 730,
1339
+ 150,
1340
+ 784,
1341
+ 188
1342
+ ],
1343
+ "page_idx": 13
1344
+ },
1345
+ {
1346
+ "type": "image",
1347
+ "img_path": "images/485a31118b201ec4925f2ac3d980dec1c3891f2a8a913ddc7a4b18ee5910cdf2.jpg",
1348
+ "image_caption": [],
1349
+ "image_footnote": [],
1350
+ "bbox": [
1351
+ 217,
1352
+ 226,
1353
+ 316,
1354
+ 285
1355
+ ],
1356
+ "page_idx": 13
1357
+ },
1358
+ {
1359
+ "type": "image",
1360
+ "img_path": "images/08867bf2a03a8d56f3bb8668a10de8a8c52e068891127fb2828b1f04442983c2.jpg",
1361
+ "image_caption": [
1362
+ "What is the topping on the hot dog called?",
1363
+ "Fig. 4: Illustration of selected query image-question pairs, retrieved candidates and AUTOVER-7B decisions. AUTOVER adeptly captures slight variations in the query text and retrieves entirely different entity candidates, which forms the basis for the generative decisions from the language model."
1364
+ ],
1365
+ "image_footnote": [],
1366
+ "bbox": [
1367
+ 325,
1368
+ 252,
1369
+ 450,
1370
+ 290
1371
+ ],
1372
+ "page_idx": 13
1373
+ },
1374
+ {
1375
+ "type": "image",
1376
+ "img_path": "images/791097f7fb98838d0a7a87e209493306fcc60f413226335f9031b5b4da4183fc.jpg",
1377
+ "image_caption": [],
1378
+ "image_footnote": [],
1379
+ "bbox": [
1380
+ 462,
1381
+ 226,
1382
+ 501,
1383
+ 253
1384
+ ],
1385
+ "page_idx": 13
1386
+ },
1387
+ {
1388
+ "type": "image",
1389
+ "img_path": "images/57fe0dc7c97b0e75ba93ab3551084685ca48b9d5b7af267c2830dae99c075ce3.jpg",
1390
+ "image_caption": [],
1391
+ "image_footnote": [],
1392
+ "bbox": [
1393
+ 462,
1394
+ 253,
1395
+ 501,
1396
+ 290
1397
+ ],
1398
+ "page_idx": 13
1399
+ },
1400
+ {
1401
+ "type": "image",
1402
+ "img_path": "images/36dcdb62fa64be92f8f8d1416dd6b5a7104a31c362b9bc2b1997e67543e3b7e5.jpg",
1403
+ "image_caption": [],
1404
+ "image_footnote": [],
1405
+ "bbox": [
1406
+ 503,
1407
+ 193,
1408
+ 532,
1409
+ 210
1410
+ ],
1411
+ "page_idx": 13
1412
+ },
1413
+ {
1414
+ "type": "image",
1415
+ "img_path": "images/9f8447b6eb35fa6757c787122c741362b37c513fd77cade30ede26a2581ec94c.jpg",
1416
+ "image_caption": [],
1417
+ "image_footnote": [],
1418
+ "bbox": [
1419
+ 503,
1420
+ 228,
1421
+ 532,
1422
+ 253
1423
+ ],
1424
+ "page_idx": 13
1425
+ },
1426
+ {
1427
+ "type": "image",
1428
+ "img_path": "images/1d6128cf1d90870a3f9ac598515b33c11da9987dbab64a6e6810c31123ce5d13.jpg",
1429
+ "image_caption": [],
1430
+ "image_footnote": [],
1431
+ "bbox": [
1432
+ 504,
1433
+ 253,
1434
+ 544,
1435
+ 287
1436
+ ],
1437
+ "page_idx": 13
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "",
1442
+ "bbox": [
1443
+ 573,
1444
+ 191,
1445
+ 601,
1446
+ 213
1447
+ ],
1448
+ "page_idx": 13
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "",
1453
+ "bbox": [
1454
+ 573,
1455
+ 191,
1456
+ 601,
1457
+ 213
1458
+ ],
1459
+ "page_idx": 13
1460
+ },
1461
+ {
1462
+ "type": "image",
1463
+ "img_path": "images/d42f4606fc10c5d56614a457c0610ab3f9d0645ffd1314ceff2c1694a9eb0cd8.jpg",
1464
+ "image_caption": [
1465
+ "Cessna British Aerospace"
1466
+ ],
1467
+ "image_footnote": [],
1468
+ "bbox": [
1469
+ 602,
1470
+ 191,
1471
+ 630,
1472
+ 213
1473
+ ],
1474
+ "page_idx": 13
1475
+ },
1476
+ {
1477
+ "type": "text",
1478
+ "text": "British Aerospace",
1479
+ "bbox": [
1480
+ 609,
1481
+ 213,
1482
+ 671,
1483
+ 220
1484
+ ],
1485
+ "page_idx": 13
1486
+ },
1487
+ {
1488
+ "type": "image",
1489
+ "img_path": "images/08d4b2c9ac7ed46968ea12a42257f5cce9c43423a39d396ee6a8d60471ba0761.jpg",
1490
+ "image_caption": [],
1491
+ "image_footnote": [],
1492
+ "bbox": [
1493
+ 602,
1494
+ 228,
1495
+ 633,
1496
+ 253
1497
+ ],
1498
+ "page_idx": 13
1499
+ },
1500
+ {
1501
+ "type": "image",
1502
+ "img_path": "images/e8d8e20a26a870d53a5787227977995a4225285192dcffa1f9d560bca0e158bd.jpg",
1503
+ "image_caption": [],
1504
+ "image_footnote": [],
1505
+ "bbox": [
1506
+ 599,
1507
+ 253,
1508
+ 630,
1509
+ 287
1510
+ ],
1511
+ "page_idx": 13
1512
+ },
1513
+ {
1514
+ "type": "image",
1515
+ "img_path": "images/8a16a97c3adbb527f1b20f61ab3bb4c4e320f659dd68e828fae03f1417641b5b.jpg",
1516
+ "image_caption": [],
1517
+ "image_footnote": [],
1518
+ "bbox": [
1519
+ 640,
1520
+ 191,
1521
+ 669,
1522
+ 212
1523
+ ],
1524
+ "page_idx": 13
1525
+ },
1526
+ {
1527
+ "type": "text",
1528
+ "text": "Aerospace",
1529
+ "bbox": [
1530
+ 638,
1531
+ 213,
1532
+ 669,
1533
+ 220
1534
+ ],
1535
+ "page_idx": 13
1536
+ },
1537
+ {
1538
+ "type": "image",
1539
+ "img_path": "images/0311a4ee294e8e555ffd584a34f91c83c8068031cc4d4632ecd26a9c06b6a46f.jpg",
1540
+ "image_caption": [
1541
+ "M",
1542
+ "Suzuki"
1543
+ ],
1544
+ "image_footnote": [],
1545
+ "bbox": [
1546
+ 640,
1547
+ 228,
1548
+ 687,
1549
+ 253
1550
+ ],
1551
+ "page_idx": 13
1552
+ },
1553
+ {
1554
+ "type": "image",
1555
+ "img_path": "images/87511fd8bc1bfb6e5e7a96446598c0605a20fee0a046e5a8291df1c4aedcd3e1.jpg",
1556
+ "image_caption": [],
1557
+ "image_footnote": [],
1558
+ "bbox": [
1559
+ 640,
1560
+ 261,
1561
+ 687,
1562
+ 287
1563
+ ],
1564
+ "page_idx": 13
1565
+ },
1566
+ {
1567
+ "type": "image",
1568
+ "img_path": "images/7a96a61840f6e2cca377e4197bb054c50919bcda84a717a3045846e11f5fe3db.jpg",
1569
+ "image_caption": [],
1570
+ "image_footnote": [],
1571
+ "bbox": [
1572
+ 684,
1573
+ 228,
1574
+ 733,
1575
+ 253
1576
+ ],
1577
+ "page_idx": 13
1578
+ },
1579
+ {
1580
+ "type": "image",
1581
+ "img_path": "images/bd9d320c4a511a8e49c2636b144c160ae040288e0bf9807566309298a22b406f.jpg",
1582
+ "image_caption": [],
1583
+ "image_footnote": [],
1584
+ "bbox": [
1585
+ 679,
1586
+ 253,
1587
+ 710,
1588
+ 287
1589
+ ],
1590
+ "page_idx": 13
1591
+ },
1592
+ {
1593
+ "type": "image",
1594
+ "img_path": "images/c6554b0d50c08d0a29682685810ea3f7f0d6ab093e97a54c0328f81fb87bfe3e.jpg",
1595
+ "image_caption": [
1596
+ "Boeing",
1597
+ "Relish"
1598
+ ],
1599
+ "image_footnote": [],
1600
+ "bbox": [
1601
+ 736,
1602
+ 228,
1603
+ 782,
1604
+ 253
1605
+ ],
1606
+ "page_idx": 13
1607
+ },
1608
+ {
1609
+ "type": "image",
1610
+ "img_path": "images/c241b7f649507b66a32a7827432c1e65a45f1c7eda54757fb8b329a8b3a21e17.jpg",
1611
+ "image_caption": [],
1612
+ "image_footnote": [],
1613
+ "bbox": [
1614
+ 736,
1615
+ 261,
1616
+ 781,
1617
+ 287
1618
+ ],
1619
+ "page_idx": 13
1620
+ },
1621
+ {
1622
+ "type": "text",
1623
+ "text": "4.5 Case Study",
1624
+ "text_level": 1,
1625
+ "bbox": [
1626
+ 215,
1627
+ 390,
1628
+ 356,
1629
+ 406
1630
+ ],
1631
+ "page_idx": 13
1632
+ },
1633
+ {
1634
+ "type": "text",
1635
+ "text": "We illustrate the retrieved entity candidates and model decisions on four representative image-question pairs. We note that for the same query image, questions with different intents lead to retrieval representations with semantic relevance to the intent, laying a solid foundation for the subsequent constrained generation. For instance, in the upper part of Fig. 4, the question asking for the specific model of airplane prompts the model to retrieve various kinds of airplanes. With a slight modification from \"model\" to \"manufacturer\" in the query question, the model adapts to retrieve famous airplane manufacturer brands instead of plane models. Likewise, the model is also proficient in managing queries that demand visual localization and reasoning abilities, as depicted in the lower part of Fig. 4. We refer to the supplementary material for the error analysis and more case studies with comparisons against GPT-4V.",
1636
+ "bbox": [
1637
+ 212,
1638
+ 415,
1639
+ 787,
1640
+ 598
1641
+ ],
1642
+ "page_idx": 13
1643
+ },
1644
+ {
1645
+ "type": "text",
1646
+ "text": "5 Conclusion",
1647
+ "text_level": 1,
1648
+ "bbox": [
1649
+ 215,
1650
+ 619,
1651
+ 359,
1652
+ 636
1653
+ ],
1654
+ "page_idx": 13
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "We present AUTOVER, a compact retrieval-augmented generation framework specifically designed for visual entity recognition. Utilizing a novel constrained decoding technique, this approach effectively overcomes the challenges of low performance in recognizing out-of-domain entities while demonstrating remarkable proficiency in questions that require visually-situated reasoning. AUTOVER marks a significant advancement in visual entity recognition by doubling accuracy on nearly all challenging subsets of benchmarks. We discuss limitations in the supplementary material.",
1659
+ "bbox": [
1660
+ 212,
1661
+ 652,
1662
+ 787,
1663
+ 773
1664
+ ],
1665
+ "page_idx": 13
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "text": "Acknowledgements. This project was partially funded by an NSF CAREER Award #2201710, and support from the Ken Kennedy Institute at Rice University. We also thank reviewers for their feedback and encouragement.",
1670
+ "bbox": [
1671
+ 212,
1672
+ 776,
1673
+ 787,
1674
+ 823
1675
+ ],
1676
+ "page_idx": 13
1677
+ },
1678
+ {
1679
+ "type": "page_number",
1680
+ "text": "14",
1681
+ "bbox": [
1682
+ 217,
1683
+ 114,
1684
+ 235,
1685
+ 126
1686
+ ],
1687
+ "page_idx": 13
1688
+ },
1689
+ {
1690
+ "type": "header",
1691
+ "text": "Z. Xiao et al.",
1692
+ "bbox": [
1693
+ 271,
1694
+ 114,
1695
+ 361,
1696
+ 126
1697
+ ],
1698
+ "page_idx": 13
1699
+ },
1700
+ {
1701
+ "type": "text",
1702
+ "text": "References",
1703
+ "text_level": 1,
1704
+ "bbox": [
1705
+ 215,
1706
+ 143,
1707
+ 321,
1708
+ 159
1709
+ ],
1710
+ "page_idx": 14
1711
+ },
1712
+ {
1713
+ "type": "list",
1714
+ "sub_type": "ref_text",
1715
+ "list_items": [
1716
+ "1. Agrawal, A., Lu, J., Antol, S., Mitchell, M., Zitnick, C.L., Parikh, D., Batra, D.: Vqa: Visual question answering. International Journal of Computer Vision (2015)",
1717
+ "2. Alayrac, J.B., Donahue, J., Luc, P., Miech, A., Barr, I., Hasson, Y., Lenc, K., Mensch, A., Millican, K., Reynolds, M., et al.: Flamingo: a visual language model for few-shot learning. Advances in Neural Information Processing Systems 35, 23716-23736 (2022)",
1718
+ "3. Aubret, A., Teulière, C., Triesch, J.: Self-supervised visual learning from interactions with objects. arXiv preprint arXiv:2407.06704 (2024)",
1719
+ "4. Awadalla, A., Gao, I., Gardner, J., Hessel, J., Hanafy, Y., Zhu, W., Marathe, K., Bitton, Y., Gadre, S., Sagawa, S., Jitsev, J., Kornblith, S., Koh, P.W., Ilharco, G., Wortsman, M., Schmidt, L.: Openflamingo: An open-source framework for training large autoregressive vision-language models. arXiv preprint arXiv: 2308.01390 (2023)",
1720
+ "5. Bar, A., Gandelsman, Y., Darrell, T., Globerson, A., Efros, A.: Visual prompting via image inpainting. Advances in Neural Information Processing Systems 35, 25005-25017 (2022)",
1721
+ "6. Bossard, L., Guillaumin, M., Van Gool, L.: Food-101 - mining discriminative components with random forests. In: ECCV (2014)",
1722
+ "7. Cao, N.D., Izacard, G., Riedel, S., Petroni, F.: Autoregressive entity retrieval. In: 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021 (2021)",
1723
+ "8. Caron, M., Iscen, A., Fathi, A., Schmid, C.: A generative approach for wikipedia-scale visual entity recognition. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2024)",
1724
+ "9. Changpinyo, S., Sharma, P., Ding, N., Soricut, R.: Conceptual 12m: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. Computer Vision and Pattern Recognition (2021)",
1725
+ "10. Chen, L., Li, B., Shen, S., Yang, J., Li, C., Keutzer, K., Darrell, T., Liu, Z.: Large language models are visual reasoning coordinators. arXiv preprint arXiv: 2310.15166 (2023)",
1726
+ "1. Chen, T., Kornblith, S., Norouzi, M., Hinton, G.: A simple framework for contrastive learning of visual representations. In: International conference on machine learning. pp. 1597-1607. PMLR (2020)",
1727
+ "2. Chen, X., Wang, X., Changpinyo, S., Piergiovanni, A., Padlewski, P., Salz, D.M., Goodman, S., Grycner, A., Mustafa, B., Beyer, L., Kolesnikov, A., Puigcerver, J., Ding, N., Rong, K., Akbari, H., Mishra, G., Xue, L., Thapliyal, A.V., Bradbury, J., Kuo, W., Seyedhosseini, M., Jia, C., Ayan, B.K., Riquelme, C., Steiner, A., Angelova, A., Zhai, X., Houlsby, N., Soricut, R.: Pali: A jointly-scaled multilingual language-image model. International Conference on Learning Representations (2022)",
1728
+ "3. Chopra, S., Hadsell, R., LeCun, Y.: Learning a similarity metric discriminatively, with application to face verification. In: 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05). vol. 1, pp. 539-546 vol. 1 (2005)",
1729
+ "4. Dai, W., Li, J., Li, D., Tiong, A.M.H., Zhao, J., Wang, W., Li, B., Fung, P., Hoi, S.: InstructBLIP: Towards general-purpose vision-language models with instruction tuning. In: Proceedings of the 37th International Conference on Neural Information Processing Systems. NIPS '23, Curran Associates Inc., Red Hook, NY, USA (2024)"
1730
+ ],
1731
+ "bbox": [
1732
+ 225,
1733
+ 175,
1734
+ 785,
1735
+ 839
1736
+ ],
1737
+ "page_idx": 14
1738
+ },
1739
+ {
1740
+ "type": "header",
1741
+ "text": "Grounding Language Models for Visual Entity Recognition",
1742
+ "bbox": [
1743
+ 338,
1744
+ 114,
1745
+ 730,
1746
+ 128
1747
+ ],
1748
+ "page_idx": 14
1749
+ },
1750
+ {
1751
+ "type": "page_number",
1752
+ "text": "15",
1753
+ "bbox": [
1754
+ 767,
1755
+ 116,
1756
+ 784,
1757
+ 126
1758
+ ],
1759
+ "page_idx": 14
1760
+ },
1761
+ {
1762
+ "type": "list",
1763
+ "sub_type": "ref_text",
1764
+ "list_items": [
1765
+ "15. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., Houlsby, N.: An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. In: 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021 (2021)",
1766
+ "16. Fan, R., Poggi, M., Mattoccia, S.: Contrastive learning for depth prediction. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 3226-3237 (2023)",
1767
+ "17. Févry, T., Baldini Soares, L., FitzGerald, N., Choi, E., Kwiatkowski, T.: Entities as Experts: Sparse Memory Access with Entity Supervision. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). pp. 4937-4951. Association for Computational Linguistics, Online (Nov 2020)",
1768
+ "18. Gao, F., Ping, Q., Thattai, G., Reganti, A., Wu, Y.N., Natarajan, P.: Transform-retrieve-produce: Natural language-centric outside-knowledge visual question answering. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5067-5077 (2022)",
1769
+ "19. Gerry: Sports100: 100 Sports Image Classification. https://www.kaggle.com/datasets/gpiosenko/sports-classification/metadata (2021)",
1770
+ "20. Gilks, W.R., Wild, P.: Adaptive rejection sampling for gibbs sampling. Journal of the Royal Statistical Society: Series C (Applied Statistics) 41(2), 337-348 (1992)",
1771
+ "21. Goyal, Y., Khot, T., Summers-Stay, D., Batra, D., Parikh, D.: Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In: IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR) (2017)",
1772
+ "22. Gu, Y., Deng, X., Su, Y.: Don't Generate, Discriminate: A Proposal for Grounding Language Models to Real-World Environments. Annual Meeting of the Association for Computational Linguistics (2022)",
1773
+ "23. Guu, K., Lee, K., Tung, Z., Pasupat, P., Chang, M.W.: REALM: retrieval-augmented language model pre-training. International Conference on Machine Learning (ICML) (2020)",
1774
+ "24. Guu, K., Lee, K., Tung, Z., Pasupat, P., Chang, M.: Retrieval Augmented Language Model Pre-Training. In: III, H.D., Singh, A. (eds.) Proceedings of the 37th International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 119, pp. 3929-3938. PMLR (13-18 Jul 2020)",
1775
+ "25. Hernandez, J., Villegas, R., Ordonez, V.: Vic-mae: Self-supervised representation learning from images and video with contrastive masked autoencoders. arXiv preprint arXiv:2303.12001 (2023)",
1776
+ "26. Hernandez, J., Villegas, R., Ordonez, V.: Generative Visual Instruction Tuning (2024), https://arxiv.org/abs/2406.11262",
1777
+ "27. Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W.: LoRA: Low-Rank Adaptation of Large Language Models. In: The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022 (2022)",
1778
+ "28. Hu, H., Luan, Y., Chen, Y., Khandelwal, U., Joshi, M., Lee, K., Toutanova, K., Chang, M.W.: Open-domain visual entity recognition: Towards recognizing millions of wikipedia entities. ICCV (2023)",
1779
+ "29. van Hulst, J.M., Hasibi, F., Dercksen, K., Balog, K., de Vries, A.P.: REL: An Entity Linker Standing on the Shoulders of Giants. In: Huang, J.X., Chang, Y., Cheng, X., Kamps, J., Murdock, V., Wen, J., Liu, Y. (eds.) Proceedings of the 43rd International ACM SIGIR conference on research and development in Information Retrieval, SIGIR 2020, Virtual Event, China, July 25-30, 2020. pp. 2197-2200. ACM (2020)"
1780
+ ],
1781
+ "bbox": [
1782
+ 215,
1783
+ 146,
1784
+ 785,
1785
+ 839
1786
+ ],
1787
+ "page_idx": 15
1788
+ },
1789
+ {
1790
+ "type": "page_number",
1791
+ "text": "16",
1792
+ "bbox": [
1793
+ 217,
1794
+ 114,
1795
+ 235,
1796
+ 126
1797
+ ],
1798
+ "page_idx": 15
1799
+ },
1800
+ {
1801
+ "type": "header",
1802
+ "text": "Z. Xiao et al.",
1803
+ "bbox": [
1804
+ 271,
1805
+ 114,
1806
+ 361,
1807
+ 126
1808
+ ],
1809
+ "page_idx": 15
1810
+ },
1811
+ {
1812
+ "type": "list",
1813
+ "sub_type": "ref_text",
1814
+ "list_items": [
1815
+ "30. Iscen, A., Caron, M., Fathi, A., Schmid, C.: Retrieval-enhanced contrastive vision-text models. In: The Twelfth International Conference on Learning Representations (2024)",
1816
+ "31. Jia, C., Yang, Y., Xia, Y., Chen, Y.T., Parekh, Z., Pham, H., Le, Q.V., Sung, Y.H., Li, Z., Duerig, T.: Scaling up visual and vision-language representation learning with noisy text supervision. International Conference on Machine Learning (2021)",
1817
+ "32. Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., Lo, W.Y., Dollar, P., Girshick, R.: Segment Anything. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). pp. 4015-4026 (October 2023)",
1818
+ "33. Koh, J.Y., Fried, D., Salakhutdinov, R.: Generating images with multimodal language models. arXiv preprint arXiv: 2305.17216 (2023)",
1819
+ "34. Koh, J.Y., Salakhutdinov, R., Fried, D.: Grounding language models to images for multimodal inputs and outputs. International Conference on Machine Learning (2023)",
1820
+ "35. Krause, J., Stark, M., Deng, J., Fei-Fei, L.: 3d object representations for fine-grained categorization. In: 3dRR-13 (2013)",
1821
+ "36. Krishna, R., Zhu, Y., Groth, O., Johnson, J., Hata, K., Kravitz, J., Chen, S., Kalantidis, Y., Li, L.J., Shamma, D.A., et al.: Visual genome: Connecting language and vision using crowdsourced dense image annotations. International journal of computer vision 123(1), 32-73 (2017)",
1822
+ "37. Lai, X., Tian, Z., Chen, Y., Li, Y., Yuan, Y., Liu, S., Jia, J.: Lisa: Reasoning segmentation via large language model. arXiv preprint arXiv: 2308.00692 (2023)",
1823
+ "38. Lester, B., Al-Rfou, R., Constant, N.: The Power of Scale for Parameter-Efficient Prompt Tuning. In: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. pp. 3045-3059. Association for Computational Linguistics, Online and Punta Cana, Dominican Republic (Nov 2021)",
1824
+ "39. Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Kuttler, H., Lewis, M., Yih, W.t., Roktaschel, T., Riedel, S., Kiela, D.: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In: Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M., Lin, H. (eds.) Advances in Neural Information Processing Systems. vol. 33, pp. 9459–9474. Curran Associates, Inc. (2020)",
1825
+ "40. Li, J., Li, D., Savarese, S., Hoi, S.C.H.: BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models. In: Krause, A., Brunskill, E., Cho, K., Engelhardt, B., Sabato, S., Scarlett, J. (eds.) International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA. Proceedings of Machine Learning Research, vol. 202, pp. 19730-19742. PMLR (2023)",
1826
+ "41. Lin, W., Chen, J., Mei, J., Coca, A., Byrne, B.: Fine-grained Late-interaction Multi-modal Retrieval for Retrieval Augmented Visual Question Answering. In: H.Larochelle, M.Ranzato, R.Hadsell, M.F.Balcan, H.Lin (eds.) Advances in Neural Information Processing Systems. Curran Associates, Inc. (2023)",
1827
+ "42. Liu, H., Li, C., Li, Y., Lee, Y.J.: Improved Baselines with Visual Instruction Tuning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 26296-26306 (June 2024)",
1828
+ "43. Liu, H., Li, C., Wu, Q., Lee, Y.J.: Visual Instruction Tuning. In: Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., Levine, S. (eds.) Advances in Neural Information Processing Systems. vol. 36, pp. 34892-34916. Curran Associates, Inc. (2023)",
1829
+ "44. Maji, S., Rahtu, E., Kannala, J., Blaschko, M., Vedaldi, A.: Fine-grained visual classification of aircraft (2013), https://arxiv.org/abs/1306.5151"
1830
+ ],
1831
+ "bbox": [
1832
+ 212,
1833
+ 146,
1834
+ 787,
1835
+ 839
1836
+ ],
1837
+ "page_idx": 16
1838
+ },
1839
+ {
1840
+ "type": "header",
1841
+ "text": "Grounding Language Models for Visual Entity Recognition",
1842
+ "bbox": [
1843
+ 338,
1844
+ 114,
1845
+ 730,
1846
+ 128
1847
+ ],
1848
+ "page_idx": 16
1849
+ },
1850
+ {
1851
+ "type": "page_number",
1852
+ "text": "17",
1853
+ "bbox": [
1854
+ 767,
1855
+ 116,
1856
+ 784,
1857
+ 126
1858
+ ],
1859
+ "page_idx": 16
1860
+ },
1861
+ {
1862
+ "type": "list",
1863
+ "sub_type": "ref_text",
1864
+ "list_items": [
1865
+ "45. Malinowski, M., Fritz, M.: A multi-world approach to question answering about real-world scenes based on uncertain input. Advances in neural information processing systems 27 (2014)",
1866
+ "46. Marino, K., Rastegari, M., Farhadi, A., Mottaghi, R.: Ok-vqa: A visual question answering benchmark requiring external knowledge. In: IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR). pp. 3195-3204 (2019)",
1867
+ "47. Mrini, K., Nie, S., Gu, J., Wang, S., Sanjabi, M., Firooz, H.: Detection, Disambiguation, Re-ranking: Autoregressive Entity Linking as a Multi-Task Problem. In: Findings of the Association for Computational Linguistics: ACL 2022. pp. 1972–1983. Association for Computational Linguistics, Dublin, Ireland (May 2022)",
1868
+ "48. Naveed, H., Khan, A.U., Qiu, S., Saqib, M., Anwar, S., Usman, M., Akhtar, N., Barnes, N., Mian, A.: A comprehensive overview of large language models. arXiv preprint arXiv: 2307.06435 (2023)",
1869
+ "49. Nilsback, M.E., Zisserman, A.: Automated flower classification over a large number of classes. In: 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing. IEEE (2008)",
1870
+ "50. van den Oord, A., Li, Y., Vinyals, O.: Representation learning with contrastive predictive coding. arXiv preprint arXiv: 1807.03748 (2018)",
1871
+ "51. OpenAI: GPT-4V(ision) System Card. https://cdn.openai.com/papers/GPTV_System/Card.pdf (Sep 2023)",
1872
+ "52. Ordonez, V., Kulkarni, G., Berg, T.L.: Im2text: Describing images using 1 million captioned photographs. In: Neural Information Processing Systems (NIPS) (2011)",
1873
+ "53. Ouyang, S., Huang, J., Pillai, P., Zhang, Y., Zhang, Y., Han, J.: Ontology enrichment for effective fine-grained entity typing. arXiv preprint arXiv:2310.07795 (2023)",
1874
+ "54. Pan, X., Ye, T., Han, D., Song, S., Huang, G.: Contrastive language-image pretraining with knowledge graphs. Advances in Neural Information Processing Systems 35, 22895-22910 (2022)",
1875
+ "55. Peng, Z., Wang, W., Dong, L., Hao, Y., Huang, S., Ma, S., Wei, F.: Kosmos-2: Grounding multimodal large language models to the world. arXiv preprint arXiv: 2306.14824 (2023)",
1876
+ "56. Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., Sutskever, I.: Learning Transferable Visual Models From Natural Language Supervision. In: Meila, M., Zhang, T. (eds.) Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event. Proceedings of Machine Learning Research, vol. 139, pp. 8748-8763. PMLR (2021)",
1877
+ "57. Ram, O., Levine, Y., Dalmedigos, I., Muhlgay, D., Shashua, A., Leyton-Brown, K., Shoham, Y.: In-Context Retrieval-Augmented Language Models. Transactions of the Association for Computational Linguistics (2023)",
1878
+ "58. Ramakrishnan, S., Agrawal, A., Lee, S.: Overcoming language priors in visual question answering with adversarial regularization. In: Bengio, S., Wallach, H., Larochelle, H., Grauman, K., Cesa-Bianchi, N., Garnett, R. (eds.) Advances in Neural Information Processing Systems. vol. 31. Curran Associates, Inc. (2018)",
1879
+ "59. Ren, M., Kiros, R., Zemel, R.: Exploring models and data for image question answering. Advances in neural information processing systems 28 (2015)",
1880
+ "60. Ridnik, T., Ben-Baruch, E., Noy, A., Zelnik-Manor, L.: Imagenet-21k pretraining for the masses. In: NeurIPS (2021)",
1881
+ "61. Robertson, S., Zaragoza, H., et al.: The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends in Information Retrieval 3(4), 333-389 (2009)"
1882
+ ],
1883
+ "bbox": [
1884
+ 215,
1885
+ 147,
1886
+ 784,
1887
+ 839
1888
+ ],
1889
+ "page_idx": 17
1890
+ },
1891
+ {
1892
+ "type": "page_number",
1893
+ "text": "18",
1894
+ "bbox": [
1895
+ 217,
1896
+ 114,
1897
+ 235,
1898
+ 126
1899
+ ],
1900
+ "page_idx": 17
1901
+ },
1902
+ {
1903
+ "type": "header",
1904
+ "text": "Z. Xiao et al.",
1905
+ "bbox": [
1906
+ 271,
1907
+ 114,
1908
+ 361,
1909
+ 126
1910
+ ],
1911
+ "page_idx": 17
1912
+ },
1913
+ {
1914
+ "type": "list",
1915
+ "sub_type": "ref_text",
1916
+ "list_items": [
1917
+ "62. Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S., Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein, M., et al.: Imagenet large scale visual recognition challenge. International Journal on Comptuer Vision (IJCV) (2015)",
1918
+ "63. Schuhmann, C., Beaumont, R., Vencu, R., Gordon, C., Wightman, R., Cherti, M., Coombes, T., Katta, A., Mullis, C., Wortsman, M., et al.: Laion-5b: An open large-scale dataset for training next generation image-text models. Advances in Neural Information Processing Systems 35, 25278-25294 (2022)",
1919
+ "64. Schwenk, D., Khandelwal, A., Clark, C., Marino, K., Mottaghi, R.: A-OKVQA: A benchmark for visual question answering using world knowledge. In: ECCV (8). Lecture Notes in Computer Science, vol. 13668, pp. 146-162. Springer (2022)",
1920
+ "65. Shao, Z., Yu, Z., Wang, M., Yu, J.: Prompting large language models with answer heuristics for knowledge-based visual question answering. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 14974-14983 (June 2023)",
1921
+ "66. Shrivastava, A., Selvaraju, R.R., Naik, N., Ordonez, V.: Clip-lite: Information efficient visual representation learning with language supervision. In: International Conference on Artificial Intelligence and Statistics. pp. 8433-8447. PMLR (2023)",
1922
+ "67. Singh, A., Natarajan, V., Shah, M., Jiang, Y., Chen, X., Batra, D., Parikh, D., Rohrbach, M.: Towards VQA models that can read. In: IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR) (2019)",
1923
+ "68. Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., Rodriguez, A., Joulin, A., Grave, E., Lample, G.: LLaMA: Open and Efficient Foundation Language Models. arxiv (2023)",
1924
+ "69. Tsimpoukelli, M., Menick, J.L., Cabi, S., Eslami, S., Vinyals, O., Hill, F.: Multimodal few-shot learning with frozen language models. Advances in Neural Information Processing Systems 34, 200-212 (2021)",
1925
+ "70. Van Horn, G., Mac Aodha, O., Song, Y., Cui, Y., Sun, C., Shepard, A., Adam, H., Perona, P., Belongie, S.: The inaturalist species classification and detection dataset. In: IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR) (2018)",
1926
+ "71. Wang, J., Yang, Z., Hu, X., Li, L., Lin, K., Gan, Z., Liu, Z., Liu, C., Wang, L.: GIT: A generative image-to-text transformer for vision and language. Trans. Mach. Learn. Res. 2022 (2022)",
1927
+ "72. Wang, W., Bao, H., Dong, L., Bjorck, J., Peng, Z., Liu, Q., Aggarwal, K., Mohammed, O.K., Singhal, S., Som, S., et al.: Image as a foreign language: Beit pretraining for vision and vision-language tasks. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 19175-19186 (2023)",
1928
+ "73. Wang, X., Wang, W., Cao, Y., Shen, C., Huang, T.: Images speak in images: A generalist painter for in-context visual learning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 6830-6839 (June 2023)",
1929
+ "74. Wang, Z., Zhang, G., Yang, K., Shi, N., Zhou, W., Hao, S., Xiong, G., Li, Y., Sim, M.Y., Chen, X., Zhu, Q., Yang, Z., Nik, A., Liu, Q., Lin, C., Wang, S., Liu, R., Chen, W., Xu, K., Liu, D., Guo, Y., Fu, J.: Interactive Natural Language Processing (2023), https://arxiv.org/abs/2305.13246",
1930
+ "75. Wang, Z., Araki, J., Jiang, Z., Parvez, M.R., Neubig, G.: Learning to filter context for retrieval-augmented generation. arXiv preprint arXiv: 2311.08377 (2023)",
1931
+ "76. Weyand, T., Araujo, A., Cao, B., Sim, J.: Google landmarks dataset v2-a large-scale benchmark for instance-level recognition and retrieval. In: Conf. on Computer Vision and Pattern Recognition (CVPR) (2020)"
1932
+ ],
1933
+ "bbox": [
1934
+ 212,
1935
+ 146,
1936
+ 787,
1937
+ 840
1938
+ ],
1939
+ "page_idx": 18
1940
+ },
1941
+ {
1942
+ "type": "header",
1943
+ "text": "Grounding Language Models for Visual Entity Recognition",
1944
+ "bbox": [
1945
+ 338,
1946
+ 114,
1947
+ 730,
1948
+ 128
1949
+ ],
1950
+ "page_idx": 18
1951
+ },
1952
+ {
1953
+ "type": "page_number",
1954
+ "text": "19",
1955
+ "bbox": [
1956
+ 767,
1957
+ 114,
1958
+ 785,
1959
+ 126
1960
+ ],
1961
+ "page_idx": 18
1962
+ },
1963
+ {
1964
+ "type": "list",
1965
+ "sub_type": "ref_text",
1966
+ "list_items": [
1967
+ "77. Xiao, J., Hays, J., Ehinger, K.A., Oliva, A., Torralba, A.: Sun database: Large-scale scene recognition from abbey to zoo. In: Conf. on Computer Vision and Pattern Recognition (CVPR) (2010)",
1968
+ "78. Xiao, Z., Gong, M., Wu, J., Zhang, X., Shou, L., Pei, J., Jiang, D.: Instructed language models with retrievers are powerful entity linkers. arXiv preprint arXiv: 2311.03250 (2023)",
1969
+ "79. Zhang, W., Hua, W., Stratos, K.: EntQA: Entity Linking as Question Answering. In: The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022 (2022)",
1970
+ "80. Zhu, Y., Groth, O., Bernstein, M., Fei-Fei, L.: Visual7w: Grounded question answering in images. In: Proceedings of the IEEE conference on computer vision and pattern recognition (2016)"
1971
+ ],
1972
+ "bbox": [
1973
+ 215,
1974
+ 146,
1975
+ 785,
1976
+ 314
1977
+ ],
1978
+ "page_idx": 19
1979
+ },
1980
+ {
1981
+ "type": "page_number",
1982
+ "text": "20",
1983
+ "bbox": [
1984
+ 217,
1985
+ 114,
1986
+ 235,
1987
+ 126
1988
+ ],
1989
+ "page_idx": 19
1990
+ },
1991
+ {
1992
+ "type": "header",
1993
+ "text": "Z. Xiao et al.",
1994
+ "bbox": [
1995
+ 271,
1996
+ 114,
1997
+ 359,
1998
+ 126
1999
+ ],
2000
+ "page_idx": 19
2001
+ }
2002
+ ]
2024/Grounding Language Models for Visual Entity Recognition/f81adb0c-1edb-4295-b40e-665cc7191457_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Grounding Language Models for Visual Entity Recognition/f81adb0c-1edb-4295-b40e-665cc7191457_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:779d40192484acfc0b02d15771d1b8aa32ef77e6cfa8fd6a77ced168eddc5ac7
3
+ size 1724751
2024/Grounding Language Models for Visual Entity Recognition/full.md ADDED
@@ -0,0 +1,354 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Grounding Language Models for Visual Entity Recognition
2
+
3
+ Zilin Xiao $^{1}$ , Ming Gong $^{2}$ , Paola Cascante-Bonilla $^{1}$ , Xingyao Zhang $^{2}$ , Jie Wu $^{2}$ , and Vicente Ordonez $^{1}$
4
+
5
+ $^{1}$ Department of Computer Science, Rice University, USA {zilin, pc51, vicenteor}@rice.edu
6
+ $^{2}$ Microsoft STCA, China {migon, xingyaozhang, jiewu1}@microsoft.com
7
+
8
+ Abstract. We introduce AutoVER, an Autoregressive model for Visual Entity Recognition. Our model extends an autoregressive Multi-modal Large Language Model by employing retrieval augmented constrained generation. It mitigates low performance on out-of-domain entities while excelling in queries that require visual reasoning. Our method learns to distinguish similar entities within a vast label space by contrastively training on hard negative pairs in parallel with a sequence-to-sequence objective without an external retriever. During inference, a list of retrieved candidate answers explicitly guides language generation by removing invalid decoding paths. The proposed method achieves significant improvements across different dataset splits in the recently proposed OVEN-Wiki benchmark with accuracy on the ENTITY SEEN split rising from $32.7\%$ to $61.5\%$ . It demonstrates superior performance on the UNSEEN and QUERY splits by a substantial double-digit margin, while also preserving the ability to effectively transfer to other generic visual question answering benchmarks without further training.
9
+
10
+ Keywords: Language Model $\cdot$ Visual Entity Recognition
11
+
12
+ # 1 Introduction
13
+
14
+ Multimodal Large Language Models (MLLMs) have demonstrated superior performance on a variety of vision-and-language tasks such as visual question answering, image captioning, zero-shot image classification, among others [40, 55]. Their abilities can be transferred with few-shot tuning [2, 69] or even learning in context without parameter updates [5, 73]. Given their remarkable generalization abilities and prior knowledge based on large-scale pre-training, we consider there is still great potential for using them on tasks that require knowledge grounding.
15
+
16
+ A recently proposed task requiring knowledge grounding is the Open-domain Visual Entity Recognition (OVEN-Wiki) [28] task. In this task, given an input image and a question about the image, the goal is to answer with a very specific entity from Wikipedia. For instance, the answers could be a specific model of airplane, e.g. ATR 42, or BRITISH AEROSPACE 146. This is a very challenging
17
+
18
+ ![](images/d9d0a4a631eb04634c7263bbd0f1438c85d9f554d8a6c2e1f3a0431969ba8005.jpg)
19
+ Fig. 1: A representative query-entity pair from OVEN-Wiki. We briefly illustrate the model inference process and compare predictions from PaLI-17B (in red) and AutoVER-7B (in green) which obtains the correct answer: ATR 42. AutoVER retrieves entity candidates without an external retriever (step 1), dynamically constructs a prefix tree (trie) (step 2), and performs decoding-time augmentation to guide autoregressive generation (step 3).
20
+
21
+ task where MLLM-based solutions are prone to hallucinations, or producing answers that are not at the right level of granularity. Importantly, visual entity recognition requires recognizing entities that never appear in the training data (UNSEEN split). Moreover, a portion of the OVEN-Wiki benchmark (QUERY split) extends the task beyond recognition, requiring non-trivial reasoning to resolve the query question.
22
+
23
+ Visual Entity Recognition (VER) presents unique challenges compared to general Visual Question Answering (VQA) [1, 45]. The first challenge lies in the answer label space comprising over 6 million Wikipedia entities, which is prohibitive for classifier-based VQA models [58] as many entities considered in this ontology are visually very similar. The second issue involves generation-based VQA solutions [18, 40], where hallucinations can lead to generated text that is not grounded to the entity space. Lastly, existing VQA approaches fail to consider the visual information of candidates [41, 65]. Entity images from the knowledge base also play a significant role when disambiguating between entities with similar identifiers but different visual appearance. These methods also struggle with out-of-domain generalization and multi-hop reasoning, challenges which are covered by the UNSEEN and QUERY split of the OVEN-Wiki dataset.
24
+
25
+ In this work, we introduce an Autoregressive Visual Entity Recognizer (AutoVER), the first approach that enables multimodal language models to perform accurate visual entity recognition over a massive knowledge base. AutoVER addresses entity recognition by reformulating the problem as a sequence-to-sequence generation problem, as depicted in Fig. 1. The query image is translated into the token embedding space using a learnable projection layer, in a manner akin to treating images as a foreign language [43, 72]. This allows us to utilize pre-trained multi-modal language models and enormously improves performance on the QUERY split of OVEN-Wiki which requires reasoning over spatial relations, commonsense, and other visually-situated contexts.
26
+
27
+ To take advantage of visual clues on the entity side and enhance the generalization capability of the model on UNSEEN entities, we propose a unified and compact retrieval-augmented generation (RAG) framework upon AutoVER. Specifically, a special token $\langle \text{ret} \rangle$ is added to the vocabulary, whose last-layer hidden states serve as the representation for the query side. A lightweight two-layer Transformer is responsible for fusing visual features from entity images and textual features from entity descriptions and producing a representation for the entities, allowing contrastive learning with query-entity positive pairs in parallel with language modeling. Unlike other RAG systems that directly use retrieved items as context [57, 75] or infuse them into the model's intermediate hidden states [17, 24, 39], AutoVER dynamically constructs a prefix tree (trie) from the retrieved entity identifiers, and then generates entity identifiers by leveraging a methodology that constrains the next possible tokens and eliminates invalid options based on the trie, thus ensuring the generated text can always be grounded in retrieved candidates. To alleviate the entity granularity problem, two hard negative sampling strategies are proposed in our contrastive-generative framework to encourage the model to maximally distinguish between similar entities.
28
+
29
+ In summary, AUTOVER offers several advantages over baselines and prior work on VQA in the realm of visual entity recognition: (i) It refines the recognition process by integrating contrastive training into an MLLM. (ii) The proposed retrieval-augmented constrained decoding framework guarantees correct grounded entity prediction and enhances prediction over UNSEEN entities; (iii) AUTOVER leverages pre-trained visual models and knowledge graphs for hard negative mining which significantly strengthens our contrastive-generative framework in fine-grained entity recognition; (iv) Experimental results show that AUTOVER consistently outperforms fine-tuned CLIP and PaLI variants on all OVEN-Wiki splits. For instance, AUTOVER-7B achieves a $61.5\%$ accuracy on the OVEN-Wiki ENTITY SEEN split over PaLI-17B's $30.6\%$ , and $21.7\%$ on ENTITY UNSEEN over PaLI-17B's $12.4\%$ . Additionally, we evaluate AUTOVER alongside public multimodal LLMs on entity-related questions from the A-OKVQA dataset, demonstrating that our model can effectively zero-shot transfer to out-of-domain VQA datasets beyond OVEN-Wiki. Furthermore, ablation studies confirm the effectiveness of the introduced retrieve-generate framework. Code is released at https://github.com/MrZilinXiao/AutoVER.
30
+
31
+ # 2 Related Work
32
+
33
+ Visual Entity Recognition (VER) [28] is an emerging task for assessing the ability of a model to perform multi-modal knowledge grounding [29,53,79]. It can be regarded as a variant of visual question answering [1,45,59] with the key distinction that the choice set will comprise all entities in a specific knowledge base. Earlier solutions view this problem as an image-text-to-image-text retrieval task, where CLIP-based models [56] are fine-tuned and the top-scored answer in inference is treated as the model prediction. Alternatively, others rely on fine-tuning
34
+
35
+ generative language models such as PaLI [12] and Git [8,71] in an attempt to match the generated text with candidate entity identifiers using sparse matching approaches such as BM25 [61]. Entity Linking (EL) has been a long-standing text-only counterpart to VER, which entails locating mentions in the document and disambiguating them against a set of candidate entities. Our method bears the closest resemblance with the recent generative EL paradigm [7,47,78], which also reduces the knowledge-grounding problem into a sequence-to-sequence generation task. However, we stand out with several distinct advantages, including the seamless integration of retrieval capabilities into the language model and the use of explicit guidance for sequence generation.
36
+
37
+ Multimodal LLMs (MLLMs) are motivated by the remarkable reasoning abilities of Large Language Models (LLMs). LLaVA [43] builds upon LLaMA [68] and uses instruction-tuning to align visual features to the language space. The common practice of prompting MLLMs to produce proxy representations for downstream usage is to expand the vocabulary of language models. Such expansion augments the MLLM functionality beyond language generation. FROMAGe [34], GILL [33], GenLLaVa [26] and LISA [37] achieve satisfactory results over image-text-to-text retrieval, image generation and reasoning segmentation by inserting special tokens to augment the MLLMs original functionality. Our approach, built upon one of the latest MLLM model architecture, presents a compelling alternative to the bi-encoder shallow dot-product interaction or encoder-decoder sparse surface form matching employed in previous works on visual entity recognition. Our method also integrates contrastive learning on the outputs of entities and question pairs, analogous to the image-text contrastive learning used in CLIP-like models [54, 56, 66] and among visual features used for self-supervised contrastive learning [3, 11, 16, 25].
38
+
39
+ Retrieval-Augmented Language Models (RALMs) represent a class of NLP solutions focusing on knowledge-intensive tasks. RALMs typically condition a language model on relevant documents from a grounding corpus during generation, thereby enhancing the performance in knowledge-intensive language understanding tasks. Lewis et al. [39] jointly fine-tune a retriever with an encoder-decoder model, enabling the community to explore the RALM paradigm in language understanding. Guu et al. [23] train a bi-directional variant and also demonstrate superior performance. Apart from retrieved items in context, Févry et al. [17] are the first to integrate retrieved entity supervision by injecting intermediate representations. While augmented context helps in mitigating the well-known issue of hallucination, it does not ensure a faithful prediction with respect to an external knowledge base. Our retrieve-generate framework is distinct from existing retrieval-augmented methods. AUTOVER reduces the candidate entity set from millions to hundreds for generative language models through retrieval [30] and dynamically constrains language model generation using a prefix tree. This framework coincides with the design philosophy of agents [22] in Interactive NLP [74], where an agent interacts with the dynamic environment by performing beam-search on all available options.
40
+
41
+ ![](images/0b98eb3cac018630fc99a4e28956a39499267543492cd431c21911f775cd4837.jpg)
42
+ Fig. 2: Joint training of in-batch contrastive learning and language modeling in AU-TOVER. For each training quadruple consisting of an entity image, an entity description, a query image and a query question, a lightweight Transformer encoder produces the fused entity representation $E_{i}$ (left half). A special retrieval token prompts the multimodal language model to generate the query representation $Q_{i}$ . The query-to-entity contrastive training (Lquery2ent) encourages the correct retrieval of entities given the query pair, and the language modeling (LLM) helps the successful entity grounding.
43
+
44
+ # 3 Methodology
45
+
46
+ We first formulate the Visual Entity Recognition problem in Sec. 3.1. Then we present the overview design of AUTOVER in Sec. 3.2. We illustrate hard-negative mining with knowledge base source and pre-trained visual model in Sec. 3.3 and retrieval-augmented constrained decoding process in Sec. 3.4.
47
+
48
+ # 3.1 Problem Definition
49
+
50
+ Visual Entity Recognition can be viewed as a multimodal knowledge grounding task, in which the model is required to process an image-text pair input $x = (\mathbf{Q}_{\mathrm{im}}, \mathbf{Q}_{\mathrm{t}})$ and predict an entity $e$ . $\mathbf{Q}_{\mathrm{t}}$ describes the specific intent that prompts the model to ground some entity $e$ in the image $\mathbf{Q}_{\mathrm{im}}$ to a label space $\mathcal{E}$ . Each entity $e \in \mathcal{E}$ is a member of the knowledge base $\mathcal{K} = \{(e, \mathbf{E}_{\mathrm{im}}, \mathbf{E}_{\mathrm{desc}}) \mid e \in \mathcal{E}\}$ where $\mathbf{E}_{\mathrm{desc}}$ is a text description and $\mathbf{E}_{\mathrm{im}}$ is a set of relevant images of the entity. To circumvent trivial solutions for some query questions, all image-text pairs are annotated so the question cannot be correctly answered without the image.
51
+
52
+ # 3.2 Model Overview
53
+
54
+ AUTOVER consists of two main modules: a multi-modal language model $f_{\phi}$ initialized with pre-trained weights $\phi$ , and a multi-modal entity encoder $F_{\varphi}$
55
+
56
+ that fuses the entity image and textual description. To integrate the retrieval functionality into $f_{\phi}$ , we insert a special token $\langle \mathrm{ret} \rangle$ into the vocabulary of $f_{\phi}$ with its corresponding token embedding denoted as $\mathbf{H}_{\langle \mathrm{ret} \rangle}$ .
57
+
58
+ We illustrate the training process in Fig. 2. For a training sample $(\mathbf{Q}_{\mathrm{im}},\mathbf{Q}_{\mathrm{t}},$ $\mathbf{E}_{\mathrm{im}},\mathbf{E}_{\mathrm{desc}})$ , we first use a frozen pre-trained CLIP visual encoder $g_{\mathrm{vision}}$ and a learnable projection $\mathbf{W}_q$ to extract query image features $\mathbf{H}_{\mathrm{im}}$ and the embedded query text representations $\mathbf{H}_{\mathrm{t}}$ as follow:
59
+
60
+ $$
61
+ \mathbf {H} _ {\mathrm {i m}} = \mathbf {W} _ {q} \cdot g _ {\text {v i s i o n}} \left(\mathbf {Q} _ {\mathrm {i m}}\right),
62
+ $$
63
+
64
+ $$
65
+ \mathbf {H} _ {\mathrm {t}} = \mathbf {W} _ {\text {e m b e d}} \cdot \mathbf {Q} _ {\mathrm {t}},
66
+ $$
67
+
68
+ where $\mathbf{W}_{\mathrm{embed}}$ is the token embedding layer associated with $f_{\phi}$ , thus, treating the query image features as a foreign language. We concatenate the embedded query text representations and the query image features with the retrieval token embedding to organize the input instruction to model $\mathbf{H} = [\mathbf{H}_{\mathrm{im}}, \mathbf{H}_{\mathrm{t}}, \mathbf{H}_{<\mathrm{ret}}]$ . The last-layer hidden states of $\langle \mathrm{ret} \rangle$ token undergo dimension-matching projection and L2 normalization to a hyperspherical space, serving as the representation on the query side denoted as $Q$ . The use of a causal attention mask in $f_{\phi}$ allows this representation to incorporate the multi-modal query without leaking any label information.
69
+
70
+ On the entity encoder side, a frozen CLIP visual encoder $g_{\text{vision}}$ transforms entity image $\mathbf{E}_{\text{im}}$ into grid image features $\mathbf{Z}_{\text{im}}$ , and the frozen CLIP text encoder $g_{\text{text}}$ encodes the entity identifier and description into text features $\mathbf{Z}_{\text{text}}$ . A two-layer Transformer encoder handles the fusion of two modalities by a fusion token as a soft prompt [38], whose design was also adopted in [32]. The final-layer hidden states of the fusion token are also subjected to dimension matching and L2 normalization, providing the entity representation $E$ .
71
+
72
+ In-Batch Contrastive Training. Given normalized representations from both the query and entity side, $Q$ and $E$ , we formally introduce our in-batch contrastive training method specifically designed for query-to-entity retrieval. While image-text retrieval has been popular in learning joint vision and language representations [31, 56], few studies have delved into image-text-to-image-text retrieval, which happens to be the focus of query-to-entity retrieval. We adopt contrastive learning [13] and the InfoNCE loss [50] used in previous image-text retrieval work. Starting with computing the cosine similarity for a pair of representations,
73
+
74
+ $$
75
+ \operatorname {s i m} (Q, E) = \frac {Q \cdot E}{\| Q \| \| E \|},
76
+ $$
77
+
78
+ we minimize the InfoNCE loss for query-to-entity on a mini-batch consisting of $N$ query-entity pairs $(Q_{i},E_{i})$ . Each corresponding pair is considered a positive pair and others are treated as negatives. $\tau$ is a learnable temperature parameter. Our formulation is as follows:
79
+
80
+ $$
81
+ \mathcal {L} _ {\mathrm {q u e r y 2 e n t}} = - \frac {1}{N} \sum_ {i = 1} ^ {N} \left(\log \frac {\exp \left(\mathrm {s i m} \left(Q _ {i} , E _ {i}\right) / \tau\right)}{\sum_ {j = 1} ^ {N} \exp \left(\mathrm {s i m} \left(Q _ {i} , E _ {j}\right) / \tau\right)}\right).
82
+ $$
83
+
84
+ ![](images/fa4c29e372e65b90854f30e56c84bef71c7550286f367ef1f1344c5331395b78.jpg)
85
+ Fig. 3: Retrieval-augmented constrained decoding illustration of our proposed AutoVER inference process. The representation $Q$ will query a pre-cached entity database constructed using the multimodal entity encoder, and get the top- $k$ candidate entities. A prefix-constrained tree is dynamically built based on retrieved entity identifiers and guides the language model to autoregressively generate the next token, thereby ensuring the successful grounding of generated content.
86
+
87
+ Note that we do not train for the reversed objective, i.e. entity-to-query, as it does not align with our retrieval-augmented intuition.
88
+
89
+ In contrast to image-text retrieval which offers a unique correspondence between images and texts, query-to-entity mapping is subjective, i.e. multiple queries in the training data are associated with the same entity. This requires a particular sampling strategy during training to ensure that a batch does not include the same entity, referred to as a "conflicting batch". To preserve the integrity of the training data distribution, we implement a rejection sampling [20] method as an alternative to standard random sampling, resorting to resampling upon encountering conflicting batches.
90
+
91
+ Language Modeling. With organized input instruction $\mathbf{H}$ , we optimize the following cross-entropy loss, which is known as the next token prediction loss in causal language modeling:
92
+
93
+ $$
94
+ \mathcal {L} _ {\mathrm {L M}} = - \frac {1}{N - n} \sum_ {i = n} ^ {N} \log P (y _ {i} \mid \mathbf {H}, \dots , y _ {i - 1}),
95
+ $$
96
+
97
+ where $n$ is the length of $\mathbf{H}$ , $N$ denotes the length of the concatenation of $\mathbf{H}$ and the expected output, i.e. entity text identifier (BUGATTI VEYRON in Figure 2). Note that we do not backward the next token prediction loss on the input sequence, but only on the target sequence.
98
+
99
+ The final training loss is a linear combination of the language modeling loss and in-batch contrastive loss, denoted as follows:
100
+
101
+ $$
102
+ \mathcal {L} = \mathcal {L} _ {\mathrm {L M}} + \lambda_ {r} \cdot \mathcal {L} _ {\text {q u e r y 2 e n t}},
103
+ $$
104
+
105
+ where $\lambda_r$ is an empirically determined trade-off hyperparameter.
106
+
107
+ # 3.3 Hard-Negative Mining
108
+
109
+ To alleviate the entity granularity problem, two hard negative sampling approaches are proposed in our contrastive-generative framework, i.e. VISION-HARD and KB-HARD. Both approaches create entity groups used for constructing an in-batch sampler that prefers sampling similar entities in contrastive training, yet they differ in how they generate these similar groups. VISION-HARD relies on a pre-trained ViT [15] image classifier to identify visually similar entities based on shared prediction classes. In contrast, KB-HARD uses the category hierarchy of Wikidata as an external knowledge source, considering entities that share a parent node in the category hierarchy as knowledge-similar entities. We refer readers to the supplementary material for details about the construction of hard negative groups.
110
+
111
+ # 3.4 Retrieval-augmented Constrained Decoding
112
+
113
+ We illustrate the proposed model inference in Fig. 3. After training, all entity candidates are cached using the multi-modal entity encoder $F_{\varphi}$ to construct an entity vector database $\mathcal{V} \in \mathbb{R}^{n \times d}$ for efficient retrieval. Given an evaluation sample $(\mathbf{Q}_{\mathrm{im}}, \mathbf{Q}_{\mathrm{t}})$ , we first forward the MLLM for the normalized representation of the <ret> token, and query database $\mathcal{V}$ using top- $k$ similarity search to get $k$ entity candidates. The model dynamically generates a prefix tree (trie) that covers $k$ entity candidates, and the trie will explicitly guide entity identifier generation by eliminating impossible decoding paths when autoregressively generating tokens. The retrieval process takes into consideration the image of entities and improves the model towards out-of-domain entities. Moreover, the retrieval-augmented constrained decoding guarantees the grounding of the generated content to the knowledge base, alleviating the issue of hallucinations.
114
+
115
+ # 4 Experiments
116
+
117
+ We describe the experimental setting in Sec. 4.1 and report the main results in Sec. 4.2. We present the zero-shot generalization results in Sec. 4.3 and ablation study in Sec. 4.4 with discussions. For an intuitive demonstration of our model, we present the case study in Sec. 4.5.
118
+
119
+ # 4.1 Settings
120
+
121
+ Metrics. We follow the standard setup in Hu et al. [28], which uses accuracy and harmonic mean to evaluate model performance on different data splits. The harmonic mean of each split will equally weigh the importance of the seen and unseen subsets and penalize models that show weakness in either aspect. Finally, we report the overall harmonic mean on the ENTITY and QUERY splits as the final metric for the validation and test sets.
122
+
123
+ Table 1: Comparison among models on the OVEN-Wiki validation set. We report accuracies for the SEEN and UNSEEN subsets and the harmonic mean of each split (HM). Metrics of CLIP and PaLI variants are from [28]. For each subset, bold indicates the best metric.
124
+
125
+ <table><tr><td rowspan="2">Category</td><td rowspan="2">Method</td><td colspan="3">Entity Split</td><td colspan="3">Query Split</td><td>Overall</td></tr><tr><td>SEEN</td><td>UNSEEN</td><td>HM</td><td>SEEN</td><td>UNSEEN</td><td>HM</td><td>HM</td></tr><tr><td rowspan="3">Discriminative</td><td>CLIPViTL14</td><td>5.4</td><td>5.3</td><td>5.4</td><td>0.8</td><td>1.4</td><td>1.0</td><td>1.7</td></tr><tr><td>CLIP FusionViTL14</td><td>32.7</td><td>4.3</td><td>7.7</td><td>33.4</td><td>2.2</td><td>4.2</td><td>5.4</td></tr><tr><td>CLIP2CLIPViTL14</td><td>12.6</td><td>10.1</td><td>11.2</td><td>4.1</td><td>2.1</td><td>2.8</td><td>4.4</td></tr><tr><td rowspan="2">Generative</td><td>PaLI-3B</td><td>21.6</td><td>6.6</td><td>10.1</td><td>33.2</td><td>14.7</td><td>20.4</td><td>13.5</td></tr><tr><td>PaLI-17B</td><td>30.6</td><td>12.4</td><td>17.6</td><td>44.2</td><td>22.4</td><td>29.8</td><td>22.1</td></tr><tr><td rowspan="2">Zero-shot</td><td>BLIP-2Flan-T5-XXL</td><td>8.6</td><td>3.4</td><td>4.9</td><td>24.6</td><td>17.7</td><td>20.6</td><td>7.9</td></tr><tr><td>GPT-4V</td><td>29.8</td><td>19.3</td><td>23.4</td><td>56.5</td><td>52.7</td><td>54.5</td><td>32.9</td></tr><tr><td rowspan="2">Ours</td><td>AUTOVER-7B</td><td>61.5</td><td>21.7</td><td>32.1</td><td>69.0</td><td>31.4</td><td>43.2</td><td>36.8</td></tr><tr><td>AUTOVER-13B</td><td>63.6</td><td>24.5</td><td>35.6</td><td>68.6</td><td>32.3</td><td>43.9</td><td>39.2</td></tr></table>
126
+
127
+ Data Pre-processing and Models. We pre-process all query and entity images by resizing them into $336 \times 336$ pixels with padding to keep an identical aspect ratio. Entity descriptions are truncated to 77 tokens to fit the context window size of CLIP by cutting off sentences to the maximum available ones. Since query texts are typically short, no truncation is needed for query texts. Encoders on the entity side and visual encoder in MLLM are pre-trained CLIP-ViT/L/14-336px. The MLLM is initialized with the vicuna-7b-v1.5 or vicuna-13b-v1.5 checkpoint and corresponding visual projectors pre-aligned on a 558k subset of LAION [63], CC [9] and SBU [52] curated by Liu et al. [42].
128
+
129
+ Training and Evaluation. We train on the entity train and query train splits of OVEN-Wiki, which consists of nearly 5 million query-entity pairs. We conduct all pieces of training in a batch size of 256 on 32 V100-SXM2-32GB GPUs. We refer to the supplementary material for hyper-parameter choices and training details. We set $\lambda_r$ to 1 for all training settings. Due to a limited compute budget, we select $10\%$ and $50\%$ of the training data through weighted sampling according to entity occurrence frequency to facilitate ablation studies and reporting final results. For the same reason, we do not run a hyperparameter search. In evaluation, the number of retrieved entities $k$ is set to 300 according to empirical trials on the validation split.
130
+
131
+ # 4.2 Main Results
132
+
133
+ Results on the validation set are presented in Tab. 1. Our experimental results demonstrate a consistent improvement in all data splits and subsets on OVEN-Wiki. Specifically, we observe a double accuracy improvement in the ENTITY SEEN subsets of both OVEN-Wiki validation and test splits. This indicates that
134
+
135
+ Table 2: Results of methods on the OVEN-Wiki test set and human evaluation set. Human evaluation results from [28] are highlighted in gray.
136
+
137
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Entity Split</td><td colspan="2">Query Split</td><td colspan="2">Overall</td><td colspan="3">Human Eval</td></tr><tr><td>SEEN</td><td>UNSEEN</td><td>SEEN</td><td>UNSEEN</td><td>HM</td><td>SEEN</td><td>UNSEEN</td><td>HM</td><td></td></tr><tr><td>Human + Search</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>76.1</td><td>79.3</td><td>77.7</td><td></td></tr><tr><td>\(CLIP_{ViTL14}\)</td><td>5.6</td><td>4.9</td><td>1.3</td><td>2.0</td><td>2.4</td><td>4.6</td><td>6.0</td><td>5.2</td><td></td></tr><tr><td>CLIP \(Fusion_{ViTL14}\)</td><td>33.6</td><td>4.8</td><td>25.8</td><td>1.4</td><td>4.1</td><td>18.0</td><td>2.9</td><td>5.0</td><td></td></tr><tr><td>CLIP2\(CLIP_{ViTL14}\)</td><td>12.6</td><td>10.5</td><td>3.8</td><td>3.2</td><td>5.3</td><td>14.0</td><td>11.1</td><td>12.4</td><td></td></tr><tr><td>PaLI-3B</td><td>19.1</td><td>6.0</td><td>27.4</td><td>12.0</td><td>11.8</td><td>30.5</td><td>15.8</td><td>20.8</td><td></td></tr><tr><td>PaLI-17B</td><td>28.3</td><td>11.2</td><td>36.2</td><td>21.7</td><td>20.2</td><td>40.3</td><td>26.0</td><td>31.6</td><td></td></tr><tr><td>GER-400M [8]</td><td>31.5</td><td>17.7</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td></td></tr><tr><td>11ava-v1.5-7b [43]</td><td>7.5</td><td>2.1</td><td>41.9</td><td>37.4</td><td>6.2</td><td>-</td><td>-</td><td>-</td><td></td></tr><tr><td>AUTOVER-7B</td><td>62.8</td><td>16.0</td><td>63.7</td><td>31.9</td><td>31.8</td><td>64.7</td><td>39.9</td><td>49.4</td><td></td></tr><tr><td>AUTOVER-13B</td><td>65.0</td><td>18.6</td><td>65.7</td><td>32.0</td><td>34.6</td><td>68.4</td><td>44.2</td><td>53.7</td><td></td></tr></table>
138
+
139
+ AUTOVER can more effectively utilize its parameter capacity, achieving stronger in-domain visual entity recognition capabilities with fewer model parameters. The improvement on the QUERY SEEN subsets is slightly lower compared with the ENTITY SEEN improvement but still significant with $+24.8\%$ relative accuracy difference. We attribute this to the inherent reasoning and visual localization capabilities within the MLLM, a proficiency that has been extensively demonstrated across various benchmarks targeting MLLMs [10, 48].
140
+
141
+ On UNSEEN subsets, accuracy is severely impacted by queries whose answers involve out-of-domain entities, particularly in the Entity split. Nevertheless, AU-TOVER still outperforms the largest model, PaLI-17B, which can be attributed to the retrieval-augmented framework eliminating many improbable options for the decision-making of the MLLM.
142
+
143
+ We report results on test and human evaluation set in Tab. 2. Similarly, AUTOVER-13B achieves the best performance on subsets and splits of the test set. However, it must be acknowledged that there remains a gap between our results and those of Human + Search in the human validation set, particularly in the human UNSEEN subset, where the difference reaches $35.1\%$ .
144
+
145
+ In addition, we report the zero-shot visual entity recognition abilities of the largest BLIP-2 [40] checkpoint and GPT-4V $^3$ [51] on the validation set in Tab. 1, whereas no fine-tuning is performed on the training dataset. For BLIP-2, zero-shot generated outputs are grounded to Wikipedia using BM25, following generative baseline methods. As for GPT-4V, its elaborate generation, a result of instruction tuning, impedes effective evaluation with BM25. Hence, we adopt a partial matching evaluation strategy, treating the presence of the entity identi
146
+
147
+ fer in the generated text as a true positive. While BLIP-2 performance is anticipated, as its lack of fine-tuning hinders the acknowledgment of entity grounding intents, GPT-4V has surprisingly exceptional performance on the QUERY split. Nevertheless, GPT-4V poor performance on the ENTITY split still leaves it trailing behind AutoVER. Furthermore, the opacity of its training data prevents us from determining if GPT-4V excellent zero-shot performance is attributable to possible data leakage.
148
+
149
+ # 4.3 Zero-shot Generalization Results
150
+
151
+ Although OVEN-Wiki has already incorporated 14 classic datasets<sup>4</sup> from image recognition and visual question answering, along with extensive annotation efforts that ground answers to the knowledge base, we still hope to test the generalization capability of our method using additional out-of-domain datasets. As such, we manually curated a subset from the A-OKVQA [64] validation dataset. The subset does not overlap with any dataset sources in OVEN-Wiki and covers all question-answer pairs in the A-OKVQA validation split whose answer can be grounded to entities in the Wikipedia knowledge base. We name the subset A-OKVQA-ENT to emphasize this distinct property. Following the design of OVEN-Wiki, we divide the subset into SEEN and UNSEEN splits depending on whether the answer entity is in the OVEN-Wiki train set. This subset includes 478 entries out of 1,145 in the A-OKVQA validation set, of which 322 are identified as SEEN, while the remaining 156 are classified as UNSEEN.
152
+
153
+ To adhere to the evaluation setting of A-OKVQA, we adopted two evaluation approaches - multi-choice and entity match. In the multi-choice setting, AUTOVER constructs a prefix tree with four available options to guide generation, while for other models, options are numbered in the prompt and either the correct option number or an exact entity identifier match in the response is considered a true prediction. In the entity match setting, a partial match of the entity text identifier within the generated response qualifies a correct prediction. To ensure equitable comparison, baselines included are other generative models comparable in size with AUTOVER-7B, specifically LLaVA [43] and its improved v1.5 version [42], OpenFlamingo [4], and InstructBLIP [14]. While we expect that all models have not seen the A-OKVQA dataset so that we can assess the zero-shot generalization ability, it is important to acknowledge that LLaVA-v1.5 has been fine-tuned with 50k A-OKVQA multi-choice instructions, potentially giving it an edge. For context, we still include LLaVA-v1.5 results although they are not directly comparable.
154
+
155
+ We present results on A-OKVQA-ENT in Tab. 3 and Tab. 4, and refer readers to the supplementary material for qualitative analysis on this dataset. Our method still outperforms baseline models across all evaluation settings, with the exception of multiple-choice LLaVA-v1.5 which has been tuned with in-domain
156
+
157
+ Table 3: Model accuracies on A-OKVQA-ENT under multi-choice evaluation. Here methods are provided with multiple choices for answers in the prompt. $(^{*})$ Denotes unusual results due to failure to adhere to the provided multiple-choice prompts. Bold indicates the best metric under the same setting.
158
+
159
+ <table><tr><td>Supervision</td><td>Method</td><td>SEEN</td><td>UNSEEN</td><td>Overall</td></tr><tr><td rowspan="4">Zero-shot</td><td>OpenFlamingo-9B*</td><td>5.9</td><td>9.0</td><td>6.9</td></tr><tr><td>InstructBLIP_vicuna-7B</td><td>53.7</td><td>49.4</td><td>52.4</td></tr><tr><td>LLaVA-v1-7B*</td><td>13.0</td><td>10.3</td><td>12.1</td></tr><tr><td>AUTOVER-7B (Ours)</td><td>67.7</td><td>52.5</td><td>62.8</td></tr><tr><td>Fine-tuned</td><td>LLaVA-v1.5-7B</td><td>72.4</td><td>73.7</td><td>72.8</td></tr></table>
160
+
161
+ Table 4: Model hit rates on A-OKVQA-ENT under entity match evaluation. Here methods are not provided with multiple choices in the prompt and are deemed successful if they produce the right entity anywhere in their output.
162
+
163
+ <table><tr><td>Supervision</td><td>Method</td><td>SEEN</td><td>UNSEEN</td><td>Overall</td></tr><tr><td rowspan="4">Zero-shot</td><td>OpenFlamingo-9B</td><td>39.8</td><td>30.8</td><td>36.8</td></tr><tr><td>InstructBLIP_vicuna-7B</td><td>38.8</td><td>34.0</td><td>37.2</td></tr><tr><td>LLaVA-v1-7B</td><td>45.7</td><td>36.5</td><td>42.7</td></tr><tr><td>AUTOVER-7B (Ours)</td><td>61.3</td><td>42.3</td><td>55.0</td></tr><tr><td>Fine-tuned</td><td>LLaVA-v1.5-7B</td><td>47.8</td><td>42.9</td><td>46.2</td></tr></table>
164
+
165
+ instructions. Interestingly, we find that LLaVA-v1.5 in the entity match evaluation setting still falls short of AutoVER-7B, although it has seen in-domain samples. We also observed that LLaVA-v1 and OpenFlamingo, with inadequate instruction tuning, find it challenging to comply with the multiple-choice setting, and instead generate content unrelated to the given options, leading to their significantly lower metrics. Those findings reveal that generative language models struggle to adapt well to out-of-domain instructions and that unrestricted generation is prone to hallucinations in tasks requiring precise recognition. This further emphasizes the advantages of retrieval-assisted decoding-time augmentation for such tasks.
166
+
167
+ # 4.4 Ablation Study and Discussion
168
+
169
+ We present ablation studies exploring the effect of retrieval augmented generation, constrained decoding, and hard negative mining in Tab. 5. Ablations are conducted with $10\%$ of the training data and as such the metrics in ablations differ from our main results and we refer to our model as AutoVER-7B-0.1.
170
+
171
+ Retrieval Augmentation. We first focus on the absence of retrieval augmentation in AutoVER. Without retrieval, the model performs constrained decoding over a prefix tree composed of all Wikipedia entity identifiers instead of a set of retrieved candidates. We notice a slight performance gain on the seen subset,
172
+
173
+ Table 5: Ablation study of AUTOVER-7B-0.1 on OVEN-Wiki ENTITY Split(Va1).
174
+
175
+ <table><tr><td>Method</td><td>SEEN</td><td>UNSEEN</td><td>HM</td></tr><tr><td>AUTOVER-7B-0.1</td><td>48.9</td><td>19.0</td><td>27.4</td></tr><tr><td>+ w/o retrieval</td><td>50.7</td><td>0.6</td><td>1.2</td></tr><tr><td>+ w/o constrained decoding</td><td>46.8</td><td>0.6</td><td>1.2</td></tr><tr><td>+ w/ LoRA</td><td>43.5</td><td>2.8</td><td>5.3</td></tr><tr><td>AUTOVER-7B-0.1-[CLS]</td><td>12.8</td><td>0.1</td><td>0.2</td></tr></table>
176
+
177
+ likely due to the gold entity not being covered in retrieval. Conversely, the integrated retrieval design is found to significantly improve the performance of AUTOVER on the UNSEEN subset from non-viable to viable. Retrieval-augmented constrained decoding narrows down the decision-making scope of the language model, allowing AUTOVER to generate entity identifiers that are never seen during training.
178
+
179
+ Constrained Decoding. Upon the excluding of retrieval augmentation, we proceed to disable the entire constrained decoding mechanism, reverting AUTOVER to greedily decode the next token, where grounding to an external knowledge base is no longer assured. The consequent decrease in SEEN accuracy demonstrates that constrained decoding effectively alleviates hallucinations of the model in predicting entities. Unfortunately, since neither checkpoints of encoder-decoder variants from [28] in Table 1 and 2 nor PaLI pre-trained weights are publicly available, we are unable to assess whether our proposed decoding-time augmenting methods can bring universal improvement on generative baselines.
180
+
181
+ Parameter-Efficient Tuning (LoRA). Our ablations extend to the impact of parameter-efficient tuning methods on AUTOVER. Specifically, we configure a low-rank adapter (LoRA) [27] with a rank of 128 and alpha set at 256 and train this LoRA-variant of AUTOVER. The results reveal that the efficacy of LoRA falls short of expectation and explicitly harms the recognition performance on the SEEN subset. We leave more specialized efficient tuning methods for the generative VER framework as future work.
182
+
183
+ Autoregressive Model or Classifier. One may attribute the success of AutoVER to the large model size of its underlying MLLM and accompanied expressive capacity instead of our proposed design. In response to that, we devise a [CLS] variant of AutoVER. It follows the classical design of treating a decoder-only LM as a classifier. Specifically, we introduce a new [CLS] token into the MLLM vocabulary and append this token at the end of each query image-question pair. The corresponding last-layer hidden states are then finetuned for classifying the query into the 20,549 existing entities in OVEN-Wiki. We observed a significant performance degradation in this setting, particularly in the UNSEEN subset. This highlights the ineffectiveness of classifier-based VQA methods in the realm of visual entity recognition, indicating that our model performance stems from more than just its size.
184
+
185
+ ![](images/491d46ec091cf6cb14c53bd10cbd081f0cb745b31e711ae2bf18348cc55a0e89.jpg)
186
+
187
+ ![](images/2130ad7c6617da05ae40d553bf2cadd64d233a6fed0b4db3bab85d7ef4005843.jpg)
188
+ Input
189
+
190
+ ![](images/dde33d6889781601579a7eaaf6db2a461f9c3ebe9a0d6330e941ffbe5cb10ff6.jpg)
191
+ 一
192
+ 一
193
+ Boeing
194
+ Fairchild Aircraft
195
+
196
+ ![](images/66a8617a5d2964592c5d6f9c88feed3a9faac49f2d6f1f46c727570283aabbca.jpg)
197
+
198
+ ![](images/238b816aa71bba3fc65a55c66b05e06e5a338382b0a8994f41ee4fe6c62447b6.jpg)
199
+ 一
200
+ Candidates
201
+
202
+ ![](images/961a17ce5cf07f4f068705586a2964d60536f4bb8de65e64b486b250e942379b.jpg)
203
+ tes —
204
+
205
+ ![](images/a646132a1964047e095e1f6792a9396086f8e399d6ff0bbe182e1e81eaee096b.jpg)
206
+
207
+ ![](images/bf857c2e9adb810cdc3e24b0d98719c680fb0952ece9743ec97e850e6c2a65c2.jpg)
208
+
209
+ ![](images/10849b52149114db5581528916d189c25ba1a3d4e152311adb9fa6a678f622a1.jpg)
210
+ MLLM Decision
211
+ BOEING
212
+
213
+ ![](images/485a31118b201ec4925f2ac3d980dec1c3891f2a8a913ddc7a4b18ee5910cdf2.jpg)
214
+
215
+ ![](images/08867bf2a03a8d56f3bb8668a10de8a8c52e068891127fb2828b1f04442983c2.jpg)
216
+ What is the topping on the hot dog called?
217
+ Fig. 4: Illustration of selected query image-question pairs, retrieved candidates and AUTOVER-7B decisions. AUTOVER adeptly captures slight variations in the query text and retrieves entirely different entity candidates, which forms the basis for the generative decisions from the language model.
218
+
219
+ ![](images/791097f7fb98838d0a7a87e209493306fcc60f413226335f9031b5b4da4183fc.jpg)
220
+
221
+ ![](images/57fe0dc7c97b0e75ba93ab3551084685ca48b9d5b7af267c2830dae99c075ce3.jpg)
222
+
223
+ ![](images/36dcdb62fa64be92f8f8d1416dd6b5a7104a31c362b9bc2b1997e67543e3b7e5.jpg)
224
+
225
+ ![](images/9f8447b6eb35fa6757c787122c741362b37c513fd77cade30ede26a2581ec94c.jpg)
226
+
227
+ ![](images/1d6128cf1d90870a3f9ac598515b33c11da9987dbab64a6e6810c31123ce5d13.jpg)
228
+
229
+ ![](images/d42f4606fc10c5d56614a457c0610ab3f9d0645ffd1314ceff2c1694a9eb0cd8.jpg)
230
+ Cessna British Aerospace
231
+
232
+ British Aerospace
233
+
234
+ ![](images/08d4b2c9ac7ed46968ea12a42257f5cce9c43423a39d396ee6a8d60471ba0761.jpg)
235
+
236
+ ![](images/e8d8e20a26a870d53a5787227977995a4225285192dcffa1f9d560bca0e158bd.jpg)
237
+
238
+ ![](images/8a16a97c3adbb527f1b20f61ab3bb4c4e320f659dd68e828fae03f1417641b5b.jpg)
239
+
240
+ Aerospace
241
+
242
+ ![](images/0311a4ee294e8e555ffd584a34f91c83c8068031cc4d4632ecd26a9c06b6a46f.jpg)
243
+ M
244
+ Suzuki
245
+
246
+ ![](images/87511fd8bc1bfb6e5e7a96446598c0605a20fee0a046e5a8291df1c4aedcd3e1.jpg)
247
+
248
+ ![](images/7a96a61840f6e2cca377e4197bb054c50919bcda84a717a3045846e11f5fe3db.jpg)
249
+
250
+ ![](images/bd9d320c4a511a8e49c2636b144c160ae040288e0bf9807566309298a22b406f.jpg)
251
+
252
+ ![](images/c6554b0d50c08d0a29682685810ea3f7f0d6ab093e97a54c0328f81fb87bfe3e.jpg)
253
+ Boeing
254
+ Relish
255
+
256
+ ![](images/c241b7f649507b66a32a7827432c1e65a45f1c7eda54757fb8b329a8b3a21e17.jpg)
257
+
258
+ # 4.5 Case Study
259
+
260
+ We illustrate the retrieved entity candidates and model decisions on four representative image-question pairs. We note that for the same query image, questions with different intents lead to retrieval representations with semantic relevance to the intent, laying a solid foundation for the subsequent constrained generation. For instance, in the upper part of Fig. 4, the question asking for the specific model of airplane prompts the model to retrieve various kinds of airplanes. With a slight modification from "model" to "manufacturer" in the query question, the model adapts to retrieve famous airplane manufacturer brands instead of plane models. Likewise, the model is also proficient in managing queries that demand visual localization and reasoning abilities, as depicted in the lower part of Fig. 4. We refer to the supplementary material for the error analysis and more case studies with comparisons against GPT-4V.
261
+
262
+ # 5 Conclusion
263
+
264
+ We present AUTOVER, a compact retrieval-augmented generation framework specifically designed for visual entity recognition. Utilizing a novel constrained decoding technique, this approach effectively overcomes the challenges of low performance in recognizing out-of-domain entities while demonstrating remarkable proficiency in questions that require visually-situated reasoning. AUTOVER marks a significant advancement in visual entity recognition by doubling accuracy on nearly all challenging subsets of benchmarks. We discuss limitations in the supplementary material.
265
+
266
+ Acknowledgements. This project was partially funded by an NSF CAREER Award #2201710, and support from the Ken Kennedy Institute at Rice University. We also thank reviewers for their feedback and encouragement.
267
+
268
+ # References
269
+
270
+ 1. Agrawal, A., Lu, J., Antol, S., Mitchell, M., Zitnick, C.L., Parikh, D., Batra, D.: Vqa: Visual question answering. International Journal of Computer Vision (2015)
271
+ 2. Alayrac, J.B., Donahue, J., Luc, P., Miech, A., Barr, I., Hasson, Y., Lenc, K., Mensch, A., Millican, K., Reynolds, M., et al.: Flamingo: a visual language model for few-shot learning. Advances in Neural Information Processing Systems 35, 23716-23736 (2022)
272
+ 3. Aubret, A., Teulière, C., Triesch, J.: Self-supervised visual learning from interactions with objects. arXiv preprint arXiv:2407.06704 (2024)
273
+ 4. Awadalla, A., Gao, I., Gardner, J., Hessel, J., Hanafy, Y., Zhu, W., Marathe, K., Bitton, Y., Gadre, S., Sagawa, S., Jitsev, J., Kornblith, S., Koh, P.W., Ilharco, G., Wortsman, M., Schmidt, L.: Openflamingo: An open-source framework for training large autoregressive vision-language models. arXiv preprint arXiv: 2308.01390 (2023)
274
+ 5. Bar, A., Gandelsman, Y., Darrell, T., Globerson, A., Efros, A.: Visual prompting via image inpainting. Advances in Neural Information Processing Systems 35, 25005-25017 (2022)
275
+ 6. Bossard, L., Guillaumin, M., Van Gool, L.: Food-101 - mining discriminative components with random forests. In: ECCV (2014)
276
+ 7. Cao, N.D., Izacard, G., Riedel, S., Petroni, F.: Autoregressive entity retrieval. In: 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021 (2021)
277
+ 8. Caron, M., Iscen, A., Fathi, A., Schmid, C.: A generative approach for wikipedia-scale visual entity recognition. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2024)
278
+ 9. Changpinyo, S., Sharma, P., Ding, N., Soricut, R.: Conceptual 12m: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. Computer Vision and Pattern Recognition (2021)
279
+ 10. Chen, L., Li, B., Shen, S., Yang, J., Li, C., Keutzer, K., Darrell, T., Liu, Z.: Large language models are visual reasoning coordinators. arXiv preprint arXiv: 2310.15166 (2023)
280
+ 1. Chen, T., Kornblith, S., Norouzi, M., Hinton, G.: A simple framework for contrastive learning of visual representations. In: International conference on machine learning. pp. 1597-1607. PMLR (2020)
281
+ 2. Chen, X., Wang, X., Changpinyo, S., Piergiovanni, A., Padlewski, P., Salz, D.M., Goodman, S., Grycner, A., Mustafa, B., Beyer, L., Kolesnikov, A., Puigcerver, J., Ding, N., Rong, K., Akbari, H., Mishra, G., Xue, L., Thapliyal, A.V., Bradbury, J., Kuo, W., Seyedhosseini, M., Jia, C., Ayan, B.K., Riquelme, C., Steiner, A., Angelova, A., Zhai, X., Houlsby, N., Soricut, R.: Pali: A jointly-scaled multilingual language-image model. International Conference on Learning Representations (2022)
282
+ 3. Chopra, S., Hadsell, R., LeCun, Y.: Learning a similarity metric discriminatively, with application to face verification. In: 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05). vol. 1, pp. 539-546 vol. 1 (2005)
283
+ 4. Dai, W., Li, J., Li, D., Tiong, A.M.H., Zhao, J., Wang, W., Li, B., Fung, P., Hoi, S.: InstructBLIP: Towards general-purpose vision-language models with instruction tuning. In: Proceedings of the 37th International Conference on Neural Information Processing Systems. NIPS '23, Curran Associates Inc., Red Hook, NY, USA (2024)
284
+
285
+ 15. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., Houlsby, N.: An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. In: 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021 (2021)
286
+ 16. Fan, R., Poggi, M., Mattoccia, S.: Contrastive learning for depth prediction. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 3226-3237 (2023)
287
+ 17. Févry, T., Baldini Soares, L., FitzGerald, N., Choi, E., Kwiatkowski, T.: Entities as Experts: Sparse Memory Access with Entity Supervision. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). pp. 4937-4951. Association for Computational Linguistics, Online (Nov 2020)
288
+ 18. Gao, F., Ping, Q., Thattai, G., Reganti, A., Wu, Y.N., Natarajan, P.: Transform-retrieve-produce: Natural language-centric outside-knowledge visual question answering. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5067-5077 (2022)
289
+ 19. Gerry: Sports100: 100 Sports Image Classification. https://www.kaggle.com/datasets/gpiosenko/sports-classification/metadata (2021)
290
+ 20. Gilks, W.R., Wild, P.: Adaptive rejection sampling for gibbs sampling. Journal of the Royal Statistical Society: Series C (Applied Statistics) 41(2), 337-348 (1992)
291
+ 21. Goyal, Y., Khot, T., Summers-Stay, D., Batra, D., Parikh, D.: Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In: IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR) (2017)
292
+ 22. Gu, Y., Deng, X., Su, Y.: Don't Generate, Discriminate: A Proposal for Grounding Language Models to Real-World Environments. Annual Meeting of the Association for Computational Linguistics (2022)
293
+ 23. Guu, K., Lee, K., Tung, Z., Pasupat, P., Chang, M.W.: REALM: retrieval-augmented language model pre-training. International Conference on Machine Learning (ICML) (2020)
294
+ 24. Guu, K., Lee, K., Tung, Z., Pasupat, P., Chang, M.: Retrieval Augmented Language Model Pre-Training. In: III, H.D., Singh, A. (eds.) Proceedings of the 37th International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 119, pp. 3929-3938. PMLR (13-18 Jul 2020)
295
+ 25. Hernandez, J., Villegas, R., Ordonez, V.: Vic-mae: Self-supervised representation learning from images and video with contrastive masked autoencoders. arXiv preprint arXiv:2303.12001 (2023)
296
+ 26. Hernandez, J., Villegas, R., Ordonez, V.: Generative Visual Instruction Tuning (2024), https://arxiv.org/abs/2406.11262
297
+ 27. Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W.: LoRA: Low-Rank Adaptation of Large Language Models. In: The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022 (2022)
298
+ 28. Hu, H., Luan, Y., Chen, Y., Khandelwal, U., Joshi, M., Lee, K., Toutanova, K., Chang, M.W.: Open-domain visual entity recognition: Towards recognizing millions of wikipedia entities. ICCV (2023)
299
+ 29. van Hulst, J.M., Hasibi, F., Dercksen, K., Balog, K., de Vries, A.P.: REL: An Entity Linker Standing on the Shoulders of Giants. In: Huang, J.X., Chang, Y., Cheng, X., Kamps, J., Murdock, V., Wen, J., Liu, Y. (eds.) Proceedings of the 43rd International ACM SIGIR conference on research and development in Information Retrieval, SIGIR 2020, Virtual Event, China, July 25-30, 2020. pp. 2197-2200. ACM (2020)
300
+
301
+ 30. Iscen, A., Caron, M., Fathi, A., Schmid, C.: Retrieval-enhanced contrastive vision-text models. In: The Twelfth International Conference on Learning Representations (2024)
302
+ 31. Jia, C., Yang, Y., Xia, Y., Chen, Y.T., Parekh, Z., Pham, H., Le, Q.V., Sung, Y.H., Li, Z., Duerig, T.: Scaling up visual and vision-language representation learning with noisy text supervision. International Conference on Machine Learning (2021)
303
+ 32. Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., Lo, W.Y., Dollar, P., Girshick, R.: Segment Anything. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). pp. 4015-4026 (October 2023)
304
+ 33. Koh, J.Y., Fried, D., Salakhutdinov, R.: Generating images with multimodal language models. arXiv preprint arXiv: 2305.17216 (2023)
305
+ 34. Koh, J.Y., Salakhutdinov, R., Fried, D.: Grounding language models to images for multimodal inputs and outputs. International Conference on Machine Learning (2023)
306
+ 35. Krause, J., Stark, M., Deng, J., Fei-Fei, L.: 3d object representations for fine-grained categorization. In: 3dRR-13 (2013)
307
+ 36. Krishna, R., Zhu, Y., Groth, O., Johnson, J., Hata, K., Kravitz, J., Chen, S., Kalantidis, Y., Li, L.J., Shamma, D.A., et al.: Visual genome: Connecting language and vision using crowdsourced dense image annotations. International journal of computer vision 123(1), 32-73 (2017)
308
+ 37. Lai, X., Tian, Z., Chen, Y., Li, Y., Yuan, Y., Liu, S., Jia, J.: Lisa: Reasoning segmentation via large language model. arXiv preprint arXiv: 2308.00692 (2023)
309
+ 38. Lester, B., Al-Rfou, R., Constant, N.: The Power of Scale for Parameter-Efficient Prompt Tuning. In: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. pp. 3045-3059. Association for Computational Linguistics, Online and Punta Cana, Dominican Republic (Nov 2021)
310
+ 39. Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Kuttler, H., Lewis, M., Yih, W.t., Roktaschel, T., Riedel, S., Kiela, D.: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In: Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M., Lin, H. (eds.) Advances in Neural Information Processing Systems. vol. 33, pp. 9459–9474. Curran Associates, Inc. (2020)
311
+ 40. Li, J., Li, D., Savarese, S., Hoi, S.C.H.: BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models. In: Krause, A., Brunskill, E., Cho, K., Engelhardt, B., Sabato, S., Scarlett, J. (eds.) International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA. Proceedings of Machine Learning Research, vol. 202, pp. 19730-19742. PMLR (2023)
312
+ 41. Lin, W., Chen, J., Mei, J., Coca, A., Byrne, B.: Fine-grained Late-interaction Multi-modal Retrieval for Retrieval Augmented Visual Question Answering. In: H.Larochelle, M.Ranzato, R.Hadsell, M.F.Balcan, H.Lin (eds.) Advances in Neural Information Processing Systems. Curran Associates, Inc. (2023)
313
+ 42. Liu, H., Li, C., Li, Y., Lee, Y.J.: Improved Baselines with Visual Instruction Tuning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 26296-26306 (June 2024)
314
+ 43. Liu, H., Li, C., Wu, Q., Lee, Y.J.: Visual Instruction Tuning. In: Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., Levine, S. (eds.) Advances in Neural Information Processing Systems. vol. 36, pp. 34892-34916. Curran Associates, Inc. (2023)
315
+ 44. Maji, S., Rahtu, E., Kannala, J., Blaschko, M., Vedaldi, A.: Fine-grained visual classification of aircraft (2013), https://arxiv.org/abs/1306.5151
316
+
317
+ 45. Malinowski, M., Fritz, M.: A multi-world approach to question answering about real-world scenes based on uncertain input. Advances in neural information processing systems 27 (2014)
318
+ 46. Marino, K., Rastegari, M., Farhadi, A., Mottaghi, R.: Ok-vqa: A visual question answering benchmark requiring external knowledge. In: IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR). pp. 3195-3204 (2019)
319
+ 47. Mrini, K., Nie, S., Gu, J., Wang, S., Sanjabi, M., Firooz, H.: Detection, Disambiguation, Re-ranking: Autoregressive Entity Linking as a Multi-Task Problem. In: Findings of the Association for Computational Linguistics: ACL 2022. pp. 1972–1983. Association for Computational Linguistics, Dublin, Ireland (May 2022)
320
+ 48. Naveed, H., Khan, A.U., Qiu, S., Saqib, M., Anwar, S., Usman, M., Akhtar, N., Barnes, N., Mian, A.: A comprehensive overview of large language models. arXiv preprint arXiv: 2307.06435 (2023)
321
+ 49. Nilsback, M.E., Zisserman, A.: Automated flower classification over a large number of classes. In: 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing. IEEE (2008)
322
+ 50. van den Oord, A., Li, Y., Vinyals, O.: Representation learning with contrastive predictive coding. arXiv preprint arXiv: 1807.03748 (2018)
323
+ 51. OpenAI: GPT-4V(ision) System Card. https://cdn.openai.com/papers/GPTV_System/Card.pdf (Sep 2023)
324
+ 52. Ordonez, V., Kulkarni, G., Berg, T.L.: Im2text: Describing images using 1 million captioned photographs. In: Neural Information Processing Systems (NIPS) (2011)
325
+ 53. Ouyang, S., Huang, J., Pillai, P., Zhang, Y., Zhang, Y., Han, J.: Ontology enrichment for effective fine-grained entity typing. arXiv preprint arXiv:2310.07795 (2023)
326
+ 54. Pan, X., Ye, T., Han, D., Song, S., Huang, G.: Contrastive language-image pretraining with knowledge graphs. Advances in Neural Information Processing Systems 35, 22895-22910 (2022)
327
+ 55. Peng, Z., Wang, W., Dong, L., Hao, Y., Huang, S., Ma, S., Wei, F.: Kosmos-2: Grounding multimodal large language models to the world. arXiv preprint arXiv: 2306.14824 (2023)
328
+ 56. Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., Sutskever, I.: Learning Transferable Visual Models From Natural Language Supervision. In: Meila, M., Zhang, T. (eds.) Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event. Proceedings of Machine Learning Research, vol. 139, pp. 8748-8763. PMLR (2021)
329
+ 57. Ram, O., Levine, Y., Dalmedigos, I., Muhlgay, D., Shashua, A., Leyton-Brown, K., Shoham, Y.: In-Context Retrieval-Augmented Language Models. Transactions of the Association for Computational Linguistics (2023)
330
+ 58. Ramakrishnan, S., Agrawal, A., Lee, S.: Overcoming language priors in visual question answering with adversarial regularization. In: Bengio, S., Wallach, H., Larochelle, H., Grauman, K., Cesa-Bianchi, N., Garnett, R. (eds.) Advances in Neural Information Processing Systems. vol. 31. Curran Associates, Inc. (2018)
331
+ 59. Ren, M., Kiros, R., Zemel, R.: Exploring models and data for image question answering. Advances in neural information processing systems 28 (2015)
332
+ 60. Ridnik, T., Ben-Baruch, E., Noy, A., Zelnik-Manor, L.: Imagenet-21k pretraining for the masses. In: NeurIPS (2021)
333
+ 61. Robertson, S., Zaragoza, H., et al.: The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends in Information Retrieval 3(4), 333-389 (2009)
334
+
335
+ 62. Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S., Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein, M., et al.: Imagenet large scale visual recognition challenge. International Journal on Comptuer Vision (IJCV) (2015)
336
+ 63. Schuhmann, C., Beaumont, R., Vencu, R., Gordon, C., Wightman, R., Cherti, M., Coombes, T., Katta, A., Mullis, C., Wortsman, M., et al.: Laion-5b: An open large-scale dataset for training next generation image-text models. Advances in Neural Information Processing Systems 35, 25278-25294 (2022)
337
+ 64. Schwenk, D., Khandelwal, A., Clark, C., Marino, K., Mottaghi, R.: A-OKVQA: A benchmark for visual question answering using world knowledge. In: ECCV (8). Lecture Notes in Computer Science, vol. 13668, pp. 146-162. Springer (2022)
338
+ 65. Shao, Z., Yu, Z., Wang, M., Yu, J.: Prompting large language models with answer heuristics for knowledge-based visual question answering. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 14974-14983 (June 2023)
339
+ 66. Shrivastava, A., Selvaraju, R.R., Naik, N., Ordonez, V.: Clip-lite: Information efficient visual representation learning with language supervision. In: International Conference on Artificial Intelligence and Statistics. pp. 8433-8447. PMLR (2023)
340
+ 67. Singh, A., Natarajan, V., Shah, M., Jiang, Y., Chen, X., Batra, D., Parikh, D., Rohrbach, M.: Towards VQA models that can read. In: IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR) (2019)
341
+ 68. Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., Rodriguez, A., Joulin, A., Grave, E., Lample, G.: LLaMA: Open and Efficient Foundation Language Models. arxiv (2023)
342
+ 69. Tsimpoukelli, M., Menick, J.L., Cabi, S., Eslami, S., Vinyals, O., Hill, F.: Multimodal few-shot learning with frozen language models. Advances in Neural Information Processing Systems 34, 200-212 (2021)
343
+ 70. Van Horn, G., Mac Aodha, O., Song, Y., Cui, Y., Sun, C., Shepard, A., Adam, H., Perona, P., Belongie, S.: The inaturalist species classification and detection dataset. In: IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR) (2018)
344
+ 71. Wang, J., Yang, Z., Hu, X., Li, L., Lin, K., Gan, Z., Liu, Z., Liu, C., Wang, L.: GIT: A generative image-to-text transformer for vision and language. Trans. Mach. Learn. Res. 2022 (2022)
345
+ 72. Wang, W., Bao, H., Dong, L., Bjorck, J., Peng, Z., Liu, Q., Aggarwal, K., Mohammed, O.K., Singhal, S., Som, S., et al.: Image as a foreign language: Beit pretraining for vision and vision-language tasks. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 19175-19186 (2023)
346
+ 73. Wang, X., Wang, W., Cao, Y., Shen, C., Huang, T.: Images speak in images: A generalist painter for in-context visual learning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 6830-6839 (June 2023)
347
+ 74. Wang, Z., Zhang, G., Yang, K., Shi, N., Zhou, W., Hao, S., Xiong, G., Li, Y., Sim, M.Y., Chen, X., Zhu, Q., Yang, Z., Nik, A., Liu, Q., Lin, C., Wang, S., Liu, R., Chen, W., Xu, K., Liu, D., Guo, Y., Fu, J.: Interactive Natural Language Processing (2023), https://arxiv.org/abs/2305.13246
348
+ 75. Wang, Z., Araki, J., Jiang, Z., Parvez, M.R., Neubig, G.: Learning to filter context for retrieval-augmented generation. arXiv preprint arXiv: 2311.08377 (2023)
349
+ 76. Weyand, T., Araujo, A., Cao, B., Sim, J.: Google landmarks dataset v2-a large-scale benchmark for instance-level recognition and retrieval. In: Conf. on Computer Vision and Pattern Recognition (CVPR) (2020)
350
+
351
+ 77. Xiao, J., Hays, J., Ehinger, K.A., Oliva, A., Torralba, A.: Sun database: Large-scale scene recognition from abbey to zoo. In: Conf. on Computer Vision and Pattern Recognition (CVPR) (2010)
352
+ 78. Xiao, Z., Gong, M., Wu, J., Zhang, X., Shou, L., Pei, J., Jiang, D.: Instructed language models with retrievers are powerful entity linkers. arXiv preprint arXiv: 2311.03250 (2023)
353
+ 79. Zhang, W., Hua, W., Stratos, K.: EntQA: Entity Linking as Question Answering. In: The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022 (2022)
354
+ 80. Zhu, Y., Groth, O., Bernstein, M., Fei-Fei, L.: Visual7w: Grounded question answering in images. In: Proceedings of the IEEE conference on computer vision and pattern recognition (2016)
2024/Grounding Language Models for Visual Entity Recognition/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:901901bfce3d82691c77bac1344bed18e28f40cc02e8f263e1fe88cd757876f0
3
+ size 420384
2024/Grounding Language Models for Visual Entity Recognition/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/60259d81-0140-404b-bad0-378f4d2302df_content_list.json ADDED
@@ -0,0 +1,1232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 269,
8
+ 140,
9
+ 733,
10
+ 208
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Harsh Shah $^{1}$ , Kashish Mittal $^{1}$ , and Ajit Rajwade $^{1}$",
17
+ "bbox": [
18
+ 300,
19
+ 234,
20
+ 699,
21
+ 251
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Department of Computer Science & Engineering, Indian Institute of Technology Bombay",
28
+ "bbox": [
29
+ 233,
30
+ 262,
31
+ 767,
32
+ 291
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract. This work presents an adaptive group testing framework for the range-based high dimensional near neighbor search problem. Our method efficiently marks each item in a database as neighbor or non-neighbor of a query point, based on a cosine distance threshold without exhaustive search. Like other methods for large scale retrieval, our approach exploits the assumption that most of the items in the database are unrelated to the query. Unlike other methods, it does not assume a large difference between the cosine similarity of the query vector with the least related neighbor and that with the least unrelated non-neighbor. Following a multi-stage adaptive group testing algorithm based on binary splitting, we divide the set of items to be searched into half at each step, and perform dot product tests on smaller and smaller subsets, many of which we are able to prune away. We experimentally show that, using softmax-based features, our method achieves a more than ten-fold speed-up over exhaustive search with no loss of accuracy, on a variety of large datasets. Based on empirically verified models for the distribution of cosine distances, we present a theoretical analysis of the expected number of distance computations per query and the probability that a pool with a certain number of members will be pruned. Our method has the following features: (i) It implicitly exploits useful distributional properties of cosine distances unlike other methods; (ii) All required data structures are created purely offline; (iii) It does not impose any strong assumptions on the number of true near neighbors; (iv) It is adaptable to streaming settings where new vectors are dynamically added to the database; and (v) It does not require any parameter tuning. The high recall of our technique makes it particularly suited to plagiarism detection scenarios where it is important to report every database item that is sufficiently similar item to the query.",
39
+ "bbox": [
40
+ 261,
41
+ 324,
42
+ 738,
43
+ 712
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Keywords: near neighbor search, group testing, image retrieval",
50
+ "bbox": [
51
+ 261,
52
+ 724,
53
+ 692,
54
+ 739
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "1 Introduction",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 215,
64
+ 763,
65
+ 375,
66
+ 780
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Near neighbor (NN) search is a fundamental problem in machine learning, computer vision, image analysis and recommender systems. Consider a database $\\mathcal{D}$ of $N$ vectors given as $\\{\\pmb {f}_1,\\pmb {f}_2,\\dots ,\\pmb {f}_N\\}$ where each $\\pmb {f}_i\\in \\mathbb{R}^d$ . Given a query vector",
73
+ "bbox": [
74
+ 212,
75
+ 794,
76
+ 787,
77
+ 842
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "$\\pmb{q} \\in \\mathbb{R}^d$ , our aim is to determine all those vectors in $\\mathcal{D}$ such that $\\mathrm{sim}(\\pmb{q}, \\pmb{f}_i) \\geq \\rho$ , where $\\mathrm{sim}(.,.)$ denotes some similarity measure, and $\\rho$ denotes some threshold on $\\mathrm{sim}$ . This is called a similarity measure based NN query. Another variant is the $K$ nearest neighbor (KNN) search where the aim is to find the $K$ most similar neighbors to $\\pmb{q}$ .",
84
+ "bbox": [
85
+ 212,
86
+ 145,
87
+ 787,
88
+ 223
89
+ ],
90
+ "page_idx": 1
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "A significant portion of the literature on NN search focuses on approximate methods, often resulting in less than perfect recall rates, i.e. many database images that are similar to the query image are not retrieved. This deficiency renders them unsuitable for applications requiring high recall, such as plagiarism detection. In such scenarios, the query vectors, such as images or music files, are compared to an existing database of similar entities, and all vectors exhibiting high similarity with the query need to be retrieved for plagiarism assessment. The failure to retrieve a near neighbor could potentially lead to unfair evaluation of submissions to photography or music competitions, or online forums.",
95
+ "bbox": [
96
+ 212,
97
+ 226,
98
+ 787,
99
+ 362
100
+ ],
101
+ "page_idx": 1
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "Related Work on NN Search: There exists a large body of literature on approximate NN search in higher dimensions. One of the major contributions in this area is called Locality Sensitive Hashing (LSH) [28]. Here, a hashing function partitions the dataset into buckets, such that only close vectors are likely to be hashed to the same bucket. The LSH family of algorithms consists of many variants such as those involving multiple buckets per query vector, data-driven or machine learning based construction of LSH functions [15, 19], and count-based methods [31]. In general, LSH based methods are difficult to implement for very high dimensions owing to the curse of dimensionality in constructing effective hash tables. Dimensionality reduction algorithms can mitigate this issue to some extent, but they are themselves expensive to implement and incur some inevitable data loss. There is also significant research in graph-based methods for nearest neighbor (NN) search, as explored in [22,25,32]. These methods typically achieve high accuracy and efficient query times. However, they often need relatively high pre-processing times, making them less suitable for dynamic datasets that require frequent addition of new points. In addition, various randomized variants of KD-trees and priority search K-means trees have been investigated for efficient approximate NN search in high-dimensional spaces, as seen in [35] and [33]. Despite their efficiency, these approaches involve numerous parameters, which can complicate tuning, especially for large datasets.",
106
+ "bbox": [
107
+ 212,
108
+ 364,
109
+ 787,
110
+ 667
111
+ ],
112
+ "page_idx": 1
113
+ },
114
+ {
115
+ "type": "text",
116
+ "text": "Overview of Group Testing: In this work, we present a group testing (GT) based approach for the NN problem. We start by presenting a brief overview of the field of GT. Consider $N$ items $\\{x_i\\}_{i=1}^N$ (also called 'samples' in many references), out of which only a small number $s \\ll N$ are 'defective'. We consider the $i$ th item to be defective if $x_i = 1$ and non-defective if $x_i = 0$ . GT involves testing a certain number of 'pools' ( $m \\ll N$ ) to identify the defective items from $\\{x_i\\}_{i=1}^N$ . Each pool (also called 'group') is created by mixing together or combining subsets of the $N$ items. Thus the $j$ th pool ( $j \\in [m]$ ) is represented as $y_j = \\bigvee_{i=1}^N A_{ji} x_i$ , where $\\bigvee$ stands for bit-wise OR, and $\\mathbf{A} \\in \\{0,1\\}^{m \\times N}$ is a binary pooling matrix where $A_{ji} = 1$ if the $i$ th item participates in the $j$ th pool and 0 otherwise. GT has a rich literature dating back to the seminal 'Dorfman's",
117
+ "bbox": [
118
+ 212,
119
+ 672,
120
+ 787,
121
+ 840
122
+ ],
123
+ "page_idx": 1
124
+ },
125
+ {
126
+ "type": "page_number",
127
+ "text": "2",
128
+ "bbox": [
129
+ 217,
130
+ 114,
131
+ 228,
132
+ 126
133
+ ],
134
+ "page_idx": 1
135
+ },
136
+ {
137
+ "type": "header",
138
+ "text": "H. Shah et al.",
139
+ "bbox": [
140
+ 271,
141
+ 114,
142
+ 364,
143
+ 126
144
+ ],
145
+ "page_idx": 1
146
+ },
147
+ {
148
+ "type": "text",
149
+ "text": "method' [20] which is a popular two-round testing strategy. In the first round of Dorfman's method, some $N / K$ pools, each consisting of $K$ items, are tested. The items that participated in pools that test negative (i.e., pools that are deemed to contain no defective item) are declared non-defective, whereas all items that participated in the positive pools (i.e., pools that are deemed to contain at least one defective item) are tested individually in the second round. Theoretical analysis shows that for $s \\ll N$ , this method requires much fewer than $N$ tests in the worst case. This algorithm was extended to some $r$ rounds in [30], where positive groups are further divided into smaller groups, and individual testing is performed only in the $r$ th round. The methods in [20,30] are said to be adaptive in nature, as the results of one round are given as input to the next one. The GT literature also contains a large number of non-adaptive algorithms that make predictions in a single round. A popular algorithm is called COMP or combinatorial orthogonal matching pursuit, which declares all items participating in a negative pool to be negative, and all the rest to be positive [14]. Many variants of COMP such as Noisy COMP (NCOMP) or Definite Defectives (DD) are also popular [14]. A popular class of non-adaptive GT algorithms [23] draw heavily from the compressed sensing (CS) literature [17, 38]. Such algorithms can consider quantitative information for each $\\{x_i\\}_{i=1}^N$ so that each $x_i \\in \\mathbb{R}$ , and every pool $y_j$ also gives a real-valued result. The pooling matrix $\\mathbf{A}$ remains binary, and we have the relation $\\forall j \\in [m], y_j = \\sum_{i=1}^{N} A_{ji} x_i$ . Given $\\{y_j\\}_{j=1}^m$ and $\\mathbf{A}$ , the unknown vector $\\mathbf{x}$ can be recovered using efficient convex optimization methods such as the LASSO given by $\\hat{\\mathbf{x}} = \\operatorname{Argmin}_\\mathbf{x} \\| \\mathbf{y} - \\mathbf{A}\\mathbf{x} \\|_2^2 + \\lambda \\| \\mathbf{x} \\|_1$ , where $\\lambda$ is a regularization parameter [26]. As proved in [18, 26], the LASSO estimator produces provably accurate estimates of $\\mathbf{x}$ given a sufficient number of measurements (or pools) in $\\mathbf{y}$ and a carefully designed matrix $\\mathbf{A}$ .",
150
+ "bbox": [
151
+ 217,
152
+ 145,
153
+ 787,
154
+ 541
155
+ ],
156
+ "page_idx": 2
157
+ },
158
+ {
159
+ "type": "text",
160
+ "text": "Overview of our work: GT algorithms have been applied to the NN search problem recently in [21, 29, 36]. However in these papers, the nearest neighbor queries are of an approximate nature, i.e. the results may contain a number of vectors which are not near neighbors of the query vector $\\mathbf{q}$ , and/or may miss some genuine near neighbors. On the other hand, we focus on accurate query results with good computational efficiency in practice. Our approach is based on an adaptive GT approach called binary splitting. Like existing GT based algorithms such as [21, 29, 36], our approach is also based on the assumption that in high-dimensional NN search, most vectors in the database $\\mathcal{D}$ are dissimilar to a query vector $\\mathbf{q}$ , and very few vectors qualify as near neighbors. However, our method does not require the distance between the most unrelated neighbor and the most closely related non-neighbor to be large, unlike [21]. Additionally, many existing approaches [1, 15, 16, 21, 24, 29, 33, 34, 36] require parameter tuning in a manner that is not fully data driven. It is also a tedious process for large databases, particularly when dealing with algorithms with large index building times. Moreover, algorithms with large index building times or those unable to efficiently handle the addition of new points are ill-suited for streaming settings. In this work, we present a range-based near neighbor search algorithm in high dimensions built on a group testing framework that has the following appealing",
161
+ "bbox": [
162
+ 217,
163
+ 551,
164
+ 787,
165
+ 840
166
+ ],
167
+ "page_idx": 2
168
+ },
169
+ {
170
+ "type": "header",
171
+ "text": "Group Testing for NN Search",
172
+ "bbox": [
173
+ 535,
174
+ 114,
175
+ 730,
176
+ 128
177
+ ],
178
+ "page_idx": 2
179
+ },
180
+ {
181
+ "type": "page_number",
182
+ "text": "3",
183
+ "bbox": [
184
+ 774,
185
+ 116,
186
+ 784,
187
+ 126
188
+ ],
189
+ "page_idx": 2
190
+ },
191
+ {
192
+ "type": "text",
193
+ "text": "properties for softmax-based feature descriptors: $(i)$ low index building time, $(ii)$ perfect precision and recall without exhaustive search, $(iii)$ no parameter tuning, $(iv)$ low time complexity $(\\mathcal{O}(1))$ for addition of new vectors making the algorithm suitable for streaming tasks, and $(v)$ a unique method of incorporating distributional properties of the similarity values between query and database vectors into the search process.",
194
+ "bbox": [
195
+ 212,
196
+ 146,
197
+ 787,
198
+ 236
199
+ ],
200
+ "page_idx": 3
201
+ },
202
+ {
203
+ "type": "text",
204
+ "text": "Organization of the paper: The core method is presented in Sec. 2. We present detailed analytical comparisons with existing GT-based techniques for NN search in Sec. 3. Experimental results and comparisons to a large number of recent NN search methods are presented in Sec. 4. A theoretical analysis of our approach is presented in Sec. 5. We conclude in Sec. 6.",
205
+ "bbox": [
206
+ 212,
207
+ 237,
208
+ 787,
209
+ 313
210
+ ],
211
+ "page_idx": 3
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "2 Description of Method",
216
+ "text_level": 1,
217
+ "bbox": [
218
+ 215,
219
+ 337,
220
+ 472,
221
+ 354
222
+ ],
223
+ "page_idx": 3
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "In our technique, a pool of high-dimensional vectors is created by simply adding together the participating vectors, which may for example be (vectorized) images or features extracted from them. Consider a query vector $\\pmb{q} \\in \\mathbb{R}^d$ and the database $\\mathcal{D}$ consisting of $\\{\\pmb{f}_1, \\pmb{f}_2, \\dots, \\pmb{f}_N\\}$ where each $\\pmb{f}_i \\in \\mathbb{R}^d$ . Throughout this paper, we consider the similarity measure $\\mathrm{sim}(q, f_i) \\triangleq q^t f_i$ . For simplicity, we consider the query vector $\\pmb{q}$ as well as the vectors in $\\mathcal{D}$ to be element-wise non-negative. This constraint is satisfied by images or their features based on ReLU or softmax nonlinearities (see the end of this section for a method to handle negative-valued descriptors). We also consider that the vectors in question have unit magnitude, without any loss of generality. Due to this, $q^t f_i$ acts as a cosine similarity measure.",
228
+ "bbox": [
229
+ 212,
230
+ 371,
231
+ 787,
232
+ 537
233
+ ],
234
+ "page_idx": 3
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "Our aim is to retrieve all 'defective' members of $\\mathcal{D}$ , i.e. each member $\\pmb{f_i}$ for which $\\pmb{q}^t\\pmb{f}_i \\geq \\rho$ , where $\\rho$ is some pre-specified threshold. With this aim in mind, we aim to efficiently prune away any vector $\\pmb{f_i}$ from $\\mathcal{D}$ for which it is impossible to have $\\pmb{q}^t\\pmb{f}_i \\geq \\rho$ . Vector pooling using summations proves to be beneficial for this purpose. Consider the toy example of a pool $\\pmb{y} = \\pmb{f}_1 + \\pmb{f}_2 + \\pmb{f}_3 + \\pmb{f}_4$ . If $\\pmb{q}^t\\pmb{y} < \\rho$ (i.e. the pooled result is negative), then one can clearly conclude that $\\pmb{q}^t\\pmb{f}_i < \\rho$ for each $i \\in \\{1, 2, 3, 4\\}$ . However if $\\pmb{q}^t\\pmb{y} \\geq \\rho$ , i.e. it yields a positive result, then we need to do further work to identify the defective members (if any). For this, we split the original pool and create two pools $\\pmb{y}_1$ and $\\pmb{y}_2$ , each with approximately half the number of members of the original pool. We recursively compute $\\pmb{q}^t\\pmb{y}_2$ and then obtain $\\pmb{q}^t\\pmb{y}_1 = \\pmb{q}^t\\pmb{y} - \\pmb{q}^t\\pmb{y}_2$ (where both $\\pmb{q}^t\\pmb{y}$ and $\\pmb{q}^t\\pmb{y}_2$ have already been computed earlier, and hence $\\pmb{q}^t\\pmb{y}_1$ is directly obtained from the difference between them). Thereafter, we proceed in a similar fashion for both branches.",
239
+ "bbox": [
240
+ 212,
241
+ 537,
242
+ 787,
243
+ 733
244
+ ],
245
+ "page_idx": 3
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "We now consider the case of searching within the entire database $\\mathcal{D}$ defined earlier. We initiate this recursive process with a pool $y_{0}$ that is obtained from the summation of all $N$ vectors. If $y_{0}$ yields a positive result, we test the query vector with two pools: $y_{11}$ obtained from a summation of vectors $f_{1}$ through to $f_{\\lfloor N / 2\\rfloor}$ , and $y_{12}$ obtained from a summation of vectors $f_{\\lfloor N / 2\\rfloor +1}$ through to $f_{N}$ . If $y_{11}$ tests negative, then all its members are declared negative and no further tests are required on its members, which greatly reduces the total number of tests.",
250
+ "bbox": [
251
+ 212,
252
+ 734,
253
+ 787,
254
+ 839
255
+ ],
256
+ "page_idx": 3
257
+ },
258
+ {
259
+ "type": "page_number",
260
+ "text": "4",
261
+ "bbox": [
262
+ 217,
263
+ 114,
264
+ 228,
265
+ 126
266
+ ],
267
+ "page_idx": 3
268
+ },
269
+ {
270
+ "type": "header",
271
+ "text": "H. Shah et al.",
272
+ "bbox": [
273
+ 271,
274
+ 114,
275
+ 364,
276
+ 126
277
+ ],
278
+ "page_idx": 3
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "If $y_{11}$ tests positive, then it is split into two pools $y_{21}, y_{22}$ with roughly equal number of members. Tests are carried out further on these two pools recursively. The same treatment is accorded to $y_{12}$ , which would be split into pools $y_{23}, y_{24}$ if it were to test positive. This recursive process stops when the pools obtained after splitting contain just a single vector each, in which case each such single vector is tested against $q$ . Clearly, the depth of this recursive process is $\\lceil \\log_2 N \\rceil$ given $N$ vectors in $\\mathcal{D}$ . This procedure is called binary splitting, and it is a multi-round adaptive group testing approach, applied here to NN search. For efficiency of implementation, it is important to be able to create the different pools such as $y_0, y_{11}, y_{12}, y_{21}, y_{22}, y_{23}, y_{24}$ , etc., efficiently. For this purpose, we maintain cumulative sums of the following form in memory:",
283
+ "bbox": [
284
+ 212,
285
+ 146,
286
+ 787,
287
+ 313
288
+ ],
289
+ "page_idx": 4
290
+ },
291
+ {
292
+ "type": "equation",
293
+ "text": "\n$$\n\\tilde {\\boldsymbol {f}} _ {1} = \\boldsymbol {f} _ {1}, \\tilde {\\boldsymbol {f}} _ {2} = \\tilde {\\boldsymbol {f}} _ {1} + \\boldsymbol {f} _ {2}, \\dots , \\tilde {\\boldsymbol {f}} _ {N} = \\tilde {\\boldsymbol {f}} _ {N - 1} + \\boldsymbol {f} _ {N}. \\tag {1}\n$$\n",
294
+ "text_format": "latex",
295
+ "bbox": [
296
+ 336,
297
+ 316,
298
+ 784,
299
+ 335
300
+ ],
301
+ "page_idx": 4
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "The cumulative sums are useful for efficient creation of various pools. They are created purely offline, independent of any query vector. The pools are created using simple vector difference operations, given these cumulative sums. For example, notice that $\\mathbf{y}_0 = \\widetilde{\\mathbf{f}}_N$ , $\\mathbf{y}_{11} = \\widetilde{\\mathbf{f}}_{\\lfloor N / 2\\rfloor}$ and $\\mathbf{y}_{12} = \\widetilde{\\mathbf{f}}_N - \\widetilde{\\mathbf{f}}_{\\lfloor N / 2\\rfloor}$ . The overall binary splitting procedure is presented in Alg. 1 (a schematic diagram is provided in [13]). For the sake of greater efficiency, it is implemented non-recursively using a simple stack data structure. This binary splitting approach is quite different from Dorfman's algorithm [20], which performs individual testing in the second round. Our approach is more similar to Hwang's generalized binary splitting approach, a GT procedure which was proposed in [27] (see also [8], Alg. 1.1 of [14]). However compared to Hwang's technique, our approach allows for creation of all pools either in a purely offline manner or with simple updates involving a single vector-subtraction operation (for example, $\\mathbf{y}_{12} = \\widetilde{\\mathbf{f}}_N - \\widetilde{\\mathbf{f}}_{\\lfloor N / 2\\rfloor}$ in the earlier example). On the other hand, the method in [27] detects defective one at a time, after going through all $\\log_2N$ levels of recursion. Once a defective item is detected, it is discarded and all pools are created again. The entire set of $\\log_2N$ levels of recursion are again executed. This process is repeated until all defectives have been detected and discarded one at a time. The method from [27] is computationally inefficient for high-dimensional NN search, as the pools must be created afresh for each level of recursion. This is because if a vector at index $i$ is discarded, all cumulative sums from index $i + 1$ to $N$ need to be updated. Such updates are not required in our method. We also emphasize that the techniques in [14,20,27,30] have all been applied only for binary GT and not for NN search (see the beginning of Sec. 5 for an important difference between binary GT and NN search). The binary splitting procedure saves on a large number of tests because in high dimensional search, we observe that most vectors in $\\mathcal{D}$ are dissimilar to a given query vector $q$ , as will be demonstrated in Sec. 4. After the first round where pool $y_0$ is created, all other pools are essentially created randomly (since the initial arrangement of the vectors in $\\mathcal{D}$ is random). As a result, across the different rounds, many pools test negative and are dropped out, especially in later rounds. In particular, we note that there is no loss of accuracy in this method, although we save on the number of tests by a factor more than ten on some large datasets (as will be shown in Sec. 4).",
306
+ "bbox": [
307
+ 212,
308
+ 340,
309
+ 787,
310
+ 843
311
+ ],
312
+ "page_idx": 4
313
+ },
314
+ {
315
+ "type": "header",
316
+ "text": "Group Testing for NN Search",
317
+ "bbox": [
318
+ 532,
319
+ 114,
320
+ 730,
321
+ 128
322
+ ],
323
+ "page_idx": 4
324
+ },
325
+ {
326
+ "type": "page_number",
327
+ "text": "5",
328
+ "bbox": [
329
+ 774,
330
+ 116,
331
+ 784,
332
+ 126
333
+ ],
334
+ "page_idx": 4
335
+ },
336
+ {
337
+ "type": "code",
338
+ "sub_type": "algorithm",
339
+ "code_caption": [
340
+ "Algorithm 1 Iterative Binary Splitting (see [13, Fig. 1] for a diagram)"
341
+ ],
342
+ "code_body": "1: $Fs\\gets [\\widetilde{f}_1,\\widetilde{f}_2,\\dots,\\widetilde{f}_N]$ \n2: $S$ -stack for storing triples $\\{si,ei,sim\\}$ where $si,ei$ are start and end index for a pool, sim $=$ dot product between query vector q and pool vector. \n3: $Flg$ array of size $N$ flags, all 0's initially ( $0 =$ non-neighbor, $1 =$ neighbor of q) \n4: S.push $\\{1,N,q^t\\widetilde{f}_N\\}$ , i.e. $si = 1,ei = N$ \n5: while S.size() $\\neq 0$ do \n6: $\\{si,ei,sim\\} \\leftarrow S.top();S.pop()$ \n7: if sim $\\geq \\rho$ then \n8: $n\\gets ei - si + 1$ \n9: if $n > 2$ then \n10: $rsim\\gets q^{t}(\\widetilde{fe}_{i} - \\widetilde{fs}_{i + \\lfloor n / 2\\rfloor -1})$ $\\triangleright$ testing right-half \n11: S.push $\\{si + \\lfloor n / 2\\rfloor ,ei,rsim\\}$ ; push right branch onto stack \n12: S.push $\\{si,si + \\lfloor n / 2\\rfloor -1,sim - rsim\\}$ ; push left branch onto stack \n13: else \n14: if $n = 2$ then \n15: $rsim\\gets q^{t}(\\widetilde{fe}_{i} - \\widetilde{fs}_{i})$ \n16: set $Flg[ei] = 1$ , if $rsim\\geq \\rho$ \n17: set $Flg[si] = 1$ , if sim-rsim $\\geq \\rho$ \n18: else \n19: $Flg[si] = 1$ $\\triangleright$ Mark si a neighbor \n20: end if \n21: end if \n22: end if \n23: end while",
343
+ "bbox": [
344
+ 215,
345
+ 164,
346
+ 787,
347
+ 505
348
+ ],
349
+ "page_idx": 5
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "Pooling using Element-wise Maximum: We have so far described pool creation using vector summation. However, pools can also be created by computing the element-wise maximum of all vectors participating in the pool. Given a subset of vectors $\\{\\pmb{f}_k\\}_{k=1}^K$ , such a pool $\\pmb{y}_m$ is given by: $\\forall j \\in \\{1,2,\\dots,d\\}, y_{m,j} = \\max_j(f_{k,j})$ where $f_{k,j}$ stands for the $j$ th element of $\\pmb{f}_k$ . We denote this operation as $\\pmb{y}_m = \\max(\\{\\pmb{f}_k\\}_{k=1}^K)$ . If $\\pmb{q}^t\\pmb{y}_m < \\rho$ , it follows that $\\pmb{q}^t\\pmb{f}_k < \\rho$ for every $\\pmb{f}_k$ that contributed to $\\pmb{y}_m$ . Hence pools created using an element-wise maximum are also well suited for iterative binary splitting in a similar fashion as in Alg. 1. Separate element-wise maximum vectors need to be stored in memory for each pool. In case of negative values in the query and/or database vectors, the element-wise maximum can be replaced by an element-wise minimum for every index $j$ for which $q_j < 0$ . Unlike the summation technique, this handles negative-valued descriptors, albeit at the cost of more memory in order to store both element-wise maximum and element-wise minimum values for each pool.",
354
+ "bbox": [
355
+ 212,
356
+ 531,
357
+ 787,
358
+ 744
359
+ ],
360
+ "page_idx": 5
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "3 Comparison to other Group Testing Methods for NN Search",
365
+ "text_level": 1,
366
+ "bbox": [
367
+ 212,
368
+ 762,
369
+ 769,
370
+ 797
371
+ ],
372
+ "page_idx": 5
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "GT algorithms of different flavors have been applied to the NN search problem in [21, 29, 36]. A detailed description of these techniques is presented in the",
377
+ "bbox": [
378
+ 212,
379
+ 808,
380
+ 787,
381
+ 840
382
+ ],
383
+ "page_idx": 5
384
+ },
385
+ {
386
+ "type": "page_number",
387
+ "text": "6",
388
+ "bbox": [
389
+ 217,
390
+ 114,
391
+ 228,
392
+ 126
393
+ ],
394
+ "page_idx": 5
395
+ },
396
+ {
397
+ "type": "header",
398
+ "text": "H. Shah et al.",
399
+ "bbox": [
400
+ 271,
401
+ 114,
402
+ 364,
403
+ 126
404
+ ],
405
+ "page_idx": 5
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "supplemental material at [13, Sec. 2]. Compared to these three afore-mentioned techniques, our method is exact, with the same accuracy as exhaustive search. The methods [21, 29, 36] require choice of various hyper-parameters ( $R$ , the number of backpropagation steps, for [36]; sparse coding parameters in [29]; bloom filter and hash function parameters ( $B, R, m, L$ ) in [21] - see [13, Sec. 2]) for which there is no clear data-driven selection procedure. Our method, however, requires no parameter tuning. In experiments, we have observed a speed up of more than ten-fold in querying time with our method as compared to exhaustive search on some datasets. Like [36], and unlike [21, 29], our method does have a large memory requirement, as we require all pools to be in memory. Some techniques such as [21] require the nearest neighbors to be significantly more similar than all other members of $\\mathcal{D}$ (let us call this condition $\\mathcal{C}1$ ). Our method does not have such a requirement. However, our method will perform more efficiently for queries for which a large number of similarity values turn out to be small, and only a minority are above the threshold $\\rho$ (let us call this condition $\\mathcal{C}2$ ). In our experimental study on diverse datasets, we have observed that $\\mathcal{C}2$ is true always. On the other hand, $\\mathcal{C}1$ does not hold true in a large number of cases, as also reported in [21, Sec. 5.3].",
410
+ "bbox": [
411
+ 212,
412
+ 145,
413
+ 787,
414
+ 417
415
+ ],
416
+ "page_idx": 6
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "We also experimented with applying the latest developments in the compressed sensing (CS) literature [38] (which is closely related to GT) to the approximate NN search problem, albeit unsuccessfully. The theoretical reasons for the failure of the latest CS techniques for NN search are described in [13, Sec. 3].",
421
+ "bbox": [
422
+ 212,
423
+ 417,
424
+ 787,
425
+ 481
426
+ ],
427
+ "page_idx": 6
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "4 Experimental Results",
432
+ "text_level": 1,
433
+ "bbox": [
434
+ 215,
435
+ 503,
436
+ 460,
437
+ 522
438
+ ],
439
+ "page_idx": 6
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "In this section, we present experimental results conducted in two settings: $(i)$ Non-streaming setting with a static database, and $(ii)$ Streaming setting with incremental additions of new vectors to the database. In both the settings, we tested our algorithms on the following publicly available image datasets, of which the first two are widely used in retrieval and NN search problems: $(i)$ MIRFLICKR, a set of 1 million (1M) images from the MIRFLICKR dataset (subset of images from Flickr) available at [11], with an additional 6K images from the Paris dataset available at [12], as followed in [36]; $(ii)$ ImageNet, a set of 1M images used in the ImageNet Object Localization Challenge, available at [2]; $(iii)$ IMDB-Wiki, a set of all 500K images from the IMDB-Wiki face image dataset from [9]; $(iv)$ InstaCities, a set of 1M images of 10 large cities [10]. Although, we have worked with image datasets, our method is equally applicable to any other modalities such as speech, genomics, etc.",
444
+ "bbox": [
445
+ 212,
446
+ 537,
447
+ 787,
448
+ 734
449
+ ],
450
+ "page_idx": 6
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "In the following, we denote a query image by $I_{q}$ . For every dataset containing images $\\{I_{i}\\}_{i = 1}^{N}$ , feature vectors $\\{f_i\\}_{i = 1}^N$ were extracted as follows: First, each image $I_{i}$ was passed through the popular VGGNet [37] (as its features are known to be useful for building good perceptual metrics [39]) to obtain intermediate feature vector $f_{i}^{\\prime}$ . Second, a softmax-based feature vector $f_{i}$ of dimension $d = 1000$ , corresponding to the 1000 classes in ImageNet, was extracted further from the VGGNet output vector $f_{i}^{\\prime}$ . In our experiments, we observed",
455
+ "bbox": [
456
+ 212,
457
+ 734,
458
+ 787,
459
+ 842
460
+ ],
461
+ "page_idx": 6
462
+ },
463
+ {
464
+ "type": "header",
465
+ "text": "Group Testing for NN Search",
466
+ "bbox": [
467
+ 532,
468
+ 114,
469
+ 730,
470
+ 128
471
+ ],
472
+ "page_idx": 6
473
+ },
474
+ {
475
+ "type": "page_number",
476
+ "text": "7",
477
+ "bbox": [
478
+ 774,
479
+ 116,
480
+ 784,
481
+ 126
482
+ ],
483
+ "page_idx": 6
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "that the softmax-based features yielded superior retrieval recall (defined as # points retrieved belonging to the same class as the query point / # points of the same class as the query point) as compared to the baseline VGGNet features, with exhaustive search on different datasets (see [13, Table 1] for more details), even on those datasets which are different from ImageNet. Higher recall is particularly beneficial for NN search application in scenarios such as image plagiarism detection. The feature vectors were all non-negative and were subsequently unit-normalized. For every dataset, NN search was carried out using different methods (see below) on the same unit-normalized feature vectors extracted from 10,000 query images. That is, the aim was to efficiently identify those indices $i \\in \\{1,2,\\dots,N\\}$ for which the dot products between $\\mathbf{q}$ (the feature vector of query image $I_{\\mathbf{q}}$ ) and $\\mathbf{f}_i$ (both feature vectors unit-normalized) exceeded some specified threshold $\\rho$ . For all datasets, the intrinsic dimensionality was computed using the number of singular values of the $d \\times N$ data matrix that accounted for 99% of its Frobenius norm. The intrinsic dimensionality for all datasets was more than 200 (for $d = 1000$ ).",
488
+ "bbox": [
489
+ 212,
490
+ 145,
491
+ 787,
492
+ 388
493
+ ],
494
+ "page_idx": 7
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "Our binary splitting approach, using pool creation with summation (OUR-SUM) and element-wise maximum (OUR-MAX), was compared to the following recent and popular techniques: (i) Exhaustive search (ExH) through the entire database, for every query image; (ii) The recent GT-based technique from [21], known as FLINNG (Filters to Identify Near-Neighbor Groups), using code from [3]; (iii) The popular randomized KD-tree and K-means based technique FLANN for approximate NN search [33], using code from [7] with default parameters; (iv) The FALCONN technique from [15] which uses multi-probe LSH, using the code from [4]; (v) FALCONN++ [34], an enhanced version of FALCONN which filters out potentially distant points from any hash bucket before querying using code from [5]; (vi) IVF, the speedy inverted multi-index technique implemented in the highly popular FAISS library from Meta/Facebook [1, 16]; (vii) HNSW, a graph-based technique also used in [1]; (viii) The SCANN library [6, 24] which implements an anisotropic vector quantization (KMeans) algorithm. Our methods have no hyperparameters, but for all competing methods, results are reported by tuning hyperparameters so as to maximize the recall (defined below) - see [13, Sec. 5] for more details.",
499
+ "bbox": [
500
+ 212,
501
+ 392,
502
+ 787,
503
+ 648
504
+ ],
505
+ "page_idx": 7
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "We did not compare with the GT-based techniques from [36] and [29] as we could not find full publicly available implementations for these. Moreover, the technique from [21] is claimed to outperform those in [36] and [29]. We did implement the algorithm from [36], but it yielded significantly large query times. This may be due to subtle implementation differences in the way image lists are re-ranked in each of the $R$ iterations of their algorithm (see Sec. 3). In any case, our method produces $100\\%$ recall and precision, unlike [29, 36].",
510
+ "bbox": [
511
+ 212,
512
+ 652,
513
+ 787,
514
+ 760
515
+ ],
516
+ "page_idx": 7
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "Non-streaming Setting: The different methods are compared in terms of Mean Query Time (MQT), Mean Precision (MP) and Mean Recall (MR) for 10K queries as reported in Table 1. The similarity threshold $(\\rho)$ chosen for this setting is 0.8. The recall is defined as as #true positives/ (#true positives + #false negatives). The precision is defined as # true positives/ (#true positives+",
521
+ "bbox": [
522
+ 212,
523
+ 763,
524
+ 787,
525
+ 840
526
+ ],
527
+ "page_idx": 7
528
+ },
529
+ {
530
+ "type": "page_number",
531
+ "text": "8",
532
+ "bbox": [
533
+ 217,
534
+ 114,
535
+ 228,
536
+ 126
537
+ ],
538
+ "page_idx": 7
539
+ },
540
+ {
541
+ "type": "header",
542
+ "text": "H. Shah et al.",
543
+ "bbox": [
544
+ 271,
545
+ 114,
546
+ 364,
547
+ 126
548
+ ],
549
+ "page_idx": 7
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "# false positives). For each dataset, we have also mentioned the average number of neighbours $(\\hat{k})$ having similarity greater than $\\rho = 0.8$ . The cumulative sums in Eqn. 1 for OUR-SUM and the cumulative element-wise maximums for OUR-MAX were computed offline. The query implementation was done in $\\mathrm{C}++$ with the highest level of optimization in the $\\mathrm{g}++$ compiler. The codes for FLINNG, FALCONN++, SCANN and HNSW operate in the KNN search mode, as opposed to a range-based query for OUR-SUM, OUR-MAX, FALCONN and IVF, for which we set $\\rho = 0.8$ . The FLANN method has code support for both KNN and range-based queries, which we refer to as FLANN-K and FLANN-R respectively. For all KNN-based methods, we gave an appropriate $K$ as input, such that $K$ ground truth neighbors satisfy the similarity threshold of $\\rho$ . The time taken to compute $K$ was not included in the query times reported for the KNN-based methods. All query times are reported for an Intel(R) Xeon(R) server with CPU speed 2.10GHz and 128 GB RAM. For all methods, the computed query times did not count the time taken to compute the feature vector for the query image.",
554
+ "bbox": [
555
+ 212,
556
+ 145,
557
+ 787,
558
+ 375
559
+ ],
560
+ "page_idx": 8
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Streaming Setting: We now consider experiments in a streaming setting where new vectors are added to the database on the fly, i.e. the database is modified incrementally. In our experimental setting, $80\\%$ of the full database was initially available to all algorithms for index creation. New points were incrementally added to the database, and after addition of 100 new points, a search query was fired. This process was carried out until the entire database was loaded into memory. The query images were created by introducing controlled perturbations such as dither and blur to images existing in the database (refer to [13] for more details). The similarity threshold for this setting is chosen to be $\\rho = 0.9$ . Note that this setting is analogous to a typical image plagiarism detection setting, wherein (a) the database is updated with insertion of new points (without deletion) and requires fetching high similarity vectors, and (b) the submitted images could be subtly manipulated to escape plagiarism detection. High recall is desirable in such applications.",
565
+ "bbox": [
566
+ 212,
567
+ 378,
568
+ 787,
569
+ 589
570
+ ],
571
+ "page_idx": 8
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "The only update required to OUR-SUM for insertion of $n_s$ new points will be to produce $n_s$ extra cumulative sums as in Eqn. 1 for a cost of $O(dn_s)$ . For comparison, we have selected only those algorithms that include methods for the addition of new points without necessitating the rebuilding of the entire index from scratch. These include EXH, IVF, HNSW and FLANN-R. Table 2 reports the initial Index Build Time (IBT) for 80% of the database, Mean Insertion Time (MIT) for new points, besides MQT, MP and MR.",
576
+ "bbox": [
577
+ 212,
578
+ 594,
579
+ 787,
580
+ 699
581
+ ],
582
+ "page_idx": 8
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "Discussion of Results on Static Datasets (Table 1): We observe that OUR-SUM yields lower MQT on most datasets as compared to most other techniques, and that too with a guarantee of $100\\%$ precision and recall. FALCONN produces higher query times than OUR-SUM or OUR-MAX and at the loss of some recall. FALCON++ produces $100\\%$ precision and recall but with much higher query times than OUR-SUM or OUR-MAX. FLINNG and FLANN-K are efficient, but have significantly lower precision and recall than OUR-SUM with many of the retrieved dot products being significantly lower than the chosen $\\rho$ . FLANN-R yields very low recall despite its excellent precision and query time.",
587
+ "bbox": [
588
+ 212,
589
+ 704,
590
+ 787,
591
+ 839
592
+ ],
593
+ "page_idx": 8
594
+ },
595
+ {
596
+ "type": "header",
597
+ "text": "Group Testing for NN Search",
598
+ "bbox": [
599
+ 532,
600
+ 114,
601
+ 730,
602
+ 128
603
+ ],
604
+ "page_idx": 8
605
+ },
606
+ {
607
+ "type": "page_number",
608
+ "text": "9",
609
+ "bbox": [
610
+ 774,
611
+ 116,
612
+ 784,
613
+ 126
614
+ ],
615
+ "page_idx": 8
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "HNSW produces higher query times in cases where the number of neighbors is large with some loss of recall. The closest competitors to OUR-SUM are SCANN and IVF, but they do not guarantee $100\\%$ precision and recall. In addition, we note that as reported in [24, Fig. 3a], the accuracy of the dot-products retrieved by SCANN will depend on the chosen bit-rate, i.e. the chosen number of cluster centers in KMeans, whereas OUR-SUM has no such dependencies or parameter choice. This is a major conceptual advantage of OUR-SUM over SCANN (also see the 'Streaming' setting below). As compared to exhaustive search, OUR-SUM produces a speed gain between 4 to 120 depending on the dataset. OUR-SUM outperforms OUR-MAX in terms of query time, but it is important note that OUR-MAX is capable of handling negative-valued descriptors, although we have not experimented with it in this paper.",
620
+ "bbox": [
621
+ 212,
622
+ 146,
623
+ 787,
624
+ 328
625
+ ],
626
+ "page_idx": 9
627
+ },
628
+ {
629
+ "type": "table",
630
+ "img_path": "images/221bbe78709c46d1928f4534d43d29501e321afd114ddc2c15c155d7635d667a.jpg",
631
+ "table_caption": [],
632
+ "table_footnote": [],
633
+ "table_body": "<table><tr><td></td><td>Db.</td><td>OUR-S</td><td>OUR-M</td><td>IVF</td><td>FALC</td><td>FLANN-R</td><td>FALC++</td><td>FLINNG</td><td>FLANN-K</td><td>SCANN</td><td>HNSW</td><td>EXH</td></tr><tr><td>MQT</td><td>MIRFL.</td><td>54.0</td><td>81</td><td>94</td><td>302</td><td>1</td><td>509</td><td>62</td><td>54</td><td>23</td><td>66</td><td>1222</td></tr><tr><td>MP</td><td>(ˆ≈1.7K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>1.0</td><td>1.0</td><td>0.268</td><td>0.743</td><td>0.996</td><td>0.959</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.997</td><td>0.954</td><td>0.323</td><td>1.0</td><td>0.268</td><td>0.743</td><td>0.996</td><td>0.959</td><td>1.0</td></tr><tr><td>MQT</td><td>ImgN.</td><td>4.9</td><td>7</td><td>103</td><td>179</td><td>2</td><td>385</td><td>119</td><td>40</td><td>23</td><td>9</td><td>1276</td></tr><tr><td>MP</td><td>(ˆ≈0.9K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>0.372</td><td>0.310</td><td>0.998</td><td>0.965</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.997</td><td>0.958</td><td>0.217</td><td>1.0</td><td>0.372</td><td>0.310</td><td>0.998</td><td>0.965</td><td>1.0</td></tr><tr><td>MQT</td><td>IMDB.</td><td>98.8</td><td>249</td><td>49</td><td>415</td><td>1.0</td><td>739</td><td>46</td><td>98</td><td>60</td><td>1076</td><td>800</td></tr><tr><td>MP</td><td>(ˆ≈7K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>1.0</td><td>1.0</td><td>0.351</td><td>0.656</td><td>0.997</td><td>0.985</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.995</td><td>0.995</td><td>0.191</td><td>1.0</td><td>0.351</td><td>0.656</td><td>0.997</td><td>0.985</td><td>1.0</td></tr><tr><td>MQT</td><td>InstaC.</td><td>58.0</td><td>110</td><td>90</td><td>330</td><td>1</td><td>601</td><td>57</td><td>61</td><td>25</td><td>298</td><td>1174</td></tr><tr><td>MP</td><td>(ˆ≈3K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>≈1.0</td><td>1.0</td><td>0.293</td><td>0.745</td><td>0.996</td><td>0.952</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.990</td><td>0.964</td><td>0.324</td><td>1.0</td><td>0.293</td><td>0.745</td><td>0.996</td><td>0.952</td><td>1.0</td></tr></table>",
634
+ "bbox": [
635
+ 230,
636
+ 354,
637
+ 767,
638
+ 507
639
+ ],
640
+ "page_idx": 9
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "Table 1: Comparison of mean query time (MQT, ↓) in milliseconds, and mean precision (MP, ↑) and mean recall (MR, ↑) values for our method with summation pooling (OUR-S.); our method with max pooling (OUR-M.); IVF from the FAISS package [1,16]; HNSW from the FAISS package [1,32]; FALCONN [4,15]; FALCONN+ [34]; FLINNG [21]; FLANN [33] with KNN-based (FLANN-K) and range-based queries (FLANN-R); SCANN [6] and exhaustive search (EXH). For all methods $\\rho = 0.8$ , see text for more details. $\\hat{k} \\triangleq \\mathrm{avg}$ number of database vectors satisfying $\\pmb{q}^t\\pmb{f}_i \\geq \\rho$ .",
645
+ "bbox": [
646
+ 212,
647
+ 512,
648
+ 787,
649
+ 609
650
+ ],
651
+ "page_idx": 9
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "Discussion of Results on Datasets with Streaming (Table 2): It is clear that the Index Build Time (IBT) and Mean Insertion Time (MIT) of our method clearly surpasses that of all other methods across all datasets. Furthermore, the space taken for storing the index is only $O(Nd)$ in our method. Since OUR-SUM only has to compute cumulative sums for the newly inserted points, the index update time is very low when compared with other methods. FLANN-R consistently produces lower mean query times, but this comes at the cost of low recall and high insertion time, making it unusable for streaming applications. Similarly, HNSW shows significant gains in MQT for MIRFLICKR, ImageNet and InstaCities datasets, but exhibits a large insertion time across all datasets.",
656
+ "bbox": [
657
+ 212,
658
+ 627,
659
+ 787,
660
+ 777
661
+ ],
662
+ "page_idx": 9
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Analysis of Pruning (Non-Streaming): For each dataset, we also computed the number of pools that got rejected in every 'round' of binary splitting (because the dot product with the query image fell below threshold $\\rho$ ), beginning from round 0 to $\\lceil \\log_2N\\rceil$ . (Referring to Alg. 1, we see that the procedure im",
667
+ "bbox": [
668
+ 212,
669
+ 779,
670
+ 787,
671
+ 840
672
+ ],
673
+ "page_idx": 9
674
+ },
675
+ {
676
+ "type": "page_number",
677
+ "text": "10",
678
+ "bbox": [
679
+ 217,
680
+ 114,
681
+ 235,
682
+ 126
683
+ ],
684
+ "page_idx": 9
685
+ },
686
+ {
687
+ "type": "header",
688
+ "text": "H. Shah et al.",
689
+ "bbox": [
690
+ 271,
691
+ 114,
692
+ 364,
693
+ 126
694
+ ],
695
+ "page_idx": 9
696
+ },
697
+ {
698
+ "type": "table",
699
+ "img_path": "images/e89d6b95d27477e901ac73bbf0149e58a0ccde8f974122cb0072e2a333fafd3e.jpg",
700
+ "table_caption": [],
701
+ "table_footnote": [],
702
+ "table_body": "<table><tr><td colspan=\"5\">Index Build Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>3789</td><td>2000</td><td>3774</td><td>3765</td></tr><tr><td>EXH.</td><td>NA</td><td>NA</td><td>NA</td><td>NA</td></tr><tr><td>IVF</td><td>15000</td><td>9960</td><td>15410</td><td>18722</td></tr><tr><td>HNSW</td><td>7e5</td><td>2e5</td><td>4e5</td><td>4e5</td></tr><tr><td>FLANN-R</td><td>2e6</td><td>9e5</td><td>2e6</td><td>2e6</td></tr></table>",
703
+ "bbox": [
704
+ 217,
705
+ 143,
706
+ 464,
707
+ 242
708
+ ],
709
+ "page_idx": 10
710
+ },
711
+ {
712
+ "type": "table",
713
+ "img_path": "images/9f80831cf9b7f4a834f6a5539c52117b78235914743b7a2367428e6b08303052.jpg",
714
+ "table_caption": [],
715
+ "table_footnote": [],
716
+ "table_body": "<table><tr><td colspan=\"5\">Average Insertion Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>0.28</td><td>0.29</td><td>0.28</td><td>0.29</td></tr><tr><td>EXH.</td><td>~ 0</td><td>~ 0</td><td>~ 0</td><td>~ 0</td></tr><tr><td>IVF</td><td>2.2</td><td>2.7</td><td>2.2</td><td>2.7</td></tr><tr><td>HNSW</td><td>236</td><td>239</td><td>222</td><td>219</td></tr><tr><td>FLANN-R</td><td>42</td><td>53</td><td>27</td><td>26</td></tr></table>",
717
+ "bbox": [
718
+ 526,
719
+ 143,
720
+ 772,
721
+ 242
722
+ ],
723
+ "page_idx": 10
724
+ },
725
+ {
726
+ "type": "table",
727
+ "img_path": "images/d6cc34715b1f0a2b16ca18331bd09c608bca06848cc82939cbcf5128cb80855f.jpg",
728
+ "table_caption": [],
729
+ "table_footnote": [],
730
+ "table_body": "<table><tr><td colspan=\"5\">Mean Query Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>18</td><td>121</td><td>86</td><td>115</td></tr><tr><td>EXH.</td><td>609</td><td>315</td><td>607</td><td>605</td></tr><tr><td>IVF</td><td>183</td><td>67</td><td>145</td><td>132</td></tr><tr><td>HNSW</td><td>10</td><td>168</td><td>13</td><td>70</td></tr><tr><td>FLANN-R</td><td>6</td><td>4</td><td>5</td><td>5</td></tr></table>",
731
+ "bbox": [
732
+ 217,
733
+ 260,
734
+ 462,
735
+ 359
736
+ ],
737
+ "page_idx": 10
738
+ },
739
+ {
740
+ "type": "table",
741
+ "img_path": "images/2326d20674c3106c669c2620d3a1464d71ff9d12cb38d7fb9ca764320ae019ac.jpg",
742
+ "table_caption": [],
743
+ "table_footnote": [],
744
+ "table_body": "<table><tr><td colspan=\"5\">Mean Precision ↑, Mean Recall ↑</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>1,1</td><td>1,1</td><td>1,1</td><td>1,1</td></tr><tr><td>EXH.</td><td>1,1</td><td>1,1</td><td>1,1</td><td>1,1</td></tr><tr><td>IVF</td><td>1,0.99</td><td>1,0.99</td><td>1,0.99</td><td>1,0.99</td></tr><tr><td>HNSW</td><td>0.96,0.96</td><td>0.98,0.98</td><td>0.97,0.97</td><td>0.97,0.97</td></tr><tr><td>FLANN-R</td><td>1,0.31</td><td>1,0.59</td><td>1,0.49</td><td>1,0.54</td></tr></table>",
745
+ "bbox": [
746
+ 470,
747
+ 260,
748
+ 777,
749
+ 359
750
+ ],
751
+ "page_idx": 10
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "Table 2: Streaming results: Index Build Time (IBT) for $80\\%$ of the database, mean insertion time (MIT) for new points, MQT, MP and MR. For IMDB, the number of insertion operations and search queries is $\\sim 700$ and $\\sim 1350$ respectively. For all other datasets, the numbers are $\\sim 1400$ and $\\sim 2600$ respectively.",
756
+ "bbox": [
757
+ 212,
758
+ 364,
759
+ 784,
760
+ 420
761
+ ],
762
+ "page_idx": 10
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "ponents an inorder traversal of the binary tree implicitly created during binary splitting. However the same tree can be traversed in a level-wise manner, and each level of the tree represents one 'round' of binary splitting.) The corresponding histograms for $\\rho \\geq 0.7$ are plotted in Fig. 2 of [13], for OUR-SUM. As can be seen, a large number of rejections occur from round 14 onward in MIRFLICKR and InstaCities, from round 11 onward in ImageNet, and from round 16 onward in IMDB-Wiki. As a result, the MQT is lowest for ImageNet than for other datasets, and also much lower for MIRFLICKR and InstaCities than for IMDB-Wiki. A similar set of histograms are plotted for OUR-MAX in Fig. 3 of [13]. Furthermore, we plotted histograms of dot products between every query feature vector and every gallery feature vector, across 10,000 queries for all datasets. These are plotted in Fig. 1, clearly indicating that the vast majority of dot products lie in the bin (0,0.1] or (0.1,0.2] (also see Fig. 1 of [13], which shows negative logarithms of the histograms for clearer visualization of values close to 0). This supports the hypothesis that most items in $\\mathcal{D}$ are dissimilar to a query vector. However, as seen in Fig. 1, the percentage of dot products in the (0,0.1] bin is much larger for ImageNet, MIRFLICKR and InstaCities than for IMDB-Wiki. This tallies with the significantly larger speedup obtained by binary splitting (both OUR-SUM and OUR-MAX) for ImageNet, MIRFLICKR and InstaCities as compared to IMDB-Wiki - see Table 1.",
767
+ "bbox": [
768
+ 212,
769
+ 431,
770
+ 787,
771
+ 734
772
+ ],
773
+ "page_idx": 10
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "5 Theoretical Analysis",
778
+ "text_level": 1,
779
+ "bbox": [
780
+ 215,
781
+ 758,
782
+ 450,
783
+ 777
784
+ ],
785
+ "page_idx": 10
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "For the problem of binary GT, different variants of the binary splitting approach have been shown to require just $s \\log_2 N + O(s)$ or $s \\log_2 (N / s) + O(s)$ tests, depending on some implementation details [14, Theorems 1.2 and 1.3]. Here $s$",
790
+ "bbox": [
791
+ 212,
792
+ 794,
793
+ 785,
794
+ 840
795
+ ],
796
+ "page_idx": 10
797
+ },
798
+ {
799
+ "type": "header",
800
+ "text": "Group Testing for NN Search",
801
+ "bbox": [
802
+ 532,
803
+ 114,
804
+ 730,
805
+ 128
806
+ ],
807
+ "page_idx": 10
808
+ },
809
+ {
810
+ "type": "page_number",
811
+ "text": "11",
812
+ "bbox": [
813
+ 767,
814
+ 114,
815
+ 782,
816
+ 126
817
+ ],
818
+ "page_idx": 10
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "stands for the number of defectives out of $N$ . However in binary GT, a positive result on a pool necessarily implies that at least one of the participants was defective. In our application for NN search, a pool $\\mathbf{y}$ can produce $q^t\\mathbf{y} \\geq \\rho$ for query vector $\\mathbf{q}$ , even if none of the vectors that contributed to $\\mathbf{y}$ produce a dot product with $\\mathbf{q}$ that exceeds or equals $\\rho$ . Due to this important difference, the analysis from [14] does not apply in our situation. Furthermore, it is difficult to pin down a precise deterministic number of tests in our technique. Instead, we resort to a distributional assumption on each dot product $q^t\\mathbf{f}_i$ . We assume that these dot products are independently distributed as per a truncated normalized exponential (TNE) distribution:",
823
+ "bbox": [
824
+ 212,
825
+ 146,
826
+ 787,
827
+ 297
828
+ ],
829
+ "page_idx": 11
830
+ },
831
+ {
832
+ "type": "equation",
833
+ "text": "\n$$\np (x; \\lambda) = \\left\\{ \\begin{array}{l} \\frac {\\lambda e ^ {- \\lambda x}}{1 - e ^ {- \\lambda}}, \\text {f o r} 0 \\leq x \\leq 1. \\\\ 0, \\text {o t h e r w i s e .} \\end{array} \\right. \\tag {2}\n$$\n",
834
+ "text_format": "latex",
835
+ "bbox": [
836
+ 364,
837
+ 311,
838
+ 785,
839
+ 359
840
+ ],
841
+ "page_idx": 11
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "This distribution is obtained by truncating the well-known exponential distribution to the $[0,1]$ range and normalizing it so that it integrates to one. Larger the value of $\\lambda$ , the more rapid is the 'decay' in the probability of dot product values from 0 towards 1. Our empirical studies show that for softmax features, this is a reasonable model for dot product values commonly encountered in queries in image retrieval, as can be seen in Fig. 1 for all datasets we experimented with. Also, the best-fit $\\lambda$ values for MIRFLICKR, ImageNet, IMDB-Wiki and InstaCities are respectively 34, 57, 10, 30. The TNE model fit may not be perfect, but less than perfect adherence to the TNE model does not change the key message that will be conveyed in this section.",
846
+ "bbox": [
847
+ 212,
848
+ 369,
849
+ 787,
850
+ 521
851
+ ],
852
+ "page_idx": 11
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "Our aim now is to determine the probability that a pool $\\mathbf{y}$ with some $L$ participating vectors will produce a dot product value $\\mathbf{q}^t\\mathbf{y}$ below a threshold $\\rho$ . Note again that such a pool will get pruned away in binary splitting, and therefore we would like this probability to be high. Now, the $L$ individual dot-products (of $\\mathbf{q}$ with vectors that contributed to $\\mathbf{y}$ ) are independent and they are all distributed as per the TNE from Eqn. 2. The mean and variance of a TNE variable with parameter $\\lambda$ are respectively given by $\\left(1 / \\lambda + 1 / (1 - e^{\\lambda})\\right)$ and $\\left(1 / \\lambda^2 - e^{\\lambda} / (e^{\\lambda} - 1)^2\\right)$ . We now apply the central limit theorem (CLT), due to which we can conclude that $\\mathbf{q}^t\\mathbf{y}$ is (approximately) Gaussian distributed with a mean $\\mu \\triangleq L\\left(1 / \\lambda + 1 / (1 - e^{\\lambda})\\right)$ and variance $\\sigma^2 \\triangleq L\\left(1 / \\lambda^2 - e^{\\lambda} / (e^{\\lambda} - 1)^2\\right)$ . With this, we can easily compute $P(\\mathbf{q}^t\\mathbf{y} \\leq \\rho)$ given a value of $L$ and $\\rho$ . Our numerical experiments, illustrated in Fig. 3 of [13], reveal that this probability increases with $\\lambda$ and decreases as $L$ increases. This tallies with intuition, and supports the hypothesis that a larger number of pools will be pruned away in a given round if there is more rapid decrease in the probability of dot product values from 0 to 1.",
857
+ "bbox": [
858
+ 212,
859
+ 521,
860
+ 787,
861
+ 763
862
+ ],
863
+ "page_idx": 11
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "We are now equipped to determine the expected number of tests (dot products) to be computed per query, given such a TNE distribution for the dot products. Given a value of $\\rho$ , let us denote the probability that a pool with $L$ participants will get pruned away, by $p_L(\\rho)$ . For OUR-SUM, for any $L \\geq 6$ , the probability $p_L(\\rho)$ is computed using the TNE and CLT based method described",
868
+ "bbox": [
869
+ 212,
870
+ 763,
871
+ 787,
872
+ 840
873
+ ],
874
+ "page_idx": 11
875
+ },
876
+ {
877
+ "type": "page_number",
878
+ "text": "12",
879
+ "bbox": [
880
+ 217,
881
+ 114,
882
+ 235,
883
+ 126
884
+ ],
885
+ "page_idx": 11
886
+ },
887
+ {
888
+ "type": "header",
889
+ "text": "H. Shah et al.",
890
+ "bbox": [
891
+ 271,
892
+ 114,
893
+ 364,
894
+ 127
895
+ ],
896
+ "page_idx": 11
897
+ },
898
+ {
899
+ "type": "image",
900
+ "img_path": "images/14192e4a5dccb61294689e51aaa7c6929272944884be2aba0845ae2e46ebd88b.jpg",
901
+ "image_caption": [],
902
+ "image_footnote": [],
903
+ "bbox": [
904
+ 256,
905
+ 147,
906
+ 504,
907
+ 253
908
+ ],
909
+ "page_idx": 12
910
+ },
911
+ {
912
+ "type": "image",
913
+ "img_path": "images/3e564166b1ea154e28340fcf343df19886e168c3036cb2293043a5f057e4b8b2.jpg",
914
+ "image_caption": [],
915
+ "image_footnote": [],
916
+ "bbox": [
917
+ 506,
918
+ 148,
919
+ 751,
920
+ 253
921
+ ],
922
+ "page_idx": 12
923
+ },
924
+ {
925
+ "type": "image",
926
+ "img_path": "images/7b3d917770282117b5e68029ecb42d31164aed7dc6d1aef593c4f5399ae2799b.jpg",
927
+ "image_caption": [
928
+ "Fig. 1: Normalized histograms (bar graphs in blue), and best-fit exponential distribution approximations (red curves), of dot products between feature vectors of query images (10,000 in number) and all images of MIRFLICKR, ImageNet, IMDB-Wiki and InstaCities databases (left to right, top to bottom). Also see Fig. 1 of [13] for a plot of negative log of the histograms for clearer visualization of the smaller probability values."
929
+ ],
930
+ "image_footnote": [],
931
+ "bbox": [
932
+ 254,
933
+ 258,
934
+ 500,
935
+ 366
936
+ ],
937
+ "page_idx": 12
938
+ },
939
+ {
940
+ "type": "image",
941
+ "img_path": "images/d8e60e4297809732af3877e7e455a669b8b5a717bfef8ff2350325d95d839bc1.jpg",
942
+ "image_caption": [],
943
+ "image_footnote": [],
944
+ "bbox": [
945
+ 506,
946
+ 258,
947
+ 751,
948
+ 364
949
+ ],
950
+ "page_idx": 12
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "earlier. For $L < 6$ , the Gaussian distribution can be replaced by a truncated Erlang distribution, as the sum of independent exponential random variables follows an Erlang distribution. Even in this case, $P(\\pmb{q}^t\\pmb{y} \\leq \\rho)$ increases with $\\lambda$ and decreases with $L$ .",
955
+ "bbox": [
956
+ 212,
957
+ 488,
958
+ 787,
959
+ 547
960
+ ],
961
+ "page_idx": 12
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "In round 1, there is only one pool and it contains all $N$ vectors. It will get pruned away with probability $p_N(\\rho)$ , for a given fixed threshold $\\rho$ and fixed $\\lambda$ . The expected number of pools in round 2 will be $Q_2 \\triangleq 2(1 - p_N(\\rho))$ , each of which will be pruned away with probability $p_{N/2}(\\rho)$ . The factor 2 is because each pool gets split into two before sending it to the next round of binary splitting. The expected number of pools in round 3 will be $Q_3 \\triangleq 2(1 - p_{N/2}(\\rho))Q_2$ . Likewise, in the $k$ th round, the expected number of pools is $Q_k = 2(1 - p_{N/2^{k-2}}(\\rho))Q_{k-1}$ . Hence the expected number of tests per query in our approach will be given by:",
966
+ "bbox": [
967
+ 212,
968
+ 555,
969
+ 787,
970
+ 676
971
+ ],
972
+ "page_idx": 12
973
+ },
974
+ {
975
+ "type": "equation",
976
+ "text": "\n$$\nE (\\rho) \\triangleq 1 + \\frac {1}{2} \\sum_ {i = 2} ^ {\\lceil \\log_ {2} N + 1 \\rceil} Q _ {i}, \\tag {3}\n$$\n",
977
+ "text_format": "latex",
978
+ "bbox": [
979
+ 403,
980
+ 699,
981
+ 785,
982
+ 743
983
+ ],
984
+ "page_idx": 12
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "as there are at most $\\lceil \\log_2N + 1\\rceil$ rounds. The factor $\\frac{1}{2}$ is due to the fact that the number of tests (i.e. dot product computations) is always half the number of pools (see second para. of Sec. 2). The value of $E(\\rho)$ decreases with $\\lambda$ as $p_N(\\rho), p_{N/2}(\\rho), \\ldots, p_{N/2^{k-2}}(\\rho)$ all increase with $\\lambda$ . A similar analysis for OUR-MAX is presented in [13, Sec. 4].",
989
+ "bbox": [
990
+ 212,
991
+ 766,
992
+ 787,
993
+ 844
994
+ ],
995
+ "page_idx": 12
996
+ },
997
+ {
998
+ "type": "header",
999
+ "text": "Group Testing for NN Search",
1000
+ "bbox": [
1001
+ 532,
1002
+ 114,
1003
+ 730,
1004
+ 128
1005
+ ],
1006
+ "page_idx": 12
1007
+ },
1008
+ {
1009
+ "type": "page_number",
1010
+ "text": "13",
1011
+ "bbox": [
1012
+ 767,
1013
+ 114,
1014
+ 784,
1015
+ 126
1016
+ ],
1017
+ "page_idx": 12
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Our theoretical analysis depends on $\\lambda$ , but note that our algorithm is completely ag- nostic to $\\lambda$ and does not use it in any manner. For values of $\\rho \\in \\{0.7, 0.8, 0.9\\}$ , we compared the theoretically predicted average number of dot products $(E(\\rho))$ to the experimentally observed number for all datasets. These are presented in Tab. 3, where we observe that for MIRFLICKR, ImageNet and InstaCities, the theoretical number for OUR-SUM is generally greater than the empirical one. This is because the dot products for these datasets decay slightly faster than what is predicted by a TNE distribution, as can be seen in Fig. 1. Conversely, for IMDB-Wiki, the theoretical number for OUR-SUM is less than the empirical one because the dot products decay slower for this dataset than what is predicted by a TNE distribution. For OUR-MAX, the difference between empirical and theoretical values is larger, as explain in [13].",
1022
+ "bbox": [
1023
+ 212,
1024
+ 146,
1025
+ 517,
1026
+ 494
1027
+ ],
1028
+ "page_idx": 13
1029
+ },
1030
+ {
1031
+ "type": "table",
1032
+ "img_path": "images/3b9c6895063dc9efb2beed22abb20e8ea441eac416703047f776f3f8a79b8220.jpg",
1033
+ "table_caption": [],
1034
+ "table_footnote": [],
1035
+ "table_body": "<table><tr><td>Database</td><td></td><td></td><td></td></tr><tr><td>MIRFLICKR, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>51690</td><td>44194</td><td>37788</td></tr><tr><td>Empirical (Max)</td><td>75782</td><td>60752</td><td>47531</td></tr><tr><td>Theoretical (Sum)</td><td>63838</td><td>57553</td><td>50094</td></tr><tr><td>Theoretical U.B. (Max)</td><td>371672</td><td>270408</td><td>195140</td></tr><tr><td>ImageNet, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>13852</td><td>12339</td><td>10801</td></tr><tr><td>Empirical (Max)</td><td>6946</td><td>5713</td><td>4551</td></tr><tr><td>Theoretical (Sum)</td><td>34524</td><td>32603</td><td>31345</td></tr><tr><td>Theoretical U.B. (Max)</td><td>14160</td><td>6267</td><td>2775</td></tr><tr><td>IMDB-Wiki, N = 500K</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>160020</td><td>141290</td><td>125050</td></tr><tr><td>Empirical (Max)</td><td>240947</td><td>197370</td><td>158284</td></tr><tr><td>Theoretical (Sum)</td><td>113600</td><td>99552</td><td>87835</td></tr><tr><td>Theoretical U.B. (Max)</td><td>1426259</td><td>1336543</td><td>1249448</td></tr><tr><td>InstaCities, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>72729</td><td>62741</td><td>54125</td></tr><tr><td>Empirical (Max)</td><td>105122</td><td>85188</td><td>67441</td></tr><tr><td>Theoretical (Sum)</td><td>71021</td><td>63453</td><td>57944</td></tr><tr><td>Theoretical U.B. (Max)</td><td>566498</td><td>445181</td><td>346927</td></tr></table>",
1036
+ "bbox": [
1037
+ 526,
1038
+ 148,
1039
+ 803,
1040
+ 393
1041
+ ],
1042
+ "page_idx": 13
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Table 3: Empirically observed average and theoretically predicted expected number of dot products (Eqn. 3) for queries with $\\rho \\in \\{0.7,0.8,0.9\\}$ for different datasets. See explanation at the end of Sec. 5. Note that 'Sum' and 'Max' denote algorithms OUR-SUM and OUR-MAX respectively.",
1047
+ "bbox": [
1048
+ 524,
1049
+ 404,
1050
+ 789,
1051
+ 516
1052
+ ],
1053
+ "page_idx": 13
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "6 Conclusion",
1058
+ "text_level": 1,
1059
+ "bbox": [
1060
+ 215,
1061
+ 518,
1062
+ 359,
1063
+ 535
1064
+ ],
1065
+ "page_idx": 13
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "We have presented a simple and intuitive multi-round group testing approach for range-based near neighbor search. Our method outperforms exhaustive search by a large factor in terms of query time without losing accuracy, on datasets where query vectors are dissimilar to the vast majority of vectors in the gallery. The larger the percentage of dissimilar vectors, the greater is the speedup our algorithm will produce. Our technique has no tunable parameters. It is also easily applicable to situations where new vectors are dynamically added to an existing gallery, without requiring any expensive updates. Apart from this, our technique also has advantages in terms of accuracy of query results (especially recall) over many recent, state of the art methods. A significant limitation of our method is that it currently only supports cosine distances and is applicable only to databases with a sharp decay in feature similarity distribution, as in the case with softmax features. At present, a pool may produce a large dot product value with a query vector, even though many or even all the members of the pool are dissimilar to the query vector. Developing techniques to reduce the frequency of such situations, possibly using various LSH techniques, as well as testing on billion-scale datasets, are important avenues for future work. The implementation of our algorithms can be found at https://github.com/Harsh-Sensei/GroupTestingNN.",
1070
+ "bbox": [
1071
+ 212,
1072
+ 551,
1073
+ 789,
1074
+ 840
1075
+ ],
1076
+ "page_idx": 13
1077
+ },
1078
+ {
1079
+ "type": "page_number",
1080
+ "text": "14",
1081
+ "bbox": [
1082
+ 217,
1083
+ 114,
1084
+ 235,
1085
+ 126
1086
+ ],
1087
+ "page_idx": 13
1088
+ },
1089
+ {
1090
+ "type": "header",
1091
+ "text": "H. Shah et al.",
1092
+ "bbox": [
1093
+ 271,
1094
+ 114,
1095
+ 364,
1096
+ 126
1097
+ ],
1098
+ "page_idx": 13
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Acknowledgement: The authors thank the Amazon IIT Bombay AI-ML Initiative for support for the work in this paper.",
1103
+ "bbox": [
1104
+ 215,
1105
+ 146,
1106
+ 784,
1107
+ 176
1108
+ ],
1109
+ "page_idx": 14
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "References",
1114
+ "text_level": 1,
1115
+ "bbox": [
1116
+ 215,
1117
+ 204,
1118
+ 321,
1119
+ 220
1120
+ ],
1121
+ "page_idx": 14
1122
+ },
1123
+ {
1124
+ "type": "list",
1125
+ "sub_type": "ref_text",
1126
+ "list_items": [
1127
+ "1. https://github.com/facebookresearch/faiss 3, 8, 10",
1128
+ "2. https://www.kaggle.com/competitions/imagenet-object-localization-challenge/data7",
1129
+ "3. https://github.com/JoshEngels/FLINNG 8",
1130
+ "4. https://github.com/FALCONN-LIB/FALCONN 8, 10",
1131
+ "5. https://github.com/NinhPham/FalconLSF 8",
1132
+ "6. https://github.com/google-research/google-research/tree/master/scann8, 10",
1133
+ "7. FLANN - fast library for approximate nearest neighbors: wbia-pyflann 4.0.4. https://pypi.org/project/wbia-pyflann/8",
1134
+ "8. Generalized binary splitting algorithm. https://en.wikipedia.org/wiki/Group-testing#Generalised_binary-splitting_algorithm 5",
1135
+ "9. Imdb-wiki - 500k+ face images with age and gender labels. https://data.vision.ee.ethz.ch/cvl/rrrothe/imdb-wiki/7",
1136
+ "10. The InstaCities1M Dataset. https://gombru.github.io/2018/08/01/InstaCities1M/7",
1137
+ "11. MIRFLICKR download. https://press.liacs.nl/mirflickr/mirdownload.html 7",
1138
+ "12. Oxford and paris buildings dataset. https://www.kaggle.com/datasets/skylord/oxbuildings 7",
1139
+ "13. Supplemental material. Uploaded on conference portal 5, 6, 7, 8, 9, 11, 12, 13, 14",
1140
+ "14. Aldridge, M., Johnson, ., Scarlett, J.: Group testing: an information theory perspective. Foundations and Trends in Communications and Information Theory 15(3-4), 196-392 (2019) 3, 5, 11, 12",
1141
+ "15. Andoni, A., Razenshteyn, I.: Optimal data-dependent hashing for approximate near neighbors. In: Proceedings of the forty-seventh annual ACM symposium on Theory of computing. pp. 793-801 (2015) 2, 3, 8, 10",
1142
+ "16. Babenko, A., Lempitsky, V.: The inverted multi-index. IEEE Transactions on Pattern Analysis and Machine Intelligence 37(6), 1247-1260 (2014) 3, 8, 10",
1143
+ "17. Candès, E.J., Wakin, M.B.: An introduction to compressive sampling. IEEE signal processing magazine 25(2), 21-30 (2008) 3",
1144
+ "18. Davenport, M., Duarte, M., Eldar, Y., Kutyniok, G.: Introduction to compressed sensing. (2012) 3",
1145
+ "19. Dong, Y., Indyk, P., Razenshteyn, I., Wagner, T.: Learning space partitions for nearest neighbor search. In: ICLR (2019) 2",
1146
+ "20. Dorfman, R.: The detection of defective members of large populations. The Annals of mathematical statistics 14(4), 436-440 (1943) 3, 5",
1147
+ "21. Engels, J., Coleman, B., Shrivastava, A.: Practical near neighbor search via group testing. In: Advances in Neural Information Processing Systems. vol. 34, pp. 9950-9962 (2021) 3, 6, 7, 8, 10",
1148
+ "22. Fu, C., Xiang, C., Wang, C., Cai, D.: Fast approximate nearest neighbor search with the navigating spreading-out graph 12(5), 461-474 (2019) 2"
1149
+ ],
1150
+ "bbox": [
1151
+ 217,
1152
+ 239,
1153
+ 784,
1154
+ 839
1155
+ ],
1156
+ "page_idx": 14
1157
+ },
1158
+ {
1159
+ "type": "header",
1160
+ "text": "Group Testing for NN Search",
1161
+ "bbox": [
1162
+ 532,
1163
+ 114,
1164
+ 730,
1165
+ 128
1166
+ ],
1167
+ "page_idx": 14
1168
+ },
1169
+ {
1170
+ "type": "page_number",
1171
+ "text": "15",
1172
+ "bbox": [
1173
+ 767,
1174
+ 116,
1175
+ 785,
1176
+ 126
1177
+ ],
1178
+ "page_idx": 14
1179
+ },
1180
+ {
1181
+ "type": "list",
1182
+ "sub_type": "ref_text",
1183
+ "list_items": [
1184
+ "23. Ghosh, S., Agarwal, R., Rehan, M.A., Pathak, S., Agarwal, P., Gupta, Y., Consul, S., Gupta, N., Goenka, R., Rajwade, A., Gopalkrishnan, M.: A compressed sensing approach to pooled RT-PCR testing for COVID-19 detection. IEEE Open Journal of Signal Processing 2, 248-264 (2021) 3",
1185
+ "24. Guo, R., Sun, P., Lindgren, E., Geng, Q., Simcha, D., Chern, F., Kumar, S.: Accelerating large-scale inference with anisotropic vector quantization. In: International Conference on Machine Learning. pp. 3887-3896 (2020) 3, 8, 10",
1186
+ "25. Hajebi, K., Abbasi-Yadkori, Y., Shahbazi, H., Zhang, H.: Fast approximate nearest-neighbor search with k-nearest neighbor graph. In: IJCAI. pp. 1312-1317 (2011) 2",
1187
+ "26. Hastie, T., Tibshirani, R., Wainwright, M.: Statistical learning with sparsity: the lasso and generalizations. CRC press (2015) 3",
1188
+ "27. Hwang, F.: A method for detecting all defective members in a population by group testing. Journal of the American Statistical Association 67(339), 605-608 (1972) 5",
1189
+ "28. Indyk, P., Motwani, R.: Approximate nearest authoneighbors: towards removing the curse of dimensionality. In: STOC. p. 604-613 (1998) 2",
1190
+ "29. Iscen, A., Chum, O.: Local orthogonal-group testing. In: Proceedings of the European Conference on Computer Vision (ECCV). pp. 449-465 (2018) 3, 6, 7, 8",
1191
+ "30. Li, C.H.: A sequential method for screening experimental variables. Journal of the American Statistical Association 57(298), 455-477 3, 5",
1192
+ "31. Lv, Q., Josephson, W., Wang, Z., Charikar, M., Li, K.: Multi-probe LSH: efficient indexing for high-dimensional similarity search. In: Proceedings of the 33rd international conference on Very large data bases. pp. 950-961 (2007) 2",
1193
+ "32. Malkov, Y., Yashunin, D.: Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence 42(4), 824-836 (2018) 2, 10",
1194
+ "33. Muja, M., Lowe, D.: Scalable nearest neighbor algorithms for high dimensional data. IEEE Transactions on Pattern Analysis and Machine Intelligence 36(11), 2227-2240 (2014) 2, 3, 8, 10",
1195
+ "34. Pham, N., Liu, T.: Falcon++: A locality-sensitive filtering approach for approximate nearest neighbor search. In: Advances in Neural Information Processing Systems. vol. 35, pp. 31186-31198 (2022) 3, 8, 10",
1196
+ "35. Ram, P., Sinha, K.: Revisiting kd-tree for nearest neighbor search. In: SIGKDD. pp. 1378-1388 (2019) 2",
1197
+ "36. Shi, M., Furon, T., Jégou, H.: A group testing framework for similarity search in high-dimensional spaces. In: ACMM. pp. 407-416 (2014) 3, 6, 7, 8",
1198
+ "37. Simonyan, K., Zisserman, A.: Very deep convolutional networks for large-scale image recognition. In: International Conference on Learning Representations (2015) 7",
1199
+ "38. Vidyasagar, M.: An introduction to compressed sensing. SIAM (2019) 3, 7",
1200
+ "39. Zhang, R., Isola, P., Efros, A.A., Shechtman, E., Wang, O.: The unreasonable effectiveness of deep features as a perceptual metric. In: CVPR. pp. 586-595 (2018) 7"
1201
+ ],
1202
+ "bbox": [
1203
+ 215,
1204
+ 146,
1205
+ 785,
1206
+ 753
1207
+ ],
1208
+ "page_idx": 15
1209
+ },
1210
+ {
1211
+ "type": "page_number",
1212
+ "text": "16",
1213
+ "bbox": [
1214
+ 217,
1215
+ 114,
1216
+ 235,
1217
+ 126
1218
+ ],
1219
+ "page_idx": 15
1220
+ },
1221
+ {
1222
+ "type": "header",
1223
+ "text": "H. Shah et al.",
1224
+ "bbox": [
1225
+ 271,
1226
+ 114,
1227
+ 364,
1228
+ 126
1229
+ ],
1230
+ "page_idx": 15
1231
+ }
1232
+ ]
2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/60259d81-0140-404b-bad0-378f4d2302df_model.json ADDED
@@ -0,0 +1,1629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ [
3
+ {
4
+ "type": "title",
5
+ "bbox": [
6
+ 0.27,
7
+ 0.141,
8
+ 0.734,
9
+ 0.209
10
+ ],
11
+ "angle": 0,
12
+ "content": "Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection"
13
+ },
14
+ {
15
+ "type": "text",
16
+ "bbox": [
17
+ 0.302,
18
+ 0.235,
19
+ 0.7,
20
+ 0.252
21
+ ],
22
+ "angle": 0,
23
+ "content": "Harsh Shah\\(^{1}\\), Kashish Mittal\\(^{1}\\), and Ajit Rajwade\\(^{1}\\)"
24
+ },
25
+ {
26
+ "type": "text",
27
+ "bbox": [
28
+ 0.235,
29
+ 0.263,
30
+ 0.768,
31
+ 0.292
32
+ ],
33
+ "angle": 0,
34
+ "content": "Department of Computer Science & Engineering, Indian Institute of Technology Bombay"
35
+ },
36
+ {
37
+ "type": "text",
38
+ "bbox": [
39
+ 0.262,
40
+ 0.325,
41
+ 0.74,
42
+ 0.713
43
+ ],
44
+ "angle": 0,
45
+ "content": "Abstract. This work presents an adaptive group testing framework for the range-based high dimensional near neighbor search problem. Our method efficiently marks each item in a database as neighbor or non-neighbor of a query point, based on a cosine distance threshold without exhaustive search. Like other methods for large scale retrieval, our approach exploits the assumption that most of the items in the database are unrelated to the query. Unlike other methods, it does not assume a large difference between the cosine similarity of the query vector with the least related neighbor and that with the least unrelated non-neighbor. Following a multi-stage adaptive group testing algorithm based on binary splitting, we divide the set of items to be searched into half at each step, and perform dot product tests on smaller and smaller subsets, many of which we are able to prune away. We experimentally show that, using softmax-based features, our method achieves a more than ten-fold speed-up over exhaustive search with no loss of accuracy, on a variety of large datasets. Based on empirically verified models for the distribution of cosine distances, we present a theoretical analysis of the expected number of distance computations per query and the probability that a pool with a certain number of members will be pruned. Our method has the following features: (i) It implicitly exploits useful distributional properties of cosine distances unlike other methods; (ii) All required data structures are created purely offline; (iii) It does not impose any strong assumptions on the number of true near neighbors; (iv) It is adaptable to streaming settings where new vectors are dynamically added to the database; and (v) It does not require any parameter tuning. The high recall of our technique makes it particularly suited to plagiarism detection scenarios where it is important to report every database item that is sufficiently similar item to the query."
46
+ },
47
+ {
48
+ "type": "text",
49
+ "bbox": [
50
+ 0.262,
51
+ 0.726,
52
+ 0.694,
53
+ 0.74
54
+ ],
55
+ "angle": 0,
56
+ "content": "Keywords: near neighbor search, group testing, image retrieval"
57
+ },
58
+ {
59
+ "type": "title",
60
+ "bbox": [
61
+ 0.217,
62
+ 0.765,
63
+ 0.377,
64
+ 0.781
65
+ ],
66
+ "angle": 0,
67
+ "content": "1 Introduction"
68
+ },
69
+ {
70
+ "type": "text",
71
+ "bbox": [
72
+ 0.214,
73
+ 0.795,
74
+ 0.788,
75
+ 0.843
76
+ ],
77
+ "angle": 0,
78
+ "content": "Near neighbor (NN) search is a fundamental problem in machine learning, computer vision, image analysis and recommender systems. Consider a database \\(\\mathcal{D}\\) of \\(N\\) vectors given as \\(\\{\\pmb {f}_1,\\pmb {f}_2,\\dots ,\\pmb {f}_N\\}\\) where each \\(\\pmb {f}_i\\in \\mathbb{R}^d\\). Given a query vector"
79
+ }
80
+ ],
81
+ [
82
+ {
83
+ "type": "page_number",
84
+ "bbox": [
85
+ 0.218,
86
+ 0.116,
87
+ 0.23,
88
+ 0.127
89
+ ],
90
+ "angle": 0,
91
+ "content": "2"
92
+ },
93
+ {
94
+ "type": "header",
95
+ "bbox": [
96
+ 0.272,
97
+ 0.115,
98
+ 0.365,
99
+ 0.127
100
+ ],
101
+ "angle": 0,
102
+ "content": "H. Shah et al."
103
+ },
104
+ {
105
+ "type": "text",
106
+ "bbox": [
107
+ 0.214,
108
+ 0.146,
109
+ 0.788,
110
+ 0.224
111
+ ],
112
+ "angle": 0,
113
+ "content": "\\(\\pmb{q} \\in \\mathbb{R}^d\\), our aim is to determine all those vectors in \\(\\mathcal{D}\\) such that \\(\\mathrm{sim}(\\pmb{q}, \\pmb{f}_i) \\geq \\rho\\), where \\(\\mathrm{sim}(.,.)\\) denotes some similarity measure, and \\(\\rho\\) denotes some threshold on \\(\\mathrm{sim}\\). This is called a similarity measure based NN query. Another variant is the \\(K\\) nearest neighbor (KNN) search where the aim is to find the \\(K\\) most similar neighbors to \\(\\pmb{q}\\)."
114
+ },
115
+ {
116
+ "type": "text",
117
+ "bbox": [
118
+ 0.214,
119
+ 0.227,
120
+ 0.788,
121
+ 0.363
122
+ ],
123
+ "angle": 0,
124
+ "content": "A significant portion of the literature on NN search focuses on approximate methods, often resulting in less than perfect recall rates, i.e. many database images that are similar to the query image are not retrieved. This deficiency renders them unsuitable for applications requiring high recall, such as plagiarism detection. In such scenarios, the query vectors, such as images or music files, are compared to an existing database of similar entities, and all vectors exhibiting high similarity with the query need to be retrieved for plagiarism assessment. The failure to retrieve a near neighbor could potentially lead to unfair evaluation of submissions to photography or music competitions, or online forums."
125
+ },
126
+ {
127
+ "type": "text",
128
+ "bbox": [
129
+ 0.214,
130
+ 0.366,
131
+ 0.788,
132
+ 0.669
133
+ ],
134
+ "angle": 0,
135
+ "content": "Related Work on NN Search: There exists a large body of literature on approximate NN search in higher dimensions. One of the major contributions in this area is called Locality Sensitive Hashing (LSH) [28]. Here, a hashing function partitions the dataset into buckets, such that only close vectors are likely to be hashed to the same bucket. The LSH family of algorithms consists of many variants such as those involving multiple buckets per query vector, data-driven or machine learning based construction of LSH functions [15, 19], and count-based methods [31]. In general, LSH based methods are difficult to implement for very high dimensions owing to the curse of dimensionality in constructing effective hash tables. Dimensionality reduction algorithms can mitigate this issue to some extent, but they are themselves expensive to implement and incur some inevitable data loss. There is also significant research in graph-based methods for nearest neighbor (NN) search, as explored in [22,25,32]. These methods typically achieve high accuracy and efficient query times. However, they often need relatively high pre-processing times, making them less suitable for dynamic datasets that require frequent addition of new points. In addition, various randomized variants of KD-trees and priority search K-means trees have been investigated for efficient approximate NN search in high-dimensional spaces, as seen in [35] and [33]. Despite their efficiency, these approaches involve numerous parameters, which can complicate tuning, especially for large datasets."
136
+ },
137
+ {
138
+ "type": "text",
139
+ "bbox": [
140
+ 0.214,
141
+ 0.673,
142
+ 0.788,
143
+ 0.841
144
+ ],
145
+ "angle": 0,
146
+ "content": "Overview of Group Testing: In this work, we present a group testing (GT) based approach for the NN problem. We start by presenting a brief overview of the field of GT. Consider \\(N\\) items \\(\\{x_i\\}_{i=1}^N\\) (also called 'samples' in many references), out of which only a small number \\(s \\ll N\\) are 'defective'. We consider the \\(i\\)th item to be defective if \\(x_i = 1\\) and non-defective if \\(x_i = 0\\). GT involves testing a certain number of 'pools' (\\(m \\ll N\\)) to identify the defective items from \\(\\{x_i\\}_{i=1}^N\\). Each pool (also called 'group') is created by mixing together or combining subsets of the \\(N\\) items. Thus the \\(j\\)th pool (\\(j \\in [m]\\)) is represented as \\(y_j = \\bigvee_{i=1}^N A_{ji} x_i\\), where \\(\\bigvee\\) stands for bit-wise OR, and \\(\\mathbf{A} \\in \\{0,1\\}^{m \\times N}\\) is a binary pooling matrix where \\(A_{ji} = 1\\) if the \\(i\\)th item participates in the \\(j\\)th pool and 0 otherwise. GT has a rich literature dating back to the seminal 'Dorfman's"
147
+ }
148
+ ],
149
+ [
150
+ {
151
+ "type": "header",
152
+ "bbox": [
153
+ 0.536,
154
+ 0.115,
155
+ 0.732,
156
+ 0.129
157
+ ],
158
+ "angle": 0,
159
+ "content": "Group Testing for NN Search"
160
+ },
161
+ {
162
+ "type": "page_number",
163
+ "bbox": [
164
+ 0.775,
165
+ 0.117,
166
+ 0.785,
167
+ 0.127
168
+ ],
169
+ "angle": 0,
170
+ "content": "3"
171
+ },
172
+ {
173
+ "type": "text",
174
+ "bbox": [
175
+ 0.218,
176
+ 0.146,
177
+ 0.788,
178
+ 0.542
179
+ ],
180
+ "angle": 0,
181
+ "content": "method' [20] which is a popular two-round testing strategy. In the first round of Dorfman's method, some \\( N / K \\) pools, each consisting of \\( K \\) items, are tested. The items that participated in pools that test negative (i.e., pools that are deemed to contain no defective item) are declared non-defective, whereas all items that participated in the positive pools (i.e., pools that are deemed to contain at least one defective item) are tested individually in the second round. Theoretical analysis shows that for \\( s \\ll N \\), this method requires much fewer than \\( N \\) tests in the worst case. This algorithm was extended to some \\( r \\) rounds in [30], where positive groups are further divided into smaller groups, and individual testing is performed only in the \\( r \\)th round. The methods in [20,30] are said to be adaptive in nature, as the results of one round are given as input to the next one. The GT literature also contains a large number of non-adaptive algorithms that make predictions in a single round. A popular algorithm is called COMP or combinatorial orthogonal matching pursuit, which declares all items participating in a negative pool to be negative, and all the rest to be positive [14]. Many variants of COMP such as Noisy COMP (NCOMP) or Definite Defectives (DD) are also popular [14]. A popular class of non-adaptive GT algorithms [23] draw heavily from the compressed sensing (CS) literature [17, 38]. Such algorithms can consider quantitative information for each \\( \\{x_i\\}_{i=1}^N \\) so that each \\( x_i \\in \\mathbb{R} \\), and every pool \\( y_j \\) also gives a real-valued result. The pooling matrix \\( \\mathbf{A} \\) remains binary, and we have the relation \\( \\forall j \\in [m], y_j = \\sum_{i=1}^{N} A_{ji} x_i \\). Given \\( \\{y_j\\}_{j=1}^m \\) and \\( \\mathbf{A} \\), the unknown vector \\( \\mathbf{x} \\) can be recovered using efficient convex optimization methods such as the LASSO given by \\( \\hat{\\mathbf{x}} = \\operatorname{Argmin}_\\mathbf{x} \\| \\mathbf{y} - \\mathbf{A}\\mathbf{x} \\|_2^2 + \\lambda \\| \\mathbf{x} \\|_1 \\), where \\( \\lambda \\) is a regularization parameter [26]. As proved in [18, 26], the LASSO estimator produces provably accurate estimates of \\( \\mathbf{x} \\) given a sufficient number of measurements (or pools) in \\( \\mathbf{y} \\) and a carefully designed matrix \\( \\mathbf{A} \\)."
182
+ },
183
+ {
184
+ "type": "text",
185
+ "bbox": [
186
+ 0.218,
187
+ 0.553,
188
+ 0.788,
189
+ 0.841
190
+ ],
191
+ "angle": 0,
192
+ "content": "Overview of our work: GT algorithms have been applied to the NN search problem recently in [21, 29, 36]. However in these papers, the nearest neighbor queries are of an approximate nature, i.e. the results may contain a number of vectors which are not near neighbors of the query vector \\( \\mathbf{q} \\), and/or may miss some genuine near neighbors. On the other hand, we focus on accurate query results with good computational efficiency in practice. Our approach is based on an adaptive GT approach called binary splitting. Like existing GT based algorithms such as [21, 29, 36], our approach is also based on the assumption that in high-dimensional NN search, most vectors in the database \\( \\mathcal{D} \\) are dissimilar to a query vector \\( \\mathbf{q} \\), and very few vectors qualify as near neighbors. However, our method does not require the distance between the most unrelated neighbor and the most closely related non-neighbor to be large, unlike [21]. Additionally, many existing approaches [1, 15, 16, 21, 24, 29, 33, 34, 36] require parameter tuning in a manner that is not fully data driven. It is also a tedious process for large databases, particularly when dealing with algorithms with large index building times. Moreover, algorithms with large index building times or those unable to efficiently handle the addition of new points are ill-suited for streaming settings. In this work, we present a range-based near neighbor search algorithm in high dimensions built on a group testing framework that has the following appealing"
193
+ }
194
+ ],
195
+ [
196
+ {
197
+ "type": "page_number",
198
+ "bbox": [
199
+ 0.218,
200
+ 0.116,
201
+ 0.23,
202
+ 0.127
203
+ ],
204
+ "angle": 0,
205
+ "content": "4"
206
+ },
207
+ {
208
+ "type": "header",
209
+ "bbox": [
210
+ 0.272,
211
+ 0.115,
212
+ 0.365,
213
+ 0.127
214
+ ],
215
+ "angle": 0,
216
+ "content": "H. Shah et al."
217
+ },
218
+ {
219
+ "type": "text",
220
+ "bbox": [
221
+ 0.214,
222
+ 0.147,
223
+ 0.788,
224
+ 0.237
225
+ ],
226
+ "angle": 0,
227
+ "content": "properties for softmax-based feature descriptors: \\((i)\\) low index building time, \\((ii)\\) perfect precision and recall without exhaustive search, \\((iii)\\) no parameter tuning, \\((iv)\\) low time complexity \\((\\mathcal{O}(1))\\) for addition of new vectors making the algorithm suitable for streaming tasks, and \\((v)\\) a unique method of incorporating distributional properties of the similarity values between query and database vectors into the search process."
228
+ },
229
+ {
230
+ "type": "text",
231
+ "bbox": [
232
+ 0.214,
233
+ 0.238,
234
+ 0.788,
235
+ 0.314
236
+ ],
237
+ "angle": 0,
238
+ "content": "Organization of the paper: The core method is presented in Sec. 2. We present detailed analytical comparisons with existing GT-based techniques for NN search in Sec. 3. Experimental results and comparisons to a large number of recent NN search methods are presented in Sec. 4. A theoretical analysis of our approach is presented in Sec. 5. We conclude in Sec. 6."
239
+ },
240
+ {
241
+ "type": "title",
242
+ "bbox": [
243
+ 0.216,
244
+ 0.338,
245
+ 0.473,
246
+ 0.356
247
+ ],
248
+ "angle": 0,
249
+ "content": "2 Description of Method"
250
+ },
251
+ {
252
+ "type": "text",
253
+ "bbox": [
254
+ 0.214,
255
+ 0.372,
256
+ 0.788,
257
+ 0.538
258
+ ],
259
+ "angle": 0,
260
+ "content": "In our technique, a pool of high-dimensional vectors is created by simply adding together the participating vectors, which may for example be (vectorized) images or features extracted from them. Consider a query vector \\( \\pmb{q} \\in \\mathbb{R}^d \\) and the database \\( \\mathcal{D} \\) consisting of \\( \\{\\pmb{f}_1, \\pmb{f}_2, \\dots, \\pmb{f}_N\\} \\) where each \\( \\pmb{f}_i \\in \\mathbb{R}^d \\). Throughout this paper, we consider the similarity measure \\( \\mathrm{sim}(q, f_i) \\triangleq q^t f_i \\). For simplicity, we consider the query vector \\( \\pmb{q} \\) as well as the vectors in \\( \\mathcal{D} \\) to be element-wise non-negative. This constraint is satisfied by images or their features based on ReLU or softmax nonlinearities (see the end of this section for a method to handle negative-valued descriptors). We also consider that the vectors in question have unit magnitude, without any loss of generality. Due to this, \\( q^t f_i \\) acts as a cosine similarity measure."
261
+ },
262
+ {
263
+ "type": "text",
264
+ "bbox": [
265
+ 0.214,
266
+ 0.539,
267
+ 0.788,
268
+ 0.734
269
+ ],
270
+ "angle": 0,
271
+ "content": "Our aim is to retrieve all 'defective' members of \\(\\mathcal{D}\\), i.e. each member \\(\\pmb{f_i}\\) for which \\(\\pmb{q}^t\\pmb{f}_i \\geq \\rho\\), where \\(\\rho\\) is some pre-specified threshold. With this aim in mind, we aim to efficiently prune away any vector \\(\\pmb{f_i}\\) from \\(\\mathcal{D}\\) for which it is impossible to have \\(\\pmb{q}^t\\pmb{f}_i \\geq \\rho\\). Vector pooling using summations proves to be beneficial for this purpose. Consider the toy example of a pool \\(\\pmb{y} = \\pmb{f}_1 + \\pmb{f}_2 + \\pmb{f}_3 + \\pmb{f}_4\\). If \\(\\pmb{q}^t\\pmb{y} < \\rho\\) (i.e. the pooled result is negative), then one can clearly conclude that \\(\\pmb{q}^t\\pmb{f}_i < \\rho\\) for each \\(i \\in \\{1, 2, 3, 4\\}\\). However if \\(\\pmb{q}^t\\pmb{y} \\geq \\rho\\), i.e. it yields a positive result, then we need to do further work to identify the defective members (if any). For this, we split the original pool and create two pools \\(\\pmb{y}_1\\) and \\(\\pmb{y}_2\\), each with approximately half the number of members of the original pool. We recursively compute \\(\\pmb{q}^t\\pmb{y}_2\\) and then obtain \\(\\pmb{q}^t\\pmb{y}_1 = \\pmb{q}^t\\pmb{y} - \\pmb{q}^t\\pmb{y}_2\\) (where both \\(\\pmb{q}^t\\pmb{y}\\) and \\(\\pmb{q}^t\\pmb{y}_2\\) have already been computed earlier, and hence \\(\\pmb{q}^t\\pmb{y}_1\\) is directly obtained from the difference between them). Thereafter, we proceed in a similar fashion for both branches."
272
+ },
273
+ {
274
+ "type": "text",
275
+ "bbox": [
276
+ 0.214,
277
+ 0.735,
278
+ 0.788,
279
+ 0.84
280
+ ],
281
+ "angle": 0,
282
+ "content": "We now consider the case of searching within the entire database \\(\\mathcal{D}\\) defined earlier. We initiate this recursive process with a pool \\(y_{0}\\) that is obtained from the summation of all \\(N\\) vectors. If \\(y_{0}\\) yields a positive result, we test the query vector with two pools: \\(y_{11}\\) obtained from a summation of vectors \\(f_{1}\\) through to \\(f_{\\lfloor N / 2\\rfloor}\\), and \\(y_{12}\\) obtained from a summation of vectors \\(f_{\\lfloor N / 2\\rfloor +1}\\) through to \\(f_{N}\\). If \\(y_{11}\\) tests negative, then all its members are declared negative and no further tests are required on its members, which greatly reduces the total number of tests."
283
+ }
284
+ ],
285
+ [
286
+ {
287
+ "type": "header",
288
+ "bbox": [
289
+ 0.534,
290
+ 0.115,
291
+ 0.732,
292
+ 0.129
293
+ ],
294
+ "angle": 0,
295
+ "content": "Group Testing for NN Search"
296
+ },
297
+ {
298
+ "type": "page_number",
299
+ "bbox": [
300
+ 0.775,
301
+ 0.117,
302
+ 0.785,
303
+ 0.127
304
+ ],
305
+ "angle": 0,
306
+ "content": "5"
307
+ },
308
+ {
309
+ "type": "text",
310
+ "bbox": [
311
+ 0.214,
312
+ 0.147,
313
+ 0.788,
314
+ 0.314
315
+ ],
316
+ "angle": 0,
317
+ "content": "If \\( y_{11} \\) tests positive, then it is split into two pools \\( y_{21}, y_{22} \\) with roughly equal number of members. Tests are carried out further on these two pools recursively. The same treatment is accorded to \\( y_{12} \\), which would be split into pools \\( y_{23}, y_{24} \\) if it were to test positive. This recursive process stops when the pools obtained after splitting contain just a single vector each, in which case each such single vector is tested against \\( q \\). Clearly, the depth of this recursive process is \\( \\lceil \\log_2 N \\rceil \\) given \\( N \\) vectors in \\( \\mathcal{D} \\). This procedure is called binary splitting, and it is a multi-round adaptive group testing approach, applied here to NN search. For efficiency of implementation, it is important to be able to create the different pools such as \\( y_0, y_{11}, y_{12}, y_{21}, y_{22}, y_{23}, y_{24} \\), etc., efficiently. For this purpose, we maintain cumulative sums of the following form in memory:"
318
+ },
319
+ {
320
+ "type": "equation",
321
+ "bbox": [
322
+ 0.338,
323
+ 0.318,
324
+ 0.785,
325
+ 0.337
326
+ ],
327
+ "angle": 0,
328
+ "content": "\\[\n\\tilde {\\boldsymbol {f}} _ {1} = \\boldsymbol {f} _ {1}, \\tilde {\\boldsymbol {f}} _ {2} = \\tilde {\\boldsymbol {f}} _ {1} + \\boldsymbol {f} _ {2}, \\dots , \\tilde {\\boldsymbol {f}} _ {N} = \\tilde {\\boldsymbol {f}} _ {N - 1} + \\boldsymbol {f} _ {N}. \\tag {1}\n\\]"
329
+ },
330
+ {
331
+ "type": "text",
332
+ "bbox": [
333
+ 0.214,
334
+ 0.342,
335
+ 0.789,
336
+ 0.844
337
+ ],
338
+ "angle": 0,
339
+ "content": "The cumulative sums are useful for efficient creation of various pools. They are created purely offline, independent of any query vector. The pools are created using simple vector difference operations, given these cumulative sums. For example, notice that \\( \\mathbf{y}_0 = \\widetilde{\\mathbf{f}}_N \\), \\( \\mathbf{y}_{11} = \\widetilde{\\mathbf{f}}_{\\lfloor N / 2\\rfloor} \\) and \\( \\mathbf{y}_{12} = \\widetilde{\\mathbf{f}}_N - \\widetilde{\\mathbf{f}}_{\\lfloor N / 2\\rfloor} \\). The overall binary splitting procedure is presented in Alg. 1 (a schematic diagram is provided in [13]). For the sake of greater efficiency, it is implemented non-recursively using a simple stack data structure. This binary splitting approach is quite different from Dorfman's algorithm [20], which performs individual testing in the second round. Our approach is more similar to Hwang's generalized binary splitting approach, a GT procedure which was proposed in [27] (see also [8], Alg. 1.1 of [14]). However compared to Hwang's technique, our approach allows for creation of all pools either in a purely offline manner or with simple updates involving a single vector-subtraction operation (for example, \\( \\mathbf{y}_{12} = \\widetilde{\\mathbf{f}}_N - \\widetilde{\\mathbf{f}}_{\\lfloor N / 2\\rfloor} \\) in the earlier example). On the other hand, the method in [27] detects defective one at a time, after going through all \\( \\log_2N \\) levels of recursion. Once a defective item is detected, it is discarded and all pools are created again. The entire set of \\( \\log_2N \\) levels of recursion are again executed. This process is repeated until all defectives have been detected and discarded one at a time. The method from [27] is computationally inefficient for high-dimensional NN search, as the pools must be created afresh for each level of recursion. This is because if a vector at index \\( i \\) is discarded, all cumulative sums from index \\( i + 1 \\) to \\( N \\) need to be updated. Such updates are not required in our method. We also emphasize that the techniques in [14,20,27,30] have all been applied only for binary GT and not for NN search (see the beginning of Sec. 5 for an important difference between binary GT and NN search). The binary splitting procedure saves on a large number of tests because in high dimensional search, we observe that most vectors in \\( \\mathcal{D} \\) are dissimilar to a given query vector \\( q \\), as will be demonstrated in Sec. 4. After the first round where pool \\( y_0 \\) is created, all other pools are essentially created randomly (since the initial arrangement of the vectors in \\( \\mathcal{D} \\) is random). As a result, across the different rounds, many pools test negative and are dropped out, especially in later rounds. In particular, we note that there is no loss of accuracy in this method, although we save on the number of tests by a factor more than ten on some large datasets (as will be shown in Sec. 4)."
340
+ }
341
+ ],
342
+ [
343
+ {
344
+ "type": "page_number",
345
+ "bbox": [
346
+ 0.218,
347
+ 0.116,
348
+ 0.23,
349
+ 0.127
350
+ ],
351
+ "angle": 0,
352
+ "content": "6"
353
+ },
354
+ {
355
+ "type": "header",
356
+ "bbox": [
357
+ 0.272,
358
+ 0.115,
359
+ 0.365,
360
+ 0.127
361
+ ],
362
+ "angle": 0,
363
+ "content": "H. Shah et al."
364
+ },
365
+ {
366
+ "type": "code_caption",
367
+ "bbox": [
368
+ 0.218,
369
+ 0.147,
370
+ 0.731,
371
+ 0.163
372
+ ],
373
+ "angle": 0,
374
+ "content": "Algorithm 1 Iterative Binary Splitting (see [13, Fig. 1] for a diagram)"
375
+ },
376
+ {
377
+ "type": "algorithm",
378
+ "bbox": [
379
+ 0.216,
380
+ 0.165,
381
+ 0.789,
382
+ 0.506
383
+ ],
384
+ "angle": 0,
385
+ "content": "1: \\(Fs\\gets [\\widetilde{f}_1,\\widetilde{f}_2,\\dots,\\widetilde{f}_N]\\) \n2: \\(S\\) -stack for storing triples \\(\\{si,ei,sim\\}\\) where \\(si,ei\\) are start and end index for a pool, sim \\(=\\) dot product between query vector q and pool vector. \n3: \\(Flg\\) array of size \\(N\\) flags, all 0's initially ( \\(0 =\\) non-neighbor, \\(1 =\\) neighbor of q) \n4: S.push \\(\\{1,N,q^t\\widetilde{f}_N\\}\\) , i.e. \\(si = 1,ei = N\\) \n5: while S.size() \\(\\neq 0\\) do \n6: \\(\\{si,ei,sim\\} \\leftarrow S.top();S.pop()\\) \n7: if sim \\(\\geq \\rho\\) then \n8: \\(n\\gets ei - si + 1\\) \n9: if \\(n > 2\\) then \n10: \\(rsim\\gets q^{t}(\\widetilde{fe}_{i} - \\widetilde{fs}_{i + \\lfloor n / 2\\rfloor -1})\\) \\(\\triangleright\\) testing right-half \n11: S.push \\(\\{si + \\lfloor n / 2\\rfloor ,ei,rsim\\}\\) ; push right branch onto stack \n12: S.push \\(\\{si,si + \\lfloor n / 2\\rfloor -1,sim - rsim\\}\\) ; push left branch onto stack \n13: else \n14: if \\(n = 2\\) then \n15: \\(rsim\\gets q^{t}(\\widetilde{fe}_{i} - \\widetilde{fs}_{i})\\) \n16: set \\(Flg[ei] = 1\\) , if \\(rsim\\geq \\rho\\) \n17: set \\(Flg[si] = 1\\) , if sim-rsim \\(\\geq \\rho\\) \n18: else \n19: \\(Flg[si] = 1\\) \\(\\triangleright\\) Mark si a neighbor \n20: end if \n21: end if \n22: end if \n23: end while"
386
+ },
387
+ {
388
+ "type": "text",
389
+ "bbox": [
390
+ 0.214,
391
+ 0.532,
392
+ 0.789,
393
+ 0.745
394
+ ],
395
+ "angle": 0,
396
+ "content": "Pooling using Element-wise Maximum: We have so far described pool creation using vector summation. However, pools can also be created by computing the element-wise maximum of all vectors participating in the pool. Given a subset of vectors \\(\\{\\pmb{f}_k\\}_{k=1}^K\\), such a pool \\(\\pmb{y}_m\\) is given by: \\(\\forall j \\in \\{1,2,\\dots,d\\}, y_{m,j} = \\max_j(f_{k,j})\\) where \\(f_{k,j}\\) stands for the \\(j\\)th element of \\(\\pmb{f}_k\\). We denote this operation as \\(\\pmb{y}_m = \\max(\\{\\pmb{f}_k\\}_{k=1}^K)\\). If \\(\\pmb{q}^t\\pmb{y}_m < \\rho\\), it follows that \\(\\pmb{q}^t\\pmb{f}_k < \\rho\\) for every \\(\\pmb{f}_k\\) that contributed to \\(\\pmb{y}_m\\). Hence pools created using an element-wise maximum are also well suited for iterative binary splitting in a similar fashion as in Alg. 1. Separate element-wise maximum vectors need to be stored in memory for each pool. In case of negative values in the query and/or database vectors, the element-wise maximum can be replaced by an element-wise minimum for every index \\(j\\) for which \\(q_j < 0\\). Unlike the summation technique, this handles negative-valued descriptors, albeit at the cost of more memory in order to store both element-wise maximum and element-wise minimum values for each pool."
397
+ },
398
+ {
399
+ "type": "title",
400
+ "bbox": [
401
+ 0.214,
402
+ 0.763,
403
+ 0.77,
404
+ 0.798
405
+ ],
406
+ "angle": 0,
407
+ "content": "3 Comparison to other Group Testing Methods for NN Search"
408
+ },
409
+ {
410
+ "type": "text",
411
+ "bbox": [
412
+ 0.214,
413
+ 0.809,
414
+ 0.789,
415
+ 0.842
416
+ ],
417
+ "angle": 0,
418
+ "content": "GT algorithms of different flavors have been applied to the NN search problem in [21, 29, 36]. A detailed description of these techniques is presented in the"
419
+ }
420
+ ],
421
+ [
422
+ {
423
+ "type": "header",
424
+ "bbox": [
425
+ 0.534,
426
+ 0.115,
427
+ 0.732,
428
+ 0.129
429
+ ],
430
+ "angle": 0,
431
+ "content": "Group Testing for NN Search"
432
+ },
433
+ {
434
+ "type": "page_number",
435
+ "bbox": [
436
+ 0.775,
437
+ 0.117,
438
+ 0.785,
439
+ 0.127
440
+ ],
441
+ "angle": 0,
442
+ "content": "7"
443
+ },
444
+ {
445
+ "type": "text",
446
+ "bbox": [
447
+ 0.214,
448
+ 0.146,
449
+ 0.788,
450
+ 0.419
451
+ ],
452
+ "angle": 0,
453
+ "content": "supplemental material at [13, Sec. 2]. Compared to these three afore-mentioned techniques, our method is exact, with the same accuracy as exhaustive search. The methods [21, 29, 36] require choice of various hyper-parameters (\\(R\\), the number of backpropagation steps, for [36]; sparse coding parameters in [29]; bloom filter and hash function parameters (\\(B, R, m, L\\)) in [21] - see [13, Sec. 2]) for which there is no clear data-driven selection procedure. Our method, however, requires no parameter tuning. In experiments, we have observed a speed up of more than ten-fold in querying time with our method as compared to exhaustive search on some datasets. Like [36], and unlike [21, 29], our method does have a large memory requirement, as we require all pools to be in memory. Some techniques such as [21] require the nearest neighbors to be significantly more similar than all other members of \\(\\mathcal{D}\\) (let us call this condition \\(\\mathcal{C}1\\)). Our method does not have such a requirement. However, our method will perform more efficiently for queries for which a large number of similarity values turn out to be small, and only a minority are above the threshold \\(\\rho\\) (let us call this condition \\(\\mathcal{C}2\\)). In our experimental study on diverse datasets, we have observed that \\(\\mathcal{C}2\\) is true always. On the other hand, \\(\\mathcal{C}1\\) does not hold true in a large number of cases, as also reported in [21, Sec. 5.3]."
454
+ },
455
+ {
456
+ "type": "text",
457
+ "bbox": [
458
+ 0.214,
459
+ 0.419,
460
+ 0.788,
461
+ 0.482
462
+ ],
463
+ "angle": 0,
464
+ "content": "We also experimented with applying the latest developments in the compressed sensing (CS) literature [38] (which is closely related to GT) to the approximate NN search problem, albeit unsuccessfully. The theoretical reasons for the failure of the latest CS techniques for NN search are described in [13, Sec. 3]."
465
+ },
466
+ {
467
+ "type": "title",
468
+ "bbox": [
469
+ 0.216,
470
+ 0.505,
471
+ 0.462,
472
+ 0.523
473
+ ],
474
+ "angle": 0,
475
+ "content": "4 Experimental Results"
476
+ },
477
+ {
478
+ "type": "text",
479
+ "bbox": [
480
+ 0.214,
481
+ 0.538,
482
+ 0.788,
483
+ 0.735
484
+ ],
485
+ "angle": 0,
486
+ "content": "In this section, we present experimental results conducted in two settings: \\((i)\\) Non-streaming setting with a static database, and \\((ii)\\) Streaming setting with incremental additions of new vectors to the database. In both the settings, we tested our algorithms on the following publicly available image datasets, of which the first two are widely used in retrieval and NN search problems: \\((i)\\) MIRFLICKR, a set of 1 million (1M) images from the MIRFLICKR dataset (subset of images from Flickr) available at [11], with an additional 6K images from the Paris dataset available at [12], as followed in [36]; \\((ii)\\) ImageNet, a set of 1M images used in the ImageNet Object Localization Challenge, available at [2]; \\((iii)\\) IMDB-Wiki, a set of all 500K images from the IMDB-Wiki face image dataset from [9]; \\((iv)\\) InstaCities, a set of 1M images of 10 large cities [10]. Although, we have worked with image datasets, our method is equally applicable to any other modalities such as speech, genomics, etc."
487
+ },
488
+ {
489
+ "type": "text",
490
+ "bbox": [
491
+ 0.214,
492
+ 0.735,
493
+ 0.788,
494
+ 0.843
495
+ ],
496
+ "angle": 0,
497
+ "content": "In the following, we denote a query image by \\( I_{q} \\). For every dataset containing images \\( \\{I_{i}\\}_{i = 1}^{N} \\), feature vectors \\( \\{f_i\\}_{i = 1}^N \\) were extracted as follows: First, each image \\( I_{i} \\) was passed through the popular VGGNet [37] (as its features are known to be useful for building good perceptual metrics [39]) to obtain intermediate feature vector \\( f_{i}^{\\prime} \\). Second, a softmax-based feature vector \\( f_{i} \\) of dimension \\( d = 1000 \\), corresponding to the 1000 classes in ImageNet, was extracted further from the VGGNet output vector \\( f_{i}^{\\prime} \\). In our experiments, we observed"
498
+ }
499
+ ],
500
+ [
501
+ {
502
+ "type": "page_number",
503
+ "bbox": [
504
+ 0.218,
505
+ 0.116,
506
+ 0.23,
507
+ 0.127
508
+ ],
509
+ "angle": 0,
510
+ "content": "8"
511
+ },
512
+ {
513
+ "type": "header",
514
+ "bbox": [
515
+ 0.272,
516
+ 0.115,
517
+ 0.365,
518
+ 0.127
519
+ ],
520
+ "angle": 0,
521
+ "content": "H. Shah et al."
522
+ },
523
+ {
524
+ "type": "text",
525
+ "bbox": [
526
+ 0.214,
527
+ 0.146,
528
+ 0.788,
529
+ 0.389
530
+ ],
531
+ "angle": 0,
532
+ "content": "that the softmax-based features yielded superior retrieval recall (defined as # points retrieved belonging to the same class as the query point / # points of the same class as the query point) as compared to the baseline VGGNet features, with exhaustive search on different datasets (see [13, Table 1] for more details), even on those datasets which are different from ImageNet. Higher recall is particularly beneficial for NN search application in scenarios such as image plagiarism detection. The feature vectors were all non-negative and were subsequently unit-normalized. For every dataset, NN search was carried out using different methods (see below) on the same unit-normalized feature vectors extracted from 10,000 query images. That is, the aim was to efficiently identify those indices \\( i \\in \\{1,2,\\dots,N\\} \\) for which the dot products between \\( \\mathbf{q} \\) (the feature vector of query image \\( I_{\\mathbf{q}} \\)) and \\( \\mathbf{f}_i \\) (both feature vectors unit-normalized) exceeded some specified threshold \\( \\rho \\). For all datasets, the intrinsic dimensionality was computed using the number of singular values of the \\( d \\times N \\) data matrix that accounted for 99% of its Frobenius norm. The intrinsic dimensionality for all datasets was more than 200 (for \\( d = 1000 \\))."
533
+ },
534
+ {
535
+ "type": "text",
536
+ "bbox": [
537
+ 0.214,
538
+ 0.393,
539
+ 0.788,
540
+ 0.65
541
+ ],
542
+ "angle": 0,
543
+ "content": "Our binary splitting approach, using pool creation with summation (OUR-SUM) and element-wise maximum (OUR-MAX), was compared to the following recent and popular techniques: (i) Exhaustive search (ExH) through the entire database, for every query image; (ii) The recent GT-based technique from [21], known as FLINNG (Filters to Identify Near-Neighbor Groups), using code from [3]; (iii) The popular randomized KD-tree and K-means based technique FLANN for approximate NN search [33], using code from [7] with default parameters; (iv) The FALCONN technique from [15] which uses multi-probe LSH, using the code from [4]; (v) FALCONN++ [34], an enhanced version of FALCONN which filters out potentially distant points from any hash bucket before querying using code from [5]; (vi) IVF, the speedy inverted multi-index technique implemented in the highly popular FAISS library from Meta/Facebook [1, 16]; (vii) HNSW, a graph-based technique also used in [1]; (viii) The SCANN library [6, 24] which implements an anisotropic vector quantization (KMeans) algorithm. Our methods have no hyperparameters, but for all competing methods, results are reported by tuning hyperparameters so as to maximize the recall (defined below) - see [13, Sec. 5] for more details."
544
+ },
545
+ {
546
+ "type": "text",
547
+ "bbox": [
548
+ 0.214,
549
+ 0.654,
550
+ 0.788,
551
+ 0.761
552
+ ],
553
+ "angle": 0,
554
+ "content": "We did not compare with the GT-based techniques from [36] and [29] as we could not find full publicly available implementations for these. Moreover, the technique from [21] is claimed to outperform those in [36] and [29]. We did implement the algorithm from [36], but it yielded significantly large query times. This may be due to subtle implementation differences in the way image lists are re-ranked in each of the \\( R \\) iterations of their algorithm (see Sec. 3). In any case, our method produces \\( 100\\% \\) recall and precision, unlike [29, 36]."
555
+ },
556
+ {
557
+ "type": "text",
558
+ "bbox": [
559
+ 0.214,
560
+ 0.765,
561
+ 0.788,
562
+ 0.842
563
+ ],
564
+ "angle": 0,
565
+ "content": "Non-streaming Setting: The different methods are compared in terms of Mean Query Time (MQT), Mean Precision (MP) and Mean Recall (MR) for 10K queries as reported in Table 1. The similarity threshold \\((\\rho)\\) chosen for this setting is 0.8. The recall is defined as as #true positives/ (#true positives + #false negatives). The precision is defined as # true positives/ (#true positives+"
566
+ }
567
+ ],
568
+ [
569
+ {
570
+ "type": "header",
571
+ "bbox": [
572
+ 0.534,
573
+ 0.115,
574
+ 0.732,
575
+ 0.129
576
+ ],
577
+ "angle": 0,
578
+ "content": "Group Testing for NN Search"
579
+ },
580
+ {
581
+ "type": "page_number",
582
+ "bbox": [
583
+ 0.775,
584
+ 0.117,
585
+ 0.785,
586
+ 0.127
587
+ ],
588
+ "angle": 0,
589
+ "content": "9"
590
+ },
591
+ {
592
+ "type": "text",
593
+ "bbox": [
594
+ 0.214,
595
+ 0.146,
596
+ 0.788,
597
+ 0.376
598
+ ],
599
+ "angle": 0,
600
+ "content": "# false positives). For each dataset, we have also mentioned the average number of neighbours \\((\\hat{k})\\) having similarity greater than \\(\\rho = 0.8\\). The cumulative sums in Eqn. 1 for OUR-SUM and the cumulative element-wise maximums for OUR-MAX were computed offline. The query implementation was done in \\(\\mathrm{C}++\\) with the highest level of optimization in the \\(\\mathrm{g}++\\) compiler. The codes for FLINNG, FALCONN++, SCANN and HNSW operate in the KNN search mode, as opposed to a range-based query for OUR-SUM, OUR-MAX, FALCONN and IVF, for which we set \\(\\rho = 0.8\\). The FLANN method has code support for both KNN and range-based queries, which we refer to as FLANN-K and FLANN-R respectively. For all KNN-based methods, we gave an appropriate \\(K\\) as input, such that \\(K\\) ground truth neighbors satisfy the similarity threshold of \\(\\rho\\). The time taken to compute \\(K\\) was not included in the query times reported for the KNN-based methods. All query times are reported for an Intel(R) Xeon(R) server with CPU speed 2.10GHz and 128 GB RAM. For all methods, the computed query times did not count the time taken to compute the feature vector for the query image."
601
+ },
602
+ {
603
+ "type": "text",
604
+ "bbox": [
605
+ 0.214,
606
+ 0.379,
607
+ 0.788,
608
+ 0.59
609
+ ],
610
+ "angle": 0,
611
+ "content": "Streaming Setting: We now consider experiments in a streaming setting where new vectors are added to the database on the fly, i.e. the database is modified incrementally. In our experimental setting, \\(80\\%\\) of the full database was initially available to all algorithms for index creation. New points were incrementally added to the database, and after addition of 100 new points, a search query was fired. This process was carried out until the entire database was loaded into memory. The query images were created by introducing controlled perturbations such as dither and blur to images existing in the database (refer to [13] for more details). The similarity threshold for this setting is chosen to be \\(\\rho = 0.9\\). Note that this setting is analogous to a typical image plagiarism detection setting, wherein (a) the database is updated with insertion of new points (without deletion) and requires fetching high similarity vectors, and (b) the submitted images could be subtly manipulated to escape plagiarism detection. High recall is desirable in such applications."
612
+ },
613
+ {
614
+ "type": "text",
615
+ "bbox": [
616
+ 0.214,
617
+ 0.595,
618
+ 0.788,
619
+ 0.7
620
+ ],
621
+ "angle": 0,
622
+ "content": "The only update required to OUR-SUM for insertion of \\( n_s \\) new points will be to produce \\( n_s \\) extra cumulative sums as in Eqn. 1 for a cost of \\( O(dn_s) \\). For comparison, we have selected only those algorithms that include methods for the addition of new points without necessitating the rebuilding of the entire index from scratch. These include EXH, IVF, HNSW and FLANN-R. Table 2 reports the initial Index Build Time (IBT) for 80% of the database, Mean Insertion Time (MIT) for new points, besides MQT, MP and MR."
623
+ },
624
+ {
625
+ "type": "text",
626
+ "bbox": [
627
+ 0.214,
628
+ 0.705,
629
+ 0.788,
630
+ 0.84
631
+ ],
632
+ "angle": 0,
633
+ "content": "Discussion of Results on Static Datasets (Table 1): We observe that OUR-SUM yields lower MQT on most datasets as compared to most other techniques, and that too with a guarantee of \\(100\\%\\) precision and recall. FALCONN produces higher query times than OUR-SUM or OUR-MAX and at the loss of some recall. FALCON++ produces \\(100\\%\\) precision and recall but with much higher query times than OUR-SUM or OUR-MAX. FLINNG and FLANN-K are efficient, but have significantly lower precision and recall than OUR-SUM with many of the retrieved dot products being significantly lower than the chosen \\(\\rho\\). FLANN-R yields very low recall despite its excellent precision and query time."
634
+ }
635
+ ],
636
+ [
637
+ {
638
+ "type": "page_number",
639
+ "bbox": [
640
+ 0.218,
641
+ 0.116,
642
+ 0.236,
643
+ 0.127
644
+ ],
645
+ "angle": 0,
646
+ "content": "10"
647
+ },
648
+ {
649
+ "type": "header",
650
+ "bbox": [
651
+ 0.272,
652
+ 0.115,
653
+ 0.365,
654
+ 0.127
655
+ ],
656
+ "angle": 0,
657
+ "content": "H. Shah et al."
658
+ },
659
+ {
660
+ "type": "text",
661
+ "bbox": [
662
+ 0.214,
663
+ 0.147,
664
+ 0.788,
665
+ 0.329
666
+ ],
667
+ "angle": 0,
668
+ "content": "HNSW produces higher query times in cases where the number of neighbors is large with some loss of recall. The closest competitors to OUR-SUM are SCANN and IVF, but they do not guarantee \\(100\\%\\) precision and recall. In addition, we note that as reported in [24, Fig. 3a], the accuracy of the dot-products retrieved by SCANN will depend on the chosen bit-rate, i.e. the chosen number of cluster centers in KMeans, whereas OUR-SUM has no such dependencies or parameter choice. This is a major conceptual advantage of OUR-SUM over SCANN (also see the 'Streaming' setting below). As compared to exhaustive search, OUR-SUM produces a speed gain between 4 to 120 depending on the dataset. OUR-SUM outperforms OUR-MAX in terms of query time, but it is important note that OUR-MAX is capable of handling negative-valued descriptors, although we have not experimented with it in this paper."
669
+ },
670
+ {
671
+ "type": "table",
672
+ "bbox": [
673
+ 0.231,
674
+ 0.355,
675
+ 0.769,
676
+ 0.508
677
+ ],
678
+ "angle": 0,
679
+ "content": "<table><tr><td></td><td>Db.</td><td>OUR-S</td><td>OUR-M</td><td>IVF</td><td>FALC</td><td>FLANN-R</td><td>FALC++</td><td>FLINNG</td><td>FLANN-K</td><td>SCANN</td><td>HNSW</td><td>EXH</td></tr><tr><td>MQT</td><td>MIRFL.</td><td>54.0</td><td>81</td><td>94</td><td>302</td><td>1</td><td>509</td><td>62</td><td>54</td><td>23</td><td>66</td><td>1222</td></tr><tr><td>MP</td><td>(ˆ≈1.7K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>1.0</td><td>1.0</td><td>0.268</td><td>0.743</td><td>0.996</td><td>0.959</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.997</td><td>0.954</td><td>0.323</td><td>1.0</td><td>0.268</td><td>0.743</td><td>0.996</td><td>0.959</td><td>1.0</td></tr><tr><td>MQT</td><td>ImgN.</td><td>4.9</td><td>7</td><td>103</td><td>179</td><td>2</td><td>385</td><td>119</td><td>40</td><td>23</td><td>9</td><td>1276</td></tr><tr><td>MP</td><td>(ˆ≈0.9K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>0.372</td><td>0.310</td><td>0.998</td><td>0.965</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.997</td><td>0.958</td><td>0.217</td><td>1.0</td><td>0.372</td><td>0.310</td><td>0.998</td><td>0.965</td><td>1.0</td></tr><tr><td>MQT</td><td>IMDB.</td><td>98.8</td><td>249</td><td>49</td><td>415</td><td>1.0</td><td>739</td><td>46</td><td>98</td><td>60</td><td>1076</td><td>800</td></tr><tr><td>MP</td><td>(ˆ≈7K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>1.0</td><td>1.0</td><td>0.351</td><td>0.656</td><td>0.997</td><td>0.985</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.995</td><td>0.995</td><td>0.191</td><td>1.0</td><td>0.351</td><td>0.656</td><td>0.997</td><td>0.985</td><td>1.0</td></tr><tr><td>MQT</td><td>InstaC.</td><td>58.0</td><td>110</td><td>90</td><td>330</td><td>1</td><td>601</td><td>57</td><td>61</td><td>25</td><td>298</td><td>1174</td></tr><tr><td>MP</td><td>(ˆ≈3K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>≈1.0</td><td>1.0</td><td>0.293</td><td>0.745</td><td>0.996</td><td>0.952</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.990</td><td>0.964</td><td>0.324</td><td>1.0</td><td>0.293</td><td>0.745</td><td>0.996</td><td>0.952</td><td>1.0</td></tr></table>"
680
+ },
681
+ {
682
+ "type": "table_caption",
683
+ "bbox": [
684
+ 0.214,
685
+ 0.513,
686
+ 0.788,
687
+ 0.611
688
+ ],
689
+ "angle": 0,
690
+ "content": "Table 1: Comparison of mean query time (MQT, ↓) in milliseconds, and mean precision (MP, ↑) and mean recall (MR, ↑) values for our method with summation pooling (OUR-S.); our method with max pooling (OUR-M.); IVF from the FAISS package [1,16]; HNSW from the FAISS package [1,32]; FALCONN [4,15]; FALCONN+ [34]; FLINNG [21]; FLANN [33] with KNN-based (FLANN-K) and range-based queries (FLANN-R); SCANN [6] and exhaustive search (EXH). For all methods \\(\\rho = 0.8\\), see text for more details. \\(\\hat{k} \\triangleq \\mathrm{avg}\\) number of database vectors satisfying \\(\\pmb{q}^t\\pmb{f}_i \\geq \\rho\\)."
691
+ },
692
+ {
693
+ "type": "text",
694
+ "bbox": [
695
+ 0.214,
696
+ 0.628,
697
+ 0.788,
698
+ 0.779
699
+ ],
700
+ "angle": 0,
701
+ "content": "Discussion of Results on Datasets with Streaming (Table 2): It is clear that the Index Build Time (IBT) and Mean Insertion Time (MIT) of our method clearly surpasses that of all other methods across all datasets. Furthermore, the space taken for storing the index is only \\( O(Nd) \\) in our method. Since OUR-SUM only has to compute cumulative sums for the newly inserted points, the index update time is very low when compared with other methods. FLANN-R consistently produces lower mean query times, but this comes at the cost of low recall and high insertion time, making it unusable for streaming applications. Similarly, HNSW shows significant gains in MQT for MIRFLICKR, ImageNet and InstaCities datasets, but exhibits a large insertion time across all datasets."
702
+ },
703
+ {
704
+ "type": "text",
705
+ "bbox": [
706
+ 0.214,
707
+ 0.78,
708
+ 0.788,
709
+ 0.841
710
+ ],
711
+ "angle": 0,
712
+ "content": "Analysis of Pruning (Non-Streaming): For each dataset, we also computed the number of pools that got rejected in every 'round' of binary splitting (because the dot product with the query image fell below threshold \\(\\rho\\)), beginning from round 0 to \\(\\lceil \\log_2N\\rceil\\). (Referring to Alg. 1, we see that the procedure im"
713
+ }
714
+ ],
715
+ [
716
+ {
717
+ "type": "header",
718
+ "bbox": [
719
+ 0.534,
720
+ 0.115,
721
+ 0.732,
722
+ 0.129
723
+ ],
724
+ "angle": 0,
725
+ "content": "Group Testing for NN Search"
726
+ },
727
+ {
728
+ "type": "page_number",
729
+ "bbox": [
730
+ 0.769,
731
+ 0.116,
732
+ 0.784,
733
+ 0.127
734
+ ],
735
+ "angle": 0,
736
+ "content": "11"
737
+ },
738
+ {
739
+ "type": "table",
740
+ "bbox": [
741
+ 0.218,
742
+ 0.144,
743
+ 0.465,
744
+ 0.243
745
+ ],
746
+ "angle": 0,
747
+ "content": "<table><tr><td colspan=\"5\">Index Build Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>3789</td><td>2000</td><td>3774</td><td>3765</td></tr><tr><td>EXH.</td><td>NA</td><td>NA</td><td>NA</td><td>NA</td></tr><tr><td>IVF</td><td>15000</td><td>9960</td><td>15410</td><td>18722</td></tr><tr><td>HNSW</td><td>7e5</td><td>2e5</td><td>4e5</td><td>4e5</td></tr><tr><td>FLANN-R</td><td>2e6</td><td>9e5</td><td>2e6</td><td>2e6</td></tr></table>"
748
+ },
749
+ {
750
+ "type": "table",
751
+ "bbox": [
752
+ 0.527,
753
+ 0.144,
754
+ 0.774,
755
+ 0.243
756
+ ],
757
+ "angle": 0,
758
+ "content": "<table><tr><td colspan=\"5\">Average Insertion Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>0.28</td><td>0.29</td><td>0.28</td><td>0.29</td></tr><tr><td>EXH.</td><td>~ 0</td><td>~ 0</td><td>~ 0</td><td>~ 0</td></tr><tr><td>IVF</td><td>2.2</td><td>2.7</td><td>2.2</td><td>2.7</td></tr><tr><td>HNSW</td><td>236</td><td>239</td><td>222</td><td>219</td></tr><tr><td>FLANN-R</td><td>42</td><td>53</td><td>27</td><td>26</td></tr></table>"
759
+ },
760
+ {
761
+ "type": "table",
762
+ "bbox": [
763
+ 0.218,
764
+ 0.261,
765
+ 0.464,
766
+ 0.36
767
+ ],
768
+ "angle": 0,
769
+ "content": "<table><tr><td colspan=\"5\">Mean Query Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>18</td><td>121</td><td>86</td><td>115</td></tr><tr><td>EXH.</td><td>609</td><td>315</td><td>607</td><td>605</td></tr><tr><td>IVF</td><td>183</td><td>67</td><td>145</td><td>132</td></tr><tr><td>HNSW</td><td>10</td><td>168</td><td>13</td><td>70</td></tr><tr><td>FLANN-R</td><td>6</td><td>4</td><td>5</td><td>5</td></tr></table>"
770
+ },
771
+ {
772
+ "type": "table",
773
+ "bbox": [
774
+ 0.471,
775
+ 0.261,
776
+ 0.779,
777
+ 0.36
778
+ ],
779
+ "angle": 0,
780
+ "content": "<table><tr><td colspan=\"5\">Mean Precision ↑, Mean Recall ↑</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>1,1</td><td>1,1</td><td>1,1</td><td>1,1</td></tr><tr><td>EXH.</td><td>1,1</td><td>1,1</td><td>1,1</td><td>1,1</td></tr><tr><td>IVF</td><td>1,0.99</td><td>1,0.99</td><td>1,0.99</td><td>1,0.99</td></tr><tr><td>HNSW</td><td>0.96,0.96</td><td>0.98,0.98</td><td>0.97,0.97</td><td>0.97,0.97</td></tr><tr><td>FLANN-R</td><td>1,0.31</td><td>1,0.59</td><td>1,0.49</td><td>1,0.54</td></tr></table>"
781
+ },
782
+ {
783
+ "type": "table_caption",
784
+ "bbox": [
785
+ 0.214,
786
+ 0.365,
787
+ 0.785,
788
+ 0.421
789
+ ],
790
+ "angle": 0,
791
+ "content": "Table 2: Streaming results: Index Build Time (IBT) for \\(80\\%\\) of the database, mean insertion time (MIT) for new points, MQT, MP and MR. For IMDB, the number of insertion operations and search queries is \\(\\sim 700\\) and \\(\\sim 1350\\) respectively. For all other datasets, the numbers are \\(\\sim 1400\\) and \\(\\sim 2600\\) respectively."
792
+ },
793
+ {
794
+ "type": "text",
795
+ "bbox": [
796
+ 0.214,
797
+ 0.432,
798
+ 0.788,
799
+ 0.735
800
+ ],
801
+ "angle": 0,
802
+ "content": "ponents an inorder traversal of the binary tree implicitly created during binary splitting. However the same tree can be traversed in a level-wise manner, and each level of the tree represents one 'round' of binary splitting.) The corresponding histograms for \\(\\rho \\geq 0.7\\) are plotted in Fig. 2 of [13], for OUR-SUM. As can be seen, a large number of rejections occur from round 14 onward in MIRFLICKR and InstaCities, from round 11 onward in ImageNet, and from round 16 onward in IMDB-Wiki. As a result, the MQT is lowest for ImageNet than for other datasets, and also much lower for MIRFLICKR and InstaCities than for IMDB-Wiki. A similar set of histograms are plotted for OUR-MAX in Fig. 3 of [13]. Furthermore, we plotted histograms of dot products between every query feature vector and every gallery feature vector, across 10,000 queries for all datasets. These are plotted in Fig. 1, clearly indicating that the vast majority of dot products lie in the bin (0,0.1] or (0.1,0.2] (also see Fig. 1 of [13], which shows negative logarithms of the histograms for clearer visualization of values close to 0). This supports the hypothesis that most items in \\(\\mathcal{D}\\) are dissimilar to a query vector. However, as seen in Fig. 1, the percentage of dot products in the (0,0.1] bin is much larger for ImageNet, MIRFLICKR and InstaCities than for IMDB-Wiki. This tallies with the significantly larger speedup obtained by binary splitting (both OUR-SUM and OUR-MAX) for ImageNet, MIRFLICKR and InstaCities as compared to IMDB-Wiki - see Table 1."
803
+ },
804
+ {
805
+ "type": "title",
806
+ "bbox": [
807
+ 0.216,
808
+ 0.76,
809
+ 0.452,
810
+ 0.779
811
+ ],
812
+ "angle": 0,
813
+ "content": "5 Theoretical Analysis"
814
+ },
815
+ {
816
+ "type": "text",
817
+ "bbox": [
818
+ 0.214,
819
+ 0.795,
820
+ 0.787,
821
+ 0.842
822
+ ],
823
+ "angle": 0,
824
+ "content": "For the problem of binary GT, different variants of the binary splitting approach have been shown to require just \\( s \\log_2 N + O(s) \\) or \\( s \\log_2 (N / s) + O(s) \\) tests, depending on some implementation details [14, Theorems 1.2 and 1.3]. Here \\( s \\)"
825
+ }
826
+ ],
827
+ [
828
+ {
829
+ "type": "page_number",
830
+ "bbox": [
831
+ 0.218,
832
+ 0.116,
833
+ 0.236,
834
+ 0.127
835
+ ],
836
+ "angle": 0,
837
+ "content": "12"
838
+ },
839
+ {
840
+ "type": "header",
841
+ "bbox": [
842
+ 0.272,
843
+ 0.115,
844
+ 0.366,
845
+ 0.128
846
+ ],
847
+ "angle": 0,
848
+ "content": "H. Shah et al."
849
+ },
850
+ {
851
+ "type": "text",
852
+ "bbox": [
853
+ 0.214,
854
+ 0.147,
855
+ 0.788,
856
+ 0.299
857
+ ],
858
+ "angle": 0,
859
+ "content": "stands for the number of defectives out of \\( N \\). However in binary GT, a positive result on a pool necessarily implies that at least one of the participants was defective. In our application for NN search, a pool \\( \\mathbf{y} \\) can produce \\( q^t\\mathbf{y} \\geq \\rho \\) for query vector \\( \\mathbf{q} \\), even if none of the vectors that contributed to \\( \\mathbf{y} \\) produce a dot product with \\( \\mathbf{q} \\) that exceeds or equals \\( \\rho \\). Due to this important difference, the analysis from [14] does not apply in our situation. Furthermore, it is difficult to pin down a precise deterministic number of tests in our technique. Instead, we resort to a distributional assumption on each dot product \\( q^t\\mathbf{f}_i \\). We assume that these dot products are independently distributed as per a truncated normalized exponential (TNE) distribution:"
860
+ },
861
+ {
862
+ "type": "equation",
863
+ "bbox": [
864
+ 0.365,
865
+ 0.312,
866
+ 0.786,
867
+ 0.361
868
+ ],
869
+ "angle": 0,
870
+ "content": "\\[\np (x; \\lambda) = \\left\\{ \\begin{array}{l} \\frac {\\lambda e ^ {- \\lambda x}}{1 - e ^ {- \\lambda}}, \\text {f o r} 0 \\leq x \\leq 1. \\\\ 0, \\text {o t h e r w i s e .} \\end{array} \\right. \\tag {2}\n\\]"
871
+ },
872
+ {
873
+ "type": "text",
874
+ "bbox": [
875
+ 0.214,
876
+ 0.37,
877
+ 0.788,
878
+ 0.522
879
+ ],
880
+ "angle": 0,
881
+ "content": "This distribution is obtained by truncating the well-known exponential distribution to the \\([0,1]\\) range and normalizing it so that it integrates to one. Larger the value of \\(\\lambda\\), the more rapid is the 'decay' in the probability of dot product values from 0 towards 1. Our empirical studies show that for softmax features, this is a reasonable model for dot product values commonly encountered in queries in image retrieval, as can be seen in Fig. 1 for all datasets we experimented with. Also, the best-fit \\(\\lambda\\) values for MIRFLICKR, ImageNet, IMDB-Wiki and InstaCities are respectively 34, 57, 10, 30. The TNE model fit may not be perfect, but less than perfect adherence to the TNE model does not change the key message that will be conveyed in this section."
882
+ },
883
+ {
884
+ "type": "text",
885
+ "bbox": [
886
+ 0.214,
887
+ 0.522,
888
+ 0.788,
889
+ 0.765
890
+ ],
891
+ "angle": 0,
892
+ "content": "Our aim now is to determine the probability that a pool \\( \\mathbf{y} \\) with some \\( L \\) participating vectors will produce a dot product value \\( \\mathbf{q}^t\\mathbf{y} \\) below a threshold \\( \\rho \\). Note again that such a pool will get pruned away in binary splitting, and therefore we would like this probability to be high. Now, the \\( L \\) individual dot-products (of \\( \\mathbf{q} \\) with vectors that contributed to \\( \\mathbf{y} \\)) are independent and they are all distributed as per the TNE from Eqn. 2. The mean and variance of a TNE variable with parameter \\( \\lambda \\) are respectively given by \\( \\left(1 / \\lambda + 1 / (1 - e^{\\lambda})\\right) \\) and \\( \\left(1 / \\lambda^2 - e^{\\lambda} / (e^{\\lambda} - 1)^2\\right) \\). We now apply the central limit theorem (CLT), due to which we can conclude that \\( \\mathbf{q}^t\\mathbf{y} \\) is (approximately) Gaussian distributed with a mean \\( \\mu \\triangleq L\\left(1 / \\lambda + 1 / (1 - e^{\\lambda})\\right) \\) and variance \\( \\sigma^2 \\triangleq L\\left(1 / \\lambda^2 - e^{\\lambda} / (e^{\\lambda} - 1)^2\\right) \\). With this, we can easily compute \\( P(\\mathbf{q}^t\\mathbf{y} \\leq \\rho) \\) given a value of \\( L \\) and \\( \\rho \\). Our numerical experiments, illustrated in Fig. 3 of [13], reveal that this probability increases with \\( \\lambda \\) and decreases as \\( L \\) increases. This tallies with intuition, and supports the hypothesis that a larger number of pools will be pruned away in a given round if there is more rapid decrease in the probability of dot product values from 0 to 1."
893
+ },
894
+ {
895
+ "type": "text",
896
+ "bbox": [
897
+ 0.214,
898
+ 0.765,
899
+ 0.788,
900
+ 0.842
901
+ ],
902
+ "angle": 0,
903
+ "content": "We are now equipped to determine the expected number of tests (dot products) to be computed per query, given such a TNE distribution for the dot products. Given a value of \\(\\rho\\), let us denote the probability that a pool with \\(L\\) participants will get pruned away, by \\(p_L(\\rho)\\). For OUR-SUM, for any \\(L \\geq 6\\), the probability \\(p_L(\\rho)\\) is computed using the TNE and CLT based method described"
904
+ }
905
+ ],
906
+ [
907
+ {
908
+ "type": "header",
909
+ "bbox": [
910
+ 0.534,
911
+ 0.115,
912
+ 0.732,
913
+ 0.129
914
+ ],
915
+ "angle": 0,
916
+ "content": "Group Testing for NN Search"
917
+ },
918
+ {
919
+ "type": "page_number",
920
+ "bbox": [
921
+ 0.769,
922
+ 0.116,
923
+ 0.785,
924
+ 0.127
925
+ ],
926
+ "angle": 0,
927
+ "content": "13"
928
+ },
929
+ {
930
+ "type": "image",
931
+ "bbox": [
932
+ 0.257,
933
+ 0.148,
934
+ 0.505,
935
+ 0.255
936
+ ],
937
+ "angle": 0,
938
+ "content": null
939
+ },
940
+ {
941
+ "type": "image",
942
+ "bbox": [
943
+ 0.508,
944
+ 0.149,
945
+ 0.753,
946
+ 0.255
947
+ ],
948
+ "angle": 0,
949
+ "content": null
950
+ },
951
+ {
952
+ "type": "image",
953
+ "bbox": [
954
+ 0.255,
955
+ 0.259,
956
+ 0.501,
957
+ 0.367
958
+ ],
959
+ "angle": 0,
960
+ "content": null
961
+ },
962
+ {
963
+ "type": "image",
964
+ "bbox": [
965
+ 0.508,
966
+ 0.26,
967
+ 0.753,
968
+ 0.366
969
+ ],
970
+ "angle": 0,
971
+ "content": null
972
+ },
973
+ {
974
+ "type": "image_caption",
975
+ "bbox": [
976
+ 0.215,
977
+ 0.377,
978
+ 0.788,
979
+ 0.448
980
+ ],
981
+ "angle": 0,
982
+ "content": "Fig. 1: Normalized histograms (bar graphs in blue), and best-fit exponential distribution approximations (red curves), of dot products between feature vectors of query images (10,000 in number) and all images of MIRFLICKR, ImageNet, IMDB-Wiki and InstaCities databases (left to right, top to bottom). Also see Fig. 1 of [13] for a plot of negative log of the histograms for clearer visualization of the smaller probability values."
983
+ },
984
+ {
985
+ "type": "text",
986
+ "bbox": [
987
+ 0.214,
988
+ 0.489,
989
+ 0.788,
990
+ 0.549
991
+ ],
992
+ "angle": 0,
993
+ "content": "earlier. For \\( L < 6 \\), the Gaussian distribution can be replaced by a truncated Erlang distribution, as the sum of independent exponential random variables follows an Erlang distribution. Even in this case, \\( P(\\pmb{q}^t\\pmb{y} \\leq \\rho) \\) increases with \\( \\lambda \\) and decreases with \\( L \\)."
994
+ },
995
+ {
996
+ "type": "text",
997
+ "bbox": [
998
+ 0.214,
999
+ 0.556,
1000
+ 0.788,
1001
+ 0.678
1002
+ ],
1003
+ "angle": 0,
1004
+ "content": "In round 1, there is only one pool and it contains all \\(N\\) vectors. It will get pruned away with probability \\(p_N(\\rho)\\), for a given fixed threshold \\(\\rho\\) and fixed \\(\\lambda\\). The expected number of pools in round 2 will be \\(Q_2 \\triangleq 2(1 - p_N(\\rho))\\), each of which will be pruned away with probability \\(p_{N/2}(\\rho)\\). The factor 2 is because each pool gets split into two before sending it to the next round of binary splitting. The expected number of pools in round 3 will be \\(Q_3 \\triangleq 2(1 - p_{N/2}(\\rho))Q_2\\). Likewise, in the \\(k\\)th round, the expected number of pools is \\(Q_k = 2(1 - p_{N/2^{k-2}}(\\rho))Q_{k-1}\\). Hence the expected number of tests per query in our approach will be given by:"
1005
+ },
1006
+ {
1007
+ "type": "equation",
1008
+ "bbox": [
1009
+ 0.404,
1010
+ 0.7,
1011
+ 0.787,
1012
+ 0.744
1013
+ ],
1014
+ "angle": 0,
1015
+ "content": "\\[\nE (\\rho) \\triangleq 1 + \\frac {1}{2} \\sum_ {i = 2} ^ {\\lceil \\log_ {2} N + 1 \\rceil} Q _ {i}, \\tag {3}\n\\]"
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "bbox": [
1020
+ 0.214,
1021
+ 0.767,
1022
+ 0.788,
1023
+ 0.845
1024
+ ],
1025
+ "angle": 0,
1026
+ "content": "as there are at most \\(\\lceil \\log_2N + 1\\rceil\\) rounds. The factor \\(\\frac{1}{2}\\) is due to the fact that the number of tests (i.e. dot product computations) is always half the number of pools (see second para. of Sec. 2). The value of \\(E(\\rho)\\) decreases with \\(\\lambda\\) as \\(p_N(\\rho), p_{N/2}(\\rho), \\ldots, p_{N/2^{k-2}}(\\rho)\\) all increase with \\(\\lambda\\). A similar analysis for OUR-MAX is presented in [13, Sec. 4]."
1027
+ }
1028
+ ],
1029
+ [
1030
+ {
1031
+ "type": "page_number",
1032
+ "bbox": [
1033
+ 0.218,
1034
+ 0.116,
1035
+ 0.236,
1036
+ 0.127
1037
+ ],
1038
+ "angle": 0,
1039
+ "content": "14"
1040
+ },
1041
+ {
1042
+ "type": "header",
1043
+ "bbox": [
1044
+ 0.272,
1045
+ 0.115,
1046
+ 0.366,
1047
+ 0.127
1048
+ ],
1049
+ "angle": 0,
1050
+ "content": "H. Shah et al."
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "bbox": [
1055
+ 0.214,
1056
+ 0.147,
1057
+ 0.518,
1058
+ 0.496
1059
+ ],
1060
+ "angle": 0,
1061
+ "content": "Our theoretical analysis depends on \\(\\lambda\\), but note that our algorithm is completely ag- nostic to \\(\\lambda\\) and does not use it in any manner. For values of \\(\\rho \\in \\{0.7, 0.8, 0.9\\}\\), we compared the theoretically predicted average number of dot products \\((E(\\rho))\\) to the experimentally observed number for all datasets. These are presented in Tab. 3, where we observe that for MIRFLICKR, ImageNet and InstaCities, the theoretical number for OUR-SUM is generally greater than the empirical one. This is because the dot products for these datasets decay slightly faster than what is predicted by a TNE distribution, as can be seen in Fig. 1. Conversely, for IMDB-Wiki, the theoretical number for OUR-SUM is less than the empirical one because the dot products decay slower for this dataset than what is predicted by a TNE distribution. For OUR-MAX, the difference between empirical and theoretical values is larger, as explain in [13]."
1062
+ },
1063
+ {
1064
+ "type": "table",
1065
+ "bbox": [
1066
+ 0.527,
1067
+ 0.149,
1068
+ 0.804,
1069
+ 0.395
1070
+ ],
1071
+ "angle": 0,
1072
+ "content": "<table><tr><td>Database</td><td></td><td></td><td></td></tr><tr><td>MIRFLICKR, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>51690</td><td>44194</td><td>37788</td></tr><tr><td>Empirical (Max)</td><td>75782</td><td>60752</td><td>47531</td></tr><tr><td>Theoretical (Sum)</td><td>63838</td><td>57553</td><td>50094</td></tr><tr><td>Theoretical U.B. (Max)</td><td>371672</td><td>270408</td><td>195140</td></tr><tr><td>ImageNet, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>13852</td><td>12339</td><td>10801</td></tr><tr><td>Empirical (Max)</td><td>6946</td><td>5713</td><td>4551</td></tr><tr><td>Theoretical (Sum)</td><td>34524</td><td>32603</td><td>31345</td></tr><tr><td>Theoretical U.B. (Max)</td><td>14160</td><td>6267</td><td>2775</td></tr><tr><td>IMDB-Wiki, N = 500K</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>160020</td><td>141290</td><td>125050</td></tr><tr><td>Empirical (Max)</td><td>240947</td><td>197370</td><td>158284</td></tr><tr><td>Theoretical (Sum)</td><td>113600</td><td>99552</td><td>87835</td></tr><tr><td>Theoretical U.B. (Max)</td><td>1426259</td><td>1336543</td><td>1249448</td></tr><tr><td>InstaCities, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>72729</td><td>62741</td><td>54125</td></tr><tr><td>Empirical (Max)</td><td>105122</td><td>85188</td><td>67441</td></tr><tr><td>Theoretical (Sum)</td><td>71021</td><td>63453</td><td>57944</td></tr><tr><td>Theoretical U.B. (Max)</td><td>566498</td><td>445181</td><td>346927</td></tr></table>"
1073
+ },
1074
+ {
1075
+ "type": "table_caption",
1076
+ "bbox": [
1077
+ 0.525,
1078
+ 0.405,
1079
+ 0.79,
1080
+ 0.517
1081
+ ],
1082
+ "angle": 0,
1083
+ "content": "Table 3: Empirically observed average and theoretically predicted expected number of dot products (Eqn. 3) for queries with \\(\\rho \\in \\{0.7,0.8,0.9\\}\\) for different datasets. See explanation at the end of Sec. 5. Note that 'Sum' and 'Max' denote algorithms OUR-SUM and OUR-MAX respectively."
1084
+ },
1085
+ {
1086
+ "type": "title",
1087
+ "bbox": [
1088
+ 0.216,
1089
+ 0.52,
1090
+ 0.36,
1091
+ 0.536
1092
+ ],
1093
+ "angle": 0,
1094
+ "content": "6 Conclusion"
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "bbox": [
1099
+ 0.214,
1100
+ 0.553,
1101
+ 0.79,
1102
+ 0.842
1103
+ ],
1104
+ "angle": 0,
1105
+ "content": "We have presented a simple and intuitive multi-round group testing approach for range-based near neighbor search. Our method outperforms exhaustive search by a large factor in terms of query time without losing accuracy, on datasets where query vectors are dissimilar to the vast majority of vectors in the gallery. The larger the percentage of dissimilar vectors, the greater is the speedup our algorithm will produce. Our technique has no tunable parameters. It is also easily applicable to situations where new vectors are dynamically added to an existing gallery, without requiring any expensive updates. Apart from this, our technique also has advantages in terms of accuracy of query results (especially recall) over many recent, state of the art methods. A significant limitation of our method is that it currently only supports cosine distances and is applicable only to databases with a sharp decay in feature similarity distribution, as in the case with softmax features. At present, a pool may produce a large dot product value with a query vector, even though many or even all the members of the pool are dissimilar to the query vector. Developing techniques to reduce the frequency of such situations, possibly using various LSH techniques, as well as testing on billion-scale datasets, are important avenues for future work. The implementation of our algorithms can be found at https://github.com/Harsh-Sensei/GroupTestingNN."
1106
+ }
1107
+ ],
1108
+ [
1109
+ {
1110
+ "type": "header",
1111
+ "bbox": [
1112
+ 0.534,
1113
+ 0.115,
1114
+ 0.732,
1115
+ 0.129
1116
+ ],
1117
+ "angle": 0,
1118
+ "content": "Group Testing for NN Search"
1119
+ },
1120
+ {
1121
+ "type": "page_number",
1122
+ "bbox": [
1123
+ 0.769,
1124
+ 0.117,
1125
+ 0.786,
1126
+ 0.127
1127
+ ],
1128
+ "angle": 0,
1129
+ "content": "15"
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "bbox": [
1134
+ 0.216,
1135
+ 0.147,
1136
+ 0.785,
1137
+ 0.178
1138
+ ],
1139
+ "angle": 0,
1140
+ "content": "Acknowledgement: The authors thank the Amazon IIT Bombay AI-ML Initiative for support for the work in this paper."
1141
+ },
1142
+ {
1143
+ "type": "title",
1144
+ "bbox": [
1145
+ 0.217,
1146
+ 0.205,
1147
+ 0.323,
1148
+ 0.221
1149
+ ],
1150
+ "angle": 0,
1151
+ "content": "References"
1152
+ },
1153
+ {
1154
+ "type": "ref_text",
1155
+ "bbox": [
1156
+ 0.226,
1157
+ 0.241,
1158
+ 0.621,
1159
+ 0.255
1160
+ ],
1161
+ "angle": 0,
1162
+ "content": "1. https://github.com/facebookresearch/faiss 3, 8, 10"
1163
+ },
1164
+ {
1165
+ "type": "ref_text",
1166
+ "bbox": [
1167
+ 0.226,
1168
+ 0.256,
1169
+ 0.784,
1170
+ 0.283
1171
+ ],
1172
+ "angle": 0,
1173
+ "content": "2. https://www.kaggle.com/competitions/imagenet-object-localization-challenge/data7"
1174
+ },
1175
+ {
1176
+ "type": "ref_text",
1177
+ "bbox": [
1178
+ 0.226,
1179
+ 0.285,
1180
+ 0.54,
1181
+ 0.297
1182
+ ],
1183
+ "angle": 0,
1184
+ "content": "3. https://github.com/JoshEngels/FLINNG 8"
1185
+ },
1186
+ {
1187
+ "type": "ref_text",
1188
+ "bbox": [
1189
+ 0.226,
1190
+ 0.299,
1191
+ 0.58,
1192
+ 0.312
1193
+ ],
1194
+ "angle": 0,
1195
+ "content": "4. https://github.com/FALCONN-LIB/FALCONN 8, 10"
1196
+ },
1197
+ {
1198
+ "type": "ref_text",
1199
+ "bbox": [
1200
+ 0.226,
1201
+ 0.314,
1202
+ 0.555,
1203
+ 0.327
1204
+ ],
1205
+ "angle": 0,
1206
+ "content": "5. https://github.com/NinhPham/FalconLSF 8"
1207
+ },
1208
+ {
1209
+ "type": "ref_text",
1210
+ "bbox": [
1211
+ 0.226,
1212
+ 0.329,
1213
+ 0.785,
1214
+ 0.354
1215
+ ],
1216
+ "angle": 0,
1217
+ "content": "6. https://github.com/google-research/google-research/tree/master/scann8, 10"
1218
+ },
1219
+ {
1220
+ "type": "ref_text",
1221
+ "bbox": [
1222
+ 0.226,
1223
+ 0.357,
1224
+ 0.785,
1225
+ 0.385
1226
+ ],
1227
+ "angle": 0,
1228
+ "content": "7. FLANN - fast library for approximate nearest neighbors: wbia-pyflann 4.0.4. https://pypi.org/project/wbia-pyflann/8"
1229
+ },
1230
+ {
1231
+ "type": "ref_text",
1232
+ "bbox": [
1233
+ 0.226,
1234
+ 0.386,
1235
+ 0.785,
1236
+ 0.413
1237
+ ],
1238
+ "angle": 0,
1239
+ "content": "8. Generalized binary splitting algorithm. https://en.wikipedia.org/wiki/Group-testing#Generalised_binary-splitting_algorithm 5"
1240
+ },
1241
+ {
1242
+ "type": "ref_text",
1243
+ "bbox": [
1244
+ 0.226,
1245
+ 0.415,
1246
+ 0.785,
1247
+ 0.441
1248
+ ],
1249
+ "angle": 0,
1250
+ "content": "9. Imdb-wiki - 500k+ face images with age and gender labels. https://data.vision.ee.ethz.ch/cvl/rrrothe/imdb-wiki/7"
1251
+ },
1252
+ {
1253
+ "type": "ref_text",
1254
+ "bbox": [
1255
+ 0.218,
1256
+ 0.443,
1257
+ 0.785,
1258
+ 0.469
1259
+ ],
1260
+ "angle": 0,
1261
+ "content": "10. The InstaCities1M Dataset. https://gombru.github.io/2018/08/01/InstaCities1M/7"
1262
+ },
1263
+ {
1264
+ "type": "ref_text",
1265
+ "bbox": [
1266
+ 0.218,
1267
+ 0.472,
1268
+ 0.785,
1269
+ 0.497
1270
+ ],
1271
+ "angle": 0,
1272
+ "content": "11. MIRFLICKR download. https://press.liacs.nl/mirflickr/mirdownload.html 7"
1273
+ },
1274
+ {
1275
+ "type": "ref_text",
1276
+ "bbox": [
1277
+ 0.218,
1278
+ 0.5,
1279
+ 0.785,
1280
+ 0.527
1281
+ ],
1282
+ "angle": 0,
1283
+ "content": "12. Oxford and paris buildings dataset. https://www.kaggle.com/datasets/skylord/oxbuildings 7"
1284
+ },
1285
+ {
1286
+ "type": "ref_text",
1287
+ "bbox": [
1288
+ 0.218,
1289
+ 0.529,
1290
+ 0.785,
1291
+ 0.542
1292
+ ],
1293
+ "angle": 0,
1294
+ "content": "13. Supplemental material. Uploaded on conference portal 5, 6, 7, 8, 9, 11, 12, 13, 14"
1295
+ },
1296
+ {
1297
+ "type": "ref_text",
1298
+ "bbox": [
1299
+ 0.218,
1300
+ 0.543,
1301
+ 0.785,
1302
+ 0.584
1303
+ ],
1304
+ "angle": 0,
1305
+ "content": "14. Aldridge, M., Johnson, ., Scarlett, J.: Group testing: an information theory perspective. Foundations and Trends in Communications and Information Theory 15(3-4), 196-392 (2019) 3, 5, 11, 12"
1306
+ },
1307
+ {
1308
+ "type": "ref_text",
1309
+ "bbox": [
1310
+ 0.218,
1311
+ 0.586,
1312
+ 0.785,
1313
+ 0.627
1314
+ ],
1315
+ "angle": 0,
1316
+ "content": "15. Andoni, A., Razenshteyn, I.: Optimal data-dependent hashing for approximate near neighbors. In: Proceedings of the forty-seventh annual ACM symposium on Theory of computing. pp. 793-801 (2015) 2, 3, 8, 10"
1317
+ },
1318
+ {
1319
+ "type": "ref_text",
1320
+ "bbox": [
1321
+ 0.218,
1322
+ 0.629,
1323
+ 0.785,
1324
+ 0.655
1325
+ ],
1326
+ "angle": 0,
1327
+ "content": "16. Babenko, A., Lempitsky, V.: The inverted multi-index. IEEE Transactions on Pattern Analysis and Machine Intelligence 37(6), 1247-1260 (2014) 3, 8, 10"
1328
+ },
1329
+ {
1330
+ "type": "ref_text",
1331
+ "bbox": [
1332
+ 0.218,
1333
+ 0.657,
1334
+ 0.785,
1335
+ 0.684
1336
+ ],
1337
+ "angle": 0,
1338
+ "content": "17. Candès, E.J., Wakin, M.B.: An introduction to compressive sampling. IEEE signal processing magazine 25(2), 21-30 (2008) 3"
1339
+ },
1340
+ {
1341
+ "type": "ref_text",
1342
+ "bbox": [
1343
+ 0.218,
1344
+ 0.685,
1345
+ 0.785,
1346
+ 0.712
1347
+ ],
1348
+ "angle": 0,
1349
+ "content": "18. Davenport, M., Duarte, M., Eldar, Y., Kutyniok, G.: Introduction to compressed sensing. (2012) 3"
1350
+ },
1351
+ {
1352
+ "type": "ref_text",
1353
+ "bbox": [
1354
+ 0.218,
1355
+ 0.714,
1356
+ 0.785,
1357
+ 0.741
1358
+ ],
1359
+ "angle": 0,
1360
+ "content": "19. Dong, Y., Indyk, P., Razenshteyn, I., Wagner, T.: Learning space partitions for nearest neighbor search. In: ICLR (2019) 2"
1361
+ },
1362
+ {
1363
+ "type": "ref_text",
1364
+ "bbox": [
1365
+ 0.218,
1366
+ 0.742,
1367
+ 0.785,
1368
+ 0.769
1369
+ ],
1370
+ "angle": 0,
1371
+ "content": "20. Dorfman, R.: The detection of defective members of large populations. The Annals of mathematical statistics 14(4), 436-440 (1943) 3, 5"
1372
+ },
1373
+ {
1374
+ "type": "ref_text",
1375
+ "bbox": [
1376
+ 0.218,
1377
+ 0.771,
1378
+ 0.785,
1379
+ 0.811
1380
+ ],
1381
+ "angle": 0,
1382
+ "content": "21. Engels, J., Coleman, B., Shrivastava, A.: Practical near neighbor search via group testing. In: Advances in Neural Information Processing Systems. vol. 34, pp. 9950-9962 (2021) 3, 6, 7, 8, 10"
1383
+ },
1384
+ {
1385
+ "type": "ref_text",
1386
+ "bbox": [
1387
+ 0.218,
1388
+ 0.813,
1389
+ 0.785,
1390
+ 0.84
1391
+ ],
1392
+ "angle": 0,
1393
+ "content": "22. Fu, C., Xiang, C., Wang, C., Cai, D.: Fast approximate nearest neighbor search with the navigating spreading-out graph 12(5), 461-474 (2019) 2"
1394
+ },
1395
+ {
1396
+ "type": "list",
1397
+ "bbox": [
1398
+ 0.218,
1399
+ 0.241,
1400
+ 0.785,
1401
+ 0.84
1402
+ ],
1403
+ "angle": 0,
1404
+ "content": null
1405
+ }
1406
+ ],
1407
+ [
1408
+ {
1409
+ "type": "page_number",
1410
+ "bbox": [
1411
+ 0.218,
1412
+ 0.116,
1413
+ 0.236,
1414
+ 0.127
1415
+ ],
1416
+ "angle": 0,
1417
+ "content": "16"
1418
+ },
1419
+ {
1420
+ "type": "header",
1421
+ "bbox": [
1422
+ 0.272,
1423
+ 0.115,
1424
+ 0.365,
1425
+ 0.127
1426
+ ],
1427
+ "angle": 0,
1428
+ "content": "H. Shah et al."
1429
+ },
1430
+ {
1431
+ "type": "ref_text",
1432
+ "bbox": [
1433
+ 0.217,
1434
+ 0.147,
1435
+ 0.787,
1436
+ 0.203
1437
+ ],
1438
+ "angle": 0,
1439
+ "content": "23. Ghosh, S., Agarwal, R., Rehan, M.A., Pathak, S., Agarwal, P., Gupta, Y., Consul, S., Gupta, N., Goenka, R., Rajwade, A., Gopalkrishnan, M.: A compressed sensing approach to pooled RT-PCR testing for COVID-19 detection. IEEE Open Journal of Signal Processing 2, 248-264 (2021) 3"
1440
+ },
1441
+ {
1442
+ "type": "ref_text",
1443
+ "bbox": [
1444
+ 0.217,
1445
+ 0.204,
1446
+ 0.787,
1447
+ 0.245
1448
+ ],
1449
+ "angle": 0,
1450
+ "content": "24. Guo, R., Sun, P., Lindgren, E., Geng, Q., Simcha, D., Chern, F., Kumar, S.: Accelerating large-scale inference with anisotropic vector quantization. In: International Conference on Machine Learning. pp. 3887-3896 (2020) 3, 8, 10"
1451
+ },
1452
+ {
1453
+ "type": "ref_text",
1454
+ "bbox": [
1455
+ 0.217,
1456
+ 0.246,
1457
+ 0.787,
1458
+ 0.284
1459
+ ],
1460
+ "angle": 0,
1461
+ "content": "25. Hajebi, K., Abbasi-Yadkori, Y., Shahbazi, H., Zhang, H.: Fast approximate nearest-neighbor search with k-nearest neighbor graph. In: IJCAI. pp. 1312-1317 (2011) 2"
1462
+ },
1463
+ {
1464
+ "type": "ref_text",
1465
+ "bbox": [
1466
+ 0.217,
1467
+ 0.286,
1468
+ 0.787,
1469
+ 0.314
1470
+ ],
1471
+ "angle": 0,
1472
+ "content": "26. Hastie, T., Tibshirani, R., Wainwright, M.: Statistical learning with sparsity: the lasso and generalizations. CRC press (2015) 3"
1473
+ },
1474
+ {
1475
+ "type": "ref_text",
1476
+ "bbox": [
1477
+ 0.217,
1478
+ 0.315,
1479
+ 0.787,
1480
+ 0.354
1481
+ ],
1482
+ "angle": 0,
1483
+ "content": "27. Hwang, F.: A method for detecting all defective members in a population by group testing. Journal of the American Statistical Association 67(339), 605-608 (1972) 5"
1484
+ },
1485
+ {
1486
+ "type": "ref_text",
1487
+ "bbox": [
1488
+ 0.217,
1489
+ 0.355,
1490
+ 0.787,
1491
+ 0.384
1492
+ ],
1493
+ "angle": 0,
1494
+ "content": "28. Indyk, P., Motwani, R.: Approximate nearest authoneighbors: towards removing the curse of dimensionality. In: STOC. p. 604-613 (1998) 2"
1495
+ },
1496
+ {
1497
+ "type": "ref_text",
1498
+ "bbox": [
1499
+ 0.217,
1500
+ 0.384,
1501
+ 0.787,
1502
+ 0.412
1503
+ ],
1504
+ "angle": 0,
1505
+ "content": "29. Iscen, A., Chum, O.: Local orthogonal-group testing. In: Proceedings of the European Conference on Computer Vision (ECCV). pp. 449-465 (2018) 3, 6, 7, 8"
1506
+ },
1507
+ {
1508
+ "type": "ref_text",
1509
+ "bbox": [
1510
+ 0.217,
1511
+ 0.412,
1512
+ 0.787,
1513
+ 0.438
1514
+ ],
1515
+ "angle": 0,
1516
+ "content": "30. Li, C.H.: A sequential method for screening experimental variables. Journal of the American Statistical Association 57(298), 455-477 3, 5"
1517
+ },
1518
+ {
1519
+ "type": "ref_text",
1520
+ "bbox": [
1521
+ 0.217,
1522
+ 0.439,
1523
+ 0.787,
1524
+ 0.481
1525
+ ],
1526
+ "angle": 0,
1527
+ "content": "31. Lv, Q., Josephson, W., Wang, Z., Charikar, M., Li, K.: Multi-probe LSH: efficient indexing for high-dimensional similarity search. In: Proceedings of the 33rd international conference on Very large data bases. pp. 950-961 (2007) 2"
1528
+ },
1529
+ {
1530
+ "type": "ref_text",
1531
+ "bbox": [
1532
+ 0.217,
1533
+ 0.481,
1534
+ 0.787,
1535
+ 0.522
1536
+ ],
1537
+ "angle": 0,
1538
+ "content": "32. Malkov, Y., Yashunin, D.: Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence 42(4), 824-836 (2018) 2, 10"
1539
+ },
1540
+ {
1541
+ "type": "ref_text",
1542
+ "bbox": [
1543
+ 0.217,
1544
+ 0.522,
1545
+ 0.787,
1546
+ 0.563
1547
+ ],
1548
+ "angle": 0,
1549
+ "content": "33. Muja, M., Lowe, D.: Scalable nearest neighbor algorithms for high dimensional data. IEEE Transactions on Pattern Analysis and Machine Intelligence 36(11), 2227-2240 (2014) 2, 3, 8, 10"
1550
+ },
1551
+ {
1552
+ "type": "ref_text",
1553
+ "bbox": [
1554
+ 0.217,
1555
+ 0.564,
1556
+ 0.787,
1557
+ 0.605
1558
+ ],
1559
+ "angle": 0,
1560
+ "content": "34. Pham, N., Liu, T.: Falcon++: A locality-sensitive filtering approach for approximate nearest neighbor search. In: Advances in Neural Information Processing Systems. vol. 35, pp. 31186-31198 (2022) 3, 8, 10"
1561
+ },
1562
+ {
1563
+ "type": "ref_text",
1564
+ "bbox": [
1565
+ 0.217,
1566
+ 0.606,
1567
+ 0.787,
1568
+ 0.633
1569
+ ],
1570
+ "angle": 0,
1571
+ "content": "35. Ram, P., Sinha, K.: Revisiting kd-tree for nearest neighbor search. In: SIGKDD. pp. 1378-1388 (2019) 2"
1572
+ },
1573
+ {
1574
+ "type": "ref_text",
1575
+ "bbox": [
1576
+ 0.217,
1577
+ 0.633,
1578
+ 0.787,
1579
+ 0.66
1580
+ ],
1581
+ "angle": 0,
1582
+ "content": "36. Shi, M., Furon, T., Jégou, H.: A group testing framework for similarity search in high-dimensional spaces. In: ACMM. pp. 407-416 (2014) 3, 6, 7, 8"
1583
+ },
1584
+ {
1585
+ "type": "ref_text",
1586
+ "bbox": [
1587
+ 0.217,
1588
+ 0.66,
1589
+ 0.787,
1590
+ 0.7
1591
+ ],
1592
+ "angle": 0,
1593
+ "content": "37. Simonyan, K., Zisserman, A.: Very deep convolutional networks for large-scale image recognition. In: International Conference on Learning Representations (2015) 7"
1594
+ },
1595
+ {
1596
+ "type": "ref_text",
1597
+ "bbox": [
1598
+ 0.217,
1599
+ 0.701,
1600
+ 0.74,
1601
+ 0.716
1602
+ ],
1603
+ "angle": 0,
1604
+ "content": "38. Vidyasagar, M.: An introduction to compressed sensing. SIAM (2019) 3, 7"
1605
+ },
1606
+ {
1607
+ "type": "ref_text",
1608
+ "bbox": [
1609
+ 0.217,
1610
+ 0.716,
1611
+ 0.787,
1612
+ 0.755
1613
+ ],
1614
+ "angle": 0,
1615
+ "content": "39. Zhang, R., Isola, P., Efros, A.A., Shechtman, E., Wang, O.: The unreasonable effectiveness of deep features as a perceptual metric. In: CVPR. pp. 586-595 (2018) 7"
1616
+ },
1617
+ {
1618
+ "type": "list",
1619
+ "bbox": [
1620
+ 0.217,
1621
+ 0.147,
1622
+ 0.787,
1623
+ 0.755
1624
+ ],
1625
+ "angle": 0,
1626
+ "content": null
1627
+ }
1628
+ ]
1629
+ ]
2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/60259d81-0140-404b-bad0-378f4d2302df_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b17b9c1d2cdfb49f46d89098fa557c0d3b36331e55e10397bdf33ae8e76457d
3
+ size 935230
2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/full.md ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection
2
+
3
+ Harsh Shah $^{1}$ , Kashish Mittal $^{1}$ , and Ajit Rajwade $^{1}$
4
+
5
+ Department of Computer Science & Engineering, Indian Institute of Technology Bombay
6
+
7
+ Abstract. This work presents an adaptive group testing framework for the range-based high dimensional near neighbor search problem. Our method efficiently marks each item in a database as neighbor or non-neighbor of a query point, based on a cosine distance threshold without exhaustive search. Like other methods for large scale retrieval, our approach exploits the assumption that most of the items in the database are unrelated to the query. Unlike other methods, it does not assume a large difference between the cosine similarity of the query vector with the least related neighbor and that with the least unrelated non-neighbor. Following a multi-stage adaptive group testing algorithm based on binary splitting, we divide the set of items to be searched into half at each step, and perform dot product tests on smaller and smaller subsets, many of which we are able to prune away. We experimentally show that, using softmax-based features, our method achieves a more than ten-fold speed-up over exhaustive search with no loss of accuracy, on a variety of large datasets. Based on empirically verified models for the distribution of cosine distances, we present a theoretical analysis of the expected number of distance computations per query and the probability that a pool with a certain number of members will be pruned. Our method has the following features: (i) It implicitly exploits useful distributional properties of cosine distances unlike other methods; (ii) All required data structures are created purely offline; (iii) It does not impose any strong assumptions on the number of true near neighbors; (iv) It is adaptable to streaming settings where new vectors are dynamically added to the database; and (v) It does not require any parameter tuning. The high recall of our technique makes it particularly suited to plagiarism detection scenarios where it is important to report every database item that is sufficiently similar item to the query.
8
+
9
+ Keywords: near neighbor search, group testing, image retrieval
10
+
11
+ # 1 Introduction
12
+
13
+ Near neighbor (NN) search is a fundamental problem in machine learning, computer vision, image analysis and recommender systems. Consider a database $\mathcal{D}$ of $N$ vectors given as $\{\pmb {f}_1,\pmb {f}_2,\dots ,\pmb {f}_N\}$ where each $\pmb {f}_i\in \mathbb{R}^d$ . Given a query vector
14
+
15
+ $\pmb{q} \in \mathbb{R}^d$ , our aim is to determine all those vectors in $\mathcal{D}$ such that $\mathrm{sim}(\pmb{q}, \pmb{f}_i) \geq \rho$ , where $\mathrm{sim}(.,.)$ denotes some similarity measure, and $\rho$ denotes some threshold on $\mathrm{sim}$ . This is called a similarity measure based NN query. Another variant is the $K$ nearest neighbor (KNN) search where the aim is to find the $K$ most similar neighbors to $\pmb{q}$ .
16
+
17
+ A significant portion of the literature on NN search focuses on approximate methods, often resulting in less than perfect recall rates, i.e. many database images that are similar to the query image are not retrieved. This deficiency renders them unsuitable for applications requiring high recall, such as plagiarism detection. In such scenarios, the query vectors, such as images or music files, are compared to an existing database of similar entities, and all vectors exhibiting high similarity with the query need to be retrieved for plagiarism assessment. The failure to retrieve a near neighbor could potentially lead to unfair evaluation of submissions to photography or music competitions, or online forums.
18
+
19
+ Related Work on NN Search: There exists a large body of literature on approximate NN search in higher dimensions. One of the major contributions in this area is called Locality Sensitive Hashing (LSH) [28]. Here, a hashing function partitions the dataset into buckets, such that only close vectors are likely to be hashed to the same bucket. The LSH family of algorithms consists of many variants such as those involving multiple buckets per query vector, data-driven or machine learning based construction of LSH functions [15, 19], and count-based methods [31]. In general, LSH based methods are difficult to implement for very high dimensions owing to the curse of dimensionality in constructing effective hash tables. Dimensionality reduction algorithms can mitigate this issue to some extent, but they are themselves expensive to implement and incur some inevitable data loss. There is also significant research in graph-based methods for nearest neighbor (NN) search, as explored in [22,25,32]. These methods typically achieve high accuracy and efficient query times. However, they often need relatively high pre-processing times, making them less suitable for dynamic datasets that require frequent addition of new points. In addition, various randomized variants of KD-trees and priority search K-means trees have been investigated for efficient approximate NN search in high-dimensional spaces, as seen in [35] and [33]. Despite their efficiency, these approaches involve numerous parameters, which can complicate tuning, especially for large datasets.
20
+
21
+ Overview of Group Testing: In this work, we present a group testing (GT) based approach for the NN problem. We start by presenting a brief overview of the field of GT. Consider $N$ items $\{x_i\}_{i=1}^N$ (also called 'samples' in many references), out of which only a small number $s \ll N$ are 'defective'. We consider the $i$ th item to be defective if $x_i = 1$ and non-defective if $x_i = 0$ . GT involves testing a certain number of 'pools' ( $m \ll N$ ) to identify the defective items from $\{x_i\}_{i=1}^N$ . Each pool (also called 'group') is created by mixing together or combining subsets of the $N$ items. Thus the $j$ th pool ( $j \in [m]$ ) is represented as $y_j = \bigvee_{i=1}^N A_{ji} x_i$ , where $\bigvee$ stands for bit-wise OR, and $\mathbf{A} \in \{0,1\}^{m \times N}$ is a binary pooling matrix where $A_{ji} = 1$ if the $i$ th item participates in the $j$ th pool and 0 otherwise. GT has a rich literature dating back to the seminal 'Dorfman's
22
+
23
+ method' [20] which is a popular two-round testing strategy. In the first round of Dorfman's method, some $N / K$ pools, each consisting of $K$ items, are tested. The items that participated in pools that test negative (i.e., pools that are deemed to contain no defective item) are declared non-defective, whereas all items that participated in the positive pools (i.e., pools that are deemed to contain at least one defective item) are tested individually in the second round. Theoretical analysis shows that for $s \ll N$ , this method requires much fewer than $N$ tests in the worst case. This algorithm was extended to some $r$ rounds in [30], where positive groups are further divided into smaller groups, and individual testing is performed only in the $r$ th round. The methods in [20,30] are said to be adaptive in nature, as the results of one round are given as input to the next one. The GT literature also contains a large number of non-adaptive algorithms that make predictions in a single round. A popular algorithm is called COMP or combinatorial orthogonal matching pursuit, which declares all items participating in a negative pool to be negative, and all the rest to be positive [14]. Many variants of COMP such as Noisy COMP (NCOMP) or Definite Defectives (DD) are also popular [14]. A popular class of non-adaptive GT algorithms [23] draw heavily from the compressed sensing (CS) literature [17, 38]. Such algorithms can consider quantitative information for each $\{x_i\}_{i=1}^N$ so that each $x_i \in \mathbb{R}$ , and every pool $y_j$ also gives a real-valued result. The pooling matrix $\mathbf{A}$ remains binary, and we have the relation $\forall j \in [m], y_j = \sum_{i=1}^{N} A_{ji} x_i$ . Given $\{y_j\}_{j=1}^m$ and $\mathbf{A}$ , the unknown vector $\mathbf{x}$ can be recovered using efficient convex optimization methods such as the LASSO given by $\hat{\mathbf{x}} = \operatorname{Argmin}_\mathbf{x} \| \mathbf{y} - \mathbf{A}\mathbf{x} \|_2^2 + \lambda \| \mathbf{x} \|_1$ , where $\lambda$ is a regularization parameter [26]. As proved in [18, 26], the LASSO estimator produces provably accurate estimates of $\mathbf{x}$ given a sufficient number of measurements (or pools) in $\mathbf{y}$ and a carefully designed matrix $\mathbf{A}$ .
24
+
25
+ Overview of our work: GT algorithms have been applied to the NN search problem recently in [21, 29, 36]. However in these papers, the nearest neighbor queries are of an approximate nature, i.e. the results may contain a number of vectors which are not near neighbors of the query vector $\mathbf{q}$ , and/or may miss some genuine near neighbors. On the other hand, we focus on accurate query results with good computational efficiency in practice. Our approach is based on an adaptive GT approach called binary splitting. Like existing GT based algorithms such as [21, 29, 36], our approach is also based on the assumption that in high-dimensional NN search, most vectors in the database $\mathcal{D}$ are dissimilar to a query vector $\mathbf{q}$ , and very few vectors qualify as near neighbors. However, our method does not require the distance between the most unrelated neighbor and the most closely related non-neighbor to be large, unlike [21]. Additionally, many existing approaches [1, 15, 16, 21, 24, 29, 33, 34, 36] require parameter tuning in a manner that is not fully data driven. It is also a tedious process for large databases, particularly when dealing with algorithms with large index building times. Moreover, algorithms with large index building times or those unable to efficiently handle the addition of new points are ill-suited for streaming settings. In this work, we present a range-based near neighbor search algorithm in high dimensions built on a group testing framework that has the following appealing
26
+
27
+ properties for softmax-based feature descriptors: $(i)$ low index building time, $(ii)$ perfect precision and recall without exhaustive search, $(iii)$ no parameter tuning, $(iv)$ low time complexity $(\mathcal{O}(1))$ for addition of new vectors making the algorithm suitable for streaming tasks, and $(v)$ a unique method of incorporating distributional properties of the similarity values between query and database vectors into the search process.
28
+
29
+ Organization of the paper: The core method is presented in Sec. 2. We present detailed analytical comparisons with existing GT-based techniques for NN search in Sec. 3. Experimental results and comparisons to a large number of recent NN search methods are presented in Sec. 4. A theoretical analysis of our approach is presented in Sec. 5. We conclude in Sec. 6.
30
+
31
+ # 2 Description of Method
32
+
33
+ In our technique, a pool of high-dimensional vectors is created by simply adding together the participating vectors, which may for example be (vectorized) images or features extracted from them. Consider a query vector $\pmb{q} \in \mathbb{R}^d$ and the database $\mathcal{D}$ consisting of $\{\pmb{f}_1, \pmb{f}_2, \dots, \pmb{f}_N\}$ where each $\pmb{f}_i \in \mathbb{R}^d$ . Throughout this paper, we consider the similarity measure $\mathrm{sim}(q, f_i) \triangleq q^t f_i$ . For simplicity, we consider the query vector $\pmb{q}$ as well as the vectors in $\mathcal{D}$ to be element-wise non-negative. This constraint is satisfied by images or their features based on ReLU or softmax nonlinearities (see the end of this section for a method to handle negative-valued descriptors). We also consider that the vectors in question have unit magnitude, without any loss of generality. Due to this, $q^t f_i$ acts as a cosine similarity measure.
34
+
35
+ Our aim is to retrieve all 'defective' members of $\mathcal{D}$ , i.e. each member $\pmb{f_i}$ for which $\pmb{q}^t\pmb{f}_i \geq \rho$ , where $\rho$ is some pre-specified threshold. With this aim in mind, we aim to efficiently prune away any vector $\pmb{f_i}$ from $\mathcal{D}$ for which it is impossible to have $\pmb{q}^t\pmb{f}_i \geq \rho$ . Vector pooling using summations proves to be beneficial for this purpose. Consider the toy example of a pool $\pmb{y} = \pmb{f}_1 + \pmb{f}_2 + \pmb{f}_3 + \pmb{f}_4$ . If $\pmb{q}^t\pmb{y} < \rho$ (i.e. the pooled result is negative), then one can clearly conclude that $\pmb{q}^t\pmb{f}_i < \rho$ for each $i \in \{1, 2, 3, 4\}$ . However if $\pmb{q}^t\pmb{y} \geq \rho$ , i.e. it yields a positive result, then we need to do further work to identify the defective members (if any). For this, we split the original pool and create two pools $\pmb{y}_1$ and $\pmb{y}_2$ , each with approximately half the number of members of the original pool. We recursively compute $\pmb{q}^t\pmb{y}_2$ and then obtain $\pmb{q}^t\pmb{y}_1 = \pmb{q}^t\pmb{y} - \pmb{q}^t\pmb{y}_2$ (where both $\pmb{q}^t\pmb{y}$ and $\pmb{q}^t\pmb{y}_2$ have already been computed earlier, and hence $\pmb{q}^t\pmb{y}_1$ is directly obtained from the difference between them). Thereafter, we proceed in a similar fashion for both branches.
36
+
37
+ We now consider the case of searching within the entire database $\mathcal{D}$ defined earlier. We initiate this recursive process with a pool $y_{0}$ that is obtained from the summation of all $N$ vectors. If $y_{0}$ yields a positive result, we test the query vector with two pools: $y_{11}$ obtained from a summation of vectors $f_{1}$ through to $f_{\lfloor N / 2\rfloor}$ , and $y_{12}$ obtained from a summation of vectors $f_{\lfloor N / 2\rfloor +1}$ through to $f_{N}$ . If $y_{11}$ tests negative, then all its members are declared negative and no further tests are required on its members, which greatly reduces the total number of tests.
38
+
39
+ If $y_{11}$ tests positive, then it is split into two pools $y_{21}, y_{22}$ with roughly equal number of members. Tests are carried out further on these two pools recursively. The same treatment is accorded to $y_{12}$ , which would be split into pools $y_{23}, y_{24}$ if it were to test positive. This recursive process stops when the pools obtained after splitting contain just a single vector each, in which case each such single vector is tested against $q$ . Clearly, the depth of this recursive process is $\lceil \log_2 N \rceil$ given $N$ vectors in $\mathcal{D}$ . This procedure is called binary splitting, and it is a multi-round adaptive group testing approach, applied here to NN search. For efficiency of implementation, it is important to be able to create the different pools such as $y_0, y_{11}, y_{12}, y_{21}, y_{22}, y_{23}, y_{24}$ , etc., efficiently. For this purpose, we maintain cumulative sums of the following form in memory:
40
+
41
+ $$
42
+ \tilde {\boldsymbol {f}} _ {1} = \boldsymbol {f} _ {1}, \tilde {\boldsymbol {f}} _ {2} = \tilde {\boldsymbol {f}} _ {1} + \boldsymbol {f} _ {2}, \dots , \tilde {\boldsymbol {f}} _ {N} = \tilde {\boldsymbol {f}} _ {N - 1} + \boldsymbol {f} _ {N}. \tag {1}
43
+ $$
44
+
45
+ The cumulative sums are useful for efficient creation of various pools. They are created purely offline, independent of any query vector. The pools are created using simple vector difference operations, given these cumulative sums. For example, notice that $\mathbf{y}_0 = \widetilde{\mathbf{f}}_N$ , $\mathbf{y}_{11} = \widetilde{\mathbf{f}}_{\lfloor N / 2\rfloor}$ and $\mathbf{y}_{12} = \widetilde{\mathbf{f}}_N - \widetilde{\mathbf{f}}_{\lfloor N / 2\rfloor}$ . The overall binary splitting procedure is presented in Alg. 1 (a schematic diagram is provided in [13]). For the sake of greater efficiency, it is implemented non-recursively using a simple stack data structure. This binary splitting approach is quite different from Dorfman's algorithm [20], which performs individual testing in the second round. Our approach is more similar to Hwang's generalized binary splitting approach, a GT procedure which was proposed in [27] (see also [8], Alg. 1.1 of [14]). However compared to Hwang's technique, our approach allows for creation of all pools either in a purely offline manner or with simple updates involving a single vector-subtraction operation (for example, $\mathbf{y}_{12} = \widetilde{\mathbf{f}}_N - \widetilde{\mathbf{f}}_{\lfloor N / 2\rfloor}$ in the earlier example). On the other hand, the method in [27] detects defective one at a time, after going through all $\log_2N$ levels of recursion. Once a defective item is detected, it is discarded and all pools are created again. The entire set of $\log_2N$ levels of recursion are again executed. This process is repeated until all defectives have been detected and discarded one at a time. The method from [27] is computationally inefficient for high-dimensional NN search, as the pools must be created afresh for each level of recursion. This is because if a vector at index $i$ is discarded, all cumulative sums from index $i + 1$ to $N$ need to be updated. Such updates are not required in our method. We also emphasize that the techniques in [14,20,27,30] have all been applied only for binary GT and not for NN search (see the beginning of Sec. 5 for an important difference between binary GT and NN search). The binary splitting procedure saves on a large number of tests because in high dimensional search, we observe that most vectors in $\mathcal{D}$ are dissimilar to a given query vector $q$ , as will be demonstrated in Sec. 4. After the first round where pool $y_0$ is created, all other pools are essentially created randomly (since the initial arrangement of the vectors in $\mathcal{D}$ is random). As a result, across the different rounds, many pools test negative and are dropped out, especially in later rounds. In particular, we note that there is no loss of accuracy in this method, although we save on the number of tests by a factor more than ten on some large datasets (as will be shown in Sec. 4).
46
+
47
+ Algorithm 1 Iterative Binary Splitting (see [13, Fig. 1] for a diagram)
48
+ 1: $Fs\gets [\widetilde{f}_1,\widetilde{f}_2,\dots,\widetilde{f}_N]$
49
+ 2: $S$ -stack for storing triples $\{si,ei,sim\}$ where $si,ei$ are start and end index for a pool, sim $=$ dot product between query vector q and pool vector.
50
+ 3: $Flg$ array of size $N$ flags, all 0's initially ( $0 =$ non-neighbor, $1 =$ neighbor of q)
51
+ 4: S.push $\{1,N,q^t\widetilde{f}_N\}$ , i.e. $si = 1,ei = N$
52
+ 5: while S.size() $\neq 0$ do
53
+ 6: $\{si,ei,sim\} \leftarrow S.top();S.pop()$
54
+ 7: if sim $\geq \rho$ then
55
+ 8: $n\gets ei - si + 1$
56
+ 9: if $n > 2$ then
57
+ 10: $rsim\gets q^{t}(\widetilde{fe}_{i} - \widetilde{fs}_{i + \lfloor n / 2\rfloor -1})$ $\triangleright$ testing right-half
58
+ 11: S.push $\{si + \lfloor n / 2\rfloor ,ei,rsim\}$ ; push right branch onto stack
59
+ 12: S.push $\{si,si + \lfloor n / 2\rfloor -1,sim - rsim\}$ ; push left branch onto stack
60
+ 13: else
61
+ 14: if $n = 2$ then
62
+ 15: $rsim\gets q^{t}(\widetilde{fe}_{i} - \widetilde{fs}_{i})$
63
+ 16: set $Flg[ei] = 1$ , if $rsim\geq \rho$
64
+ 17: set $Flg[si] = 1$ , if sim-rsim $\geq \rho$
65
+ 18: else
66
+ 19: $Flg[si] = 1$ $\triangleright$ Mark si a neighbor
67
+ 20: end if
68
+ 21: end if
69
+ 22: end if
70
+ 23: end while
71
+
72
+ Pooling using Element-wise Maximum: We have so far described pool creation using vector summation. However, pools can also be created by computing the element-wise maximum of all vectors participating in the pool. Given a subset of vectors $\{\pmb{f}_k\}_{k=1}^K$ , such a pool $\pmb{y}_m$ is given by: $\forall j \in \{1,2,\dots,d\}, y_{m,j} = \max_j(f_{k,j})$ where $f_{k,j}$ stands for the $j$ th element of $\pmb{f}_k$ . We denote this operation as $\pmb{y}_m = \max(\{\pmb{f}_k\}_{k=1}^K)$ . If $\pmb{q}^t\pmb{y}_m < \rho$ , it follows that $\pmb{q}^t\pmb{f}_k < \rho$ for every $\pmb{f}_k$ that contributed to $\pmb{y}_m$ . Hence pools created using an element-wise maximum are also well suited for iterative binary splitting in a similar fashion as in Alg. 1. Separate element-wise maximum vectors need to be stored in memory for each pool. In case of negative values in the query and/or database vectors, the element-wise maximum can be replaced by an element-wise minimum for every index $j$ for which $q_j < 0$ . Unlike the summation technique, this handles negative-valued descriptors, albeit at the cost of more memory in order to store both element-wise maximum and element-wise minimum values for each pool.
73
+
74
+ # 3 Comparison to other Group Testing Methods for NN Search
75
+
76
+ GT algorithms of different flavors have been applied to the NN search problem in [21, 29, 36]. A detailed description of these techniques is presented in the
77
+
78
+ supplemental material at [13, Sec. 2]. Compared to these three afore-mentioned techniques, our method is exact, with the same accuracy as exhaustive search. The methods [21, 29, 36] require choice of various hyper-parameters ( $R$ , the number of backpropagation steps, for [36]; sparse coding parameters in [29]; bloom filter and hash function parameters ( $B, R, m, L$ ) in [21] - see [13, Sec. 2]) for which there is no clear data-driven selection procedure. Our method, however, requires no parameter tuning. In experiments, we have observed a speed up of more than ten-fold in querying time with our method as compared to exhaustive search on some datasets. Like [36], and unlike [21, 29], our method does have a large memory requirement, as we require all pools to be in memory. Some techniques such as [21] require the nearest neighbors to be significantly more similar than all other members of $\mathcal{D}$ (let us call this condition $\mathcal{C}1$ ). Our method does not have such a requirement. However, our method will perform more efficiently for queries for which a large number of similarity values turn out to be small, and only a minority are above the threshold $\rho$ (let us call this condition $\mathcal{C}2$ ). In our experimental study on diverse datasets, we have observed that $\mathcal{C}2$ is true always. On the other hand, $\mathcal{C}1$ does not hold true in a large number of cases, as also reported in [21, Sec. 5.3].
79
+
80
+ We also experimented with applying the latest developments in the compressed sensing (CS) literature [38] (which is closely related to GT) to the approximate NN search problem, albeit unsuccessfully. The theoretical reasons for the failure of the latest CS techniques for NN search are described in [13, Sec. 3].
81
+
82
+ # 4 Experimental Results
83
+
84
+ In this section, we present experimental results conducted in two settings: $(i)$ Non-streaming setting with a static database, and $(ii)$ Streaming setting with incremental additions of new vectors to the database. In both the settings, we tested our algorithms on the following publicly available image datasets, of which the first two are widely used in retrieval and NN search problems: $(i)$ MIRFLICKR, a set of 1 million (1M) images from the MIRFLICKR dataset (subset of images from Flickr) available at [11], with an additional 6K images from the Paris dataset available at [12], as followed in [36]; $(ii)$ ImageNet, a set of 1M images used in the ImageNet Object Localization Challenge, available at [2]; $(iii)$ IMDB-Wiki, a set of all 500K images from the IMDB-Wiki face image dataset from [9]; $(iv)$ InstaCities, a set of 1M images of 10 large cities [10]. Although, we have worked with image datasets, our method is equally applicable to any other modalities such as speech, genomics, etc.
85
+
86
+ In the following, we denote a query image by $I_{q}$ . For every dataset containing images $\{I_{i}\}_{i = 1}^{N}$ , feature vectors $\{f_i\}_{i = 1}^N$ were extracted as follows: First, each image $I_{i}$ was passed through the popular VGGNet [37] (as its features are known to be useful for building good perceptual metrics [39]) to obtain intermediate feature vector $f_{i}^{\prime}$ . Second, a softmax-based feature vector $f_{i}$ of dimension $d = 1000$ , corresponding to the 1000 classes in ImageNet, was extracted further from the VGGNet output vector $f_{i}^{\prime}$ . In our experiments, we observed
87
+
88
+ that the softmax-based features yielded superior retrieval recall (defined as # points retrieved belonging to the same class as the query point / # points of the same class as the query point) as compared to the baseline VGGNet features, with exhaustive search on different datasets (see [13, Table 1] for more details), even on those datasets which are different from ImageNet. Higher recall is particularly beneficial for NN search application in scenarios such as image plagiarism detection. The feature vectors were all non-negative and were subsequently unit-normalized. For every dataset, NN search was carried out using different methods (see below) on the same unit-normalized feature vectors extracted from 10,000 query images. That is, the aim was to efficiently identify those indices $i \in \{1,2,\dots,N\}$ for which the dot products between $\mathbf{q}$ (the feature vector of query image $I_{\mathbf{q}}$ ) and $\mathbf{f}_i$ (both feature vectors unit-normalized) exceeded some specified threshold $\rho$ . For all datasets, the intrinsic dimensionality was computed using the number of singular values of the $d \times N$ data matrix that accounted for 99% of its Frobenius norm. The intrinsic dimensionality for all datasets was more than 200 (for $d = 1000$ ).
89
+
90
+ Our binary splitting approach, using pool creation with summation (OUR-SUM) and element-wise maximum (OUR-MAX), was compared to the following recent and popular techniques: (i) Exhaustive search (ExH) through the entire database, for every query image; (ii) The recent GT-based technique from [21], known as FLINNG (Filters to Identify Near-Neighbor Groups), using code from [3]; (iii) The popular randomized KD-tree and K-means based technique FLANN for approximate NN search [33], using code from [7] with default parameters; (iv) The FALCONN technique from [15] which uses multi-probe LSH, using the code from [4]; (v) FALCONN++ [34], an enhanced version of FALCONN which filters out potentially distant points from any hash bucket before querying using code from [5]; (vi) IVF, the speedy inverted multi-index technique implemented in the highly popular FAISS library from Meta/Facebook [1, 16]; (vii) HNSW, a graph-based technique also used in [1]; (viii) The SCANN library [6, 24] which implements an anisotropic vector quantization (KMeans) algorithm. Our methods have no hyperparameters, but for all competing methods, results are reported by tuning hyperparameters so as to maximize the recall (defined below) - see [13, Sec. 5] for more details.
91
+
92
+ We did not compare with the GT-based techniques from [36] and [29] as we could not find full publicly available implementations for these. Moreover, the technique from [21] is claimed to outperform those in [36] and [29]. We did implement the algorithm from [36], but it yielded significantly large query times. This may be due to subtle implementation differences in the way image lists are re-ranked in each of the $R$ iterations of their algorithm (see Sec. 3). In any case, our method produces $100\%$ recall and precision, unlike [29, 36].
93
+
94
+ Non-streaming Setting: The different methods are compared in terms of Mean Query Time (MQT), Mean Precision (MP) and Mean Recall (MR) for 10K queries as reported in Table 1. The similarity threshold $(\rho)$ chosen for this setting is 0.8. The recall is defined as as #true positives/ (#true positives + #false negatives). The precision is defined as # true positives/ (#true positives+
95
+
96
+ # false positives). For each dataset, we have also mentioned the average number of neighbours $(\hat{k})$ having similarity greater than $\rho = 0.8$ . The cumulative sums in Eqn. 1 for OUR-SUM and the cumulative element-wise maximums for OUR-MAX were computed offline. The query implementation was done in $\mathrm{C}++$ with the highest level of optimization in the $\mathrm{g}++$ compiler. The codes for FLINNG, FALCONN++, SCANN and HNSW operate in the KNN search mode, as opposed to a range-based query for OUR-SUM, OUR-MAX, FALCONN and IVF, for which we set $\rho = 0.8$ . The FLANN method has code support for both KNN and range-based queries, which we refer to as FLANN-K and FLANN-R respectively. For all KNN-based methods, we gave an appropriate $K$ as input, such that $K$ ground truth neighbors satisfy the similarity threshold of $\rho$ . The time taken to compute $K$ was not included in the query times reported for the KNN-based methods. All query times are reported for an Intel(R) Xeon(R) server with CPU speed 2.10GHz and 128 GB RAM. For all methods, the computed query times did not count the time taken to compute the feature vector for the query image.
97
+
98
+ Streaming Setting: We now consider experiments in a streaming setting where new vectors are added to the database on the fly, i.e. the database is modified incrementally. In our experimental setting, $80\%$ of the full database was initially available to all algorithms for index creation. New points were incrementally added to the database, and after addition of 100 new points, a search query was fired. This process was carried out until the entire database was loaded into memory. The query images were created by introducing controlled perturbations such as dither and blur to images existing in the database (refer to [13] for more details). The similarity threshold for this setting is chosen to be $\rho = 0.9$ . Note that this setting is analogous to a typical image plagiarism detection setting, wherein (a) the database is updated with insertion of new points (without deletion) and requires fetching high similarity vectors, and (b) the submitted images could be subtly manipulated to escape plagiarism detection. High recall is desirable in such applications.
99
+
100
+ The only update required to OUR-SUM for insertion of $n_s$ new points will be to produce $n_s$ extra cumulative sums as in Eqn. 1 for a cost of $O(dn_s)$ . For comparison, we have selected only those algorithms that include methods for the addition of new points without necessitating the rebuilding of the entire index from scratch. These include EXH, IVF, HNSW and FLANN-R. Table 2 reports the initial Index Build Time (IBT) for 80% of the database, Mean Insertion Time (MIT) for new points, besides MQT, MP and MR.
101
+
102
+ Discussion of Results on Static Datasets (Table 1): We observe that OUR-SUM yields lower MQT on most datasets as compared to most other techniques, and that too with a guarantee of $100\%$ precision and recall. FALCONN produces higher query times than OUR-SUM or OUR-MAX and at the loss of some recall. FALCON++ produces $100\%$ precision and recall but with much higher query times than OUR-SUM or OUR-MAX. FLINNG and FLANN-K are efficient, but have significantly lower precision and recall than OUR-SUM with many of the retrieved dot products being significantly lower than the chosen $\rho$ . FLANN-R yields very low recall despite its excellent precision and query time.
103
+
104
+ HNSW produces higher query times in cases where the number of neighbors is large with some loss of recall. The closest competitors to OUR-SUM are SCANN and IVF, but they do not guarantee $100\%$ precision and recall. In addition, we note that as reported in [24, Fig. 3a], the accuracy of the dot-products retrieved by SCANN will depend on the chosen bit-rate, i.e. the chosen number of cluster centers in KMeans, whereas OUR-SUM has no such dependencies or parameter choice. This is a major conceptual advantage of OUR-SUM over SCANN (also see the 'Streaming' setting below). As compared to exhaustive search, OUR-SUM produces a speed gain between 4 to 120 depending on the dataset. OUR-SUM outperforms OUR-MAX in terms of query time, but it is important note that OUR-MAX is capable of handling negative-valued descriptors, although we have not experimented with it in this paper.
105
+
106
+ <table><tr><td></td><td>Db.</td><td>OUR-S</td><td>OUR-M</td><td>IVF</td><td>FALC</td><td>FLANN-R</td><td>FALC++</td><td>FLINNG</td><td>FLANN-K</td><td>SCANN</td><td>HNSW</td><td>EXH</td></tr><tr><td>MQT</td><td>MIRFL.</td><td>54.0</td><td>81</td><td>94</td><td>302</td><td>1</td><td>509</td><td>62</td><td>54</td><td>23</td><td>66</td><td>1222</td></tr><tr><td>MP</td><td>(ˆ≈1.7K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>1.0</td><td>1.0</td><td>0.268</td><td>0.743</td><td>0.996</td><td>0.959</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.997</td><td>0.954</td><td>0.323</td><td>1.0</td><td>0.268</td><td>0.743</td><td>0.996</td><td>0.959</td><td>1.0</td></tr><tr><td>MQT</td><td>ImgN.</td><td>4.9</td><td>7</td><td>103</td><td>179</td><td>2</td><td>385</td><td>119</td><td>40</td><td>23</td><td>9</td><td>1276</td></tr><tr><td>MP</td><td>(ˆ≈0.9K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>0.372</td><td>0.310</td><td>0.998</td><td>0.965</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.997</td><td>0.958</td><td>0.217</td><td>1.0</td><td>0.372</td><td>0.310</td><td>0.998</td><td>0.965</td><td>1.0</td></tr><tr><td>MQT</td><td>IMDB.</td><td>98.8</td><td>249</td><td>49</td><td>415</td><td>1.0</td><td>739</td><td>46</td><td>98</td><td>60</td><td>1076</td><td>800</td></tr><tr><td>MP</td><td>(ˆ≈7K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>1.0</td><td>1.0</td><td>0.351</td><td>0.656</td><td>0.997</td><td>0.985</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.995</td><td>0.995</td><td>0.191</td><td>1.0</td><td>0.351</td><td>0.656</td><td>0.997</td><td>0.985</td><td>1.0</td></tr><tr><td>MQT</td><td>InstaC.</td><td>58.0</td><td>110</td><td>90</td><td>330</td><td>1</td><td>601</td><td>57</td><td>61</td><td>25</td><td>298</td><td>1174</td></tr><tr><td>MP</td><td>(ˆ≈3K)</td><td>1.0</td><td>1.0</td><td>1.0</td><td>≈1.0</td><td>≈1.0</td><td>1.0</td><td>0.293</td><td>0.745</td><td>0.996</td><td>0.952</td><td>1.0</td></tr><tr><td>MR</td><td></td><td>1.0</td><td>1.0</td><td>0.990</td><td>0.964</td><td>0.324</td><td>1.0</td><td>0.293</td><td>0.745</td><td>0.996</td><td>0.952</td><td>1.0</td></tr></table>
107
+
108
+ Table 1: Comparison of mean query time (MQT, ↓) in milliseconds, and mean precision (MP, ↑) and mean recall (MR, ↑) values for our method with summation pooling (OUR-S.); our method with max pooling (OUR-M.); IVF from the FAISS package [1,16]; HNSW from the FAISS package [1,32]; FALCONN [4,15]; FALCONN+ [34]; FLINNG [21]; FLANN [33] with KNN-based (FLANN-K) and range-based queries (FLANN-R); SCANN [6] and exhaustive search (EXH). For all methods $\rho = 0.8$ , see text for more details. $\hat{k} \triangleq \mathrm{avg}$ number of database vectors satisfying $\pmb{q}^t\pmb{f}_i \geq \rho$ .
109
+
110
+ Discussion of Results on Datasets with Streaming (Table 2): It is clear that the Index Build Time (IBT) and Mean Insertion Time (MIT) of our method clearly surpasses that of all other methods across all datasets. Furthermore, the space taken for storing the index is only $O(Nd)$ in our method. Since OUR-SUM only has to compute cumulative sums for the newly inserted points, the index update time is very low when compared with other methods. FLANN-R consistently produces lower mean query times, but this comes at the cost of low recall and high insertion time, making it unusable for streaming applications. Similarly, HNSW shows significant gains in MQT for MIRFLICKR, ImageNet and InstaCities datasets, but exhibits a large insertion time across all datasets.
111
+
112
+ Analysis of Pruning (Non-Streaming): For each dataset, we also computed the number of pools that got rejected in every 'round' of binary splitting (because the dot product with the query image fell below threshold $\rho$ ), beginning from round 0 to $\lceil \log_2N\rceil$ . (Referring to Alg. 1, we see that the procedure im
113
+
114
+ <table><tr><td colspan="5">Index Build Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>3789</td><td>2000</td><td>3774</td><td>3765</td></tr><tr><td>EXH.</td><td>NA</td><td>NA</td><td>NA</td><td>NA</td></tr><tr><td>IVF</td><td>15000</td><td>9960</td><td>15410</td><td>18722</td></tr><tr><td>HNSW</td><td>7e5</td><td>2e5</td><td>4e5</td><td>4e5</td></tr><tr><td>FLANN-R</td><td>2e6</td><td>9e5</td><td>2e6</td><td>2e6</td></tr></table>
115
+
116
+ <table><tr><td colspan="5">Average Insertion Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>0.28</td><td>0.29</td><td>0.28</td><td>0.29</td></tr><tr><td>EXH.</td><td>~ 0</td><td>~ 0</td><td>~ 0</td><td>~ 0</td></tr><tr><td>IVF</td><td>2.2</td><td>2.7</td><td>2.2</td><td>2.7</td></tr><tr><td>HNSW</td><td>236</td><td>239</td><td>222</td><td>219</td></tr><tr><td>FLANN-R</td><td>42</td><td>53</td><td>27</td><td>26</td></tr></table>
117
+
118
+ <table><tr><td colspan="5">Mean Query Time (in ms) ↓</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>18</td><td>121</td><td>86</td><td>115</td></tr><tr><td>EXH.</td><td>609</td><td>315</td><td>607</td><td>605</td></tr><tr><td>IVF</td><td>183</td><td>67</td><td>145</td><td>132</td></tr><tr><td>HNSW</td><td>10</td><td>168</td><td>13</td><td>70</td></tr><tr><td>FLANN-R</td><td>6</td><td>4</td><td>5</td><td>5</td></tr></table>
119
+
120
+ <table><tr><td colspan="5">Mean Precision ↑, Mean Recall ↑</td></tr><tr><td>Alg.↓, Db. →</td><td>ImgN.</td><td>IMDB.</td><td>MIRFL.</td><td>InstaC.</td></tr><tr><td>OUR-SUM</td><td>1,1</td><td>1,1</td><td>1,1</td><td>1,1</td></tr><tr><td>EXH.</td><td>1,1</td><td>1,1</td><td>1,1</td><td>1,1</td></tr><tr><td>IVF</td><td>1,0.99</td><td>1,0.99</td><td>1,0.99</td><td>1,0.99</td></tr><tr><td>HNSW</td><td>0.96,0.96</td><td>0.98,0.98</td><td>0.97,0.97</td><td>0.97,0.97</td></tr><tr><td>FLANN-R</td><td>1,0.31</td><td>1,0.59</td><td>1,0.49</td><td>1,0.54</td></tr></table>
121
+
122
+ Table 2: Streaming results: Index Build Time (IBT) for $80\%$ of the database, mean insertion time (MIT) for new points, MQT, MP and MR. For IMDB, the number of insertion operations and search queries is $\sim 700$ and $\sim 1350$ respectively. For all other datasets, the numbers are $\sim 1400$ and $\sim 2600$ respectively.
123
+
124
+ ponents an inorder traversal of the binary tree implicitly created during binary splitting. However the same tree can be traversed in a level-wise manner, and each level of the tree represents one 'round' of binary splitting.) The corresponding histograms for $\rho \geq 0.7$ are plotted in Fig. 2 of [13], for OUR-SUM. As can be seen, a large number of rejections occur from round 14 onward in MIRFLICKR and InstaCities, from round 11 onward in ImageNet, and from round 16 onward in IMDB-Wiki. As a result, the MQT is lowest for ImageNet than for other datasets, and also much lower for MIRFLICKR and InstaCities than for IMDB-Wiki. A similar set of histograms are plotted for OUR-MAX in Fig. 3 of [13]. Furthermore, we plotted histograms of dot products between every query feature vector and every gallery feature vector, across 10,000 queries for all datasets. These are plotted in Fig. 1, clearly indicating that the vast majority of dot products lie in the bin (0,0.1] or (0.1,0.2] (also see Fig. 1 of [13], which shows negative logarithms of the histograms for clearer visualization of values close to 0). This supports the hypothesis that most items in $\mathcal{D}$ are dissimilar to a query vector. However, as seen in Fig. 1, the percentage of dot products in the (0,0.1] bin is much larger for ImageNet, MIRFLICKR and InstaCities than for IMDB-Wiki. This tallies with the significantly larger speedup obtained by binary splitting (both OUR-SUM and OUR-MAX) for ImageNet, MIRFLICKR and InstaCities as compared to IMDB-Wiki - see Table 1.
125
+
126
+ # 5 Theoretical Analysis
127
+
128
+ For the problem of binary GT, different variants of the binary splitting approach have been shown to require just $s \log_2 N + O(s)$ or $s \log_2 (N / s) + O(s)$ tests, depending on some implementation details [14, Theorems 1.2 and 1.3]. Here $s$
129
+
130
+ stands for the number of defectives out of $N$ . However in binary GT, a positive result on a pool necessarily implies that at least one of the participants was defective. In our application for NN search, a pool $\mathbf{y}$ can produce $q^t\mathbf{y} \geq \rho$ for query vector $\mathbf{q}$ , even if none of the vectors that contributed to $\mathbf{y}$ produce a dot product with $\mathbf{q}$ that exceeds or equals $\rho$ . Due to this important difference, the analysis from [14] does not apply in our situation. Furthermore, it is difficult to pin down a precise deterministic number of tests in our technique. Instead, we resort to a distributional assumption on each dot product $q^t\mathbf{f}_i$ . We assume that these dot products are independently distributed as per a truncated normalized exponential (TNE) distribution:
131
+
132
+ $$
133
+ p (x; \lambda) = \left\{ \begin{array}{l} \frac {\lambda e ^ {- \lambda x}}{1 - e ^ {- \lambda}}, \text {f o r} 0 \leq x \leq 1. \\ 0, \text {o t h e r w i s e .} \end{array} \right. \tag {2}
134
+ $$
135
+
136
+ This distribution is obtained by truncating the well-known exponential distribution to the $[0,1]$ range and normalizing it so that it integrates to one. Larger the value of $\lambda$ , the more rapid is the 'decay' in the probability of dot product values from 0 towards 1. Our empirical studies show that for softmax features, this is a reasonable model for dot product values commonly encountered in queries in image retrieval, as can be seen in Fig. 1 for all datasets we experimented with. Also, the best-fit $\lambda$ values for MIRFLICKR, ImageNet, IMDB-Wiki and InstaCities are respectively 34, 57, 10, 30. The TNE model fit may not be perfect, but less than perfect adherence to the TNE model does not change the key message that will be conveyed in this section.
137
+
138
+ Our aim now is to determine the probability that a pool $\mathbf{y}$ with some $L$ participating vectors will produce a dot product value $\mathbf{q}^t\mathbf{y}$ below a threshold $\rho$ . Note again that such a pool will get pruned away in binary splitting, and therefore we would like this probability to be high. Now, the $L$ individual dot-products (of $\mathbf{q}$ with vectors that contributed to $\mathbf{y}$ ) are independent and they are all distributed as per the TNE from Eqn. 2. The mean and variance of a TNE variable with parameter $\lambda$ are respectively given by $\left(1 / \lambda + 1 / (1 - e^{\lambda})\right)$ and $\left(1 / \lambda^2 - e^{\lambda} / (e^{\lambda} - 1)^2\right)$ . We now apply the central limit theorem (CLT), due to which we can conclude that $\mathbf{q}^t\mathbf{y}$ is (approximately) Gaussian distributed with a mean $\mu \triangleq L\left(1 / \lambda + 1 / (1 - e^{\lambda})\right)$ and variance $\sigma^2 \triangleq L\left(1 / \lambda^2 - e^{\lambda} / (e^{\lambda} - 1)^2\right)$ . With this, we can easily compute $P(\mathbf{q}^t\mathbf{y} \leq \rho)$ given a value of $L$ and $\rho$ . Our numerical experiments, illustrated in Fig. 3 of [13], reveal that this probability increases with $\lambda$ and decreases as $L$ increases. This tallies with intuition, and supports the hypothesis that a larger number of pools will be pruned away in a given round if there is more rapid decrease in the probability of dot product values from 0 to 1.
139
+
140
+ We are now equipped to determine the expected number of tests (dot products) to be computed per query, given such a TNE distribution for the dot products. Given a value of $\rho$ , let us denote the probability that a pool with $L$ participants will get pruned away, by $p_L(\rho)$ . For OUR-SUM, for any $L \geq 6$ , the probability $p_L(\rho)$ is computed using the TNE and CLT based method described
141
+
142
+ ![](images/14192e4a5dccb61294689e51aaa7c6929272944884be2aba0845ae2e46ebd88b.jpg)
143
+
144
+ ![](images/3e564166b1ea154e28340fcf343df19886e168c3036cb2293043a5f057e4b8b2.jpg)
145
+
146
+ ![](images/7b3d917770282117b5e68029ecb42d31164aed7dc6d1aef593c4f5399ae2799b.jpg)
147
+ Fig. 1: Normalized histograms (bar graphs in blue), and best-fit exponential distribution approximations (red curves), of dot products between feature vectors of query images (10,000 in number) and all images of MIRFLICKR, ImageNet, IMDB-Wiki and InstaCities databases (left to right, top to bottom). Also see Fig. 1 of [13] for a plot of negative log of the histograms for clearer visualization of the smaller probability values.
148
+
149
+ ![](images/d8e60e4297809732af3877e7e455a669b8b5a717bfef8ff2350325d95d839bc1.jpg)
150
+
151
+ earlier. For $L < 6$ , the Gaussian distribution can be replaced by a truncated Erlang distribution, as the sum of independent exponential random variables follows an Erlang distribution. Even in this case, $P(\pmb{q}^t\pmb{y} \leq \rho)$ increases with $\lambda$ and decreases with $L$ .
152
+
153
+ In round 1, there is only one pool and it contains all $N$ vectors. It will get pruned away with probability $p_N(\rho)$ , for a given fixed threshold $\rho$ and fixed $\lambda$ . The expected number of pools in round 2 will be $Q_2 \triangleq 2(1 - p_N(\rho))$ , each of which will be pruned away with probability $p_{N/2}(\rho)$ . The factor 2 is because each pool gets split into two before sending it to the next round of binary splitting. The expected number of pools in round 3 will be $Q_3 \triangleq 2(1 - p_{N/2}(\rho))Q_2$ . Likewise, in the $k$ th round, the expected number of pools is $Q_k = 2(1 - p_{N/2^{k-2}}(\rho))Q_{k-1}$ . Hence the expected number of tests per query in our approach will be given by:
154
+
155
+ $$
156
+ E (\rho) \triangleq 1 + \frac {1}{2} \sum_ {i = 2} ^ {\lceil \log_ {2} N + 1 \rceil} Q _ {i}, \tag {3}
157
+ $$
158
+
159
+ as there are at most $\lceil \log_2N + 1\rceil$ rounds. The factor $\frac{1}{2}$ is due to the fact that the number of tests (i.e. dot product computations) is always half the number of pools (see second para. of Sec. 2). The value of $E(\rho)$ decreases with $\lambda$ as $p_N(\rho), p_{N/2}(\rho), \ldots, p_{N/2^{k-2}}(\rho)$ all increase with $\lambda$ . A similar analysis for OUR-MAX is presented in [13, Sec. 4].
160
+
161
+ Our theoretical analysis depends on $\lambda$ , but note that our algorithm is completely ag- nostic to $\lambda$ and does not use it in any manner. For values of $\rho \in \{0.7, 0.8, 0.9\}$ , we compared the theoretically predicted average number of dot products $(E(\rho))$ to the experimentally observed number for all datasets. These are presented in Tab. 3, where we observe that for MIRFLICKR, ImageNet and InstaCities, the theoretical number for OUR-SUM is generally greater than the empirical one. This is because the dot products for these datasets decay slightly faster than what is predicted by a TNE distribution, as can be seen in Fig. 1. Conversely, for IMDB-Wiki, the theoretical number for OUR-SUM is less than the empirical one because the dot products decay slower for this dataset than what is predicted by a TNE distribution. For OUR-MAX, the difference between empirical and theoretical values is larger, as explain in [13].
162
+
163
+ <table><tr><td>Database</td><td></td><td></td><td></td></tr><tr><td>MIRFLICKR, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>51690</td><td>44194</td><td>37788</td></tr><tr><td>Empirical (Max)</td><td>75782</td><td>60752</td><td>47531</td></tr><tr><td>Theoretical (Sum)</td><td>63838</td><td>57553</td><td>50094</td></tr><tr><td>Theoretical U.B. (Max)</td><td>371672</td><td>270408</td><td>195140</td></tr><tr><td>ImageNet, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>13852</td><td>12339</td><td>10801</td></tr><tr><td>Empirical (Max)</td><td>6946</td><td>5713</td><td>4551</td></tr><tr><td>Theoretical (Sum)</td><td>34524</td><td>32603</td><td>31345</td></tr><tr><td>Theoretical U.B. (Max)</td><td>14160</td><td>6267</td><td>2775</td></tr><tr><td>IMDB-Wiki, N = 500K</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>160020</td><td>141290</td><td>125050</td></tr><tr><td>Empirical (Max)</td><td>240947</td><td>197370</td><td>158284</td></tr><tr><td>Theoretical (Sum)</td><td>113600</td><td>99552</td><td>87835</td></tr><tr><td>Theoretical U.B. (Max)</td><td>1426259</td><td>1336543</td><td>1249448</td></tr><tr><td>InstaCities, N = 1M</td><td>ρ = 0.7</td><td>ρ = 0.8</td><td>ρ = 0.9</td></tr><tr><td>Empirical (Sum)</td><td>72729</td><td>62741</td><td>54125</td></tr><tr><td>Empirical (Max)</td><td>105122</td><td>85188</td><td>67441</td></tr><tr><td>Theoretical (Sum)</td><td>71021</td><td>63453</td><td>57944</td></tr><tr><td>Theoretical U.B. (Max)</td><td>566498</td><td>445181</td><td>346927</td></tr></table>
164
+
165
+ Table 3: Empirically observed average and theoretically predicted expected number of dot products (Eqn. 3) for queries with $\rho \in \{0.7,0.8,0.9\}$ for different datasets. See explanation at the end of Sec. 5. Note that 'Sum' and 'Max' denote algorithms OUR-SUM and OUR-MAX respectively.
166
+
167
+ # 6 Conclusion
168
+
169
+ We have presented a simple and intuitive multi-round group testing approach for range-based near neighbor search. Our method outperforms exhaustive search by a large factor in terms of query time without losing accuracy, on datasets where query vectors are dissimilar to the vast majority of vectors in the gallery. The larger the percentage of dissimilar vectors, the greater is the speedup our algorithm will produce. Our technique has no tunable parameters. It is also easily applicable to situations where new vectors are dynamically added to an existing gallery, without requiring any expensive updates. Apart from this, our technique also has advantages in terms of accuracy of query results (especially recall) over many recent, state of the art methods. A significant limitation of our method is that it currently only supports cosine distances and is applicable only to databases with a sharp decay in feature similarity distribution, as in the case with softmax features. At present, a pool may produce a large dot product value with a query vector, even though many or even all the members of the pool are dissimilar to the query vector. Developing techniques to reduce the frequency of such situations, possibly using various LSH techniques, as well as testing on billion-scale datasets, are important avenues for future work. The implementation of our algorithms can be found at https://github.com/Harsh-Sensei/GroupTestingNN.
170
+
171
+ Acknowledgement: The authors thank the Amazon IIT Bombay AI-ML Initiative for support for the work in this paper.
172
+
173
+ # References
174
+
175
+ 1. https://github.com/facebookresearch/faiss 3, 8, 10
176
+ 2. https://www.kaggle.com/competitions/imagenet-object-localization-challenge/data7
177
+ 3. https://github.com/JoshEngels/FLINNG 8
178
+ 4. https://github.com/FALCONN-LIB/FALCONN 8, 10
179
+ 5. https://github.com/NinhPham/FalconLSF 8
180
+ 6. https://github.com/google-research/google-research/tree/master/scann8, 10
181
+ 7. FLANN - fast library for approximate nearest neighbors: wbia-pyflann 4.0.4. https://pypi.org/project/wbia-pyflann/8
182
+ 8. Generalized binary splitting algorithm. https://en.wikipedia.org/wiki/Group-testing#Generalised_binary-splitting_algorithm 5
183
+ 9. Imdb-wiki - 500k+ face images with age and gender labels. https://data.vision.ee.ethz.ch/cvl/rrrothe/imdb-wiki/7
184
+ 10. The InstaCities1M Dataset. https://gombru.github.io/2018/08/01/InstaCities1M/7
185
+ 11. MIRFLICKR download. https://press.liacs.nl/mirflickr/mirdownload.html 7
186
+ 12. Oxford and paris buildings dataset. https://www.kaggle.com/datasets/skylord/oxbuildings 7
187
+ 13. Supplemental material. Uploaded on conference portal 5, 6, 7, 8, 9, 11, 12, 13, 14
188
+ 14. Aldridge, M., Johnson, ., Scarlett, J.: Group testing: an information theory perspective. Foundations and Trends in Communications and Information Theory 15(3-4), 196-392 (2019) 3, 5, 11, 12
189
+ 15. Andoni, A., Razenshteyn, I.: Optimal data-dependent hashing for approximate near neighbors. In: Proceedings of the forty-seventh annual ACM symposium on Theory of computing. pp. 793-801 (2015) 2, 3, 8, 10
190
+ 16. Babenko, A., Lempitsky, V.: The inverted multi-index. IEEE Transactions on Pattern Analysis and Machine Intelligence 37(6), 1247-1260 (2014) 3, 8, 10
191
+ 17. Candès, E.J., Wakin, M.B.: An introduction to compressive sampling. IEEE signal processing magazine 25(2), 21-30 (2008) 3
192
+ 18. Davenport, M., Duarte, M., Eldar, Y., Kutyniok, G.: Introduction to compressed sensing. (2012) 3
193
+ 19. Dong, Y., Indyk, P., Razenshteyn, I., Wagner, T.: Learning space partitions for nearest neighbor search. In: ICLR (2019) 2
194
+ 20. Dorfman, R.: The detection of defective members of large populations. The Annals of mathematical statistics 14(4), 436-440 (1943) 3, 5
195
+ 21. Engels, J., Coleman, B., Shrivastava, A.: Practical near neighbor search via group testing. In: Advances in Neural Information Processing Systems. vol. 34, pp. 9950-9962 (2021) 3, 6, 7, 8, 10
196
+ 22. Fu, C., Xiang, C., Wang, C., Cai, D.: Fast approximate nearest neighbor search with the navigating spreading-out graph 12(5), 461-474 (2019) 2
197
+
198
+ 23. Ghosh, S., Agarwal, R., Rehan, M.A., Pathak, S., Agarwal, P., Gupta, Y., Consul, S., Gupta, N., Goenka, R., Rajwade, A., Gopalkrishnan, M.: A compressed sensing approach to pooled RT-PCR testing for COVID-19 detection. IEEE Open Journal of Signal Processing 2, 248-264 (2021) 3
199
+ 24. Guo, R., Sun, P., Lindgren, E., Geng, Q., Simcha, D., Chern, F., Kumar, S.: Accelerating large-scale inference with anisotropic vector quantization. In: International Conference on Machine Learning. pp. 3887-3896 (2020) 3, 8, 10
200
+ 25. Hajebi, K., Abbasi-Yadkori, Y., Shahbazi, H., Zhang, H.: Fast approximate nearest-neighbor search with k-nearest neighbor graph. In: IJCAI. pp. 1312-1317 (2011) 2
201
+ 26. Hastie, T., Tibshirani, R., Wainwright, M.: Statistical learning with sparsity: the lasso and generalizations. CRC press (2015) 3
202
+ 27. Hwang, F.: A method for detecting all defective members in a population by group testing. Journal of the American Statistical Association 67(339), 605-608 (1972) 5
203
+ 28. Indyk, P., Motwani, R.: Approximate nearest authoneighbors: towards removing the curse of dimensionality. In: STOC. p. 604-613 (1998) 2
204
+ 29. Iscen, A., Chum, O.: Local orthogonal-group testing. In: Proceedings of the European Conference on Computer Vision (ECCV). pp. 449-465 (2018) 3, 6, 7, 8
205
+ 30. Li, C.H.: A sequential method for screening experimental variables. Journal of the American Statistical Association 57(298), 455-477 3, 5
206
+ 31. Lv, Q., Josephson, W., Wang, Z., Charikar, M., Li, K.: Multi-probe LSH: efficient indexing for high-dimensional similarity search. In: Proceedings of the 33rd international conference on Very large data bases. pp. 950-961 (2007) 2
207
+ 32. Malkov, Y., Yashunin, D.: Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence 42(4), 824-836 (2018) 2, 10
208
+ 33. Muja, M., Lowe, D.: Scalable nearest neighbor algorithms for high dimensional data. IEEE Transactions on Pattern Analysis and Machine Intelligence 36(11), 2227-2240 (2014) 2, 3, 8, 10
209
+ 34. Pham, N., Liu, T.: Falcon++: A locality-sensitive filtering approach for approximate nearest neighbor search. In: Advances in Neural Information Processing Systems. vol. 35, pp. 31186-31198 (2022) 3, 8, 10
210
+ 35. Ram, P., Sinha, K.: Revisiting kd-tree for nearest neighbor search. In: SIGKDD. pp. 1378-1388 (2019) 2
211
+ 36. Shi, M., Furon, T., Jégou, H.: A group testing framework for similarity search in high-dimensional spaces. In: ACMM. pp. 407-416 (2014) 3, 6, 7, 8
212
+ 37. Simonyan, K., Zisserman, A.: Very deep convolutional networks for large-scale image recognition. In: International Conference on Learning Representations (2015) 7
213
+ 38. Vidyasagar, M.: An introduction to compressed sensing. SIAM (2019) 3, 7
214
+ 39. Zhang, R., Isola, P., Efros, A.A., Shechtman, E., Wang, O.: The unreasonable effectiveness of deep features as a perceptual metric. In: CVPR. pp. 586-595 (2018) 7
2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56c714f4bf49615221925d181d8b4d4573ffa7b68bef5a7fc8054d7e06870e30
3
+ size 257615
2024/Group Testing for Accurate and Efficient Range-Based Near Neighbor Search for Plagiarism Detection/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/GroupDiff_ Diffusion-based Group Portrait Editing/0180d5e1-adf4-499a-95e2-b1c477938796_content_list.json ADDED
@@ -0,0 +1,1673 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 276,
8
+ 140,
9
+ 725,
10
+ 186
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yuming Jiang $^{1*}$ , Nanxuan Zhao $^{2\\boxtimes}$ , Qing Liu $^{2\\boxtimes}$ , Krishna Kumar Singh $^{2\\boxtimes}$ , Shuai Yang $^{3\\boxtimes}$ , Chen Change Loy $^{1\\boxtimes}$ , and Ziwei Liu $^{1\\boxtimes}$",
17
+ "bbox": [
18
+ 223,
19
+ 210,
20
+ 777,
21
+ 243
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "<sup>1</sup> College of Computing and Data Science, Nanyang Technological University \n<sup>2</sup> Adobe Research",
28
+ "bbox": [
29
+ 241,
30
+ 253,
31
+ 756,
32
+ 280
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "$^{3}$ Wangxuan Institute of Computer Technology, Peking University https://github.com/yumingj/GroupDiff",
39
+ "bbox": [
40
+ 279,
41
+ 281,
42
+ 720,
43
+ 310
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract. Group portrait editing is highly desirable since users constantly want to add a person, delete a person, or manipulate existing persons. It is also challenging due to the intricate dynamics of human interactions and the diverse gestures. In this work, we present GroupDiff, a pioneering effort to tackle group photo editing with three dedicated contributions: 1) Data Engine: Since there are no labeled data for group photo editing, we create a data engine to generate paired data for training. The training data engine covers the diverse needs of group portrait editing. 2) Appearance Preservation: To keep the appearance consistent after editing, we inject the images of persons from the group photo into the attention modules and employ skeletons to provide intra-person guidance. 3) Control Flexibility: Bounding boxes indicating the locations of each person are used to reweight the attention matrix so that the features of each person can be injected into the correct places. This interperson guidance provides flexible manners for manipulation. Extensive experiments demonstrate that GroupDiff exhibits state-of-the-art performance compared to existing methods. GroupDiff offers controllability for editing and maintains the fidelity of the original photos.",
50
+ "bbox": [
51
+ 261,
52
+ 349,
53
+ 738,
54
+ 599
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Keywords: Group Photo Editing $\\cdot$ Diffusion Models",
61
+ "bbox": [
62
+ 261,
63
+ 613,
64
+ 620,
65
+ 627
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "1 Introduction",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 215,
75
+ 678,
76
+ 375,
77
+ 694
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Have you ever been bothered by the challenge of capturing the perfect group photo, especially during significant occasions like team-building events, family reunions, or friend gatherings? Group portrait photos become a crucial means of preserving cherished memories. Imagine this scenario, an individual must unexpectedly leave an important reunion party before the group photo is taken due to an emergency. How valuable would it be to have a tool that seamlessly",
84
+ "bbox": [
85
+ 212,
86
+ 710,
87
+ 787,
88
+ 801
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "page_footnote",
94
+ "text": "*This work was done when Yuming Jiang was a research intern at Adobe Research.",
95
+ "bbox": [
96
+ 230,
97
+ 811,
98
+ 784,
99
+ 824
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "page_footnote",
105
+ "text": "Corresponding Author.",
106
+ "bbox": [
107
+ 230,
108
+ 824,
109
+ 397,
110
+ 839
111
+ ],
112
+ "page_idx": 0
113
+ },
114
+ {
115
+ "type": "image",
116
+ "img_path": "images/6225682bd0eb00262747ceac6d2afdad2bfeb0cc3813768f277edd07fdcc7de2.jpg",
117
+ "image_caption": [],
118
+ "image_footnote": [],
119
+ "bbox": [
120
+ 264,
121
+ 146,
122
+ 738,
123
+ 311
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "image",
129
+ "img_path": "images/57d2dc931dcbd3666240d849a42add400596fa6ee54383f51ca8c053f8f8e562.jpg",
130
+ "image_caption": [
131
+ "Fig. 1: Applications enabled by our GroupDiff. Given a group photo, we can (a) manipulate the existing person, (b) remove a person, and (c) insert a person."
132
+ ],
133
+ "image_footnote": [],
134
+ "bbox": [
135
+ 264,
136
+ 311,
137
+ 738,
138
+ 441
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "adds the missing person to the photo later? Group portrait editing addresses precisely this need and more. However, as a broad topic covering various operations, group portrait editing is not an easy task with many factors that need to be considered, such as human identity, interaction, and diverse gestures. It is a difficult and tedious process even for experts with design experience and knowledge.",
145
+ "bbox": [
146
+ 212,
147
+ 532,
148
+ 787,
149
+ 622
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "However, the manipulation of group photos is challenging for two reasons: 1) the generation of the single-person image is difficult because of the complicated human structures, and 2) the generation of human interaction regions. How to generate individual persons and their interactions naturally is an unsolved problem. In this work, we take the initial step to tackle this hard problem. More specifically, we target the unique problem in group portrait editing, i.e., the synthesis of human interactions when we perform person insertion, person removal, and person manipulation, as shown in Fig. 1. As personal features like facial expressions and pose orientation can be adjusted by single human editing methods [3, 31, 32, 34-36, 46, 47], our work builds on the assumption that both the initial group portrait photo and the inserted person are with satisfied facial expressions and facing orientations.",
156
+ "bbox": [
157
+ 212,
158
+ 625,
159
+ 787,
160
+ 806
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "To facilitate a more general setting, we aim to develop a unified framework handling three main group photo editing tasks (i.e., manipulation of existing per",
167
+ "bbox": [
168
+ 212,
169
+ 809,
170
+ 787,
171
+ 840
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "page_number",
177
+ "text": "2",
178
+ "bbox": [
179
+ 217,
180
+ 114,
181
+ 228,
182
+ 126
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "header",
188
+ "text": "Y. Jiang et al.",
189
+ "bbox": [
190
+ 271,
191
+ 114,
192
+ 367,
193
+ 128
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "son, person removal, and person insertion). We propose to perform group photo editing by generating reasonable interaction regions. Given an initial group portrait photo with masked regions indicating the intersection areas to be edited, and reference image(s) of the nearby person(s), we learn to seamlessly hallucinate the human interaction in a natural way while maintaining the identities of individuals. With the well-established generation power of diffusion models [44,50], we choose to build our method on top of the pre-trained diffusion model [44].",
200
+ "bbox": [
201
+ 212,
202
+ 146,
203
+ 784,
204
+ 252
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "However, our task still poses several unique challenges. Firstly, collecting a large set of paired training data with before-after editing is infeasible. While several works [25, 53] take the synthetic way to generate the data, they mainly work on single-person editing without considering complex human compositions and interactions. How to generate the training data fitting the natural distribution of group portrait editing is a difficult problem. Secondly, maintaining the appearance of individuals during the editing process is a formidable challenge. Users do not want the appearance to be changed, such as clothing be changed after editing. Besides, group photos often include multiple persons, and how to correctly map the reference appearance to the target person is a remaining problem. Lastly, providing users with the flexibility to specify the desired interactions according to their preferences is essential.",
211
+ "bbox": [
212
+ 212,
213
+ 252,
214
+ 785,
215
+ 433
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "To this end, we propose GroupDiff, a new approach for tackling group portrait editing tasks. For the issue of lacking large-scale before-after editing data, we propose a training data generation engine that mimics the editing requirements encountered in real-world applications of group photo editing. Many factors have been considered, such as the interaction ways, the body parts' appearances, and the poses. To maintain the appearance of the persons including the inserted person and the persons in the original photo, we propose an appearance preservation diffusion model which contains person-aware modules customized on attention layers. By taking the person(s) that the user wants to be kept as reference image(s), this model takes both inter-person and intra-person features when injecting the references into the editing process. This module can tackle the challenge posed by multiple persons through an indicator matrix, indicating the locations of each person and thus precise attention guidance. Additionally, we take the skeleton as an intermediate representation throughout our framework design, ensuring flexibility and controllability for users. Experiments show that our proposed GroupDiff achieves state-of-the-art performance in the task of group portrait editing. Our contributions are summarized as follows:",
222
+ "bbox": [
223
+ 212,
224
+ 434,
225
+ 787,
226
+ 690
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "list",
232
+ "sub_type": "text",
233
+ "list_items": [
234
+ "- We work on a challenging task of Group Portrait Editing and make the first effort to solve it in a unified framework by generating interaction regions.",
235
+ "- We propose a novel framework (GroupDiff) that includes person-aware modules specifically designed to maintain the appearance of reference persons, considering both inter-person and intra-person features.",
236
+ "- We introduce a simple yet effective data synthesis method to get paired data for GroupDiff training.",
237
+ "- We demonstrate the flexibility of our model on various applications such as person insertion, person removal, and interaction editing."
238
+ ],
239
+ "bbox": [
240
+ 223,
241
+ 703,
242
+ 782,
243
+ 839
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "header",
249
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
250
+ "bbox": [
251
+ 393,
252
+ 114,
253
+ 732,
254
+ 130
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "page_number",
260
+ "text": "3",
261
+ "bbox": [
262
+ 774,
263
+ 116,
264
+ 784,
265
+ 126
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "2 Related Work",
272
+ "text_level": 1,
273
+ "bbox": [
274
+ 215,
275
+ 143,
276
+ 387,
277
+ 160
278
+ ],
279
+ "page_idx": 3
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Single-Human Editing. There are two major directions for single-human editing: facial editing and full-body editing. For facial editing, the target is to manipulate the facial attributes, e.g., age manipulation [57, 62], hair synthesis [41, 60] and expression manipulation [23, 26, 27, 46, 47, 56]. As for full-body editing, it mainly includes two directions: pose transfer and virtual try-on. The objective of pose transfer [3, 31, 32, 34-36] is to seamlessly transpose the visual characteristics of an individual from one pose to another. Albahar et al. [1] introduces a pose-conditioned StyleGAN framework in which the source image is warped to align with the target pose. The warping is operated according to the correspondence between the source pose and the target pose. The warped image is then employed to modulate the features. Try-on tasks aim to transfer the clothing of the person from one image to the other image. Traditional Try-on methods [5, 11, 19, 59] mainly focus on warping the clothing to the target person. Baldrati et al. [4] and Zhu et al. [66] propose to address the problem under the setting of diffusion models. Kulal et al. [25] study the single human editing task under the human-environment interactive setting. They propose a method to insert a person into the place. Different from previous works, our paper focuses on group portrait editing, where the interactions and compositions among persons need to be carefully handled.",
284
+ "bbox": [
285
+ 212,
286
+ 196,
287
+ 787,
288
+ 484
289
+ ],
290
+ "page_idx": 3
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "Inpainting. Image inpainting is an ill-posed problem, which aims to fill in the masked regions using meaningful content. Patch-based methods [8, 13] perform the inpainting by finding the nearest matched patch and then placing them into the holes in a proper way. GAN-based methods [20, 29, 30, 38, 43] often use the high-level information extracted by the networks and then use the extracted features to guide the inpainting. Recently, since the emergence of newer generative models, e.g. diffusion models and VQGAN models [9, 54], researchers propose to solve the task using languages [39, 55, 58]. RealFill [53] learns LoRA weights [18] to inpaint the background regions from reference images. However, these methods are not designed for human-specific inpainting tasks, and they do not consider the specific human priors, such as human poses, and do not have modules specifically for human appearance preservation.",
295
+ "bbox": [
296
+ 212,
297
+ 488,
298
+ 787,
299
+ 671
300
+ ],
301
+ "page_idx": 3
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "Diffusion Models. Diffusion models have demonstrated the capability of generating images [15,49,51]. Recently, since the emergence of Stable Diffusion [44], it has dominated the field of image generation, especially for text-to-image generation [2,67]. Apart from texts, ControlNet [64] proposes to introduce multi-modal controls, such as skeleton, sketch, depth maps etc. Stable Diffusion is also applied to some image editing tasks [23,26,27]. Some editing methods [14,37] achieve image editing by modifying the cross-attention maps. Diffusion models have been also widely applied in multiple tasks including video generation [12,17,48], image enhancement [16,45] and image composition [6,33,52,63] To take advantage of the generation power of diffusion models, our work also builds on top of this learning framework.",
306
+ "bbox": [
307
+ 212,
308
+ 672,
309
+ 787,
310
+ 839
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "page_number",
316
+ "text": "4",
317
+ "bbox": [
318
+ 217,
319
+ 114,
320
+ 230,
321
+ 126
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "header",
327
+ "text": "Y. Jiang et al.",
328
+ "bbox": [
329
+ 271,
330
+ 114,
331
+ 367,
332
+ 128
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "3 Preliminaries",
339
+ "text_level": 1,
340
+ "bbox": [
341
+ 215,
342
+ 143,
343
+ 382,
344
+ 160
345
+ ],
346
+ "page_idx": 4
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "Stable Diffusion is based on diffusion models, a kind of probabilistic model. Diffusion models generate images by iterative denoising from a noise map, which is normally sampled from the Gaussian distribution. Given a Gaussian noise map $\\mathbf{x}_T\\sim \\mathcal{N}(\\mathbf{0},\\mathbf{I})$ , the reverse diffusion process for sampling is expressed as follows:",
351
+ "bbox": [
352
+ 214,
353
+ 176,
354
+ 787,
355
+ 238
356
+ ],
357
+ "page_idx": 4
358
+ },
359
+ {
360
+ "type": "equation",
361
+ "text": "\n$$\np _ {\\theta} \\left(\\mathbf {x} _ {0: T}\\right) := p \\left(\\mathbf {x} _ {T}\\right) \\prod_ {t = 1} ^ {T} p _ {\\theta} \\left(\\mathbf {x} _ {t - 1} \\mid \\mathbf {x} _ {t}\\right), \\tag {1}\n$$\n",
362
+ "text_format": "latex",
363
+ "bbox": [
364
+ 367,
365
+ 261,
366
+ 785,
367
+ 301
368
+ ],
369
+ "page_idx": 4
370
+ },
371
+ {
372
+ "type": "equation",
373
+ "text": "\n$$\np _ {\\theta} \\left(\\mathbf {x} _ {t - 1} \\mid \\mathbf {x} _ {t}\\right) := \\mathcal {N} \\left(\\mathbf {x} _ {t - 1}; \\boldsymbol {\\mu} _ {\\theta} \\left(\\mathbf {x} _ {t}, t\\right), \\boldsymbol {\\Sigma} _ {\\theta} \\left(\\mathbf {x} _ {t}, t\\right)\\right), \\tag {2}\n$$\n",
374
+ "text_format": "latex",
375
+ "bbox": [
376
+ 346,
377
+ 305,
378
+ 785,
379
+ 321
380
+ ],
381
+ "page_idx": 4
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "where $\\theta$ is often parameterized using a trained network, and $t$ is the denoising timestep.",
386
+ "bbox": [
387
+ 214,
388
+ 332,
389
+ 782,
390
+ 362
391
+ ],
392
+ "page_idx": 4
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "Traditional diffusion model [15] operates on the pixel space. Due to the high computational cost of generating high-resolution images, the generative capability of the diffusion model is limited to low-resolution images. Stable Diffusion [44] proposes to use the VAE to project the image from pixel space to latent space. With the downscaled latent representations, the model can synthesize high-resolution images. Also, Stable Diffusion introduces texts as a condition and supports text-to-image generation. In Stable Diffusion, $\\theta$ is parameterized as a UNet with multiple self-attention modules and cross-attention modules. In each block, a self-attention module is followed by a cross-attention module. In the cross-attention module, the features $f$ are updated as follows:",
397
+ "bbox": [
398
+ 214,
399
+ 363,
400
+ 787,
401
+ 513
402
+ ],
403
+ "page_idx": 4
404
+ },
405
+ {
406
+ "type": "equation",
407
+ "text": "\n$$\nf ^ {\\prime} = \\operatorname {s o f t m a x} \\left(\\frac {Q K ^ {T}}{\\sqrt {d}}\\right) V, \\tag {3}\n$$\n",
408
+ "text_format": "latex",
409
+ "bbox": [
410
+ 370,
411
+ 525,
412
+ 784,
413
+ 558
414
+ ],
415
+ "page_idx": 4
416
+ },
417
+ {
418
+ "type": "equation",
419
+ "text": "\n$$\nK = \\phi_ {K} (f _ {t}), V = \\phi_ {V} (f _ {t}), Q = \\phi_ {Q} (f), \\tag {4}\n$$\n",
420
+ "text_format": "latex",
421
+ "bbox": [
422
+ 370,
423
+ 561,
424
+ 784,
425
+ 578
426
+ ],
427
+ "page_idx": 4
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "where $f_{t}$ is the text embedding, $\\phi_K, \\phi_V$ , and $\\phi_Q$ are the linear layers to project the features into keys, values, and queries respectively.",
432
+ "bbox": [
433
+ 214,
434
+ 588,
435
+ 787,
436
+ 619
437
+ ],
438
+ "page_idx": 4
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "4 GroupDiff",
443
+ "text_level": 1,
444
+ "bbox": [
445
+ 215,
446
+ 641,
447
+ 354,
448
+ 659
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "In this paper, we propose a unified framework, named GroupDiff, for group portrait editing. We formulate the problem as a conditional inpainting task. As shown in Fig. 2, when inserting a person, we need to inpaint the interaction regions and the missing human parts. As for removing a person, if the original person shakes their hands, we also need to inpaint the interaction region and the removed part. To better guide the synthesis of interaction regions and offer controllability to users, we introduce the skeleton as an additional condition. For person addition, with pose controls, we can explicitly manipulate the pose of the inserted person and the neighboring person, so that their interactions are natural. As for person removal, we also need to change the pose of the existing person to make it to be natural, if there are some human interactions between the removed",
455
+ "bbox": [
456
+ 214,
457
+ 672,
458
+ 787,
459
+ 840
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "header",
465
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
466
+ "bbox": [
467
+ 392,
468
+ 114,
469
+ 732,
470
+ 130
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "page_number",
476
+ "text": "5",
477
+ "bbox": [
478
+ 774,
479
+ 116,
480
+ 784,
481
+ 126
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "image",
487
+ "img_path": "images/765b0584445b01016cb40ae0327ec561dd9aa2bd2673b2adcd4157c427890200.jpg",
488
+ "image_caption": [
489
+ "(a) insertion"
490
+ ],
491
+ "image_footnote": [],
492
+ "bbox": [
493
+ 236,
494
+ 162,
495
+ 334,
496
+ 238
497
+ ],
498
+ "page_idx": 5
499
+ },
500
+ {
501
+ "type": "image",
502
+ "img_path": "images/f7fc0a98c443d9153676c7c94011921511cc0eac232d3a8b8966527b6112e03c.jpg",
503
+ "image_caption": [
504
+ "(b) deletion",
505
+ "Fig.2: Illustration of Common Editing Requests. (a) When we insert a person who only has a half-body picture, we need to adjust the interactions and make the lower part of her body complete. (b) When we are to remove a person from a group photo, we need to change the interactions and inpaint the removed region."
506
+ ],
507
+ "image_footnote": [],
508
+ "bbox": [
509
+ 336,
510
+ 162,
511
+ 482,
512
+ 238
513
+ ],
514
+ "page_idx": 5
515
+ },
516
+ {
517
+ "type": "image",
518
+ "img_path": "images/ca5caaac3911ff1067ffb0653749ddedc1e6b23d7ccd9a275b9cd7d20439d421.jpg",
519
+ "image_caption": [
520
+ "Fig. 3: Overview of GroupDiff. Starting from a group photo from the dataset, we first use the training data generation pipeline (Sec. 4.1) to generate paired data. Then the synthesized pair is fed into the Appearance Preservation Diffusion Model (Sec. 4.2), where inter-person and intra-person guidance are employed to preserve the identities."
521
+ ],
522
+ "image_footnote": [],
523
+ "bbox": [
524
+ 222,
525
+ 285,
526
+ 784,
527
+ 415
528
+ ],
529
+ "page_idx": 5
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "person and existing persons. The overview of our proposed GroupDiff is shown in Fig. 3. We tackle the problem of group photo editing from two perspectives. From the data side, we propose a comprehensive training data generation engine to synthesize paired data, which will be introduced in Sec. 4.1. From the model side, we take the stable diffusion as the backbone [44]. Except for the noisy map, our model also takes an input image masked with the region to be filled, the corresponding mask, and the target skeleton map as inputs. These inputs are concatenated together before feeding them to the network. The masked region is filled with gray color. The skeleton map offers the user an option to specify the desired human interaction. As the masked region often covers the area that should remain the same after editing, such as the clothing and skin color, our model also takes the reference images of persons as conditions. Each reference person is given as a separate image. The reference images can be the inserted person or nearby persons around the interaction regions. We inject the reference images through intra-person and inter-person guidance to let the model learn to keep the appearance details after editing.",
534
+ "bbox": [
535
+ 212,
536
+ 523,
537
+ 787,
538
+ 767
539
+ ],
540
+ "page_idx": 5
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "4.1 Training Data Generation Engine",
545
+ "text_level": 1,
546
+ "bbox": [
547
+ 215,
548
+ 786,
549
+ 539,
550
+ 801
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "The training of diffusion-based models requires large-scale paired data. However, there is no such dataset for group photo editing. Given the difficulties of con",
557
+ "bbox": [
558
+ 212,
559
+ 809,
560
+ 785,
561
+ 839
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "page_number",
567
+ "text": "6",
568
+ "bbox": [
569
+ 217,
570
+ 114,
571
+ 228,
572
+ 126
573
+ ],
574
+ "page_idx": 5
575
+ },
576
+ {
577
+ "type": "header",
578
+ "text": "Y. Jiang et al.",
579
+ "bbox": [
580
+ 271,
581
+ 114,
582
+ 367,
583
+ 128
584
+ ],
585
+ "page_idx": 5
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "ducting group portrait photo editing, collecting a large amount of before-after editing data is infeasible. Therefore, finding a way to generate pairwise data to support the training is demanded. Since we pose our task as an inpainting task, we start from the existing group photo dataset [28, 40, 65]. Considering the real use cases, we design a comprehensive training data generation engine.",
590
+ "bbox": [
591
+ 212,
592
+ 146,
593
+ 782,
594
+ 223
595
+ ],
596
+ "page_idx": 6
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "Person Interaction. Person interactions encompass a diverse set of gestures that form the essence of social dynamics including physical interactions, such as hugging, shaking hands, and raising arms, and many others. These free-form interactions increase difficulties in approximating the real distribution. Besides, different editing operations may incur different challenges. For example, when adding a person into the crowd, the surrounding context also should be completed, such as the area above the person's head. To enforce our model to better generate diverse interactions under different conditions, we use a hierarchical way for synthesizing paired data by randomly masking corresponding regions in group photo images. The coarser scale targets scenarios of large modification such as person insertion and removal, which requires inpainting a large region(Fig. 4). The finer scale targets scenarios of small modification such as interaction manipulation, which needs more fine-grained controls of masked regions(Fig. 5).",
601
+ "bbox": [
602
+ 212,
603
+ 226,
604
+ 787,
605
+ 422
606
+ ],
607
+ "page_idx": 6
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "On a coarser scale, we first identify different persons through labeled bounding boxes. We assume that the interaction regions are often near the boundary of each bonding box. During training, we randomly select single or multiple bounding boxes and mask out the region near the boundary. Suppose the coordinate of the top-left point of the bounding box is $(x_{1},y_{1})$ and the right-bottom point is $(x_{2},y_{2})$ . Then the width of the bounding box is $w = x_{2} - x_{1}$ . Then the left boundary region of the bounding box can be denoted as the rectangle with $(x_{1} - r\\cdot w,y_{1})$ as the top-left corner and $(x_{1} + r\\cdot w,y_{2})$ as the right-bottom corner. The right boundary of the bounding box can be obtained in a similar way. We simply treat the boundary regions as the interaction regions. When synthesizing data, we will randomly mask the left boundary, right boundary, or both boundaries. Empirically, we randomly sample $r$ from [0.1, 0.2]. As shown in the second image in Fig. 4, we mask both boundary regions. Sometimes, we extend the mask outside the bounding box to cover the whole column of the boundary region as shown in the third image of Fig. 4. That is to set the top-left coordinate as $(x_{1} - r\\cdot w,0)$ and the right-bottom coordinate as $(x_{1} + r\\cdot w,h)$ , where $h$ is the height of the image. To avoid facial regions being masked, we use human parsing to unmask the facial regions. To make the shape of the mask closer to the users' inputs, we also augment the shape of the mask into a brush-like one.",
612
+ "bbox": [
613
+ 212,
614
+ 426,
615
+ 787,
616
+ 715
617
+ ],
618
+ "page_idx": 6
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "On a finer scale, we introduce the skeleton to control the person interaction, especially for the hand and arm positions. Involving the skeleton helps users to better specify the desired human interaction. The correctness of the skeleton is important to ensure the data generation quality, we use the state-of-the-art skeleton detection method [7] for extraction. A naive way of generating the mask is to segment out the arm and hand regions with a tight bounding box. However, this simple solution has a critical problem as the mask shape itself will leak the skeleton information. For example, in Fig. 5, if we strictly follow the skeleton, we",
623
+ "bbox": [
624
+ 212,
625
+ 719,
626
+ 787,
627
+ 840
628
+ ],
629
+ "page_idx": 6
630
+ },
631
+ {
632
+ "type": "header",
633
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
634
+ "bbox": [
635
+ 393,
636
+ 114,
637
+ 732,
638
+ 130
639
+ ],
640
+ "page_idx": 6
641
+ },
642
+ {
643
+ "type": "page_number",
644
+ "text": "7",
645
+ "bbox": [
646
+ 774,
647
+ 116,
648
+ 784,
649
+ 126
650
+ ],
651
+ "page_idx": 6
652
+ },
653
+ {
654
+ "type": "image",
655
+ "img_path": "images/111ec1eb68193ab9e9df79bbac2394a874e47163f98e15685929445d2e0d406c.jpg",
656
+ "image_caption": [],
657
+ "image_footnote": [],
658
+ "bbox": [
659
+ 233,
660
+ 150,
661
+ 349,
662
+ 247
663
+ ],
664
+ "page_idx": 7
665
+ },
666
+ {
667
+ "type": "image",
668
+ "img_path": "images/f7f2e4a23795d235a5b5d40e39c696d2c17ca818581a7dc34ea25ee6378e146e.jpg",
669
+ "image_caption": [],
670
+ "image_footnote": [],
671
+ "bbox": [
672
+ 352,
673
+ 150,
674
+ 467,
675
+ 247
676
+ ],
677
+ "page_idx": 7
678
+ },
679
+ {
680
+ "type": "image",
681
+ "img_path": "images/7129f4858be72a3478146364fd3bb8dd146030c36add6653f1088eb7878c38c4.jpg",
682
+ "image_caption": [
683
+ "Fig.4: Coarse Level Training Data Generation for Person Interaction. At the coarse level, we generate masks according to the bounding boxes of persons."
684
+ ],
685
+ "image_footnote": [],
686
+ "bbox": [
687
+ 468,
688
+ 150,
689
+ 583,
690
+ 247
691
+ ],
692
+ "page_idx": 7
693
+ },
694
+ {
695
+ "type": "image",
696
+ "img_path": "images/a27f682fec4a08db5b1d4bbcc6491ccb3098e490720a36ce29a6653448d513c3.jpg",
697
+ "image_caption": [],
698
+ "image_footnote": [],
699
+ "bbox": [
700
+ 233,
701
+ 275,
702
+ 349,
703
+ 373
704
+ ],
705
+ "page_idx": 7
706
+ },
707
+ {
708
+ "type": "image",
709
+ "img_path": "images/799cbcf70d5881c7469d9647f5ea9fc207e567cc7dbb5c2f989c6ec5cb5269d4.jpg",
710
+ "image_caption": [],
711
+ "image_footnote": [],
712
+ "bbox": [
713
+ 352,
714
+ 275,
715
+ 467,
716
+ 373
717
+ ],
718
+ "page_idx": 7
719
+ },
720
+ {
721
+ "type": "image",
722
+ "img_path": "images/c90162e6290b50d0ea0adc61beaded076667bc81672836880c3c2be45b074517.jpg",
723
+ "image_caption": [
724
+ "Fig.5: Fine Level Training Data Generation for Person Interaction. At the fine level, we generate masks according to the skeleton and augmented skeleton."
725
+ ],
726
+ "image_footnote": [],
727
+ "bbox": [
728
+ 468,
729
+ 276,
730
+ 581,
731
+ 372
732
+ ],
733
+ "page_idx": 7
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "can obtain the masked image as shown in the second column. In this case, the model may overlook the skeleton condition during training because the masked image itself has leaked the skeleton information. As a result, the obtained model fails to generate images conditioned on skeletons at inference time. Therefore, we adopt data augmentations to avoid this issue. Except for the tight bounding box mask around arms and hands, we randomly rotate the arms or hands in a different direction. As shown in the third column of Fig. 5, we randomly rotate the right arm and obtain the augmented skeleton. We mask both arm regions according to the original skeleton and augmented skeleton.",
738
+ "bbox": [
739
+ 212,
740
+ 410,
741
+ 787,
742
+ 545
743
+ ],
744
+ "page_idx": 7
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "Body completion. In certain scenarios, our model also needs to complete the body part(s) of a person. For example, when there are occlusions among different persons, removing one person needs the body completion of the surrounding people. When inserting a person, if the reference image only contains a partial body, in this case, the model needs to learn to complete the rest parts. The data synthesis for the body completion is straightforward. We randomly mask out the lower body parts. Still, $(x_{1},y_{1})$ represents the top-left point of the bounding box and $(x_{2},y_{2})$ represents the right-bottom point. We randomly mask the region from $(x_{1},y_{1} + r\\cdot (y_{2} - y_{1})$ to $(x_{2},y_{2})$ , where $r$ is sampled from [0.5, 0.9]. Some examples are shown in Fig. 6.",
749
+ "bbox": [
750
+ 212,
751
+ 547,
752
+ 787,
753
+ 699
754
+ ],
755
+ "page_idx": 7
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "4.2 Person-Aware Attention for Appearance Preservation",
760
+ "text_level": 1,
761
+ "bbox": [
762
+ 214,
763
+ 722,
764
+ 702,
765
+ 738
766
+ ],
767
+ "page_idx": 7
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "Our model needs to preserve the appearance of persons after editing. Since the content cannot be revealed if it is covered with masks during inference, we take the persons that users want to maintain the appearance out as reference images. To ensure details are encoded into the model accurately, inspired by previous works [6,25], we choose to inject reference image(s) through the cross-attention module. The reference images during the training are obtained as follows: 1)",
772
+ "bbox": [
773
+ 212,
774
+ 750,
775
+ 787,
776
+ 840
777
+ ],
778
+ "page_idx": 7
779
+ },
780
+ {
781
+ "type": "page_number",
782
+ "text": "8",
783
+ "bbox": [
784
+ 217,
785
+ 114,
786
+ 228,
787
+ 126
788
+ ],
789
+ "page_idx": 7
790
+ },
791
+ {
792
+ "type": "header",
793
+ "text": "Y. Jiang et al.",
794
+ "bbox": [
795
+ 271,
796
+ 114,
797
+ 369,
798
+ 128
799
+ ],
800
+ "page_idx": 7
801
+ },
802
+ {
803
+ "type": "image",
804
+ "img_path": "images/8794a1ddeb953fb0cd23fdc18e3ca5c888d94a849c1e8617edf16bffbba881a6.jpg",
805
+ "image_caption": [
806
+ "Fig.6: Training Data Generation for Body Completion. We randomly mask the lower parts of the body so that the model has the capability of body completion."
807
+ ],
808
+ "image_footnote": [],
809
+ "bbox": [
810
+ 233,
811
+ 148,
812
+ 586,
813
+ 250
814
+ ],
815
+ "page_idx": 8
816
+ },
817
+ {
818
+ "type": "image",
819
+ "img_path": "images/f56eda2ff0ae07af8eb22c01b2f7c97cf3ef971dd052b70b4426a25cfbe709a6.jpg",
820
+ "image_caption": [
821
+ "Fig. 7: Overview of Person-Aware Attention Module for Appearance Preservation. We employ intra-person guidance and inter-person guidance to better preserve the appearance. The intra-person guidance concatenates the pose features and image features as keys. The inter-person guidance is provided by using the information deduced from the positions of the persons. The indicator matrix is employed to assign higher weights to corresponding values in the attention matrix."
822
+ ],
823
+ "image_footnote": [],
824
+ "bbox": [
825
+ 243,
826
+ 267,
827
+ 754,
828
+ 421
829
+ ],
830
+ "page_idx": 8
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "segment the person(s), and 2) fill the background with white. However, feeding all reference images through concatenation to the model like previous methods does not work in our case. This can cause a mismatch problem between the reference and target persons because the attention matrix is applied among query features and features of all reference images. The model will confuse which part to attend if multiple reference images are provided. We thus introduce a person-aware cross-attention mechanism for preserving content details.",
835
+ "bbox": [
836
+ 212,
837
+ 559,
838
+ 787,
839
+ 665
840
+ ],
841
+ "page_idx": 8
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "Instead of sending raw pixels to the cross-attention module, we first encode each reference image $I_{i}$ using DINOv2 [42] into a feature embedding $f_{I_i} \\in \\mathbb{R}^{256 \\times 768}$ , which has been validated to be effective for image generation and editing tasks [6]. If we follow the conventional cross-attention operation, after concatenating features together as $F = [f_{I_1}, f_{I_2}, \\dots, f_{I_N}]$ , we obtain the value embedding $V \\in \\mathbb{R}^{(256 \\cdot N) \\times d}$ and key embedding $K \\in \\mathbb{R}^{(256 \\cdot N) \\times d}$ through linear layers individually to compute the output feature $O$ as:",
846
+ "bbox": [
847
+ 212,
848
+ 666,
849
+ 787,
850
+ 772
851
+ ],
852
+ "page_idx": 8
853
+ },
854
+ {
855
+ "type": "equation",
856
+ "text": "\n$$\nO = \\operatorname {s o f t m a x} \\left(\\frac {Q K ^ {T}}{\\sqrt {d}}\\right) V, \\tag {5}\n$$\n",
857
+ "text_format": "latex",
858
+ "bbox": [
859
+ 406,
860
+ 782,
861
+ 785,
862
+ 818
863
+ ],
864
+ "page_idx": 8
865
+ },
866
+ {
867
+ "type": "equation",
868
+ "text": "\n$$\nK = \\phi_ {K} (F), V = \\phi_ {V} (F), \\tag {6}\n$$\n",
869
+ "text_format": "latex",
870
+ "bbox": [
871
+ 408,
872
+ 819,
873
+ 785,
874
+ 837
875
+ ],
876
+ "page_idx": 8
877
+ },
878
+ {
879
+ "type": "header",
880
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
881
+ "bbox": [
882
+ 393,
883
+ 114,
884
+ 732,
885
+ 128
886
+ ],
887
+ "page_idx": 8
888
+ },
889
+ {
890
+ "type": "page_number",
891
+ "text": "9",
892
+ "bbox": [
893
+ 774,
894
+ 116,
895
+ 784,
896
+ 126
897
+ ],
898
+ "page_idx": 8
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "where $d$ denotes feature dimension, and the query embedding $Q \\in \\mathbb{R}^{HW \\times d}$ comes from the output of the last layer. $H$ and $W$ refer to the spatial resolution of features from the last layer (a.k.a self-attention layer). Based on this formulation, we introduce intra-person and inter-person guidances to solve our problem.",
903
+ "bbox": [
904
+ 212,
905
+ 145,
906
+ 787,
907
+ 205
908
+ ],
909
+ "page_idx": 9
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "Intra-Person Guidance. For the intra-person guidance, it is essential to let the model know the correspondences between pixel appearances with body components for each reference image. Then the model can adaptively learn the mapping to restore accurate appearances. We introduce the skeleton pose $P_{I_i}$ of exemplar images $I_i$ as the intra-person indicators as shown in Fig. 7. Similarly, we first extract pose features $p_{I_i}$ through a separately learned encoder, and compute the key embedding with an MLP after concatenating the image and pose features:",
914
+ "bbox": [
915
+ 212,
916
+ 207,
917
+ 787,
918
+ 313
919
+ ],
920
+ "page_idx": 9
921
+ },
922
+ {
923
+ "type": "equation",
924
+ "text": "\n$$\n\\dot {K} = \\phi_ {K} ([ K _ {1}, K _ {2}, \\dots , K _ {N} ]), \\tag {7}\n$$\n",
925
+ "text_format": "latex",
926
+ "bbox": [
927
+ 406,
928
+ 338,
929
+ 784,
930
+ 354
931
+ ],
932
+ "page_idx": 9
933
+ },
934
+ {
935
+ "type": "equation",
936
+ "text": "\n$$\nK _ {n} = \\operatorname {M L P} \\left(\\left[ f _ {I _ {n}}, p _ {I _ {n}} \\right]\\right), \\tag {8}\n$$\n",
937
+ "text_format": "latex",
938
+ "bbox": [
939
+ 406,
940
+ 358,
941
+ 784,
942
+ 375
943
+ ],
944
+ "page_idx": 9
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "where $[\\cdot ]$ is the concatenation operation and $\\mathrm{MLP}(\\cdot)$ is the layers to process the concatenated features. The attention matrix is obtained as follows:",
949
+ "bbox": [
950
+ 214,
951
+ 383,
952
+ 787,
953
+ 412
954
+ ],
955
+ "page_idx": 9
956
+ },
957
+ {
958
+ "type": "equation",
959
+ "text": "\n$$\nM _ {a t t n} = Q \\hat {K} ^ {T} \\in \\mathbb {R} ^ {H W \\times 2 5 6 \\cdot N}. \\tag {9}\n$$\n",
960
+ "text_format": "latex",
961
+ "bbox": [
962
+ 398,
963
+ 422,
964
+ 784,
965
+ 441
966
+ ],
967
+ "page_idx": 9
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "It should be noted that we only introduce the pose information into keys and do not embed the pose information into values. The motivation lies in that pose information is an indicator of the body component and it should not be fused with the appearance information in keys.",
972
+ "bbox": [
973
+ 212,
974
+ 450,
975
+ 787,
976
+ 511
977
+ ],
978
+ "page_idx": 9
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "Inter-Person Guidance. For inter-person guidance, as shown in Fig. 7, we introduce the indicator mask to specify the locations of each reference person. The indicator masks $\\{m_i\\in \\mathbb{R}^{H\\times W}\\}$ are obtained by bounding boxes around each person. The bounding boxes cover the full body. For each reference image, we reshape the corresponding indicator mask $m_{i}$ into a flattened tensor (whose shape is $\\mathbb{R}^{HW}$ ) and repeat it into a matrix so that it has the shape of $\\mathbb{R}^{HW\\times 256}$ . The indicator matrix $M_{ind}\\in \\mathbb{R}^{HW\\times 256\\cdot N}$ is obtained by concatenating the matrices of all reference images. We add the indicator matrix to the attention matrix before applying the softmax operation. With this operation, when calculating the final output, the corresponding location will have higher weights to attend to the correct reference features. The operation is computed as:",
983
+ "bbox": [
984
+ 212,
985
+ 511,
986
+ 787,
987
+ 679
988
+ ],
989
+ "page_idx": 9
990
+ },
991
+ {
992
+ "type": "equation",
993
+ "text": "\n$$\nO = \\operatorname {s o f t m a x} \\left(\\frac {M _ {\\text {a t t n}} + w ^ {\\prime} \\cdot M _ {\\text {i n d}}}{\\sqrt {d}}\\right) V, \\tag {10}\n$$\n",
994
+ "text_format": "latex",
995
+ "bbox": [
996
+ 372,
997
+ 686,
998
+ 784,
999
+ 720
1000
+ ],
1001
+ "page_idx": 9
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "where the value embedding $V$ is obtained from the DINO feature of reference images without involving pose information. In practice [2], we multiply the indicator matrix by a scale factor $w'$ , which is obtained as follows:",
1006
+ "bbox": [
1007
+ 212,
1008
+ 727,
1009
+ 787,
1010
+ 773
1011
+ ],
1012
+ "page_idx": 9
1013
+ },
1014
+ {
1015
+ "type": "equation",
1016
+ "text": "\n$$\nw ^ {\\prime} = w \\cdot \\log (1 + \\sigma) \\cdot \\max \\left(M _ {a t t n}\\right), \\tag {11}\n$$\n",
1017
+ "text_format": "latex",
1018
+ "bbox": [
1019
+ 383,
1020
+ 784,
1021
+ 784,
1022
+ 800
1023
+ ],
1024
+ "page_idx": 9
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "where $w$ is the user-specified factor, and $\\sigma$ corresponds to the noise level at different diffusion steps.",
1029
+ "bbox": [
1030
+ 212,
1031
+ 809,
1032
+ 787,
1033
+ 840
1034
+ ],
1035
+ "page_idx": 9
1036
+ },
1037
+ {
1038
+ "type": "page_number",
1039
+ "text": "10",
1040
+ "bbox": [
1041
+ 217,
1042
+ 114,
1043
+ 235,
1044
+ 126
1045
+ ],
1046
+ "page_idx": 9
1047
+ },
1048
+ {
1049
+ "type": "header",
1050
+ "text": "Y. Jiang et al.",
1051
+ "bbox": [
1052
+ 271,
1053
+ 114,
1054
+ 367,
1055
+ 128
1056
+ ],
1057
+ "page_idx": 9
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "5 Experiments",
1062
+ "text_level": 1,
1063
+ "bbox": [
1064
+ 217,
1065
+ 145,
1066
+ 374,
1067
+ 162
1068
+ ],
1069
+ "page_idx": 10
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "5.1 Implementation Details",
1074
+ "text_level": 1,
1075
+ "bbox": [
1076
+ 217,
1077
+ 186,
1078
+ 454,
1079
+ 202
1080
+ ],
1081
+ "page_idx": 10
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Our method is implemented using PyTorch. The model is trained using eight NVIDIA A100 GPUs. We use the Adam optimizer to optimize the model. The beta is set as the default value. We set the learning rate as $10^{-4}$ . The learning rate scheduler is LambdaLinearScheduler. The number of warm-up steps is set as 2500. The batch size is set as 4 per GPU, and the global batch size is 32. The model is initialized with the Stable-Diffusion v1.5 Inpainting model. The original Stable Diffusion Inpainting model has 9 channels as input. We concatenate the skeleton as an additional input, and thus the number of channels is 12. For the first 9 channels of the first layer, we inherit the weights of Stable Diffusion Inpainting model and initialize the remaining three channels with zero weights. The model is trained for 80 epochs. The resolution of the image we use for training is $512 \\times 512$ . We use the LV-MHP-v2 dataset [28,40,65], which is composed of 25,403 group photo images. With each image, there are human parsing annotations. For human parsing, we directly use the annotations provided in the dataset. We use MMPose [7] to predict the skeleton. When editing group photos at inference time, we adjust the lighting using the off-the-shelf model [24].",
1086
+ "bbox": [
1087
+ 217,
1088
+ 223,
1089
+ 785,
1090
+ 465
1091
+ ],
1092
+ "page_idx": 10
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "5.2 Comparison Methods",
1097
+ "text_level": 1,
1098
+ "bbox": [
1099
+ 217,
1100
+ 500,
1101
+ 437,
1102
+ 513
1103
+ ],
1104
+ "page_idx": 10
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "SD Inpainting [44]. Stable Diffusion has provided the pretrained weights for inpainting. Here, we use the Stable Diffusion Inpainting (SD Inpainting) model as a baseline method. For person insertion, the interaction regions and the regions surrounding the inserted person are masked. For person removal, we mask the regions of the person to be removed. At inference time, SD Inpainting model is fed with the same masked image and masks as ours. Apart from pretrained SD Inpainting model, we also compare our model with two more baselines, which are adapted from the pretrained SD Inpainting model. The first baseline is the finetuned SD Inpainting model. We use our synthesized data to finetune the SD Inpainting model. The second baseline is the finetuned SD Inpainting model with skeleton control. Similar to our method, we add skeleton control to the SD inpainting model. We concatenate the skeleton with other inputs. Then we finetune the model using our generated data pair.",
1109
+ "bbox": [
1110
+ 217,
1111
+ 535,
1112
+ 785,
1113
+ 731
1114
+ ],
1115
+ "page_idx": 10
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Paint by Example [61]. Paint by Example is an exemplar-based image editing method. It fills masked regions using exemplar images. The exemplar image is fed into an image encoder, and then the extracted features are fed into the cross-attention module. For person insertion, we feed the model the full mask covering the place where the person is to be inserted and the single-person image as the exemplar image. For person deletion, the mask region is the area where the person is removed, and the exemplar image is a crop of background.",
1120
+ "bbox": [
1121
+ 217,
1122
+ 734,
1123
+ 785,
1124
+ 839
1125
+ ],
1126
+ "page_idx": 10
1127
+ },
1128
+ {
1129
+ "type": "header",
1130
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
1131
+ "bbox": [
1132
+ 393,
1133
+ 114,
1134
+ 730,
1135
+ 130
1136
+ ],
1137
+ "page_idx": 10
1138
+ },
1139
+ {
1140
+ "type": "page_number",
1141
+ "text": "11",
1142
+ "bbox": [
1143
+ 767,
1144
+ 116,
1145
+ 782,
1146
+ 126
1147
+ ],
1148
+ "page_idx": 10
1149
+ },
1150
+ {
1151
+ "type": "image",
1152
+ "img_path": "images/b6d494b9131201b0695770cd9a199fa9aed97ea77f76ab33e30505a4880b7a38.jpg",
1153
+ "image_caption": [
1154
+ "Fig. 8: Qualitative Comparisons. We compare our proposed GroupDiff against SD Inpainting [44] and Paint by Example [61]. (a) We show two examples of person insertion. (b) We show one example of person removal."
1155
+ ],
1156
+ "image_footnote": [],
1157
+ "bbox": [
1158
+ 217,
1159
+ 143,
1160
+ 785,
1161
+ 388
1162
+ ],
1163
+ "page_idx": 11
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "5.3 Qualitative Comparisons",
1168
+ "text_level": 1,
1169
+ "bbox": [
1170
+ 215,
1171
+ 483,
1172
+ 465,
1173
+ 500
1174
+ ],
1175
+ "page_idx": 11
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Figure 8 shows some qualitative comparisons of our method. The results of person insertion are shown in Fig. 8(a). In the first row, we aim to add the old man to the image and make their hands hold together. According to the original image and the skeleton, we can get the masked image covering the interaction regions and the background regions. For the SD Inpainting model, the model adds a lot of persons behind the old man. Also, due to the lack of skeleton control, the interaction regions are not filled as expected. For Paint by Example, it inserts the old man into the left side of the photo and the obtained image looks to be composed of two split parts. Also, the appearance of the inserted person changed a lot. As for our proposed GroupDiff, it successfully inserts the person harmoniously. The hands of the persons correctly follow the given skeleton mask.",
1180
+ "bbox": [
1181
+ 212,
1182
+ 507,
1183
+ 787,
1184
+ 672
1185
+ ],
1186
+ "page_idx": 11
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "In the second example of Fig. 8(a), a lady is to be inserted into the middle of the image. After insertion, the hands of the lady are supposed to be connected with neighboring persons as indicated by the skeleton mask. Still, the SD Inpainting model tends to add another person into the middle. The interaction regions are not synthesized as expected. For the Paint by Example, a lady is inserted into the photo, however, the identity of the person is not the one indicated in the exemplar image. By contrast, our model successfully inserts the target person into the photo with reasonable interactions.",
1191
+ "bbox": [
1192
+ 212,
1193
+ 674,
1194
+ 787,
1195
+ 794
1196
+ ],
1197
+ "page_idx": 11
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "In Fig. 8(b), we show one example of person removal. We aim to remove the person standing on the left. The mask is obtained according to the bounding box of the person to be removed. After removing the person, we need to adjust the",
1202
+ "bbox": [
1203
+ 212,
1204
+ 794,
1205
+ 787,
1206
+ 840
1207
+ ],
1208
+ "page_idx": 11
1209
+ },
1210
+ {
1211
+ "type": "page_number",
1212
+ "text": "12",
1213
+ "bbox": [
1214
+ 217,
1215
+ 114,
1216
+ 235,
1217
+ 126
1218
+ ],
1219
+ "page_idx": 11
1220
+ },
1221
+ {
1222
+ "type": "header",
1223
+ "text": "Y. Jiang et al.",
1224
+ "bbox": [
1225
+ 271,
1226
+ 114,
1227
+ 367,
1228
+ 128
1229
+ ],
1230
+ "page_idx": 11
1231
+ },
1232
+ {
1233
+ "type": "table",
1234
+ "img_path": "images/c9230171ce872b76218e762cca474c3dd51ede20fbd9baacb3d1071e85f0dceb.jpg",
1235
+ "table_caption": [
1236
+ "Table 1: Quantitative Comparisons. We report PSNR, SSIM, FID, CLIP-I and DINO scores on synthesized data. Compared to baseline methods, our method achieves significantly better performance. \"Random Mask\" and \"Mask One Person\" refer to two ablation studies on the training data generation pipeline. \"w/o inter-person\" and \"w/o intra-person\" are two ablation studies on the person-aware module."
1237
+ ],
1238
+ "table_footnote": [],
1239
+ "table_body": "<table><tr><td>Methods</td><td>PSNR ↑</td><td>SSIM ↑</td><td>FID ↓</td><td>CLIP-I ↑</td><td>DINO ↑</td></tr><tr><td>SD-Inpainting [44]</td><td>17.4148</td><td>0.7562</td><td>24.1276</td><td>79.5467</td><td>91.2230</td></tr><tr><td>Paint-by-Example [61]</td><td>14.4848</td><td>0.6298</td><td>34.8999</td><td>74.1095</td><td>87.4915</td></tr><tr><td>Finetuned SD Inpainting</td><td>18.3132</td><td>0.7846</td><td>20.4833</td><td>82.4550</td><td>93.1132</td></tr><tr><td>Finetuned SD Inpainting with Skeleton</td><td>18.5688</td><td>0.7868</td><td>20.3351</td><td>83.3211</td><td>93.5158</td></tr><tr><td>GroupDiff (Ours)</td><td>19.4569</td><td>0.8033</td><td>18.1035</td><td>86.8967</td><td>95.0284</td></tr></table>",
1240
+ "bbox": [
1241
+ 240,
1242
+ 226,
1243
+ 754,
1244
+ 297
1245
+ ],
1246
+ "page_idx": 12
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "postures of the remaining person. Otherwise, the pose of the remaining person would look weird. Using the SD Inpainting model, there is another person present in the final image. For the Paint by Example model, we feed a part of background as the exemplar image. The masked region is filled with some random colors. The final column shows our result. By removing the person and feeding the adjusted skeleton, our model can synthesize a natural photo.",
1251
+ "bbox": [
1252
+ 212,
1253
+ 325,
1254
+ 787,
1255
+ 416
1256
+ ],
1257
+ "page_idx": 12
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "5.4 Quantitative Comparisons",
1262
+ "text_level": 1,
1263
+ "bbox": [
1264
+ 214,
1265
+ 436,
1266
+ 478,
1267
+ 452
1268
+ ],
1269
+ "page_idx": 12
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "As collecting large well-curated test sets is difficult, we conduct the quantitative comparisons on a synthetic dataset that the training has never seen. We use the validation set of LV-MHP-v2 [28], which has no overlap with our synthesized training data. We report the PSNR, SSIM, FID, CLIP-I, and DINO scores in Table 1. Compared with SD Inpainting and Paint by Example, our proposed GroupDiff has significantly better performance. Table 1 shows that the quantitative results improve after we fine-tune the pretrained SD inpainting model. Besides, skeleton control helps to improve the performance. The PSNR and SSIM values increase, while the FID score decreases. However, even with skeleton control, there is still a performance gap between this model and our proposed GroupDiff, which indicates the necessity of our proposed modules.",
1274
+ "bbox": [
1275
+ 212,
1276
+ 460,
1277
+ 787,
1278
+ 628
1279
+ ],
1280
+ "page_idx": 12
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "5.5 Ablation Studies",
1285
+ "text_level": 1,
1286
+ "bbox": [
1287
+ 214,
1288
+ 648,
1289
+ 401,
1290
+ 664
1291
+ ],
1292
+ "page_idx": 12
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "We report quantitative results for ablation studies in Table 2. We will show visual comparisons in supplementary files.",
1297
+ "bbox": [
1298
+ 212,
1299
+ 672,
1300
+ 785,
1301
+ 703
1302
+ ],
1303
+ "page_idx": 12
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "Training Data Generation Engine. We first investigate the performance of the model with \"Random Mask\". The ablation model is trained using the randomly masked group photo images. The images are randomly masked regardless of the bounding boxes of the persons and the skeletons. Quantitative results reported in Table 2 demonstrate that the model trained with the random mask has inferior performance. As discussed before, with the random mask, the model can infer the pose from the masked image and thus the capability of conditioning on the skeleton is limited. We also experiment with the \"Mask One Person\" strategy, we synthesize the data by directly masking one person according to",
1308
+ "bbox": [
1309
+ 212,
1310
+ 704,
1311
+ 787,
1312
+ 840
1313
+ ],
1314
+ "page_idx": 12
1315
+ },
1316
+ {
1317
+ "type": "header",
1318
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
1319
+ "bbox": [
1320
+ 393,
1321
+ 114,
1322
+ 732,
1323
+ 130
1324
+ ],
1325
+ "page_idx": 12
1326
+ },
1327
+ {
1328
+ "type": "page_number",
1329
+ "text": "13",
1330
+ "bbox": [
1331
+ 767,
1332
+ 114,
1333
+ 785,
1334
+ 126
1335
+ ],
1336
+ "page_idx": 12
1337
+ },
1338
+ {
1339
+ "type": "table",
1340
+ "img_path": "images/14691d0b289cd9d8c465e53f6ecfeb26e6ff2b7104ba8cfdf9fc8670126090aa.jpg",
1341
+ "table_caption": [
1342
+ "Table 2: Quantitative Comparisons for Ablation Studies. We conduct ablation studies from two perspectives. \"Random Mask\" and \"Mask One Person\" refer to two ablation studies on the training data generation pipeline. \"w/o inter-person\" and \"w/o intra-person\" are two ablation studies on the person-aware module."
1343
+ ],
1344
+ "table_footnote": [],
1345
+ "table_body": "<table><tr><td>Methods</td><td>PSNR ↑</td><td>SSIM ↑</td><td>FID ↓</td></tr><tr><td>Random Mask</td><td>17.3299</td><td>0.7727</td><td>26.2193</td></tr><tr><td>Mask One Person</td><td>17.9515</td><td>0.7777</td><td>22.7869</td></tr><tr><td>w/o inter-person</td><td>19.2612</td><td>0.7997</td><td>18.4946</td></tr><tr><td>w/o intra-person</td><td>19.4236</td><td>0.8034</td><td>18.2274</td></tr><tr><td>GroupDiff (Ours)</td><td>19.4569</td><td>0.8033</td><td>18.1035</td></tr></table>",
1346
+ "bbox": [
1347
+ 338,
1348
+ 212,
1349
+ 655,
1350
+ 311
1351
+ ],
1352
+ "page_idx": 13
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "the bounding box [25]. Still, by randomly masking a single person, the model has limited capability of inpainting interaction regions. As shown in Table 2, our model has a significantly better performance.",
1357
+ "bbox": [
1358
+ 212,
1359
+ 339,
1360
+ 782,
1361
+ 383
1362
+ ],
1363
+ "page_idx": 13
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "Person-aware Attention. As shown in Table 2, after removing the inter-person guidance, the model will have inferior PSNR, SSIM, and FID scores, which means the performance of the model \"w/o inter-person\" is inferior. As for removing the intra-person guidance, the model \"w/o intra-person\" has a better SSIM score but inferior PSNR and FID performance. We show visual examples in the supplementary file to demonstrate the effectiveness of this module.",
1368
+ "bbox": [
1369
+ 212,
1370
+ 385,
1371
+ 784,
1372
+ 474
1373
+ ],
1374
+ "page_idx": 13
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "text": "6 Conclusion",
1379
+ "text_level": 1,
1380
+ "bbox": [
1381
+ 214,
1382
+ 501,
1383
+ 359,
1384
+ 517
1385
+ ],
1386
+ "page_idx": 13
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "In this work, we introduce a pioneering solution to the intricate challenging problem of group portrait editing. We formulate the task as an inpainting problem, addressing issues such as limited labeled data, appearance preservation, and manipulation flexibility. Our approach includes a data generation pipeline mimicking the real editing scenarios and a person-aware appearance preservation module for consistent editing results. Extensive experiments demonstrate the superiority of our proposed method. With the well-known difficulties of human generation and manipulation even for a single person, there is still ample room for refinement and innovation in our task. We hope our work can inspire the exploration of this important task.",
1391
+ "bbox": [
1392
+ 212,
1393
+ 536,
1394
+ 787,
1395
+ 686
1396
+ ],
1397
+ "page_idx": 13
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Limitations. Our proposed GroupDiff makes an assumption that the inserted person image has correct facial expression and facing orientations. If a person image from the side view is given, our method cannot insert the person into the group photo where all people are facing front. Besides, in the current model, the lighting of the inserted person is changed as a preprocessing step. Thus, the ability to adjust the lighting is capped by the capability of the pretrained model. More powerful models can be used to better adjust the lighting [10,21,22].",
1402
+ "bbox": [
1403
+ 212,
1404
+ 688,
1405
+ 787,
1406
+ 794
1407
+ ],
1408
+ "page_idx": 13
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "Potential Negative Impact. The proposed method can be used to generate fake images by putting a lot of people who don't know each other in a group photo. It may be negatively used to fabricate certain facts.",
1413
+ "bbox": [
1414
+ 212,
1415
+ 795,
1416
+ 787,
1417
+ 839
1418
+ ],
1419
+ "page_idx": 13
1420
+ },
1421
+ {
1422
+ "type": "page_number",
1423
+ "text": "14",
1424
+ "bbox": [
1425
+ 217,
1426
+ 114,
1427
+ 235,
1428
+ 126
1429
+ ],
1430
+ "page_idx": 13
1431
+ },
1432
+ {
1433
+ "type": "header",
1434
+ "text": "Y. Jiang et al.",
1435
+ "bbox": [
1436
+ 271,
1437
+ 114,
1438
+ 367,
1439
+ 128
1440
+ ],
1441
+ "page_idx": 13
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "Acknowledgement. This study is supported by the Ministry of Education, Singapore, under its MOE AcRF Tier 2 (MOET2EP20221-0012), and NTU NAP.",
1446
+ "bbox": [
1447
+ 215,
1448
+ 146,
1449
+ 784,
1450
+ 191
1451
+ ],
1452
+ "page_idx": 14
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "References",
1457
+ "text_level": 1,
1458
+ "bbox": [
1459
+ 217,
1460
+ 217,
1461
+ 321,
1462
+ 233
1463
+ ],
1464
+ "page_idx": 14
1465
+ },
1466
+ {
1467
+ "type": "list",
1468
+ "sub_type": "ref_text",
1469
+ "list_items": [
1470
+ "1. Albahar, B., Lu, J., Yang, J., Shu, Z., Shechtman, E., Huang, J.B.: Pose with style: Detail-preserving pose-guided image synthesis with conditional stylegan. ACM Transactions on Graphics (TOG) 40(6), 1-11 (2021)",
1471
+ "2. Balaji, Y., Nah, S., Huang, X., Vahdat, A., Song, J., Kreis, K., Aittala, M., Aila, T., Laine, S., Catanzaro, B., et al.: edifi: Text-to-image diffusion models with an ensemble of expert denoisers. arXiv preprint arXiv:2211.01324 (2022)",
1472
+ "3. Balakrishnan, G., Zhao, A., Dalca, A.V., Durand, F., Guttag, J.: Synthesizing images of humans in unseen poses. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 8340-8348 (2018)",
1473
+ "4. Baldrati, A., Morelli, D., Cartella, G., Cornia, M., Bertini, M., Cucchiara, R.: Multimodal garment designer: Human-centric latent diffusion models for fashion image editing. arXiv preprint arXiv:2304.02051 (2023)",
1474
+ "5. Chen, C.Y., Chen, Y.C., Shuai, H.H., Cheng, W.H.: Size does matter: Size-aware virtual try-on via clothing-oriented transformation try-on network. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 7513-7522 (2023)",
1475
+ "6. Chen, X., Huang, L., Liu, Y., Shen, Y., Zhao, D., Zhao, H.: Anydoor: Zero-shot object-level image customization. arXiv preprint arXiv:2307.09481 (2023)",
1476
+ "7. Contributors, M.: Openmmlab pose estimation toolbox and benchmark. https://github.com/open-mmlab/mmpose (2020)",
1477
+ "8. Darabi, S., Shechtman, E., Barnes, C., Goldman, D.B., Sen, P.: Image melding: Combining inconsistent images using patch-based synthesis. ACM Transactions on graphics (TOG) 31(4), 1-10 (2012)",
1478
+ "9. Esser, P., Rombach, R., Ommer, B.: Taming transformers for high-resolution image synthesis. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 12873-12883 (2021)",
1479
+ "0. Guerreiro, J.J.A., Nakazawa, M., Stenger, B.: Pct-net: Full resolution image harmonization using pixel-wise color transformations. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5917-5926 (2023)",
1480
+ "1. Han, X., Wu, Z., Wu, Z., Yu, R., Davis, L.S.: Viton: An image-based virtual try-on network. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 7543-7552 (2018)",
1481
+ "2. Harvey, W., Naderiparizi, S., Masrani, V., Weilbach, C., Wood, F.: Flexible diffusion modeling of long videos. arXiv preprint arXiv:2205.11495 (2022)",
1482
+ "3. Hays, J., Efros, A.A.: Scene completion using millions of photographs. ACM Transactions on Graphics (ToG) 26(3), 4-es (2007)",
1483
+ "4. Hertz, A., Mokady, R., Tenenbaum, J., Aberman, K., Pritch, Y., Cohen-Or, D.: Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626 (2022)",
1484
+ "5. Ho, J., Jain, A., Abbeel, P.: Denoising diffusion probabilistic models (2020)",
1485
+ "6. Ho, J., Sahara, C., Chan, W., Fleet, D.J., Norouzi, M., Salimans, T.: Cascaded diffusion models for high fidelity image generation. JMLR (2022)"
1486
+ ],
1487
+ "bbox": [
1488
+ 225,
1489
+ 250,
1490
+ 784,
1491
+ 839
1492
+ ],
1493
+ "page_idx": 14
1494
+ },
1495
+ {
1496
+ "type": "header",
1497
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
1498
+ "bbox": [
1499
+ 393,
1500
+ 114,
1501
+ 732,
1502
+ 128
1503
+ ],
1504
+ "page_idx": 14
1505
+ },
1506
+ {
1507
+ "type": "page_number",
1508
+ "text": "15",
1509
+ "bbox": [
1510
+ 767,
1511
+ 116,
1512
+ 784,
1513
+ 126
1514
+ ],
1515
+ "page_idx": 14
1516
+ },
1517
+ {
1518
+ "type": "list",
1519
+ "sub_type": "ref_text",
1520
+ "list_items": [
1521
+ "17. Ho, J., Salimans, T., Gritsenko, A., Chan, W., Norouzi, M., Fleet, D.J.: Video diffusion models. arXiv preprint arXiv:2204.03458 (2022)",
1522
+ "18. Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W.: LoRA: Low-rank adaptation of large language models. In: International Conference on Learning Representations (2022), https://openreview.net/forum?id=nZeVKeeFYf9",
1523
+ "19. Huang, Z., Li, H., Xie, Z., Kampffmeyer, M., Liang, X., et al.: Towards hard-posed virtual try-on via 3d-aware global correspondence learning. Advances in Neural Information Processing Systems 35, 32736-32748 (2022)",
1524
+ "20. Iizuka, S., Simo-Serra, E., Ishikawa, H.: Globally and locally consistent image completion. ACM Transactions on Graphics (ToG) 36(4), 1-14 (2017)",
1525
+ "21. Jiang, Y., Zhang, H., Zhang, J., Wang, Y., Lin, Z., Sunkavalli, K., Chen, S., Amirghodsi, S., Kong, S., Wang, Z.: Ssh: A self-supervised framework for image harmonization. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 4832-4841 (2021)",
1526
+ "22. Ke, Z., Sun, C., Zhu, L., Xu, K., Lau, R.W.: Harmonizer: Learning to perform white-box image and video harmonization. In: European Conference on Computer Vision. pp. 690-706. Springer (2022)",
1527
+ "23. Kim, G., Kwon, T., Ye, J.C.: Diffusionclip: Text-guided diffusion models for robust image manipulation. In: CVPR. pp. 2426-2435 (2022)",
1528
+ "24. Konstantin Sofliuk, Polina Popenova, A.K.: Foreground-aware semantic representations for image harmonization. arXiv preprint arXiv:2006.00809 (2020)",
1529
+ "25. Kulal, S., Brooks, T., Aiken, A., Wu, J., Yang, J., Lu, J., Efros, A.A., Singh, K.K.: Putting people in their place: Affordance-aware human insertion into scenes. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2023)",
1530
+ "26. Kwon, G., Ye, J.C.: Diffusion-based image translation using disentangled style and content representation. In: ICLR (2023)",
1531
+ "27. Kwon, M., Jeong, J., Uh, Y.: Diffusion models already have a semantic latent space. In: ICLR (2023)",
1532
+ "28. Li, J., Zhao, J., Wei, Y., Lang, C., Li, Y., Sim, T., Yan, S., Feng, J.: Multiple-human parsing in the wild. arXiv preprint arXiv:1705.07206 (2017)",
1533
+ "29. Liu, G., Reda, F.A., Shih, K.J., Wang, T.C., Tao, A., Catanzaro, B.: Image inpainting for irregular holes using partial convolutions. In: Proceedings of the European conference on computer vision (ECCV). pp. 85-100 (2018)",
1534
+ "30. Liu, H., Jiang, B., Song, Y., Huang, W., Yang, C.: Rethinking image inpainting via a mutual encoder-decoder with feature equalizations. In: Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part II 16. pp. 725-741. Springer (2020)",
1535
+ "31. Liu, L., Xu, W., Habermann, M., Zollhöfer, M., Bernard, F., Kim, H., Wang, W., Theobalt, C.: Neural human video rendering by learning dynamic textures and rendering-to-video translation. arXiv preprint arXiv:2001.04947 (2020)",
1536
+ "32. Liu, L., Xu, W., Zollhoefer, M., Kim, H., Bernard, F., Habermann, M., Wang, W., Theobalt, C.: Neural rendering and reenactment of human actor videos. ACM Transactions on Graphics (TOG) 38(5), 1-14 (2019)",
1537
+ "33. Lu, S., Liu, Y., Kong, A.W.K.: Tf-Icon: Diffusion-based training-free cross-domain image composition. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 2294–2305 (2023)",
1538
+ "34. Ma, L., Jia, X., Sun, Q., Schiele, B., Tuytelaars, T., Van Gool, L.: Pose guided person image generation. arXiv preprint arXiv:1705.09368 (2017)"
1539
+ ],
1540
+ "bbox": [
1541
+ 215,
1542
+ 146,
1543
+ 785,
1544
+ 840
1545
+ ],
1546
+ "page_idx": 15
1547
+ },
1548
+ {
1549
+ "type": "page_number",
1550
+ "text": "16",
1551
+ "bbox": [
1552
+ 217,
1553
+ 114,
1554
+ 235,
1555
+ 126
1556
+ ],
1557
+ "page_idx": 15
1558
+ },
1559
+ {
1560
+ "type": "header",
1561
+ "text": "Y. Jiang et al.",
1562
+ "bbox": [
1563
+ 271,
1564
+ 114,
1565
+ 367,
1566
+ 128
1567
+ ],
1568
+ "page_idx": 15
1569
+ },
1570
+ {
1571
+ "type": "list",
1572
+ "sub_type": "ref_text",
1573
+ "list_items": [
1574
+ "35. Ma, L., Sun, Q., Georgoulis, S., Van Gool, L., Schiele, B., Fritz, M.: Disentangled person image generation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 99-108 (2018)",
1575
+ "36. Men, Y., Mao, Y., Jiang, Y., Ma, W.Y., Lian, Z.: Controllable person image synthesis with attribute-decomposed gan. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5084-5093 (2020)",
1576
+ "37. Mokady, R., Hertz, A., Aberman, K., Pritch, Y., Cohen-Or, D.: Null-text inversion for editing real images using guided diffusion models. arXiv preprint arXiv:2211.09794 (2022)",
1577
+ "38. Nazeri, K., Ng, E., Joseph, T., Qureshi, F.Z., Ebrahimi, M.: Edgeconnect: Generative image inpainting with adversarial edge learning. arXiv preprint arXiv:1901.00212 (2019)",
1578
+ "39. Ni, M., Li, X., Zuo, W.: Nuwa-lip: Language-guided image inpainting with defect-free vqgan. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 14183-14192 (2023)",
1579
+ "40. Nie, X., Feng, J., Xing, J., Yan, S.: Generative partition networks for multi-person pose estimation. arXiv preprint arXiv:1705.07422 (2017)",
1580
+ "41. Olszewski, K., Ceylan, D., Xing, J., Echevarria, J., Chen, Z., Chen, W., Li, H.: Intuitive, interactive beard and hair synthesis with generative models. In: CVPR. pp. 7446-7456 (2020)",
1581
+ "42. Oquab, M., Darcet, T., Moutakanni, T., Vo, H.V., Szafraniec, M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-Nouby, A., Howes, R., Huang, P.Y., Xu, H., Sharma, V., Li, S.W., Galuba, W., Rabbat, M., Assran, M., Ballas, N., Synnaeve, G., Misra, I., Jegou, H., Mairal, J., Labatut, P., Joulin, A., Bojanowski, P.: Dinov2: Learning robust visual features without supervision (2023)",
1582
+ "43. Pathak, D., Krahenbuhl, P., Donahue, J., Darrell, T., Efros, A.A.: Context encoders: Feature learning by inpainting. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 2536-2544 (2016)",
1583
+ "44. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: CVPR (2022)",
1584
+ "45. Sahara, C., Ho, J., Chan, W., Salimans, T., Fleet, D.J., Norouzi, M.: Image superresolution via iterative refinement. IEEE TPAMI (2022)",
1585
+ "46. Shen, Y., Gu, J., Tang, X., Zhou, B.: Interpreting the latent space of gans for semantic face editing. In: CVPR. pp. 9243-9252 (2020)",
1586
+ "47. Shen, Y., Yang, C., Tang, X., Zhou, B.: Interfacegan: Interpreting the disentangled face representation learned by gans. IEEE Transactions on Pattern Analysis and Machine Intelligence (2020)",
1587
+ "48. Singer, U., Polyak, A., Hayes, T., Yin, X., An, J., Zhang, S., Hu, Q., Yang, H., Ashual, O., Gafni, O., et al.: Make-a-video: Text-to-video generation without text-video data. arXiv preprint arXiv:2209.14792 (2022)",
1588
+ "49. Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., Ganguli, S.: Deep unsupervised learning using nonequilibrium thermodynamics. In: ICML (2015)",
1589
+ "50. Song, J., Meng, C., Ermon, S.: Denoising diffusion implicit models. In: ICLR (2021)",
1590
+ "51. Song, Y., Sohl-Dickstein, J., Kingma, D.P., Kumar, A., Ermon, S., Poole, B.: Score-based generative modeling through stochastic differential equations. In: ICLR (2021)",
1591
+ "52. Song, Y., Zhang, Z., Lin, Z., Cohen, S., Price, B., Zhang, J., Kim, S.Y., Aliaga, D.: Objectstitch: Object compositing with diffusion model. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 18310-18319 (2023)"
1592
+ ],
1593
+ "bbox": [
1594
+ 212,
1595
+ 146,
1596
+ 787,
1597
+ 840
1598
+ ],
1599
+ "page_idx": 16
1600
+ },
1601
+ {
1602
+ "type": "header",
1603
+ "text": "GroupDiff: Diffusion-based Group Portrait Editing",
1604
+ "bbox": [
1605
+ 393,
1606
+ 114,
1607
+ 732,
1608
+ 128
1609
+ ],
1610
+ "page_idx": 16
1611
+ },
1612
+ {
1613
+ "type": "page_number",
1614
+ "text": "17",
1615
+ "bbox": [
1616
+ 767,
1617
+ 116,
1618
+ 784,
1619
+ 126
1620
+ ],
1621
+ "page_idx": 16
1622
+ },
1623
+ {
1624
+ "type": "list",
1625
+ "sub_type": "ref_text",
1626
+ "list_items": [
1627
+ "53. Tang, L., Ruiz, N., Qinghao, C., Li, Y., Holynski, A., Jacobs, D.E., Hariharan, B., Pritch, Y., Wadhwa, N., Aberman, K., Rubinstein, M.: Realfill: Reference-driven generation for authentic image completion. arXiv preprint arXiv:2309.16668 (2023)",
1628
+ "54. Van Den Oord, A., Vinyals, O., et al.: Neural discrete representation learning. Advances in Neural Information Processing Systems pp. 6306-6315 (2017)",
1629
+ "55. Wang, S., Sahara, C., Montgomery, C., Pont-Tuset, J., Noy, S., Pellegrini, S., Onoe, Y., Laszlo, S., Fleet, D.J., Soricut, R., et al.: Imagen editor and editbench: Advancing and evaluating text-guided image inpainting. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 18359-18369 (2023)",
1630
+ "56. Wang, W., Alameda-Pineda, X., Xu, D., Fua, P., Ricci, E., Sebe, N.: Every smile is unique: Landmark-guided diverse smile generation. In: CVPR. pp. 7083-7092 (2018)",
1631
+ "57. Wang, W., Cui, Z., Yan, Y., Feng, J., Yan, S., Shu, X., Sebe, N.: Recurrent face aging. In: CVPR. pp. 2378-2386 (2016)",
1632
+ "58. Xie, S., Zhang, Z., Lin, Z., Hinz, T., Zhang, K.: Smartbrush: Text and shape guided object inpainting with diffusion model. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 22428-22437 (2023)",
1633
+ "59. Xie, Z., Huang, Z., Dong, X., Zhao, F., Dong, H., Zhang, X., Zhu, F., Liang, X.: Gp-vton: Towards general purpose virtual try-on via collaborative local-flow global-parsing learning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 23550-23559 (2023)",
1634
+ "60. Xing, J., Nagano, K., Chen, W., Xu, H., Wei, L.y., Zhao, Y., Lu, J., Kim, B., Li, H.: Hairbrush for immersive data-driven hair modeling. In: Proceedings of the 32Nd Annual ACM Symposium on User Interface Software and Technology. pp. 263-279 (2019)",
1635
+ "61. Yang, B., Gu, S., Zhang, B., Zhang, T., Chen, X., Sun, X., Chen, D., Wen, F.: Paint by example: Exemplar-based image editing with diffusion models. arXiv preprint arXiv:2211.13227 (2022)",
1636
+ "62. Yang, H., Huang, D., Wang, Y., Jain, A.K.: Learning face age progression: A pyramid architecture of gans. In: CVPR. pp. 31-39 (2018)",
1637
+ "63. Zhang, B., Duan, Y., Lan, J., Hong, Y., Zhu, H., Wang, W., Niu, L.: Controlcom: Controllable image composition using diffusion model. arXiv preprint arXiv:2308.10040 (2023)",
1638
+ "64. Zhang, L., Rao, A., Agrawala, M.: Adding conditional control to text-to-image diffusion models (2023)",
1639
+ "65. Zhao, J., Li, J., Cheng, Y., Sim, T., Yan, S., Feng, J.: Understanding humans in crowded scenes: Deep nested adversarial learning and a new benchmark for multi-human parsing. In: Proceedings of the 26th ACM international conference on Multimedia. pp. 792-800 (2018)",
1640
+ "66. Zhu, L., Yang, D., Zhu, T., Reda, F., Chan, W., Sahara, C., Norouzi, M., Kemelmacher-Shlizerman, I.: Tryondiffusion: A tale of two unets. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 4606-4615 (2023)",
1641
+ "67. Zhu, Y., Li, Z., Wang, T., He, M., Yao, C.: Conditional text image generation with diffusion models. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 14235-14245 (2023)"
1642
+ ],
1643
+ "bbox": [
1644
+ 215,
1645
+ 146,
1646
+ 784,
1647
+ 797
1648
+ ],
1649
+ "page_idx": 17
1650
+ },
1651
+ {
1652
+ "type": "page_number",
1653
+ "text": "18",
1654
+ "bbox": [
1655
+ 217,
1656
+ 114,
1657
+ 235,
1658
+ 126
1659
+ ],
1660
+ "page_idx": 17
1661
+ },
1662
+ {
1663
+ "type": "header",
1664
+ "text": "Y. Jiang et al.",
1665
+ "bbox": [
1666
+ 271,
1667
+ 114,
1668
+ 367,
1669
+ 128
1670
+ ],
1671
+ "page_idx": 17
1672
+ }
1673
+ ]
2024/GroupDiff_ Diffusion-based Group Portrait Editing/0180d5e1-adf4-499a-95e2-b1c477938796_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/GroupDiff_ Diffusion-based Group Portrait Editing/0180d5e1-adf4-499a-95e2-b1c477938796_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b5e88a10ec02d4dd2b519aca2af01fcf826c8d8a947fea8a0e4fe2dd871d2af
3
+ size 3233566
2024/GroupDiff_ Diffusion-based Group Portrait Editing/full.md ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GroupDiff: Diffusion-based Group Portrait Editing
2
+
3
+ Yuming Jiang $^{1*}$ , Nanxuan Zhao $^{2\boxtimes}$ , Qing Liu $^{2\boxtimes}$ , Krishna Kumar Singh $^{2\boxtimes}$ , Shuai Yang $^{3\boxtimes}$ , Chen Change Loy $^{1\boxtimes}$ , and Ziwei Liu $^{1\boxtimes}$
4
+
5
+ <sup>1</sup> College of Computing and Data Science, Nanyang Technological University
6
+ <sup>2</sup> Adobe Research
7
+
8
+ $^{3}$ Wangxuan Institute of Computer Technology, Peking University https://github.com/yumingj/GroupDiff
9
+
10
+ Abstract. Group portrait editing is highly desirable since users constantly want to add a person, delete a person, or manipulate existing persons. It is also challenging due to the intricate dynamics of human interactions and the diverse gestures. In this work, we present GroupDiff, a pioneering effort to tackle group photo editing with three dedicated contributions: 1) Data Engine: Since there are no labeled data for group photo editing, we create a data engine to generate paired data for training. The training data engine covers the diverse needs of group portrait editing. 2) Appearance Preservation: To keep the appearance consistent after editing, we inject the images of persons from the group photo into the attention modules and employ skeletons to provide intra-person guidance. 3) Control Flexibility: Bounding boxes indicating the locations of each person are used to reweight the attention matrix so that the features of each person can be injected into the correct places. This interperson guidance provides flexible manners for manipulation. Extensive experiments demonstrate that GroupDiff exhibits state-of-the-art performance compared to existing methods. GroupDiff offers controllability for editing and maintains the fidelity of the original photos.
11
+
12
+ Keywords: Group Photo Editing $\cdot$ Diffusion Models
13
+
14
+ # 1 Introduction
15
+
16
+ Have you ever been bothered by the challenge of capturing the perfect group photo, especially during significant occasions like team-building events, family reunions, or friend gatherings? Group portrait photos become a crucial means of preserving cherished memories. Imagine this scenario, an individual must unexpectedly leave an important reunion party before the group photo is taken due to an emergency. How valuable would it be to have a tool that seamlessly
17
+
18
+ ![](images/6225682bd0eb00262747ceac6d2afdad2bfeb0cc3813768f277edd07fdcc7de2.jpg)
19
+
20
+ ![](images/57d2dc931dcbd3666240d849a42add400596fa6ee54383f51ca8c053f8f8e562.jpg)
21
+ Fig. 1: Applications enabled by our GroupDiff. Given a group photo, we can (a) manipulate the existing person, (b) remove a person, and (c) insert a person.
22
+
23
+ adds the missing person to the photo later? Group portrait editing addresses precisely this need and more. However, as a broad topic covering various operations, group portrait editing is not an easy task with many factors that need to be considered, such as human identity, interaction, and diverse gestures. It is a difficult and tedious process even for experts with design experience and knowledge.
24
+
25
+ However, the manipulation of group photos is challenging for two reasons: 1) the generation of the single-person image is difficult because of the complicated human structures, and 2) the generation of human interaction regions. How to generate individual persons and their interactions naturally is an unsolved problem. In this work, we take the initial step to tackle this hard problem. More specifically, we target the unique problem in group portrait editing, i.e., the synthesis of human interactions when we perform person insertion, person removal, and person manipulation, as shown in Fig. 1. As personal features like facial expressions and pose orientation can be adjusted by single human editing methods [3, 31, 32, 34-36, 46, 47], our work builds on the assumption that both the initial group portrait photo and the inserted person are with satisfied facial expressions and facing orientations.
26
+
27
+ To facilitate a more general setting, we aim to develop a unified framework handling three main group photo editing tasks (i.e., manipulation of existing per
28
+
29
+ son, person removal, and person insertion). We propose to perform group photo editing by generating reasonable interaction regions. Given an initial group portrait photo with masked regions indicating the intersection areas to be edited, and reference image(s) of the nearby person(s), we learn to seamlessly hallucinate the human interaction in a natural way while maintaining the identities of individuals. With the well-established generation power of diffusion models [44,50], we choose to build our method on top of the pre-trained diffusion model [44].
30
+
31
+ However, our task still poses several unique challenges. Firstly, collecting a large set of paired training data with before-after editing is infeasible. While several works [25, 53] take the synthetic way to generate the data, they mainly work on single-person editing without considering complex human compositions and interactions. How to generate the training data fitting the natural distribution of group portrait editing is a difficult problem. Secondly, maintaining the appearance of individuals during the editing process is a formidable challenge. Users do not want the appearance to be changed, such as clothing be changed after editing. Besides, group photos often include multiple persons, and how to correctly map the reference appearance to the target person is a remaining problem. Lastly, providing users with the flexibility to specify the desired interactions according to their preferences is essential.
32
+
33
+ To this end, we propose GroupDiff, a new approach for tackling group portrait editing tasks. For the issue of lacking large-scale before-after editing data, we propose a training data generation engine that mimics the editing requirements encountered in real-world applications of group photo editing. Many factors have been considered, such as the interaction ways, the body parts' appearances, and the poses. To maintain the appearance of the persons including the inserted person and the persons in the original photo, we propose an appearance preservation diffusion model which contains person-aware modules customized on attention layers. By taking the person(s) that the user wants to be kept as reference image(s), this model takes both inter-person and intra-person features when injecting the references into the editing process. This module can tackle the challenge posed by multiple persons through an indicator matrix, indicating the locations of each person and thus precise attention guidance. Additionally, we take the skeleton as an intermediate representation throughout our framework design, ensuring flexibility and controllability for users. Experiments show that our proposed GroupDiff achieves state-of-the-art performance in the task of group portrait editing. Our contributions are summarized as follows:
34
+
35
+ - We work on a challenging task of Group Portrait Editing and make the first effort to solve it in a unified framework by generating interaction regions.
36
+ - We propose a novel framework (GroupDiff) that includes person-aware modules specifically designed to maintain the appearance of reference persons, considering both inter-person and intra-person features.
37
+ - We introduce a simple yet effective data synthesis method to get paired data for GroupDiff training.
38
+ - We demonstrate the flexibility of our model on various applications such as person insertion, person removal, and interaction editing.
39
+
40
+ # 2 Related Work
41
+
42
+ Single-Human Editing. There are two major directions for single-human editing: facial editing and full-body editing. For facial editing, the target is to manipulate the facial attributes, e.g., age manipulation [57, 62], hair synthesis [41, 60] and expression manipulation [23, 26, 27, 46, 47, 56]. As for full-body editing, it mainly includes two directions: pose transfer and virtual try-on. The objective of pose transfer [3, 31, 32, 34-36] is to seamlessly transpose the visual characteristics of an individual from one pose to another. Albahar et al. [1] introduces a pose-conditioned StyleGAN framework in which the source image is warped to align with the target pose. The warping is operated according to the correspondence between the source pose and the target pose. The warped image is then employed to modulate the features. Try-on tasks aim to transfer the clothing of the person from one image to the other image. Traditional Try-on methods [5, 11, 19, 59] mainly focus on warping the clothing to the target person. Baldrati et al. [4] and Zhu et al. [66] propose to address the problem under the setting of diffusion models. Kulal et al. [25] study the single human editing task under the human-environment interactive setting. They propose a method to insert a person into the place. Different from previous works, our paper focuses on group portrait editing, where the interactions and compositions among persons need to be carefully handled.
43
+
44
+ Inpainting. Image inpainting is an ill-posed problem, which aims to fill in the masked regions using meaningful content. Patch-based methods [8, 13] perform the inpainting by finding the nearest matched patch and then placing them into the holes in a proper way. GAN-based methods [20, 29, 30, 38, 43] often use the high-level information extracted by the networks and then use the extracted features to guide the inpainting. Recently, since the emergence of newer generative models, e.g. diffusion models and VQGAN models [9, 54], researchers propose to solve the task using languages [39, 55, 58]. RealFill [53] learns LoRA weights [18] to inpaint the background regions from reference images. However, these methods are not designed for human-specific inpainting tasks, and they do not consider the specific human priors, such as human poses, and do not have modules specifically for human appearance preservation.
45
+
46
+ Diffusion Models. Diffusion models have demonstrated the capability of generating images [15,49,51]. Recently, since the emergence of Stable Diffusion [44], it has dominated the field of image generation, especially for text-to-image generation [2,67]. Apart from texts, ControlNet [64] proposes to introduce multi-modal controls, such as skeleton, sketch, depth maps etc. Stable Diffusion is also applied to some image editing tasks [23,26,27]. Some editing methods [14,37] achieve image editing by modifying the cross-attention maps. Diffusion models have been also widely applied in multiple tasks including video generation [12,17,48], image enhancement [16,45] and image composition [6,33,52,63] To take advantage of the generation power of diffusion models, our work also builds on top of this learning framework.
47
+
48
+ # 3 Preliminaries
49
+
50
+ Stable Diffusion is based on diffusion models, a kind of probabilistic model. Diffusion models generate images by iterative denoising from a noise map, which is normally sampled from the Gaussian distribution. Given a Gaussian noise map $\mathbf{x}_T\sim \mathcal{N}(\mathbf{0},\mathbf{I})$ , the reverse diffusion process for sampling is expressed as follows:
51
+
52
+ $$
53
+ p _ {\theta} \left(\mathbf {x} _ {0: T}\right) := p \left(\mathbf {x} _ {T}\right) \prod_ {t = 1} ^ {T} p _ {\theta} \left(\mathbf {x} _ {t - 1} \mid \mathbf {x} _ {t}\right), \tag {1}
54
+ $$
55
+
56
+ $$
57
+ p _ {\theta} \left(\mathbf {x} _ {t - 1} \mid \mathbf {x} _ {t}\right) := \mathcal {N} \left(\mathbf {x} _ {t - 1}; \boldsymbol {\mu} _ {\theta} \left(\mathbf {x} _ {t}, t\right), \boldsymbol {\Sigma} _ {\theta} \left(\mathbf {x} _ {t}, t\right)\right), \tag {2}
58
+ $$
59
+
60
+ where $\theta$ is often parameterized using a trained network, and $t$ is the denoising timestep.
61
+
62
+ Traditional diffusion model [15] operates on the pixel space. Due to the high computational cost of generating high-resolution images, the generative capability of the diffusion model is limited to low-resolution images. Stable Diffusion [44] proposes to use the VAE to project the image from pixel space to latent space. With the downscaled latent representations, the model can synthesize high-resolution images. Also, Stable Diffusion introduces texts as a condition and supports text-to-image generation. In Stable Diffusion, $\theta$ is parameterized as a UNet with multiple self-attention modules and cross-attention modules. In each block, a self-attention module is followed by a cross-attention module. In the cross-attention module, the features $f$ are updated as follows:
63
+
64
+ $$
65
+ f ^ {\prime} = \operatorname {s o f t m a x} \left(\frac {Q K ^ {T}}{\sqrt {d}}\right) V, \tag {3}
66
+ $$
67
+
68
+ $$
69
+ K = \phi_ {K} (f _ {t}), V = \phi_ {V} (f _ {t}), Q = \phi_ {Q} (f), \tag {4}
70
+ $$
71
+
72
+ where $f_{t}$ is the text embedding, $\phi_K, \phi_V$ , and $\phi_Q$ are the linear layers to project the features into keys, values, and queries respectively.
73
+
74
+ # 4 GroupDiff
75
+
76
+ In this paper, we propose a unified framework, named GroupDiff, for group portrait editing. We formulate the problem as a conditional inpainting task. As shown in Fig. 2, when inserting a person, we need to inpaint the interaction regions and the missing human parts. As for removing a person, if the original person shakes their hands, we also need to inpaint the interaction region and the removed part. To better guide the synthesis of interaction regions and offer controllability to users, we introduce the skeleton as an additional condition. For person addition, with pose controls, we can explicitly manipulate the pose of the inserted person and the neighboring person, so that their interactions are natural. As for person removal, we also need to change the pose of the existing person to make it to be natural, if there are some human interactions between the removed
77
+
78
+ ![](images/765b0584445b01016cb40ae0327ec561dd9aa2bd2673b2adcd4157c427890200.jpg)
79
+ (a) insertion
80
+
81
+ ![](images/f7fc0a98c443d9153676c7c94011921511cc0eac232d3a8b8966527b6112e03c.jpg)
82
+ (b) deletion
83
+ Fig.2: Illustration of Common Editing Requests. (a) When we insert a person who only has a half-body picture, we need to adjust the interactions and make the lower part of her body complete. (b) When we are to remove a person from a group photo, we need to change the interactions and inpaint the removed region.
84
+
85
+ ![](images/ca5caaac3911ff1067ffb0653749ddedc1e6b23d7ccd9a275b9cd7d20439d421.jpg)
86
+ Fig. 3: Overview of GroupDiff. Starting from a group photo from the dataset, we first use the training data generation pipeline (Sec. 4.1) to generate paired data. Then the synthesized pair is fed into the Appearance Preservation Diffusion Model (Sec. 4.2), where inter-person and intra-person guidance are employed to preserve the identities.
87
+
88
+ person and existing persons. The overview of our proposed GroupDiff is shown in Fig. 3. We tackle the problem of group photo editing from two perspectives. From the data side, we propose a comprehensive training data generation engine to synthesize paired data, which will be introduced in Sec. 4.1. From the model side, we take the stable diffusion as the backbone [44]. Except for the noisy map, our model also takes an input image masked with the region to be filled, the corresponding mask, and the target skeleton map as inputs. These inputs are concatenated together before feeding them to the network. The masked region is filled with gray color. The skeleton map offers the user an option to specify the desired human interaction. As the masked region often covers the area that should remain the same after editing, such as the clothing and skin color, our model also takes the reference images of persons as conditions. Each reference person is given as a separate image. The reference images can be the inserted person or nearby persons around the interaction regions. We inject the reference images through intra-person and inter-person guidance to let the model learn to keep the appearance details after editing.
89
+
90
+ # 4.1 Training Data Generation Engine
91
+
92
+ The training of diffusion-based models requires large-scale paired data. However, there is no such dataset for group photo editing. Given the difficulties of con
93
+
94
+ ducting group portrait photo editing, collecting a large amount of before-after editing data is infeasible. Therefore, finding a way to generate pairwise data to support the training is demanded. Since we pose our task as an inpainting task, we start from the existing group photo dataset [28, 40, 65]. Considering the real use cases, we design a comprehensive training data generation engine.
95
+
96
+ Person Interaction. Person interactions encompass a diverse set of gestures that form the essence of social dynamics including physical interactions, such as hugging, shaking hands, and raising arms, and many others. These free-form interactions increase difficulties in approximating the real distribution. Besides, different editing operations may incur different challenges. For example, when adding a person into the crowd, the surrounding context also should be completed, such as the area above the person's head. To enforce our model to better generate diverse interactions under different conditions, we use a hierarchical way for synthesizing paired data by randomly masking corresponding regions in group photo images. The coarser scale targets scenarios of large modification such as person insertion and removal, which requires inpainting a large region(Fig. 4). The finer scale targets scenarios of small modification such as interaction manipulation, which needs more fine-grained controls of masked regions(Fig. 5).
97
+
98
+ On a coarser scale, we first identify different persons through labeled bounding boxes. We assume that the interaction regions are often near the boundary of each bonding box. During training, we randomly select single or multiple bounding boxes and mask out the region near the boundary. Suppose the coordinate of the top-left point of the bounding box is $(x_{1},y_{1})$ and the right-bottom point is $(x_{2},y_{2})$ . Then the width of the bounding box is $w = x_{2} - x_{1}$ . Then the left boundary region of the bounding box can be denoted as the rectangle with $(x_{1} - r\cdot w,y_{1})$ as the top-left corner and $(x_{1} + r\cdot w,y_{2})$ as the right-bottom corner. The right boundary of the bounding box can be obtained in a similar way. We simply treat the boundary regions as the interaction regions. When synthesizing data, we will randomly mask the left boundary, right boundary, or both boundaries. Empirically, we randomly sample $r$ from [0.1, 0.2]. As shown in the second image in Fig. 4, we mask both boundary regions. Sometimes, we extend the mask outside the bounding box to cover the whole column of the boundary region as shown in the third image of Fig. 4. That is to set the top-left coordinate as $(x_{1} - r\cdot w,0)$ and the right-bottom coordinate as $(x_{1} + r\cdot w,h)$ , where $h$ is the height of the image. To avoid facial regions being masked, we use human parsing to unmask the facial regions. To make the shape of the mask closer to the users' inputs, we also augment the shape of the mask into a brush-like one.
99
+
100
+ On a finer scale, we introduce the skeleton to control the person interaction, especially for the hand and arm positions. Involving the skeleton helps users to better specify the desired human interaction. The correctness of the skeleton is important to ensure the data generation quality, we use the state-of-the-art skeleton detection method [7] for extraction. A naive way of generating the mask is to segment out the arm and hand regions with a tight bounding box. However, this simple solution has a critical problem as the mask shape itself will leak the skeleton information. For example, in Fig. 5, if we strictly follow the skeleton, we
101
+
102
+ ![](images/111ec1eb68193ab9e9df79bbac2394a874e47163f98e15685929445d2e0d406c.jpg)
103
+
104
+ ![](images/f7f2e4a23795d235a5b5d40e39c696d2c17ca818581a7dc34ea25ee6378e146e.jpg)
105
+
106
+ ![](images/7129f4858be72a3478146364fd3bb8dd146030c36add6653f1088eb7878c38c4.jpg)
107
+ Fig.4: Coarse Level Training Data Generation for Person Interaction. At the coarse level, we generate masks according to the bounding boxes of persons.
108
+
109
+ ![](images/a27f682fec4a08db5b1d4bbcc6491ccb3098e490720a36ce29a6653448d513c3.jpg)
110
+
111
+ ![](images/799cbcf70d5881c7469d9647f5ea9fc207e567cc7dbb5c2f989c6ec5cb5269d4.jpg)
112
+
113
+ ![](images/c90162e6290b50d0ea0adc61beaded076667bc81672836880c3c2be45b074517.jpg)
114
+ Fig.5: Fine Level Training Data Generation for Person Interaction. At the fine level, we generate masks according to the skeleton and augmented skeleton.
115
+
116
+ can obtain the masked image as shown in the second column. In this case, the model may overlook the skeleton condition during training because the masked image itself has leaked the skeleton information. As a result, the obtained model fails to generate images conditioned on skeletons at inference time. Therefore, we adopt data augmentations to avoid this issue. Except for the tight bounding box mask around arms and hands, we randomly rotate the arms or hands in a different direction. As shown in the third column of Fig. 5, we randomly rotate the right arm and obtain the augmented skeleton. We mask both arm regions according to the original skeleton and augmented skeleton.
117
+
118
+ Body completion. In certain scenarios, our model also needs to complete the body part(s) of a person. For example, when there are occlusions among different persons, removing one person needs the body completion of the surrounding people. When inserting a person, if the reference image only contains a partial body, in this case, the model needs to learn to complete the rest parts. The data synthesis for the body completion is straightforward. We randomly mask out the lower body parts. Still, $(x_{1},y_{1})$ represents the top-left point of the bounding box and $(x_{2},y_{2})$ represents the right-bottom point. We randomly mask the region from $(x_{1},y_{1} + r\cdot (y_{2} - y_{1})$ to $(x_{2},y_{2})$ , where $r$ is sampled from [0.5, 0.9]. Some examples are shown in Fig. 6.
119
+
120
+ # 4.2 Person-Aware Attention for Appearance Preservation
121
+
122
+ Our model needs to preserve the appearance of persons after editing. Since the content cannot be revealed if it is covered with masks during inference, we take the persons that users want to maintain the appearance out as reference images. To ensure details are encoded into the model accurately, inspired by previous works [6,25], we choose to inject reference image(s) through the cross-attention module. The reference images during the training are obtained as follows: 1)
123
+
124
+ ![](images/8794a1ddeb953fb0cd23fdc18e3ca5c888d94a849c1e8617edf16bffbba881a6.jpg)
125
+ Fig.6: Training Data Generation for Body Completion. We randomly mask the lower parts of the body so that the model has the capability of body completion.
126
+
127
+ ![](images/f56eda2ff0ae07af8eb22c01b2f7c97cf3ef971dd052b70b4426a25cfbe709a6.jpg)
128
+ Fig. 7: Overview of Person-Aware Attention Module for Appearance Preservation. We employ intra-person guidance and inter-person guidance to better preserve the appearance. The intra-person guidance concatenates the pose features and image features as keys. The inter-person guidance is provided by using the information deduced from the positions of the persons. The indicator matrix is employed to assign higher weights to corresponding values in the attention matrix.
129
+
130
+ segment the person(s), and 2) fill the background with white. However, feeding all reference images through concatenation to the model like previous methods does not work in our case. This can cause a mismatch problem between the reference and target persons because the attention matrix is applied among query features and features of all reference images. The model will confuse which part to attend if multiple reference images are provided. We thus introduce a person-aware cross-attention mechanism for preserving content details.
131
+
132
+ Instead of sending raw pixels to the cross-attention module, we first encode each reference image $I_{i}$ using DINOv2 [42] into a feature embedding $f_{I_i} \in \mathbb{R}^{256 \times 768}$ , which has been validated to be effective for image generation and editing tasks [6]. If we follow the conventional cross-attention operation, after concatenating features together as $F = [f_{I_1}, f_{I_2}, \dots, f_{I_N}]$ , we obtain the value embedding $V \in \mathbb{R}^{(256 \cdot N) \times d}$ and key embedding $K \in \mathbb{R}^{(256 \cdot N) \times d}$ through linear layers individually to compute the output feature $O$ as:
133
+
134
+ $$
135
+ O = \operatorname {s o f t m a x} \left(\frac {Q K ^ {T}}{\sqrt {d}}\right) V, \tag {5}
136
+ $$
137
+
138
+ $$
139
+ K = \phi_ {K} (F), V = \phi_ {V} (F), \tag {6}
140
+ $$
141
+
142
+ where $d$ denotes feature dimension, and the query embedding $Q \in \mathbb{R}^{HW \times d}$ comes from the output of the last layer. $H$ and $W$ refer to the spatial resolution of features from the last layer (a.k.a self-attention layer). Based on this formulation, we introduce intra-person and inter-person guidances to solve our problem.
143
+
144
+ Intra-Person Guidance. For the intra-person guidance, it is essential to let the model know the correspondences between pixel appearances with body components for each reference image. Then the model can adaptively learn the mapping to restore accurate appearances. We introduce the skeleton pose $P_{I_i}$ of exemplar images $I_i$ as the intra-person indicators as shown in Fig. 7. Similarly, we first extract pose features $p_{I_i}$ through a separately learned encoder, and compute the key embedding with an MLP after concatenating the image and pose features:
145
+
146
+ $$
147
+ \dot {K} = \phi_ {K} ([ K _ {1}, K _ {2}, \dots , K _ {N} ]), \tag {7}
148
+ $$
149
+
150
+ $$
151
+ K _ {n} = \operatorname {M L P} \left(\left[ f _ {I _ {n}}, p _ {I _ {n}} \right]\right), \tag {8}
152
+ $$
153
+
154
+ where $[\cdot ]$ is the concatenation operation and $\mathrm{MLP}(\cdot)$ is the layers to process the concatenated features. The attention matrix is obtained as follows:
155
+
156
+ $$
157
+ M _ {a t t n} = Q \hat {K} ^ {T} \in \mathbb {R} ^ {H W \times 2 5 6 \cdot N}. \tag {9}
158
+ $$
159
+
160
+ It should be noted that we only introduce the pose information into keys and do not embed the pose information into values. The motivation lies in that pose information is an indicator of the body component and it should not be fused with the appearance information in keys.
161
+
162
+ Inter-Person Guidance. For inter-person guidance, as shown in Fig. 7, we introduce the indicator mask to specify the locations of each reference person. The indicator masks $\{m_i\in \mathbb{R}^{H\times W}\}$ are obtained by bounding boxes around each person. The bounding boxes cover the full body. For each reference image, we reshape the corresponding indicator mask $m_{i}$ into a flattened tensor (whose shape is $\mathbb{R}^{HW}$ ) and repeat it into a matrix so that it has the shape of $\mathbb{R}^{HW\times 256}$ . The indicator matrix $M_{ind}\in \mathbb{R}^{HW\times 256\cdot N}$ is obtained by concatenating the matrices of all reference images. We add the indicator matrix to the attention matrix before applying the softmax operation. With this operation, when calculating the final output, the corresponding location will have higher weights to attend to the correct reference features. The operation is computed as:
163
+
164
+ $$
165
+ O = \operatorname {s o f t m a x} \left(\frac {M _ {\text {a t t n}} + w ^ {\prime} \cdot M _ {\text {i n d}}}{\sqrt {d}}\right) V, \tag {10}
166
+ $$
167
+
168
+ where the value embedding $V$ is obtained from the DINO feature of reference images without involving pose information. In practice [2], we multiply the indicator matrix by a scale factor $w'$ , which is obtained as follows:
169
+
170
+ $$
171
+ w ^ {\prime} = w \cdot \log (1 + \sigma) \cdot \max \left(M _ {a t t n}\right), \tag {11}
172
+ $$
173
+
174
+ where $w$ is the user-specified factor, and $\sigma$ corresponds to the noise level at different diffusion steps.
175
+
176
+ # 5 Experiments
177
+
178
+ # 5.1 Implementation Details
179
+
180
+ Our method is implemented using PyTorch. The model is trained using eight NVIDIA A100 GPUs. We use the Adam optimizer to optimize the model. The beta is set as the default value. We set the learning rate as $10^{-4}$ . The learning rate scheduler is LambdaLinearScheduler. The number of warm-up steps is set as 2500. The batch size is set as 4 per GPU, and the global batch size is 32. The model is initialized with the Stable-Diffusion v1.5 Inpainting model. The original Stable Diffusion Inpainting model has 9 channels as input. We concatenate the skeleton as an additional input, and thus the number of channels is 12. For the first 9 channels of the first layer, we inherit the weights of Stable Diffusion Inpainting model and initialize the remaining three channels with zero weights. The model is trained for 80 epochs. The resolution of the image we use for training is $512 \times 512$ . We use the LV-MHP-v2 dataset [28,40,65], which is composed of 25,403 group photo images. With each image, there are human parsing annotations. For human parsing, we directly use the annotations provided in the dataset. We use MMPose [7] to predict the skeleton. When editing group photos at inference time, we adjust the lighting using the off-the-shelf model [24].
181
+
182
+ # 5.2 Comparison Methods
183
+
184
+ SD Inpainting [44]. Stable Diffusion has provided the pretrained weights for inpainting. Here, we use the Stable Diffusion Inpainting (SD Inpainting) model as a baseline method. For person insertion, the interaction regions and the regions surrounding the inserted person are masked. For person removal, we mask the regions of the person to be removed. At inference time, SD Inpainting model is fed with the same masked image and masks as ours. Apart from pretrained SD Inpainting model, we also compare our model with two more baselines, which are adapted from the pretrained SD Inpainting model. The first baseline is the finetuned SD Inpainting model. We use our synthesized data to finetune the SD Inpainting model. The second baseline is the finetuned SD Inpainting model with skeleton control. Similar to our method, we add skeleton control to the SD inpainting model. We concatenate the skeleton with other inputs. Then we finetune the model using our generated data pair.
185
+
186
+ Paint by Example [61]. Paint by Example is an exemplar-based image editing method. It fills masked regions using exemplar images. The exemplar image is fed into an image encoder, and then the extracted features are fed into the cross-attention module. For person insertion, we feed the model the full mask covering the place where the person is to be inserted and the single-person image as the exemplar image. For person deletion, the mask region is the area where the person is removed, and the exemplar image is a crop of background.
187
+
188
+ ![](images/b6d494b9131201b0695770cd9a199fa9aed97ea77f76ab33e30505a4880b7a38.jpg)
189
+ Fig. 8: Qualitative Comparisons. We compare our proposed GroupDiff against SD Inpainting [44] and Paint by Example [61]. (a) We show two examples of person insertion. (b) We show one example of person removal.
190
+
191
+ # 5.3 Qualitative Comparisons
192
+
193
+ Figure 8 shows some qualitative comparisons of our method. The results of person insertion are shown in Fig. 8(a). In the first row, we aim to add the old man to the image and make their hands hold together. According to the original image and the skeleton, we can get the masked image covering the interaction regions and the background regions. For the SD Inpainting model, the model adds a lot of persons behind the old man. Also, due to the lack of skeleton control, the interaction regions are not filled as expected. For Paint by Example, it inserts the old man into the left side of the photo and the obtained image looks to be composed of two split parts. Also, the appearance of the inserted person changed a lot. As for our proposed GroupDiff, it successfully inserts the person harmoniously. The hands of the persons correctly follow the given skeleton mask.
194
+
195
+ In the second example of Fig. 8(a), a lady is to be inserted into the middle of the image. After insertion, the hands of the lady are supposed to be connected with neighboring persons as indicated by the skeleton mask. Still, the SD Inpainting model tends to add another person into the middle. The interaction regions are not synthesized as expected. For the Paint by Example, a lady is inserted into the photo, however, the identity of the person is not the one indicated in the exemplar image. By contrast, our model successfully inserts the target person into the photo with reasonable interactions.
196
+
197
+ In Fig. 8(b), we show one example of person removal. We aim to remove the person standing on the left. The mask is obtained according to the bounding box of the person to be removed. After removing the person, we need to adjust the
198
+
199
+ Table 1: Quantitative Comparisons. We report PSNR, SSIM, FID, CLIP-I and DINO scores on synthesized data. Compared to baseline methods, our method achieves significantly better performance. "Random Mask" and "Mask One Person" refer to two ablation studies on the training data generation pipeline. "w/o inter-person" and "w/o intra-person" are two ablation studies on the person-aware module.
200
+
201
+ <table><tr><td>Methods</td><td>PSNR ↑</td><td>SSIM ↑</td><td>FID ↓</td><td>CLIP-I ↑</td><td>DINO ↑</td></tr><tr><td>SD-Inpainting [44]</td><td>17.4148</td><td>0.7562</td><td>24.1276</td><td>79.5467</td><td>91.2230</td></tr><tr><td>Paint-by-Example [61]</td><td>14.4848</td><td>0.6298</td><td>34.8999</td><td>74.1095</td><td>87.4915</td></tr><tr><td>Finetuned SD Inpainting</td><td>18.3132</td><td>0.7846</td><td>20.4833</td><td>82.4550</td><td>93.1132</td></tr><tr><td>Finetuned SD Inpainting with Skeleton</td><td>18.5688</td><td>0.7868</td><td>20.3351</td><td>83.3211</td><td>93.5158</td></tr><tr><td>GroupDiff (Ours)</td><td>19.4569</td><td>0.8033</td><td>18.1035</td><td>86.8967</td><td>95.0284</td></tr></table>
202
+
203
+ postures of the remaining person. Otherwise, the pose of the remaining person would look weird. Using the SD Inpainting model, there is another person present in the final image. For the Paint by Example model, we feed a part of background as the exemplar image. The masked region is filled with some random colors. The final column shows our result. By removing the person and feeding the adjusted skeleton, our model can synthesize a natural photo.
204
+
205
+ # 5.4 Quantitative Comparisons
206
+
207
+ As collecting large well-curated test sets is difficult, we conduct the quantitative comparisons on a synthetic dataset that the training has never seen. We use the validation set of LV-MHP-v2 [28], which has no overlap with our synthesized training data. We report the PSNR, SSIM, FID, CLIP-I, and DINO scores in Table 1. Compared with SD Inpainting and Paint by Example, our proposed GroupDiff has significantly better performance. Table 1 shows that the quantitative results improve after we fine-tune the pretrained SD inpainting model. Besides, skeleton control helps to improve the performance. The PSNR and SSIM values increase, while the FID score decreases. However, even with skeleton control, there is still a performance gap between this model and our proposed GroupDiff, which indicates the necessity of our proposed modules.
208
+
209
+ # 5.5 Ablation Studies
210
+
211
+ We report quantitative results for ablation studies in Table 2. We will show visual comparisons in supplementary files.
212
+
213
+ Training Data Generation Engine. We first investigate the performance of the model with "Random Mask". The ablation model is trained using the randomly masked group photo images. The images are randomly masked regardless of the bounding boxes of the persons and the skeletons. Quantitative results reported in Table 2 demonstrate that the model trained with the random mask has inferior performance. As discussed before, with the random mask, the model can infer the pose from the masked image and thus the capability of conditioning on the skeleton is limited. We also experiment with the "Mask One Person" strategy, we synthesize the data by directly masking one person according to
214
+
215
+ Table 2: Quantitative Comparisons for Ablation Studies. We conduct ablation studies from two perspectives. "Random Mask" and "Mask One Person" refer to two ablation studies on the training data generation pipeline. "w/o inter-person" and "w/o intra-person" are two ablation studies on the person-aware module.
216
+
217
+ <table><tr><td>Methods</td><td>PSNR ↑</td><td>SSIM ↑</td><td>FID ↓</td></tr><tr><td>Random Mask</td><td>17.3299</td><td>0.7727</td><td>26.2193</td></tr><tr><td>Mask One Person</td><td>17.9515</td><td>0.7777</td><td>22.7869</td></tr><tr><td>w/o inter-person</td><td>19.2612</td><td>0.7997</td><td>18.4946</td></tr><tr><td>w/o intra-person</td><td>19.4236</td><td>0.8034</td><td>18.2274</td></tr><tr><td>GroupDiff (Ours)</td><td>19.4569</td><td>0.8033</td><td>18.1035</td></tr></table>
218
+
219
+ the bounding box [25]. Still, by randomly masking a single person, the model has limited capability of inpainting interaction regions. As shown in Table 2, our model has a significantly better performance.
220
+
221
+ Person-aware Attention. As shown in Table 2, after removing the inter-person guidance, the model will have inferior PSNR, SSIM, and FID scores, which means the performance of the model "w/o inter-person" is inferior. As for removing the intra-person guidance, the model "w/o intra-person" has a better SSIM score but inferior PSNR and FID performance. We show visual examples in the supplementary file to demonstrate the effectiveness of this module.
222
+
223
+ # 6 Conclusion
224
+
225
+ In this work, we introduce a pioneering solution to the intricate challenging problem of group portrait editing. We formulate the task as an inpainting problem, addressing issues such as limited labeled data, appearance preservation, and manipulation flexibility. Our approach includes a data generation pipeline mimicking the real editing scenarios and a person-aware appearance preservation module for consistent editing results. Extensive experiments demonstrate the superiority of our proposed method. With the well-known difficulties of human generation and manipulation even for a single person, there is still ample room for refinement and innovation in our task. We hope our work can inspire the exploration of this important task.
226
+
227
+ Limitations. Our proposed GroupDiff makes an assumption that the inserted person image has correct facial expression and facing orientations. If a person image from the side view is given, our method cannot insert the person into the group photo where all people are facing front. Besides, in the current model, the lighting of the inserted person is changed as a preprocessing step. Thus, the ability to adjust the lighting is capped by the capability of the pretrained model. More powerful models can be used to better adjust the lighting [10,21,22].
228
+
229
+ Potential Negative Impact. The proposed method can be used to generate fake images by putting a lot of people who don't know each other in a group photo. It may be negatively used to fabricate certain facts.
230
+
231
+ Acknowledgement. This study is supported by the Ministry of Education, Singapore, under its MOE AcRF Tier 2 (MOET2EP20221-0012), and NTU NAP.
232
+
233
+ # References
234
+
235
+ 1. Albahar, B., Lu, J., Yang, J., Shu, Z., Shechtman, E., Huang, J.B.: Pose with style: Detail-preserving pose-guided image synthesis with conditional stylegan. ACM Transactions on Graphics (TOG) 40(6), 1-11 (2021)
236
+ 2. Balaji, Y., Nah, S., Huang, X., Vahdat, A., Song, J., Kreis, K., Aittala, M., Aila, T., Laine, S., Catanzaro, B., et al.: edifi: Text-to-image diffusion models with an ensemble of expert denoisers. arXiv preprint arXiv:2211.01324 (2022)
237
+ 3. Balakrishnan, G., Zhao, A., Dalca, A.V., Durand, F., Guttag, J.: Synthesizing images of humans in unseen poses. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 8340-8348 (2018)
238
+ 4. Baldrati, A., Morelli, D., Cartella, G., Cornia, M., Bertini, M., Cucchiara, R.: Multimodal garment designer: Human-centric latent diffusion models for fashion image editing. arXiv preprint arXiv:2304.02051 (2023)
239
+ 5. Chen, C.Y., Chen, Y.C., Shuai, H.H., Cheng, W.H.: Size does matter: Size-aware virtual try-on via clothing-oriented transformation try-on network. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 7513-7522 (2023)
240
+ 6. Chen, X., Huang, L., Liu, Y., Shen, Y., Zhao, D., Zhao, H.: Anydoor: Zero-shot object-level image customization. arXiv preprint arXiv:2307.09481 (2023)
241
+ 7. Contributors, M.: Openmmlab pose estimation toolbox and benchmark. https://github.com/open-mmlab/mmpose (2020)
242
+ 8. Darabi, S., Shechtman, E., Barnes, C., Goldman, D.B., Sen, P.: Image melding: Combining inconsistent images using patch-based synthesis. ACM Transactions on graphics (TOG) 31(4), 1-10 (2012)
243
+ 9. Esser, P., Rombach, R., Ommer, B.: Taming transformers for high-resolution image synthesis. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 12873-12883 (2021)
244
+ 0. Guerreiro, J.J.A., Nakazawa, M., Stenger, B.: Pct-net: Full resolution image harmonization using pixel-wise color transformations. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5917-5926 (2023)
245
+ 1. Han, X., Wu, Z., Wu, Z., Yu, R., Davis, L.S.: Viton: An image-based virtual try-on network. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 7543-7552 (2018)
246
+ 2. Harvey, W., Naderiparizi, S., Masrani, V., Weilbach, C., Wood, F.: Flexible diffusion modeling of long videos. arXiv preprint arXiv:2205.11495 (2022)
247
+ 3. Hays, J., Efros, A.A.: Scene completion using millions of photographs. ACM Transactions on Graphics (ToG) 26(3), 4-es (2007)
248
+ 4. Hertz, A., Mokady, R., Tenenbaum, J., Aberman, K., Pritch, Y., Cohen-Or, D.: Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626 (2022)
249
+ 5. Ho, J., Jain, A., Abbeel, P.: Denoising diffusion probabilistic models (2020)
250
+ 6. Ho, J., Sahara, C., Chan, W., Fleet, D.J., Norouzi, M., Salimans, T.: Cascaded diffusion models for high fidelity image generation. JMLR (2022)
251
+
252
+ 17. Ho, J., Salimans, T., Gritsenko, A., Chan, W., Norouzi, M., Fleet, D.J.: Video diffusion models. arXiv preprint arXiv:2204.03458 (2022)
253
+ 18. Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W.: LoRA: Low-rank adaptation of large language models. In: International Conference on Learning Representations (2022), https://openreview.net/forum?id=nZeVKeeFYf9
254
+ 19. Huang, Z., Li, H., Xie, Z., Kampffmeyer, M., Liang, X., et al.: Towards hard-posed virtual try-on via 3d-aware global correspondence learning. Advances in Neural Information Processing Systems 35, 32736-32748 (2022)
255
+ 20. Iizuka, S., Simo-Serra, E., Ishikawa, H.: Globally and locally consistent image completion. ACM Transactions on Graphics (ToG) 36(4), 1-14 (2017)
256
+ 21. Jiang, Y., Zhang, H., Zhang, J., Wang, Y., Lin, Z., Sunkavalli, K., Chen, S., Amirghodsi, S., Kong, S., Wang, Z.: Ssh: A self-supervised framework for image harmonization. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 4832-4841 (2021)
257
+ 22. Ke, Z., Sun, C., Zhu, L., Xu, K., Lau, R.W.: Harmonizer: Learning to perform white-box image and video harmonization. In: European Conference on Computer Vision. pp. 690-706. Springer (2022)
258
+ 23. Kim, G., Kwon, T., Ye, J.C.: Diffusionclip: Text-guided diffusion models for robust image manipulation. In: CVPR. pp. 2426-2435 (2022)
259
+ 24. Konstantin Sofliuk, Polina Popenova, A.K.: Foreground-aware semantic representations for image harmonization. arXiv preprint arXiv:2006.00809 (2020)
260
+ 25. Kulal, S., Brooks, T., Aiken, A., Wu, J., Yang, J., Lu, J., Efros, A.A., Singh, K.K.: Putting people in their place: Affordance-aware human insertion into scenes. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2023)
261
+ 26. Kwon, G., Ye, J.C.: Diffusion-based image translation using disentangled style and content representation. In: ICLR (2023)
262
+ 27. Kwon, M., Jeong, J., Uh, Y.: Diffusion models already have a semantic latent space. In: ICLR (2023)
263
+ 28. Li, J., Zhao, J., Wei, Y., Lang, C., Li, Y., Sim, T., Yan, S., Feng, J.: Multiple-human parsing in the wild. arXiv preprint arXiv:1705.07206 (2017)
264
+ 29. Liu, G., Reda, F.A., Shih, K.J., Wang, T.C., Tao, A., Catanzaro, B.: Image inpainting for irregular holes using partial convolutions. In: Proceedings of the European conference on computer vision (ECCV). pp. 85-100 (2018)
265
+ 30. Liu, H., Jiang, B., Song, Y., Huang, W., Yang, C.: Rethinking image inpainting via a mutual encoder-decoder with feature equalizations. In: Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part II 16. pp. 725-741. Springer (2020)
266
+ 31. Liu, L., Xu, W., Habermann, M., Zollhöfer, M., Bernard, F., Kim, H., Wang, W., Theobalt, C.: Neural human video rendering by learning dynamic textures and rendering-to-video translation. arXiv preprint arXiv:2001.04947 (2020)
267
+ 32. Liu, L., Xu, W., Zollhoefer, M., Kim, H., Bernard, F., Habermann, M., Wang, W., Theobalt, C.: Neural rendering and reenactment of human actor videos. ACM Transactions on Graphics (TOG) 38(5), 1-14 (2019)
268
+ 33. Lu, S., Liu, Y., Kong, A.W.K.: Tf-Icon: Diffusion-based training-free cross-domain image composition. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 2294–2305 (2023)
269
+ 34. Ma, L., Jia, X., Sun, Q., Schiele, B., Tuytelaars, T., Van Gool, L.: Pose guided person image generation. arXiv preprint arXiv:1705.09368 (2017)
270
+
271
+ 35. Ma, L., Sun, Q., Georgoulis, S., Van Gool, L., Schiele, B., Fritz, M.: Disentangled person image generation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 99-108 (2018)
272
+ 36. Men, Y., Mao, Y., Jiang, Y., Ma, W.Y., Lian, Z.: Controllable person image synthesis with attribute-decomposed gan. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5084-5093 (2020)
273
+ 37. Mokady, R., Hertz, A., Aberman, K., Pritch, Y., Cohen-Or, D.: Null-text inversion for editing real images using guided diffusion models. arXiv preprint arXiv:2211.09794 (2022)
274
+ 38. Nazeri, K., Ng, E., Joseph, T., Qureshi, F.Z., Ebrahimi, M.: Edgeconnect: Generative image inpainting with adversarial edge learning. arXiv preprint arXiv:1901.00212 (2019)
275
+ 39. Ni, M., Li, X., Zuo, W.: Nuwa-lip: Language-guided image inpainting with defect-free vqgan. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 14183-14192 (2023)
276
+ 40. Nie, X., Feng, J., Xing, J., Yan, S.: Generative partition networks for multi-person pose estimation. arXiv preprint arXiv:1705.07422 (2017)
277
+ 41. Olszewski, K., Ceylan, D., Xing, J., Echevarria, J., Chen, Z., Chen, W., Li, H.: Intuitive, interactive beard and hair synthesis with generative models. In: CVPR. pp. 7446-7456 (2020)
278
+ 42. Oquab, M., Darcet, T., Moutakanni, T., Vo, H.V., Szafraniec, M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-Nouby, A., Howes, R., Huang, P.Y., Xu, H., Sharma, V., Li, S.W., Galuba, W., Rabbat, M., Assran, M., Ballas, N., Synnaeve, G., Misra, I., Jegou, H., Mairal, J., Labatut, P., Joulin, A., Bojanowski, P.: Dinov2: Learning robust visual features without supervision (2023)
279
+ 43. Pathak, D., Krahenbuhl, P., Donahue, J., Darrell, T., Efros, A.A.: Context encoders: Feature learning by inpainting. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 2536-2544 (2016)
280
+ 44. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: CVPR (2022)
281
+ 45. Sahara, C., Ho, J., Chan, W., Salimans, T., Fleet, D.J., Norouzi, M.: Image superresolution via iterative refinement. IEEE TPAMI (2022)
282
+ 46. Shen, Y., Gu, J., Tang, X., Zhou, B.: Interpreting the latent space of gans for semantic face editing. In: CVPR. pp. 9243-9252 (2020)
283
+ 47. Shen, Y., Yang, C., Tang, X., Zhou, B.: Interfacegan: Interpreting the disentangled face representation learned by gans. IEEE Transactions on Pattern Analysis and Machine Intelligence (2020)
284
+ 48. Singer, U., Polyak, A., Hayes, T., Yin, X., An, J., Zhang, S., Hu, Q., Yang, H., Ashual, O., Gafni, O., et al.: Make-a-video: Text-to-video generation without text-video data. arXiv preprint arXiv:2209.14792 (2022)
285
+ 49. Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., Ganguli, S.: Deep unsupervised learning using nonequilibrium thermodynamics. In: ICML (2015)
286
+ 50. Song, J., Meng, C., Ermon, S.: Denoising diffusion implicit models. In: ICLR (2021)
287
+ 51. Song, Y., Sohl-Dickstein, J., Kingma, D.P., Kumar, A., Ermon, S., Poole, B.: Score-based generative modeling through stochastic differential equations. In: ICLR (2021)
288
+ 52. Song, Y., Zhang, Z., Lin, Z., Cohen, S., Price, B., Zhang, J., Kim, S.Y., Aliaga, D.: Objectstitch: Object compositing with diffusion model. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 18310-18319 (2023)
289
+
290
+ 53. Tang, L., Ruiz, N., Qinghao, C., Li, Y., Holynski, A., Jacobs, D.E., Hariharan, B., Pritch, Y., Wadhwa, N., Aberman, K., Rubinstein, M.: Realfill: Reference-driven generation for authentic image completion. arXiv preprint arXiv:2309.16668 (2023)
291
+ 54. Van Den Oord, A., Vinyals, O., et al.: Neural discrete representation learning. Advances in Neural Information Processing Systems pp. 6306-6315 (2017)
292
+ 55. Wang, S., Sahara, C., Montgomery, C., Pont-Tuset, J., Noy, S., Pellegrini, S., Onoe, Y., Laszlo, S., Fleet, D.J., Soricut, R., et al.: Imagen editor and editbench: Advancing and evaluating text-guided image inpainting. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 18359-18369 (2023)
293
+ 56. Wang, W., Alameda-Pineda, X., Xu, D., Fua, P., Ricci, E., Sebe, N.: Every smile is unique: Landmark-guided diverse smile generation. In: CVPR. pp. 7083-7092 (2018)
294
+ 57. Wang, W., Cui, Z., Yan, Y., Feng, J., Yan, S., Shu, X., Sebe, N.: Recurrent face aging. In: CVPR. pp. 2378-2386 (2016)
295
+ 58. Xie, S., Zhang, Z., Lin, Z., Hinz, T., Zhang, K.: Smartbrush: Text and shape guided object inpainting with diffusion model. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 22428-22437 (2023)
296
+ 59. Xie, Z., Huang, Z., Dong, X., Zhao, F., Dong, H., Zhang, X., Zhu, F., Liang, X.: Gp-vton: Towards general purpose virtual try-on via collaborative local-flow global-parsing learning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 23550-23559 (2023)
297
+ 60. Xing, J., Nagano, K., Chen, W., Xu, H., Wei, L.y., Zhao, Y., Lu, J., Kim, B., Li, H.: Hairbrush for immersive data-driven hair modeling. In: Proceedings of the 32Nd Annual ACM Symposium on User Interface Software and Technology. pp. 263-279 (2019)
298
+ 61. Yang, B., Gu, S., Zhang, B., Zhang, T., Chen, X., Sun, X., Chen, D., Wen, F.: Paint by example: Exemplar-based image editing with diffusion models. arXiv preprint arXiv:2211.13227 (2022)
299
+ 62. Yang, H., Huang, D., Wang, Y., Jain, A.K.: Learning face age progression: A pyramid architecture of gans. In: CVPR. pp. 31-39 (2018)
300
+ 63. Zhang, B., Duan, Y., Lan, J., Hong, Y., Zhu, H., Wang, W., Niu, L.: Controlcom: Controllable image composition using diffusion model. arXiv preprint arXiv:2308.10040 (2023)
301
+ 64. Zhang, L., Rao, A., Agrawala, M.: Adding conditional control to text-to-image diffusion models (2023)
302
+ 65. Zhao, J., Li, J., Cheng, Y., Sim, T., Yan, S., Feng, J.: Understanding humans in crowded scenes: Deep nested adversarial learning and a new benchmark for multi-human parsing. In: Proceedings of the 26th ACM international conference on Multimedia. pp. 792-800 (2018)
303
+ 66. Zhu, L., Yang, D., Zhu, T., Reda, F., Chan, W., Sahara, C., Norouzi, M., Kemelmacher-Shlizerman, I.: Tryondiffusion: A tale of two unets. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 4606-4615 (2023)
304
+ 67. Zhu, Y., Li, Z., Wang, T., He, M., Yao, C.: Conditional text image generation with diffusion models. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 14235-14245 (2023)
2024/GroupDiff_ Diffusion-based Group Portrait Editing/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b46b7b40a10fc29ddbd06a56c8ca5baf9066f4b86e0e66a421392eed4d1d27af
3
+ size 519270
2024/GroupDiff_ Diffusion-based Group Portrait Editing/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/530ccc05-6bb4-41b7-8d2f-33c8296c81f7_content_list.json ADDED
@@ -0,0 +1,2077 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Guide-and-Rescale: Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 220,
8
+ 140,
9
+ 782,
10
+ 186
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Vadim Titov $^{2*}$ , Madina Khalmatova $^{4*}$ , Alexandra Ivanova $^{1,2,3*}$ , Dmitry Vetrov $^{5}$ , and Aibek Alanov $^{1,2}$",
17
+ "bbox": [
18
+ 241,
19
+ 210,
20
+ 759,
21
+ 243
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "$^{1}$ HSE University",
28
+ "bbox": [
29
+ 439,
30
+ 253,
31
+ 560,
32
+ 268
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "2 AIRI",
39
+ "bbox": [
40
+ 475,
41
+ 268,
42
+ 527,
43
+ 281
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "titov.vn@phystech.edu, {a.ivanova,alanov}@airi.net",
50
+ "bbox": [
51
+ 308,
52
+ 282,
53
+ 691,
54
+ 296
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "$^{3}$ Skolkovo Institute of Science and Technology",
61
+ "bbox": [
62
+ 343,
63
+ 296,
64
+ 658,
65
+ 310
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "4 UNSW Sydney",
72
+ "bbox": [
73
+ 442,
74
+ 310,
75
+ 560,
76
+ 324
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "m.khalmatova@student.unsw.edu.au",
83
+ "bbox": [
84
+ 375,
85
+ 325,
86
+ 625,
87
+ 337
88
+ ],
89
+ "page_idx": 0
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "5 Constructor University, Bremen",
94
+ "bbox": [
95
+ 387,
96
+ 337,
97
+ 614,
98
+ 352
99
+ ],
100
+ "page_idx": 0
101
+ },
102
+ {
103
+ "type": "text",
104
+ "text": "dvetrov@constructor.university",
105
+ "bbox": [
106
+ 383,
107
+ 353,
108
+ 617,
109
+ 366
110
+ ],
111
+ "page_idx": 0
112
+ },
113
+ {
114
+ "type": "image",
115
+ "img_path": "images/055181a57697a99f298b510de90a82734df79322ff42a70ca3f97bab34e7ed09.jpg",
116
+ "image_caption": [
117
+ "Original Image",
118
+ "A photo of a tiger"
119
+ ],
120
+ "image_footnote": [],
121
+ "bbox": [
122
+ 220,
123
+ 385,
124
+ 287,
125
+ 438
126
+ ],
127
+ "page_idx": 0
128
+ },
129
+ {
130
+ "type": "image",
131
+ "img_path": "images/43be28467fa50936b1a8fc5a00bda23749f76620cad16312ac79ba333a3c19f2.jpg",
132
+ "image_caption": [
133
+ "A photo of a lion"
134
+ ],
135
+ "image_footnote": [],
136
+ "bbox": [
137
+ 290,
138
+ 385,
139
+ 359,
140
+ 438
141
+ ],
142
+ "page_idx": 0
143
+ },
144
+ {
145
+ "type": "image",
146
+ "img_path": "images/7004caa2b7e86f2f641471ff317ecff2b8d6a4e55eab066d521d6dd90047ee28.jpg",
147
+ "image_caption": [
148
+ "A photo of a goat"
149
+ ],
150
+ "image_footnote": [],
151
+ "bbox": [
152
+ 361,
153
+ 385,
154
+ 429,
155
+ 438
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "image",
161
+ "img_path": "images/a09ca7dcfd95a073550cb0d977e1b660d3a0e10420a5bdf0a9434011dc966956.jpg",
162
+ "image_caption": [
163
+ "A photo of a wolf",
164
+ "Lying down woman"
165
+ ],
166
+ "image_footnote": [],
167
+ "bbox": [
168
+ 431,
169
+ 385,
170
+ 500,
171
+ 438
172
+ ],
173
+ "page_idx": 0
174
+ },
175
+ {
176
+ "type": "image",
177
+ "img_path": "images/1791cf90767bbfd975a97e164ab94fb087b0bf03e70120a11b510776feb7012f.jpg",
178
+ "image_caption": [
179
+ "Original Image"
180
+ ],
181
+ "image_footnote": [],
182
+ "bbox": [
183
+ 501,
184
+ 385,
185
+ 570,
186
+ 438
187
+ ],
188
+ "page_idx": 0
189
+ },
190
+ {
191
+ "type": "image",
192
+ "img_path": "images/2533d5fb2b964266d387ff0cbda27798de229a1c11fd1600505b2f8fce535f6e.jpg",
193
+ "image_caption": [
194
+ "Lying down woman"
195
+ ],
196
+ "image_footnote": [],
197
+ "bbox": [
198
+ 571,
199
+ 385,
200
+ 638,
201
+ 438
202
+ ],
203
+ "page_idx": 0
204
+ },
205
+ {
206
+ "type": "image",
207
+ "img_path": "images/84895bef81232fad210e1043d6284baf833d48f5100e4252a28a1e35e523e2f6.jpg",
208
+ "image_caption": [
209
+ "Lying down woman"
210
+ ],
211
+ "image_footnote": [],
212
+ "bbox": [
213
+ 640,
214
+ 385,
215
+ 710,
216
+ 438
217
+ ],
218
+ "page_idx": 0
219
+ },
220
+ {
221
+ "type": "image",
222
+ "img_path": "images/d730f406974ccd3df332b395e463122fa9023b4b3893da50e0acc7b663c622d9.jpg",
223
+ "image_caption": [
224
+ "Lying down woman",
225
+ "wearing green jacket"
226
+ ],
227
+ "image_footnote": [],
228
+ "bbox": [
229
+ 712,
230
+ 385,
231
+ 782,
232
+ 438
233
+ ],
234
+ "page_idx": 0
235
+ },
236
+ {
237
+ "type": "image",
238
+ "img_path": "images/40603b416d01702f1407a30622055f62bb173ede2439551f3edfefda9dadc884.jpg",
239
+ "image_caption": [
240
+ "Original Image",
241
+ "A photo of",
242
+ "a woman",
243
+ "Fig. 1: Guide-and-Rescale for real image editing. Our method allows to manipulate images for a wide range of different editorings. It achieves a good balance between quality of manipulation and preservation of the original image."
244
+ ],
245
+ "image_footnote": [],
246
+ "bbox": [
247
+ 217,
248
+ 462,
249
+ 287,
250
+ 515
251
+ ],
252
+ "page_idx": 0
253
+ },
254
+ {
255
+ "type": "image",
256
+ "img_path": "images/169104b95c10d01bfdb71b0959beac0e3735bc801b5106b9d7c3f07db3b0870b.jpg",
257
+ "image_caption": [
258
+ "A photo of",
259
+ "a sad woman"
260
+ ],
261
+ "image_footnote": [],
262
+ "bbox": [
263
+ 290,
264
+ 462,
265
+ 359,
266
+ 515
267
+ ],
268
+ "page_idx": 0
269
+ },
270
+ {
271
+ "type": "image",
272
+ "img_path": "images/bd5ed78739cac13a7d2d5061b573bc08847b4db2ac2b9b0a54c06bf4a7a98a1e.jpg",
273
+ "image_caption": [
274
+ "A photo of",
275
+ "a happy woman"
276
+ ],
277
+ "image_footnote": [],
278
+ "bbox": [
279
+ 361,
280
+ 462,
281
+ 429,
282
+ 515
283
+ ],
284
+ "page_idx": 0
285
+ },
286
+ {
287
+ "type": "image",
288
+ "img_path": "images/7e1b83f65ae25eca883b745d3455a804ceb3f14099e1be7a1b3fb517208963f1.jpg",
289
+ "image_caption": [
290
+ "A photo of",
291
+ "a crying woman"
292
+ ],
293
+ "image_footnote": [],
294
+ "bbox": [
295
+ 431,
296
+ 462,
297
+ 500,
298
+ 515
299
+ ],
300
+ "page_idx": 0
301
+ },
302
+ {
303
+ "type": "image",
304
+ "img_path": "images/414e3a725e3ab0d54f12b1ce97dcbc56d857686135e3ac7d10721bcf343aaca9.jpg",
305
+ "image_caption": [
306
+ "A photo"
307
+ ],
308
+ "image_footnote": [],
309
+ "bbox": [
310
+ 501,
311
+ 462,
312
+ 570,
313
+ 515
314
+ ],
315
+ "page_idx": 0
316
+ },
317
+ {
318
+ "type": "image",
319
+ "img_path": "images/8d969b11961b0afb194e1e1ccc03d57568127d93181f31abe351187a72c19db2.jpg",
320
+ "image_caption": [
321
+ "Anime style face"
322
+ ],
323
+ "image_footnote": [],
324
+ "bbox": [
325
+ 571,
326
+ 462,
327
+ 638,
328
+ 515
329
+ ],
330
+ "page_idx": 0
331
+ },
332
+ {
333
+ "type": "image",
334
+ "img_path": "images/961dd5d645c7308ef56e2b00b2811c7b6d2aa20f85447819a0f55c3c5780fa31.jpg",
335
+ "image_caption": [
336
+ "A pixar style face"
337
+ ],
338
+ "image_footnote": [],
339
+ "bbox": [
340
+ 640,
341
+ 462,
342
+ 710,
343
+ 515
344
+ ],
345
+ "page_idx": 0
346
+ },
347
+ {
348
+ "type": "image",
349
+ "img_path": "images/4e12768951f6a0ccff0e234894652611bcafd149560eadfd6bde946a257b17a2.jpg",
350
+ "image_caption": [
351
+ "A mosaic depicting",
352
+ "of a face"
353
+ ],
354
+ "image_footnote": [],
355
+ "bbox": [
356
+ 712,
357
+ 462,
358
+ 782,
359
+ 515
360
+ ],
361
+ "page_idx": 0
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "Abstract. Despite recent advances in large-scale text-to-image generative models, manipulating real images with these models remains a challenging problem. The main limitations of existing editing methods are that they either fail to perform with consistent quality on a wide range of image edits or require time-consuming hyperparameter tuning or fine-tuning of the diffusion model to preserve the image-specific appearance of the input image. We propose a novel approach that is built upon a modified diffusion sampling process via the guidance mechanism. In this work, we explore the self-guidance technique to preserve the overall structure of the input image and its local regions appearance that should not be edited. In particular, we explicitly introduce layout-preserving energy functions that are aimed to save local and global structures of the source image. Additionally, we propose a noise rescaling mechanism that allows to preserve noise distribution by balancing the norms of classifier-free guidance and our proposed guiders during generation. Such a guiding",
366
+ "bbox": [
367
+ 259,
368
+ 608,
369
+ 740,
370
+ 816
371
+ ],
372
+ "page_idx": 0
373
+ },
374
+ {
375
+ "type": "page_footnote",
376
+ "text": "* Equal contribution.",
377
+ "bbox": [
378
+ 220,
379
+ 824,
380
+ 364,
381
+ 839
382
+ ],
383
+ "page_idx": 0
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "approach does not require fine-tuning the diffusion model and exact inversion process. As a result, the proposed method provides a fast and high-quality editing mechanism. In our experiments, we show through human evaluation and quantitative analysis that the proposed method allows to produce desired editing which is more preferable by humans and also achieves a better trade-off between editing quality and preservation of the original image. Our code is available at https://github.com/AIRI-Institute/Guide-and-Rescale.",
388
+ "bbox": [
389
+ 259,
390
+ 147,
391
+ 743,
392
+ 258
393
+ ],
394
+ "page_idx": 1
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "1 Introduction",
399
+ "text_level": 1,
400
+ "bbox": [
401
+ 215,
402
+ 281,
403
+ 375,
404
+ 297
405
+ ],
406
+ "page_idx": 1
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "In recent years, diffusion models [8,24] have been rapidly developed due to their high generation quality. Therefore, they have started to be actively used as a base model for text-to-image generative models [18-20], where an image has to be generated from a textual description. Although such models have already achieved impressive results, they are still difficult to apply to the task of editing real images. The main problem is to find a balance between making the edited image reflect the expected change and preserving the original structure and the parts that should not have been edited.",
411
+ "bbox": [
412
+ 212,
413
+ 311,
414
+ 787,
415
+ 431
416
+ ],
417
+ "page_idx": 1
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "Existing approaches to image manipulation based on text-to-image models address this task in different ways and can be categorized into three main groups of methods. Approaches from the first category [10,25,28] use fine-tuning of the whole diffusion model on the input image in order to preserve its structure and all necessary details during editing. Although such a strategy gives good results, the optimization process makes them very long, which does not allow to apply them in practice. In the next group of methods [1,2,4-7,16], instead of the optimization step, they use internal representations of images in the diffusion model and replace them during generation to preserve parts of the original image that should not change during editing. These methods are significantly faster than optimization-based methods, but they are not universal and require careful tuning of hyperparameters. As a result, they can only work consistently for a narrow set of edits. Finally, the third group of methods [13-15, 26] focuses on building a high-quality reconstruction of the original image by minimizing the discrepancy between the forward and backward trajectories of the diffusion processes. The main problem of this group of methods is the additional time required to construct a good quality inversion. In general, the currently available methods for manipulating real images have many limitations in terms of time, quality, and edit versatility, so it is still a challenging problem to find a model that is efficient, high quality, and covers most of the edit types.",
422
+ "bbox": [
423
+ 212,
424
+ 431,
425
+ 787,
426
+ 734
427
+ ],
428
+ "page_idx": 1
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "In this paper, we investigate the guidance technique for the problem of real image editing. As most of the tunneling-free approaches leverage UNet internal representations which are cached during inversion and used during editing generation, it causes misalignment between real features and inserted ones, and therefore noise trajectory may leave the distribution of natural images. To overcome these issues we propose special energy functions named guiders that are designed to preserve overall source image structure and local regions that should",
433
+ "bbox": [
434
+ 212,
435
+ 734,
436
+ 787,
437
+ 839
438
+ ],
439
+ "page_idx": 1
440
+ },
441
+ {
442
+ "type": "page_number",
443
+ "text": "2",
444
+ "bbox": [
445
+ 217,
446
+ 114,
447
+ 228,
448
+ 126
449
+ ],
450
+ "page_idx": 1
451
+ },
452
+ {
453
+ "type": "header",
454
+ "text": "V. Titov et al.",
455
+ "bbox": [
456
+ 271,
457
+ 114,
458
+ 369,
459
+ 127
460
+ ],
461
+ "page_idx": 1
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "not be edited as well. We explicitly introduce preserving term that smoothly manipulates overall noise trajectory distribution. Additionally, we extend our framework by the automatic mechanism of noise rescaling which prevents discrepancy of noise trajectory from initial diffusion sampling by balancing the norms of classifier-free guidance and our proposed guiders. Our approach does not require the exact reconstruction as well as the fine-tuning the diffusion model, so it is computationally efficient. Due to the flexibility of the proposed guiders, our method is versatile and supports many types of editing, from local changes of objects to global stylisation (see Fig. 1).",
466
+ "bbox": [
467
+ 212,
468
+ 146,
469
+ 787,
470
+ 282
471
+ ],
472
+ "page_idx": 2
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "We apply our method to Stable Diffusion [19] model and conduct an extensive set of experiments for comparison with other methods. Our approach achieves a better balance between editing quality and preservation of the original image structure in terms of CLIP/LPIPS scores for a wide range of different editing types. For a standard image-to-image problem $(\\mathrm{Dog} \\to \\mathrm{Cat})$ we show that our method performs better than other baselines. Also, we provide user studies and show that our approach is most preferable in human evaluation.",
477
+ "bbox": [
478
+ 212,
479
+ 282,
480
+ 787,
481
+ 388
482
+ ],
483
+ "page_idx": 2
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "2 Related Work",
488
+ "text_level": 1,
489
+ "bbox": [
490
+ 215,
491
+ 412,
492
+ 387,
493
+ 429
494
+ ],
495
+ "page_idx": 2
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "Diffusion models [8,24] show high-quality results in generative modeling. This is the reason why they could be used to solve the image editing problem. Text-to-image diffusion models [18-20] are particularly useful and common for solving this problem. One of the first text-guided image editing methods is SDEdit [12] whose main idea is to add the noise step by step and then denoise with different conditions, but the quality of the editing is not so high. We can distinguish three main groups of editing methods which we consider next.",
500
+ "bbox": [
501
+ 212,
502
+ 446,
503
+ 787,
504
+ 551
505
+ ],
506
+ "page_idx": 2
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "Optimization-based methods. Methods in the first group [10, 25, 28] are based on fine-tuning the diffusion for the input image. In Imagic [10] and SINE [28] the diffusion model is fine-tuned on the original image, and the target prompt, which allows taking into account initial image characteristics but slows down the editing process. UniTune [25] fine-tunes the model only on the original image, but it still works slowly. However, UniTune, in contrast to Imagic and SINE, allows applying multiple edits to one image without any additional optimization.",
511
+ "bbox": [
512
+ 212,
513
+ 551,
514
+ 787,
515
+ 672
516
+ ],
517
+ "page_idx": 2
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "Methods that utilize internal representations of the diffusion model. The following approaches [1, 2, 4-7, 16] are based on using internal representations of the image in the text-to-image diffusion model, such as features from cross-attention and self-attention layers to preserve the structure and the details of the original image. Prompt-to-Prompt [7] controls the cross-attention by replacing maps for new tokens from the target prompt and preserving maps in the overlapping tokens. In [16] authors guide cross-attention maps to reference reconstruction with a source prompt during the denoising process. Plug-and-Play [4] outperforms Prompt-to-Prompt by using feature and self-attention outputs as conditions for the diffusion model to focus on spatial features and their self-affinities. InstructPix2Pix [1] proposes an approach based on a combination of",
522
+ "bbox": [
523
+ 212,
524
+ 672,
525
+ 787,
526
+ 840
527
+ ],
528
+ "page_idx": 2
529
+ },
530
+ {
531
+ "type": "header",
532
+ "text": "Guide-and-Rescale",
533
+ "bbox": [
534
+ 604,
535
+ 114,
536
+ 730,
537
+ 127
538
+ ],
539
+ "page_idx": 2
540
+ },
541
+ {
542
+ "type": "page_number",
543
+ "text": "3",
544
+ "bbox": [
545
+ 774,
546
+ 116,
547
+ 784,
548
+ 126
549
+ ],
550
+ "page_idx": 2
551
+ },
552
+ {
553
+ "type": "image",
554
+ "img_path": "images/14773110c475ca6599718780be3a9f2f3d6048bf6bb48d6773d15e431d19a97f.jpg",
555
+ "image_caption": [
556
+ "Fig. 2: Overall scheme of the proposed method Guide-and-Rescale. First, our method uses a classic ddim inversion of the source real image. Then the method performs real image editing via the classical denoising process. For every denoising step the noise term is modified by guider that utilizes latents $z_{t}$ from the current generation process and time-aligned ddim latents $z_{t}^{*}$ ."
557
+ ],
558
+ "image_footnote": [],
559
+ "bbox": [
560
+ 228,
561
+ 142,
562
+ 782,
563
+ 348
564
+ ],
565
+ "page_idx": 3
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "Prompt-to-Prompt and the language model to control editing through specific instructions, but it requires an additional dataset generation phase.",
570
+ "bbox": [
571
+ 212,
572
+ 460,
573
+ 784,
574
+ 491
575
+ ],
576
+ "page_idx": 3
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "The limitation of previous methods is the difficulty of changing poses and object locations. MasaCtrl [2] uses mutual self-attention features based on reconstruction during editing to preserve the local content and textures of the original image. In ProxMasaCtrl [6], which is MasaCtrl extension, an additional proximal gradient step for the scaled noise difference is used to change the geometry and layout in edited images. Despite the ability to change object poses, the disadvantage of MasaCtrl is that the original image, the object background, is preserved inaccurately. Self-guidance [5] proposes an approach to simple editorings such as changing object position, size, and color by using intermediate activations and attention interactions as guidance signals during generation. The method we propose is based on this self-guidance mechanism, but we develop it for any type of editing.",
581
+ "bbox": [
582
+ 212,
583
+ 492,
584
+ 785,
585
+ 672
586
+ ],
587
+ "page_idx": 3
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Methods that improve the inversion part. The next group of methods [13-15, 26] focuses on improving the quality of the image reconstruction, and it allows to preserve parts of the image that should not be edited and the overall structure. This is achieved by narrowing the gap between the forward and backward trajectories of the diffusion model. Null-text Inversion [14] is proposed as an adaptation of Prompt-to-Prompt [7] for real images and is based on the optimization of the null-text embedding which is used in classifier-free guidance. To avoid learning the null-text embedding for each image, a new method for its approximation by the source prompt embedding is suggested in Negative-prompt Inversion [13], but it can lead to artifacts. EDICT [26] overcomes the restrictions of DDIM [22] in the image reconstruction by mathematically pre",
592
+ "bbox": [
593
+ 212,
594
+ 674,
595
+ 787,
596
+ 840
597
+ ],
598
+ "page_idx": 3
599
+ },
600
+ {
601
+ "type": "page_number",
602
+ "text": "4",
603
+ "bbox": [
604
+ 217,
605
+ 114,
606
+ 228,
607
+ 126
608
+ ],
609
+ "page_idx": 3
610
+ },
611
+ {
612
+ "type": "header",
613
+ "text": "V. Titov et al.",
614
+ "bbox": [
615
+ 271,
616
+ 114,
617
+ 369,
618
+ 126
619
+ ],
620
+ "page_idx": 3
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "cise image inversion, but requires some additional computation time. Finally, AIDI [15] is proposed to increase the precision of the reconstruction by applying fixed-point iteration, Anderson acceleration in inversion, and blended guidance for sampling.",
625
+ "bbox": [
626
+ 212,
627
+ 146,
628
+ 782,
629
+ 205
630
+ ],
631
+ "page_idx": 4
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "The main problem of the methods in this group is the extra time needed to achieve a high-quality reconstruction of the initial image. Our method in contrast does not require an optimization and additional phase for image reconstruction, and therefore it is more computationally efficient.",
636
+ "bbox": [
637
+ 212,
638
+ 207,
639
+ 784,
640
+ 267
641
+ ],
642
+ "page_idx": 4
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "3 Method",
647
+ "text_level": 1,
648
+ "bbox": [
649
+ 215,
650
+ 291,
651
+ 330,
652
+ 306
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "3.1 Preliminaries",
659
+ "text_level": 1,
660
+ "bbox": [
661
+ 215,
662
+ 324,
663
+ 372,
664
+ 339
665
+ ],
666
+ "page_idx": 4
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "Diffusion Model. The method uses a pre-trained text-to-image diffusion model. In our experiments, we use a publicly available Stable Diffusion (SD) [19] model, specifically its checkpoint stable-diffusion-v1-4. Our method does not finetune or modify it.",
671
+ "bbox": [
672
+ 212,
673
+ 349,
674
+ 782,
675
+ 409
676
+ ],
677
+ "page_idx": 4
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "SD is a latent diffusion model (LDM) [19], meaning that the model operates in a latent space. Using a pre-trained VAE [11] encoder, Enc., one can encode an image into a sample from the latent space. And, likewise, given a latent $z$ and a VAE decoder, Dec., one can obtain an image space sample $x$ . However, our method does not rely on the existence of the latent space, so it may be applied to diffusion models, that perform sampling directly in the image space [20].",
682
+ "bbox": [
683
+ 212,
684
+ 411,
685
+ 784,
686
+ 501
687
+ ],
688
+ "page_idx": 4
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "SD is a text-to-image model, meaning that it can be conditioned on textual captions. Our method heavily relies on this property, as it requires two prompts to be specified: a source prompt, describing the initial image, and a target prompt, outlining the desired result of editing.",
693
+ "bbox": [
694
+ 212,
695
+ 503,
696
+ 784,
697
+ 561
698
+ ],
699
+ "page_idx": 4
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "We use DDIM [22] sampling with $T = 50$ intermediate steps, where a single sampling step is defined as:",
704
+ "bbox": [
705
+ 212,
706
+ 563,
707
+ 784,
708
+ 592
709
+ ],
710
+ "page_idx": 4
711
+ },
712
+ {
713
+ "type": "equation",
714
+ "text": "\n$$\nz _ {t - 1} = a _ {t} z _ {t} + b _ {t} \\varepsilon_ {\\theta} (z _ {t}, t, y), \\tag {1}\n$$\n",
715
+ "text_format": "latex",
716
+ "bbox": [
717
+ 406,
718
+ 595,
719
+ 784,
720
+ 611
721
+ ],
722
+ "page_idx": 4
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "where $a_{t}, b_{t}$ are specified coefficients, $z_{t}$ is a current latent, $t$ is a current timestep, $y$ is conditioning data and $\\varepsilon_{\\theta}(z_t,t,y)$ is the noise, predicted by the diffusion model.",
727
+ "bbox": [
728
+ 212,
729
+ 618,
730
+ 782,
731
+ 660
732
+ ],
733
+ "page_idx": 4
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "To allow the diffusion model to operate with real images, we need a noised latent $z_{T}$ , corresponding to this image. For this purpose, we use DDIM inversion, defined similarly to Equation 1:",
738
+ "bbox": [
739
+ 212,
740
+ 662,
741
+ 782,
742
+ 708
743
+ ],
744
+ "page_idx": 4
745
+ },
746
+ {
747
+ "type": "equation",
748
+ "text": "\n$$\nz _ {t + 1} = a _ {t} ^ {*} z _ {t} + b _ {t} ^ {*} \\varepsilon_ {\\theta} (z _ {t}, t, y). \\tag {2}\n$$\n",
749
+ "text_format": "latex",
750
+ "bbox": [
751
+ 406,
752
+ 710,
753
+ 784,
754
+ 727
755
+ ],
756
+ "page_idx": 4
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "Even though DDIM inversion is not stable, as noted by the authors of Prompt-to-Prompt [7], our method overcomes this issue without any enhancements to the inversion process or optimization and is capable of preserving features of the initial image, as we show in experiments.",
761
+ "bbox": [
762
+ 212,
763
+ 734,
764
+ 782,
765
+ 792
766
+ ],
767
+ "page_idx": 4
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "Guidance. Guidance mechanism takes the prediction of the diffusion model and enhances it with information from additional data. Classifier guidance relies on a separate model, classifier $p(y|z_t)$ , trained on noised latents. As long as this",
772
+ "bbox": [
773
+ 212,
774
+ 794,
775
+ 782,
776
+ 839
777
+ ],
778
+ "page_idx": 4
779
+ },
780
+ {
781
+ "type": "header",
782
+ "text": "Guide-and-Rescale",
783
+ "bbox": [
784
+ 604,
785
+ 114,
786
+ 730,
787
+ 126
788
+ ],
789
+ "page_idx": 4
790
+ },
791
+ {
792
+ "type": "page_number",
793
+ "text": "5",
794
+ "bbox": [
795
+ 774,
796
+ 116,
797
+ 784,
798
+ 126
799
+ ],
800
+ "page_idx": 4
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "classifier is differentiable with respect to the current latent, we can subtract score function $\\nabla_{z_t}\\log p(y|z_t)$ from the diffusion model prediction to sample from the conditional distribution $p(z_{t}|y)$ instead of the data distribution $p(z_{t})$",
805
+ "bbox": [
806
+ 212,
807
+ 146,
808
+ 782,
809
+ 191
810
+ ],
811
+ "page_idx": 5
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "Training a separate classifier on specific data may sometimes be a resourceful task. Given a conditional diffusion model, one can rely on this model's knowledge about additional data, that it inquires with conditioning capabilities. This guidance technique is called classifier-free guidance (CFG) [9]. To determine the sampling direction, which leads to correspondence with conditioning data $y$ , CFG compares a conditional prediction of the model with an unconditional one. In case of text-to-image models, the latter can be easily obtained by conditioning the model on the empty text $\\varnothing = \\emptyset$ . With CFG incorporated, the diffusion model prediction, used in both sampling, Equation 1, and inversion, Equation 2, takes the form of $\\hat{\\varepsilon}_{\\theta}(z_t,t,y)$ :",
816
+ "bbox": [
817
+ 212,
818
+ 191,
819
+ 784,
820
+ 343
821
+ ],
822
+ "page_idx": 5
823
+ },
824
+ {
825
+ "type": "equation",
826
+ "text": "\n$$\n\\hat {\\varepsilon} _ {\\theta} \\left(z _ {t}, t, y\\right) = \\operatorname {C F G} \\left(z _ {t}, t, y, w\\right) = \\varepsilon_ {\\theta} \\left(z _ {t}, t, \\varnothing\\right) + w \\left(\\varepsilon_ {\\theta} \\left(z _ {t}, t, y\\right) - \\varepsilon_ {\\theta} \\left(z _ {t}, t, \\varnothing\\right)\\right), \\tag {3}\n$$\n",
827
+ "text_format": "latex",
828
+ "bbox": [
829
+ 236,
830
+ 356,
831
+ 784,
832
+ 375
833
+ ],
834
+ "page_idx": 5
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "where $w$ is a guidance scale, that controls to which extent additional data $y$ influences the generation process. For SD model, the guidance scale is typically chosen as $w = 7.5$ . It is important to note, that with $w = 1$ CFG sampling step equals regular conditional sampling.",
839
+ "bbox": [
840
+ 212,
841
+ 385,
842
+ 782,
843
+ 445
844
+ ],
845
+ "page_idx": 5
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Self-guidance. As proposed in [5], the choice in guidance sources is not limited to either the classifier or the diffusion model itself. One can use any energy function $g$ to guide the sampling process, as long as there exists a gradient with respect to $z_{t}$ . When the energy function uses outputs of internal layers of the diffusion model, the guidance process is called self-guidance. The authors of the method suggest defining energy function $g$ on top of cross-attention maps $\\mathcal{A}^{\\mathrm{cross}} \\coloneqq$ cross attn. $[\\varepsilon_{\\theta}(z_t,t,y)]$ and the output of penultimate layer of the diffusion model decoder, features $\\varPsi \\coloneqq$ features $[\\varepsilon_{\\theta}(z_t,t,y)]$ . To add self-guidance to CFG, one has to modify $\\hat{\\varepsilon}_{\\theta}(z_t,t,y)$ from Equation 3 as:",
850
+ "bbox": [
851
+ 212,
852
+ 446,
853
+ 784,
854
+ 580
855
+ ],
856
+ "page_idx": 5
857
+ },
858
+ {
859
+ "type": "equation",
860
+ "text": "\n$$\n\\hat {\\varepsilon} _ {\\theta} \\left(z _ {t}, t, y\\right) = \\operatorname {C F G} \\left(z _ {t}, t, y, w\\right) + v \\cdot \\nabla_ {z _ {t}} g \\left(z _ {t}, t, y, \\mathcal {A} ^ {\\text {c r o s s}}, \\Psi\\right), \\tag {4}\n$$\n",
861
+ "text_format": "latex",
862
+ "bbox": [
863
+ 299,
864
+ 585,
865
+ 784,
866
+ 602
867
+ ],
868
+ "page_idx": 5
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "where $v$ is a self-guidance scale.",
873
+ "bbox": [
874
+ 214,
875
+ 609,
876
+ 444,
877
+ 623
878
+ ],
879
+ "page_idx": 5
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "3.2 Guide and Rescale",
884
+ "text_level": 1,
885
+ "bbox": [
886
+ 214,
887
+ 647,
888
+ 415,
889
+ 660
890
+ ],
891
+ "page_idx": 5
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "Consider an initial image $x_{\\mathrm{init}}$ , a source prompt $y_{\\mathrm{src}}$ and a target prompt $y_{\\mathrm{trg}}$ . For example, let $x_{\\mathrm{init}}$ be a photo of a woman with blue hair, wearing a shirt with a drawing. A source prompt, describing the initial image, can be defined as $y_{\\mathrm{src}} =$ \"A photo of a woman wearing a shirt with a drawing\". A target prompt should describe the desired editing result. For instance, if we want to change the color of the shirt to red, the target prompt can be defined as $y_{\\mathrm{trg}} =$ \"A photo of a woman wearing a red shirt with a drawing\". This example is illustrated in Fig. 3.",
896
+ "bbox": [
897
+ 212,
898
+ 674,
899
+ 784,
900
+ 794
901
+ ],
902
+ "page_idx": 5
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Our goal is to generate an image $x_{\\mathrm{edit}}$ , that would correspond to the editing, specified in $y_{\\mathrm{trg}}$ . At the same time, $x_{\\mathrm{edit}}$ should contain all the features of $x_{\\mathrm{init}}$ , not influenced by editing. For example, when changing the color of the shirt,",
907
+ "bbox": [
908
+ 212,
909
+ 795,
910
+ 782,
911
+ 839
912
+ ],
913
+ "page_idx": 5
914
+ },
915
+ {
916
+ "type": "page_number",
917
+ "text": "6",
918
+ "bbox": [
919
+ 217,
920
+ 114,
921
+ 228,
922
+ 126
923
+ ],
924
+ "page_idx": 5
925
+ },
926
+ {
927
+ "type": "header",
928
+ "text": "V. Titov et al.",
929
+ "bbox": [
930
+ 271,
931
+ 114,
932
+ 369,
933
+ 127
934
+ ],
935
+ "page_idx": 5
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Source prompt: \"A photo of a woman wearing a shirt with a drawing\" Target prompt: \"A photo of a woman wearing a red shirt with a drawing\"",
940
+ "bbox": [
941
+ 228,
942
+ 145,
943
+ 751,
944
+ 172
945
+ ],
946
+ "page_idx": 6
947
+ },
948
+ {
949
+ "type": "image",
950
+ "img_path": "images/2f3bd5ef147a22e4b07b17526ffc8b0b86f46aafb3222225f6649ea0ec033a12.jpg",
951
+ "image_caption": [
952
+ "Fig. 3: Editing example. From left to right, first: initial image; second: naive editing, described in Equation 6; third: editing with simple energy function $g$ from Equation 7; fourth: editing with the proposed method."
953
+ ],
954
+ "image_footnote": [],
955
+ "bbox": [
956
+ 218,
957
+ 179,
958
+ 346,
959
+ 287
960
+ ],
961
+ "page_idx": 6
962
+ },
963
+ {
964
+ "type": "image",
965
+ "img_path": "images/f5a213bc84462894c9f7e57b3877c4c68a1c592d3e5eb7208b24896ffa4fb5f1.jpg",
966
+ "image_caption": [],
967
+ "image_footnote": [],
968
+ "bbox": [
969
+ 366,
970
+ 179,
971
+ 491,
972
+ 287
973
+ ],
974
+ "page_idx": 6
975
+ },
976
+ {
977
+ "type": "image",
978
+ "img_path": "images/75ad581a5374f7fa3da90badf5e6fbe3643e84ba0981859e5f6c6ee695cee1d2.jpg",
979
+ "image_caption": [],
980
+ "image_footnote": [],
981
+ "bbox": [
982
+ 509,
983
+ 179,
984
+ 635,
985
+ 287
986
+ ],
987
+ "page_idx": 6
988
+ },
989
+ {
990
+ "type": "image",
991
+ "img_path": "images/054ae7dfa43e81653ae8b5c80939a44bea2f30d5a1285aae48cf0de76a7913a8.jpg",
992
+ "image_caption": [],
993
+ "image_footnote": [],
994
+ "bbox": [
995
+ 656,
996
+ 179,
997
+ 781,
998
+ 287
999
+ ],
1000
+ "page_idx": 6
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "$x_{\\mathrm{edit}}$ and $x_{\\mathrm{init}}$ should be the same in all other aspects. Meaning, that we should preserve the background of the photo and the visual appearance of the woman, including the color of her hair, her facial expression, and her position.",
1005
+ "bbox": [
1006
+ 212,
1007
+ 373,
1008
+ 782,
1009
+ 417
1010
+ ],
1011
+ "page_idx": 6
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "A naive approach to obtain correspondence to $y_{\\mathrm{trg}}$ can be described as follows. First, we obtain a DDIM inversion trajectory $\\{z_t^*\\}_{t=0}^T$ for $x_{\\mathrm{init}}$ , conditioning on $y_{\\mathrm{src}}$ . We use CFG with guidance scale $w = 1$ , i.e. regular conditional sampling:",
1016
+ "bbox": [
1017
+ 212,
1018
+ 419,
1019
+ 782,
1020
+ 465
1021
+ ],
1022
+ "page_idx": 6
1023
+ },
1024
+ {
1025
+ "type": "equation",
1026
+ "text": "\n$$\n\\begin{array}{c} z _ {0} ^ {*} = \\operatorname {E n c.} \\left(x _ {\\text {i n i t}}\\right) \\\\ z _ {t + 1} ^ {*} = a _ {t} ^ {*} z _ {t} ^ {*} + b _ {t} ^ {*} \\varepsilon_ {\\theta} \\left(z _ {t} ^ {*}, t, y _ {\\mathrm {s r c}}\\right) | _ {0 \\leq t \\leq T - 1}. \\end{array} \\tag {5}\n$$\n",
1027
+ "text_format": "latex",
1028
+ "bbox": [
1029
+ 359,
1030
+ 467,
1031
+ 784,
1032
+ 501
1033
+ ],
1034
+ "page_idx": 6
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "A noised latent $z_{T}^{*}$ has information about $x_{\\mathrm{init}}$ encoded, so an obvious further step would be to synthesize an image, starting from obtained $z_{T}^{*}$ and conditioning on $y_{\\mathrm{trg}}$ , using CFG with standard sampling guidance scale $w = 7.5$ :",
1039
+ "bbox": [
1040
+ 212,
1041
+ 508,
1042
+ 784,
1043
+ 555
1044
+ ],
1045
+ "page_idx": 6
1046
+ },
1047
+ {
1048
+ "type": "equation",
1049
+ "text": "\n$$\n\\begin{array}{c} \\hat {z} _ {T} = z _ {T} ^ {*} \\\\ \\hat {z} _ {t - 1} = a _ {t} \\hat {z} _ {t} + b _ {t} \\mathrm {C F G} (\\hat {z} _ {t - 1}, t, y _ {\\mathrm {t r g}}, 7. 5) \\big | _ {1 \\leq t \\leq T} \\\\ x _ {\\mathrm {e d i t}} = D e c. (\\hat {z} _ {0}). \\end{array} \\tag {6}\n$$\n",
1050
+ "text_format": "latex",
1051
+ "bbox": [
1052
+ 341,
1053
+ 556,
1054
+ 784,
1055
+ 604
1056
+ ],
1057
+ "page_idx": 6
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "This method achieves near-perfect coherence with $y_{\\mathrm{trg}}$ . However, due to a mismatch of guidance scales and conditioning data in inversion and sampling processes, trajectory $\\{\\hat{z}_t\\}_{t=0}^T$ ends up being too far from $\\{z_t^*\\}_{t=0}^T$ . This results in $x_{\\mathrm{init}}$ being modified significantly, as shown by the second image in Fig. 3.",
1062
+ "bbox": [
1063
+ 212,
1064
+ 612,
1065
+ 782,
1066
+ 672
1067
+ ],
1068
+ "page_idx": 6
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "In previous works, there are different workarounds suggested. For example, substituting inner representations of the diffusion model with corresponding representations from $\\{z_t^*\\}_{t=0}^T$ [2,7,23], finetuning the model [10] or optimizing null-text embeddings [14] to move $\\{\\hat{z}_t\\}_{t=0}^T$ closer to the inversion trajectory.",
1073
+ "bbox": [
1074
+ 212,
1075
+ 672,
1076
+ 782,
1077
+ 734
1078
+ ],
1079
+ "page_idx": 6
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "In this work, we suggest addressing this problem with modified self-guidance. As inversion trajectory is an almost perfect reconstruction trajectory for $x_{\\mathrm{init}}$ , we suggest guiding the sampling process with respect to $\\{z_t^*\\}_{t=0}^T$ . This way we will be able to preserve features of the initial image. For example, we can simply define the function $g$ as an L2 norm of the difference of the current latent, obtained with CFG sampling in Equation 6, and the corresponding inversion latent:",
1084
+ "bbox": [
1085
+ 212,
1086
+ 734,
1087
+ 784,
1088
+ 838
1089
+ ],
1090
+ "page_idx": 6
1091
+ },
1092
+ {
1093
+ "type": "header",
1094
+ "text": "Guide-and-Rescale",
1095
+ "bbox": [
1096
+ 604,
1097
+ 114,
1098
+ 730,
1099
+ 126
1100
+ ],
1101
+ "page_idx": 6
1102
+ },
1103
+ {
1104
+ "type": "page_number",
1105
+ "text": "7",
1106
+ "bbox": [
1107
+ 774,
1108
+ 114,
1109
+ 784,
1110
+ 125
1111
+ ],
1112
+ "page_idx": 6
1113
+ },
1114
+ {
1115
+ "type": "equation",
1116
+ "text": "\n$$\ng (\\hat {z} _ {t}, z _ {t} ^ {*}) = \\| \\hat {z} _ {t} - z _ {t} ^ {*} \\| _ {2} ^ {2}. \\tag {7}\n$$\n",
1117
+ "text_format": "latex",
1118
+ "bbox": [
1119
+ 421,
1120
+ 164,
1121
+ 785,
1122
+ 183
1123
+ ],
1124
+ "page_idx": 7
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "However, for proper editing, it is important to control, which regions of the image we want to preserve with the function $g$ , and which areas we still want to vividly edit. Based on editing results (Fig. 3), the simple function in Equation 7 does not hold this property.",
1129
+ "bbox": [
1130
+ 212,
1131
+ 193,
1132
+ 784,
1133
+ 253
1134
+ ],
1135
+ "page_idx": 7
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "We found that applying guidance over inner representations of the model offers the desired control over image regions. To obtain this inner representation, we need to conduct two separate forward passes over the diffusion model.",
1140
+ "bbox": [
1141
+ 212,
1142
+ 255,
1143
+ 784,
1144
+ 301
1145
+ ],
1146
+ "page_idx": 7
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "First, for the inversion trajectory, we make a single sampling step with the same parameters, as in Equation 5:",
1151
+ "bbox": [
1152
+ 212,
1153
+ 301,
1154
+ 785,
1155
+ 333
1156
+ ],
1157
+ "page_idx": 7
1158
+ },
1159
+ {
1160
+ "type": "equation",
1161
+ "text": "\n$$\n\\bar {z} _ {t - 1} ^ {*} = a _ {t} z _ {t} ^ {*} + b _ {t} \\varepsilon_ {\\theta} \\left(z _ {t} ^ {*}, t, y _ {\\mathrm {s r c}}\\right). \\tag {8}\n$$\n",
1162
+ "text_format": "latex",
1163
+ "bbox": [
1164
+ 398,
1165
+ 343,
1166
+ 785,
1167
+ 359
1168
+ ],
1169
+ "page_idx": 7
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Together with a new latent $\\bar{z}_{t-1}^*$ , we obtain inner representations of the diffusion model $\\varepsilon_{\\theta}$ , corresponding to the inversion trajectory. For now, we denote them as $\\mathcal{I}^*$ , i.e. $\\mathcal{I}^*$ is a set of inner representations (for example, outputs of cross-attention or self-attention layers, etc.) that are calculated during the forward pass of $\\varepsilon_{\\theta}(z_t^*, t, y_{\\mathrm{src}})$ . The $\\mathcal{I}^*$ will be defined more specifically in the following Sec. 3.2.",
1174
+ "bbox": [
1175
+ 212,
1176
+ 369,
1177
+ 787,
1178
+ 458
1179
+ ],
1180
+ "page_idx": 7
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "As $\\mathcal{I}^*$ is produced with conditioning on $y_{\\mathrm{src}}$ , a proper way to obtain inner representations for the current trajectory, denoted as $\\overline{\\mathcal{I}}$ , would be to make a single sampling step, starting at a current latent $z_{t}$ and conditioning on $y_{\\mathrm{src}}$ :",
1185
+ "bbox": [
1186
+ 212,
1187
+ 460,
1188
+ 785,
1189
+ 506
1190
+ ],
1191
+ "page_idx": 7
1192
+ },
1193
+ {
1194
+ "type": "equation",
1195
+ "text": "\n$$\n\\bar {z} _ {t - 1} = a _ {t} z _ {t} + b _ {t} \\varepsilon_ {\\theta} \\left(z _ {t}, t, y _ {\\mathrm {s r c}}\\right). \\tag {9}\n$$\n",
1196
+ "text_format": "latex",
1197
+ "bbox": [
1198
+ 400,
1199
+ 516,
1200
+ 785,
1201
+ 532
1202
+ ],
1203
+ "page_idx": 7
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Conditioning on the same prompt $y_{\\mathrm{src}}$ is an important detail towards more stable editing process. This way, the resulting inner representations for the inversion and the current trajectories are aligned better, rather than when conditioning on different prompts. Besides, when preserving features of the initial image, we want to detach information about editing from the current state of these features. Our logic is, that with the sampling step in Equation 9 we want to see, how much has reconstruction of the initial image suffered, and compare it with the ideal reconstruction in Equation 8.",
1208
+ "bbox": [
1209
+ 212,
1210
+ 542,
1211
+ 787,
1212
+ 662
1213
+ ],
1214
+ "page_idx": 7
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "The current latent $z_{t}$ in Equation 9 is the result of applying CFG together with our self-guidance at the previous sampling step, initially being defined as $z_{T} = z_{T}^{*}$ .",
1219
+ "bbox": [
1220
+ 212,
1221
+ 664,
1222
+ 787,
1223
+ 710
1224
+ ],
1225
+ "page_idx": 7
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "We define the energy function as $g(z_{t},z_{t}^{*},t,y_{\\mathrm{src}},\\mathcal{I}^{*},\\overline{\\mathcal{I}})$ . A sampling step in Equation 4 can be rewritten as:",
1230
+ "bbox": [
1231
+ 212,
1232
+ 710,
1233
+ 785,
1234
+ 742
1235
+ ],
1236
+ "page_idx": 7
1237
+ },
1238
+ {
1239
+ "type": "equation",
1240
+ "text": "\n$$\n\\hat {\\varepsilon} _ {\\theta} \\left(z _ {t}, t, y\\right) = \\operatorname {C F G} \\left(z _ {t}, t, y _ {\\mathrm {t r g}}, 7. 5\\right) + v \\cdot \\nabla_ {z _ {t}} g \\left(z _ {t}, z _ {t} ^ {*}, t, y _ {\\mathrm {s r c}}, \\mathcal {I} ^ {*}, \\bar {\\mathcal {I}}\\right). \\tag {10}\n$$\n",
1241
+ "text_format": "latex",
1242
+ "bbox": [
1243
+ 279,
1244
+ 751,
1245
+ 785,
1246
+ 768
1247
+ ],
1248
+ "page_idx": 7
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "See the overall pipeline of the method in Fig. 2 and more details can be found in Appendix A. We suggest ways to specify Equation 10 by defining the inner representations sources in the following section, where we denote function $g$ as a guider.",
1253
+ "bbox": [
1254
+ 212,
1255
+ 779,
1256
+ 787,
1257
+ 840
1258
+ ],
1259
+ "page_idx": 7
1260
+ },
1261
+ {
1262
+ "type": "page_number",
1263
+ "text": "8",
1264
+ "bbox": [
1265
+ 217,
1266
+ 114,
1267
+ 228,
1268
+ 126
1269
+ ],
1270
+ "page_idx": 7
1271
+ },
1272
+ {
1273
+ "type": "header",
1274
+ "text": "V. Titov et al.",
1275
+ "bbox": [
1276
+ 271,
1277
+ 114,
1278
+ 369,
1279
+ 127
1280
+ ],
1281
+ "page_idx": 7
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Guiders We found that jointly including a Self-attention Guider and a Feature Guider into the generation process is sufficient for improving editing and preserving the initial image features. At the same time, they do not interfere with the editing, done by CFG. The effect of these guiders is illustrated in Fig 4a. More details about guiders and its properties can be found in Appendix B.",
1286
+ "bbox": [
1287
+ 212,
1288
+ 146,
1289
+ 782,
1290
+ 222
1291
+ ],
1292
+ "page_idx": 8
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Self-attention Guider. As noted by the authors of [23], self-attention maps contain information about the layout of the image, i.e. relative positioning of objects. While preserving layout is a primary challenge for stylisation tasks, it is also useful for other editing types.",
1297
+ "bbox": [
1298
+ 212,
1299
+ 222,
1300
+ 782,
1301
+ 281
1302
+ ],
1303
+ "page_idx": 8
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "To utilize this finding, we suggest guiding through matching of self-attention maps from the current trajectory $\\bar{A}_i^{\\mathrm{self}}\\coloneqq$ self attn. $[\\varepsilon_{\\theta}(z_t,t,y_{\\mathrm{src}})]$ and an ideal reconstruction trajectory $\\mathcal{A}_i^{*\\mathrm{self}}\\coloneqq$ self attn. $[\\varepsilon_{\\theta}(z_t^*,t,y_{\\mathrm{src}})]$ , where $i$ corresponds to the index of the UNet layer. So, in this case $\\mathcal{I}^{*} = \\{\\bar{A}_{i}^{*\\mathrm{self}}\\} ,\\overline{\\mathcal{I}} = \\{\\bar{A}_{i}^{\\mathrm{self}}\\}$ and the guider is defined as follows:",
1308
+ "bbox": [
1309
+ 212,
1310
+ 282,
1311
+ 784,
1312
+ 357
1313
+ ],
1314
+ "page_idx": 8
1315
+ },
1316
+ {
1317
+ "type": "equation",
1318
+ "text": "\n$$\ng \\left(z _ {t}, z _ {t} ^ {*}, t, y _ {\\mathrm {s r c}}, \\left\\{\\mathcal {A} _ {i} ^ {* \\text {s e l f}} \\right\\}, \\left\\{\\bar {\\mathcal {A}} _ {i} ^ {\\text {s e l f}} \\right\\}\\right) = \\sum_ {i = 1} ^ {L} \\operatorname {m e a n} \\| \\mathcal {A} _ {i} ^ {* \\text {s e l f}} - \\bar {\\mathcal {A}} _ {i} ^ {\\text {s e l f}} \\| _ {2} ^ {2}, \\tag {11}\n$$\n",
1319
+ "text_format": "latex",
1320
+ "bbox": [
1321
+ 261,
1322
+ 369,
1323
+ 784,
1324
+ 388
1325
+ ],
1326
+ "page_idx": 8
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "where $L$ is a number of UNet layers.",
1331
+ "bbox": [
1332
+ 214,
1333
+ 398,
1334
+ 478,
1335
+ 412
1336
+ ],
1337
+ "page_idx": 8
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Feature Guider. While preserving layout can significantly improve editing quality, it is not sufficient. For example, when applying local editing to a photo of a person, it is crucial to preserve visual features as well, such as face expressions.",
1342
+ "bbox": [
1343
+ 212,
1344
+ 415,
1345
+ 782,
1346
+ 458
1347
+ ],
1348
+ "page_idx": 8
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "To achieve this, for non-stylisation editing task we adopt an idea from [5]. The authors of this work propose an appearance function for controlling visual appearance of an object, which utilizes masked features. In this work we define features $\\varPhi$ as an output of the last up-block in UNet. We also found, that masking is not crucial and does not influence the quality of editing in our setting, so we eliminated it for simplicity. Similar to [5], we apply L1 norm to the difference of $\\bar{\\varPhi} =$ features $[\\varepsilon_{\\theta}(z_t,t,y_{\\mathrm{src}})]$ and $\\varPhi^{*}=$ features $[\\varepsilon_{\\theta}(z_t^*,t,y_{\\mathrm{src}})]$ :",
1353
+ "bbox": [
1354
+ 212,
1355
+ 460,
1356
+ 784,
1357
+ 566
1358
+ ],
1359
+ "page_idx": 8
1360
+ },
1361
+ {
1362
+ "type": "equation",
1363
+ "text": "\n$$\ng \\left(z _ {t}, z _ {t} ^ {*}, t, y _ {\\mathrm {s r c}}, \\Phi^ {*}, \\bar {\\Phi}\\right) = \\operatorname {m e a n} \\left\\| \\Phi^ {*} - \\bar {\\Phi} \\right\\| _ {1}. \\tag {12}\n$$\n",
1364
+ "text_format": "latex",
1365
+ "bbox": [
1366
+ 359,
1367
+ 569,
1368
+ 784,
1369
+ 585
1370
+ ],
1371
+ "page_idx": 8
1372
+ },
1373
+ {
1374
+ "type": "text",
1375
+ "text": "For stylisation tasks, similar to [23], we define $\\varPhi$ as an output of the second ResNet block in the second UNet up-block. Similar to Equation 12, the guider is defined as follows:",
1376
+ "bbox": [
1377
+ 214,
1378
+ 593,
1379
+ 782,
1380
+ 637
1381
+ ],
1382
+ "page_idx": 8
1383
+ },
1384
+ {
1385
+ "type": "equation",
1386
+ "text": "\n$$\ng \\left(z _ {t}, z _ {t} ^ {*}, t, y _ {\\mathrm {s r c}}, \\Phi^ {*}, \\bar {\\Phi}\\right) = \\operatorname {m e a n} \\| \\Phi^ {*} - \\bar {\\Phi} \\| _ {2} ^ {2}. \\tag {13}\n$$\n",
1387
+ "text_format": "latex",
1388
+ "bbox": [
1389
+ 359,
1390
+ 642,
1391
+ 784,
1392
+ 659
1393
+ ],
1394
+ "page_idx": 8
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "Noise rescaling Even though the proposed guiders significantly improve editing quality, the resulting method experiences inconsistency in terms of optimal guidance scales, when applied to a wide range of images.",
1399
+ "bbox": [
1400
+ 214,
1401
+ 688,
1402
+ 782,
1403
+ 733
1404
+ ],
1405
+ "page_idx": 8
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "We noticed that when our method's behavior is unstable, norms of CFG and the sum of gradients of all the guiders show instability over sampling steps as well.",
1410
+ "bbox": [
1411
+ 212,
1412
+ 734,
1413
+ 782,
1414
+ 777
1415
+ ],
1416
+ "page_idx": 8
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "We suggest scaling the sum of guiders' gradients by a factor, depending on the CFG norm. This way, the proportion of both editing and preservation will be consistent throughout the whole synthesis process and easily controllable.",
1421
+ "bbox": [
1422
+ 212,
1423
+ 779,
1424
+ 782,
1425
+ 823
1426
+ ],
1427
+ "page_idx": 8
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "More formally, a single noise sampling step will now be defined as:",
1432
+ "bbox": [
1433
+ 238,
1434
+ 824,
1435
+ 718,
1436
+ 839
1437
+ ],
1438
+ "page_idx": 8
1439
+ },
1440
+ {
1441
+ "type": "header",
1442
+ "text": "Guide-and-Rescale",
1443
+ "bbox": [
1444
+ 604,
1445
+ 114,
1446
+ 730,
1447
+ 126
1448
+ ],
1449
+ "page_idx": 8
1450
+ },
1451
+ {
1452
+ "type": "page_number",
1453
+ "text": "9",
1454
+ "bbox": [
1455
+ 774,
1456
+ 114,
1457
+ 784,
1458
+ 126
1459
+ ],
1460
+ "page_idx": 8
1461
+ },
1462
+ {
1463
+ "type": "image",
1464
+ "img_path": "images/a3430a75f0db98ac3ed4adc854b1d4b4baa9ce612ebc74fa85854cdecc218a6c.jpg",
1465
+ "image_caption": [
1466
+ "(a)"
1467
+ ],
1468
+ "image_footnote": [],
1469
+ "bbox": [
1470
+ 230,
1471
+ 143,
1472
+ 488,
1473
+ 351
1474
+ ],
1475
+ "page_idx": 9
1476
+ },
1477
+ {
1478
+ "type": "image",
1479
+ "img_path": "images/59c6e0c4e1caa80c98a96a915c428337fcec81d8d9cbbcf799c784263c0b00e5.jpg",
1480
+ "image_caption": [
1481
+ "(b)",
1482
+ "Fig. 4: (a) Effect of the proposed guiders (Equation 11, Equation 12). Jointly applying both guiders preserves both layout and visual characteristics of unedited regions of the image. (b) Illustration of applying noise rescaling (Equation 14). This technique aligns the sum of guiders with CFG according to the coefficient, defined in Equation 15, therefore stabilizes editing and improves its quality."
1483
+ ],
1484
+ "image_footnote": [],
1485
+ "bbox": [
1486
+ 517,
1487
+ 152,
1488
+ 777,
1489
+ 351
1490
+ ],
1491
+ "page_idx": 9
1492
+ },
1493
+ {
1494
+ "type": "equation",
1495
+ "text": "\n$$\n\\begin{array}{l} \\epsilon_ {t} = \\varepsilon_ {\\theta} \\left(z _ {t}, t, \\varnothing\\right) + w \\left(\\varepsilon_ {\\theta} \\left(z _ {t}, t, y\\right) - \\varepsilon_ {\\theta} \\left(z _ {t}, t, \\varnothing\\right)\\right) + \\\\ + \\gamma \\sum_ {i} v _ {i} \\cdot \\nabla_ {z _ {t}} g _ {i} (z _ {t}, z _ {t} ^ {*}, t, y _ {\\mathrm {s r c}}, \\mathcal {I} ^ {*}, \\overline {{\\mathcal {I}}}), \\\\ \\end{array}\n$$\n",
1496
+ "text_format": "latex",
1497
+ "bbox": [
1498
+ 333,
1499
+ 491,
1500
+ 784,
1501
+ 525
1502
+ ],
1503
+ "page_idx": 9
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "where $\\gamma$ is a scaling factor. With $r$ being a numerical parameter, controlling the proportion between editing and preservation, $\\gamma$ can be computed as:",
1508
+ "bbox": [
1509
+ 214,
1510
+ 532,
1511
+ 787,
1512
+ 563
1513
+ ],
1514
+ "page_idx": 9
1515
+ },
1516
+ {
1517
+ "type": "equation",
1518
+ "text": "\n$$\nr _ {\\text {c u r}} (t) = \\frac {\\left\\| w \\left(\\varepsilon_ {\\theta} \\left(z _ {t} , t , y\\right) - \\varepsilon_ {\\theta} \\left(z _ {t} , t , \\varnothing\\right)\\right) \\right\\| _ {2} ^ {2}}{\\left\\| \\sum_ {i} v _ {i} \\cdot \\nabla_ {z _ {t}} g _ {i} \\left(z _ {t} , z _ {t} ^ {*} , t , y _ {\\text {s r c}}\\right) \\right\\| _ {2} ^ {2}}, \\tag {15}\n$$\n",
1519
+ "text_format": "latex",
1520
+ "bbox": [
1521
+ 351,
1522
+ 565,
1523
+ 784,
1524
+ 606
1525
+ ],
1526
+ "page_idx": 9
1527
+ },
1528
+ {
1529
+ "type": "equation",
1530
+ "text": "\n$$\n\\gamma = r \\cdot r _ {\\mathrm {c u r}} (t).\n$$\n",
1531
+ "text_format": "latex",
1532
+ "bbox": [
1533
+ 447,
1534
+ 613,
1535
+ 553,
1536
+ 628
1537
+ ],
1538
+ "page_idx": 9
1539
+ },
1540
+ {
1541
+ "type": "text",
1542
+ "text": "We found that keeping $r$ in an interval, rather than defining it as a fixed numerical hyperparameter, works best in experiments. An interval can be defined so that the fraction of norms in Equation 15 does not exceed some pre-defined upper and lower boundaries. This way, together with obtaining the desired consistency, we still let the diffusion model decide, whether the current sampling step needs more editing or preservation. More formally:",
1543
+ "bbox": [
1544
+ 212,
1545
+ 638,
1546
+ 787,
1547
+ 728
1548
+ ],
1549
+ "page_idx": 9
1550
+ },
1551
+ {
1552
+ "type": "equation",
1553
+ "text": "\n$$\nr (t) = \\left\\{ \\begin{array}{l} r _ {\\text {l o w e r}}, \\frac {1}{r _ {\\text {c u r}} (t)} \\leq r _ {\\text {l o w e r}} \\\\ \\frac {1}{r _ {\\text {c u r}} (t)}, r _ {\\text {l o w e r}} < \\frac {1}{r _ {\\text {c u r}} (t)} < r _ {\\text {u p p e r}}, \\\\ r _ {\\text {u p p e r}}, \\frac {1}{r _ {\\text {c u r}} (t)} \\geq r _ {\\text {u p p e r}} \\end{array} \\right. \\tag {16}\n$$\n",
1554
+ "text_format": "latex",
1555
+ "bbox": [
1556
+ 351,
1557
+ 731,
1558
+ 785,
1559
+ 787
1560
+ ],
1561
+ "page_idx": 9
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "An example of applying noise rescaling to the proposed method is provided in Fig. 4b. More details about rescaling and its analysis can be found in Appendix C.",
1566
+ "bbox": [
1567
+ 214,
1568
+ 794,
1569
+ 787,
1570
+ 838
1571
+ ],
1572
+ "page_idx": 9
1573
+ },
1574
+ {
1575
+ "type": "page_number",
1576
+ "text": "10",
1577
+ "bbox": [
1578
+ 217,
1579
+ 114,
1580
+ 235,
1581
+ 126
1582
+ ],
1583
+ "page_idx": 9
1584
+ },
1585
+ {
1586
+ "type": "header",
1587
+ "text": "V. Titov et al.",
1588
+ "bbox": [
1589
+ 271,
1590
+ 114,
1591
+ 369,
1592
+ 126
1593
+ ],
1594
+ "page_idx": 9
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "4 Experiments",
1599
+ "text_level": 1,
1600
+ "bbox": [
1601
+ 215,
1602
+ 143,
1603
+ 375,
1604
+ 162
1605
+ ],
1606
+ "page_idx": 10
1607
+ },
1608
+ {
1609
+ "type": "text",
1610
+ "text": "Experiment Setup. In order to comprehensively compare image manipulation methods, we decided to consider 4 different types of editing: 1) local manipulation of a person's appearance and clothing, 2) changing person's emotions, 3) replacing one animal with another, and 4) global image stylisation. For each type, we collected 20 different example edits on which we tested all methods. A more detailed description of these types of edits and all examples can be found in the Appendix D.",
1611
+ "bbox": [
1612
+ 212,
1613
+ 175,
1614
+ 785,
1615
+ 280
1616
+ ],
1617
+ "page_idx": 10
1618
+ },
1619
+ {
1620
+ "type": "text",
1621
+ "text": "To compare the similarity of edited and real images we collected more extensive datasets. A particular case of animal-to-animal type of editing is the task of transformation dogs into cats. To compare methods on this task we collected 500 examples of dogs from the AFHQ dataset [3] and then compared the results of editing with cats from the same dataset. For other types of editing datasets and details are described in the Appendix D.",
1622
+ "bbox": [
1623
+ 212,
1624
+ 281,
1625
+ 785,
1626
+ 372
1627
+ ],
1628
+ "page_idx": 10
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "We compared our method with existing approaches that have publicly available source code: NPI [13], NPI Prox [6] and NTI [14] based on P2P [7], MasaCtrl [2], ProxMasaCtrl [6], PnP [4], and EDICT [26]. We used the authors' original code with the default parameters recommended in the description of each method. For our method, we also fixed hyperparameters during evaluation. More details about our method setup can be found in Appendix F.",
1633
+ "bbox": [
1634
+ 212,
1635
+ 372,
1636
+ 785,
1637
+ 464
1638
+ ],
1639
+ "page_idx": 10
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "text": "4.1 Qualitative Comparison",
1644
+ "text_level": 1,
1645
+ "bbox": [
1646
+ 215,
1647
+ 483,
1648
+ 459,
1649
+ 500
1650
+ ],
1651
+ "page_idx": 10
1652
+ },
1653
+ {
1654
+ "type": "text",
1655
+ "text": "In Fig. 5 we see the result of our method and previous approaches on examples of edits belonging to one of the 4 types of edits mentioned above. It can be seen that our method shows stable quality across all types of edits. In cases where the whole image does not need to be stylized, our method, unlike baselines, is good at preserving the structure and background that should not be changed. For example, when editing a person's emotion, our method only affects the face area and does not change the rest of the person's attributes and background, unlike other methods that corrupt the overall structure of the original image. This can be seen particularly well in local edits of different attributes of a woman. The MasaCtrl and ProxMasaCtrl methods strongly alter the geometry of the person, and the target edit is not always obtained. The P2P+NTI, P2P+NPI, and P2P+NPI Prox methods either transform the target attribute while corrupting others or edit nothing at all. The PnP method almost always achieves the desired edit but at the cost of severe loss of structure of the original image. The EDICT method performs best compared to the other methods but is still inferior to our method in most of these examples.",
1656
+ "bbox": [
1657
+ 212,
1658
+ 507,
1659
+ 787,
1660
+ 750
1661
+ ],
1662
+ "page_idx": 10
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "4.2 Quantitative Comparison",
1667
+ "text_level": 1,
1668
+ "bbox": [
1669
+ 215,
1670
+ 770,
1671
+ 470,
1672
+ 786
1673
+ ],
1674
+ "page_idx": 10
1675
+ },
1676
+ {
1677
+ "type": "text",
1678
+ "text": "To quantitatively evaluate the performance of our method, we decided to use an evaluation protocol similar to that used in EDICT [26]. This protocol measures two key properties of the method. The first is the extent to which the result of",
1679
+ "bbox": [
1680
+ 212,
1681
+ 794,
1682
+ 785,
1683
+ 840
1684
+ ],
1685
+ "page_idx": 10
1686
+ },
1687
+ {
1688
+ "type": "header",
1689
+ "text": "Guide-and-Rescale",
1690
+ "bbox": [
1691
+ 604,
1692
+ 114,
1693
+ 730,
1694
+ 127
1695
+ ],
1696
+ "page_idx": 10
1697
+ },
1698
+ {
1699
+ "type": "page_number",
1700
+ "text": "11",
1701
+ "bbox": [
1702
+ 767,
1703
+ 116,
1704
+ 782,
1705
+ 126
1706
+ ],
1707
+ "page_idx": 10
1708
+ },
1709
+ {
1710
+ "type": "image",
1711
+ "img_path": "images/17506f882bd54c853cd5a5a8523e4787fd0da1bf0992ced1975abe10054b5538.jpg",
1712
+ "image_caption": [
1713
+ "Fig. 5: Visual comparison of our method with baselines over different types of editing. Our approach shows more consistent results than existing methods and achieves a better trade-off between editing quality and preservation of the structure of the original image."
1714
+ ],
1715
+ "image_footnote": [],
1716
+ "bbox": [
1717
+ 218,
1718
+ 167,
1719
+ 784,
1720
+ 743
1721
+ ],
1722
+ "page_idx": 11
1723
+ },
1724
+ {
1725
+ "type": "page_number",
1726
+ "text": "12",
1727
+ "bbox": [
1728
+ 217,
1729
+ 114,
1730
+ 235,
1731
+ 126
1732
+ ],
1733
+ "page_idx": 11
1734
+ },
1735
+ {
1736
+ "type": "header",
1737
+ "text": "V. Titov et al.",
1738
+ "bbox": [
1739
+ 271,
1740
+ 114,
1741
+ 369,
1742
+ 127
1743
+ ],
1744
+ "page_idx": 11
1745
+ },
1746
+ {
1747
+ "type": "text",
1748
+ "text": "the method contains the desired edit. To measure this characteristic, we use the CLIP score [17], which is calculated between the edited image and the target prompt. The second property is the extent to which the method preserves the structure and details of the original image that should not change during editing. For this, we use the LPIPS metric [27] between the original image and its edited version.",
1749
+ "bbox": [
1750
+ 212,
1751
+ 146,
1752
+ 787,
1753
+ 236
1754
+ ],
1755
+ "page_idx": 12
1756
+ },
1757
+ {
1758
+ "type": "text",
1759
+ "text": "The results of these metrics for our method and others are shown in Table 1. They show that our method achieves the best balance between preserving the original image structure and editing the target attribute. In particular, on the LPIPS metric, we perform best apart from the EDICT method, which we significantly outperform on the CLIP score. On the CLIP score, we also perform best apart from the PnP method, which is strongly inferior in its ability to preserve the structure of the original image in terms of the LPIPS metric. The other approaches show uniformly worse results with respect to these two metrics. It is also worth noting that compared to the most advanced EDICT and PnP methods, our method is more computationally efficient, as can be seen from the running time for editing an image. More analysis of these results can be found in Appendix G.",
1760
+ "bbox": [
1761
+ 212,
1762
+ 244,
1763
+ 787,
1764
+ 426
1765
+ ],
1766
+ "page_idx": 12
1767
+ },
1768
+ {
1769
+ "type": "text",
1770
+ "text": "To quantitatively evaluate the distance between the distributions of edited and real images we calculate FID Score [21] on the dog-to-cat transformation task. As shown in Table 1 our method outperforms the others by FID Score. MasaCtrl and ProxMasaCtrl show the highest FID that is correlated with artifacts on edited images and its nonrealism in Fig. 21 in Appendix D.3. The closest FID Score to our method has PnP but it is shown to be several times slower than our method.",
1771
+ "bbox": [
1772
+ 212,
1773
+ 434,
1774
+ 787,
1775
+ 541
1776
+ ],
1777
+ "page_idx": 12
1778
+ },
1779
+ {
1780
+ "type": "table",
1781
+ "img_path": "images/689215e5979b70ac972d8b3b74ea9709426d914ddbfa3fa699dd7244cab31eea.jpg",
1782
+ "table_caption": [
1783
+ "Table 1: Comparison with baselines on image editing task by using 80 examples of 4 different edit types to compute the LPIPS and CLIP per edit. 500 samples of the dog-to-cat type of editing are used to compute FID. Our method achieves the best balance between editing quality (CLIP) and preservation of the original image (LPIPS) and reaches the best similarity to the real image's distribution (FID). The inference time (including the inversion part) is computed on a single GPU A100 in seconds."
1784
+ ],
1785
+ "table_footnote": [],
1786
+ "table_body": "<table><tr><td>Method</td><td>LPIPS ↓</td><td>CLIP ↑</td><td>FID ↓</td><td>Time (s) ↓</td></tr><tr><td>ProxMasaCtrl [6]</td><td>0.267</td><td>0.215</td><td>94.53</td><td>12.94</td></tr><tr><td>MasaCtrl [2]</td><td>0.306</td><td>0.223</td><td>100.62</td><td>13.73</td></tr><tr><td>EDICT [26]</td><td>0.221</td><td>0.229</td><td>47.13</td><td>68.13</td></tr><tr><td>P2P [7] + NTI [14]</td><td>0.279</td><td>0.233</td><td>42.46</td><td>66.77</td></tr><tr><td>P2P [7] + NPI [13] Prox [6]</td><td>0.170</td><td>0.233</td><td>43.16</td><td>8.59</td></tr><tr><td>P2P [7] + NPI [13]</td><td>0.251</td><td>0.234</td><td>44.05</td><td>8.54</td></tr><tr><td>PnP [4]</td><td>0.366</td><td>0.256</td><td>39.55</td><td>197.0</td></tr><tr><td>Guide-and-Rescale (ours)</td><td>0.228</td><td>0.243</td><td>39.07</td><td>24.26</td></tr></table>",
1787
+ "bbox": [
1788
+ 282,
1789
+ 670,
1790
+ 709,
1791
+ 818
1792
+ ],
1793
+ "page_idx": 12
1794
+ },
1795
+ {
1796
+ "type": "header",
1797
+ "text": "Guide-and-Rescale",
1798
+ "bbox": [
1799
+ 604,
1800
+ 114,
1801
+ 730,
1802
+ 126
1803
+ ],
1804
+ "page_idx": 12
1805
+ },
1806
+ {
1807
+ "type": "page_number",
1808
+ "text": "13",
1809
+ "bbox": [
1810
+ 767,
1811
+ 114,
1812
+ 785,
1813
+ 126
1814
+ ],
1815
+ "page_idx": 12
1816
+ },
1817
+ {
1818
+ "type": "text",
1819
+ "text": "4.3 User Study",
1820
+ "text_level": 1,
1821
+ "bbox": [
1822
+ 215,
1823
+ 145,
1824
+ 356,
1825
+ 162
1826
+ ],
1827
+ "page_idx": 13
1828
+ },
1829
+ {
1830
+ "type": "text",
1831
+ "text": "Next, we conducted a user study to compare our method with baselines. We used the same example edits of the 4 types we described above. We evaluate how much our method is preferred by others in the form of a pairwise comparison question. We surveyed 62 users who answered a total of 960 questions. Each question showed the original image, the targeting prompt, and two results. Users had to answer two questions. The first question (Q1) is \"Which image matches the desired editing description best?\" The second question (Q2) is \"Which image preserves the overall structure of the \"Original Image\" best?\"",
1832
+ "bbox": [
1833
+ 212,
1834
+ 171,
1835
+ 785,
1836
+ 291
1837
+ ],
1838
+ "page_idx": 13
1839
+ },
1840
+ {
1841
+ "type": "text",
1842
+ "text": "The results of this user study are shown in Table 2. Each value represents the percentage of the users that preferred our method over the corresponding baseline in the first column. We can see that our method is preferred over almost all baselines in terms of \"Editing\" quality and is subjectively similar to $\\mathrm{P2P + }$ NPI Prox. However, our method is better than $\\mathrm{P2P + NPI}$ Prox in terms of preservation quality. To summarize, our method is consistent over a wide range of different edits and subjectively gives better results on editing quality while preserving source image regions that should not be edited. Details of the user study can be found in the Appendix H.",
1843
+ "bbox": [
1844
+ 212,
1845
+ 292,
1846
+ 787,
1847
+ 429
1848
+ ],
1849
+ "page_idx": 13
1850
+ },
1851
+ {
1852
+ "type": "table",
1853
+ "img_path": "images/335021acd57b2bf802751107fd0c9b5487a1485ba6448ee0cc9c5f4b71bbb633.jpg",
1854
+ "table_caption": [
1855
+ "Table 2: User study that evaluates the subjective preference of our method that is preferred over all baselines."
1856
+ ],
1857
+ "table_footnote": [],
1858
+ "table_body": "<table><tr><td>Method</td><td>Editing (Q1)</td><td>Preservation (Q2)</td></tr><tr><td>MasaCtrl [2]</td><td>85 %</td><td>70 %</td></tr><tr><td>ProxMasaCtrl [6]</td><td>82 %</td><td>63 %</td></tr><tr><td>P2P [7] + NTI [14]</td><td>60 %</td><td>49 %</td></tr><tr><td>P2P [7] + NPI [13]</td><td>59 %</td><td>58 %</td></tr><tr><td>P2P [7] + NPI [13] Prox [6]</td><td>50 %</td><td>55 %</td></tr><tr><td>PnP [4]</td><td>60 %</td><td>61 %</td></tr><tr><td>EDICT [26]</td><td>56 %</td><td>59 %</td></tr></table>",
1859
+ "bbox": [
1860
+ 294,
1861
+ 487,
1862
+ 699,
1863
+ 616
1864
+ ],
1865
+ "page_idx": 13
1866
+ },
1867
+ {
1868
+ "type": "text",
1869
+ "text": "5 Conclusion",
1870
+ "text_level": 1,
1871
+ "bbox": [
1872
+ 215,
1873
+ 648,
1874
+ 359,
1875
+ 666
1876
+ ],
1877
+ "page_idx": 13
1878
+ },
1879
+ {
1880
+ "type": "text",
1881
+ "text": "In this paper, we propose a novel image editing method Guide-and-Rescale based on the self-guidance mechanism and show its effectiveness for a variety of editing types. It significantly improves the trade-off between editing quality and original image preservation. We show that it achieves more consistent and high-quality results than existing approaches both qualitatively and quantitatively.",
1882
+ "bbox": [
1883
+ 212,
1884
+ 681,
1885
+ 785,
1886
+ 758
1887
+ ],
1888
+ "page_idx": 13
1889
+ },
1890
+ {
1891
+ "type": "page_number",
1892
+ "text": "14",
1893
+ "bbox": [
1894
+ 217,
1895
+ 114,
1896
+ 235,
1897
+ 126
1898
+ ],
1899
+ "page_idx": 13
1900
+ },
1901
+ {
1902
+ "type": "header",
1903
+ "text": "V. Titov et al.",
1904
+ "bbox": [
1905
+ 271,
1906
+ 114,
1907
+ 367,
1908
+ 126
1909
+ ],
1910
+ "page_idx": 13
1911
+ },
1912
+ {
1913
+ "type": "text",
1914
+ "text": "Acknowledgements",
1915
+ "text_level": 1,
1916
+ "bbox": [
1917
+ 217,
1918
+ 143,
1919
+ 401,
1920
+ 162
1921
+ ],
1922
+ "page_idx": 14
1923
+ },
1924
+ {
1925
+ "type": "text",
1926
+ "text": "The analysis of related work in sections 1 and 2 were obtained by Aibek Alanov with the support of the grant for research centres in the field of AI provided by the Analytical Center for the Government of the Russian Federation (ACRF) in accordance with the agreement on the provision of subsidies (identifier of the agreement 000000D730321P5Q0002) and the agreement with HSE University No. 70-2021-00139. This research was supported in part through computational resources of HPC facilities at HSE University.",
1927
+ "bbox": [
1928
+ 212,
1929
+ 176,
1930
+ 787,
1931
+ 282
1932
+ ],
1933
+ "page_idx": 14
1934
+ },
1935
+ {
1936
+ "type": "text",
1937
+ "text": "References",
1938
+ "text_level": 1,
1939
+ "bbox": [
1940
+ 217,
1941
+ 306,
1942
+ 321,
1943
+ 321
1944
+ ],
1945
+ "page_idx": 14
1946
+ },
1947
+ {
1948
+ "type": "list",
1949
+ "sub_type": "ref_text",
1950
+ "list_items": [
1951
+ "1. Brooks, T., Holynski, A., Efros, A.A.: Instructpix2pix: Learning to follow image editing instructions. In: CVPR (2023)",
1952
+ "2. Cao, M., Wang, X., Qi, Z., Shan, Y., Qie, X., Zheng, Y.: Masactrl: Tuning-free mutual self-attention control for consistent image synthesis and editing. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). pp. 22560-22570 (October 2023)",
1953
+ "3. Choi, Y., Uh, Y., Yoo, J., Ha, J.W.: Stargan v2: Diverse image synthesis for multiple domains. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2020)",
1954
+ "4. Dathathri, S., Madotto, A., Lan, J., Hung, J., Frank, E., Molino, P., Yosinski, J., Liu, R.: Plug and play language models: A simple approach to controlled text generation. In: International Conference on Learning Representations (2020), https://openreview.net/forum?id=H1edEyBKDS",
1955
+ "5. Epstein, D., Jabri, A., Poole, B., Efros, A.A., Holynski, A.: Diffusion self-guidance for controllable image generation. arXiv preprint arXiv:2306.00986 (2023)",
1956
+ "6. Han, L., Wen, S., Chen, Q., Zhang, Z., Song, K., Ren, M., Gao, R., Stathopoulos, A., He, X., Chen, Y., Liu, D., Zhangli, Q., Jiang, J., Xia, Z., Srivastava, A., Metaxas, D.: Improving tuning-free real image editing with proximal guidance (2023)",
1957
+ "7. Hertz, A., Mokady, R., Tenenbaum, J., Aberman, K., Pritch, Y., Cohen-Or, D.: Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626 (2022)",
1958
+ "8. Ho, J., Jain, A., Abbeel, P.: Denoising diffusion probabilistic models. arXiv preprint arxiv:2006.11239 (2020)",
1959
+ "9. Ho, J., Salimans, T.: Classifier-free diffusion guidance (2022)",
1960
+ "10. Kawar, B., Zada, S., Lang, O., Tov, O., Chang, H., Dekel, T., Mosseri, I., Irani, M.: Magic: Text-based real image editing with diffusion models. In: Conference on Computer Vision and Pattern Recognition 2023 (2023)",
1961
+ "11. Kingma, D.P., Welling, M.: Auto-Encoding Variational Bayes. In: 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings (2014)",
1962
+ "12. Meng, C., He, Y., Song, Y., Song, J., Wu, J., Zhu, J.Y., Ermon, S.: SDEdit: Guided image synthesis and editing with stochastic differential equations. In: International Conference on Learning Representations (2022)",
1963
+ "13. Miyake, D., Iohara, A., Saito, Y., Tanaka, T.: Negative-prompt inversion: Fast image inversion for editing with text-guided diffusion models (2023)"
1964
+ ],
1965
+ "bbox": [
1966
+ 218,
1967
+ 339,
1968
+ 784,
1969
+ 839
1970
+ ],
1971
+ "page_idx": 14
1972
+ },
1973
+ {
1974
+ "type": "header",
1975
+ "text": "Guide-and-Rescale",
1976
+ "bbox": [
1977
+ 604,
1978
+ 114,
1979
+ 730,
1980
+ 127
1981
+ ],
1982
+ "page_idx": 14
1983
+ },
1984
+ {
1985
+ "type": "page_number",
1986
+ "text": "15",
1987
+ "bbox": [
1988
+ 767,
1989
+ 116,
1990
+ 784,
1991
+ 126
1992
+ ],
1993
+ "page_idx": 14
1994
+ },
1995
+ {
1996
+ "type": "list",
1997
+ "sub_type": "ref_text",
1998
+ "list_items": [
1999
+ "14. Mokady, R., Hertz, A., Aberman, K., Pritch, Y., Cohen-Or, D.: Null-text inversion for editing real images using guided diffusion models. arXiv preprint arXiv:2211.09794 (2022)",
2000
+ "15. Pan, Z., Gherardi, R., Xie, X., Huang, S.: Effective real image editing with accelerated iterative diffusion inversion (2023)",
2001
+ "16. Parmar, G., Kumar Singh, K., Zhang, R., Li, Y., Lu, J., Zhu, J.Y.: Zero-shot image-to-image translation. In: ACM SIGGRAPH 2023 Conference Proceedings. SIGGRAPH '23, Association for Computing Machinery, New York, NY, USA (2023). https://doi.org/10.1145/3588432.3591513, https://doi.org/10.1145/3588432.3591513",
2002
+ "17. Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al.: Learning transferable visual models from natural language supervision. In: International conference on machine learning. pp. 8748-8763. PMLR (2021)",
2003
+ "18. Ramesh, A., Dhariwal, P., Nichol, A., Chu, C., Chen, M.: Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125 1(2), 3 (2022)",
2004
+ "19. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 10684-10695 (2022)",
2005
+ "20. Saharia, C., Chan, W., Saxena, S., Li, L., Whang, J., Denton, E.L., Ghasemipour, K., Gontijo Lopes, R., Karagol Ayan, B., Salimans, T., et al.: Photorealistic text-to-image diffusion models with deep language understanding. Advances in Neural Information Processing Systems 35, 36479-36494 (2022)",
2006
+ "21. Seitzer, M.: pytorch-fid: FID Score for PyTorch. https://github.com/mseitzer/pytorch-fid (August 2020), version 0.3.0",
2007
+ "22. Song, J., Meng, C., Ermon, S.: Denoising diffusion implicit models. In: International Conference on Learning Representations (2021), https://openreview.net/forum?id=St1giarCHLP",
2008
+ "23. Tumanyan, N., Geyer, M., Bagon, S., Dekel, T.: Plug-and-play diffusion features for text-driven image-to-image translation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 1921-1930 (June 2023)",
2009
+ "24. Vahdat, A., Kreis, K., Kautz, J.: Score-based generative modeling in latent space. In: Ranzato, M., Beygelzimer, A., Dauphin, Y., Liang, P., Vaughan, J.W. (eds.) Advances in Neural Information Processing Systems. vol. 34, pp. 11287-11302. Curran Associates, Inc. (2021), https://proceedings.neurips.cc/paper_files/paper/2021/file/5dca4c6b9e244d24a30b4c45601d9720-Paper.pdf",
2010
+ "25. Valevski, D., Kalman, M., Matias, Y., Leviathan, Y.: Unitune: Text-driven image editing by fine tuning an image generation model on a single image. ArXiv abs/2210.09477 (2022), https://api-semanticscholar.org/CorpusID: 252968124",
2011
+ "26. Wallace, B., Gokul, A., Naik, N.: Edict: Exact diffusion inversion via coupled transformations. In: 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 22532-22541. IEEE Computer Society, Los Alamitos, CA, USA (jun 2023). https://doi.org/10.1109/CVPR52729.2023.02158, https://doi.ieeecomputersociety.org/10.1109/CVPR52729.2023.02158",
2012
+ "27. Zhang, R., Isola, P., Efros, A.A., Shechtman, E., Wang, O.: The unreasonable effectiveness of deep features as a perceptual metric. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 586-595 (2018)"
2013
+ ],
2014
+ "bbox": [
2015
+ 215,
2016
+ 146,
2017
+ 784,
2018
+ 840
2019
+ ],
2020
+ "page_idx": 15
2021
+ },
2022
+ {
2023
+ "type": "page_number",
2024
+ "text": "16",
2025
+ "bbox": [
2026
+ 217,
2027
+ 114,
2028
+ 235,
2029
+ 126
2030
+ ],
2031
+ "page_idx": 15
2032
+ },
2033
+ {
2034
+ "type": "header",
2035
+ "text": "V. Titov et al.",
2036
+ "bbox": [
2037
+ 271,
2038
+ 114,
2039
+ 367,
2040
+ 126
2041
+ ],
2042
+ "page_idx": 15
2043
+ },
2044
+ {
2045
+ "type": "ref_text",
2046
+ "text": "28. Zhang, Z., Han, L., Ghosh, A., Metaxas, D., Ren, J.: Sine: Single image editing with text-to-image diffusion models. arXiv preprint arXiv:2212.04489 (2022)",
2047
+ "bbox": [
2048
+ 217,
2049
+ 146,
2050
+ 784,
2051
+ 176
2052
+ ],
2053
+ "page_idx": 16
2054
+ },
2055
+ {
2056
+ "type": "header",
2057
+ "text": "Guide-and-Rescale",
2058
+ "bbox": [
2059
+ 604,
2060
+ 114,
2061
+ 730,
2062
+ 126
2063
+ ],
2064
+ "page_idx": 16
2065
+ },
2066
+ {
2067
+ "type": "page_number",
2068
+ "text": "17",
2069
+ "bbox": [
2070
+ 767,
2071
+ 116,
2072
+ 784,
2073
+ 126
2074
+ ],
2075
+ "page_idx": 16
2076
+ }
2077
+ ]
2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/530ccc05-6bb4-41b7-8d2f-33c8296c81f7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/530ccc05-6bb4-41b7-8d2f-33c8296c81f7_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:761a4f224ab5048b544b31172970e44544f88485e36b1cec6020f590a1d33ca5
3
+ size 6518014
2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/full.md ADDED
@@ -0,0 +1,374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Guide-and-Rescale: Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing
2
+
3
+ Vadim Titov $^{2*}$ , Madina Khalmatova $^{4*}$ , Alexandra Ivanova $^{1,2,3*}$ , Dmitry Vetrov $^{5}$ , and Aibek Alanov $^{1,2}$
4
+
5
+ $^{1}$ HSE University
6
+
7
+ 2 AIRI
8
+
9
+ titov.vn@phystech.edu, {a.ivanova,alanov}@airi.net
10
+
11
+ $^{3}$ Skolkovo Institute of Science and Technology
12
+
13
+ 4 UNSW Sydney
14
+
15
+ m.khalmatova@student.unsw.edu.au
16
+
17
+ 5 Constructor University, Bremen
18
+
19
+ dvetrov@constructor.university
20
+
21
+ ![](images/055181a57697a99f298b510de90a82734df79322ff42a70ca3f97bab34e7ed09.jpg)
22
+ Original Image
23
+ A photo of a tiger
24
+
25
+ ![](images/43be28467fa50936b1a8fc5a00bda23749f76620cad16312ac79ba333a3c19f2.jpg)
26
+ A photo of a lion
27
+
28
+ ![](images/7004caa2b7e86f2f641471ff317ecff2b8d6a4e55eab066d521d6dd90047ee28.jpg)
29
+ A photo of a goat
30
+
31
+ ![](images/a09ca7dcfd95a073550cb0d977e1b660d3a0e10420a5bdf0a9434011dc966956.jpg)
32
+ A photo of a wolf
33
+ Lying down woman
34
+
35
+ ![](images/1791cf90767bbfd975a97e164ab94fb087b0bf03e70120a11b510776feb7012f.jpg)
36
+ Original Image
37
+
38
+ ![](images/2533d5fb2b964266d387ff0cbda27798de229a1c11fd1600505b2f8fce535f6e.jpg)
39
+ Lying down woman
40
+
41
+ ![](images/84895bef81232fad210e1043d6284baf833d48f5100e4252a28a1e35e523e2f6.jpg)
42
+ Lying down woman
43
+
44
+ ![](images/d730f406974ccd3df332b395e463122fa9023b4b3893da50e0acc7b663c622d9.jpg)
45
+ Lying down woman
46
+ wearing green jacket
47
+
48
+ ![](images/40603b416d01702f1407a30622055f62bb173ede2439551f3edfefda9dadc884.jpg)
49
+ Original Image
50
+ A photo of
51
+ a woman
52
+ Fig. 1: Guide-and-Rescale for real image editing. Our method allows to manipulate images for a wide range of different editorings. It achieves a good balance between quality of manipulation and preservation of the original image.
53
+
54
+ ![](images/169104b95c10d01bfdb71b0959beac0e3735bc801b5106b9d7c3f07db3b0870b.jpg)
55
+ A photo of
56
+ a sad woman
57
+
58
+ ![](images/bd5ed78739cac13a7d2d5061b573bc08847b4db2ac2b9b0a54c06bf4a7a98a1e.jpg)
59
+ A photo of
60
+ a happy woman
61
+
62
+ ![](images/7e1b83f65ae25eca883b745d3455a804ceb3f14099e1be7a1b3fb517208963f1.jpg)
63
+ A photo of
64
+ a crying woman
65
+
66
+ ![](images/414e3a725e3ab0d54f12b1ce97dcbc56d857686135e3ac7d10721bcf343aaca9.jpg)
67
+ A photo
68
+
69
+ ![](images/8d969b11961b0afb194e1e1ccc03d57568127d93181f31abe351187a72c19db2.jpg)
70
+ Anime style face
71
+
72
+ ![](images/961dd5d645c7308ef56e2b00b2811c7b6d2aa20f85447819a0f55c3c5780fa31.jpg)
73
+ A pixar style face
74
+
75
+ ![](images/4e12768951f6a0ccff0e234894652611bcafd149560eadfd6bde946a257b17a2.jpg)
76
+ A mosaic depicting
77
+ of a face
78
+
79
+ Abstract. Despite recent advances in large-scale text-to-image generative models, manipulating real images with these models remains a challenging problem. The main limitations of existing editing methods are that they either fail to perform with consistent quality on a wide range of image edits or require time-consuming hyperparameter tuning or fine-tuning of the diffusion model to preserve the image-specific appearance of the input image. We propose a novel approach that is built upon a modified diffusion sampling process via the guidance mechanism. In this work, we explore the self-guidance technique to preserve the overall structure of the input image and its local regions appearance that should not be edited. In particular, we explicitly introduce layout-preserving energy functions that are aimed to save local and global structures of the source image. Additionally, we propose a noise rescaling mechanism that allows to preserve noise distribution by balancing the norms of classifier-free guidance and our proposed guiders during generation. Such a guiding
80
+
81
+ approach does not require fine-tuning the diffusion model and exact inversion process. As a result, the proposed method provides a fast and high-quality editing mechanism. In our experiments, we show through human evaluation and quantitative analysis that the proposed method allows to produce desired editing which is more preferable by humans and also achieves a better trade-off between editing quality and preservation of the original image. Our code is available at https://github.com/AIRI-Institute/Guide-and-Rescale.
82
+
83
+ # 1 Introduction
84
+
85
+ In recent years, diffusion models [8,24] have been rapidly developed due to their high generation quality. Therefore, they have started to be actively used as a base model for text-to-image generative models [18-20], where an image has to be generated from a textual description. Although such models have already achieved impressive results, they are still difficult to apply to the task of editing real images. The main problem is to find a balance between making the edited image reflect the expected change and preserving the original structure and the parts that should not have been edited.
86
+
87
+ Existing approaches to image manipulation based on text-to-image models address this task in different ways and can be categorized into three main groups of methods. Approaches from the first category [10,25,28] use fine-tuning of the whole diffusion model on the input image in order to preserve its structure and all necessary details during editing. Although such a strategy gives good results, the optimization process makes them very long, which does not allow to apply them in practice. In the next group of methods [1,2,4-7,16], instead of the optimization step, they use internal representations of images in the diffusion model and replace them during generation to preserve parts of the original image that should not change during editing. These methods are significantly faster than optimization-based methods, but they are not universal and require careful tuning of hyperparameters. As a result, they can only work consistently for a narrow set of edits. Finally, the third group of methods [13-15, 26] focuses on building a high-quality reconstruction of the original image by minimizing the discrepancy between the forward and backward trajectories of the diffusion processes. The main problem of this group of methods is the additional time required to construct a good quality inversion. In general, the currently available methods for manipulating real images have many limitations in terms of time, quality, and edit versatility, so it is still a challenging problem to find a model that is efficient, high quality, and covers most of the edit types.
88
+
89
+ In this paper, we investigate the guidance technique for the problem of real image editing. As most of the tunneling-free approaches leverage UNet internal representations which are cached during inversion and used during editing generation, it causes misalignment between real features and inserted ones, and therefore noise trajectory may leave the distribution of natural images. To overcome these issues we propose special energy functions named guiders that are designed to preserve overall source image structure and local regions that should
90
+
91
+ not be edited as well. We explicitly introduce preserving term that smoothly manipulates overall noise trajectory distribution. Additionally, we extend our framework by the automatic mechanism of noise rescaling which prevents discrepancy of noise trajectory from initial diffusion sampling by balancing the norms of classifier-free guidance and our proposed guiders. Our approach does not require the exact reconstruction as well as the fine-tuning the diffusion model, so it is computationally efficient. Due to the flexibility of the proposed guiders, our method is versatile and supports many types of editing, from local changes of objects to global stylisation (see Fig. 1).
92
+
93
+ We apply our method to Stable Diffusion [19] model and conduct an extensive set of experiments for comparison with other methods. Our approach achieves a better balance between editing quality and preservation of the original image structure in terms of CLIP/LPIPS scores for a wide range of different editing types. For a standard image-to-image problem $(\mathrm{Dog} \to \mathrm{Cat})$ we show that our method performs better than other baselines. Also, we provide user studies and show that our approach is most preferable in human evaluation.
94
+
95
+ # 2 Related Work
96
+
97
+ Diffusion models [8,24] show high-quality results in generative modeling. This is the reason why they could be used to solve the image editing problem. Text-to-image diffusion models [18-20] are particularly useful and common for solving this problem. One of the first text-guided image editing methods is SDEdit [12] whose main idea is to add the noise step by step and then denoise with different conditions, but the quality of the editing is not so high. We can distinguish three main groups of editing methods which we consider next.
98
+
99
+ Optimization-based methods. Methods in the first group [10, 25, 28] are based on fine-tuning the diffusion for the input image. In Imagic [10] and SINE [28] the diffusion model is fine-tuned on the original image, and the target prompt, which allows taking into account initial image characteristics but slows down the editing process. UniTune [25] fine-tunes the model only on the original image, but it still works slowly. However, UniTune, in contrast to Imagic and SINE, allows applying multiple edits to one image without any additional optimization.
100
+
101
+ Methods that utilize internal representations of the diffusion model. The following approaches [1, 2, 4-7, 16] are based on using internal representations of the image in the text-to-image diffusion model, such as features from cross-attention and self-attention layers to preserve the structure and the details of the original image. Prompt-to-Prompt [7] controls the cross-attention by replacing maps for new tokens from the target prompt and preserving maps in the overlapping tokens. In [16] authors guide cross-attention maps to reference reconstruction with a source prompt during the denoising process. Plug-and-Play [4] outperforms Prompt-to-Prompt by using feature and self-attention outputs as conditions for the diffusion model to focus on spatial features and their self-affinities. InstructPix2Pix [1] proposes an approach based on a combination of
102
+
103
+ ![](images/14773110c475ca6599718780be3a9f2f3d6048bf6bb48d6773d15e431d19a97f.jpg)
104
+ Fig. 2: Overall scheme of the proposed method Guide-and-Rescale. First, our method uses a classic ddim inversion of the source real image. Then the method performs real image editing via the classical denoising process. For every denoising step the noise term is modified by guider that utilizes latents $z_{t}$ from the current generation process and time-aligned ddim latents $z_{t}^{*}$ .
105
+
106
+ Prompt-to-Prompt and the language model to control editing through specific instructions, but it requires an additional dataset generation phase.
107
+
108
+ The limitation of previous methods is the difficulty of changing poses and object locations. MasaCtrl [2] uses mutual self-attention features based on reconstruction during editing to preserve the local content and textures of the original image. In ProxMasaCtrl [6], which is MasaCtrl extension, an additional proximal gradient step for the scaled noise difference is used to change the geometry and layout in edited images. Despite the ability to change object poses, the disadvantage of MasaCtrl is that the original image, the object background, is preserved inaccurately. Self-guidance [5] proposes an approach to simple editorings such as changing object position, size, and color by using intermediate activations and attention interactions as guidance signals during generation. The method we propose is based on this self-guidance mechanism, but we develop it for any type of editing.
109
+
110
+ Methods that improve the inversion part. The next group of methods [13-15, 26] focuses on improving the quality of the image reconstruction, and it allows to preserve parts of the image that should not be edited and the overall structure. This is achieved by narrowing the gap between the forward and backward trajectories of the diffusion model. Null-text Inversion [14] is proposed as an adaptation of Prompt-to-Prompt [7] for real images and is based on the optimization of the null-text embedding which is used in classifier-free guidance. To avoid learning the null-text embedding for each image, a new method for its approximation by the source prompt embedding is suggested in Negative-prompt Inversion [13], but it can lead to artifacts. EDICT [26] overcomes the restrictions of DDIM [22] in the image reconstruction by mathematically pre
111
+
112
+ cise image inversion, but requires some additional computation time. Finally, AIDI [15] is proposed to increase the precision of the reconstruction by applying fixed-point iteration, Anderson acceleration in inversion, and blended guidance for sampling.
113
+
114
+ The main problem of the methods in this group is the extra time needed to achieve a high-quality reconstruction of the initial image. Our method in contrast does not require an optimization and additional phase for image reconstruction, and therefore it is more computationally efficient.
115
+
116
+ # 3 Method
117
+
118
+ # 3.1 Preliminaries
119
+
120
+ Diffusion Model. The method uses a pre-trained text-to-image diffusion model. In our experiments, we use a publicly available Stable Diffusion (SD) [19] model, specifically its checkpoint stable-diffusion-v1-4. Our method does not finetune or modify it.
121
+
122
+ SD is a latent diffusion model (LDM) [19], meaning that the model operates in a latent space. Using a pre-trained VAE [11] encoder, Enc., one can encode an image into a sample from the latent space. And, likewise, given a latent $z$ and a VAE decoder, Dec., one can obtain an image space sample $x$ . However, our method does not rely on the existence of the latent space, so it may be applied to diffusion models, that perform sampling directly in the image space [20].
123
+
124
+ SD is a text-to-image model, meaning that it can be conditioned on textual captions. Our method heavily relies on this property, as it requires two prompts to be specified: a source prompt, describing the initial image, and a target prompt, outlining the desired result of editing.
125
+
126
+ We use DDIM [22] sampling with $T = 50$ intermediate steps, where a single sampling step is defined as:
127
+
128
+ $$
129
+ z _ {t - 1} = a _ {t} z _ {t} + b _ {t} \varepsilon_ {\theta} (z _ {t}, t, y), \tag {1}
130
+ $$
131
+
132
+ where $a_{t}, b_{t}$ are specified coefficients, $z_{t}$ is a current latent, $t$ is a current timestep, $y$ is conditioning data and $\varepsilon_{\theta}(z_t,t,y)$ is the noise, predicted by the diffusion model.
133
+
134
+ To allow the diffusion model to operate with real images, we need a noised latent $z_{T}$ , corresponding to this image. For this purpose, we use DDIM inversion, defined similarly to Equation 1:
135
+
136
+ $$
137
+ z _ {t + 1} = a _ {t} ^ {*} z _ {t} + b _ {t} ^ {*} \varepsilon_ {\theta} (z _ {t}, t, y). \tag {2}
138
+ $$
139
+
140
+ Even though DDIM inversion is not stable, as noted by the authors of Prompt-to-Prompt [7], our method overcomes this issue without any enhancements to the inversion process or optimization and is capable of preserving features of the initial image, as we show in experiments.
141
+
142
+ Guidance. Guidance mechanism takes the prediction of the diffusion model and enhances it with information from additional data. Classifier guidance relies on a separate model, classifier $p(y|z_t)$ , trained on noised latents. As long as this
143
+
144
+ classifier is differentiable with respect to the current latent, we can subtract score function $\nabla_{z_t}\log p(y|z_t)$ from the diffusion model prediction to sample from the conditional distribution $p(z_{t}|y)$ instead of the data distribution $p(z_{t})$
145
+
146
+ Training a separate classifier on specific data may sometimes be a resourceful task. Given a conditional diffusion model, one can rely on this model's knowledge about additional data, that it inquires with conditioning capabilities. This guidance technique is called classifier-free guidance (CFG) [9]. To determine the sampling direction, which leads to correspondence with conditioning data $y$ , CFG compares a conditional prediction of the model with an unconditional one. In case of text-to-image models, the latter can be easily obtained by conditioning the model on the empty text $\varnothing = \emptyset$ . With CFG incorporated, the diffusion model prediction, used in both sampling, Equation 1, and inversion, Equation 2, takes the form of $\hat{\varepsilon}_{\theta}(z_t,t,y)$ :
147
+
148
+ $$
149
+ \hat {\varepsilon} _ {\theta} \left(z _ {t}, t, y\right) = \operatorname {C F G} \left(z _ {t}, t, y, w\right) = \varepsilon_ {\theta} \left(z _ {t}, t, \varnothing\right) + w \left(\varepsilon_ {\theta} \left(z _ {t}, t, y\right) - \varepsilon_ {\theta} \left(z _ {t}, t, \varnothing\right)\right), \tag {3}
150
+ $$
151
+
152
+ where $w$ is a guidance scale, that controls to which extent additional data $y$ influences the generation process. For SD model, the guidance scale is typically chosen as $w = 7.5$ . It is important to note, that with $w = 1$ CFG sampling step equals regular conditional sampling.
153
+
154
+ Self-guidance. As proposed in [5], the choice in guidance sources is not limited to either the classifier or the diffusion model itself. One can use any energy function $g$ to guide the sampling process, as long as there exists a gradient with respect to $z_{t}$ . When the energy function uses outputs of internal layers of the diffusion model, the guidance process is called self-guidance. The authors of the method suggest defining energy function $g$ on top of cross-attention maps $\mathcal{A}^{\mathrm{cross}} \coloneqq$ cross attn. $[\varepsilon_{\theta}(z_t,t,y)]$ and the output of penultimate layer of the diffusion model decoder, features $\varPsi \coloneqq$ features $[\varepsilon_{\theta}(z_t,t,y)]$ . To add self-guidance to CFG, one has to modify $\hat{\varepsilon}_{\theta}(z_t,t,y)$ from Equation 3 as:
155
+
156
+ $$
157
+ \hat {\varepsilon} _ {\theta} \left(z _ {t}, t, y\right) = \operatorname {C F G} \left(z _ {t}, t, y, w\right) + v \cdot \nabla_ {z _ {t}} g \left(z _ {t}, t, y, \mathcal {A} ^ {\text {c r o s s}}, \Psi\right), \tag {4}
158
+ $$
159
+
160
+ where $v$ is a self-guidance scale.
161
+
162
+ # 3.2 Guide and Rescale
163
+
164
+ Consider an initial image $x_{\mathrm{init}}$ , a source prompt $y_{\mathrm{src}}$ and a target prompt $y_{\mathrm{trg}}$ . For example, let $x_{\mathrm{init}}$ be a photo of a woman with blue hair, wearing a shirt with a drawing. A source prompt, describing the initial image, can be defined as $y_{\mathrm{src}} =$ "A photo of a woman wearing a shirt with a drawing". A target prompt should describe the desired editing result. For instance, if we want to change the color of the shirt to red, the target prompt can be defined as $y_{\mathrm{trg}} =$ "A photo of a woman wearing a red shirt with a drawing". This example is illustrated in Fig. 3.
165
+
166
+ Our goal is to generate an image $x_{\mathrm{edit}}$ , that would correspond to the editing, specified in $y_{\mathrm{trg}}$ . At the same time, $x_{\mathrm{edit}}$ should contain all the features of $x_{\mathrm{init}}$ , not influenced by editing. For example, when changing the color of the shirt,
167
+
168
+ Source prompt: "A photo of a woman wearing a shirt with a drawing" Target prompt: "A photo of a woman wearing a red shirt with a drawing"
169
+
170
+ ![](images/2f3bd5ef147a22e4b07b17526ffc8b0b86f46aafb3222225f6649ea0ec033a12.jpg)
171
+ Fig. 3: Editing example. From left to right, first: initial image; second: naive editing, described in Equation 6; third: editing with simple energy function $g$ from Equation 7; fourth: editing with the proposed method.
172
+
173
+ ![](images/f5a213bc84462894c9f7e57b3877c4c68a1c592d3e5eb7208b24896ffa4fb5f1.jpg)
174
+
175
+ ![](images/75ad581a5374f7fa3da90badf5e6fbe3643e84ba0981859e5f6c6ee695cee1d2.jpg)
176
+
177
+ ![](images/054ae7dfa43e81653ae8b5c80939a44bea2f30d5a1285aae48cf0de76a7913a8.jpg)
178
+
179
+ $x_{\mathrm{edit}}$ and $x_{\mathrm{init}}$ should be the same in all other aspects. Meaning, that we should preserve the background of the photo and the visual appearance of the woman, including the color of her hair, her facial expression, and her position.
180
+
181
+ A naive approach to obtain correspondence to $y_{\mathrm{trg}}$ can be described as follows. First, we obtain a DDIM inversion trajectory $\{z_t^*\}_{t=0}^T$ for $x_{\mathrm{init}}$ , conditioning on $y_{\mathrm{src}}$ . We use CFG with guidance scale $w = 1$ , i.e. regular conditional sampling:
182
+
183
+ $$
184
+ \begin{array}{c} z _ {0} ^ {*} = \operatorname {E n c.} \left(x _ {\text {i n i t}}\right) \\ z _ {t + 1} ^ {*} = a _ {t} ^ {*} z _ {t} ^ {*} + b _ {t} ^ {*} \varepsilon_ {\theta} \left(z _ {t} ^ {*}, t, y _ {\mathrm {s r c}}\right) | _ {0 \leq t \leq T - 1}. \end{array} \tag {5}
185
+ $$
186
+
187
+ A noised latent $z_{T}^{*}$ has information about $x_{\mathrm{init}}$ encoded, so an obvious further step would be to synthesize an image, starting from obtained $z_{T}^{*}$ and conditioning on $y_{\mathrm{trg}}$ , using CFG with standard sampling guidance scale $w = 7.5$ :
188
+
189
+ $$
190
+ \begin{array}{c} \hat {z} _ {T} = z _ {T} ^ {*} \\ \hat {z} _ {t - 1} = a _ {t} \hat {z} _ {t} + b _ {t} \mathrm {C F G} (\hat {z} _ {t - 1}, t, y _ {\mathrm {t r g}}, 7. 5) \big | _ {1 \leq t \leq T} \\ x _ {\mathrm {e d i t}} = D e c. (\hat {z} _ {0}). \end{array} \tag {6}
191
+ $$
192
+
193
+ This method achieves near-perfect coherence with $y_{\mathrm{trg}}$ . However, due to a mismatch of guidance scales and conditioning data in inversion and sampling processes, trajectory $\{\hat{z}_t\}_{t=0}^T$ ends up being too far from $\{z_t^*\}_{t=0}^T$ . This results in $x_{\mathrm{init}}$ being modified significantly, as shown by the second image in Fig. 3.
194
+
195
+ In previous works, there are different workarounds suggested. For example, substituting inner representations of the diffusion model with corresponding representations from $\{z_t^*\}_{t=0}^T$ [2,7,23], finetuning the model [10] or optimizing null-text embeddings [14] to move $\{\hat{z}_t\}_{t=0}^T$ closer to the inversion trajectory.
196
+
197
+ In this work, we suggest addressing this problem with modified self-guidance. As inversion trajectory is an almost perfect reconstruction trajectory for $x_{\mathrm{init}}$ , we suggest guiding the sampling process with respect to $\{z_t^*\}_{t=0}^T$ . This way we will be able to preserve features of the initial image. For example, we can simply define the function $g$ as an L2 norm of the difference of the current latent, obtained with CFG sampling in Equation 6, and the corresponding inversion latent:
198
+
199
+ $$
200
+ g (\hat {z} _ {t}, z _ {t} ^ {*}) = \| \hat {z} _ {t} - z _ {t} ^ {*} \| _ {2} ^ {2}. \tag {7}
201
+ $$
202
+
203
+ However, for proper editing, it is important to control, which regions of the image we want to preserve with the function $g$ , and which areas we still want to vividly edit. Based on editing results (Fig. 3), the simple function in Equation 7 does not hold this property.
204
+
205
+ We found that applying guidance over inner representations of the model offers the desired control over image regions. To obtain this inner representation, we need to conduct two separate forward passes over the diffusion model.
206
+
207
+ First, for the inversion trajectory, we make a single sampling step with the same parameters, as in Equation 5:
208
+
209
+ $$
210
+ \bar {z} _ {t - 1} ^ {*} = a _ {t} z _ {t} ^ {*} + b _ {t} \varepsilon_ {\theta} \left(z _ {t} ^ {*}, t, y _ {\mathrm {s r c}}\right). \tag {8}
211
+ $$
212
+
213
+ Together with a new latent $\bar{z}_{t-1}^*$ , we obtain inner representations of the diffusion model $\varepsilon_{\theta}$ , corresponding to the inversion trajectory. For now, we denote them as $\mathcal{I}^*$ , i.e. $\mathcal{I}^*$ is a set of inner representations (for example, outputs of cross-attention or self-attention layers, etc.) that are calculated during the forward pass of $\varepsilon_{\theta}(z_t^*, t, y_{\mathrm{src}})$ . The $\mathcal{I}^*$ will be defined more specifically in the following Sec. 3.2.
214
+
215
+ As $\mathcal{I}^*$ is produced with conditioning on $y_{\mathrm{src}}$ , a proper way to obtain inner representations for the current trajectory, denoted as $\overline{\mathcal{I}}$ , would be to make a single sampling step, starting at a current latent $z_{t}$ and conditioning on $y_{\mathrm{src}}$ :
216
+
217
+ $$
218
+ \bar {z} _ {t - 1} = a _ {t} z _ {t} + b _ {t} \varepsilon_ {\theta} \left(z _ {t}, t, y _ {\mathrm {s r c}}\right). \tag {9}
219
+ $$
220
+
221
+ Conditioning on the same prompt $y_{\mathrm{src}}$ is an important detail towards more stable editing process. This way, the resulting inner representations for the inversion and the current trajectories are aligned better, rather than when conditioning on different prompts. Besides, when preserving features of the initial image, we want to detach information about editing from the current state of these features. Our logic is, that with the sampling step in Equation 9 we want to see, how much has reconstruction of the initial image suffered, and compare it with the ideal reconstruction in Equation 8.
222
+
223
+ The current latent $z_{t}$ in Equation 9 is the result of applying CFG together with our self-guidance at the previous sampling step, initially being defined as $z_{T} = z_{T}^{*}$ .
224
+
225
+ We define the energy function as $g(z_{t},z_{t}^{*},t,y_{\mathrm{src}},\mathcal{I}^{*},\overline{\mathcal{I}})$ . A sampling step in Equation 4 can be rewritten as:
226
+
227
+ $$
228
+ \hat {\varepsilon} _ {\theta} \left(z _ {t}, t, y\right) = \operatorname {C F G} \left(z _ {t}, t, y _ {\mathrm {t r g}}, 7. 5\right) + v \cdot \nabla_ {z _ {t}} g \left(z _ {t}, z _ {t} ^ {*}, t, y _ {\mathrm {s r c}}, \mathcal {I} ^ {*}, \bar {\mathcal {I}}\right). \tag {10}
229
+ $$
230
+
231
+ See the overall pipeline of the method in Fig. 2 and more details can be found in Appendix A. We suggest ways to specify Equation 10 by defining the inner representations sources in the following section, where we denote function $g$ as a guider.
232
+
233
+ Guiders We found that jointly including a Self-attention Guider and a Feature Guider into the generation process is sufficient for improving editing and preserving the initial image features. At the same time, they do not interfere with the editing, done by CFG. The effect of these guiders is illustrated in Fig 4a. More details about guiders and its properties can be found in Appendix B.
234
+
235
+ Self-attention Guider. As noted by the authors of [23], self-attention maps contain information about the layout of the image, i.e. relative positioning of objects. While preserving layout is a primary challenge for stylisation tasks, it is also useful for other editing types.
236
+
237
+ To utilize this finding, we suggest guiding through matching of self-attention maps from the current trajectory $\bar{A}_i^{\mathrm{self}}\coloneqq$ self attn. $[\varepsilon_{\theta}(z_t,t,y_{\mathrm{src}})]$ and an ideal reconstruction trajectory $\mathcal{A}_i^{*\mathrm{self}}\coloneqq$ self attn. $[\varepsilon_{\theta}(z_t^*,t,y_{\mathrm{src}})]$ , where $i$ corresponds to the index of the UNet layer. So, in this case $\mathcal{I}^{*} = \{\bar{A}_{i}^{*\mathrm{self}}\} ,\overline{\mathcal{I}} = \{\bar{A}_{i}^{\mathrm{self}}\}$ and the guider is defined as follows:
238
+
239
+ $$
240
+ g \left(z _ {t}, z _ {t} ^ {*}, t, y _ {\mathrm {s r c}}, \left\{\mathcal {A} _ {i} ^ {* \text {s e l f}} \right\}, \left\{\bar {\mathcal {A}} _ {i} ^ {\text {s e l f}} \right\}\right) = \sum_ {i = 1} ^ {L} \operatorname {m e a n} \| \mathcal {A} _ {i} ^ {* \text {s e l f}} - \bar {\mathcal {A}} _ {i} ^ {\text {s e l f}} \| _ {2} ^ {2}, \tag {11}
241
+ $$
242
+
243
+ where $L$ is a number of UNet layers.
244
+
245
+ Feature Guider. While preserving layout can significantly improve editing quality, it is not sufficient. For example, when applying local editing to a photo of a person, it is crucial to preserve visual features as well, such as face expressions.
246
+
247
+ To achieve this, for non-stylisation editing task we adopt an idea from [5]. The authors of this work propose an appearance function for controlling visual appearance of an object, which utilizes masked features. In this work we define features $\varPhi$ as an output of the last up-block in UNet. We also found, that masking is not crucial and does not influence the quality of editing in our setting, so we eliminated it for simplicity. Similar to [5], we apply L1 norm to the difference of $\bar{\varPhi} =$ features $[\varepsilon_{\theta}(z_t,t,y_{\mathrm{src}})]$ and $\varPhi^{*}=$ features $[\varepsilon_{\theta}(z_t^*,t,y_{\mathrm{src}})]$ :
248
+
249
+ $$
250
+ g \left(z _ {t}, z _ {t} ^ {*}, t, y _ {\mathrm {s r c}}, \Phi^ {*}, \bar {\Phi}\right) = \operatorname {m e a n} \left\| \Phi^ {*} - \bar {\Phi} \right\| _ {1}. \tag {12}
251
+ $$
252
+
253
+ For stylisation tasks, similar to [23], we define $\varPhi$ as an output of the second ResNet block in the second UNet up-block. Similar to Equation 12, the guider is defined as follows:
254
+
255
+ $$
256
+ g \left(z _ {t}, z _ {t} ^ {*}, t, y _ {\mathrm {s r c}}, \Phi^ {*}, \bar {\Phi}\right) = \operatorname {m e a n} \| \Phi^ {*} - \bar {\Phi} \| _ {2} ^ {2}. \tag {13}
257
+ $$
258
+
259
+ Noise rescaling Even though the proposed guiders significantly improve editing quality, the resulting method experiences inconsistency in terms of optimal guidance scales, when applied to a wide range of images.
260
+
261
+ We noticed that when our method's behavior is unstable, norms of CFG and the sum of gradients of all the guiders show instability over sampling steps as well.
262
+
263
+ We suggest scaling the sum of guiders' gradients by a factor, depending on the CFG norm. This way, the proportion of both editing and preservation will be consistent throughout the whole synthesis process and easily controllable.
264
+
265
+ More formally, a single noise sampling step will now be defined as:
266
+
267
+ ![](images/a3430a75f0db98ac3ed4adc854b1d4b4baa9ce612ebc74fa85854cdecc218a6c.jpg)
268
+ (a)
269
+
270
+ ![](images/59c6e0c4e1caa80c98a96a915c428337fcec81d8d9cbbcf799c784263c0b00e5.jpg)
271
+ (b)
272
+ Fig. 4: (a) Effect of the proposed guiders (Equation 11, Equation 12). Jointly applying both guiders preserves both layout and visual characteristics of unedited regions of the image. (b) Illustration of applying noise rescaling (Equation 14). This technique aligns the sum of guiders with CFG according to the coefficient, defined in Equation 15, therefore stabilizes editing and improves its quality.
273
+
274
+ $$
275
+ \begin{array}{l} \epsilon_ {t} = \varepsilon_ {\theta} \left(z _ {t}, t, \varnothing\right) + w \left(\varepsilon_ {\theta} \left(z _ {t}, t, y\right) - \varepsilon_ {\theta} \left(z _ {t}, t, \varnothing\right)\right) + \\ + \gamma \sum_ {i} v _ {i} \cdot \nabla_ {z _ {t}} g _ {i} (z _ {t}, z _ {t} ^ {*}, t, y _ {\mathrm {s r c}}, \mathcal {I} ^ {*}, \overline {{\mathcal {I}}}), \\ \end{array}
276
+ $$
277
+
278
+ where $\gamma$ is a scaling factor. With $r$ being a numerical parameter, controlling the proportion between editing and preservation, $\gamma$ can be computed as:
279
+
280
+ $$
281
+ r _ {\text {c u r}} (t) = \frac {\left\| w \left(\varepsilon_ {\theta} \left(z _ {t} , t , y\right) - \varepsilon_ {\theta} \left(z _ {t} , t , \varnothing\right)\right) \right\| _ {2} ^ {2}}{\left\| \sum_ {i} v _ {i} \cdot \nabla_ {z _ {t}} g _ {i} \left(z _ {t} , z _ {t} ^ {*} , t , y _ {\text {s r c}}\right) \right\| _ {2} ^ {2}}, \tag {15}
282
+ $$
283
+
284
+ $$
285
+ \gamma = r \cdot r _ {\mathrm {c u r}} (t).
286
+ $$
287
+
288
+ We found that keeping $r$ in an interval, rather than defining it as a fixed numerical hyperparameter, works best in experiments. An interval can be defined so that the fraction of norms in Equation 15 does not exceed some pre-defined upper and lower boundaries. This way, together with obtaining the desired consistency, we still let the diffusion model decide, whether the current sampling step needs more editing or preservation. More formally:
289
+
290
+ $$
291
+ r (t) = \left\{ \begin{array}{l} r _ {\text {l o w e r}}, \frac {1}{r _ {\text {c u r}} (t)} \leq r _ {\text {l o w e r}} \\ \frac {1}{r _ {\text {c u r}} (t)}, r _ {\text {l o w e r}} < \frac {1}{r _ {\text {c u r}} (t)} < r _ {\text {u p p e r}}, \\ r _ {\text {u p p e r}}, \frac {1}{r _ {\text {c u r}} (t)} \geq r _ {\text {u p p e r}} \end{array} \right. \tag {16}
292
+ $$
293
+
294
+ An example of applying noise rescaling to the proposed method is provided in Fig. 4b. More details about rescaling and its analysis can be found in Appendix C.
295
+
296
+ # 4 Experiments
297
+
298
+ Experiment Setup. In order to comprehensively compare image manipulation methods, we decided to consider 4 different types of editing: 1) local manipulation of a person's appearance and clothing, 2) changing person's emotions, 3) replacing one animal with another, and 4) global image stylisation. For each type, we collected 20 different example edits on which we tested all methods. A more detailed description of these types of edits and all examples can be found in the Appendix D.
299
+
300
+ To compare the similarity of edited and real images we collected more extensive datasets. A particular case of animal-to-animal type of editing is the task of transformation dogs into cats. To compare methods on this task we collected 500 examples of dogs from the AFHQ dataset [3] and then compared the results of editing with cats from the same dataset. For other types of editing datasets and details are described in the Appendix D.
301
+
302
+ We compared our method with existing approaches that have publicly available source code: NPI [13], NPI Prox [6] and NTI [14] based on P2P [7], MasaCtrl [2], ProxMasaCtrl [6], PnP [4], and EDICT [26]. We used the authors' original code with the default parameters recommended in the description of each method. For our method, we also fixed hyperparameters during evaluation. More details about our method setup can be found in Appendix F.
303
+
304
+ # 4.1 Qualitative Comparison
305
+
306
+ In Fig. 5 we see the result of our method and previous approaches on examples of edits belonging to one of the 4 types of edits mentioned above. It can be seen that our method shows stable quality across all types of edits. In cases where the whole image does not need to be stylized, our method, unlike baselines, is good at preserving the structure and background that should not be changed. For example, when editing a person's emotion, our method only affects the face area and does not change the rest of the person's attributes and background, unlike other methods that corrupt the overall structure of the original image. This can be seen particularly well in local edits of different attributes of a woman. The MasaCtrl and ProxMasaCtrl methods strongly alter the geometry of the person, and the target edit is not always obtained. The P2P+NTI, P2P+NPI, and P2P+NPI Prox methods either transform the target attribute while corrupting others or edit nothing at all. The PnP method almost always achieves the desired edit but at the cost of severe loss of structure of the original image. The EDICT method performs best compared to the other methods but is still inferior to our method in most of these examples.
307
+
308
+ # 4.2 Quantitative Comparison
309
+
310
+ To quantitatively evaluate the performance of our method, we decided to use an evaluation protocol similar to that used in EDICT [26]. This protocol measures two key properties of the method. The first is the extent to which the result of
311
+
312
+ ![](images/17506f882bd54c853cd5a5a8523e4787fd0da1bf0992ced1975abe10054b5538.jpg)
313
+ Fig. 5: Visual comparison of our method with baselines over different types of editing. Our approach shows more consistent results than existing methods and achieves a better trade-off between editing quality and preservation of the structure of the original image.
314
+
315
+ the method contains the desired edit. To measure this characteristic, we use the CLIP score [17], which is calculated between the edited image and the target prompt. The second property is the extent to which the method preserves the structure and details of the original image that should not change during editing. For this, we use the LPIPS metric [27] between the original image and its edited version.
316
+
317
+ The results of these metrics for our method and others are shown in Table 1. They show that our method achieves the best balance between preserving the original image structure and editing the target attribute. In particular, on the LPIPS metric, we perform best apart from the EDICT method, which we significantly outperform on the CLIP score. On the CLIP score, we also perform best apart from the PnP method, which is strongly inferior in its ability to preserve the structure of the original image in terms of the LPIPS metric. The other approaches show uniformly worse results with respect to these two metrics. It is also worth noting that compared to the most advanced EDICT and PnP methods, our method is more computationally efficient, as can be seen from the running time for editing an image. More analysis of these results can be found in Appendix G.
318
+
319
+ To quantitatively evaluate the distance between the distributions of edited and real images we calculate FID Score [21] on the dog-to-cat transformation task. As shown in Table 1 our method outperforms the others by FID Score. MasaCtrl and ProxMasaCtrl show the highest FID that is correlated with artifacts on edited images and its nonrealism in Fig. 21 in Appendix D.3. The closest FID Score to our method has PnP but it is shown to be several times slower than our method.
320
+
321
+ Table 1: Comparison with baselines on image editing task by using 80 examples of 4 different edit types to compute the LPIPS and CLIP per edit. 500 samples of the dog-to-cat type of editing are used to compute FID. Our method achieves the best balance between editing quality (CLIP) and preservation of the original image (LPIPS) and reaches the best similarity to the real image's distribution (FID). The inference time (including the inversion part) is computed on a single GPU A100 in seconds.
322
+
323
+ <table><tr><td>Method</td><td>LPIPS ↓</td><td>CLIP ↑</td><td>FID ↓</td><td>Time (s) ↓</td></tr><tr><td>ProxMasaCtrl [6]</td><td>0.267</td><td>0.215</td><td>94.53</td><td>12.94</td></tr><tr><td>MasaCtrl [2]</td><td>0.306</td><td>0.223</td><td>100.62</td><td>13.73</td></tr><tr><td>EDICT [26]</td><td>0.221</td><td>0.229</td><td>47.13</td><td>68.13</td></tr><tr><td>P2P [7] + NTI [14]</td><td>0.279</td><td>0.233</td><td>42.46</td><td>66.77</td></tr><tr><td>P2P [7] + NPI [13] Prox [6]</td><td>0.170</td><td>0.233</td><td>43.16</td><td>8.59</td></tr><tr><td>P2P [7] + NPI [13]</td><td>0.251</td><td>0.234</td><td>44.05</td><td>8.54</td></tr><tr><td>PnP [4]</td><td>0.366</td><td>0.256</td><td>39.55</td><td>197.0</td></tr><tr><td>Guide-and-Rescale (ours)</td><td>0.228</td><td>0.243</td><td>39.07</td><td>24.26</td></tr></table>
324
+
325
+ # 4.3 User Study
326
+
327
+ Next, we conducted a user study to compare our method with baselines. We used the same example edits of the 4 types we described above. We evaluate how much our method is preferred by others in the form of a pairwise comparison question. We surveyed 62 users who answered a total of 960 questions. Each question showed the original image, the targeting prompt, and two results. Users had to answer two questions. The first question (Q1) is "Which image matches the desired editing description best?" The second question (Q2) is "Which image preserves the overall structure of the "Original Image" best?"
328
+
329
+ The results of this user study are shown in Table 2. Each value represents the percentage of the users that preferred our method over the corresponding baseline in the first column. We can see that our method is preferred over almost all baselines in terms of "Editing" quality and is subjectively similar to $\mathrm{P2P + }$ NPI Prox. However, our method is better than $\mathrm{P2P + NPI}$ Prox in terms of preservation quality. To summarize, our method is consistent over a wide range of different edits and subjectively gives better results on editing quality while preserving source image regions that should not be edited. Details of the user study can be found in the Appendix H.
330
+
331
+ Table 2: User study that evaluates the subjective preference of our method that is preferred over all baselines.
332
+
333
+ <table><tr><td>Method</td><td>Editing (Q1)</td><td>Preservation (Q2)</td></tr><tr><td>MasaCtrl [2]</td><td>85 %</td><td>70 %</td></tr><tr><td>ProxMasaCtrl [6]</td><td>82 %</td><td>63 %</td></tr><tr><td>P2P [7] + NTI [14]</td><td>60 %</td><td>49 %</td></tr><tr><td>P2P [7] + NPI [13]</td><td>59 %</td><td>58 %</td></tr><tr><td>P2P [7] + NPI [13] Prox [6]</td><td>50 %</td><td>55 %</td></tr><tr><td>PnP [4]</td><td>60 %</td><td>61 %</td></tr><tr><td>EDICT [26]</td><td>56 %</td><td>59 %</td></tr></table>
334
+
335
+ # 5 Conclusion
336
+
337
+ In this paper, we propose a novel image editing method Guide-and-Rescale based on the self-guidance mechanism and show its effectiveness for a variety of editing types. It significantly improves the trade-off between editing quality and original image preservation. We show that it achieves more consistent and high-quality results than existing approaches both qualitatively and quantitatively.
338
+
339
+ # Acknowledgements
340
+
341
+ The analysis of related work in sections 1 and 2 were obtained by Aibek Alanov with the support of the grant for research centres in the field of AI provided by the Analytical Center for the Government of the Russian Federation (ACRF) in accordance with the agreement on the provision of subsidies (identifier of the agreement 000000D730321P5Q0002) and the agreement with HSE University No. 70-2021-00139. This research was supported in part through computational resources of HPC facilities at HSE University.
342
+
343
+ # References
344
+
345
+ 1. Brooks, T., Holynski, A., Efros, A.A.: Instructpix2pix: Learning to follow image editing instructions. In: CVPR (2023)
346
+ 2. Cao, M., Wang, X., Qi, Z., Shan, Y., Qie, X., Zheng, Y.: Masactrl: Tuning-free mutual self-attention control for consistent image synthesis and editing. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). pp. 22560-22570 (October 2023)
347
+ 3. Choi, Y., Uh, Y., Yoo, J., Ha, J.W.: Stargan v2: Diverse image synthesis for multiple domains. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2020)
348
+ 4. Dathathri, S., Madotto, A., Lan, J., Hung, J., Frank, E., Molino, P., Yosinski, J., Liu, R.: Plug and play language models: A simple approach to controlled text generation. In: International Conference on Learning Representations (2020), https://openreview.net/forum?id=H1edEyBKDS
349
+ 5. Epstein, D., Jabri, A., Poole, B., Efros, A.A., Holynski, A.: Diffusion self-guidance for controllable image generation. arXiv preprint arXiv:2306.00986 (2023)
350
+ 6. Han, L., Wen, S., Chen, Q., Zhang, Z., Song, K., Ren, M., Gao, R., Stathopoulos, A., He, X., Chen, Y., Liu, D., Zhangli, Q., Jiang, J., Xia, Z., Srivastava, A., Metaxas, D.: Improving tuning-free real image editing with proximal guidance (2023)
351
+ 7. Hertz, A., Mokady, R., Tenenbaum, J., Aberman, K., Pritch, Y., Cohen-Or, D.: Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626 (2022)
352
+ 8. Ho, J., Jain, A., Abbeel, P.: Denoising diffusion probabilistic models. arXiv preprint arxiv:2006.11239 (2020)
353
+ 9. Ho, J., Salimans, T.: Classifier-free diffusion guidance (2022)
354
+ 10. Kawar, B., Zada, S., Lang, O., Tov, O., Chang, H., Dekel, T., Mosseri, I., Irani, M.: Magic: Text-based real image editing with diffusion models. In: Conference on Computer Vision and Pattern Recognition 2023 (2023)
355
+ 11. Kingma, D.P., Welling, M.: Auto-Encoding Variational Bayes. In: 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings (2014)
356
+ 12. Meng, C., He, Y., Song, Y., Song, J., Wu, J., Zhu, J.Y., Ermon, S.: SDEdit: Guided image synthesis and editing with stochastic differential equations. In: International Conference on Learning Representations (2022)
357
+ 13. Miyake, D., Iohara, A., Saito, Y., Tanaka, T.: Negative-prompt inversion: Fast image inversion for editing with text-guided diffusion models (2023)
358
+
359
+ 14. Mokady, R., Hertz, A., Aberman, K., Pritch, Y., Cohen-Or, D.: Null-text inversion for editing real images using guided diffusion models. arXiv preprint arXiv:2211.09794 (2022)
360
+ 15. Pan, Z., Gherardi, R., Xie, X., Huang, S.: Effective real image editing with accelerated iterative diffusion inversion (2023)
361
+ 16. Parmar, G., Kumar Singh, K., Zhang, R., Li, Y., Lu, J., Zhu, J.Y.: Zero-shot image-to-image translation. In: ACM SIGGRAPH 2023 Conference Proceedings. SIGGRAPH '23, Association for Computing Machinery, New York, NY, USA (2023). https://doi.org/10.1145/3588432.3591513, https://doi.org/10.1145/3588432.3591513
362
+ 17. Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al.: Learning transferable visual models from natural language supervision. In: International conference on machine learning. pp. 8748-8763. PMLR (2021)
363
+ 18. Ramesh, A., Dhariwal, P., Nichol, A., Chu, C., Chen, M.: Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125 1(2), 3 (2022)
364
+ 19. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 10684-10695 (2022)
365
+ 20. Saharia, C., Chan, W., Saxena, S., Li, L., Whang, J., Denton, E.L., Ghasemipour, K., Gontijo Lopes, R., Karagol Ayan, B., Salimans, T., et al.: Photorealistic text-to-image diffusion models with deep language understanding. Advances in Neural Information Processing Systems 35, 36479-36494 (2022)
366
+ 21. Seitzer, M.: pytorch-fid: FID Score for PyTorch. https://github.com/mseitzer/pytorch-fid (August 2020), version 0.3.0
367
+ 22. Song, J., Meng, C., Ermon, S.: Denoising diffusion implicit models. In: International Conference on Learning Representations (2021), https://openreview.net/forum?id=St1giarCHLP
368
+ 23. Tumanyan, N., Geyer, M., Bagon, S., Dekel, T.: Plug-and-play diffusion features for text-driven image-to-image translation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 1921-1930 (June 2023)
369
+ 24. Vahdat, A., Kreis, K., Kautz, J.: Score-based generative modeling in latent space. In: Ranzato, M., Beygelzimer, A., Dauphin, Y., Liang, P., Vaughan, J.W. (eds.) Advances in Neural Information Processing Systems. vol. 34, pp. 11287-11302. Curran Associates, Inc. (2021), https://proceedings.neurips.cc/paper_files/paper/2021/file/5dca4c6b9e244d24a30b4c45601d9720-Paper.pdf
370
+ 25. Valevski, D., Kalman, M., Matias, Y., Leviathan, Y.: Unitune: Text-driven image editing by fine tuning an image generation model on a single image. ArXiv abs/2210.09477 (2022), https://api-semanticscholar.org/CorpusID: 252968124
371
+ 26. Wallace, B., Gokul, A., Naik, N.: Edict: Exact diffusion inversion via coupled transformations. In: 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 22532-22541. IEEE Computer Society, Los Alamitos, CA, USA (jun 2023). https://doi.org/10.1109/CVPR52729.2023.02158, https://doi.ieeecomputersociety.org/10.1109/CVPR52729.2023.02158
372
+ 27. Zhang, R., Isola, P., Efros, A.A., Shechtman, E., Wang, O.: The unreasonable effectiveness of deep features as a perceptual metric. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 586-595 (2018)
373
+
374
+ 28. Zhang, Z., Han, L., Ghosh, A., Metaxas, D., Ren, J.: Sine: Single image editing with text-to-image diffusion models. arXiv preprint arXiv:2212.04489 (2022)
2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18a99de44d3785520a3d8dc537875cf88f8a770078c14d73dd8f1a36b8bd4a13
3
+ size 674277
2024/Guide-and-Rescale_ Self-Guidance Mechanism for Effective Tuning-Free Real Image Editing/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/H-V2X_ A Large Scale Highway Dataset for BEV Perception/8adfcc13-a5b5-4a35-898d-57c28538b797_content_list.json ADDED
@@ -0,0 +1,1892 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 82,
8
+ 48,
9
+ 915,
10
+ 105
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Chang Liu, Mingxu Zhu, and Cong Ma",
17
+ "bbox": [
18
+ 285,
19
+ 139,
20
+ 709,
21
+ 160
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ADLab, Tencent {changeliu,mingxuzhu,codyma}@tencent.com",
28
+ "bbox": [
29
+ 266,
30
+ 175,
31
+ 728,
32
+ 213
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract. Vehicle-to-everything (V2X) technology has become an area of interest in research due to the availability of roadside infrastructure perception datasets. However, these datasets primarily focus on urban intersections and lack data on highway scenarios. Additionally, the perception tasks in the datasets are mainly MONO 3D due to limited synchronized data across multiple sensors. To bridge this gap, we propose Highway-V2X (H-V2X), the first large-scale highway Bird's-Eye-View (BEV) perception dataset captured by sensors in the real world. The dataset covers over 100 kilometers of highway, with a diverse range of road and weather conditions. H-V2X consists of over 1.9 million fine-grained categorized samples in BEV space, captured by multiple synchronized cameras, with vector map provided. We performed joint 2D-3D calibrations to ensure correct projection and human labor was involved to ensure data quality. Furthermore, we propose three highly relevant tasks to the highway scenario: BEV detection, BEV tracking, and trajectory prediction. We conducted benchmarks for each task, and innovative methods incorporating vector map information were proposed. We hope that H-V2X and benchmark methods will facilitate highway BEV perception research direction. The dataset is available at https://pan.quark.cn/s/86d19da10d18",
39
+ "bbox": [
40
+ 147,
41
+ 235,
42
+ 849,
43
+ 591
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Keywords: V2X, Dataset, BEV Detection, Tracking, Prediction",
50
+ "bbox": [
51
+ 142,
52
+ 600,
53
+ 791,
54
+ 619
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "image",
60
+ "img_path": "images/b840c9877d5fb4f5641692d742189e39233cda975a6c7f7a9c10934353156e0c.jpg",
61
+ "image_caption": [
62
+ "Fig. 1: We introduce H-V2X, the first large scale highway dataset captured from real-world scenario and sensors. H-V2X provides synchronized sensor data, vector map, projection parameters and 3D ground truth, enabling end-to-end highway BEV perception."
63
+ ],
64
+ "image_footnote": [],
65
+ "bbox": [
66
+ 77,
67
+ 635,
68
+ 922,
69
+ 790
70
+ ],
71
+ "page_idx": 0
72
+ },
73
+ {
74
+ "type": "text",
75
+ "text": "1 Introduction",
76
+ "text_level": 1,
77
+ "bbox": [
78
+ 77,
79
+ 879,
80
+ 309,
81
+ 899
82
+ ],
83
+ "page_idx": 0
84
+ },
85
+ {
86
+ "type": "text",
87
+ "text": "The highway is pivotal in transportation, but persistent safety concerns remain unresolved. While the development of intelligent vehicles presents a potential",
88
+ "bbox": [
89
+ 72,
90
+ 910,
91
+ 920,
92
+ 949
93
+ ],
94
+ "page_idx": 0
95
+ },
96
+ {
97
+ "type": "text",
98
+ "text": "and practical solution to address human-driver-related issues such as fatigue, distraction, and unsafe driving practices, the adoption of vehicle intelligence is still in its nascent stages. It is noteworthy that the majority of vehicles on the highway lack advanced driver assistance systems.",
99
+ "bbox": [
100
+ 77,
101
+ 55,
102
+ 917,
103
+ 133
104
+ ],
105
+ "page_idx": 1
106
+ },
107
+ {
108
+ "type": "text",
109
+ "text": "Conversely, there is substantial promise in the emerging research focus on roadside infrastructure, particularly within vehicle-to-everything (V2X) communication. V2X has the potential to significantly enhance driving safety by leveraging sensors installed along the roadside to perceive the surrounding environment of the ego-car and subsequently communicate with it through network connections such as 5G or Road-Side-Unit (RSU). There have been several works that focus on city roadside perception by constructing roadside infrastructure datasets (sec2.1), and successive works that focus on 3D perception given the data (sec2.2). However, when considering highway roadside perception, the existing datasets are not directly applicable for training neural networks due to differences in scenarios, sensors and tasks.",
110
+ "bbox": [
111
+ 77,
112
+ 136,
113
+ 917,
114
+ 349
115
+ ],
116
+ "page_idx": 1
117
+ },
118
+ {
119
+ "type": "text",
120
+ "text": "To address the disparities and advance the study of highway roadside perception, we are introducing Highway-V2X (H-V2X), a large-scale 3D perception dataset presented in Bird's Eye View (BEV) space. This dataset was captured in real world highway scenarios, with sensors strategically mounted on masts. Encompassing over 100 kilometers of highway, the dataset leverages cameras and radars, complemented by a local vector map converted from High-Definition Map (HMap). In comparison to previous V2X datasets, H-V2X offers the following distinct characteristics:",
121
+ "bbox": [
122
+ 77,
123
+ 352,
124
+ 917,
125
+ 507
126
+ ],
127
+ "page_idx": 1
128
+ },
129
+ {
130
+ "type": "list",
131
+ "sub_type": "text",
132
+ "list_items": [
133
+ "1. Emphasis on Highway Scenarios: The dataset is tailored specifically for highway scenarios, showcasing a data distribution that significantly differs from urban datasets. As depicted in the accompanying figure, large vehicles, in particular, feature prominently within this dataset (sec3.3).",
134
+ "2. Ground Truth Construction in BEV Space: Our dataset facilitates end-to-end perception across multiple sensors by establishing ground truths in BEV space. Furthermore, the ground truth data is sequentially organized, enabling sequential learning.",
135
+ "3. Sensor Utilization: H-V2X employs radars and cameras, including fisheye cameras to address blind spots beneath the mast, as illustrated in the figure1. Notably, lidars are not included due to impractical installation on highway mast. Consequently, constructing 3D ground truth presents a significant challenge, a facet we will delve into extensively in subsequent sections.",
136
+ "4. Unified ID Tracking: The dataset emphasizes unified ID tracking across multiple sensors within the actual trajectories of vehicles, rendering multi-object tracking (MOT) an even more formidable task. In essence, vehicles are tracked throughout their entire lifespan."
137
+ ],
138
+ "bbox": [
139
+ 77,
140
+ 510,
141
+ 917,
142
+ 847
143
+ ],
144
+ "page_idx": 1
145
+ },
146
+ {
147
+ "type": "text",
148
+ "text": "To the best of our knowledge, H-V2X stands as the first large-scale dataset situated in a real-world highway scenario, incorporating BEV space attributes, sequential data, and multimodal sensing. We aim for this dataset to make a substantial contribution to the advancement of highway perception research. Leveraging the H-V2X dataset, we have also introduced three tasks accompanied",
149
+ "bbox": [
150
+ 77,
151
+ 850,
152
+ 917,
153
+ 947
154
+ ],
155
+ "page_idx": 1
156
+ },
157
+ {
158
+ "type": "page_number",
159
+ "text": "2",
160
+ "bbox": [
161
+ 77,
162
+ 16,
163
+ 94,
164
+ 30
165
+ ],
166
+ "page_idx": 1
167
+ },
168
+ {
169
+ "type": "header",
170
+ "text": "L. Chang et al.",
171
+ "bbox": [
172
+ 157,
173
+ 14,
174
+ 309,
175
+ 32
176
+ ],
177
+ "page_idx": 1
178
+ },
179
+ {
180
+ "type": "text",
181
+ "text": "by ground truths and metrics to facilitate research in highway perception, along with novel benchmark methods.",
182
+ "bbox": [
183
+ 77,
184
+ 55,
185
+ 917,
186
+ 92
187
+ ],
188
+ "page_idx": 2
189
+ },
190
+ {
191
+ "type": "text",
192
+ "text": "To summarise, our contributions are outlined as follows:",
193
+ "bbox": [
194
+ 116,
195
+ 94,
196
+ 709,
197
+ 112
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "list",
203
+ "sub_type": "text",
204
+ "list_items": [
205
+ "1. We release the H-V2X dataset, the first large-scale highway roadside infrastructure perception dataset collected using real-world data. In addition, ground truths are constructed in BEV space across multiple sensors, making end-to-end BEV learning possible.",
206
+ "2. Based on H-V2X, we introduce three tasks across multiple sensors, i.e., BEV detection, BEV tracking, and trajectory prediction. We comprehensively provide time and space aligned original sensor data, along with ground truths constructed by algorithms and human labor.",
207
+ "3. We present benchmark methods for each task, where novel neural nets are proposed incorporating HDMap information, designed to address perception across multiple sensors in BEV space."
208
+ ],
209
+ "bbox": [
210
+ 77,
211
+ 115,
212
+ 917,
213
+ 330
214
+ ],
215
+ "page_idx": 2
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "2 Related Works",
220
+ "text_level": 1,
221
+ "bbox": [
222
+ 79,
223
+ 338,
224
+ 341,
225
+ 359
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "2.1 Roadside Infrastructure Datasets",
232
+ "text_level": 1,
233
+ "bbox": [
234
+ 79,
235
+ 364,
236
+ 547,
237
+ 382
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "In this work, we focus on datasets that belong to the roadside rather than the vehicle side due to the significant variations in sensor perspectives and associated subtasks. For datasets relevant to autonomous vehicles from the vehicle side, we recommend referring to the autonomous driving datasets survey in [22, 39]. To enable autonomous driving vehicles to perceive long-range and blind-spot areas roadside perception (detailed in next section) and V2X datasets [6, 11, 14, 15, 18, 27, 35, 36, 38] have emerged as a new research direction. Among these works, roadside sensor data are provided in either simulated or real form, with scenarios focused on either urban or highway. A comprehensive comparison of these datasets can be found in table 1. Regarding simulated datasets, OPV2V [27] introduced a vehicle-to-vehicle simulated perception dataset featuring an average of 3 vehicles in the CARLA [7] simulator. Similarly, V2X-Sim [18] utilized CARLA and SUMO [16] to create a vehicle-to-RSU collaborative perception dataset. Additionally, Roadside-Opt [14] provided a roadside LiDARs dataset that focuses on sensor placement optimization, also using CARLA. These simulated datasets predominantly center on urban scenes, particularly intersections, with relatively limited representation of highway scenarios. On the other hand, roadside datasets captured by real sensors such as those proposed in [11, 35, 36, 38] use cameras or LiDARs in infrastructure-only or infrastructure-vehicle cooperative scenarios in urban areas. These datasets primarily support Mono3D detection tasks [11, 35, 36], as well as tracking and prediction tasks [38]. For highway scenarios, HighD [15] released a camera-based aerial perspective (top-down view) highway dataset using drones. A9-Dataset [6] released a 3km-long roadside Mono3D detection dataset using cameras and LiDARs. DAIR-V2X-V [36] released a highway Mono3D dataset but from the vehicle side. However, there is still a lack of a large-scale highway roadside dataset collected from real-world sensors, where vehicles pass across multiple roadside sensors, thus forming a BEV perception task. We believe that the H-V2X dataset can bridge this gap.",
244
+ "bbox": [
245
+ 77,
246
+ 383,
247
+ 917,
248
+ 947
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "header",
254
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
255
+ "bbox": [
256
+ 239,
257
+ 14,
258
+ 837,
259
+ 34
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "page_number",
265
+ "text": "3",
266
+ "bbox": [
267
+ 900,
268
+ 16,
269
+ 917,
270
+ 30
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "table",
276
+ "img_path": "images/733f40ab4eb54b48fcce6d7bdfe40e63f840439e219ab1b2e2897ef1a2be4f73.jpg",
277
+ "table_caption": [
278
+ "Table 1: Roadside Perception Dataset Comparison. C:Camera, L:LiDAR, R:Radar"
279
+ ],
280
+ "table_footnote": [],
281
+ "table_body": "<table><tr><td>Dataset</td><td>Year</td><td>Scenario</td><td>Sim Real</td><td>Num Samples</td><td>Num Classes</td><td>With Map</td><td>Provided Sensors</td><td>Sequential Trajectories</td><td>Supported Tasks</td><td>Range | Coverage</td></tr><tr><td>WIBAM [11]</td><td>2021</td><td>Urban</td><td>Real</td><td>33092</td><td>1</td><td>X</td><td>C</td><td>X</td><td>Mono3D</td><td>1 intersection</td></tr><tr><td>Rope3d [35]</td><td>2022</td><td>Urban</td><td>Real</td><td>50009</td><td>12</td><td>X</td><td>C</td><td>X</td><td>Mono3D</td><td>200m</td></tr><tr><td>DAIR-V2X-C [36]</td><td>2022</td><td>Urban</td><td>Real</td><td>12424</td><td>10</td><td>X</td><td>C&amp;L</td><td>X</td><td>Mono3D</td><td>20km</td></tr><tr><td>DAIR-V2X-I [36]</td><td>2022</td><td>Urban</td><td>Real</td><td>7058</td><td>10</td><td>X</td><td>C&amp;L</td><td>X</td><td>Mono3D</td><td>20km</td></tr><tr><td>V2X-Seq [38]</td><td>2023</td><td>Urban</td><td>Real</td><td>11275</td><td>9</td><td>VectorMap</td><td>C&amp;L</td><td>✓</td><td>Tracking 3D &amp; Pred</td><td>28 intersections</td></tr><tr><td>A9-I [46]</td><td>2023</td><td>Urban</td><td>Real</td><td>4800</td><td>10</td><td>X</td><td>C&amp;L</td><td>✓</td><td>Mono3D</td><td>1 intersection</td></tr><tr><td>INT2 [29]</td><td>2023</td><td>Urban</td><td>Real</td><td>106.8M</td><td>1</td><td>VectorMap</td><td>C&amp;L</td><td>✓</td><td>Trajectory Prediction</td><td>16 intersections</td></tr><tr><td>HighD [15]</td><td>2018</td><td>Highway Drone</td><td>Real</td><td>1.48M</td><td>2</td><td>X</td><td>C</td><td>X</td><td>2DBbox</td><td>420m</td></tr><tr><td>DAIR-V2X-V [36]</td><td>2022</td><td>Urban Highway</td><td>Real</td><td>15627</td><td>10</td><td>X</td><td>C&amp;L</td><td>X</td><td>Mono3D</td><td>20km</td></tr><tr><td>A9-Dataset [6]</td><td>2022</td><td>Highway Ramp</td><td>Real</td><td>1098</td><td>9</td><td>X</td><td>C&amp;L</td><td>✓</td><td>Mono3D</td><td>3km</td></tr><tr><td>OPV2V [27]</td><td>2022</td><td>Urban Rural</td><td>Sim</td><td>11464</td><td>1</td><td>X</td><td>C&amp;L</td><td>X</td><td>BEV</td><td>70 Scenes</td></tr><tr><td>V2X-Sim [18]</td><td>2022</td><td>Urban</td><td>Sim</td><td>57200</td><td>1</td><td>X</td><td>C&amp;L</td><td>X</td><td>BEV &amp; 3D Tracking</td><td>100Scenes</td></tr><tr><td>Roadside-Opt [14]</td><td>2023</td><td>Urban</td><td>Sim</td><td>37641</td><td>1</td><td>X</td><td>L</td><td>X</td><td>BEV</td><td>10 Scenes</td></tr><tr><td>H-V2X(ours)</td><td>2024</td><td>Highway</td><td>Real</td><td>1.94 Million</td><td>4</td><td>VectorMap</td><td>C&amp;R</td><td>✓</td><td>BEV Det MOT Tracking Trajectory Prediction</td><td>&gt;100km</td></tr></table>",
282
+ "bbox": [
283
+ 84,
284
+ 58,
285
+ 917,
286
+ 328
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "2.2 Roadside Perception Methods",
293
+ "text_level": 1,
294
+ "bbox": [
295
+ 75,
296
+ 338,
297
+ 510,
298
+ 357
299
+ ],
300
+ "page_idx": 3
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "Roadside perception refers to the use of roadside sensors to provide collaborative perception information for autonomous driving vehicles. M3D-RPN [2], Kinematic3D [3], MonoDLE [21], MonoFlex [40] and Imvoxelnet [23] were reimplemented for roadside camera-based monocular 3D detection on dataset Rope3D [35] and DAIR-V2X [36] as baseline methods. PointPillars [17], MVX-Net [24], Second [28], FIXOR [30] and VoxelNet [43] were reimplemented for LiDAR-based monocular 3D detection baseline methods in DAIR-V2X-C/I [36] and OPV2V [27] dataset. Additionally, TNT [42] and HiVT [44] are utilized as trajectory prediction baseline methods in V2X-Seq [38]. Beyond these baseline methods, which were adopted from recent works on autonomous detection tasks, InfraDet3D [45] proposed a multi-modal 3D detector that fuses LiDAR point clouds in an early fusion manner and incorporates camera detections in a late fusion manner. TransIFFTransIFF [5] and Quest [8] proposed instance-level feature fusion frameworks based on transformers by fusing infrastructure and vehicle side inputs. FFNet [37] proposed a flow-based feature fusion network that transmits feature flow instead of static features. BEVHeight [34] and BEVHeight++ [32] tackled roadside monocular 3D detection by predicting categorical height distribution per pixel to regress the height of vehicles to the ground. MonoGAE [33] proposed a ground-aware embedding by integrating implicit roadside ground information with a pixel-level ground plane equation map encoder. Furthermore, there is a line of work that addresses roadside perception from the perspective of multiagent cooperative perception by treating roadside input as one of the agents, as seen in Where2comm [12], SCOPE [31], CORE [26], etc. For a more comprehensive understanding of cooperative perception, we recommend referring to the V2X survey paper [20]. It is important to note that these roadside perception methods are limited in their ability to perform an across-sensors BEV perception task, as the most commonly used datasets (such as DAIR-V2X, Rope3D, etc.) do not provide synchronized sensor data across multiple sensors. Moreover, these methods currently lack the capability to handle fisheye cameras and incorporate HDMap information, which is essential for highway perception scenarios.",
305
+ "bbox": [
306
+ 72,
307
+ 365,
308
+ 929,
309
+ 949
310
+ ],
311
+ "page_idx": 3
312
+ },
313
+ {
314
+ "type": "page_number",
315
+ "text": "4",
316
+ "bbox": [
317
+ 79,
318
+ 17,
319
+ 94,
320
+ 29
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "header",
326
+ "text": "L. Chang et al.",
327
+ "bbox": [
328
+ 157,
329
+ 16,
330
+ 309,
331
+ 32
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "3 H-V2X Dataset",
338
+ "text_level": 1,
339
+ "bbox": [
340
+ 75,
341
+ 53,
342
+ 353,
343
+ 74
344
+ ],
345
+ "page_idx": 4
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "3.1 Setup",
350
+ "text_level": 1,
351
+ "bbox": [
352
+ 75,
353
+ 76,
354
+ 217,
355
+ 95
356
+ ],
357
+ "page_idx": 4
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "Basic Information The roadside infrastructure dataset presented in this paper is derived from real-world highways, with sensors strategically mounted on masts situated in the midst of the road. This network of masts spans over 100 kilometers, ensuring near-complete coverage of the highway with minimal blind spots (except for occlusions caused by bridges, signs, etc.). The dataset encompasses diverse highway scenarios, encompassing long straight roads, sharp curves, elevated bridges, ramps, and more, presenting a comprehensive portrayal of all road conditions typically encountered in highway settings. Each mast has multi-",
362
+ "bbox": [
363
+ 72,
364
+ 97,
365
+ 922,
366
+ 253
367
+ ],
368
+ "page_idx": 4
369
+ },
370
+ {
371
+ "type": "image",
372
+ "img_path": "images/b25eca4e8a8a77b54ab0b8b9e8f2e9bbc2ac0c29c18d9abe298ec1d052e1dbe2.jpg",
373
+ "image_caption": [
374
+ "Fig. 2: Sensor Deployment Illustration. Long-range cameras, short-range cameras, fisheye cameras are mounted on the mast, covering over $1\\mathrm{km}$ , eight lanes of the road. Synchronized sensor data are collected, and shared observation area are ensured across sensors. Radars are also mounted on each side of the mast, and are omitted in the figure for simplification."
375
+ ],
376
+ "image_footnote": [],
377
+ "bbox": [
378
+ 118,
379
+ 260,
380
+ 878,
381
+ 479
382
+ ],
383
+ "page_idx": 4
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "ple sensors, including two long-range ( $>800\\mathrm{m}$ ) radars, two long-range cameras, two short-range cameras, and a fisheye camera. A mobile edge computer (MEC) is installed on each mast for data collection. All hardware is synchronized using the NTP service deployed in the local cloud machine, and the time difference between sensors within the same mast is less than 50ms. A topology of the setup can be referred to as Fig. 2, with sensor specifications in table 2.",
388
+ "bbox": [
389
+ 72,
390
+ 586,
391
+ 917,
392
+ 702
393
+ ],
394
+ "page_idx": 4
395
+ },
396
+ {
397
+ "type": "table",
398
+ "img_path": "images/c0cfa3631166bb428257e82521dc0888957caa2e5f335746e0d790a39c4bf2be.jpg",
399
+ "table_caption": [
400
+ "Table 2: Sensors Specifications and Configurations"
401
+ ],
402
+ "table_footnote": [],
403
+ "table_body": "<table><tr><td>Sensor</td><td>Focus</td><td>Frequency</td><td>Resolution</td><td>Format</td><td>FOV</td><td>BandWidth</td></tr><tr><td>Short-range Camera</td><td>12mm</td><td>10hz</td><td>1920x1080</td><td>JPEG</td><td>49.78</td><td>4Mbps</td></tr><tr><td>Long-range Camera</td><td>70mm</td><td>10hz</td><td>1920x1080</td><td>JPEG</td><td>9.1</td><td>4Mbps</td></tr><tr><td>Fisheye Camera</td><td>1.27mm</td><td>10hz</td><td>1280x1280</td><td>JPEG</td><td>180</td><td>4Mbps</td></tr></table>",
404
+ "bbox": [
405
+ 89,
406
+ 738,
407
+ 915,
408
+ 832
409
+ ],
410
+ "page_idx": 4
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Coordinates and Calibration There are three coordinate systems in the H-V2X dataset: image coordinate, camera coordinate, and world coordinate. The primary purpose of the H-V2X dataset is to project objects from the image coordinate system to the world coordinate system, which is a local vector map converted from High-Definition Map (HMap). We propose two calibration methods: a human calibration tool and an automated calibration algorithm.",
415
+ "bbox": [
416
+ 72,
417
+ 832,
418
+ 917,
419
+ 947
420
+ ],
421
+ "page_idx": 4
422
+ },
423
+ {
424
+ "type": "header",
425
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
426
+ "bbox": [
427
+ 239,
428
+ 14,
429
+ 837,
430
+ 32
431
+ ],
432
+ "page_idx": 4
433
+ },
434
+ {
435
+ "type": "page_number",
436
+ "text": "5",
437
+ "bbox": [
438
+ 900,
439
+ 16,
440
+ 917,
441
+ 30
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "list",
447
+ "sub_type": "text",
448
+ "list_items": [
449
+ "- Calibration Tool: Prior to installation on the masts, the intrinsics of the cameras undergo calibration using a chessboard calibration algorithm [41]. The calibration tool incorporates the intrinsics, vector map, and the camera video streams. Subsequently, a human operator can fine-tune the extrinsic parameters (x, y, z, yaw, pitch, roll) to ensure that the projection of the vector map aligns seamlessly with the visual lanes. A visual illustration of the calibration tool is provided in Fig .3. This process ensures that all cameras are calibrated uniformly to the same vector map, thereby guaranteeing cohesive 2D to 3D projection.",
450
+ "- Calibration Algorithm: To address the concern of sensor drifting, we present an automatic calibration algorithm. This algorithm leverages a segmentation model to extract visual lanes and optimizes the 3D matching score between vector map lanes and visual lanes using a bundle adjustment algorithm. The calibration algorithm runs on a daily basis to maintain the timely accuracy of the calibration. Furthermore, the algorithm's effectiveness is rigorously authenticated by human operators."
451
+ ],
452
+ "bbox": [
453
+ 89,
454
+ 55,
455
+ 922,
456
+ 367
457
+ ],
458
+ "page_idx": 5
459
+ },
460
+ {
461
+ "type": "image",
462
+ "img_path": "images/5ccae6749e137d0416087f4c58963296d56c298a10f759da2dc9134d5695095d.jpg",
463
+ "image_caption": [
464
+ "Fig. 3: Calibration Tool Examples. Images from left to right are the calibration interfaces for short-range, long-range, and fisheye cameras, respectively. Yellow dots are the projection of the vector map to the image plane. Non-English characters are not relevant to the core contents of the paper and can be ignored. Sensitive information is masked out during calibration and GT generation for safety concerns."
465
+ ],
466
+ "image_footnote": [],
467
+ "bbox": [
468
+ 79,
469
+ 378,
470
+ 920,
471
+ 481
472
+ ],
473
+ "page_idx": 5
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "3.2 Data Acquisition & GT Generation",
478
+ "text_level": 1,
479
+ "bbox": [
480
+ 75,
481
+ 591,
482
+ 576,
483
+ 611
484
+ ],
485
+ "page_idx": 5
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "Collection Once the sensors and vector map are accurately calibrated, we proceed to decode the camera streams and capture synchronized frames from the five cameras (2 long-range cameras, 2 short-range cameras, and 1 fisheye camera) at a rate of $10\\mathrm{Hz}$ . These frames, along with the current calibration parameters, are stored using ros bag. To ensure diversity, meticulous human efforts were invested in collecting over 1.94 million frames in total, encompassing the following aspects:",
490
+ "bbox": [
491
+ 72,
492
+ 617,
493
+ 922,
494
+ 752
495
+ ],
496
+ "page_idx": 5
497
+ },
498
+ {
499
+ "type": "list",
500
+ "sub_type": "text",
501
+ "list_items": [
502
+ "- Scenes. The dataset comprehensively covers nearly all highway scenes, including long straight roads, curved roads, interchanges, ramps, and more.",
503
+ "- Weather. The collected data encapsulates a wide spectrum of weather and time conditions, ranging from daytime and nighttime to varied atmospheric phenomena such as rainy, foggy, dusty, dawn, cloudy, etc.",
504
+ "- Traffic. Traffic conditions spans normal traffic flow, congested traffic flow, and instances of sparse traffic."
505
+ ],
506
+ "bbox": [
507
+ 89,
508
+ 765,
509
+ 917,
510
+ 900
511
+ ],
512
+ "page_idx": 5
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "Any invalid frames arising from network fluctuations are meticulously removed (all synchronized five frames are deleted if any one of them is deemed invalid) to uphold the high quality of the data.",
517
+ "bbox": [
518
+ 72,
519
+ 905,
520
+ 922,
521
+ 962
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "page_number",
527
+ "text": "6",
528
+ "bbox": [
529
+ 77,
530
+ 17,
531
+ 94,
532
+ 29
533
+ ],
534
+ "page_idx": 5
535
+ },
536
+ {
537
+ "type": "header",
538
+ "text": "L. Chang et al.",
539
+ "bbox": [
540
+ 157,
541
+ 14,
542
+ 309,
543
+ 30
544
+ ],
545
+ "page_idx": 5
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "GT Generation In the context of roadside infrastructure 3D perception, the ground truth is typically annotated on the LiDAR point cloud, as in [35, 36]. However, in highway scenarios, the mounting of LiDARs on masts is impractical due to high cost, maintenance, durability, sensing range issues. As a viable alternative, we propose a novel BEV ground truth generation pipeline tailored for the camera-only highway scenario, as illustrated in Fig. 4.",
550
+ "bbox": [
551
+ 72,
552
+ 55,
553
+ 920,
554
+ 173
555
+ ],
556
+ "page_idx": 6
557
+ },
558
+ {
559
+ "type": "image",
560
+ "img_path": "images/fc9da5e517edf277880e927ba6d9c32bd0790d6661c01c0fd6d12314915235a1.jpg",
561
+ "image_caption": [
562
+ "Fig. 4: Ground Truth Generation Pipeline."
563
+ ],
564
+ "image_footnote": [],
565
+ "bbox": [
566
+ 77,
567
+ 180,
568
+ 920,
569
+ 284
570
+ ],
571
+ "page_idx": 6
572
+ },
573
+ {
574
+ "type": "list",
575
+ "sub_type": "text",
576
+ "list_items": [
577
+ "- 2D Detection and Tracking. We chose the bounding box as the object representation and train a cloud foundation model using 122,445 annotated data. We incorporate semi-supervised learning to utilize more data, resulting in 370,000 frames in total, yielding a mean average precision of $0.95@IoU = 0.5$ , which provides solid results for subsequent modules. After obtaining the single frame object detection bounding box, a 2D multiple object tracking algorithm is added to smooth the bounding box size and provide a tracking ID for each object in the image plane.",
578
+ "- 2D to 3D Projection. Bboxes in the image plane are subsequently projected to the vector map coordinate system. Outliers resulting from false detections are filtered during projection by leveraging road boundary information from the vector map.",
579
+ "- Object Matching. For objects that travel across sensors, a minimum Euclidean distance Hungarian matching strategy is introduced to merge the same object observed by different cameras.",
580
+ "- Post Processing. An Extended Kalman Filter motion model for each object in BEV space to further smooth object trajectories. The tracking IDs for each object in BEV space are also generated in the post-processing module."
581
+ ],
582
+ "bbox": [
583
+ 89,
584
+ 328,
585
+ 920,
586
+ 678
587
+ ],
588
+ "page_idx": 6
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "Once the proposed GT generation pipeline is processed, human operators must further validate the data quality. They need to remove the samples that contain ghost trajectories (trajectories in the BEV space that do not match any object in the image frame) and trajectory breaks (trajectories that break abnormally or the same trajectory but tracking ID changes). Then, the remaining samples are labeled with four classes: sedan, van, bus, truck. These class labels are human-labeled during the 2D detection dataset construction phase, detected via 2D detectors, and passed through the pipeline. Velocity and heading angle are provided by radar observations. Finally, 17.56 million samples are generated.",
593
+ "bbox": [
594
+ 72,
595
+ 682,
596
+ 917,
597
+ 856
598
+ ],
599
+ "page_idx": 6
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "3.3 Statistics Analysis",
604
+ "text_level": 1,
605
+ "bbox": [
606
+ 75,
607
+ 865,
608
+ 368,
609
+ 884
610
+ ],
611
+ "page_idx": 6
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "In total, we provide over 1.9 million samples and 17.6 million objects, with detailed statistical plots depicted in Fig 5. Figure (a) illustrates the object distribution based on the distance from the mast. Figure (b) showcases the category",
616
+ "bbox": [
617
+ 72,
618
+ 889,
619
+ 917,
620
+ 949
621
+ ],
622
+ "page_idx": 6
623
+ },
624
+ {
625
+ "type": "header",
626
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
627
+ "bbox": [
628
+ 239,
629
+ 14,
630
+ 837,
631
+ 32
632
+ ],
633
+ "page_idx": 6
634
+ },
635
+ {
636
+ "type": "page_number",
637
+ "text": "7",
638
+ "bbox": [
639
+ 903,
640
+ 16,
641
+ 917,
642
+ 29
643
+ ],
644
+ "page_idx": 6
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "distribution, highlighting sedans and trucks as dominant categories. Figure (c) displays the velocity distribution, indicating that most vehicles travel at reasonably high speeds. Figure (d) presents the average velocity per category. Figure (e) exhibits the track length of vehicles, where tracks longer than 400 meters constitute $78.4\\%$ of the dataset. Lastly, Figure (f) illustrates the average track length for each category.",
649
+ "bbox": [
650
+ 72,
651
+ 55,
652
+ 920,
653
+ 170
654
+ ],
655
+ "page_idx": 7
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "In essence, these statistics reveal the distinctive data distribution characteristics of highway scenarios in H-V2X. The dataset differs significantly from urban scene data, underscoring its value in highway perception research.",
660
+ "bbox": [
661
+ 72,
662
+ 173,
663
+ 917,
664
+ 230
665
+ ],
666
+ "page_idx": 7
667
+ },
668
+ {
669
+ "type": "image",
670
+ "img_path": "images/cdf4762eb4f7c114d0c87b6802a9f9f1993cefa064a03718651df90c20544399.jpg",
671
+ "image_caption": [],
672
+ "image_footnote": [],
673
+ "bbox": [
674
+ 77,
675
+ 237,
676
+ 346,
677
+ 367
678
+ ],
679
+ "page_idx": 7
680
+ },
681
+ {
682
+ "type": "image",
683
+ "img_path": "images/c185056723e06f47db0d976ee3b033b19905d4ec353ad1b908e7a411c1cca051.jpg",
684
+ "image_caption": [],
685
+ "image_footnote": [],
686
+ "bbox": [
687
+ 365,
688
+ 237,
689
+ 636,
690
+ 369
691
+ ],
692
+ "page_idx": 7
693
+ },
694
+ {
695
+ "type": "image",
696
+ "img_path": "images/ebfe927372c408a0f60954827328e5bdc8b2371645a85327e69db5c80f5f9cd8.jpg",
697
+ "image_caption": [],
698
+ "image_footnote": [],
699
+ "bbox": [
700
+ 653,
701
+ 237,
702
+ 920,
703
+ 369
704
+ ],
705
+ "page_idx": 7
706
+ },
707
+ {
708
+ "type": "image",
709
+ "img_path": "images/ac643b824aabdbee91ded8c88bcd83eaa7ae19265371fd6cda3b39a9e0c5f2fb.jpg",
710
+ "image_caption": [
711
+ "Fig. 5: H-V2X Dataset Statistics Analysis."
712
+ ],
713
+ "image_footnote": [],
714
+ "bbox": [
715
+ 75,
716
+ 372,
717
+ 343,
718
+ 504
719
+ ],
720
+ "page_idx": 7
721
+ },
722
+ {
723
+ "type": "image",
724
+ "img_path": "images/dfbafaa42133b007159acec313ad25109b53088a10bcd615d13bbb04e2649479.jpg",
725
+ "image_caption": [],
726
+ "image_footnote": [],
727
+ "bbox": [
728
+ 365,
729
+ 372,
730
+ 631,
731
+ 504
732
+ ],
733
+ "page_idx": 7
734
+ },
735
+ {
736
+ "type": "image",
737
+ "img_path": "images/abc585ddc1f1981fdd2f79ef981010bed77a11637147cd12f58a71cbe0bf8592.jpg",
738
+ "image_caption": [],
739
+ "image_footnote": [],
740
+ "bbox": [
741
+ 653,
742
+ 370,
743
+ 920,
744
+ 504
745
+ ],
746
+ "page_idx": 7
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "4 Tasks",
751
+ "text_level": 1,
752
+ "bbox": [
753
+ 75,
754
+ 554,
755
+ 210,
756
+ 573
757
+ ],
758
+ "page_idx": 7
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "4.1 Task 1: BEV Detection (H-V2X-Det)",
763
+ "text_level": 1,
764
+ "bbox": [
765
+ 75,
766
+ 600,
767
+ 595,
768
+ 619
769
+ ],
770
+ "page_idx": 7
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "Task Description In a manner akin to the task definition in autonomous driving BEV perception [13], BEV detection in the H-V2X dataset aims to pinpoint objects in BEV space by extracting positions, angles, and velocities from images. However, this task exhibits distinctive characteristics as outlined below:",
775
+ "bbox": [
776
+ 72,
777
+ 635,
778
+ 917,
779
+ 712
780
+ ],
781
+ "page_idx": 7
782
+ },
783
+ {
784
+ "type": "list",
785
+ "sub_type": "text",
786
+ "list_items": [
787
+ "- Extended detection range: The coverage typically spans approximately $\\pm 500$ meters around the local principal point, significantly surpassing the detection range in traditional autonomous driving tasks (e.g., $\\pm 60\\mathrm{m}$ in [13], $\\pm 75\\mathrm{m}$ in [19]). Consequently, this task introduces challenges related to long-range detection in BEV settings, thereby influencing the design and integration of grid maps within the BEV algorithm.",
788
+ "- Diverse camera types: In highway scenarios, where comprehensive sensor coverage and an expanded field of view are imperative, various camera types are deployed, including long-focus, short-focus, and especially fisheye cameras.",
789
+ "- Integration of HDMap: The High-Definition Map (HDMap) serves as a critical input for the task, with lanes and boundaries depicted as line dots accompanied by appropriate labels, further enhancing the contextual information available for analysis."
790
+ ],
791
+ "bbox": [
792
+ 72,
793
+ 713,
794
+ 917,
795
+ 967
796
+ ],
797
+ "page_idx": 7
798
+ },
799
+ {
800
+ "type": "page_number",
801
+ "text": "8",
802
+ "bbox": [
803
+ 77,
804
+ 16,
805
+ 94,
806
+ 30
807
+ ],
808
+ "page_idx": 7
809
+ },
810
+ {
811
+ "type": "header",
812
+ "text": "L. Chang et al.",
813
+ "bbox": [
814
+ 157,
815
+ 14,
816
+ 309,
817
+ 32
818
+ ],
819
+ "page_idx": 7
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Formulation Given multiple sensor inputs at each timestamp $t$ , BEV detection tries to find a fitting neural net $F$ which calculates the 3D information of objects in all image views, forming a ten-tuple:",
824
+ "bbox": [
825
+ 75,
826
+ 55,
827
+ 920,
828
+ 113
829
+ ],
830
+ "page_idx": 8
831
+ },
832
+ {
833
+ "type": "equation",
834
+ "text": "\n$$\n(c l s, c o n f, x, y, z, w, l, h, y a w, c o l o r) = F \\left(\\left(I _ {0}, I _ {1}, I _ {2}, I _ {3}, I _ {4}\\right), M\\right), \\tag {1}\n$$\n",
835
+ "text_format": "latex",
836
+ "bbox": [
837
+ 171,
838
+ 118,
839
+ 917,
840
+ 139
841
+ ],
842
+ "page_idx": 8
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "where:",
847
+ "bbox": [
848
+ 111,
849
+ 139,
850
+ 186,
851
+ 154
852
+ ],
853
+ "page_idx": 8
854
+ },
855
+ {
856
+ "type": "list",
857
+ "sub_type": "text",
858
+ "list_items": [
859
+ "- $I_{i}$ represents each image of the five cameras in JPEG BGR format. Resolutions of long-range and short-range camera images are 1920x1080x3 and 1080x1080x3 for fisheye cameras.",
860
+ "- $M$ represents the HDMap, which provides static road information by lines of 3D points.",
861
+ "- $cls$ , $conf$ represent class label, confidence respectively.",
862
+ "- $x, y, z, w, l, h$ represent 3D location in BEV space.",
863
+ "- yaw represents the heading angle of the object, defined by moving direction.",
864
+ "- color represents the object's color if the object belongs to the vehicle class."
865
+ ],
866
+ "bbox": [
867
+ 75,
868
+ 157,
869
+ 917,
870
+ 331
871
+ ],
872
+ "page_idx": 8
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Evaluation & Metrics We choose AP and FPS as BEV detection metrics.",
877
+ "bbox": [
878
+ 75,
879
+ 334,
880
+ 891,
881
+ 352
882
+ ],
883
+ "page_idx": 8
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Average Precision (AP). We choose 40 recall positions to eval detection performance, i.e., $\\mathrm{AP}|_{R40}$ :",
888
+ "bbox": [
889
+ 75,
890
+ 354,
891
+ 917,
892
+ 393
893
+ ],
894
+ "page_idx": 8
895
+ },
896
+ {
897
+ "type": "equation",
898
+ "text": "\n$$\n\\left. A P \\right| _ {R 4 0} = \\frac {1}{| R |} \\sum_ {r \\in R} \\max _ {\\tilde {r}: \\tilde {r} \\geq r} \\rho (\\tilde {r}) \\tag {2}\n$$\n",
899
+ "text_format": "latex",
900
+ "bbox": [
901
+ 346,
902
+ 393,
903
+ 917,
904
+ 437
905
+ ],
906
+ "page_idx": 8
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "where $\\rho (\\tilde{r})$ is the precision at a certain recall threshold $\\mathbf{r}\\in \\{1 / 40,2 / 40,3 / 40,\\dots,1\\}$",
911
+ "bbox": [
912
+ 111,
913
+ 439,
914
+ 953,
915
+ 458
916
+ ],
917
+ "page_idx": 8
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Frame Per Second(FPS). We use the FPS metric to measure the real-time performance of the neural net, i.e., $FPS = \\frac{1}{t(s)}$ , where $t(s)$ is the cost time required to detect a single frame input given by specific GFLOPS.",
922
+ "bbox": [
923
+ 75,
924
+ 458,
925
+ 920,
926
+ 518
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "4.2 Task 2:OneID MOT (H-V2X-Trk)",
933
+ "text_level": 1,
934
+ "bbox": [
935
+ 75,
936
+ 531,
937
+ 566,
938
+ 552
939
+ ],
940
+ "page_idx": 8
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Task Description The MOT task is centered around establishing and maintaining a unique ID for each relevant traffic participant. There are two primary paradigms in MOT based on whether detection is performed separately:",
945
+ "bbox": [
946
+ 75,
947
+ 556,
948
+ 917,
949
+ 614
950
+ ],
951
+ "page_idx": 8
952
+ },
953
+ {
954
+ "type": "list",
955
+ "sub_type": "text",
956
+ "list_items": [
957
+ "- Tracking-by-detection: This method follows a two-stage process. Initially, a detection algorithm locates objects in each frame. Subsequently, a tracking algorithm utilizes the detection results from consecutive frames to associate new objects with historical trajectories, determining optimal matches and assigning correct IDs to newly detected objects.",
958
+ "- Joint detection and tracking: In this integrated approach, detection and tracking occur simultaneously through an end-to-end algorithm, often a specialized deep neural network. This network not only learns detection features but also captures embedding or re-identification (reid) features to differentiate between individual objects. Consequently, the network can simultaneously determine object positions and IDs during each inference step on successive image pairs."
959
+ ],
960
+ "bbox": [
961
+ 72,
962
+ 616,
963
+ 917,
964
+ 847
965
+ ],
966
+ "page_idx": 8
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Formulation The input consists of sequential images, while the output encompasses comprehensive 3D object details, including position and attributes, with a unique ID assigned to each object. The trajectory of each object can be extracted and represented as $S = \\{o_1,o_2,o_3,\\dots,o_T\\}$ , where $T$ denotes the time-frame. Subsequent applications can benefit from velocity estimation, orientation optimization, and post-processing techniques based on historical trajectories.",
971
+ "bbox": [
972
+ 72,
973
+ 850,
974
+ 917,
975
+ 967
976
+ ],
977
+ "page_idx": 8
978
+ },
979
+ {
980
+ "type": "header",
981
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
982
+ "bbox": [
983
+ 239,
984
+ 14,
985
+ 837,
986
+ 34
987
+ ],
988
+ "page_idx": 8
989
+ },
990
+ {
991
+ "type": "page_number",
992
+ "text": "9",
993
+ "bbox": [
994
+ 900,
995
+ 16,
996
+ 917,
997
+ 30
998
+ ],
999
+ "page_idx": 8
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Evaluation & Metrics In line with the recent trend [4,25,38], we adopt widely accepted evaluation metrics MOTA (Multiple Object Tracking Accuracy) and MOTP (Multiple Object Tracking Precision) to evaluate the performance of tracking methods. The definitions are as follows:",
1004
+ "bbox": [
1005
+ 77,
1006
+ 53,
1007
+ 917,
1008
+ 131
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "equation",
1014
+ "text": "\n$$\nM O T A = 1 - \\frac {\\sum_ {t} \\left(F N _ {t} + F P _ {t} + I D S _ {t}\\right)}{\\sum_ {t} G T _ {t}}, \\tag {3}\n$$\n",
1015
+ "text_format": "latex",
1016
+ "bbox": [
1017
+ 288,
1018
+ 136,
1019
+ 912,
1020
+ 175
1021
+ ],
1022
+ "page_idx": 9
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "where:",
1027
+ "bbox": [
1028
+ 116,
1029
+ 172,
1030
+ 184,
1031
+ 186
1032
+ ],
1033
+ "page_idx": 9
1034
+ },
1035
+ {
1036
+ "type": "list",
1037
+ "sub_type": "text",
1038
+ "list_items": [
1039
+ "- $FN_{t}$ represents the number of false negatives at the time (t),",
1040
+ "- $FP_{t}$ represents the number of false positives at the time (t),",
1041
+ "- $IDS_{t}$ represents the number of identity switches (mismatches in object associations) at the time (t),",
1042
+ "- $GT_{t}$ represents the number of ground truth objects at a time (t)."
1043
+ ],
1044
+ "bbox": [
1045
+ 75,
1046
+ 191,
1047
+ 915,
1048
+ 287
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "equation",
1054
+ "text": "\n$$\nM O T P = \\frac {\\sum_ {i , j} d _ {i j}}{\\sum_ {i} C _ {i}}, \\tag {4}\n$$\n",
1055
+ "text_format": "latex",
1056
+ "bbox": [
1057
+ 394,
1058
+ 289,
1059
+ 912,
1060
+ 334
1061
+ ],
1062
+ "page_idx": 9
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "where:",
1067
+ "bbox": [
1068
+ 116,
1069
+ 328,
1070
+ 184,
1071
+ 344
1072
+ ],
1073
+ "page_idx": 9
1074
+ },
1075
+ {
1076
+ "type": "list",
1077
+ "sub_type": "text",
1078
+ "list_items": [
1079
+ "- $d_{ij}$ represents the Euclidean distance between the center of the predicted bounding box and the center of the corresponding ground truth bounding box for object $i$ at frame $j$ ,",
1080
+ "- $C_i$ represents the number of correct associations for object $i$ ."
1081
+ ],
1082
+ "bbox": [
1083
+ 77,
1084
+ 347,
1085
+ 917,
1086
+ 424
1087
+ ],
1088
+ "page_idx": 9
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "In addition, we employ IDS (ID Switch) as a standalone metric to assess the tracking algorithm's proficiency in preserving target identity consistency. The IDS metric is calculated by dividing the total number of ID switches by the overall count of ground-truth objects.",
1093
+ "bbox": [
1094
+ 77,
1095
+ 426,
1096
+ 917,
1097
+ 502
1098
+ ],
1099
+ "page_idx": 9
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "4.3 Task 3: Trajectory Prediction (H-V2X-Prediction)",
1104
+ "text_level": 1,
1105
+ "bbox": [
1106
+ 79,
1107
+ 510,
1108
+ 753,
1109
+ 530
1110
+ ],
1111
+ "page_idx": 9
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Task Description The trajectory prediction task aims to predict the continuous trajectories of objects over a future period based on the observed history trajectories.",
1116
+ "bbox": [
1117
+ 79,
1118
+ 534,
1119
+ 917,
1120
+ 593
1121
+ ],
1122
+ "page_idx": 9
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Formulation Given the history trajectory of one object, the trajectory prediction task tries to find the optimal future trajectory of the object by modeling a sequential forecasting net $F$ :",
1127
+ "bbox": [
1128
+ 79,
1129
+ 600,
1130
+ 917,
1131
+ 658
1132
+ ],
1133
+ "page_idx": 9
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "where:",
1138
+ "bbox": [
1139
+ 116,
1140
+ 676,
1141
+ 184,
1142
+ 692
1143
+ ],
1144
+ "page_idx": 9
1145
+ },
1146
+ {
1147
+ "type": "equation",
1148
+ "text": "\n$$\np _ {t + 1}, p _ {t + 2}, p _ {t + 3}, \\dots , p _ {t + T} = F \\left(p _ {1}, p _ {2}, p _ {3}, \\dots , p _ {t}, M\\right) \\tag {5}\n$$\n",
1149
+ "text_format": "latex",
1150
+ "bbox": [
1151
+ 244,
1152
+ 666,
1153
+ 912,
1154
+ 684
1155
+ ],
1156
+ "page_idx": 9
1157
+ },
1158
+ {
1159
+ "type": "list",
1160
+ "sub_type": "text",
1161
+ "list_items": [
1162
+ "- $p_t$ denotes the state of the object at timestamp $t$ , $T$ represents the number of timestamps to predict, $M$ denotes HDMap, same as task 1.",
1163
+ "- The state of the object is defined by the output of task 2, i.e., 3D information with tracking ID."
1164
+ ],
1165
+ "bbox": [
1166
+ 77,
1167
+ 697,
1168
+ 917,
1169
+ 773
1170
+ ],
1171
+ "page_idx": 9
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Evaluation & Metrics We choose Average Displacement Error (ADE) and Final Displacement Error (FDE) as trajectory prediction metrics.",
1176
+ "bbox": [
1177
+ 79,
1178
+ 780,
1179
+ 917,
1180
+ 819
1181
+ ],
1182
+ "page_idx": 9
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "ADE. Measuring the average error between the prediction position and the actual position. Defined as:",
1187
+ "bbox": [
1188
+ 79,
1189
+ 821,
1190
+ 917,
1191
+ 858
1192
+ ],
1193
+ "page_idx": 9
1194
+ },
1195
+ {
1196
+ "type": "equation",
1197
+ "text": "\n$$\nA D E = \\sum 1 / n \\sqrt {\\left(x _ {p _ {i}} - x _ {g _ {i}}\\right) ^ {2} + \\left(y _ {p _ {i}} - y _ {g _ {i}}\\right) ^ {2}} \\tag {6}\n$$\n",
1198
+ "text_format": "latex",
1199
+ "bbox": [
1200
+ 261,
1201
+ 865,
1202
+ 912,
1203
+ 895
1204
+ ],
1205
+ "page_idx": 9
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "FDE. Measuring the final error between the prediction final position and the actual final position. Defined as:",
1210
+ "bbox": [
1211
+ 79,
1212
+ 908,
1213
+ 917,
1214
+ 947
1215
+ ],
1216
+ "page_idx": 9
1217
+ },
1218
+ {
1219
+ "type": "page_number",
1220
+ "text": "10",
1221
+ "bbox": [
1222
+ 79,
1223
+ 16,
1224
+ 104,
1225
+ 29
1226
+ ],
1227
+ "page_idx": 9
1228
+ },
1229
+ {
1230
+ "type": "header",
1231
+ "text": "L. Chang et al.",
1232
+ "bbox": [
1233
+ 157,
1234
+ 14,
1235
+ 309,
1236
+ 32
1237
+ ],
1238
+ "page_idx": 9
1239
+ },
1240
+ {
1241
+ "type": "equation",
1242
+ "text": "\n$$\nF D E = \\sqrt {\\left(x _ {p _ {f}} - x _ {g _ {f}}\\right) ^ {2} + \\left(y _ {p _ {f}} - y _ {g _ {f}}\\right) ^ {2}} \\tag {7}\n$$\n",
1243
+ "text_format": "latex",
1244
+ "bbox": [
1245
+ 285,
1246
+ 86,
1247
+ 917,
1248
+ 118
1249
+ ],
1250
+ "page_idx": 10
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "where $n$ the prediction sequence length, $(x_{p_i}, y_{p_i})$ , $(x_{g_i}, y_{g_i})$ is the object prediction position and actual position at time $i$ . $(x_{p_f}, y_{p_f})$ , $(x_{g_f}, y_{g_f})$ is the object prediction final position and actual final position.",
1255
+ "bbox": [
1256
+ 72,
1257
+ 121,
1258
+ 917,
1259
+ 180
1260
+ ],
1261
+ "page_idx": 10
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "5 Benchmarks",
1266
+ "text_level": 1,
1267
+ "bbox": [
1268
+ 75,
1269
+ 209,
1270
+ 305,
1271
+ 229
1272
+ ],
1273
+ "page_idx": 10
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "5.1 Track1: BEV Detection",
1278
+ "text_level": 1,
1279
+ "bbox": [
1280
+ 75,
1281
+ 248,
1282
+ 430,
1283
+ 266
1284
+ ],
1285
+ "page_idx": 10
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Baselines We propose two baseline methods for BEV detection: late and early fusion. Both use 8:1:1 train/validation/test split.",
1290
+ "bbox": [
1291
+ 72,
1292
+ 279,
1293
+ 917,
1294
+ 318
1295
+ ],
1296
+ "page_idx": 10
1297
+ },
1298
+ {
1299
+ "type": "list",
1300
+ "sub_type": "text",
1301
+ "list_items": [
1302
+ "- **Baseline1 Late Fusion.** Late fusion follows the same pipeline as GT generation in section 3.2. However, due to limited computing resources on the 32TOPS NVIDIA Xavier, it uses a lightweight YOLOs [9] detection model instead of a cloud-side foundation model.",
1303
+ "- **Baseline2 Early Fusion.** We propose H-BEV (Highway BEV) model, a BEV detection neural net incorporating fisheye camera and vector map. The model is built on BEVDet [13], learns depth distribution and constructs frustum point cloud, illustrated in Fig. 6. To create the projection coordinates of each camera's pixel points in the BEV perspective, we used 3D lane information for interpolation. We generated the frustum point cloud for each camera through a table lookup and added a attribute branch to predict vehicle attribute information."
1304
+ ],
1305
+ "bbox": [
1306
+ 89,
1307
+ 320,
1308
+ 920,
1309
+ 551
1310
+ ],
1311
+ "page_idx": 10
1312
+ },
1313
+ {
1314
+ "type": "image",
1315
+ "img_path": "images/4a053af5f524b821cd550f9182671c1e37a35954e7049084861b4648ae2eaf01.jpg",
1316
+ "image_caption": [
1317
+ "Fig. 6: H-BEV Model Architecture."
1318
+ ],
1319
+ "image_footnote": [],
1320
+ "bbox": [
1321
+ 77,
1322
+ 557,
1323
+ 917,
1324
+ 715
1325
+ ],
1326
+ "page_idx": 10
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "Analysis",
1331
+ "text_level": 1,
1332
+ "bbox": [
1333
+ 77,
1334
+ 743,
1335
+ 186,
1336
+ 762
1337
+ ],
1338
+ "page_idx": 10
1339
+ },
1340
+ {
1341
+ "type": "list",
1342
+ "sub_type": "text",
1343
+ "list_items": [
1344
+ "- Late Fusion vs Early Fusion. Early fusion outperforms Late Fusion in terms of detection performance, but Late Fusion requires less time. Late Fusion is more sensitive to calibration parameters and performs poorly in detecting truncated and occluded objects, whereas early fusion is more robust.",
1345
+ "- HMap information is important. H-BEV streamlines the projection process for fisheye and pinhole cameras by incorporating HMap data. Unlike BevDet [13], H-BEV eliminates the need to learn a multitude of discrete depth values for each image pixel. Instead, it derives a single depth value"
1346
+ ],
1347
+ "bbox": [
1348
+ 89,
1349
+ 773,
1350
+ 920,
1351
+ 949
1352
+ ],
1353
+ "page_idx": 10
1354
+ },
1355
+ {
1356
+ "type": "header",
1357
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
1358
+ "bbox": [
1359
+ 239,
1360
+ 14,
1361
+ 837,
1362
+ 34
1363
+ ],
1364
+ "page_idx": 10
1365
+ },
1366
+ {
1367
+ "type": "page_number",
1368
+ "text": "11",
1369
+ "bbox": [
1370
+ 891,
1371
+ 16,
1372
+ 915,
1373
+ 30
1374
+ ],
1375
+ "page_idx": 10
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "from HDMap information, resulting in a drastic reduction in the image feature map size by 500 times. This optimization significantly boosts the speed and efficiency of the early fusion model.",
1380
+ "bbox": [
1381
+ 113,
1382
+ 55,
1383
+ 920,
1384
+ 115
1385
+ ],
1386
+ "page_idx": 11
1387
+ },
1388
+ {
1389
+ "type": "table",
1390
+ "img_path": "images/7736684224886e5e4e1bd41d7bfb74506a8af919b91a6ecf2749c4dd0bfaf723.jpg",
1391
+ "table_caption": [
1392
+ "Table 3: Evaluation results for the baseline methods. The H-BEV model is converted to TensorRT engine. The resolution of all image inputs is resized to $720 \\times 1280$ ."
1393
+ ],
1394
+ "table_footnote": [],
1395
+ "table_body": "<table><tr><td>Method</td><td>Backbone</td><td>mAP3D|R40↑</td><td>mAPbev|R40↑</td><td>FPS↑</td></tr><tr><td>Late Fusion</td><td>-</td><td>31.75</td><td>33.24</td><td>10</td></tr><tr><td>Early Fusion (H-BEV)</td><td>ResNet-18</td><td>35.49</td><td>38.40</td><td>6</td></tr></table>",
1396
+ "bbox": [
1397
+ 130,
1398
+ 162,
1399
+ 874,
1400
+ 255
1401
+ ],
1402
+ "page_idx": 11
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "5.2 Track2: One-ID MOT",
1407
+ "text_level": 1,
1408
+ "bbox": [
1409
+ 75,
1410
+ 274,
1411
+ 409,
1412
+ 292
1413
+ ],
1414
+ "page_idx": 11
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "Baseline In this section, we present a tracking-by-detection MOT algorithm as the baseline approach. We utilize BEV detection results from multiple cameras to trace the trajectory of each object within the perception region, illustrated in Fig. 7. We adapt a variant of the SORT algorithm [1] to establish associations between objects across successive frames. This leads to the assignment of consistent IDs to individual objects, resulting in continuous object trajectories.",
1419
+ "bbox": [
1420
+ 72,
1421
+ 295,
1422
+ 920,
1423
+ 413
1424
+ ],
1425
+ "page_idx": 11
1426
+ },
1427
+ {
1428
+ "type": "image",
1429
+ "img_path": "images/6129ebc04b6f5be1f7f37c44b184b70ef2eab830e43624f88965426b65e8d1aa.jpg",
1430
+ "image_caption": [
1431
+ "Fig. 7: One-ID MOT Framework: a baseline tracking-by-detection procedure"
1432
+ ],
1433
+ "image_footnote": [],
1434
+ "bbox": [
1435
+ 164,
1436
+ 424,
1437
+ 837,
1438
+ 637
1439
+ ],
1440
+ "page_idx": 11
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "Each detected traffic object at time $t - 1$ is denoted as $o_{t - 1}^i$ , where $i$ represents the object index. The set of objects in frame $t - 1$ is represented as $I_{t - 1}$ , with $o_{t - 1}^i \\in I_{t - 1}$ . At each timestamp $t$ , the primary objective of the tracking process is to link the objects from the previous frame $(I_{t - 1})$ and the current frame $(I_t)$ , assigning accurate IDs to new detections. To achieve this, we compute similarities between objects in $I_{t - 1}$ and $I_t$ based on their feature descriptors, facilitating the establishment of continuous object trajectories through optimal matches.",
1445
+ "bbox": [
1446
+ 72,
1447
+ 676,
1448
+ 917,
1449
+ 811
1450
+ ],
1451
+ "page_idx": 11
1452
+ },
1453
+ {
1454
+ "type": "text",
1455
+ "text": "For the baseline implementation, we adopt the 3D position as the object descriptor, measuring object similarities using Euclidean distances between 3D points. Object matching between frames is accomplished using the Hungarian algorithm. Given the fast movement of most highway objects, an effective motion estimation technique is essential to compensate for positional changes between consecutive frames. Here, we employ the Kalman filter algorithm, utilizing the local coordinates $(x,y,z)$ of 3D points as measurements and incorporating",
1456
+ "bbox": [
1457
+ 72,
1458
+ 811,
1459
+ 920,
1460
+ 949
1461
+ ],
1462
+ "page_idx": 11
1463
+ },
1464
+ {
1465
+ "type": "page_number",
1466
+ "text": "12",
1467
+ "bbox": [
1468
+ 79,
1469
+ 16,
1470
+ 104,
1471
+ 30
1472
+ ],
1473
+ "page_idx": 11
1474
+ },
1475
+ {
1476
+ "type": "header",
1477
+ "text": "L. Chang et al.",
1478
+ "bbox": [
1479
+ 157,
1480
+ 14,
1481
+ 309,
1482
+ 32
1483
+ ],
1484
+ "page_idx": 11
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "first-order differences (velocity components $(vx,vy,vz)$ ) into the state transition matrix.",
1489
+ "bbox": [
1490
+ 72,
1491
+ 56,
1492
+ 920,
1493
+ 92
1494
+ ],
1495
+ "page_idx": 12
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Analysis The evaluation results of the baseline MOT method can be found in Table 4. In highway environments, conducting multi-object tracking on 3D points presents various challenges such as high-speed motion, occlusions, missing or false detections, positional ambiguity among nearby objects, and more. Common features in highway scenes like overpasses and oversized vehicles often lead to scenarios where smaller cars remain completely occluded for extended periods. Addressing these complexities requires the integration of effective prediction strategies and motion constraints. Additionally, when multiple vehicles are in close proximity and moving concurrently, relying solely on simple Euclidean distance matching between points can result in confusion and inaccuracies.",
1500
+ "bbox": [
1501
+ 72,
1502
+ 95,
1503
+ 920,
1504
+ 292
1505
+ ],
1506
+ "page_idx": 12
1507
+ },
1508
+ {
1509
+ "type": "table",
1510
+ "img_path": "images/d403d6f8f2d7ddf13274399256eded959d91705472d636eaf2952e3ffc5bc420.jpg",
1511
+ "table_caption": [
1512
+ "Table 4: Evaluation results for One-ID MOT algorithm."
1513
+ ],
1514
+ "table_footnote": [],
1515
+ "table_body": "<table><tr><td>Metrics</td><td>MOTA↑</td><td>MOTP↑</td><td>IDS↓</td></tr><tr><td>Baseline</td><td>0.85</td><td>0.95</td><td>0.05</td></tr></table>",
1516
+ "bbox": [
1517
+ 292,
1518
+ 321,
1519
+ 704,
1520
+ 375
1521
+ ],
1522
+ "page_idx": 12
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "5.3 Track3: Trajectory Prediction",
1527
+ "text_level": 1,
1528
+ "bbox": [
1529
+ 75,
1530
+ 395,
1531
+ 508,
1532
+ 414
1533
+ ],
1534
+ "page_idx": 12
1535
+ },
1536
+ {
1537
+ "type": "text",
1538
+ "text": "Baselines We first build trajectory prediction models based on SocialGAN [10] and further propose an HD-GAN network by incorporating HDMap.",
1539
+ "bbox": [
1540
+ 72,
1541
+ 427,
1542
+ 917,
1543
+ 469
1544
+ ],
1545
+ "page_idx": 12
1546
+ },
1547
+ {
1548
+ "type": "list",
1549
+ "sub_type": "text",
1550
+ "list_items": [
1551
+ "- Basline1 Vanilla SocialGAN: During training, we augment trajectory data by adding random noise to observed positions (0.5 prob. for $[-2\\mathrm{m}, 2\\mathrm{m}]$ ) and applying Gaussian noise to observed directions $[-0.785\\mathrm{rad}, 0.785\\mathrm{rad}]$ . We train the model for 500000 iterations, leaving other settings unchanged.",
1552
+ "- **Baseline2 HD-GAN:** We propose HD-GAN, a network that uses global map information to extract the global positional feature of an object. The HDMap Layer takes in lane information and calculates the object's global position via interpolation, normalizing it to [0,1] in the HDMap Normalization Layer. The HDMap Encoder Layer encodes the object's global map positional features, which are then combined with the local positional features of the observed trajectory. The generator and discriminator network remain unchanged, and the training strategy is the same as baseline 1."
1553
+ ],
1554
+ "bbox": [
1555
+ 89,
1556
+ 484,
1557
+ 920,
1558
+ 721
1559
+ ],
1560
+ "page_idx": 12
1561
+ },
1562
+ {
1563
+ "type": "image",
1564
+ "img_path": "images/377b351adaa85d07a2a0d441b38dbc454a0450b855e3c61355033f450e622018.jpg",
1565
+ "image_caption": [
1566
+ "Fig. 8: HD-GAN Model Architecture."
1567
+ ],
1568
+ "image_footnote": [],
1569
+ "bbox": [
1570
+ 162,
1571
+ 741,
1572
+ 835,
1573
+ 920
1574
+ ],
1575
+ "page_idx": 12
1576
+ },
1577
+ {
1578
+ "type": "header",
1579
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
1580
+ "bbox": [
1581
+ 239,
1582
+ 14,
1583
+ 837,
1584
+ 34
1585
+ ],
1586
+ "page_idx": 12
1587
+ },
1588
+ {
1589
+ "type": "page_number",
1590
+ "text": "13",
1591
+ "bbox": [
1592
+ 891,
1593
+ 16,
1594
+ 917,
1595
+ 30
1596
+ ],
1597
+ "page_idx": 12
1598
+ },
1599
+ {
1600
+ "type": "text",
1601
+ "text": "Analysis",
1602
+ "text_level": 1,
1603
+ "bbox": [
1604
+ 77,
1605
+ 56,
1606
+ 184,
1607
+ 74
1608
+ ],
1609
+ "page_idx": 13
1610
+ },
1611
+ {
1612
+ "type": "list",
1613
+ "sub_type": "text",
1614
+ "list_items": [
1615
+ "- Global Map Information is useful. In comparison to the re-implemented vanilla SocialGAN, HD-GAN demonstrates superior performance with lower ADE and FDE metrics. These results indicate that as the prediction horizon extends, the utilization of global map information becomes increasingly valuable. Additionally, as illustrated in Fig. 9 (a) vs (b), the vanilla SocialGAN struggles to generate predictions aligned with the road map under identical observations. These findings underscore the efficacy of incorporating global map data in HD-GAN for enhancing trajectory prediction accuracy.",
1616
+ "- Benefits of Data Augmentation. As depicted in Fig. 9 (c) vs (d), the absence of data augmentation leads to increased prediction errors when the observed trajectory exhibits jitter. Conversely, models employing our data augmentation techniques showcase enhanced resilience to observed trajectory variations, as evidenced by their improved anti-interference capabilities compared to models without such augmentation methods."
1617
+ ],
1618
+ "bbox": [
1619
+ 87,
1620
+ 82,
1621
+ 920,
1622
+ 354
1623
+ ],
1624
+ "page_idx": 13
1625
+ },
1626
+ {
1627
+ "type": "table",
1628
+ "img_path": "images/2217d1c2e59e332d75b967f676d02df7e30cd296c11b5bbb83a3b67f5392b62c.jpg",
1629
+ "table_caption": [
1630
+ "Table 5: Evaluation results for different baselines on val dataset. The metrics respectively means the predicted trajectory lengths is 1s-5s."
1631
+ ],
1632
+ "table_footnote": [],
1633
+ "table_body": "<table><tr><td>Method</td><td>ADE↓</td><td>FDE↓</td></tr><tr><td>Vanilla SocialGAN [10]</td><td>0.432 / 0.894 / 1.430 / 2.018 / 2.683</td><td>0.830 / 1.849 / 3.031 / 4.382 / 5.833</td></tr><tr><td>HD-GAN</td><td>0.427 / 0.843 / 1.291 / 1.847 / 2.457</td><td>0.827 / 1.696 / 2.657 / 3.879 / 5.188</td></tr></table>",
1634
+ "bbox": [
1635
+ 87,
1636
+ 421,
1637
+ 915,
1638
+ 499
1639
+ ],
1640
+ "page_idx": 13
1641
+ },
1642
+ {
1643
+ "type": "image",
1644
+ "img_path": "images/f1bca5de05a7d4405aaad80899ef6425352adb8ceebd63782e2741fbf1866ab7.jpg",
1645
+ "image_caption": [
1646
+ "Fig. 9: Trajectory prediction results with and without global map information (a, b), with and without data augmentation (c, d). The blue points are the observed trajectory inputs and the red points are the prediction trajectory outputs."
1647
+ ],
1648
+ "image_footnote": [],
1649
+ "bbox": [
1650
+ 79,
1651
+ 518,
1652
+ 246,
1653
+ 613
1654
+ ],
1655
+ "page_idx": 13
1656
+ },
1657
+ {
1658
+ "type": "image",
1659
+ "img_path": "images/89d6673293294b0651004350c14459775c412c67ac4c751c2bc1fd6af5843433.jpg",
1660
+ "image_caption": [],
1661
+ "image_footnote": [],
1662
+ "bbox": [
1663
+ 259,
1664
+ 518,
1665
+ 435,
1666
+ 611
1667
+ ],
1668
+ "page_idx": 13
1669
+ },
1670
+ {
1671
+ "type": "image",
1672
+ "img_path": "images/bb77148c4e9c569bacfc2d1376fcf48ffbca420e5b88dedac86e584bbf479e94.jpg",
1673
+ "image_caption": [],
1674
+ "image_footnote": [],
1675
+ "bbox": [
1676
+ 464,
1677
+ 521,
1678
+ 917,
1679
+ 611
1680
+ ],
1681
+ "page_idx": 13
1682
+ },
1683
+ {
1684
+ "type": "text",
1685
+ "text": "6 Conclusion",
1686
+ "text_level": 1,
1687
+ "bbox": [
1688
+ 75,
1689
+ 697,
1690
+ 285,
1691
+ 718
1692
+ ],
1693
+ "page_idx": 13
1694
+ },
1695
+ {
1696
+ "type": "text",
1697
+ "text": "This paper introduces the H-V2X dataset, the first large-scale highway dataset captured by real-world sensors. H-V2X offers synchronized data from multiple sensors with ground truth annotations, accompanied by a vector map, enabling end-to-end highway BEV perception. The tasks of BEV detection, One-ID MOT, and trajectory prediction are outlined, alongside benchmark methodologies for each task. Novel approaches to highway BEV detection and trajectory prediction, integrating the vector map, are proposed and evaluated through both quantitative and qualitative experiments to validate their efficacy. In our upcoming work, we aim to release a highway traffic event task focusing on rare occurrences such as illegal parking, emergency stops, accidents, and more, which will be systematically collected and annotated.",
1698
+ "bbox": [
1699
+ 72,
1700
+ 734,
1701
+ 917,
1702
+ 947
1703
+ ],
1704
+ "page_idx": 13
1705
+ },
1706
+ {
1707
+ "type": "page_number",
1708
+ "text": "14",
1709
+ "bbox": [
1710
+ 79,
1711
+ 16,
1712
+ 104,
1713
+ 30
1714
+ ],
1715
+ "page_idx": 13
1716
+ },
1717
+ {
1718
+ "type": "header",
1719
+ "text": "L. Chang et al.",
1720
+ "bbox": [
1721
+ 157,
1722
+ 14,
1723
+ 309,
1724
+ 32
1725
+ ],
1726
+ "page_idx": 13
1727
+ },
1728
+ {
1729
+ "type": "text",
1730
+ "text": "References",
1731
+ "text_level": 1,
1732
+ "bbox": [
1733
+ 77,
1734
+ 53,
1735
+ 237,
1736
+ 74
1737
+ ],
1738
+ "page_idx": 14
1739
+ },
1740
+ {
1741
+ "type": "list",
1742
+ "sub_type": "ref_text",
1743
+ "list_items": [
1744
+ "1. Bewley, A., Ge, Z., Ott, L., Ramos, F., Upcroft, B.: Simple online and realtime tracking. In: 2016 IEEE international conference on image processing (ICIP). pp. 3464-3468. IEEE (2016)",
1745
+ "2. Brazil, G., Liu, X.: M3d-rpn: Monocular 3d region proposal network for object detection. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 9287-9296 (2019)",
1746
+ "3. Brazil, G., Pons-Moll, G., Liu, X., Schiele, B.: Kinematic 3d object detection in monocular video. In: Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXIII 16. pp. 135-152. Springer (2020)",
1747
+ "4. Caesar, H., Bankiti, V., Lang, A.H., Vora, S., Liong, V.E., Xu, Q., Krishnan, A., Pan, Y., Baldan, G., Beijbom, O.: nuscenes: A multimodal dataset for autonomous driving. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 11621-11631 (2020)",
1748
+ "5. Chen, Z., Shi, Y., Jia, J.: Transiff: An instance-level feature fusion framework for vehicle-infrastructure cooperative 3d detection with transformers. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 18205-18214 (2023)",
1749
+ "6. Creß, C., Zimmer, W., Strand, L., Fortkord, M., Dai, S., Lakshminarasimhan, V., Knoll, A.: A9-dataset: Multi-sensor infrastructure-based dataset for mobility research. In: 2022 IEEE Intelligent Vehicles Symposium (IV). pp. 965-970. IEEE (2022)",
1750
+ "7. Dosovitskiy, A., Ros, G., Codevilla, F., Lopez, A., Koltun, V.: Carla: An open urban driving simulator. In: Conference on robot learning. pp. 1-16. PMLR (2017)",
1751
+ "8. Fan, S., Yu, H., Yang, W., Yuan, J., Nie, Z.: Quest: Query stream for vehicleinfrastructure cooperative perception. arXiv preprint arXiv:2308.01804 (2023)",
1752
+ "9. Ge, Z., Liu, S., Wang, F., Li, Z., Sun, J.: Yolox: Exceeding yolo series in 2021. arXiv preprint arXiv:2107.08430 (2021)",
1753
+ "10. Gupta, A., Johnson, J., Fei-Fei, L., Savarese, S., Alahi, A.: Social gan: Socially acceptable trajectories with generative adversarial networks. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 2255-2264 (2018)",
1754
+ "11. Howe, M., Reid, I., Mackenzie, J.: Weakly supervised training of monocular 3d object detectors using wide baseline multi-view traffic camera data. arXiv preprint arXiv:2110.10966 (2021)",
1755
+ "12. Hu, Y., Fang, S., Lei, Z., Zhong, Y., Chen, S.: Where2comm: Communication-efficient collaborative perception via spatial confidence maps. Advances in neural information processing systems 35, 4874-4886 (2022)",
1756
+ "13. Huang, J., Huang, G., Zhu, Z., Ye, Y., Du, D.: Bevdet: High-performance multicamera 3d object detection in bird-eye-view. arXiv preprint arXiv:2112.11790 (2021)",
1757
+ "14. Jiang, W., Xiang, H., Cai, X., Xu, R., Ma, J., Li, Y., Lee, G.H., Liu, S.: Optimizing the placement of roadside lidars for autonomous driving. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 18381-18390 (2023)",
1758
+ "15. Krajewski, R., Bock, J., Kloeker, L., Eckstein, L.: The highd dataset: A drone dataset of naturalistic vehicle trajectories on german highways for validation of highly automated driving systems. In: 2018 21st international conference on intelligent transportation systems (ITSC). pp. 2118-2125. IEEE (2018)"
1759
+ ],
1760
+ "bbox": [
1761
+ 79,
1762
+ 92,
1763
+ 920,
1764
+ 947
1765
+ ],
1766
+ "page_idx": 14
1767
+ },
1768
+ {
1769
+ "type": "header",
1770
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
1771
+ "bbox": [
1772
+ 239,
1773
+ 14,
1774
+ 837,
1775
+ 34
1776
+ ],
1777
+ "page_idx": 14
1778
+ },
1779
+ {
1780
+ "type": "page_number",
1781
+ "text": "15",
1782
+ "bbox": [
1783
+ 891,
1784
+ 16,
1785
+ 917,
1786
+ 30
1787
+ ],
1788
+ "page_idx": 14
1789
+ },
1790
+ {
1791
+ "type": "list",
1792
+ "sub_type": "ref_text",
1793
+ "list_items": [
1794
+ "16. Krajzewicz, D., Erdmann, J., Behrisch, M., Bieker, L.: Recent development and applications of sumo-simulation of urban mobility. International journal on advances in systems and measurements 5(3&4) (2012)",
1795
+ "17. Lang, A.H., Vora, S., Caesar, H., Zhou, L., Yang, J., Beijbom, O.: Pointpillars: Fast encoders for object detection from point clouds. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 12697-12705 (2019)",
1796
+ "18. Li, Y., Ma, D., An, Z., Wang, Z., Zhong, Y., Chen, S., Feng, C.: V2x-sim: Multiagent collaborative perception dataset and benchmark for autonomous driving. IEEE Robotics and Automation Letters 7(4), 10914-10921 (2022)",
1797
+ "19. Li, Z., Wang, W., Li, H., Xie, E., Sima, C., Lu, T., Qiao, Y., Dai, J.: Bevformer: Learning bird's-eye-view representation from multi-camera images via spatiotemporal transformers. In: European conference on computer vision. pp. 1-18. Springer (2022)",
1798
+ "20. Liu, S., Gao, C., Chen, Y., Peng, X., Kong, X., Wang, K., Xu, R., Jiang, W., Xiang, H., Ma, J., et al.: Towards vehicle-to-everything autonomous driving: A survey on collaborative perception. arXiv preprint arXiv:2308.16714 (2023)",
1799
+ "21. Ma, X., Zhang, Y., Xu, D., Zhou, D., Yi, S., Li, H., Ouyang, W.: Delving into localization errors for monocular 3d object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 4721-4730 (2021)",
1800
+ "22. Qian, R., Lai, X., Li, X.: 3d object detection for autonomous driving: A survey. Pattern Recognition 130, 108796 (2022)",
1801
+ "23. Rukhovich, D., Vorontsova, A., Konushin, A.: Imvoxelnet: Image to voxels projection for monocular and multi-view general-purpose 3d object detection. In: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision. pp. 2397-2406 (2022)",
1802
+ "24. Sindagi, V.A., Zhou, Y., Tuzel, O.: Mvx-net: Multimodal voxelnet for 3d object detection. In: 2019 International Conference on Robotics and Automation (ICRA). pp. 7276-7282. IEEE (2019)",
1803
+ "25. Sun, P., Kretzschmar, H., Dotiwalla, X., Chouard, A., Patnaik, V., Tsui, P., Guo, J., Zhou, Y., Chai, Y., Caine, B., et al.: Scalability in perception for autonomous driving: Waymo open dataset. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 2446-2454 (2020)",
1804
+ "26. Wang, B., Zhang, L., Wang, Z., Zhao, Y., Zhou, T.: Core: Cooperative reconstruction for multi-agent perception. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 8710-8720 (2023)",
1805
+ "27. Xu, R., Xiang, H., Xia, X., Han, X., Li, J., Ma, J.: Opv2v: An open benchmark dataset and fusion pipeline for perception with vehicle-to-vehicle communication. In: 2022 International Conference on Robotics and Automation (ICRA). pp. 2583-2589. IEEE (2022)",
1806
+ "28. Yan, Y., Mao, Y., Li, B.: Second: Sparsely embedded convolutional detection. Sensors 18(10), 3337 (2018)",
1807
+ "29. Yan, Z., Li, P., Fu, Z., Xu, S., Shi, Y., Chen, X., Zheng, Y., Li, Y., Liu, T., Li, C., et al.: Int2: Interactive trajectory prediction at intersections. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 8536-8547 (2023)",
1808
+ "30. Yang, B., Luo, W., Urtasun, R.: Pixor: Real-time 3d object detection from point clouds. In: Proceedings of the IEEE conference on Computer Vision and Pattern Recognition. pp. 7652-7660 (2018)",
1809
+ "31. Yang, K., Yang, D., Zhang, J., Li, M., Liu, Y., Liu, J., Wang, H., Sun, P., Song, L.: Spatio-temporal domain awareness for multi-agent collaborative perception. In:"
1810
+ ],
1811
+ "bbox": [
1812
+ 79,
1813
+ 56,
1814
+ 917,
1815
+ 947
1816
+ ],
1817
+ "page_idx": 15
1818
+ },
1819
+ {
1820
+ "type": "page_number",
1821
+ "text": "16",
1822
+ "bbox": [
1823
+ 79,
1824
+ 16,
1825
+ 104,
1826
+ 30
1827
+ ],
1828
+ "page_idx": 15
1829
+ },
1830
+ {
1831
+ "type": "header",
1832
+ "text": "L. Chang et al.",
1833
+ "bbox": [
1834
+ 157,
1835
+ 14,
1836
+ 309,
1837
+ 32
1838
+ ],
1839
+ "page_idx": 15
1840
+ },
1841
+ {
1842
+ "type": "list",
1843
+ "sub_type": "ref_text",
1844
+ "list_items": [
1845
+ "Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 23383-23392 (2023)",
1846
+ "32. Yang, L., Tang, T., Li, J., Chen, P., Yuan, K., Wang, L., Huang, Y., Zhang, X., Yu, K.: Bevheight++: Toward robust visual centric 3d object detection. arXiv preprint arXiv:2309.16179 (2023)",
1847
+ "33. Yang, L., Yu, J., Zhang, X., Li, J., Wang, L., Huang, Y., Zhang, C., Wang, H., Li, Y.: Monogae: Roadside monocular 3d object detection with ground-aware embeddings. arXiv preprint arXiv:2310.00400 (2023)",
1848
+ "34. Yang, L., Yu, K., Tang, T., Li, J., Yuan, K., Wang, L., Zhang, X., Chen, P.: Bevheight: A robust framework for vision-based roadside 3d object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 21611-21620 (2023)",
1849
+ "35. Ye, X., Shu, M., Li, H., Shi, Y., Li, Y., Wang, G., Tan, X., Ding, E.: Rope3d: The roadside perception dataset for autonomous driving and monocular 3d object detection task. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 21341-21350 (2022)",
1850
+ "36. Yu, H., Luo, Y., Shu, M., Huo, Y., Yang, Z., Shi, Y., Guo, Z., Li, H., Hu, X., Yuan, J., et al.: Dair-v2x: A large-scale dataset for vehicle-infrastructure cooperative 3d object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 21361-21370 (2022)",
1851
+ "37. Yu, H., Tang, Y., Xie, E., Mao, J., Luo, P., Nie, Z.: Flow-based feature fusion for vehicle-infrastructure cooperative 3d object detection. arXiv preprint arXiv:2311.01682 (2023)",
1852
+ "38. Yu, H., Yang, W., Ruan, H., Yang, Z., Tang, Y., Gao, X., Hao, X., Shi, Y., Pan, Y., Sun, N., et al.: V2x-seq: A large-scale sequential dataset for vehicle-infrastructure cooperative perception and forecasting. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 5486-5495 (2023)",
1853
+ "39. Yurtsever, E., Lambert, J., Carballo, A., Takeda, K.: A survey of autonomous driving: Common practices and emerging technologies. IEEE access 8, 58443-58469 (2020)",
1854
+ "40. Zhang, Y., Lu, J., Zhou, J.: Objects are different: Flexible monocular 3d object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 3289-3298 (2021)",
1855
+ "41. Zhang, Z.: A flexible new technique for camera calibration. IEEE Transactions on pattern analysis and machine intelligence 22(11), 1330-1334 (2000)",
1856
+ "42. Zhao, H., Gao, J., Lan, T., Sun, C., Sapp, B., Varadarajan, B., Shen, Y., Shen, Y., Chai, Y., Schmid, C., et al.: Tnt: Target-driven trajectory prediction. In: Conference on Robot Learning. pp. 895-904. PMLR (2021)",
1857
+ "43. Zhou, Y., Tuzel, O.: Voxelnet: End-to-end learning for point cloud based 3d object detection. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 4490-4499 (2018)",
1858
+ "44. Zhou, Z., Ye, L., Wang, J., Wu, K., Lu, K.: Hivt: Hierarchical vector transformer for multi-agent motion prediction. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 8823-8833 (2022)",
1859
+ "45. Zimmer, W., Birkner, J., Brucker, M., Nguyen, H.T., Petrovski, S., Wang, B., Knoll, A.C.: Infradet3d: Multi-modal 3d object detection based on roadside infrastructure camera and lidar sensors. arXiv preprint arXiv:2305.00314 (2023)",
1860
+ "46. Zimmer, W., Crefs, C., Nguyen, H.T., Knoll, A.C.: A9 intersection dataset: All you need for urban 3d camera-lidar roadside perception. arXiv preprint arXiv:2306.09266 (2023)"
1861
+ ],
1862
+ "bbox": [
1863
+ 79,
1864
+ 56,
1865
+ 917,
1866
+ 936
1867
+ ],
1868
+ "page_idx": 16
1869
+ },
1870
+ {
1871
+ "type": "header",
1872
+ "text": "H-V2X: A Large Scale Highway Dataset for BEV Perception",
1873
+ "bbox": [
1874
+ 239,
1875
+ 14,
1876
+ 837,
1877
+ 34
1878
+ ],
1879
+ "page_idx": 16
1880
+ },
1881
+ {
1882
+ "type": "page_number",
1883
+ "text": "17",
1884
+ "bbox": [
1885
+ 891,
1886
+ 16,
1887
+ 917,
1888
+ 30
1889
+ ],
1890
+ "page_idx": 16
1891
+ }
1892
+ ]