Project 02 · Efficient AI · Tool calling

Can quantization recovery preserve what agents need to do?

As language models become smaller and cheaper to run, quantization can damage their accuracy. This team project tests whether small LoRA adapters can recover not only general reasoning, but also the structured tool-calling behavior that agents depend on.

The idea in one minute

Quantization compresses model weights so a language model uses less memory and costs less to serve. The tradeoff is that compression can change how reliably the model reasons or produces structured outputs. Our team studies whether a lightweight recovery step can repair those capabilities.

Starting point Full-precision model Reference behavior
→
Compression 2-bit quantization Lower memory and serving cost
→
Recovery LoRA + knowledge distillation Learn from the full-precision model

What the team is testing

The central question is whether recovery generalizes from ordinary knowledge and reasoning benchmarks to tool calling: selecting the correct function, filling its arguments, and abstaining when no available function applies.

Model capability

Does recovery preserve general knowledge, reasoning, instruction following, and structured outputs after aggressive quantization?

MMLU HellaSwag IFEval

Agent reliability

Does the model still select the right tool and produce valid arguments under a function-calling evaluation?

BFCL Tool selection Argument validity

Experimental design

We compare five Qwen3-4B-Instruct-2507 configurations: full precision, damaged quantized weights, a reproduction of the published recovery recipe, a tool-calling-focused recovery variant, and a labelled fine-tuning control. The evaluation also classifies failure types instead of hiding them inside one aggregate score.

5 model configurations
2-bit quantization target
BFCL tool-calling evaluation

Preliminary results

On Qwen3-4B-Instruct-2507, 2-bit quantization reduced BFCL live-simple tool-calling from 79.46% to 0%. General-text LoRA distillation recovered 13.57%; tool-calling data improved that to 22.48%. On MMLU, the same recovery setup restored accuracy from 48.48% to 62.43% versus 70.55% for the full-precision model.

0 → 13.57%BFCL recovery with OpenHermes KD
22.48%BFCL with xLAM KD
48.48 → 62.43%MMLU after recovery
2-bitquantization target

My role

I am contributing as a team member on this project with Hassaan Muzammil and Parth Panchal. The repository contains the benchmarks, recovery experiments, evaluation scripts, documentation, and progress reports.