Vector quantization (VQ) is a technique used to learn features with discrete codebook representations.Existing hierarchical extensions of VQ-VAE suffer from the codebook/layer collapse issue, leading to degraded reconstruction accuracy.To address this problem, a novel framework called HQ-VAE (hierarchically quantized variational autoencoder) is proposed.HQ-VAE improves codebook usage and enhances reconstruction performance in image datasets and audio datasets.