Manuscript Offprint

arXiv:2610.30997

Padding to k: A Minimum Count in the Schema Makes Open-Weight Models Pad Their Extraction Lists

Abhishek Barali, Aayush Paudel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Extraction systems ask language models for structured output: a JSON object that follows a JSON Schema. The schema, or the prompt around it, can say how many entries a list must have, for example with "minItems": 3. That is harmless when the document holds at least that many items. When it holds fewer, the request cannot be met truthfully: an email with one request cannot yield three true requests (Figure 1). Real schemas set list minimums: of the 9,542 real-world schemas in JSONSchemaBench (Geng et al., 2025), 7.7% put a minItems of at least 1 on a list of strings or objects, which an empty document cannot meet;

Document (one email; its answer list has n = 1 request):

Subject: Cost Allocations

In connection with the Legal costs allocations for 2002, what percentage of your time do you think you would spend on EGM matters? The accounting group who is asking for this information realizes that this is a guess on your part. Thanks, Alan

Prompt: “List all the requests.”, with a JSON Schema whose requests array has "minItems": 3, shown in the prompt and not enforced.

Output (Qwen3.5-9B, full run):

  1. “In connection with the Legal costs allocations for 2002, what percentage of your time do you think you would spend on EGM matters?”

  2. “The accounting group who is asking for this information realizes that this is a guess on your part.”

  3. “Thanks, Alan”

Figure 1: An email with one request, a prompt that asks for at least three, and the list Qwen3.5-9B returned. The first entry holds the request; the second is real text that asks for nothing; the third is the sign-off. Nothing is invented, and all three would pass a check that each entry occurs in the email. The example was picked to illustrate the pattern; it is not a random draw.

minimums of 2 or more are rarer (0.3%; post hoc, Appendix M).

We fix what a correct output is in advance (Sections 3.4 and 3.5). When the document holds n<kn < k true items, a correct output lists the nn items and stops, or marks the list as short with a placeholder, an “N/A” where one is offered, or a note. Padding the list with entries that are not true items is the failure, whether the padding is invented or taken from the document. Section 3.4 gives the reasons for this reading, and Section 5 the evidence that the minimum, not the schema, causes the padding.

Stated counts and required fields are known to push models toward content that is not there (Yang, 2026; Ivgi et al., 2024; Usman, 2026). The closest study, PhantomFill (Usman, 2026), puts minimum-count arrays in JSON schemas, but its inputs hold no true items by construction and it does not vary the count. No study we know of varies a schema

Figure

Figure 2: The main contrast per model: substantive entries under a minItems shown in the schema minus entries with no count, same document, documents with n<kn < k, k=3k = 3 and 5, with 95% group-bootstrap intervals. Black: the eight GPU models. Grey, below the line: hosted reference models on Together (T) and Bedrock (B), never pooled with the GPU models.

count against the true count on real documents, compares a minimum with a maximum, or measures how much of the added content comes from the document itself. We test eight open-weight models on one GPU, and six more on two hosted services, on 558 documents that hold 0 to 6 checked items. Each model is asked for 1, 3 or 5 items, with the count in prose, in a schema shown in the prompt, or in a schema the decoder enforces. The main measure is the length change: for the same document and model, the number of entries under a shown minimum minus the number with no count (Figure 2).

We find three things (Section 4 marks which results are registered tests and which are exploratory or post hoc).

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%: on the same documents, about one more list in five runs past the true count. On the documents a model gets exactly right with no count, a shown minimum still makes about a third of its lists pad (35.2%; post hoc). Six of the eight GPU models and all nine hosted runs lengthen their lists; the exceptions are the two smallest models, one of which often writes no readable list (Section 4.1). Registered controls tie the effect to the slots the document cannot fill: a minimum adds nothing on documents that already hold enough items, and a shown maximum barely changes over-count (Section 4.2).

The padding is hard to catch. Most added entries are real text taken from the document, like the sign-off in Figure 1. They parse, meet the schema, and about half pass a check that each entry occurs in the source (Section 4.3).

Common fixes help only partly. A line saying fewer items are fine removes the effect on average but misses more true items. An “N/A” option under an enforced minimum lowers padding only from 90.1% to 51.0%. “Up to k” in prose also raises over-counting, from 34.5% to 42.7%. Re-asking with the bare validation error, as schema-validating libraries do, made padding far more common in every run tested, from 10.0% to 69.0% for Qwen3.5-9B (Section 4.5).

Our contributions:

• 558 real documents from nine annotated sets with answer lists checked by both authors, released with the code and run records (Section 3.1, Appendix C).

• A preregistered, per-model measurement of count pressure on eight open-weight models, with controls, and six hosted models as a reference (Section 4).

• Evidence that the padding is mostly real document text, with practical guidance for schema authors (Table 4).

References (46)