What is Character Detection Matching (CDM)?
mainCharacter Detection Matching (CDM) is an evaluation metric designed for formula recognition. Unlike traditional text-based metrics like BLEU or Edit Distance, which are sensitive to LaTeX representation variations and training data distribution, CDM uses a vision-based approach.
It works by:
- Rendering both the predicted LaTeX and the ground truth (GT) LaTeX into images.
- Using visual feature extraction and localization to perform precise character-level matching.
- Incorporating spatial position information to ensure objective and accurate evaluation.
This method avoids the pitfalls where a model might get a high BLEU score despite incorrect recognition, or a low score despite correct recognition due to different LaTeX formatting.