cd /news/artificial-intelligence/my-issue-with-gpu-accelerated-deep-l… · home topics artificial-intelligence article
[ARTICLE · art-114796] src=erikbern.com ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

My issue with GPU-accelerated deep learning (2016)

Spotify engineer Erik Bernhardsson argues in a 2016 blog post that GPU-accelerated deep learning has a fundamental scalability problem: minibatch complexity scales linearly with the number of parameters, making GPUs inefficient for very large models in natural language processing and collaborative filtering. He suggests that logarithmic data structures, which CPUs handle better, could outperform brute-force GPU approaches once models reach a billion parameters, and calls for hybrid GPU-CPU architectures.

read2 min views1 publishedAug 29, 2026
My issue with GPU-accelerated deep learning (2016)
Image: source

I’ve been spending several hundred bucks renting GPU instances on AWS over the last year. The speedup from a GPU is awesome and hard to deny. GPUs have taken over the field. Maybe following the footsteps of Bitcoin mining there’s some research on using FPGA (I know very little about this).

I don’t think there’s a coincidence that GPUs that are built for graphics turn out to be great for image classification using convolutional neural networks. When you are dealing with pixel data packed into 2D arrays it’s possible to parallelize all operations very efficiently.

My issue is that the complexity of each minibatch is $$ \mathcal{O}(n) $$ where $$ n $$ is the number of parameters. The larger models you are dealing with, the bigger this issue becomes.

Word2vec uses a clever technique called hierarchical softmax to achieve $$ \mathcal{O}(\log n) $$ (more details here). I have no idea how to implement this on a GPU and I suspect it’s impossible. Here’s where the CPU shows its strength – traversing a logarithmic datastructure takes a lot of branching and can’t be expressed as a batch operation.

Logarithmic data structures happens to be a field I’m pretty excited about, particularly for vector models and multi-class prediction problems. I’m the author of Annoy, which a library for high dimensional nearest neighbor queries, so it’s something I’ve spent some time thinking about.

For collaborative filtering and natural language processing, GPU architectures are highly constraining. I suspect once you hit a billion parameters or so, more specialized networks that use logarithmic datastructures will outperform for NLP and CF. The speedup from the brute force GPU approach will be offset by the smarter datastructures that a CPU can handle. I haven’t seen any research on this but seems to me like a huge opportunity. In particular, I would love to see hybrid architectures that can use a GPU for the “dense” networks and CPU for the “sparse” networks. Tagged with:

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @erik bernhardsson 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/my-issue-with-gpu-ac…] indexed:0 read:2min 2026-08-29 ·