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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

TACT: A Weight-Shared Ternary Transformer Language Model for Function Calling in a Few Megabytes

Tughrul Arslan, Xianpo Ni, Dongkun Xu, Runlong Wang
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
preprint

TACT: A Weight-Shared Ternary Transformer Language Model for Function Calling in a Few Megabytes

Tughrul Arslan, Xianpo Ni, Dongkun Xu, Runlong Wang
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
University of Sheffield (GB), University of Edinburgh (GB)
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon