prebuilt-tax.us.w2 returns Allocated Tips (Box 8) value from Box 10 when Box 8 is blank

Aniket Patil 0 Reputation points
2026-11-25T11:30:50.6466667+00:00

We're using the prebuilt-tax.us.w2 model with API version 2024-11-30.

On W-2 forms where Box 8 (Allocated Tips) is blank, the model still returns a value for Allocated Tips. The value matches Box 10 (Dependent Care Benefits), which is directly below Box 8.

Field Expected Actual
Allocated Tips (Box 8) Blank / null 1000.00
-------- -------- --------
Allocated Tips (Box 8) Blank / null 1000.00
Dependent Care Benefits (Box 10) 1000.00 1000.00

A test W-2 (synthetic data) with Box 8 and Box 10 highlighted is attached.

Questions:

  1. Is this a known issue with the W-2 model, and is a fix or newer model version planned?
  2. What's the recommended way to handle this: for example, validating using the field's bounding regions or confidence score, using query fields, or a custom model?
Azure Document Intelligence in Foundry Tools
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-11-25T11:32:14.6433333+00:00

    No public known-issue entry or release note currently identifies this exact Box 8/Box 10 misassignment, so reject AllocatedTips when its returned polygon falls in the Box 10 region and open a Microsoft support case with the reproducible sample.

    Treat field confidence as a review signal, not as proof that the value belongs to Box 8. Confidence measures statistical certainty of the prediction; a confidently recognized 1000.00 can still be assigned to the wrong semantic field.^1^

    For each supported W-2 layout:

    1. Define normalized regions of interest for Box 8 and Box 10.
    2. Read the boundingRegions polygon returned for the Allocated Tips field.
    3. Normalize its coordinates using the corresponding page width and height.
    4. Accept it only when the polygon overlaps the expected Box 8 region.
    5. If it overlaps Box 10—or substantially overlaps the DependentCareBenefits polygon—set Allocated Tips to null and optionally route the document for review.
    6. Maintain separate regions for materially different W-2 layouts.

    Document Intelligence exposes page dimensions and polygon coordinates for spatial validation.^2^

    A simplified validation pattern:

    static bool AcceptAllocatedTips(
        Polygon tips, Rectangle box8, Polygon? dependentCare)
    {
        const double minBox8Overlap = 0.60;
        const double maxBox10Overlap = 0.20;
    
        if (Overlap(tips, box8) < minBox8Overlap)
            return false;
    
        if (dependentCare != null &&
            Overlap(tips, dependentCare) > maxBox10Overlap)
            return false;
    
        return true;
    }
    

    Overlap should calculate polygon intersection area divided by the candidate field area. Tune thresholds against representative digital PDFs and scans rather than relying on the illustrative values above.

    Also retain the confidence threshold as a second guard:

    • Wrong region: reject regardless of confidence.
    • Correct region, low confidence: manual review.
    • Correct region, acceptable confidence: accept.

    Known issue and planned fix status

    prebuilt-tax.us.w2 with API 2024-11-30 is a documented v4.0 GA combination.^3^

    However:

    • The current public known-issues page does not list the Box 8/Box 10 behavior.^4^
    • The March 2026 tax-model update mentions 2025 forms and multi-copy extraction improvements, but does not identify a fix for this field-mapping case.^5^

    Therefore, no public fix version or delivery date can currently be confirmed.

    Open Azure portal → Help + support → Create a support request and include:

    • Resource region and resource ID.
    • API version and exact model ID.
    • Redacted or synthetic input file.
    • Complete analyze-result JSON, including polygons, spans, confidence, page dimensions, and operation/request correlation identifiers.
    • Expected Box 8 null versus actual value.
    • Confirmation that the same value and polygon correspond to Box 10.
    • Results from several W-2 layouts, if available.

    This gives the product team enough information to determine whether the behavior is document-layout-specific or a model regression.

    Query fields

    Do not make query fields the primary workaround here. Although the model capability matrix marks query fields as supported for prebuilt-tax.us.w2, the add-on documentation specifically says Studio query-field extraction excludes US tax W-2, 1098, and 1099 models.^6^^7^

    Even where query fields are available through the API, they are intended to extend a schema or request specific fields, not to enforce that a value came from a particular numbered W-2 box. Geometry validation remains necessary.

    When to use a custom model

    Use a custom neural model if:

    • This affects enough documents that per-layout region rules become difficult to maintain.
    • Your W-2 layouts come from a known set of issuers.
    • Box 8 and Box 10 accuracy is business-critical.

    Custom neural models are explicitly suitable for W-2 forms that share the same information but vary in appearance, and they support region labeling with API 2024-11-30.^8^

    Include representative examples where:

    • Box 8 is blank and Box 10 is populated.
    • Box 8 is populated and Box 10 is blank.
    • Both are populated.
    • Both are blank.
    • Digital and scanned variants are represented.

    A custom model still requires evaluation and confidence/geometry guardrails for financial processing; it is not an automatic guarantee against field confusion.


    References

    1. Interpret and improve accuracy and confidence scores
    2. What is the Document Intelligence layout model?
    3. Document Intelligence US tax documents data extraction - Foundry Tools | Microsoft Learn
    4. Azure AI Document Intelligence in Foundry Tools known issues - Foundry Tools | Microsoft Learn
    5. What's new in Document Intelligence - Foundry Tools | Microsoft Learn
    6. Document processing models
    7. Document Intelligence add-on capabilities
    8. Document Intelligence custom neural model
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.