An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
Hi Nazmaheptulla Thogaragunta ,
Great questions — here's the direct rundown:
- Can the Prebuilt Layout model be fine-tuned/custom-trained? No. Document Intelligence doesn't allow training or fine-tuning on top of any prebuilt model (Layout included). Prebuilt models are fixed; customization always means building a standalone custom model from your own labeled documents. Layout is also purely visual-structure-based, so it doesn't use the semantic meaning of your columns when deciding boundaries — which is exactly what you're hitting on merged cells / missing borders / variable formats.
- Is there a model that adds semantic understanding for tables? Yes — a Custom Neural (custom extraction) model. Unlike Layout, it combines layout and language features, so it learns the meaning of each field and handles structured/semi-structured documents with variable layouts. You label your billing table once (with the 7 columns — Date of Service, HCPCS/CPT, Revenue Code, Description, Units, Charge Amount, Total Amount) on as few as ~5 examples and train. This is the recommended path for your itemized-billing scenario.
- Best practices to improve column-boundary accuracy (minimal post-processing):
- Switch the table extraction from Layout → Custom Neural, labeling the line items as a structured table field with your named columns so the model learns column semantics rather than relying on borders.
- Train on a representative variety of IB formats (merged cells, missing borders, different providers) so it generalizes.
- If you have several distinct IB templates, add a Custom Classifier to route each format to the right model (or use a composed model).
- Use the v4.0 (2024-11-30 GA) neural model, which adds table/row/cell-level confidence — gate only the low-confidence cells for human review instead of broad post-processing.
- Short-term, you can also try Layout with
features=keyValuePairsor query fields for specific named values, but for tabular billing lines the custom neural table is the durable fix.
- Semantic-aware Layout / domain-specific Layout training on the roadmap? I don't have a public roadmap commitment to share on that; the supported approach today is the custom neural model above.
Docs:
- Which model to choose: https://learn.microsoft.com/azure/ai-services/document-intelligence/concept/choose-model-feature
- Custom neural model: https://learn.microsoft.com/azure/ai-services/document-intelligence/train/custom-neural
- Build/train a custom model: https://learn.microsoft.com/azure/ai-services/document-intelligence/how-to-guides/build-a-custom-model
Kindly let us know if the above helps or you need further assistance on this issue.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".