All entries

    CNN vs Vision Transformer for Deepfake Detection

    Compare a CNN and a vision transformer under one evaluation protocol before attributing a difference to architecture.

    Two model workbenches process the same film portraits
    Conceptual pixel-art illustration.

    Compare a CNN and a vision transformer under one evaluation protocol before attributing a difference to architecture.

    Build the example

    Give both models the same dataset splits, preprocessing policy, evaluation unit and tuning budget. Record their initialization and input resolution because a larger pretrained model can inherit useful information unrelated to its architecture. Repeat training with several fixed seeds and report spread as well as a central estimate.

    Create a results sheet with parameters, resolution, preprocessing, validation selection and performance. Include both model families in each row group under the same measurement convention. If the pretrained data overlap cannot be verified, state that uncertainty. Report any difference in training conditions rather than attributing the whole result to the backbone.

    Watch the failure boundary

    Start by matching training conditions, then run a second comparison under a fixed deployment budget. A latency measurement should state the device, batch size and timing method. Report both cold and warmed inference if they matter. Architecture alone cannot explain outcomes when the pipeline changes several factors at once.

    Verify the behavior

    Use video-level aggregation for both methods. Check model size, inference time and external-dataset recall alongside in-domain scores. If the CNN wins at a tighter latency budget while the transformer wins elsewhere, keep those constraints in the conclusion so readers know which result applies to them.

    FURTHER READING

    Sources

    Technical references checked .

    END OF ENTRY / 62
    Eeshan Singh with Big Ben in London
    BEHIND THE JOURNAL

    Eeshan Singh

    I’m Eeshan Singh Pokharia, an AI Full Stack Developer and CoFounder of UltraFit360. I work across AI features, full-stack product development, and web and mobile experiences—from Figma and frontend interactions to the systems behind them.

    Start by matching training conditions, then run a second comparison under a fixed deployment budget. A latency measurement should state the device, batch size and timing method. Report both cold and warmed inference if they matter. Architecture alone cannot explain outcomes when the pipeline changes several factors at once.

    Meet the author
    THE CONVERSATION

    Your side of the story.