title: "Summary: 2026-06-24_13-51-42Z_EdgesBeforeEmbeddings_AConfidence_AwareBlurGatefor.md" # Summary: 2026-06-24_13-51-42Z_EdgesBeforeEmbeddings_AConfidence_AwareBlurGatefor.md Saved: 2026-06-24 21:00 Source: 2026-06-24_13-51-42Z_EdgesBeforeEmbeddings_AConfidence_AwareBlurGatefor.md Model: None --- ## Summary The paper introduces **MagikaDocumentFromPixel**, a lightweight CPU‑friendly image quality gate that classifies images as sharp, blurred, or uncertain in under 7 ms on a single core. Its goal is to prevent downstream OCR, retrieval, and vision‑language model calls from processing blurry inputs, thereby saving compute and improving overall pipeline efficiency. The authors achieve this by integrating an Edge Prior Module (EPM) that injects Laplacian‑magnitude information into the network, enabling a confidence‑aware blur detection that is robust to resolution variations. ## Key Contributions - [Finding 1] A systematic search across 46 configurations and 8 sweeps isolates input resolution as the primary lever for image quality classification, showing that architecture capacity only benefits performance at ≥ 384 px. - [Finding 2] The confidence‑aware routing formalism, based on classical selective prediction, routes uncertain images to a fallback path while preserving high‑confidence sharp inputs for fast processing. - [Finding 3] The Edge Prior Module (EPM) provides an auxiliary Laplacian channel that supplies spectral evidence directly to the network, raising test F1 scores by +1.3 points compared with fixed‑scale baselines. ## Methodology The authors first gathered a diverse dataset of GoPro Large frames exhibiting motion blur and performed an exhaustive hyperparameter sweep to determine optimal resolution thresholds and model sizes. They then trained MobileNetV3‑Large on 384 × 384 images with the EPM as an additional input channel, which computes Laplacian magnitudes across the image patches. During inference, a lightweight classifier evaluates sharpness, blur, or uncertainty; high‑confidence sharp images are passed directly to downstream tasks, while blurred or uncertain ones trigger slower fallback processing. The entire gate runs on a single CPU core with negligible latency. ## Results On a matched‑environment test set, the proposed pipeline achieves an F1 score of **0.9803** (AUC = 0.9989) using MobileNetV3‑Large plus EPM at 384 px resolution, compared to a fixed‑scale baseline that scored **0.9672**. The ONNX artifact size is only **17 MB**, confirming its suitability for edge deployment. Test‑time augmentation over five scales further stabilizes performance without sacrificing speed. ## Significance By decoupling image quality assessment from downstream compute, the gate reduces wasted processing on blurry inputs, which is especially valuable in resource‑constrained environments such as mobile devices or low‑power servers. The +1.3 F1 improvement demonstrates that simple spectral priors can yield substantial gains without retraining large models, encouraging broader adoption of confidence‑aware preprocessing in vision‑language pipelines. ## Related Concepts - Image quality detection (sharpness vs. blur) - Selective prediction and routing - Laplacian magnitude as a spectral cue - Edge Prior Module (auxiliary channel) - MobileNetV3 architecture for lightweight inference - Test‑time augmentation for robustness