TACT: A Weight-Shared Ternary Transformer Language Model for Function Calling in a Few Megabytes
Commanding a device in natural language requires a model that reads the request and the list of functions that the device offers and returns the call. Such commands are often private, need an immediate response and should work without a network, which places the model on the device itself. Recent open function-calling models have become smaller and now range from about ten megabytes to several gigabytes, which remains heavy for many edge devices. We find that the size can be reduced much further and present TACT, the Ternary Action-Calling Transformer, with 7.4 million parameters in 2.39 MB. TACT combines ternary weights with cross-layer weight sharing and encodes the function list of a device separately from the request. Together these give a far better balance between size and accuracy than existing models. On four device-control test sets TACT reaches a mean accuracy of 80.3%, the second highest of ten open models, and ranks among the top three on each set, while the other nine are 6 to 1300 times its size. Accurate function calling for device control thus enters the range of a few megabytes and comes within reach of many more devices. The result also suggests that language models for a specific task can be far smaller than is commonly expected.
Authors
- Tughrul Arslan (ORCID: https://orcid.org/0000-0001-8176-5803)
- Xianpo Ni (ORCID: https://orcid.org/0009-0004-9206-2707)
- Dongkun Xu (ORCID: https://orcid.org/0009-0005-5949-6738)
- Runlong Wang (ORCID: https://orcid.org/0009-0009-7831-8047)
Institutions
- University of Sheffield (GB)
- University of Edinburgh (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24529121
- Primary Topic
- Topic Modeling
- Type
- preprint