arXiv:2605.21171v3 cs.CV

FTerViT: 완전 삼진 비전 트랜스포머

FTerViT: Fully Ternary Vision Transformer

Szymon Ruci\'nski, Pietro Bonazzi, Engin T\"uretken, Simon Narduzzi, Michele Magno, Nadim Maamari

제출 2026-11-03

한국어 초록

삼진(ternary) 비전 트랜스포머는 상당한 모델 압축을 제공하지만, 최신 방법은 인코더 계층만 삼진화하고 패치 임베딩, LayerNorm 매개변수, 분류기 헤드는 완전 정밀도로 남겨 둔다. 마이크로컨트롤러와 같이 자원이 제한된 프로세서를 겨냥한 소형 모델에서는 이렇게 남은 완전 정밀도 구성요소가 전체 메모리 사용량을 좌우하여 배포 효율과 온디바이스 실현 가능성을 크게 제한한다. 본 연구는 모든 가중치 행렬과 정규화 매개변수를 삼진화하고 활성화는 8비트로 유지하는 완전 삼진화 비전 트랜스포머(FTerViT)를 제안한다. 이를 위해 패치 임베딩용 채널별 스케일링을 갖춘 TernaryBitConv2d와 TernaryLayerNorm이라는 두 가지 새로운 연산자를 도입한다. FTerViT는 지식 증류로 학습한 뒤 경량 양자화 인지 복구 단계를 거친다. 동일 조건의 DeiT-S 백본에서 FTerViT는 5.81 MB로 ImageNet-1K top-1 77.47%에 도달하여 TerViT보다 +3.27 pp 높다. 384x384 해상도의 더 강력한 DeiT-III-S 백본에서는 삼진 W2A8 모델이 6.09 MB(약 15배 압축, FP32 대비 -2.42 pp)로 82.43%를 달성한다. 이 백본 및 해상도상 이점이 있는 결과는 기존 삼진 ViT를 최대 8 pp 능가한다. 마지막으로, ESP32-S3 시스템 온 칩 내부의 듀얼 코어 Xtensa LX7 마이크로컨트롤러에서 삼진 비전 트랜스포머를 최초로 구현함을 보인다. FTerViT-Small(224x224 해상도의 DeiT-III-Small 기반, 5.81 MB)을 배포하여 ImageNet-1K top-1 정확도 79.64%를 달성한다.

원문 초록

Ternary Vision Transformers offer substantial model compression, however state-of-the-art methods only ternarize the encoder layers, leaving patch embeddings, LayerNorm parameters, and classifier heads in full precision. In compact models targeting resource-constrained processors, such as microcontrollers, these remaining full-precision components determine the total memory footprint, severely limiting deployment efficiency and on-device feasibility. In this work, we introduce a fully ternarized Vision Transformer in which all weight matrices and normalization parameters are ternarized, while activations remain 8-bit (FTerViT). To this end, we introduce two novel operators: TernaryBitConv2d with per-channel scaling for patch embedding and TernaryLayerNorm. FTerViT is trained using knowledge distillation, followed by a lightweight quantization-aware recovery phase. On a matched DeiT-S backbone, FTerViT reaches 77.47% ImageNet-1K top-1 at 5.81 MB, +3.27 pp over TerViT. With the stronger DeiT-III-S backbone at 384x384 resolution, our ternary W2A8 model achieves 82.43% at 6.09 MB (~15x compression, -2.42 pp vs. FP32). This backbone- and resolution-advantaged result exceeds prior ternary ViTs by up to 8 pp. Finally, we demonstrate the first implementation of ternary vision transformers on a dual-core Xtensa LX7 microcontroller inside the ESP32-S3 system-on-chip. By deploying FTerViT-Small (based on DeiT-III-Small at 224x224 resolution, 5.81 MB), we achieve 79.64% ImageNet-1K top-1 accuracy.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2605.21171v3제출 시각 미확인
  2. arXiv:2605.21171v2제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.