SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.18116 · 2026

You Are What You Prompt: Prompt Quality, Domain Shift, and Uncertainty in Agrifood Vision-Language Models Calidad de prompts, cambio de dominio e incertidumbre en modelos visión-lenguaje agroalimentarios

Andrea Morales-Garzón, Salvador Lopez-Joya, Miguel López-Pérez, Maria Martin-Bautista

arXiv · PDF

Code that ran

8 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.18116.json · badge: /api/ran/2608.18116.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ugritai/pid_agrifood community
Papers with Code archive
8 ran · 1 no recorded run
FunctionStatusWhere it lives
_softmax Ran
ran, violated the contract we drafted
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("790891f7610d5626")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small numpy array with distinct values
x = np.array([1.0, 2.0, 3.0, 4.0])

# Create a temperature parameter
tau = 0.5

ARGS = {
    "x": x,
    "tau": tau
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
auroc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("f638c04aac72f2f2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct valid arguments for auroc function
# The function expects:
# - scores: np.ndarray of prediction scores
# - labels: np.ndarray of binary labels (1=correct, 0=wrong)

# Create sample data with mixed labels (not all 0s or all 1s)
scores = np.array([0.1, 0.4, 0.6, 0.9, 0.2, 0.8])
labels = np.array([0, 0, 1, 1, 0, 1])

ARGS = {
    "scores": scores,
    "labels": labels,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_D Ran
ran, violated the contract we drafted
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("8c72bd70ab783301")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (1,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

np.random.seed(0)

# Read the function signature:
# compute_D(single_probs: np.ndarray, scores_norm: np.ndarray, mu: np.ndarray, tau_agree: float)

# From the function body:
# - single_probs: used with .astype(np.float32), clipped, then indexed [None] and summed over -1
#   Shape should be (num_classes,) or similar. Let's use (4,) for 4 classes
# - scores_norm: passed to _softmax, used with [:, None] indexing and summed
#   Shape should be (num_experts,) or similar. Let's use (3,) for 3 experts
# - mu: clipped, indexed with [None], used in division with single_probs
#   Shape should be (4,) to match single_probs classes
# - tau_agree: float temperature parameter

single_probs = np.array([0.1, 0.3, 0.4, 0.2], dtype=np.float64)

scores_norm = np.array([1.0, 2.0, 1.5], dtype=np.float64)

mu = np.array([0.25, 0.25, 0.25, 0.25], dtype=np.float64)

tau_agree = 0.5

ARGS = {
    "single_probs": single_probs,
    "scores_norm": scores_norm,
    "mu": mu,
    "tau_agree": tau_agree,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (1,) — shape (1,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_bma Ran
ran, violated the contract we drafted
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("d7e22428cb60c7eb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Analyze the function signature and body:
# compute_bma(single_probs, scores_norm, tau_pred)
# - single_probs: used as np.ndarray, converted to float32, indexed with [*]
#   shape suggests (M, H, W) where M is number of models, H and W are spatial dims
# - scores_norm: used with _softmax, so 1D array of scores for each model
#   shape should be (M,) where M matches single_probs first dimension
# - tau_pred: float, temperature parameter

# Create small test data
np.random.seed(0)

# Number of models/ensemble members
num_models = 3
height = 2
width = 4

# single_probs: probability arrays from different models
# shape (num_models, height, width) - probabilities for each spatial location
single_probs = np.random.rand(num_models, height, width).astype(np.float32)

# scores_norm: normalized scores for each model (1D array)
# shape (num_models,) - one score per model
scores_norm = np.random.randn(num_models)

# tau_pred: temperature parameter for softmax
tau_pred = 1.0

ARGS = {
    "single_probs": single_probs,
    "scores_norm": scores_norm,
    "tau_pred": tau_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fit_c Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("ba17c277ef0db66f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small test data
batch_size = 2
num_classes = 4

# D_val: number of classes per sample (shape: batch_size,)
D_val = np.array([num_classes, num_classes], dtype=np.float32)

# mu_val: class probabilities (shape: batch_size, num_classes)
mu_val = np.array([
    [0.5, 0.3, 0.1, 0.1],
    [0.2, 0.4, 0.2, 0.2]
], dtype=np.float32)

# true_labels: ground truth class indices (shape: batch_size,)
true_labels = np.array([0, 1], dtype=np.int64)

ARGS = {
    "D_val": D_val,
    "mu_val": mu_val,
    "true_labels": true_labels,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fit_tau_a Ran
ran; our contract draft was wrong, not the code
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("d933dfbc6c78e234")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Create small test data
num_models = 3  # number of ensemble members
num_samples = 8  # number of test samples
num_classes = 4  # number of output classes

# single_probs: shape (num_models, num_samples, num_classes)
# Probability distributions from each model
single_probs = np.random.dirichlet(np.ones(num_classes), size=(num_models, num_samples))

# scores_norm: shape (num_models,)
# Normalized scores for each model
scores_norm = np.random.randn(num_models)

# true_labels: shape (num_samples,)
# Ground truth class labels
true_labels = np.random.randint(0, num_classes, size=num_samples)

# tau_pred: float
# Temperature parameter for prediction
tau_pred = 0.5

ARGS = {
    "single_probs": single_probs,
    "scores_norm": scores_norm,
    "true_labels": true_labels,
    "tau_pred": tau_pred,
    "tau_a_grid": [0.01, 0.1, 1.0, 10.0],
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
kappa Ran
ran, honoured the contract we drafted
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("ed23358b68b11710")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a simple numpy array for D parameter
# The function computes c / D, so D should be a non-zero array
D = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

# Create a scalar concentration parameter c
c = 2.5

ARGS = {
    "D": D,
    "c": c
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
selective_prediction_curve Ran
ran; our contract draft was wrong, not the code
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("2b8c24aa61efa215")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small test data
n_samples = 10
scores = np.random.rand(n_samples).astype(np.float32)
correct = np.random.randint(0, 2, size=n_samples).astype(np.float32)
n_points = 5

ARGS = {
    "scores": scores,
    "correct": correct,
    "n_points": n_points,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate Not yet run
unverified (harvested, no recorded run)
ugritai/pid_agrifood/analysis/pid.py
code served (permissive licence) · get_code("bdd106384dee6d51")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Resumen: Los modelos de visión y lenguaje permiten la clasificación zero-shot mediante descripciones en lenguaje natural, pero su rendimiento es sensible a la formulación de los prompts, especialmente en dominios especializados. El método Zeroshot Prompt Ensembling (ZPE) aborda esto ponderando los prompts según su señal discriminativa, aunque su comportamiento bajo cambio de dominio permanece inexplorado. Evaluamos ZPE en el dominio agroalimentario usando CLIP y SigLIP sobre cuatro conjuntos de datos y cuatro colecciones de prompts, cubriendo benchmarks de comida (in-distribution, ID) y agricultura (out-of-distribution). ZPE aporta beneficios limitados en condiciones ID, pero mejora sustancialmente el rendimiento y la calibración bajo cambio de dominio, donde colecciones de prompts específicas de dominio (51-52 prompts) superan consistentemente a las genéricas (247-426). El análisis léxico muestra que ZPE actúa como un detector no supervisado de alineación de dominio sin acceso a etiquetas. Además, introducimos PID (Prompt-based Inconsistency Detection), que reutiliza el desacuerdo entre prompts como señal de incertidumbre epistémica, mejorando la detección de fallos bajo cambio de dominio severo donde las medidas de confianza estándar colapsan. Palabras clave: Clasificación zero-shot, Modelos de visión y lenguaje, Ingeniería de prompts, PLN específico de dominio, Cuantificación de incertidumbre

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.18116")
get_code_for_paper("2608.18116")
have("2608.18116")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.18116.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.18116.svg)](https://syntology.ai/paper/2608.18116)

Connect an agent — have() is free.