The TWIML AI Podcast
The TWIML AI Podcast

Diogo Almeida - Deep Learning: Modular in Theory, Inflexible in Practice - TWiML Talk #8

My guest this time is Diogo Almeida, senior data scientist at healthcare startup Enlitic. Diogo and I met at the O'Reilly AI conference, where he delivered a great presentation on in-the-trenches deep learning titled “Deep Learning: Modular in theory, inflexible in practice,” which we discuss i

Featured Speakers

Diogo Almeida Guest

Topics Discussed

Episode Summary

Executive Summary: In this interview, Diogo Almeida discusses his talk on deep learning by framing it around practical limits rather than hype. He argues that deep learning’s biggest challenges are data, software, and optimization, while understanding remains weak but essential for progress. He uses a Kaggle causality competition as a case study in feature engineering and model design, then explains why current tools and local-learning optimization methods can trap researchers in brittle, non-generalizable solutions.

Main Topics: Kaggle causality competition and feature engineering: Almeida recounts winning a causality challenge by generating about 50,000 features through exhaustive combinations of algorithms, metrics, and data transformations, then feeding them into a boosted decision tree. He emphasizes that causal inference can be approached as a function-approximation problem rather than a hand-crafted statistical test. Deep learning’s extremes vs. realistic middle ground: He says the field is dominated by two exaggerated narratives: deep learning will solve everything, or it is all hype. His talk focused on the under-discussed middle, especially failure modes and constraints that shape real performance. Data limitations and overfitting to benchmarks: Almeida argues that deep learning is highly data inefficient and that popular benchmarks shape research behavior too strongly. He distinguishes between data we have and underuse, and data we still lack for measuring capabilities like long-term dependency and hierarchical learning. Software and framework limitations: He criticizes current frameworks for making some research ideas too cumbersome to implement, especially when tricks require low-level control or state handling. He contrasts the flexibility of computational-graph abstractions with the performance-oriented approach of more imperative frameworks. Optimization and local-learning failure modes: He highlights that gradient-based local learning can get stuck in bad optima, using spatial transformer networks and GANs as examples where one component can converge too early and block learning entirely. He suggests this may be a fundamental bottleneck for more complex tasks. Understanding as a prerequisite for progress: Although not necessary to get models working, he argues that true understanding is necessary to advance the field. He is skeptical of untested “stories” in papers and calls for more principled explanations and benchmarks.

Key Arguments: Deep learning should be judged by practical constraints—data, software, and optimization—not just by success stories. Feature engineering can outperform naive assumptions; in the causality competition, exhaustive automated feature generation was more effective than a small set of hand-crafted statistical tests. Many benchmark results are fragile because they depend on dataset-specific tuning, hyperparameters, and preprocessing that do not transfer cleanly. The community is often overfitting to standard datasets like CIFAR-10, making genuine progress harder to recognize. Current tools limit research expression; researchers often need lower-level control than frameworks conveniently expose. Local optimization can trap models in poor equilibria, especially in multi-component systems where one part’s early success prevents another from learning. Understanding is not merely philosophical; it is needed to identify what is promising, what is broken, and where to push the field next.

Data Points: Competition year: 2013 - Almeida said his Kaggle causality challenge win happened in 2013. Competition score of traditional causality tests: ~0.6 AUC - He said statistical tests used for the task typically achieved around 0.6 AUC. Top competitors’ feature counts: Tens to 100+ features - He noted that many top competitors used tens of features, while the runner-up reportedly used over 100. Almeida’s feature count: ~50,000 features - His approach generated roughly 50,000 features through exhaustive combinations and transformations. Training time for final model: 1 week - He described the boosted decision tree model as taking about a week to train on a 50-core machine. Machine size: 50-core machine - He referenced the hardware used to train the winning model. Competition time remaining when he started tuning: Last week - He said he did not focus on ensembling until the final week of the competition. Dataset size example: 32 x 32 RGB images - He described CIFAR-10 as a small benchmark consisting of 32x32 color images. CIFAR-10 classes: 10 classes - He referenced CIFAR-10 as a ten-class dataset.

Pivotal Quotes: "deep learning will solve all our problems, and deep learning is complete garbage" — Diogo Almeida: He used this contrast to frame the extreme narratives he wanted to move beyond. "it’s a miracle it even works" — Diogo Almeida: He said this while arguing that deep learning’s empirical success is impressive despite weak theory and many practical limitations. "neural networks are extremely data inefficient, and they don't have to be that way" — Diogo Almeida: He used this to introduce his critique of benchmark dependence and the centrality of data limitations.

Implications: Listeners should see deep learning as powerful but fragile: progress depends on better data practices, more usable tools, and optimization methods that avoid local traps. For the field, the next breakthroughs likely require stronger understanding, not just bigger models.

🔓 Sign Up for Unlimited Episode Search

About The TWIML AI Podcast

View all episodes from The TWIML AI Podcast