Manuscript Offprint

arXiv:2610.01184

ReCast: Contract-Preserving Protection for Fixed-Interface Multimodal Reasoning

Bingchen Pei, Lichong Chen, Bingxi Zhao, Ziang Wu, Sirui Wang, Min Zhang, Yanhao Chen, Qingxu Liu, Qiang Gao, Chang-Tien Lu, Bo Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Remote multimodal models offer strong numerical reasoning capabilities over charts and speech, but sending private inputs risks exposing sensitive content. Text-only sanitization cannot directly satisfy fixed media interfaces, while identity anonymization leaves the underlying task content exposed. We introduce RECAST, an agentic plug-in framework that replaces source-specific content while preserving task-relevant relations and the required input modality. RECAST locally converts inputs into a shared textual evidence-query record, jointly rewrites entities and topics with a distilled 4B model, and substitutes values through a locally invertible, role-aware numerical map. A reconstruction agent generates and validates the required media from the protected record. The remote solver returns a program whose protected operands are restored locally before execution. On 4,000 held-out ChartQA and NMSQA examples, RECAST achieves 75.10% accuracy, retaining 92.43% of unprotected remote accuracy, while a model-based audit flags source-content leakage in 7.95% of solver-bound requests. It outperforms all evaluated local baselines, preserving the benefit of remote reasoning while reducing source-content exposure under existing media interfaces.

1 INTRODUCTION

Local-remote collaboration allows users to keep private data on their devices while leveraging a more capable remote model. This setting has been studied extensively for text. Before a request is released, a local model can rewrite it through differentially private rewriting (Meisenbacher et al., 2024; Thareja et al., 2025), adversarial anonymization (Duan et al., 2026), or privacy-conscious delegation (Hartmann et al., 2024; Siyan et al., 2025). For numerical reasoning, Zhang et al. (2026) shift the topic of a textual instance, substitute its numbers, and then recover the original answer locally from a program returned by the remote model.

However, much private evidence is not textual. Business reports present their figures in charts, while meetings and customer calls convey theirs in recordings. Reasoning over such evidence requires strong multimodal perception and numerical computation, areas in which on-device models still lag far behind remote ones. These remote models are typically accessed through service interfaces with fixed request schemas: a chart-analytics endpoint expects an image, and a spoken question-answering endpoint expects a waveform. Protection must therefore extend beyond text to the media these services consume.

Existing multimodal protections fall short of this need. Visual instruction rewriting (Mishra et al., 2025) and symbolic scene representations (Bara et al., 2022) convert the input into text, which media interfaces do not accept. Media-level protections preserve the modality but target different threats: speaker anonymization conceals voice identity (Meyer et al., 2022), adversarial perturbation prevents unauthorized speech recognition (Jin et al., 2025), and learned image transformations hide visual privacy attributes from multimodal models (Hui et al., 2026a). In each of these media-level methods,

∗^{*} Contributed equally

†^{\dagger} Project lead

1^{1} Corresponding author

Figure

Figure 1: RECAST: replacing source content while preserving task structure. Top: The illustrated alternatives address different targets: text rewriting does not directly provide the required media, dataset-level image synthesis is not paired with a specific query, and speaker anonymization retains spoken content. Bottom: RECAST jointly replaces topics, entities, and values across evidence and query while retaining task-relevant relations and the required modality. The remote solver returns a program over protected operands; the client restores the original operands locally before executing the program to recover the answer. The chart example illustrates a unified protection framework for text, charts, and speech.

the content itself, such as which entity has which value in a chart or in speech, reaches the remote model intact. Numerical tasks impose a further requirement: evidence and query must be transformed consistently, and the transformed quantities must still support both the requested computation and the recovery of the original answer.

RECAST closes this gap by separating what a task needs from what the source reveals. The task needs relations, namely which quantity belongs to which entity, which pair the query compares, and which operation it requests, whereas the source contributes entities, topics, wording, and values. RECAST is an agentic plug-in pipeline built around a shared textual evidence-query record (Fig. 1). Evidence capture plugs in a module for the input modality and locally converts the chart or recording into this record. A rewrite module jointly replaces source-specific content across evidence and query while preserving their relations, and maps the numbers under a per-request map whose inverse remains local. A modality reconstruction agent plugs in a generator for the interface contract and renders the protected record into the required modality through a generate-review-repair loop before anything reaches the solver. The remote solver returns a Python program over marked protected operands, which the local side restores and executes on the original values, extending the recovery scheme of Zhang et al. (2026) to media inputs.

The main contributions of this work are as follows:

• We propose RECAST, an agentic plug-in pipeline that links evidence capture, rewriting, and modality reconstruction through a white-box, model-independent evidence-query record, so that per-modality and per-interface modules plug in without retraining.

• We design a rewrite module in which a distilled local 4B Rewriter jointly changes names and domain while fixing relations, and a role-aware numerical map with local inversion enables exact answer recovery.

• On 4,000 held-out ChartQA and NMSQA examples, RECAST keeps 92.43% of unprotected accuracy with only 7.95% solver-bound source-content leakage. Distillation adds 6.40 accuracy points and cuts leakage from 39.75% to 7.95%, and on ChartQA, reconstructed media slightly outperforms direct protected-text release by 0.40 points.

References (66)