Shortcut Learning in Feature-Based Algorithm Selection
Organizations: The University of Fukuchiyama, Fukuchiyama, Kyoto, Japan
Abstract
Landscape features give learning models information about the objective function for algorithm selection, algorithm configuration, and performance prediction. Should these features capture more information? Not always, because a model may rely on information that the algorithms ignore. This phenomenon is called shortcut learning, and in-distribution accuracy can hide it. We propose the Rubber Ruler Test. It transforms the objective values of test instances with random strictly increasing transformations, reruns the algorithms, and measures prediction performance. Comparison-based algorithms such as CMA-ES perform identically after the transformation, so for them any drop reveals shortcut learning. On 10-dimensional BBOB, a model for two comparison-based algorithms learned shortcuts even from normalized objective values. The R^2 of a model using all ELA features dropped from 0.85 to 0.23, below 0.45 with invariant features only. Rank-based features reduced the drop when algorithms search using ranks. Data augmentation with transformed training instances improved prediction on transformed instances for every portfolio we studied, but lowered R^2 on original instances by up to 0.31. These results suggest that models should rely only on information that the algorithms use. We recommend reporting the Rubber Ruler Test alongside in-distribution accuracy and using it to choose feature extraction and data augmentation.
Figures & tables
| Element | Setting |
| Provided by the user | |
| Portfolio | — |
| Landscape analysis | — |
| Learning model | — |
| Training instances | — |
| Test instances | — |
| Regression | Selection | ||||
| RQ | Compared conditions | Mixed | |||
| RQ1 | All value-based features / invariant features | ✓ | |||
| RQ2 | Three feature extractions | ✓ | ✓ | ✓ | ✓ |
| RQ3 | With / without data augmentation three feature extractions | ✓ | ✓ | ✓ | ✓ |
| Group | Algorithm | Information used |
| G1 | BIPOP CMA-ES ( Hansen, 2009 ) | Ranks |
| Adaptive Nelder–Mead ( Gao and Han, 2012 ) | Ranks | |
| G2 | SHADE ( Tanabe and Fukunaga, 2013 ) | Ranks and values |
| L-SHADE ( Tanabe and Fukunaga, 2014 ) | Ranks and values | |
| G3 | BOBYQA ( Powell, 2009 ) | Values |
| Dual Annealing ( Xiang et al., 1997 ) | Values |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Algorithm | Selected parameters |
| Adaptive Nelder–Mead | offset 0.25, |
| SHADE | , , , |
| Dual Annealing | , , , |
| Algorithm | For selection (budget ) | For the SBS (budget ) |
| BIPOP CMA-ES | , , | , , |
| Adaptive Nelder–Mead | offset 0.25, | offset 0.25, |
| SHADE | , , , | , , , |
| L-SHADE | , , , | , , , |
| BOBYQA | initial step 0.4, | initial step 0.4, |
| Dual Annealing | , , , | , , , |
| Group | No. | Invariant features |
| disp | 16 | all (16) |
| ela_level | 9 | all (9) |
| ela_meta | 8 | none |
| pca | 8 | the 4 computed from coordinates only (ending in _x ) |
| fitness_distance | 6 | distance_mean , distance_std (2) |
| nbc | 5 | all but nb_fitness.cor (4) |
| ELA | Deep-ELA | ||||||||
| Test instances | Extraction | G1 | G2 | G3 | G1 | G2 | G3 | ||
| Original | value | 0.85 | 0.77 | 0.78 | 0.704 | 0.85 | 0.79 | 0.83 | 0.707 |
| rank | 0.66 | 0.62 | 0.63 | 0.646 | 0.62 | 0.58 | 0.62 | 0.643 | |
| concat | 0.85 | 0.76 | 0.78 | 0.704 | 0.83 | 0.80 | 0.82 | 0.708 | |
| Transformed | value | 0.23 | 0.20 | 0.80 | 0.598 | 0.13 | 0.12 | 0.72 | 0.560 |
| rank | 0.66 | 0.61 | 0.95 | 0.620 | 0.62 | 0.57 | 0.92 | 0.612 | |
| Random forest | XGBoost | |||||
| Task | Extraction | ELA | Deep-ELA | ELA | Deep-ELA | |
| RQ1 | G1 | all features, original | 0.834 | – | 0.831 | – |
| G1 | all features, transformed | 0.174 | – | 0.167 | – | |
| G1 | invariant features | 0.429 | – | 0.410 | – | |
| RQ2 | G1 | value | 0.174 | 0.195 | 0.167 | 0.176 |
| rank | 0.621 | 0.575 | 0.612 | 0.569 | ||
| ELA | Deep-ELA | ||||||
| Extraction | Augmentation | G1 | G2 | G3 | G1 | G2 | G3 |
| value | no | ||||||
| yes | |||||||
| rank | no | ||||||
| yes | |||||||
| concat | no | ||||||
| Task | Test instances | Difference | Estimate | Functions fixed | Functions resampled | |
| RQ1 | G1 | transformed | invariant all features | 0.219 | † | |
| G1 | – | original transformed, all features | 0.619 | |||
| G1 | – | original transformed, invariant features | 0.000 | |||
| G1 | original | all invariant features | 0.400 | |||
| RQ2 | G1 | transformed | rank value | 0.428 | ||
| G1 | transformed | rank concat | 0.407 |
| Task | Test instances | Difference | Estimate | Functions fixed | Functions resampled | |
| RQ2 | G1 | transformed | rank value | 0.484 | ||
| G1 | transformed | rank concat | 0.480 | |||
| G1 | original | rank value | ||||
| G2 | transformed | rank value | 0.686 | |||
| G2 | transformed | rank concat | 0.593 | |||
| G2 | original | rank value |
| Original | Identity | Main | Draw 1 | Draw 2 | Draw 3 | Draw 4 | |||
| G1 | – | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | ||
| G2 | – | 0.085 | 0.249 | 0.218 | 0.224 | 0.221 | 0.216 | ||
| G3 | – | 0.654 | 0.802 | 0.784 | 0.769 | 0.772 | 0.785 | ||
| of BOBYQA | G3 | 0.513 | 0.719 | 0.687 | 0.681 | 0.679 | 0.683 | 0.677 | |
| G1 | value, plain | 0.852 | 0.852 | 0.233 | 0.129 | 0.055 | 0.041 | ||
| value, aug. | 0.746 | 0.746 | 0.610 | 0.545 | 0.598 | 0.594 | 0.547 |
| Original test instances | Transformed test instances | |||||||
| Task | Extraction | Plain | Plain-4800 | Aug. | Plain | Plain-4800 | Aug. | |
| ELA | G1 ( ) | value | 0.852 | 0.895 | 0.746 | 0.245 | 0.229 | 0.582 |
| rank | 0.661 | 0.738 | 0.655 | 0.661 | 0.738 | 0.655 | ||
| concat | 0.849 | 0.885 | 0.764 | 0.262 | 0.245 | 0.686 | ||
| G2 ( ) | value | 0.770 | 0.829 | 0.684 | 0.252 | 0.266 | 0.525 | |
| rank | 0.621 | 0.735 | 0.632 | 0.613 | 0.713 | 0.616 | ||
| Task | Extraction | Training | , | , | Power | Piecewise linear |
| G1 ( ) | value | plain | 0.311 | 0.150 | 0.297 | 0.191 |
| plain-4800 | 0.307 | 0.074 | 0.302 | 0.159 | ||
| aug. | 0.609 | 0.594 | 0.547 | 0.590 | ||
| rank | plain | 0.661 | 0.661 | 0.661 | 0.661 | |
| plain-4800 | 0.738 | 0.738 | 0.738 | 0.738 | ||
| aug. | 0.655 | 0.655 | 0.655 | 0.655 |
Shortcut Learning
Shortcut learning occurs when models exploit easy but unreliable cues instead of the task-relevant evidence needed to generalize.
See all 176 papers