Pooling Helps, Learned Weighting Hurts In-Context: Decomposing Group Attention
Organizations: Amazon
Abstract
Group attention, introduced by the time series forecasting model Chronos-2, attends over the variates of a group at a fixed patch index and serves both multivariate (MV) and in-context learning (ICL) forecasting. Rather than evaluating this cross-variate attention design as a whole, we ask which part of the mechanism earns the benefit and probe its applicability to both MV and ICL regimes. By editing the attention matrix at inference we separate the two pathways a head comprises: V/O, which projects a weighted summary of the group, and Q/K, which decides the weights. Uniform pooling (V/O without any Q/K weighting) is positive on 18 of our 20 sensor-network configurations, while the learned weighting (Q/K) splits by group type: its contribution is positive or negligible for MV, but materially degrades 8 of the 10 sensor-network ICL configurations, leaving 4 of them worse than univariate inference. By isolating the impact of different layers, we find that uniforming in the first block alone improves every ICL configuration we test.
Figures & tables
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Group | ctx | Pooling | Shuffled | Learned | Total | ||
| Sensor networks | ||||||||
| Atlantic tides | MV | 273 | 204 | 0.72 | ||||
| Atlantic tides | ICL | 300 | 204 | 0.41 | ||||
| Atlantic tides | MV | 168 | 320 | 0.72 | ||||
| Atlantic tides | ICL | 300 | 320 | 0.41 | ||||
| Pacific tides | MV | 200 | 204 | 0.55 | ||||
| error vs univariate (points) | ||||||
|---|---|---|---|---|---|---|
| Configuration | Group | raw mean | matched | uniform | learned | |
| tidesp256_icl | ICL | 250 | ||||
| netpjmp256_icl | ICL | 200 | ||||
| tidesp256_mv | MV | 250 | ||||
| netuscrnp256_mv | MV | 200 | ||||
| one block | leading blocks | late | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Dataset | Group | 0 | 3 | 7 | 11 | 0–1 | 0–3 | 0–5 | 0–7 | all | 8–11 |
| Atlantic tides | ICL | ||||||||||
| Pacific tides | ICL | ||||||||||
| USCRN | ICL | ||||||||||
| PJM load | ICL | ||||||||||
| EU load | ICL | ||||||||||
| Dataset | Group | block 0 only | all twelve |
|---|---|---|---|
| Atlantic tides | ICL | ||
| Pacific tides | ICL | ||
| USCRN | ICL | ||
| PJM load | ICL | ||
| EU load | ICL | ||
| Atlantic tides | MV |
| block 0 uniform | all blocks | |||||||
| Dataset | Group | ctx | UV MAE | MAE | WQL | coverage | MAE | |
| In-context groups | ||||||||
| Atlantic tides | ICL | 204 | 300 | |||||
| Atlantic tides | ICL | 320 | 300 | |||||
| Pacific tides | ICL | 204 | 200 | |||||
| Pacific tides | ICL | 320 | 200 | |||||
| blocks forced uniform | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Dataset | Group | ctx | 0 | 1 | 3 | 5 | 7 | 11 | 0–1 | 0–3 | all |
| Atlantic tides | ICL | 204 | |||||||||
| Atlantic tides | ICL | 320 | |||||||||
| Pacific tides | ICL | 204 | |||||||||
| Pacific tides | ICL | 320 | |||||||||
| USCRN | ICL | 204 | |||||||||