A small model that calls tools on a phone gets one kind of feedback. The user accepts the action or rejects it. Once the model ships, that accept-or-reject button is all the supervision it will ever see.
Tool calling needs unpacking. The apps on a phone expose functions, such as set an alarm or send a message, each with named arguments. A tool-calling model reads a command in plain language and answers by writing out the name of the function to run and the values of its arguments, and the app then runs it. A small language model, an SLM, is one small enough to run on the phone itself rather than in a data centre.
FunctionGemma-270M is such a model, trained to turn commands into tool calls. It has 270 million parameters, the numbers inside the network that training sets, and with each one stored as a single byte it is 288 MB on disk and peaks at 551 MB of memory on a phone.
Tool calling makes the signal unusually clean. A tool call is a discrete, visible action, and two answers either invoke the same calls with the same arguments or they do not. Accepted answers are a training set of endorsed behaviour, so the learning part is not hard.
The hard part is the decision after training. Fine-tuning means training an already trained model a little further on a small set of examples. A model fine-tuned on a few dozen of the user's accepted answers either replaces the only model the user has or it does not. There is no test set on the device, no stock of commands with known right answers that the model never trained on, to say whether the swap is safe. If the new model forgets something the user liked, the user is the one who finds out.
Existing methods leave that decision outside the loop. STaR and ReST are self-training methods. The model generates answers, the ones that pass a check are kept, the model trains on them, and whatever came out of training is served. DPO, direct preference optimisation, learns from pairs of answers where one is preferred over the other, which a single button cannot produce. KTO, named after Kahneman and Tversky, learns from single answers labelled good or bad, but it still leaves the decision to serve to an evaluation done away from the device.
AGCL, adoption-gated continual learning, is a loop that puts the adoption decision inside the learning. Continual learning means the model keeps training after it ships, on what it meets in use. The loop keeps accepted and rejected behaviour in bounded sets, which hold a fixed number of entries and drop the oldest when full. It fine-tunes a candidate on the accepted set, starting from the base weights. It scores the candidate and the current model on how much accepted behaviour each keeps and how much rejected behaviour each still repeats, and it serves whichever wins. A single exploration rate weights the two terms.
We ran it 27 times with a 270M model on three simulated domains. The runs were preregistered, so the design and the predictions were written down before anything ran. No served model ended below its starting accuracy on a verification set the loop never reads.
These are the three domains.
| domain | source | what the commands are |
|---|---|---|
| robotics | ALFRED, a benchmark of household tasks for a simulated robot | Its eight sub-goals, such as picking up an object or putting it in a receptacle, with target objects and receptacles drawn from its object and receptacle classes. 5,227 distinct commands. |
| mobile | AndroidControl, a dataset of people operating Android apps | Its actions, such as click, type or scroll, with a set of named UI elements standing in for screen coordinates. 1,804 distinct commands. |
| smart home | MASSIVE, a multilingual dataset of spoken assistant commands | Its nine iot intents, such as turning lights on or dimming them, with realistic slot values. 564 distinct commands. |
The cycle
Each cycle has an interaction phase and a consolidation phase. During interaction the current model, the incumbent , answers each command and the user accepts or rejects. The model writes its answer one token at a time, a token being a word or a piece of one, and at each step it has a probability for every token it could write next. Greedy decoding takes the most likely token every time, so the same command always gets the same answer from the same model.
On a rejection the device proposes exactly one retry, and the user judges that too. The retry comes from the base model , the model as it shipped, and it is sampled rather than greedy. Sampling draws each next token at random with the model's own probabilities. Temperature one means those probabilities are used as they are, and no truncation means no token, however unlikely, is ruled out.
Three bounded sets fill up. Each is keyed on the pair of command and answer, so a repeated pair is stored once, and each evicts its oldest entry when full. The training set , capacity 1024, holds accepted pairs and is what the candidate trains on. The acceptance set , capacity 128, holds accepted pairs that are kept out of training and used to judge candidates. The rejection set , capacity 128, holds the pairs the user rejected, whether first try or retry.
Every accepted answer is filed by one rule. After deduplication, every -th accepted entry goes to and the rest go to , and an entry never appears in both. Answers accepted only on the retry are called recovered examples, and they matter more than their count suggests.
One equation now, and I have kept it short. During consolidation, whenever is non-empty, the device fine-tunes a candidate , always from the base weights. So a candidate is a function of the current training set alone and not of the history of previous swaps. Then it scores both models,
where is the fraction of that reproduces exactly, taken as one when is empty, and is the fraction of distinct commands in for which still emits a rejected answer, taken as zero when is empty.
Each model is a point in the unit square with retention on one axis and avoidance, , on the other, and the score is that point's projection onto the direction . The projection of a point onto a direction is how far along that direction the point sits, found by multiplying matching coordinates and adding. At the direction lies along the retention axis and a candidate is adopted only if it keeps what the user liked. At it lies along the avoidance axis and a candidate is adopted only if it stops doing what the user disliked. The higher score serves the next cycle and ties go to the candidate.
The criterion is built to bound the downside rather than to maximise improvement, since a device that learns from its user should not end up worse than it shipped. That is a design goal and not a theorem, so we measure it per run on held-out data the criterion never reads.
How each score term leans
The structure of the two terms explains most of what happens, and it helps to work through it before looking at any number. Start with where the entries of come from. An entry that came from a first-try success is the incumbent's own greedy output, so the incumbent reproduces it by construction and scores a point on it for free.
A candidate can only pull ahead on the recovered examples, the entries the incumbent got wrong and the base model's retry got right, and those were 0.3 to 1.7 per set in our runs. Since recovered examples are held out from training, winning one requires the candidate to generalise from the training set to a command it never saw. A regression test is a check that nothing which used to work has broken. Retention is close to a pure regression test on what the user already liked, and it leans toward the incumbent. That is why ties go to the candidate. A strict improvement test on this term would adopt almost nothing.
The avoidance term leans the other way. Every fresh rejection in is the current incumbent's own output, so the incumbent repeats it by construction, and a candidate that merely answers differently, right or wrong, starts ahead. At a lot is granted for changing rather than improving.
So retention favours the incumbent, avoidance favours the candidate, and sets the balance between a judge who is too cautious and a judge who is too easily impressed.
Design decisions
Several choices in the loop are not forced by the method, and each was settled by a measurement before the sweep.
The command stream is heavy-tailed, so a few commands arrive often and most arrive rarely. Each domain is built from command templates. A template is an intent, such as putting an object somewhere, with slots for the arguments and for the phrasing. Under uniform recycling, where every command is served the same number of times, the training set covers the whole command stream and the model exhausts the domain. In a pilot campaign robotics reached 0.981 accuracy by cycle 7 and stayed flat, leaving nothing to trade.
So intents are drawn with Zipf popularity, over a per-seed ranking of the templates, meaning the second most popular intent arrives half as often as the first, the third a third as often, and so on, and slot values are uniform given the intent. The head intent then absorbs roughly a third of a run's 1,000 draws while tail intents arrive a few dozen times. On robotics a run serves only 165 to 478 distinct commands of 5,117, so unmastered material keeps arriving to the end.
The held-out sets are the commands kept back to measure accuracy on, and three natural ways of choosing them fail. The way that works groups commands by behaviour. A behaviour is a gold call sequence, the correct tool calls for a command, together with every phrasing that expresses it.
Drawing the evaluation set independently from the same generator puts 54% to 88% of its commands into the interaction set, so the headline number would measure memorisation. Sampling the held-out set uniformly over the enumerated space weights each intent by how many slot combinations it happens to have, and one three-slot template would carry 86% of the robotics evaluation weight, so we take a fixed number from each template instead, which weights intents equally. Splitting on the command text rather than on behaviours leaks through the phrasing slots, since 63% to 76% of mobile and smart-home held-out gold calls would be calls the user also issues under another phrasing.
Behaviour groups travel whole, so a held-out action is unseen under every phrasing, and held-out accuracy measures unseen actions rather than unseen strings. For each template with behaviours, join the evaluation set, another disjoint join the verification set, and the rest form the interaction set. The held-out sets hold 55, 97 and 76 commands over 38, 40 and 29 behaviours for robotics, mobile and smart home, and the interaction sets hold 5,117, 1,610 and 412 commands.
Accepted answers are filed by one rule. An earlier version routed recovered examples to both the training set and the acceptance set. That let a candidate be scored on data it had trained on, and the candidate retained 1.000 of the acceptance set against the incumbent's 0.167. The uniform one-in- rule removes the contamination, at the cost of making held-out recovered examples rarer.
There is one retry, and it comes from the base model. One retry is the weaker assumption about the user's patience. A larger budget buys more recovered examples rather than better learning, since budgets of one and four recover two and five robotics examples and a candidate learns all of them either way.
The retry is sampled from the base rather than the incumbent because fine-tuning sharpens the incumbent's output distribution around what it already knows, while the base model does not change. Measured over six cycles and three seeds, the two sources recover 8 and 11 of 189 greedy failures, a difference within noise.
Two boundary measurements were taken before the sweep on the exact traffic the loop faces. A headroom probe serves a 100-command traffic sample greedily and asks what fraction of the distinct failures any of 16 sampled retries recovers. Robotics has 0.271 base traffic accuracy with headroom 0.138, mobile 0.313 with 0.185, and smart home 0.396 with 0.087. All are inside the required band of 0.2 to 0.9 with headroom above zero, so all three domains ran.
A capacity gate checks that the model can learn at all at this scale. It fine-tunes once, with the vendor's recipe, on an oracle set, 32 correct answers to commands the base model gets wrong, written with the gold calls the loop itself never sees. The candidate reproduces 0.719 of them in about two optimiser steps, an optimiser step being one update of the weights. In the loop a candidate keeps 0.800 of its first-try successes. A few dozen examples are enough to install behaviour at this scale, so what varies across domains is the supply of new behaviour, not its learnability.
The setup
The model is FunctionGemma-270M-IT, where IT marks the instruction-tuned version, under its vendor's full fine-tuning recipe, unchanged. That recipe is bfloat16 precision, the plain attention implementation, the fused AdamW optimiser, learning rate , a cosine schedule that lowers the learning rate smoothly to zero, two epochs, batch 4 with gradient accumulation 8, and loss on answer tokens only.
In plain words. bfloat16 is a 16-bit number format that halves the memory of ordinary 32-bit numbers. The plain attention implementation is the textbook one with no speed-up tricks. AdamW is the rule that turns gradients into weight updates and the learning rate is the size of each update. An epoch is one pass over the training set. Batch 4 with accumulation 8 means the gradients from 32 examples are added up before each update. Loss on answer tokens only means the model is trained to produce the answer and not to reproduce the command. Serving runs one command at a time through the model, because running several at once in a batch changes this model's answers.
Three simulated domains define their tools in the OpenAI function-calling schema. JSON is a plain-text format for structured data, and this schema is the JSON layout for describing a function and its arguments that most tool-calling models are trained on. Each domain has command templates and gold calls, and we did not invent the action spaces. Robotics uses the eight ALFRED sub-goals with target objects and receptacles from its object and receptacle classes. Smart home uses the nine MASSIVE iot intents with realistic slot values. Mobile uses the AndroidControl actions minus episode termination, with a set of named UI elements standing in for screen coordinates.
Each domain has ten command templates. A template is an intent with slots, spanning one to three calls, and the slots cover phrasing as well as arguments, so a command space varies in how things are said as well as in what is asked. Robotics has 5,227 distinct commands over 5,175 behaviours, mobile 1,804 over 1,042, and smart home 564 over 382.
A run is ten cycles of 100 commands, so its 1,000 interactions cover roughly 0.2, 0.6 and 1.8 times the respective space, which puts the three domains in three different data regimes. The hold-out period is . The simulated user is perfect, accepting correct answers and rejecting everything else, judged on the visible call sequence against the gold calls, with an extra action counting as a rejection.
The evaluation set is scored every cycle and the verification set once at the end. AGCL reads neither. The partition and the stream depend only on the seed, so the spread of final accuracy between seeds, 0.191 on robotics at , is common across , and comparisons between settings are paired per seed.
Results
| domain | α | eval base | eval final | verification base | verification final |
|---|---|---|---|---|---|
| robotics | 0 | 0.588 | 0.661 | 0.570 | 0.642 |
| 0.5 | 0.721 | 0.648 | |||
| 1 | 0.709 | 0.648 | |||
| mobile | 0 | 0.316 | 0.320 | 0.299 | 0.316 |
| 0.5 | 0.440 | 0.392 | |||
| 1 | 0.426 | 0.381 | |||
| smart home | 0 | 0.518 | 0.522 | 0.474 | 0.509 |
| 0.5 | 0.522 | 0.504 | |||
| 1 | 0.522 | 0.504 |
The floor held in all 27 runs on the verification set. On the evaluation set 24 of 27 ended at or above base. The three that did not came from one smart-home seed, two or three commands below at every including zero, and that seed's verification sets sat above base.
The gate was busy. At it blocked 14 of 30 robotics candidates and 23 of 30 mobile candidates. So mobile barely moved, 0.316 to 0.320, and lost nothing, while robotics improved where retention allowed, 0.588 to 0.661.
At every mobile seed improved over , by 0.124, 0.206 and 0.031, taking the cell mean from 0.316 to 0.440. On robotics the paired differences were 0.164, 0.055 and −0.036, and the seed whose gate had blocked the most gained the most.
Full exploration was never the best setting. never beat on any domain mean, 0.709 against 0.721 on robotics, 0.426 against 0.440 on mobile and equal on smart home. Where the two settings differed, the extra adoptions were the ones that lost acceptance-set entries.
Smart home, where 1,000 interactions cover the command space 1.8 times over, did not move at any , ending within 0.013 of base on the evaluation set. The base model already handled the repeated traffic and the small space supplied too little new behaviour to change either number. We had preregistered this as a possible miss. A cycle took 194 seconds on an RTX 5090, a desktop GPU.
The cost of exploration is countable. Each acceptance-set entry a swap gives up is an accepted answer the served model reproduced before the swap and not after. A model losing an old behaviour as it learns a new one is called catastrophic forgetting, and this counts it one answer at a time.
| domain | α | adoptions per run | lossy adoptions | entries lost | recovered entries in A |
|---|---|---|---|---|---|
| robotics | 0 | 5.3 | 1.0 | 1.0 | 0.7 |
| 0.5 | 9.3 | 4.3 | 5.0 | 0.7 | |
| 1 | 10.0 | 5.0 | 6.7 | 0.7 | |
| mobile | 0 | 2.3 | 0.0 | 0.0 | 1.3 |
| 0.5 | 9.0 | 3.7 | 4.7 | 0.7 | |
| 1 | 9.7 | 4.3 | 5.3 | 1.7 | |
| smart home | 0 | 8.0 | 0.0 | 0.0 | 0.3 |
| 0.5 | 8.0 | 0.7 | 0.7 | 0.3 | |
| 1 | 8.7 | 1.0 | 1.0 | 0.7 |
Summed over seeds, entries given up went from 3 to 15 to 20 on robotics and from 0 to 14 to 16 on mobile as rose. Read the table against the earlier argument. The last column is the number of entries on which a candidate could beat the incumbent, and it is under two in every cell, so the retention term is almost all regression test.
At that test blocked most candidates and lost almost nothing. At adoptions rose from 5.3 to 9.3 per run on robotics and from 2.3 to 9.0 on mobile, and accuracy rose with them, at a price of four or five lost entries per run. At adoptions rose a little more, the lost entries rose with them, and accuracy did not.
What it means
A single accept-or-reject signal is enough to drive a learning loop whose adoption decision is explicit and whose downside was bounded in every run we preregistered. The exploration rate is a real dial. Zero is a regression test that protects the user and learns slowly, one grants too much for change, and in our runs the middle was the right setting wherever there was anything to learn.
The data regime, not the learner, decided how much there was to learn. A few dozen examples installed behaviour in every domain, and the domain where the loop did nothing was the one whose traffic the shipped model already handled.
What it does not say
- The user is simulated and perfect, so the avoidance term is only tested where it cannot be wrong. A variant with a user who sometimes judges wrongly is the first piece of future work.
- Three seeds, one model at one size, template grammars over real action sets, and timings from a desktop GPU, so the evidence is the direction and consistency of the differences rather than a significance test.
- There is no control run that adopts every candidate. The nearest evidence is that the extra adoptions at were the ones that lost entries.
- Only three values of and one retry, so intermediate rates and larger retry budgets are untested in the loop.
- The fine-tuning objective is not compared, and KTO could replace the plain fine-tuning on accepted answers inside the loop without touching the gate.
What stands is that a single accept-or-reject signal can drive a learning loop with an explicit adoption test, that moderate exploration was the right setting wherever there was anything to learn, and that the data regime, not the learner, decided how much there was.
References
- Zelikman et al., STaR: bootstrapping reasoning with reasoning, NeurIPS, 2022.
- Gulcehre et al., Reinforced self-training (ReST) for language modeling, 2023.
- Rafailov et al., Direct preference optimization: your language model is secretly a reward model, NeurIPS, 2023.
- Ethayarajh et al., KTO: model alignment as prospect theoretic optimization, 2024.
- Thomas, Theocharous and Ghavamzadeh, High confidence policy improvement, ICML, 2015.
- Kirkpatrick et al., Overcoming catastrophic forgetting in neural networks, PNAS, 2017.
- Shridhar et al., ALFRED: a benchmark for interpreting grounded instructions for everyday tasks, CVPR, 2020.
- FitzGerald et al., MASSIVE: a 1M-example multilingual natural language understanding dataset, ACL, 2023.
- Li et al., On the effects of data scale on UI control agents, NeurIPS Datasets and Benchmarks, 2024.
- Google, FunctionGemma-270M-IT model card, 2025.