Baidu introduces Unlimited OCR, a solution for long document OCR.
Baidu introduces Unlimited OCR, a solution for long document OCR.
Unlimited OCR introduces R-SWA (Reference Sliding Window Attention), solving the problem of exploding KV cache and slow inference in existing OCR models when using LLMs as decoders due to long text.
Core Innovation: It replaces the sequence-growing cache with a constant-size KV cache, ensuring that memory and computational costs no longer increase with document length.
Results: Combined with a high-compression encoder, it can transcribe multi-page documents at once within the 32K token limit. This method is also applicable to long-sequence tasks like ASR and translation.
Code and models are now open-sourced at baidu/Unlimited-OCR.
Comments
Comments from the original post on Instagram
No comments yet
