MoMaTune: Model, Match, Then Tune Language Models for Numerical Records
Organizations: Amazon
Abstract
Despite remarkable progress in language understanding and generation, decoder language models continue to exhibit striking failures on numerical data. Numerical examples are typically serialized as text by concatenating feature names with their values (e.g., fat:3.4), while conventional task adaptation applies loss only to the downstream prediction target. This leaves two structures weakly supervised: within-value sensitivity, where digit position determines numerical magnitude, because token cross-entropy contains no explicit numerical metric; and across-field structure, where measurements in the same record are statistically dependent, because target-only tuning provides no direct loss on the measurements or their dependencies. We introduce MoMaTune (Model, Match, then Tune), a two-stage post-training strategy organized around these supervision gaps. Stage 1 applies Model, ordinary next-token prediction densely over label-free serialized records, and optionally adds Match, a same-record consistency objective that aligns representations of different partial views of the same example. Stage 2 applies Tune, supervised fine-tuning for downstream target prediction. We evaluate MoMaTune on 169,285 records from eight public datasets, with 339 of 340 input fields numerical. At 1.5B parameters, Model raises the eight-dataset masked-value imputation aggregate from 0.106 to 0.401, while the three-dataset correct-context gain rises from 0.058 to 0.167. On diagnostics, Model also increases sensitivity to numerically consequential digit changes, while Match improves robustness to informative partial views. Adding Tune yields higher target-supervised embedding aggregates for each tested Stage-1 parent, and the two-stage recipes obtain higher aggregate scores than Tune alone. The same pattern is observed at 4B, 9.6B, and 27B parameters when model embeddings are used for downstream prediction.
Figures & tables
| Model / recipe | Classification: ROC–AUC | Regression: | Emb-8 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MiniBooNE | HIGGS | Supercond. | YearPred | Naval | CPU act. | Protein | USDA | ||
| Frozen decoder LMs (mean-pooled hidden states) | |||||||||
| Qwen3-4B | .960 | .642 | .783 | .160 | .893 | .926 | .332 | .940 | .705 |
| Qwen3-8B | .955 | .636 | .797 | .172 | .917 | .931 | .330 | .946 | .711 |
| Qwen3.5-9B | .954 | .644 | .807 | .149 | .897 | .928 | .349 | .939 | .708 |
| Qwen3-14B | .959 | .660 | .809 | .156 | .929 | .947 | .342 | .951 | .719 |
| Model / recipe | Within-10% completion accuracy | Gen-8 | |||||||
|---|---|---|---|---|---|---|---|---|---|
| MiniBooNE | HIGGS | Supercond. | YearPred | Naval | CPU act. | Protein | USDA | ||
| Zero-shot decoder LMs | |||||||||
| Qwen3-4B | .006 | .130 | .292 | .024 | .144 | .194 | .000 | .260 | .131 |
| Qwen3-8B | .004 | .142 | .282 | .024 | .152 | .168 | .000 | .258 | .129 |
| Qwen3.5-9B | .006 | .172 | .280 | .034 | .122 | .174 | .000 | .286 | .134 |
| Qwen3-14B | .002 | .158 | .294 | .030 | .140 | .172 | .000 | .290 | .136 |
| Model / recipe | Macro within-10% accuracy | Per-dataset | ||||
|---|---|---|---|---|---|---|
| Correct | Mismatched | USDA | Supercond. | MiniBooNE | ||
| Frozen base | .142 | .084 | +.058 | +.064 | +.115 | -.004 |
| Model | .338 | .171 | +.167 | +.170 | +.284 | +.047 |
| Field-permuted Model | .463 | .193 | +.271 | +.244 | +.472 | +.096 |
| Scale | Frozen checkpoint Model | Field-permuted Model + Match MoMaTune | Tune only MoMaTune |
|---|---|---|---|
| 1.5B | .878 .897 (+.019) | .904 .914 (+.010) | .891 .914 (+.023) |
| 4B | .894 .915 (+.021) | .922 .930 (+.008) | .910 .930 (+.020) |
| 9.6B | .900 .930 (+.030) | .934 .935 (+.001) | .926 .935 (+.009) |
| 27B | .903 .933 (+.030) | .936 .942 (+.006) | .927 .942 (+.015) |
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Tokenization | Model | Spearman | |
|---|---|---|---|
| One digit per token | Qwen2.5-1.5B-Instruct | 2.14 | 0.276 |
| One digit per token | Qwen3-14B | 2.04 | 0.196 |
| One digit per token | Mistral-7B-v0.3 | 1.65 | 0.191 |
| One digit per token | Gemma-4-12B | 1.12 | 0.131 |
| Groups of up to three | phi-4 | 1.94 | 0.353 |
| Groups of up to three | OLMo-2-7B | 1.81 | 0.159 |
| Dataset | Task | Numeric fields | Text fields | Records | Target |
|---|---|---|---|---|---|
| MiniBooNE | cls. | 50 | 0 | 30,000 | signal |
| HIGGS | cls. | 28 | 0 | 30,000 | class |
| Superconductivity | reg. | 79 | 0 | 21,263 | critical temperature |
| USDA FoodData | reg. | 48 | 1 | 7,896 | energy (kcal) |
| CPU activity | reg. | 21 | 0 | 8,192 | user CPU % |
| Naval propulsion | reg. | 14 | 0 | 11,934 | compressor decay |
| Dataset | Numeric | Text | Train | Val. | Test | Gen. | Target range / classes |
|---|---|---|---|---|---|---|---|
| MiniBooNE | 50 | 0 | 24,000 | 3,000 | 3,000 | 500 | binary |
| HIGGS | 28 | 0 | 24,000 | 3,000 | 3,000 | 500 | binary |
| Superconductivity | 79 | 0 | 17,010 | 2,126 | 2,127 | 500 | |
| USDA FoodData | 48 | 1 | 6,316 | 789 | 791 | 500 | |
| CPU activity | 21 | 0 | 6,553 | 819 | 820 | 500 | |
| Naval propulsion | 14 | 0 | 9,547 | 1,193 | 1,194 | 500 |
| Dataset | Prediction target | Task type | Embedding metrics | Generation metrics |
|---|---|---|---|---|
| MiniBooNE | signal | binary classification | Acc., ROC-AUC | impute ; lookup ; PPL |
| HIGGS | class | binary classification | Acc., ROC-AUC | target Acc. ; impute ; lookup ; PPL |
| Superconductivity | critical temperature | regression | ; MAE | impute ; lookup ; PPL |
| USDA FoodData | energy (kcal) | regression | ; MAE | impute ; lookup ; PPL |
| CPU activity | user CPU % | regression | ; MAE | target log error ; impute ; lookup ; PPL |
| Naval propulsion | compressor decay | regression | ; MAE | target log error ; impute ; lookup ; PPL |
| Checkpoint | Scale | Decoder architecture | Vocabulary |
|---|---|---|---|
| Qwen2.5-1.5B-Instruct | 1.5B | Dense Qwen2 decoder | 151,936 |
| Qwen3-4B-Instruct-2507 | 4B | Dense Qwen3 decoder | 151,936 |
| Qwen3.5-9B | 9.6B | 32-layer hybrid full/linear-attention decoder | 248,320 |
| Qwen3.8-27B | 27B | 64-layer hybrid full/linear-attention decoder | 248,320 |
| Recipe | Stage-1 order / views | Stage-1 objective | Stage 2 | Budget | Purpose |
| Frozen decoder | fixed-order / 1 | none | – | – | frozen initialization |
| Model | fixed-order / 1 | Model | – | 2 epochs | primary baseline |
| Match only | fixed-order / 1 | Match only (disjoint views) | – | 2 epochs | consistency-only control |
| Model + Match | fixed-order / 1 | Model + Match (disjoint views) | – | 2 epochs | Model + Match recipe |
| Tune only | fixed-order / 1 | none | fixed-order Tune | Tune only | no-Stage-1 control |
| Extended-compute Model | fixed-order / 1 | Model | – | 20 epochs | 10 compute |
| Recipe | MiniBooNE | HIGGS | Supercond. | YearPred | Naval | CPU act. | Protein | USDA | Mean 8 |
|---|---|---|---|---|---|---|---|---|---|
| Field-permuted Model Tune | .963 | .697 | .817 | .224 | .960 | .970 | .424 | .969 | .753 |
| Field-permuted Model + Match Tune | .968 | .691 | .806 | .219 | .972 | .965 | .434 | .967 | .753 |
| Recipe | Emb-8 | Imputation |
| Frozen decoder | .688 | .106 |
| Model | .730 | .401 |
| Match only | .614 | .033 |
| Model + Match | .733 | .401 |
| Field-permuted Model | .739 | .448 |
| Field-permuted Model + Match | .740 | .445 |
| Protein | USDA | ||
| 0.5 | 0.00 | .396 | .942 |
| 0.5 | 0.25 | .411 | .940 |
| 0.5 | 0.50 | .415 | .939 |
| 0.5 | 1.00 | .420 | .937 |
| 0.5 | 2.00 | .416 | .938 |
| 0.5 | 4.00 | .414 | .938 |
| Model / recipe | Resources | MiniBooNE | HIGGS | Mean | ||
|---|---|---|---|---|---|---|
| ACC | ROC–AUC | ACC | ROC–AUC | |||
| floors / ceilings | ||||||
| F2: char-TF-IDF probe floor | 50k sparse features | 0.833 | 0.890 | 0.554 | 0.552 | .707 |
| C1: XGBoost raw-feature ceiling | raw features | 0.940 | 0.983 | 0.706 | 0.788 | .854 |
| zero-shot decoder LLMs (18 models) | ||||||
| Qwen2.5-1.5B | 1.5B | 0.898 | 0.956 | 0.617 | 0.655 | .781 |
| Model / recipe | Resources | Supercond. | USDA | CPU | Naval | Protein | YearPred | Mean |
|---|---|---|---|---|---|---|---|---|
| floors / ceilings | ||||||||
| F2: char-TF-IDF probe floor | 50k sparse features | 0.865 | 0.860 | 0.281 | 0.904 | 0.201 | 0.005 | .519 |
| C1: XGBoost raw-feature ceiling | raw features | 0.916 | 0.997 | 0.985 | 0.996 | 0.623 | 0.277 | .799 |
| zero-shot decoder LLMs (18 models) | ||||||||
| Qwen2.5-1.5B | 1.5B | 0.769 | 0.910 | 0.891 | 0.860 | 0.311 | 0.152 | .649 |
| Qwen3-1.7B | 1.7B | 0.778 | 0.920 | 0.886 | 0.885 | 0.316 | 0.155 | .657 |
| Model / recipe | Resources | Supercond. | USDA | CPU | Naval | Protein | YearPred | Mean |
|---|---|---|---|---|---|---|---|---|
| floors / ceilings | ||||||||
| F2: char-TF-IDF probe floor | 50k sparse features | 8.60 | 44.30 | 8.83 | 26.03 | 4.46 | 8.13 | 16.725 |
| C1: XGBoost raw-feature ceiling | raw features | 5.59 | 4.75 | 1.48 | 6.57 | 2.70 | 6.62 | 4.618 |
| zero-shot decoder LLMs (18 models) | ||||||||
| Qwen2.5-1.5B | 1.5B | 12.10 | 35.93 | 4.29 | 41.12 | 4.11 | 7.33 | 17.480 |
| Qwen3-1.7B | 1.7B | 11.84 | 34.51 | 4.45 | 37.67 | 4.10 | 7.32 | 16.648 |
| Model / recipe | Resources | Supercond. | USDA | CPU | Naval | Protein | YearPred | Mean |
|---|---|---|---|---|---|---|---|---|
| floors / ceilings | ||||||||
| F2: char-TF-IDF probe floor | 50k sparse features | 0.930 | 0.928 | 0.538 | 0.951 | 0.459 | 0.081 | .648 |
| C1: XGBoost raw-feature ceiling | raw features | 0.957 | 0.999 | 0.993 | 0.998 | 0.790 | 0.527 | .877 |
| zero-shot decoder LLMs (18 models) | ||||||||
| Qwen2.5-1.5B | 1.5B | 0.878 | 0.954 | 0.945 | 0.928 | 0.558 | 0.391 | .776 |
| Qwen3-1.7B | 1.7B | 0.883 | 0.959 | 0.942 | 0.941 | 0.564 | 0.395 | .781 |
| Model / recipe | Classification: ROC–AUC | Regression: | Emb-2 |
|---|---|---|---|
| Census-KDD (95.3% text) | NYC-Taxi (3.0% text) | ||
| Frozen decoder LMs (mean-pooled hidden states) | |||
| Qwen3-8B | .940 | .444 | .692 |
| Gemma-4-12B | .937 | .490 | .713 |
| MoMaTune framework (Qwen2.5-1.5B backbone) | |||
| Zero-shot frozen decoder | .941 | .433 | .687 |
| Recipe | 95% CI | Spearman | |
|---|---|---|---|
| Frozen decoder | 2.078 | [1.135, 3.761] | 0.261 |
| Model | 13.832 | [9.363, 19.260] | 0.342 |
| Match only | 1.008 | [0.871, 1.162] | -0.011 |
| Model + Match | 6.134 | [4.472, 8.106] | 0.333 |
| Field-permuted Model | 17.822 | [9.559, 28.420] | 0.394 |
| Field-permuted Model + Match | 3.038 | [1.266, 8.038] | 0.376 |
| Recipe | Same-record margin | Displacement | Displacement 95% CI | Full AUC | Half AUC | Half AUC 95% CI | Retention |
|---|---|---|---|---|---|---|---|
| Frozen decoder | -0.000243 | 0.002419 | [0.002405, 0.002432] | 0.9357 | 0.6937 | [0.6727, 0.7148] | 0.7414 |
| Model | -0.002811 | 0.091574 | [0.090951, 0.092195] | 0.9547 | 0.5841 | [0.5583, 0.6094] | 0.6118 |
| Match only | 0.000000 | 0.00000306 | [0.00000301, 0.00000310] | 0.8903 | 0.7187 | [0.6999, 0.7372] | 0.8072 |
| Model + Match | 0.000036 | 0.012001 | [0.011934, 0.012068] | 0.9515 | 0.5331 | [0.5096, 0.5569] | 0.5602 |
| Field-permuted Model | -0.001106 | 0.004678 | [0.004660, 0.004697] | 0.9511 | 0.7192 | [0.7034, 0.7352] | 0.7562 |
| Field-permuted Model + Match | -0.000027 | 0.000306 | [0.000305, 0.000307] | 0.9526 | 0.7584 | [0.7420, 0.7754] | 0.7962 |
| Arm | MB | HIGGS | Superc. | USDA | CPU | Naval | Protein | Year | Mean |
|---|---|---|---|---|---|---|---|---|---|
| Frozen | .956 | .655 | .769 | .910 | .891 | .860 | .311 | .152 | .688 |
| Model | .968 | .675 | .808 | .914 | .954 | .920 | .390 | .213 | .730 |
| Model + Match | .968 | .671 | .813 | .915 | .953 | .923 | .408 | .210 | .733 |
| Match only | .941 | .607 | .670 | .869 | .873 | .618 | .242 | .093 | .614 |
| Model , 10 compute | .971 | .691 | .820 | .920 | .930 | .936 | .436 | .245 | .744 |
| Field-permuted Model | .967 | .664 | .808 | .942 | .969 | .948 | .396 | .215 | .739 |
| Training recipe | Scale | Embedding axis | |||
|---|---|---|---|---|---|
| MiniBooNE AUC | Supercond. | USDA | Mean | ||
| Frozen decoder | 1.5B | .956 | .769 | .910 | .878 |
| 4B | .960 | .783 | .940 | .894 | |
| 9.6B | .954 | .807 | .939 | .900 | |
| 27B | .958 | .804 | .946 | .903 | |
| Model | 1.5B | .968 | .808 | .914 | .897 |
| Model | Post-training state | MB | HIGGS | Superc. | USDA | CPU | Naval | Protein | Year | Mean |
|---|---|---|---|---|---|---|---|---|---|---|
| 1.5B | Frozen | .956 | .655 | .769 | .910 | .891 | .860 | .311 | .152 | .688 |
| 1.5B | Model | .968 | .675 | .808 | .914 | .954 | .920 | .390 | .213 | .730 |
| 4B | Frozen | .960 | .642 | .783 | .940 | .926 | .893 | .332 | .160 | .705 |
| 4B | Model | .970 | .678 | .830 | .944 | .961 | .951 | .433 | .227 | .749 |
| 9.6B | Frozen | .954 | .644 | .807 | .939 | .928 | .897 | .349 | .149 | .708 |
| 9.6B | Model | .974 | .739 | .857 | .958 | .970 | .986 | .506 | .240 | .779 |
| Model | Post-training state | MB | HIGGS | Superc. | USDA | CPU | Naval | Protein | Year | Mean |
|---|---|---|---|---|---|---|---|---|---|---|
| Median floor | – | .242 | .232 | .276 | .134 | .242 | .238 | .282 | .048 | .212 |
| 1.5B | Frozen | .004 | .126 | .250 | .196 | .158 | .086 | .000 | .028 | .106 |
| 1.5B | Model | .214 | .288 | .494 | .288 | .366 | .914 | .576 | .070 | .401 |
| 4B | Frozen | .006 | .130 | .292 | .260 | .194 | .144 | .000 | .024 | .131 |
| 4B | Model | .226 | .296 | .572 | .342 | .388 | .914 | .618 | .076 | .429 |
| 9.6B | Frozen | .006 | .172 | .280 | .286 | .174 | .122 | .000 | .034 | .134 |
| Training recipe | Scale | MiniBooNE | Supercond. | USDA | Mean |
|---|---|---|---|---|---|
| Frozen decoder | 1.5B | .004 | .250 | .196 | .150 |
| 4B | .006 | .292 | .260 | .186 | |
| 9.6B | .006 | .280 | .286 | .191 | |
| 27B | .008 | .350 | .288 | .215 | |
| Model | 1.5B | .214 | .494 | .288 | .332 |
| 4B | .226 | .572 | .342 | .380 |
| Recipe | Model view | Match / Tune | Embedding | Imputation |
|---|---|---|---|---|
| Frozen decoder | – | – | .903 | .215 |
| Model | default view | – | .933 | .476 |
| Model + Match | default view | Match | .934 | .465 |
| Tune only | – | Tune only | .927 | .065 |
| Extended-compute Model | default view, 10 | – | .920 | .479 |
| Field-permuted Model | permuted-prefix views | – | .936 | .613 |
| Recipe | HIGGS Acc. | CPU | Naval | Protein |
|---|---|---|---|---|
| Task-specific floor | 0.518 | 0.086 | 0.013 | 0.755 |
| Frozen decoder | 0.091 | n/p (100%) | n/p (89%) | n/p (100%) |
| Model | 0.014 | n/p (100%) | n/p (100%) | n/p (100%) |
| Tune only | 0.720 | 0.013 | 0.002 | 0.310 |
| Model Tune | 0.714 | 0.022 | 0.002 | 0.301 |
| Model + Match Tune | 0.722 | 0.012 | 0.002 | 0.294 |
LLM Post-Training
Large language model post-training adapts pretrained models into more useful, reliable, and specialized assistants through supervised and preference-based learning.
See all 246 papers