Manuscript Offprint

arXiv:2610.11231

Harness Compilation: Which Decisions Should a Small Vision-Language Model Keep?

Minhao Fan, Yinyi Liu, Jiayu Zhao, Zihan Teng, Song Chen, Weichen Liu

ABSTRACT

Small vision-language models may be able to read external evidence yet struggle to obtain it. We introduce Harness Compilation (HC), an offline procedure that adapts the division of work between a frozen small VLM and its external harness. A large teacher uses student execution traces to revise reusable content and control, while a separate validation set selects the deployed harness. Deployment requires neither weight updates nor teacher calls. Across seven visual question-answering settings with students of at most 9B parameters, HC improves scores over bare students by 9.9–23.9 points, averaged over three independent builds per setting. Interventions on five runtime decision types (invocation, selection, argument generation, evidence integration and abstention) show why this allocation matters: requesting evidence and generating open queries can be costly, whereas bounded choices and reading supplied text can remain useful student work. Fact cards benefit all ten evaluated students, but decision policies transfer unevenly. Recompilation for a new student model helps when the transferred interface no longer fits the student. With 100 practice items, HC exceeds answer-only LoRA on three tasks. Larger training budgets can match or surpass a fixed harness, while combining the two improves SlideVQA beyond either alone. These findings support allocating work from measured student behavior rather than uniformly removing decisions.

1 INTRODUCTION

Consider a visual assistant that answers image queries locally under limited memory and compute. Reusing a small vision-language model (VLM) avoids maintaining separate weights for each workflow. We focus on models with at most 9B parameters, adapted without weight updates or large-model calls at deployment. Privacy, unreliable connectivity and scarce labels motivate this setting. A large teacher is available only during offline adaptation.

An external harness supplies the instructions, memory and execution procedures around the model. These resources help only if the student can use them. Accessing evidence and interpreting it are different parts of the task: a student may answer correctly when a relevant fact card is supplied, yet fail when it must first request a lookup, choose an entry or generate a useful query. In that case, the obstacle arises before the evidence is read. A harness can therefore impose demands that exceed the capabilities of the model it is meant to assist.

Our central hypothesis is that a harness’s benefit depends not only on what it provides, but also on which decisions it leaves to the model. Which decisions should a small VLM retain? Recent work automates harness construction through code search and execution feedback (Lee et al., 2026; Park et al., 2026; Yang et al., 2026), including systems for frozen VLMs (Sun et al., 2026). We ask how the executor’s observed behavior should shape this division of work.

We introduce Harness Compilation (HC), an offline procedure that fits this division of work to a target student. The teacher proposes reusable content and control, executes the candidate through

∗^{*}An earlier version of this work is currently under review.

†^{\dagger}Correspondence to: minhao001@e.ntu.edu.sg and liu@ntu.edu.sg.

References (37)