DeVIT: Low-Power Vision Transformer Acceleration Using Delta Computation
This paper introduces DeVIT, a low-power acceleration method for Vision Transformers that exploits value locality in quantized models to enable multiplier-less matrix multiplication through differential computation.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a super-smart robot to recognize pictures, like spotting a cat in a tree or a car on a street. To do this, we use special brain-like computer programs called "Vision Transformers." These programs are incredibly powerful, but they are also massive, hungry beasts. They need to perform billions of tiny math calculations every time they look at a photo, and they gobble up huge amounts of memory and battery power. Because of this, it's very hard to put them on small devices like phones or drones without them overheating or running out of juice.
To tame these hungry beasts, scientists have been trying to make the math simpler. One popular trick is "quantization," which is like rounding off the numbers the robot uses. Instead of using precise decimals, the robot only uses a limited set of whole numbers, like 0, 1, 2, up to 255. This saves space, but it doesn't stop the robot from doing billions of multiplications. However, there's a hidden bonus to this rounding: because the robot is forced to use only a few specific numbers, it ends up using the same numbers over and over again. It's like if a chef only had five ingredients; they would use the same spice jar repeatedly. The big question is: can we build a robot that notices when it's about to use the same spice again and skips the work, saving energy in the process?
This is exactly what the researchers behind DeVIT (Delta-coded Vision Transformer) set out to solve. They realized that because these "Vision Transformers" are forced to use a limited set of numbers, the weights (the numbers that tell the robot what to look for) often sit right next to each other in value. For example, if the robot needs to multiply a number by 5, then by 6, then by 7, it doesn't need to do three separate, hard calculations. It can just do the first one, then add a tiny bit for the next, and add a tiny bit more for the one after that.
The DeVIT team invented a clever way to organize these numbers so the robot can do this "add a little bit" trick instead of doing full, heavy multiplications. They sort the numbers in a line from smallest to biggest and store only the difference between them (the "delta"). If the difference is small, the robot can just "shift" the number (which is like multiplying by 2 or 4) and add it, rather than doing a complex multiplication. If the difference is zero (meaning the number is the same as the last one), the robot doesn't have to do anything at all—it just reuses the previous answer.
By using this method, the researchers showed that they could cut the amount of math the robot needs to do down to just 0.53 of what an unoptimized version would need. That means the robot does less than half the work! In their tests, this new design used 159.57 nJ (nanojoules) of energy for a single major calculation step. This is about 5.5% less energy than the best existing "shift-and-add" methods they compared it against.
However, there is a catch. To make this work, the researchers had to sort the numbers and store extra information about where they belong, which takes up a little bit of extra memory space. Also, because they are approximating the differences, there is a tiny trade-off in accuracy. In their experiments with different models, the accuracy dropped by a small amount—sometimes up to 3.11 percentage points for image classification or 2.53 mAP points for object detection. While this is a small price to pay for such a huge energy saving, it means the method isn't perfect for every single situation yet.
In short, DeVIT is like giving the robot a reference sheet. Instead of recalculating the same math problems from scratch every time, it looks at its sorted list of numbers, sees that the next one is just a tiny step away, and takes a shortcut. This makes the robot faster and much more energy-efficient, bringing us one step closer to having powerful AI that can run on everyday devices without draining the battery.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.