임의 학습을 활용한 비디오 인코딩을 위한 신경률 제어
Neural Rate Control for Video Encoding using Imitation Learning
Neural Rate Control for Video Encoding using Imitation Learning
@misc{mao2020neural,
title = {Neural Rate Control for Video Encoding using Imitation Learning},
author = {Hongzi Mao and Chenjie Gu and Miaosen Wang and Angie Chen and Nevena Lazic and Nir Levine and Derek Pang and Rene Claus and Marisabel Hechtman and Ching-Han Chiang and Cheng Chen and Jingning Han},
year = {2020},
eprint = {2012.05339},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2012.05339}
}
Mao, H., Gu, C., Wang, M., Chen, A., Lazic, N., Levine, N., Pang, D., Claus, R., Hechtman, M., Chiang, C.-H., Chen, C., & Han, J. (2020). Neural Rate Control for Video Encoding using Imitation Learning [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.05339
MAO H, GU C, WANG M, et al. Neural Rate Control for Video Encoding using Imitation Learning[EB/OL]. (2020-12-09)[2026-11-30]. https://arxiv.org/abs/2012.05339.
초록
현대 비디오 인코더에서 비트율 제어는 핵심 구성 요소로, 복잡한 프레임 간 의존성과 에피소드 종료 시 정의된 비트율 제약을 고려하여 최적의 비트 - 왜곡 트레이드오프를 달성하기 위해 각 프레임에 할당할 비트 수를 결정하는 중요한 문제이다. 우리는 비트율 제어 문제를 부분 관측 마르코프 결정 과정 (POMDP) 으로 모델링하고, 진화 전략을 통해 얻은 최적 비디오 인코딩 궤적을 기반으로 시뮬레이션 학습을 적용하여 신경망 기반 비트율 제어 정책을 학습하였다. 시뮬레이션 학습을 통해 학습된 정책은 인코딩 효율성을 향상시키며 제약 조건 위반을 최소화한다. 최적 행동을 모방하는 것 외에도 추가적인 보조 손실, 데이터 증강/정제, 추론 시 정책 개선이 좋은 비트율 제어 정책을 학습하는 데 필수적임을 확인하였다. 우리는 학습된 정책을 널리 채택된 오픈 소스 VP9 코덱 라이브러리인 libvpx 의 두 패스 가변 비트율 (VBR) 모드에서 적용하여 평가하였다. 다양한 실제 비디오에 대해 학습된 정책은 비디오 품질을 희생하지 않으면서 중위 비트율을 8.5% 감소시켰음을 보였다.
In modern video encoders, rate control is a critical component and has been heavily engineered. It decides how many bits to spend to encode each frame, in order to optimize the rate-distortion trade-off over all video frames. This is a challenging constrained planning problem because of the complex dependency among decisions for different video frames and the bitrate constraint defined at the end of the episode. We formulate the rate control problem as a Partially Observable Markov Decision Process (POMDP), and apply imitation learning to learn a neural rate control policy. We demonstrate that by learning from optimal video encoding trajectories obtained through evolution strategies, our learned policy achieves better encoding efficiency and has minimal constraint violation. In addition to imitating the optimal actions, we find that additional auxiliary losses, data augmentation/refinement and inference-time policy improvements are critical for learning a good rate control policy. We evaluate the learned policy against the rate control policy in libvpx, a widely adopted open source VP9 codec library, in the two-pass variable bitrate (VBR) mode. We show that over a diverse set of real-world videos, our learned policy achieves 8.5% median bitrate reduction without sacrificing video quality.