MLCrack

    COMPUTER VISION · INTERVIEW QUESTION

    A ViT trained from scratch on a small dataset underperforms a ResNet. Which explanation is most plausible?

    🔴 advanced · Vit · Inductive Bias

    Hint: Focus on the decision rule, assumptions, and failure mode behind vit · inductive bias.

    Answer

    Convolutions encode locality and translation structure. Vision Transformers can work very well but typically rely more heavily on data scale, regularization, or pretrained representations.

    Interview reasoning

    Convolutions encode strong locality and weight sharing; a ViT may need more data, regularization, or pretraining in the small-data regime.

    Convolutions encode locality and translation-related weight sharing, providing useful priors with fewer examples. A ViT can learn these relationships but may require stronger pretraining or regularization. Compare architecture claims under matched data, resolution and optimization; otherwise pretraining and tuning dominate the apparent result.

    Worked example. A pretrained ResNet versus a randomly initialized ViT compares both architecture and prior training. Add a pretrained ViT baseline before attributing the gap.

    Validation

    Match data and compute and compare tuned training protocols, not only defaults.

    Match training budgets and label counts, tune reasonable recipes for both, and evaluate new-device transfer as well as in-domain accuracy.

    Common pitfalls

    This is a data-regime explanation, not proof that attention cannot model images.

    The result does not establish that attention cannot model locality. A small dataset may favor one recipe without identifying a universal winner.

    Likely follow-up: Match data and compute and compare tuned training protocols, not only defaults.