arXiv:2609.09476cs.LGSep 2026

Manuscript Offprint

arXiv:2609.09476

From Fixed Keys to Readable Schemas: Small Language Models for Vehicle Agent Function Calls

Hamed Jafarzadeh Asl, Yuanhao Yu, Vahid Partovi Nia

Abstract

In-vehicle assistants must translate natural-language requests into accurate vehicle function calls under strict memory and latency constraints, making small language models (SLMs) attractive for on-device deployment. For such models, a key design choice is how the available function surface is presented. Two approaches are to represent each function with a dedicated Functional Token (FT) or provide function schemas directly in the prompt. FTs enable compact inference but are restricted to functions learned during training, whereas Schema-in-Prompt (SIP) can generalize to unseen functions at the cost of longer prompts and higher inference overhead. We introduce a benchmark of 9,822 single-turn examples spanning 79 vehicle functions derived from Android Automotive, including held-out functions and requests requiring refusal. We compare both approaches under matched fine-tuning across four SLMs from 270M to 1.7B parameters. On functions seen during training, scaling provides limited benefit: the 270M model can match the 1.7B model, while the strongest overall performance occurs at 0.6B. On held-out functions, FT achieves zero accuracy by construction, whereas SIP generalizes and improves substantially with scale. On out-of-scope requests, FT can invoke an unavailable function it was trained to emit, while SIP more reliably refuses based on the functions offered. This flexibility comes with higher memory use and latency. Our theoretical analysis explains how SIP enables generalization and why longer schema contexts increase inference cost. Overall, function-surface representation, rather than model scale alone, determines the capabilities and failure modes of SLM-based vehicle function calling.

1 Introduction

Reliable vehicle function calling requires an in-vehicle assistant to map a natural-language request to the correct vehicle action, including the appropriate function and arguments, or to refuse when the request cannot be satisfied. For example, “move my seat one step forward” should invoke the corresponding seat-control function with the correct arguments, as illustrated in Figure 1 (left). Unlike conventional text generation, an incorrect prediction may directly actuate physical hardware. Moreover, the available function surface can vary across vehicle models, model years, and trim levels, while deployment is constrained by memory, latency, and connectivity. These conditions make small language models (SLMs) attractive for on-device execution, but raise an important design question: how should the available functions be represented to a small model?

We study two representations with fundamentally different properties. A Functional Token (FT) approach (Chen and Li, 2026; Sowti Khiabani et al., 2025) assigns each supported function a dedicated vocabulary token learned during training. This representation is compact at inference time, but its task-level output space is tied to functions encoded during training, so supporting a new function requires adapting the representation and model. In contrast, our Schema-in-Prompt (SIP)

Figure

Figure 1: Function-calling representations and evaluation splits. Left: Functional Token represents functions as fixed vocabulary entries, while Schema-in-Prompt conditions on offered function schemas at inference time. Right: Seen functions appear as training targets, Unseen functions are withheld as targets, and Out-of-Scope requests have no suitable offered function and require refusal.

approach supplies the available function schemas in the input context. The model interprets these schemas at inference time and selects among the functions offered for the current vehicle. SIP can therefore admit functions never used as training targets, at the cost of longer prompts and additional inference computation. The resulting question is not simply whether a larger SLM produces better function calls, but how the representation of the function surface affects generalization, refusal, and deployment cost.

Existing function-calling work explores several ways to adapt language models for tool use, including API selection, call construction, and invocation decisions. For compact deployment, Octopus v2 assigns functions dedicated vocabulary entries (Chen and Li, 2026), while other work investigates function masking, retrieval, low-rank adaptation, dynamic function selection, and action-specialized models (Lin et al., 2024; Erdogan et al., 2024; Paramanayakam et al., 2024; Zhang et al., 2024). The closest prior work for in-vehicle function calling prunes a general language model and represents eight vehicle functions using dedicated vocabulary tokens (Sowti Khiabani et al., 2025). Its proprietary function set and private dataset prevent a controlled numerical comparison, while the lack of a public vehicle-specific benchmark makes it difficult to evaluate how alternative representations behave as the supported function surface changes. Language interfaces for vehicles have also been studied in adjacent settings. Talk2Car grounds passenger commands in street scenes (Deruyttere et al., 2019), DriveLM studies visual question answering for driving (Sima et al., 2024), and Talk2Drive translates natural-language commands into driving controls (Cui et al., 2023). These works primarily address perception, reasoning, planning, or driving control. We instead study single-turn selection and refusal over documented in-vehicle functions, focusing on how SLMs behave when the available function surface differs from the functions they were trained to execute.

We construct a vehicle function-calling benchmark derived from Android Automotive, separating functions observed as training targets, functions withheld as targets, and requests for which no suitable offered function exists. We use this benchmark to compare FT and SIP under matched training settings across SLMs from 270M to 1.7B parameters. Our results show that the two representations behave similarly on functions observed during training but diverge when the available function surface changes, revealing a trade-off between the flexibility of schema-conditioned function selection and its inference overhead. Our contributions are:

(i) a reproducible vehicle function-calling benchmark derived from a documented Android Automotive function surface, with separate Seen, Unseen, and Out-of-Scope evaluation;

(ii) a controlled comparison of Functional Token and Schema-in-Prompt representations across SLMs from 270M to 1.7B parameters, including their function-selection, refusal, latency, and memory behavior;

(iii) a theoretical analysis explaining the difference in task-level output support between the two representations, how schema-mediated generalization to Unseen Functions becomes possible, and why this flexibility introduces additional inference cost.

References (67)