Randomized Quantization: A Generic Augmentation for Data Agnostic Self-supervised Learning

Huimin Wu, Chenyang Lei, Xiao Sun, Peng-Shuai Wang, Qifeng Chen, Kwang-Ting Cheng, Stephen Lin, Zhirong Wu

Abstract

Self-supervised representation learning follows a paradigm of withholding some part of the data and tasking the network to predict it from the remaining part. Among many techniques, data augmentation lies at the core for creating the information gap. Towards this end, masking has emerged as a generic and powerful tool where content is withheld along the sequential dimension, e.g., spatial in images, temporal in audio, and syntactic in language. In this paper, we explore the orthogonal channel dimension for generic data augmentation by exploiting precision redundancy. The data for each channel is quantized through a non-uniform quantizer, with the quantized value sampled randomly within randomly sampled quantization bins. From another perspective, quantization is analogous to channel-wise masking, as it removes the information within each bin, but preserves the information across bins. Our approach significantly surpasses existing generic data augmentation methods, while showing on par performance against modality-specific augmentations. We comprehensively evaluate our approach on vision, audio, 3D point clouds, as well as the DABS benchmark which is comprised of various data modalities. The code is available at https://github.com/microsoft/random_quantize.

Introduction

Self-supervised representation learning (SSL) has revolutionized AI by enabling models to learn from vast amounts of unlabeled data. The core mechanism of SSL is the creation of an information gap: a portion of the data is withheld, and the network is tasked with predicting it from the remaining context. Currently, this is achieved through two primary methods: sequential masking (e.g., dropping patches in images or words in text) and domain-specific augmentations (e.g., color jittering or pitch shifting).

However, sequential masking often ignores the "channel" dimension, and domain-specific augmentations lack generalizability across different media. This paper introduces Randomized Quantization (RQ), a data-agnostic augmentation technique that targets the channel dimension by exploiting precision redundancy, providing a universal tool for multi-modal learning.

Methodology: Quantization as Channel-Wise Masking

Randomized Quantization treats the precision of data as a source of redundancy. By mapping continuous values into discrete "bins," the method effectively masks fine-grained details while preserving global structure. Unlike standard quantization, RQ introduces two stochastic elements to create a challenging pretext task:

  1. Randomized Bins: Bin boundaries are sampled randomly rather than using uniform intervals, creating non-uniform information loss.
  2. Randomized Reproduction Values: Instead of mapping a value to the bin center, a new value is sampled randomly from within the bin's range.
Comparison of sequential masking and randomized quantization

This process effectively acts as a "channel-wise mask," removing information within each bin but preserving information across bins. This forces the model to learn higher-level, more robust features to bridge the precision gap.

Experimental Evaluation

The authors evaluated RQ across a diverse array of modalities, demonstrating its effectiveness as a truly generic augmentation tool.

Visualizations of randomized quantization across images, point clouds, and audio

Key Results

  • Vision: On ImageNet-1K using MoCo-v3, RQ achieved 67.9% top-1 accuracy, significantly outperforming general-purpose methods like MixUp.
  • Audio: RQ outperformed the state-of-the-art BYOL-A on four out of six downstream tasks, showing a 1.8% average improvement across datasets like AudioSet and NSynth.
  • 3D Point Clouds: The method showed remarkable data efficiency; when training on only 1% of the ModelNet40 dataset, RQ improved classification accuracy by 5.2% over the baseline.
  • DABS Benchmark: In a "decathlon" of diverse data types (including text, sensors, and medical imaging), RQ consistently outperformed the leading "e-Mix" method across all six modalities.

Conclusion and Future Work

Randomized Quantization offers a powerful, data-agnostic alternative to traditional augmentation strategies. By reframing quantization as a stochastic masking process in the channel dimension, it enables robust self-supervised learning across vision, audio, and 3D data. While currently optimized for continuous data, future research may explore its application to generative models (e.g., reconstructing high-precision data from quantized inputs) and further investigate the computational efficiency gains observed in sparse modalities like point clouds.

Summary updated

BibTeX
@inproceedings{wu2023randomized,
  author = {Huimin Wu and Chenyang Lei and Xiao Sun and Peng-Shuai Wang and Qifeng Chen and Kwang-Ting Cheng and Stephen Lin and Zhirong Wu},
  title = {{Randomized Quantization: A Generic Augmentation for Data Agnostic Self-supervised Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=hJCUjbrfr1},
}
Figure