TL;DR
Many OCR models struggle with text degeneration, where they produce repetitive outputs instead of accurate transcriptions. Direct Preference Optimization (DPO) was applied to DharmaOCR to address this issue by using rejection pairs from the model's own failures.
✦ Why It Matters
Engineers can apply DPO to enhance OCR model performance by specifically targeting and reducing text degeneration issues.
Key Takeaways
How It Works
DPO operates by using the model's degenerate outputs as negative examples, creating preference pairs that explicitly label failure modes. This contrasts with SFT, which optimizes for correct outputs without addressing specific failure types.
By focusing on complete outputs rather than token-level predictions, DPO effectively penalizes undesirable repetition loops, leading to improved transcription quality.
Related