[논문 리뷰] Structural Compression of Convolutional Neural Networks Based on Greedy Filter Pruning
이 논문은 분류 정확도 감소(정확도 감소 지수, CAR) 지표를 기반으로 반복적으로 필터를 제거함으로써 컨volutional 신경망(CNN)을 압축하기 위한 게으른 필터 프루닝 방법을 제안한다. 이 방법은 이전의 방법들보다 높은 정확도를 달성하며, AlexNet의 첫 번째 및 두 번째 레이어에서 필터의 절반을 프루닝할 경우 각각 최고의 벤치마크보다 26% 및 20% 높은 정확도를 기록한다. 재학습을 통해 원래 성능에 가까운 성능을 유지하면서 모델 크기를 42배로 축소시킨다.
Convolutional neural networks (CNNs) have state-of-the-art performance on many problems in machine vision. However, networks with superior performance often have millions of weights so that it is difficult or impossible to use CNNs on computationally limited devices or to humanly interpret them. A myriad of CNN compression approaches have been proposed and they involve pruning and compressing the weights and filters. In this article, we introduce a greedy structural compression scheme that prunes filters in a trained CNN. We define a filter importance index equal to the classification accuracy reduction (CAR) of the network after pruning that filter (similarly defined as RAR for regression). We then iteratively prune filters based on the CAR index. This algorithm achieves substantially higher classification accuracy in AlexNet compared to other structural compression schemes that prune filters. Pruning half of the filters in the first or second layer of AlexNet, our CAR algorithm achieves 26% and 20% higher classification accuracies respectively, compared to the best benchmark filter pruning scheme. Our CAR algorithm, combined with further weight pruning and compressing, reduces the size of first or second convolutional layer in AlexNet by a factor of 42, while achieving close to original classification accuracy through retraining (or fine-tuning) network. Finally, we demonstrate the interpretability of CAR-compressed CNNs by showing that our algorithm prunes filters with visually redundant functionalities. In fact, out of top 20 CAR-pruned filters in AlexNet, 17 of them in the first layer and 14 of them in the second layer are color-selective filters as opposed to shape-selective filters. To our knowledge, this is the first reported result on the connection between compression and interpretability of CNNs.
연구 동기 및 목표
- 계산 자원이 제한된 장치에 큰 성능을 내는 CNN을 구현하는 데 도전하는 데에 대비하기 위해.
- 기존의 구조적 프루닝 방법을 초월하여 정확도를 유지하면서 모델 압축을 향상시키기 위해.
- 프루닝된 필터의 기능적 역할을 분석함으로써 압축된 CNN의 해석 가능성에 대해 탐색하기 위해.
- 실험 분석을 통해 모델 압축과 필터 해석 가능성 사이의 연결 고리를 설정하기 위해.
제안 방법
- 이 방법은 특정 필터를 프루닝했을 때 발생하는 분류 정확도 감소(CAR)를 필터 중요도 지수로 정의한다.
- 가장 작은 CAR를 유발하는 필터부터 게으른 방식으로 반복적으로 제거한다.
- 프루닝 후에는 정확도 복구를 위해 네트워크를 재학습(피니어튜닝)한다.
- 이 방법은 구조적 프루닝과 이후의 가중치 프루닝 및 압축을 결합하여 더 큰 크기 축소를 달성한다.
- CAR 지수를 사용해 필터를 순위 매기며, 정확도에 미치는 영향이 최소인 필터를 우선적으로 제거한다.
- 이 방법은 AlexNet에 적용되었으며, 첫 번째 및 두 번째 컨볼루션 레이어에서의 분석 연구가 수행되었다.
실험 결과
연구 질문
- RQ1CAR 기반의 게으른 필터 프루닝 전략이 기존의 구조적 압축 방법보다 더 높은 분류 정확도를 달성할 수 있는가?
- RQ2얼마나 많은 정확도 손실 없이 필터 프루닝이 모델 크기를 줄일 수 있는가?
- RQ3압축된 CNN에서 프루닝된 필터들이 부정적인 기능이나 해석 가능한 기능을 가지는가?
- RQ4구조적 압축과 향상된 모델 해석 가능성 사이에 측정 가능한 연결 고리가 존재하는가?
주요 결과
- AlexNet의 첫 번째 레이어에서 필터의 절반을 CAR 방법으로 프루닝한 결과, 최고의 벤치마크 필터 프루닝 방법보다 26% 높은 분류 정확도를 달성하였다.
- 두 번째 레이어에서 필터의 절반을 프루닝한 결과, 최고의 벤치마크 방법보다 20% 높은 정확도를 기록하였다.
- CAR 기반으로 압축된 네트워크는 재학습 후 첫 번째 또는 두 번째 컨볼루션 레이어의 크기를 원래 크기의 1/42로 줄였다.
- 첫 번째 레이어에서 상위 20개의 CAR 기반 프루닝 필터 중 17개가 색상 선택성임을 확인하여, 중복된 필터를 제거한 것으로 나타났다.
- 두 번째 레이어에서는 상위 20개의 CAR 기반 프루닝 필터 중 14개가 색상 선택성임을 확인하여, 기능적으로 중복된 필터 제거의 추가적 근거를 확보하였다.
- 이 연구는 프루닝된 필터가 시각적으로 중복된 기능을 가진다는 점을 규명함으로써, CNN에서의 구조적 압축과 향상된 해석 가능성 사이의 첫 번째 보고된 증거를 제시한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.