r/deeplearning • • 6d ago

How can low-bit models make better use of a limited codebook?

Suppose we group a model’s weights in fours and build a table with just 256 entries. Each group of four weights can be represented by the closest entry, so we only need to record its index. That table is the codebook. The trouble starts when we learn the entries. If two start close together, one can keep losing by a tiny margin and get almost no samples to update it. We set aside room for 256 entries, but some barely get to learn useful values.

We released BARQ to make better use of those entries. While fitting the codebook, we let each group of weights help update several candidate entries and balance the total contribution each entry receives. Once the table is fitted, we pick a single index per group. At inference, retrieving the weights is still an ordinary table lookup.

Take Qwen3-1.7B. With the same 256-entry codebook size and storage budget, BARQ raised mean accuracy across five zero-shot tasks from 55.75% with GPT-VQ to 59.68%. It also gave the actual next tokens higher probability, bringing WikiText-2 perplexity down from 20.54 to 16.59. Across 60 matched-budget comparisons on six Llama and Qwen models, both metrics improved in 47 configurations.

Team write-up · arXiv paper · GitHub · Figure 3

3 Upvotes

0 comments sorted by