179 questions
No questions match those filters.
← All questions
System DesignHard· Performance· Efficiency
An engineer proposes replacing one FFN layer with a ban...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThe primary concern is that depth-wise convolutions have an arithmetic intensity of approximately k/2, which is well below the hardware ridge point. While the replacement might reduce the total number of FLOPs, those FLOPs are executed on general ALUs at a fraction of the speed of tensor cores. Because the operation is memory-bound, the system will spend most of its time waiting for data from HBM, likely resulting in slower overall performance compared to the compute-bound matmul it replaced.