TRANSMISSION // 2612.05290v1

Can an AI write optimization code without seeing the exact numbers?

Source published

ExAb-OPT replaces exact values and entity names in optimization problems with locally mapped placeholders before sending a hosted language model the problem structure. In tests on 288 benchmark instances, objective accuracy fell modestly while a fixed attacker recovered fewer exact numbers. The results suggest data minimization, not guaranteed confidentiality.

AI-generated conceptual illustration for Can an AI write optimization code without seeing the exact numbers?
AI-generated conceptual illustration; not documentary evidence.

Optimization models can encode sensitive details such as costs, capacities and demand. ExAb-OPT aims to let a hosted AI write solver code without receiving those exact values in its initial prompt. How well can placeholders protect exact values while keeping the resulting programs useful?

Turning a practical request—such as how to allocate production or meet demand—into an optimization program takes specialist work. A language model may help write that program, but sending a raw problem to a hosted service can expose precise costs, capacities, demands or business names. Running a powerful model locally avoids that particular disclosure but can require substantial computing and maintenance resources.

A research team proposes ExAb-OPT as a middle ground: keep exact instance values on the client’s systems while asking a hosted model to generate optimization code. The key question is whether the hosted model can still produce useful code when exact numbers are replaced with references.

Placeholders, with the values kept nearby

ExAb-OPT first uses a locally run language model to replace numeric values and identifying names with different kinds of placeholders, such as NUM_1 and NOUN_1. It aims to preserve relationships that matter to the problem: formulas, table layouts, repeated references and units. The local system keeps mappings from numeric placeholders to their original values, and from entity placeholders to their original names.

The abstracted problem goes to a hosted model, which generates solver code. The client then supplies the actual numeric values locally when it runs that code. Entity names remain local and are not needed by the solver code, according to the paper. This is “late binding”: the model sees the role and position of a value, but not its exact value in the initial prompt.

The researchers evaluated the method on 288 instances from five operations-research benchmarks. They used six hosted models to test whether the approach worked across different code generators. For a controlled comparison, they fixed one hosted model and compared direct prompts with abstracted prompts, executing generated programs locally and scoring their objective values against benchmark targets. They also tested how much exact information a fixed model-based attacker could recover from each prompt representation.

A modest accuracy drop, fewer exact numbers recovered

In the controlled comparison, objective accuracy was 81.60% with the original prompts and 78.82% with ExAb-OPT prompts—a decrease of 2.78 percentage points. Here, accuracy means that the executed program’s objective fell within a one-percent tolerance of the benchmark target; it does not establish that every part of each generated model was correct.

The fixed attacker recovered 77.38% of exact numeric targets from direct prompts, compared with 24.03% from ExAb-OPT prompts. That is a substantial reduction under this particular attack and evaluation setup. But it is not proof that the values are secret: the attacker did not recover every visible number even from the original prompts, and its results depend on its ability to extract and format guesses.

The paper also compares ExAb-OPT with generic and rule-based masking. ExAb-OPT’s average attacker-recovery rate was close to generic masking’s (17.06% versus 17.32%), while its objective accuracy was higher (78.82% versus 73.61%). Rule-based masking had a higher average recovery rate, 31.55%, and lower objective accuracy, 72.92%. These results are consistent with the authors’ argument that preserving optimization-specific structure can help a model use placeholders without losing track of how parameters relate to variables and constraints; the two comparisons do not involve equally similar recovery rates.

What the results do—and do not—show

The evaluation supports a limited claim: for these benchmark problems, a particular abstraction method reduced exact-value recovery by a fixed attacker while retaining much of the measured objective accuracy. It does not show that ExAb-OPT provides formal privacy or that a determined service could not infer values from context. The authors note that surrounding text can reveal approximate scale or meaning, and that repeated queries or auxiliary information could help reconstruction.

The reported protection concerns the initial solver-facing prompt, not every piece of information exchanged in a full deployment. The study also assumes the hosted service follows the requested code-generation protocol, though it may retain and analyze what it receives. Generated code is treated as untrusted and run in a restricted local environment—an important safeguard, but a separate security concern from hiding prompt values.

There are practical limitations too. The system’s local abstraction model was Qwen3-32B; testing smaller local models is identified as future work. Automatic checks found that numeric placeholders usually had usable mappings, but exact numeric round-tripping succeeded for 76.48% on the macro average across benchmarks, revealing inconsistencies that simple mapping checks could miss. And the main reconstruction results come from one fixed attacker, not a broad set of adaptive attacks.

The work is an arXiv preprint marked “work in progress,” so its claims should be read as preliminary rather than settled evidence. Overall, ExAb-OPT offers a design for separating access to optimization structure from access to exact values. Whether that trade-off suits real operational data will depend on stronger attack testing, reliable parameter alignment and the sensitivity of the information involved.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Teaching LLM Agents What to Remember

    Supporting evidence: Both papers report that a structured representation can reduce what a model receives while retaining useful task performance: ExAb-OPT withholds exact optimization values from the hosted prompt and reports 78.82% objective accuracy versus 81.60% for direct prompts, while the agent-state study reports near-reference task success with reduced policy input tokens. This supports only the bounded idea that selective representations can preserve utility while reducing input; the systems, tasks, and reduction metrics differ, so the results are not directly comparable.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.05290v1 — Original paper

      Excerpt reference: static/papers/2612.05290v1.md:576-594
      Basis: Paper text
      Source file SHA-256: c7036556d65a2e069d262c89c13a5be35c1db46c6aa560991430736d0d1bc8da

    • 2611.31800v1 — Original paper

      Excerpt reference: static/papers/2611.31800v1.md:64-126
      Basis: Paper text
      Source file SHA-256: 92c669fdef14aa2e57bb1f6618b1f7fe89be9c6eff650a02033a8c439dc43804

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.