ParamCrop: Parametric Cubic Cropping for Video Contrastive Learning

Zhiwu Qing, Ziyuan Huang, Shiwei Zhang, Mingqian Tang, Changxin Gao +3 more
8/24/2021
cs.CV
contrastive-ssl

Official code: alibaba-mmai-research/TAdaConv (248 stars, Python, Apache-2.0, PyTorch, last commit 2023-08-23).

Abstract

The central idea of contrastive learning is to discriminate between different instances and force different views from the same instance to share the same representation. To avoid trivial solutions, augmentation plays an important role in generating different views, among which random cropping is shown to be effective for the model to learn a generalized and robust representation.

Show full abstract

Commonly used random crop operation keeps the distribution of the difference between two views unchanged along the training process. In this work, we show that adaptively controlling the disparity between two augmented views along the training process enhances the quality of the learned representation. Specifically, we present a parametric cubic cropping operation, ParamCrop, for video contrastive learning, which automatically crops a 3D cubic by differentiable 3D affine transformations. ParamCrop is trained simultaneously with the video backbone using an adversarial objective and learns an optimal cropping strategy from the data. The visualizations show that ParamCrop adaptively controls the center distance and the IoU between two augmented views, and the learned change in the disparity along the training process is beneficial to learning a strong representation. Extensive ablation studies demonstrate the effectiveness of the proposed ParamCrop on multiple contrastive learning frameworks and video backbones. Codes and models will be available.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

[ICLR 2022] TAda! Temporally-Adaptive Convolutions for Video Understanding. This codebase provides solutions for video classification, video representation learning and temporal detection.

24833PythonJun 23, 20213 years agoApache-2.0
action-localizationaction-recognitionpytorchself-supervised-learningtadaconv+2 more

Similar Papers

Cite this paper

@article{qing2021paramcrop,
  title  = {ParamCrop: Parametric Cubic Cropping for Video Contrastive Learning},
  author = {Zhiwu Qing and Ziyuan Huang and Shiwei Zhang and Mingqian Tang and Changxin Gao and Marcelo H. Ang and Rong Jin and Nong Sang},
  year   = {2021},
  eprint = {2108.10501},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.10501}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.10501.svg)](https://codeofpaper.com/paper/2108.10501)

Discussion