docseam / README.md
multimodalart's picture
multimodalart HF Staff
Upload folder using huggingface_hub
2699213 verified
|
Raw History Blame Contribute Delete
2.28 kB
metadata
title: DocSEAM
emoji: ๐Ÿ“„
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 6.32.0
app_file: app.py
short_description: Multi-page document VQA with cross-page encoding
python_version: '3.12'
startup_duration_timeout: 1h

DocSEAM: Bidirectional Cross-Page Encoding for Multi-Page Document Understanding

Demo of mossbee/DocSEAM โ€” a multi-page document understanding model built on Qwen3.5-9B that enriches each page's visual features with context from its neighboring pages (center-anchored masked self-attention over page triplets + directional salience gates), while preserving the visual token count.

Upload one or more document pages in reading order, ask a question, and optionally render the cross-page salience heatmap showing which regions each page sends to / reads from its neighbors.

How to use

  1. Upload page images in reading order (the first file is treated as page 1). DocSEAM handles any number of pages, including a single page; boundary pages fall back to themselves for the missing neighbor.
  2. Type a question. By default the pages are placed at the start of the prompt; if you need finer control, include the literal <image> placeholder in the question once per page to interleave text between pages (e.g. Page 4:\n<image>\n...).
  3. Toggle Show cross-page salience heatmap to visualize the directional gates of the center page's triplet, averaged over DocSEAM layers.

Example assets

The bundled example pages are pages 4โ€“6 of Attention Is All You Need (arXiv:1706.03762), the sample shipped with the DocSEAM repository, and the example questions are taken verbatim from the repository's examples/attention/ JSONL files.

License

DocSEAM is released under the S-Lab License 1.0 (non-commercial use). The Qwen3.5-9B backbone's Apache-2.0 license is retained.