The numeric settings of a multi-stage LLM pipeline (a compound AI system) are the usual target of tuning. We tuned all of them for an LLM pipeline for schema matching and mapping, with accuracy and cost as joint objectives, and we show what this buys, what it cannot buy, and where the remaining accuracy is. First, tuning buys cost and a little accuracy. On 35 tasks, with whole groups of tasks held out from tuning, one tuned configuration gains 2.9 points of top-1 accuracy (HR@1) over the default at 18% more cost, and another keeps the accuracy of the default at 32% lower cost. Second, the accuracy depends on a choice that numeric tuning cannot reach. Restricting the search for each source column to one assigned target table changes HR@1 by +30 points on a MIMIC-III to OMOP task and by -52 points on a task built from database views, more than numeric tuning gains on nine of ten test tasks. Neither setting is right for all tasks: on the larger set of 41 tasks used for the remaining results, mean HR@1 is 75.7% with the restriction (the default) and 83.1% without it. Third, choosing the setting per task is not enough either: even an oracle that picks the better setting for each task reaches only 87.8% on the 41 tasks, because the better setting differs between the columns of one task. The pipeline therefore runs both settings, and an LLM judge chooses among their candidate answers on the 26% of columns on which they disagree. This reaches 91.5% HR@1 on the 41 tasks, at 5.9 times the cost of the default, about one cent per column.
Figures & tables
Figure 1: The configurations of the paper on the same 35 tasks (three seeds; mean HR@1 over the tasks and cost of one pass over all tasks). The two tuned configurations were constructed with the group of each task held out. Tuning the numeric settings gives 2.9 points for 18% more cost, or the accuracy of the default for 32% less cost. Running both settings of the table step and letting an LLM judge choose per column gives 14.3 points at seven times the cost. On the larger set of 41 tasks the judge reaches 91.5% at 5.9 times the cost of the default ( Table 6 ). The accuracy axis starts at 60%.
Figure 2: Architecture of the method. Top: the numeric settings are tuned offline; stored outputs are replayed under grouped cross-validation, each stage is selected by accuracy first and cost second, and each exchange rate λ gives one complete configuration. Middle: a structural setting is measured in complete runs for each of its values; if no value is best on all tasks, it is not fixed. Bottom: at run time the pipeline is then run once with each value (in the experiments of this paper with the default numeric settings; the combination with the tuned settings is not yet measured), and a judge selects among the candidate answers for every item on which the first answers differ. The orange box is the only call to a language model outside the pipeline; blue boxes are the outcomes of each part.
Figure 3: The pipeline for schema matching and mapping. Each source column passes through the stages from left to right; the settings of each stage are given below it. The two stages in blue form the table step, which is studied as a structural setting with the values on and off .
Stage
Settings
Score; cost
Table assignment
Number of assignment calls
Share of source tables assigned to an accepted table; assignment calls
Planning
Proposals per column, columns shown per table, metadata shown
Share of transformation columns with a complete correct plan; planner tokens
Candidate pool
Pool cap, retrieval depth, cosine and BM25 cutoffs
Share of columns whose correct answer is in the pool; pool entries
Cascade
Threshold δ , primary bias b
Share of columns whose first result is in an accepted table (routing); matcher calls
Reranking
Metadata shown per candidate, verification call, score weights
HR@1; matcher tokens
Abstention
Threshold ϑ
Decision F1; none
Table 1: Stages, their settings, and the score and cost on which each stage is selected.
Exchange rate
Cost
Cost change
HR@1
HR@1 change
Better / worse
Default
$3.93
—
76.4
—
—
λ=0
$4.62
+18%
79.3
+2.9
21 / 4
λ=0.5
$4.31
+10%
78.6
+2.2
21 / 6
λ=1
$4.28
+9%
78.1
+1.7
20 / 7
λ=2
$4.05
+3%
78.1
+1.7
21 / 6
λ=4
$3.14
−20%
77.1
+0.7
13 / 9
Table 2: Configurations constructed without the held-out group and run end to end on that group (35 tasks, 12 groups, three seeds): cost of one pass over all tasks and mean HR@1 over the tasks, with changes against the default. The last column counts the tasks on which the configuration is better and worse than the default by at least one point. All nine exchange rates are shown, including those whose configuration is not better than another row on both columns.
Numeric tuning
Table step
Task
Default HR@1
Largest gain
Largest loss
on − off
Accounts receivable
91.8
−0.3
−2.4
+16.3
Fivetran Jira
78.2
+10.9
−2.0
−10.2
Fivetran QuickBooks
25.5
+13.7
−5.9
−51.0
Fivetran Stripe
71.8
+0.0
−15.5
−8.7
Fivetran Workday
65.1
+4.1
−4.6
−25.1
Table 3: Effect of numeric tuning and of the table step on the ten test tasks, in points of HR@1 (three seeds). Numeric tuning: largest gain and largest loss against the default over the policies P1 to P6. Table step: HR@1 with the step on minus HR@1 with it off. The first three columns come from the runs of the numeric study and the last from the separate runs of the table-step study, in which the default scored somewhat differently on some tasks ( Table 8 ) because the answers of the model vary between runs.
Source column
Answer with the step on
Answer with the step off
Judge chose
home_currency
INVOICE_ITEM.HOME_CURRENCY
RATE_PLAN_CHARGE.HOME_CURRENCY
answer of on
correct
wrong
correct
invoice_number
INVOICE_ITEM.INVOICE_ID
INVOICE.INVOICE_NUMBER
answer of off
wrong
correct
correct
Table 4: Two columns of one source table of the Fivetran Zuora task, zuora__line_item_history , which the table step assigns to invoice_item . Each needs a different setting of the table step.
Mean HR@1
Judge
Within 1 point of
Method
33 tasks
8 tasks
All 41
cost
the better setting
Table step on (default)
79.5
67.7
77.2
—
13/41
Table step off
83.7
79.9
82.9
—
30/41
Confidence rule
88.7
83.4
87.7
—
25/41
Judge: Claude Haiku 5.5
88.4
85.0
87.8
$0.33
32/41
Oracle per task
89.9
83.4
88.6
—
41/41
Table 5: Combining the two settings of the table step on the same saved candidates (one run, 41 tasks, 3,162 columns). The 8 tasks are MIMIC-III and the seven Fivetran tasks, on which the margin of the confidence rule was chosen. The last column counts the tasks on which the method is within one point of, or above, the better of the two settings for that task. The cost of a judge is the total of its 816 calls. In the control, the judge sees the candidates of one setting on the same 816 columns.
Mean HR@1
Cost
Method
33 tasks
8 tasks
All 41
(all 41)
Table step on (default)
78.4
64.9
75.7
$5.79
Table step off
83.9
79.6
83.1
$6.15
Oracle per task
88.8
83.4
87.8
$5.85
Confidence rule
88.1
84.4
87.4
$11.64
Judge: Claude Fable 5.2
92.1
89.0
91.5
$33.97
Table 6: The table step on the 41 tasks in complete runs: mean HR@1 over three seeds and cost of one pass over all tasks. The 33 tasks of the first column were not used to choose the margin of the confidence rule; the 8 tasks of the second were. The oracle per task costs one pass, but it can be chosen only with the labels.
Group
Tasks
On
Off
Confidence rule
Judge
Fivetran
7
64.7
85.9
86.8
92.1
Entity integration (SINT)
8
81.2
93.8
90.7
95.3
RACT / Sakila
8
78.2
83.7
85.9
89.1
INSPIRE
3
59.3
42.6
57.5
70.4
OMOP (MIMIC-III, Synthea)
2
78.2
48.6
82.0
81.5
AdventureWorks (marts, views)
2
44.0
90.5
89.9
93.5
Table 7: Mean HR@1 per group for the table step on the 41 tasks in complete runs (three seeds). Bold: the best method of the row.
Task
Scored columns
On
Off
Judge
Jira
49
80.3
90.5
98.0
QuickBooks
17
31.4
82.3
84.3
Stripe
84
67.9
76.6
83.3
Workday
65
55.9
81.0
95.9
Xero
67
63.7
85.1
91.5
Zendesk
97
76.0
95.2
94.2
Table 8: The seven Fivetran tasks: HR@1 in complete runs (mean of three seeds).
Configuration
Tasks and protocol
HR@1
Cost
Against the reference
Numeric settings
Default
35 tasks, three seeds
76.4
$3.93
reference
Tuned for accuracy ( λ=0 )
35 tasks, groups held out
79.3
$4.62
+2.9 points, +18% cost
Tuned with cost ( λ=8 )
35 tasks, groups held out
76.8
$2.66
+0.4 points, −32% cost
Table step, default numeric settings
On (default)
41 tasks, three seeds
75.7
$5.79
reference
Table 9: The configurations of the three parts. Cost is the cost of one pass over the tasks named in the second column; the two sets of tasks have different costs and accuracies and are not comparable with each other.
Figure 4: Accuracy against cost in complete runs. Left: the configurations of Table 2 , one for each exchange rate λ , on held-out groups; the dashed line is the accuracy of the default. Right: the table step on the 41 tasks with the default numeric settings; the line joins the fixed setting off , the confidence rule and the judge, and the dashed line is the better of on and off chosen for each task with the labels (oracle per task).
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Parameter
Default
Search values
What it controls
Table assignment
Assignment calls L
5
5, 1, 3, 7, 9
Calls that each assign every source table.
Planning
Maximum plans
3
3, 1, 2, 5
Proposals returned for each source column.
Columns per table
40
40, 20, 80
Maximum columns shown from each candidate table.
Planner metadata
ds
ds, none, d, s
Optional descriptions and/or sample values.
Appendix
Table 10: Parameter definitions, defaults and discrete search domains.
Stage
Default setting
Selected setting
Effect
Cost
Table assignment
5 assignment calls
1 assignment call
−0.5
−80%
Planning
3 proposals; 40 columns per table; descriptions and samples
5 proposals; 80 columns per table; no metadata
+3.4
+20%
Candidate pool
cap of 50 candidates
unchanged
—
—
Cascade
search linked tables if confidence ≤0.40 ; bias 0.2
search linked tables if confidence ≤0.51 ; bias 0.1
+3.3
+6%
Reranking
full metadata; verification call
unchanged
—
—
Appendix
Table 11: Setting selected for each stage by the accuracy-then-cost rule. The effect is the change of the stage score on held-out families against the default, in points; the cost is the change of the stage’s own cost against the default. The stage scores are defined in Table 1 .
Figure 5: Accuracy against cost per stage, replayed from saved runs on all tasks of the stage. Grey: every setting measured. Blue: settings that no other setting beats on both axes. Orange: the setting chosen by the accuracy-then-cost rule under held-out cross-validation. Open circle: the earlier default. For reranking the chosen point is the default, because the cheaper points lose accuracy on held-out families.
Policy
λ
Cascade δ , b
Planner (transformation tasks)
Pool cap
Reranking prompt
P1
0–2
0.65, 0.0
5, 80, descriptions
50
full, verification on
P2
4
0.65, 0.0
5, 80, descriptions
50
descriptions only, verification on
P3
8
0.60, 0.1
5, 80, none
20
no metadata, verification on
P4
16
0.55, 0.1
5, 80, none
10
no metadata, verification off
P5
32
0.50, 0.1
default (3, 40, descriptions and samples)
10
no metadata, verification off
P6
64
0.35, 0.1
default
10
no metadata, verification off
Appendix
Table 12: The policies obtained from the exchange rate λ . Cascade: the linked tables are searched when the top confidence is at most δ ; b is the primary bias. Planner: proposals, columns per table, metadata.
Policy
Cost
Cost change
HR@1
HR@1 change
Non-dominated
P6
$0.62
−66%
64.3
−6.5
yes
P5
$0.65
−64%
66.6
−4.2
yes
P4
$0.66
−64%
68.1
−2.7
yes
P3
$1.10
−40%
72.1
+1.3
yes
P2
$1.70
−7%
74.4
+3.6
yes
Default
$1.82
—
70.8
—
no
Appendix
Table 13: Fixed policies measured end to end on the ten test tasks: cost of one pass and mean HR@1 over three seeds, with changes against the default. “Single policy” is the one selected by the rule of Section 4.4 ( Table 11 ); “accuracy-only” was selected without cost. The last column marks the policies that no other row beats on both cost and accuracy.
Task held out
Group held out
Selector
Cost
HR@1
Cost
HR@1
Decider, goal balanced
−19%
+4.7
+3%
−0.9
Decider, goal accuracy
−17%
+3.4
+3%
−0.9
Decider, goal cost
−61%
−2.0
−64%
−2.7
Rule: cheapest within one point of the most accurate
−7%
+3.6
−24%
+0.4
Rule: most accurate on the other tasks
+31%
+1.9
+15%
+1.7
Appendix
Table 14: Selecting one policy per task on the ten test tasks, with each task or each whole group held out from the evidence. Changes are against the default, whose cost is 1.82perpassat70.80.03 per decision).
Selector
HR@1
Right calls
Decision cost
Always on
75.7
11/41
—
Always off
83.1
31/41
—
Decider (Opus 5.5), schema profile
82.8
28/41
$3.6
Decider (Fable 5.2), schema profile
83.1
29/41
$7.6
Decider (Fable 5.2), profile and 36 label-free signals
84.0
31/41
$15.2
Decider (Fable 5.2), profile and label-free examples
84.9
33/41
$28.2
Appendix
Table 15: Table step on or off, selected per task on the 41 tasks, every group held out. Right calls count the tasks on which the better setting was selected (a difference below one point counts as right). Decision cost is the total for the 41 decisions.
Decision F1
Held-out task
HR@1
Never abstain
ϑ from the other task
Task’s own best ϑ
MIMIC-III
62.7±1.7
53.2±1.1
49.2±1.3 ( ϑ=0.65 )
67.9±0.4 ( ϑ=0.45 )
Internal ERP
98.9±0.5
51.7±0.2
81.0±0.1 ( ϑ=0.45 )
93.4±0.4 ( ϑ=0.65 )
Appendix
Table 16: Abstention threshold ϑ , chosen on one task and scored on the other, with the accuracy-only policy. Mean and standard deviation over three seeds.
Task
Group
Tables
Columns
Scored
On
Off
Rule
Judge
MIMIC-III to OMOP ∗
OMOP
26 → 38
298 → 427
153
66.0
35.7
67.5
67.3
Synthea to OMOP
OMOP
12 → 38
111 → 427
38
90.3
61.4
96.5
95.6
AR canonical to operational
AR
6 → 4
98 → 136
98
91.8
75.5
89.8
90.1
Fivetran Jira (dbt) ∗
Fivetran
8 → 18
208 → 133
49
80.3
90.5
92.5
98.0
Fivetran QuickBooks (dbt) ∗
Fivetran
8 → 39
185 → 860
17
31.4
82.3
76.5
84.3
Fivetran Stripe (dbt) ∗
Fivetran
7 → 27
285 → 666
84
67.9
76.6
80.5
83.3
Appendix
Table 17: The 41 tasks of the table-step study: group, schema sizes (source → target), scored columns and mean HR@1 over three seeds with the table step on, with it off, for the confidence rule and for the judge. † added for this study. ∗ used to choose the confidence rule’s margin.