Low-Rank Ternary Adaptation for Fine-Tuning Transformers
This paper proposes "ternary multiplicative adaptation," a novel low-rank method that enables efficient fine-tuning of ternary transformers by representing discrete weight updates through small ternary matrices, thereby preserving the ternary domain and allowing direct merging without dequantization while significantly recovering performance across language and vision models.
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
Modern artificial intelligence relies on massive computer programs called transformers, which have become the engine behind everything from writing assistants to image generators. These programs are incredibly powerful, but they are also heavy, requiring vast amounts of computer memory and energy to run. To make them usable on smaller devices like phones or laptops, researchers have spent years trying to shrink them down. One popular strategy is to compress the numbers inside the program, turning them from complex, high-precision values into simpler, low-bit versions. Imagine taking a high-resolution photograph and reducing it to a few colors; the image becomes smaller and faster to process, though some detail is inevitably lost. The most aggressive form of this compression involves limiting the program's internal numbers to just three possible values: negative one, zero, and positive one. This approach, known as ternary quantization, slashes the memory needed by a factor of ten, potentially turning a model that once required a large server into something that could run on a standard laptop.
However, a significant problem has stalled the progress of these ultra-compact models. While the models are small and efficient, they are difficult to teach new tasks. Standard methods for teaching these programs involve making tiny, continuous adjustments to their numbers. But when a model is restricted to only three values, it cannot make small adjustments; it can only flip a number from negative to positive, or turn it off completely. Existing techniques for teaching these compressed models often require temporarily expanding the numbers back to their full, heavy size to make the changes, and then squeezing them back down. This process of expanding and re-compressing introduces errors that degrade the model's performance, often making the final result worse than if no teaching had happened at all.
A team of researchers at Delft University of Technology and Amazon has developed a new way to teach these ultra-compact models that avoids this cycle of expansion and error. Instead of trying to add small, continuous numbers to the model, their method works directly within the strict three-value system. They designed a system that acts like a set of switches, allowing the model to flip the sign of its internal numbers or turn them off entirely, without ever leaving the compressed state. To make this efficient, they did not try to adjust every single number individually. Instead, they used a mathematical structure that allows a few small, simple patterns to control vast sections of the model at once. This approach, which they call a low-rank ternary adaptation, lets the model learn new skills while staying perfectly compressed.
The researchers tested this method on several different types of artificial intelligence, including language models capable of reasoning and vision models that recognize images. They started with models that had already been compressed to the three-value limit and then applied their new teaching technique. The results showed that the models recovered much of the accuracy they had lost during the initial compression. In tests involving language tasks, the adapted models performed significantly better than previous attempts that tried to force the model to learn through expansion and re-compression. For instance, on a language model with three billion parameters, the new method improved the average accuracy across nine different tasks from roughly 32 percent to 38 percent, while also making the model's predictions much more confident.
Perhaps most importantly, the final result of this process is a single, unified model that remains in its ultra-compact form. Unlike other methods that leave behind a separate, heavy set of instructions that must be loaded alongside the small model, this new approach merges the learning directly into the tiny weights. The researchers found that for vision tasks, such as identifying objects in images, their method produced a model that was far more accurate than those created by re-compressing after learning. They also discovered that the learning process worked by redistributing the signs of the existing numbers rather than trying to bring zeroed-out numbers back to life. This means the model learns by reorganizing what it already has, rather than trying to create new connections where none existed.
This work demonstrates that it is possible to teach highly compressed artificial intelligence models without sacrificing their efficiency or accuracy. By respecting the strict limits of the three-value system and finding a way to learn within those boundaries, the researchers have shown that these tiny models can be just as capable as their larger counterparts for many tasks. The method requires no extra memory or computing power during use, as the learning is fully integrated into the model's structure. This opens the door for running sophisticated artificial intelligence on devices with very limited resources, bringing powerful capabilities to places where they were previously impossible to deploy.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.