Padding to k: A Minimum Count in the Schema Makes Open-Weight Models Pad Their Extraction Lists
Organizations: St. Xavier’s College Maitighar, Kathmandu Tribhuvan University, Nepal
Abstract
Extraction pipelines ask language models for JSON that follows a schema, and the schema can set a minimum number of list entries. We ask what models do when the document holds fewer items than that minimum. Under a preregistered plan, we test eight open-weight models on 558 real documents from nine annotated datasets, with six more models on hosted services as a reference. Three findings stand out. First, models treat the count as a target: a minimum shown in the schema, but not enforced, raises the share of lists longer than the true count from 34.5% to 55.4%. Second, the padding is hard to catch, because most added entries are real text taken from the document; about half of them pass a check that each entry occurs in the source. Third, common fixes help only partly: a line saying fewer items are fine removes the effect on average but misses more true items, a count in prose ("up to k") also raises over-counting, an "N/A" option under an enforced minimum still leaves half the lists padded, and re-asking with the validation error makes padding far more common. We release the code, answer lists and run records at https://github.com/AbhishekBarali/padding-to-k
Figures & tables
| Condition | Count stated | Decoder |
| no count | no count | free |
| prose “up to ” | “up to ”, 5 wordings | free |
| prose “exactly ” | “exactly ”, 5 wordings | free |
| shown maximum | maxItems in the schema | free |
| shown minimum | minItems in the schema | free |
| “fewer is fine” | as above, plus “fewer is fine” | free |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Matcher label | Frame entries | Drawn | Used | Precision [95% CI] | Recall [95% CI] |
|---|---|---|---|---|---|
| True item or split | 637,844 | 134 | 134 | 0.98 [0.95, 1.00] | 0.94 [0.90, 0.97] |
| Wrong kind | 408,859 | 133 | 133 | 0.85 [0.78, 0.91] | 0.96 [0.93, 0.99] |
| Invented | 78,798 | 133 | 131 | 0.69 [0.56, 0.83] | 0.66 [0.53, 0.83] |
LLM Information Extraction
Large language model information extraction converts unstructured documents into structured entities, relations, events, and records.
See all 238 papers