Related Experiment Videos
Basis-driven learnable operator for MLP-mixers
Ahmed Elsheikh1, Mohammed E Fouda2, Ahmed M Eltawil3
1Mathematics and Engineering Physics Department, Faculty of Engineering, Cairo University, Giza, Egypt.
Introduction:
Existing multi-layer perceptron (MLP)-mixer architectures either rely heavily on extensive training data or employ rigid, hand-engineered mixing operations. This study introduces a Basis-Driven Learnable Operator (BDLO) for MLP-mixers, targeting a balance between high-capacity flexible learning and computationally efficient, yet constrained, handcrafted solutions.
Methods:
BDLO is a drop-in replacement for the shifting block of shifting-based MLP-mixers. It approximates shifting-based mixing operations by learning the coefficients of a real, complete, discrete basis, yielding an input-dependent transformation matrix that is applied to both rows and columns of the token table, while the patch embedding, channel-mixing MLPs, skip connections and classification head are left unchanged. The operator was integrated into CycleMLP, HireMLP and AS-MLP at three model sizes each, and all models were trained from scratch under an identical configuration on CIFAR10, CIFAR100, a reduced ImageNet (32 × 32, 500 classes) and full ImageNet1K. Standard and discrete cosine transform bases were compared, hyperparameter sensitivity was assessed with Optuna, and differences were tested using the Wilcoxon signed-rank test.
Results:
BDLO reduced the cost of the mixing layer to 1.68 GFLOPs, against 3.33-5.08 GFLOPs for the original layers, and reduced whole-model parameter counts by 21.8%-56.7% (mean reduction 12.84M), with a mean accuracy difference of 0.38% in favor of BDLO. The Wilcoxon test confirmed a significantly lower parameter distribution (p = 0.0039) and no statistically significant accuracy difference (p = 0.496 on CIFAR100, p = 0.0625 on CIFAR10, p = 0.5 on the reduced ImageNet). Results were invariant to the choice of basis (mean cosine distance 0.0049 between the learned coefficient vectors) and insensitive to the BDLO-specific hyperparameters.
Discussion:
Comparability holds in aggregate and in the parameter-constrained regime, with model-specific exceptions for baselines that include channel mixing (HireMLP) and for high-capacity baselines on larger datasets (AS-MLP). BDLO behaves as an input-adaptive spectral modulator whose bounded coefficients provide implicit regularization. This confirms the effectiveness of BDLO as an efficient operator replacement for shifting-based MLP-mixers, most suitable for parameter-constrained, small-to-medium-scale models in image recognition tasks.
Related Concept Videos
Sum and Difference OpAmps
A summing amplifier, or an adder, utilizes an op-amp to merge multiple input signals into a single output signal. When audio signals are introduced into its input channels, the input resistors initiate currents that traverse feedback resistors, resulting in an output voltage. Applying Kirchhoff's current...
Basic Operations on Signals
Time Reversal mirrors a continuous-time signal about the vertical axis at t=0. This is achieved by substituting t with −t. For example, if a signal x(t) is considered, the time-reversed signal is x(−t). This operation can be graphically represented, showing the mirrored signal.
Multi-input and Multi-variable systems
In the absence of...
Inverting and Non-inverting OpAmps
Design Example: Vintage Mixing Console
The specifications for the pre-amplifier were clear. It needed to amplify the audio signal by a factor of 10, have an input impedance above 10...
Second-order Op Amp Circuits
The analysis of such circuits follows a systematic approach, similar to the second-order RLC circuits. In practical scenarios, bulky inductors are rarely employed due to their size and weight. This means...