High bias convolutional neural network not improving with more layers/filters
Master System Design with Codemia
Enhance your system design skills with over 120 practice problems, detailed solutions, and hands-on exercises.
In the realm of machine learning, particularly when dealing with deep learning architectures such as Convolutional Neural Networks (CNNs), practitioners often fall into the trap of assuming that more layers or filters automatically translate to better model performance. However, this is not always the case, especially in situations where the model exhibits high bias. In this article, we'll explore why adding layers or filters might not improve a high bias CNN, offering technical explanations and examples to illustrate these lessons.
Understanding Bias and Variance
Before delving into specific cases with CNNs, it's critical to first understand the concepts of bias and variance:
- Bias refers to the error introduced by approximating a real-world problem, which may be complex, with a simple model. A high bias model pays inadequate attention to the training data and often fails to learn the underlying trends.
- Variance, on the other hand, refers to the model's sensitivity to fluctuations in the training set. A model with high variance captures noise along with the underlying data patterns, leading to overfitting.
Ideally, a good machine learning model should strike a balance between bias and variance. Too much of either leads to poor predictive performance.
The Irony of High Bias in CNNs
CNNs are inherently powerful due to their ability to capture spatial hierarchies in images through convolutional layers. However, when a model is high bias, it may not be complex enough to represent the underlying data, which predominantly results in underfitting. In such cases, practitioners might consider:
- Adding More Layers: More layers generally increase the model complexity. However, for a high-bias model, simply stacking layers won't necessarily resolve underfitting, as the initial layers may not extract useful features due to incorrectly initialized weights or non-optimal architectures.
- Increasing the Number of Filters: Similarly, adding more filters can lead to better feature extraction. But in cases of high bias, existing features are already inadequately captured, unless the architecture or training procedure is not appropriately adjusted.
Technical Explanations
Theoretical Harm in Adding Layers
Adding layers indiscriminately can lead to several challenges:
- Vanishing Gradients: With more layers, gradients need to propagate back through all these layers, which may cause them to diminish to near-zero values in the earlier layers, hindering model learning.
- Overly Complex Optimization Problems: A deeper architecture means a more complex model, which can require a more sophisticated optimization process. Without such optimization, the model's additional layers may remain unused effectively, thus not addressing the core issue of underfitting.
Counterproductive Increase of Filters
While adding filters can increase a model's receptive field and feature extraction capability, it can also lead to:
- Redundant Features: More filters can sometimes mean extracting features that are redundant or less informative, failing to enhance the model's predictive power.
- Increased Computational Burden: More filters increase the computational requirements, potentially leading to inefficient utilization of resources, which doesn't tackle the original problem of high bias.
Practical Case Example
Consider a simplified CNN applied to a standard image classification problem:
- Initial Architecture:
- Input Layer: 64x64 RGB image
- Convolutional Layer: 32 filters, 3x3 kernel
- Fully Connected Layer: 128 nodes
- Output Layer: 10 classes
- Observations: The model is underfitting, showing high training error.
- Attempted Solutions and Results:
- Adding Layers: Two additional convolutional layers were added with intermediate pooling layers but the high training error persisted.
- Increased Filters: Increased the initial convolutional layer to 64 filters. Training performance showed marginal improvement, indicating that the core issue wasn't addressed.
In this example, adding complexity to the architecture without refining the model assumptions or data preprocessing could lead to diminishing returns. A better approach might involve refining image augmentation techniques or employing a different architecture suited for better feature extraction initially.
Factors Contributing to High Bias
Several factors can contribute to high bias in CNNs:
- Inadequate Model Initialization: Poor initialization can hinder learning, especially in deeper networks.
- Insufficient Data or Features: High bias can often be attributed to insufficient training data or the model's inability to derive rich features.
- Poor Regularization Techniques: An inappropriate choice or absence of regularization can lead to overly simplistic models that underfit.
Conclusion
While increasing the architecture's complexity by adding layers and filters might seem effective in theory, it's not the panacea for high-bias models. Understanding the nature of bias, revisiting initial model assumptions, and exploring regularization and initialization techniques can offer more substantial improvements.
Below is a table that summarizes the key points discussed:
| Factor | Impact on High Bias CNN | Notes |
| Adding Layers | Marginal improvement | Can result in vanishing gradients and complex optimization problems. |
| Increasing Filters | Minimal benefits | May cause extraction of redundant features. |
| Initialization | Crucial for learning | Poor initialization leads to inadequate feature learning. |
| Data Sufficiency | Essential | More data or engineered features may reduce high bias. |
| Regularization | Important | Helps in managing model's complexity and bias. |
Ultimately, effective model development requires more than just increasing the model's apparent complexity. It requires a deep understanding of the architecture, the data, and the well-practiced application of regularization, initialization, and optimization techniques.

