NeurIPS 2026QuestionsPapersAreasAboutMarkdown

FTerViT: Fully Ternary Vision Transformer

Szymon Ruciński, Pietro Bonazzi, Engin Turetken, Simon Narduzzi, Michele Magno, Nadim Maamari

NeurIPS page · Open on the map

Category: Efficient LLM Inference & Training › Low-bit LLM Quantization · Type: new method · Keywords: fully ternary vision transformer, model compression, edge AI deployment, ternary operators, knowledge distillation

Areas: Model Architectures & Sequence Modeling › Vision and Generative Architectures › Vision Model Quantization; Computer Vision & 3D › Visual Multimodal Perception › Efficient Visual Processing

Summary

FTerViT introduces a fully ternary Vision Transformer that ternarizes all weight matrices and normalization parameters, achieving high compression and on-device deployment on microcontrollers.

Explained to a 5-year-old

A tiny computer brain that looks at pictures was made to use only three tiny numbers instead of many. They also made the parts that turn pictures into numbers and the parts that say what they see use those three numbers. They taught the brain by copying a bigger, normal brain and then made it a bit better. The new brain can still tell what is in pictures almost as well as the big one, but it takes up much less space. It can now run on a very small chip used in little gadgets, so it can help devices see without using a lot of power.

Explained to a 5-year-old, longer

A computer that looks at pictures is called a Vision Transformer. Usually it needs a lot of memory to store its numbers, which makes it hard to use on small devices. This paper made a new version where all the numbers are changed to only three possible values, like -1, 0, and 1. They also changed the parts that turn pictures into numbers and the parts that check the picture so those also use only three values. They added a special way to keep the picture-turning part balanced and a new kind of normalizer that works with three values. To train this tiny version, they used a trick called knowledge distillation, copying a big, normal model’s answers. After that, they ran a small extra step that makes the three-value model work even better. The result is a model that is about fifteen times smaller than the original, yet still recognizes pictures very well. On a standard test of many pictures, it gets about 82% correct, which is only a little less than the full-size model. They also made a smaller version that still gets about 80% correct but uses even less memory. Most importantly, they managed to run this tiny model on a very small chip called an ESP32-S3 that is used in many Internet-of-Things gadgets. This makes it possible to have picture-recognizing ability in devices that have almost no power or space.

For a technical reader

The paper presents a fully ternary Vision Transformer that compresses all weights and normalization parameters to three values, drastically reducing memory usage. It introduces two new operators-per-channel scaled ternary convolution for patch embeddings and a ternary LayerNorm-to achieve this full ternarization. The model is trained via knowledge distillation and refined with a lightweight quantization-aware recovery step, preserving accuracy while maintaining extreme compactness. On ImageNet-K the approach reaches 82.43% top-1 accuracy at only 6.09 MB (~15× compression) and can be deployed on a dual-core XTensa LX7 microcontroller inside an ESP32-S3. This enables on-device vision inference for resource-constrained edge platforms without relying on external cloud services.

Problem

Compact vision models for resource-constrained processors retain full-precision components that dominate memory usage, limiting deployment efficiency. Existing ternary Vision Transformers only ternarize encoder layers, leaving embeddings, LayerNorm, and heads in full precision, which hampers further compression.

Method

The approach ternarizes all weight matrices and normalization parameters, introducing per-channel scaling for patch embeddings and a ternary LayerNorm operator. It is trained via knowledge distillation and followed by a lightweight quantization-aware recovery phase.

Results

The approach achieves 82.43% top-1 accuracy on ImageNet-1K at 6.09 MB (~15× compression, 2.42 pp lower than FP32), and the smaller variant reaches 79.64% accuracy on the same dataset.

Contributions

The work introduces per-channel scaling for ternary patch embeddings and a ternary LayerNorm, enabling full ternarization of all parameters. It also demonstrates the first deployment of ternary vision transformers on a dual-core XTensa LX7 microcontroller.

Practical relevance

Enables efficient on-device vision inference on low-power microcontrollers, opening deployment possibilities for edge AI.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction