Deep Learning's Fixed-Input Legacy: From CNNs to LLMs
Early deep learning, particularly computer vision with Convolutional Neural Networks (CNNs), standardized on fixed-size inputs like images, driving hardware and software optimization towards static tensor shapes—a paradigm now challenged by LLMs' variable prompt lengths.
The top 3
- Top 3 Reasons for Fixed Inputs in Early Deep Learning: Early deep learning models, especially CNNs, adopted fixed input sizes primarily due to GPU memory limitations, the need for efficient batch processing, and the architectural constraints of fully connected layers which demand a constant input dimension.
- Iconic CNNs' Fixed-Input Workarounds: AlexNet & VGG: Pioneering CNNs like AlexNet and VGG-16/19 famously required fixed input sizes, typically 224x224 or 227x227 pixels, often achieved by cropping or resizing images during preprocessing to fit the network's architecture.
- First Breaks: Fully Convolutional Networks for Arbitrary Inputs: A major breakthrough in overcoming fixed-input constraints came with Fully Convolutional Networks (FCNs) in 2014, which adapted classification CNNs to accept arbitrary-sized inputs and produce correspondingly sized outputs for tasks like semantic segmentation.
Sources
Open the full topic