﻿# UDOP model outputs: distinguish text generation, encoder features, and paper capabilities

Choose the released UDOP model class for the required output, preserve OCR/layout inputs, and avoid treating paper image-generation results as an available API.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-udop-paper-capabilities-released-heads/
Language: en

## Read the architecture claim and artifact separately

UDOP unifies vision, text, and layout for document processing. The [paper](https://arxiv.org/abs/2212.02623) discusses both document understanding and generative objectives, including image reconstruction. This broad research scope should not be converted into a blanket serving claim. A usable application needs a particular checkpoint, implementation, and output head. Identify those artifacts before deciding that an experiment described in the paper can be reproduced through the model class available in an integration library.

## Choose the output class deliberately

The [Transformers UDOP reference](https://huggingface.co/docs/transformers/model_doc/udop) distinguishes an encoder model that returns hidden states from a conditional-generation class with a text language-modeling head. Features are representations, not decoded answers. Text generation produces a sequence of tokens, not a reconstructed document image. Selecting the wrong class can return a perfectly valid tensor while leaving the application without the actual output contract it needs for extraction or question answering.

## Preserve the input evidence contract

Unified does not mean OCR-free in the documented integration. The processor combines a document image with words and bounding boxes, using a default OCR engine or externally provided recognition. When existing OCR supplies the evidence, configure that path explicitly and keep the recognized text paired with its geometry. A generated answer can be plausible even when the text and page image came from mismatched preprocessing attempts, so retain the prepared inputs used by each invocation.

## Check the release boundary before proposing editing

The [official project repository](https://github.com/microsoft/i-Code/tree/main/i-Code-Doc) distinguishes the released encoder/text-decoder path from the vision-decoder release plans. That distinction matters when a team proposes a document-editing feature based on the paper's broader results. Check the actual available artifacts and their documented capabilities rather than promising image generation from a text-generation checkpoint. A research objective, a future release statement, and a callable implemented interface are different forms of evidence.

## Validate one concrete task path

For form question answering, choose a compatible checkpoint, processor, task prompt, and conditional-generation head; compare answers against visible source evidence on held-out documents. For feature extraction, validate representations against the downstream task rather than decoding arbitrary hidden-state values. Existing guides on [document provenance](/journal/document-markdown-json-provenance/) and [artifact validation](/journal/safetensors-artifact-validation/) provide context. UDOP's distinctive boundary is matching the claimed modality and output to the exact released head, while preserving the multimodal evidence that head actually consumes.
