Dataset Viewer
Auto-converted to Parquet Duplicate
model
large_stringclasses
5 values
L
int64
512
2.05k
L_eff
int64
533
2.16k
depth
float64
0.1
0.9
n_distractors
int64
1
4
seed
int64
63.1k
2.15B
lp_short
float64
-12.28
-0
lp_long
float64
-101.37
-0
loss
float64
-12.26
101
a_star_mean
float64
-15.31
0.89
a_star_min
float64
-55.22
0.75
a_dist_mean
float64
0
34.4k
a_fill_mean
float64
0.05
874k
a_sink_mean
float64
0
306
n_fill
int64
473
2.05k
n_dist
int64
11
55
topk
int64
8
8
a_star_short
float64
0.23
0.91
⌀
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.631855
3
978,287,943
-0.502913
-8.094641
7.591727
0.025607
0
0.023974
0.430008
0.125672
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,114
0.412576
1
226,578,491
-0.081184
-1.281256
1.200072
0.083078
0
0.003967
0.679882
0.088236
2,048
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.707413
3
22,195,472
-0.011795
-1.187525
1.17573
0.287982
0
0.015662
0.533212
0.130023
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.837313
2
1,416,553,135
-0.046605
-0.042667
-0.003939
0.178817
0
0.012323
0.529054
0.105046
2,048
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,154
0.412196
4
1,970,467,903
-0.014437
-2.596225
2.581788
0.037337
0
0.015834
0.692485
0.147375
2,048
53
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,090
0.610281
1
1,723,660,256
-0.078378
-5.264008
5.18563
0.148276
0
0.00629
0.634126
0.083934
1,024
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.808213
3
803,794,097
-0.013819
-6.415328
6.401509
0.120673
0
0.013457
0.793817
0.041095
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,103
0.463413
2
12,094,693
-0.020111
-0.085987
0.065876
0.239717
0
0.063976
0.487687
0.090186
1,024
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,114
0.555521
1
1,407,323,938
-0.079907
-0.207013
0.127106
0.092303
0.000002
0.007699
0.607557
0.13758
2,048
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.718401
3
1,543,271,933
-0.101249
-0.523475
0.422226
0.099034
0
0.020877
0.566648
0.071621
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.211867
1
1,320,601,862
-0.017347
-0.049396
0.032049
0.203285
0
0.009187
0.5791
0.062052
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.195742
1
1,519,326,749
-0.020594
-0.030994
0.0104
0.242112
0.000002
0.006902
0.560522
0.05122
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.55025
3
248,550,608
-0.014474
-0.032908
0.018434
0.366902
0
0.018989
0.457246
0.079771
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,143
0.160377
3
1,768,015,751
-0.013608
-0.32707
0.313462
0.084107
0
0.022192
0.690011
0.138171
2,048
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,103
0.578279
2
375,313,884
-0.021382
-4.196578
4.175195
0.132032
0
0.012868
0.638784
0.134199
1,024
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
604
0.228635
3
238,040,834
-0.026556
-0.035676
0.00912
0.186174
0
0.085851
0.531962
0.03757
512
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.813251
2
141,216,676
-0.089456
-0.073226
-0.01623
0.193798
0
0.008541
0.468643
0.048698
2,048
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.107844
1
1,762,262,913
-0.079744
-0.164794
0.08505
0.085153
0
0.011392
0.702956
0.064513
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,140
0.76819
3
234,119,727
-0.054523
-0.103997
0.049474
0.06326
0
0.068335
0.556284
0.079335
2,048
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,129
0.351464
4
239,311,787
-0.016139
-0.318111
0.301972
0.144644
0
0.025864
0.697573
0.127819
1,024
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.580046
2
1,485,039,436
-0.040903
-0.276264
0.235361
0.163841
0
0.016529
0.546636
0.230209
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,130
0.107074
4
142,302,763
-0.077186
-1.406599
1.329413
0.129805
0
0.009113
0.703964
0.143514
1,024
53
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
618
0.687772
4
1,931,266,961
-0.03635
-0.445279
0.408928
0.20127
0.000001
0.040143
0.533874
0.100237
512
53
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
617
0.252514
4
709,385,306
-0.046527
-0.634134
0.587607
0.290122
0.000002
0.054557
0.541856
0.094278
512
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.10773
2
101,191,552
-0.02633
-0.020159
-0.006172
0.064978
0
0.050238
0.6273
0.092488
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,129
0.692543
4
1,088,529,457
-0.044741
-0.661311
0.616571
0.087858
0
0.038806
0.590164
0.122206
1,024
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,130
0.275162
4
1,614,461,865
-0.120378
-0.135951
0.015573
0.262137
0
0.023523
0.552815
0.058621
1,024
53
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,129
0.160595
4
95,460,086
-0.011827
-1.443864
1.432037
0.162231
0.000002
0.017794
0.720576
0.066149
1,024
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,129
0.513145
4
2,093,288,901
-0.02321
-0.531402
0.508193
0.229385
0
0.007024
0.626931
0.114801
1,024
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.4476
1
1,792,923,552
-0.222737
-8.299206
8.076469
0.038262
0
0.036075
0.730956
0.072851
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
605
0.408705
3
588,409,796
-0.009887
-0.00933
-0.000558
0.555817
0
0.05395
0.325055
0.03322
512
40
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,140
0.72784
3
991,424,159
-0.026639
-0.255936
0.229297
0.04066
0
0.01317
0.560559
0.194232
2,048
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,090
0.617602
1
1,122,628,909
-0.061854
-0.165012
0.103159
0.090687
0
0.01176
0.674991
0.065866
1,024
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
617
0.261552
4
1,283,330,333
-0.13395
-0.163826
0.029876
0.255599
0.000001
0.019087
0.459638
0.147639
512
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,153
0.44507
4
1,095,130,308
-0.039518
-7.446714
7.407196
0.006282
0.000201
0.082494
0.613128
0.211848
2,048
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,090
0.355268
1
710,613,084
-0.035088
-3.845495
3.810407
0.115665
0
0.00482
0.601654
0.075381
1,024
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.651418
1
1,305,427,402
-0.046987
-0.020889
-0.026098
0.205791
0.000005
0.029053
0.584763
0.050799
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.353404
3
517,849,319
-0.027797
-0.100905
0.073108
0.290686
0
0.018542
0.432924
0.077076
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,129
0.337598
4
1,819,723,160
-0.010469
-0.039647
0.029178
0.522748
0
0.005192
0.245056
0.205838
1,024
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.695059
2
414,337,338
-0.017779
-0.646162
0.628383
0.184664
0.000002
0.014071
0.574812
0.061655
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,144
0.405963
3
369,745,527
-0.012298
-6.113652
6.101355
0.015676
0
0.002524
0.861129
0.104478
2,048
40
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.31259
1
813,005,558
-0.042702
-0.012561
-0.030141
0.149575
0
0.021448
0.602233
0.05134
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.142846
1
370,727,896
-0.080801
-0.004853
-0.075948
0.134151
0
0.018471
0.644935
0.065039
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.252864
2
690,672,707
-0.026622
-0.080309
0.053686
0.169852
0
0.006045
0.442934
0.187454
2,048
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,103
0.404628
2
325,531,800
-0.013218
-1.027958
1.014741
0.16681
0
0.088201
0.432404
0.164591
1,024
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,129
0.177323
4
1,981,764,943
-0.012303
-1.98141
1.969107
0.103962
0
0.021943
0.683562
0.101238
1,024
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,114
0.455253
1
292,157,528
-0.223802
-0.887356
0.663554
0.020105
0
0.022567
0.797131
0.053009
2,048
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,140
0.134081
3
754,792,471
-0.018875
-6.555766
6.536891
0.065838
0
0.004331
0.574889
0.178263
2,048
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.669183
2
24,446,213
-0.009724
-0.101757
0.092032
0.190064
0
0.006294
0.545095
0.099187
2,048
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.89964
2
86,578,378
-0.038547
-1.936914
1.898367
0.148499
0
0.010214
0.513169
0.064882
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,090
0.680478
1
2,047,405,854
-0.058144
-0.02289
-0.035254
0.120549
0
0.070391
0.593273
0.078244
1,024
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.604226
1
153,103,216
-0.029671
-0.061196
0.031525
0.259528
0
0.007506
0.543506
0.068191
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,153
0.816454
4
841,012,575
-0.019274
-2.160301
2.141027
0.121732
0
0.012861
0.572569
0.26941
2,048
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
594
0.250536
2
1,532,870,836
-0.030669
-1.814679
1.784011
0.053124
0
0.013346
0.615045
0.100443
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.158021
2
1,449,213,855
-0.135888
-0.037264
-0.098624
0.179601
0
0.027684
0.517573
0.047753
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
604
0.436022
3
1,930,028,630
-0.011993
-0.020009
0.008016
0.270023
0
0.058329
0.615185
0.039669
512
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
604
0.427214
3
177,136,950
-0.039387
-0.04243
0.003043
0.393981
0
0.084349
0.397925
0.034975
512
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.803824
1
1,613,606,499
-0.017031
-0.014897
-0.002134
0.228489
0
0.004936
0.512967
0.121115
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.541281
1
166,657,835
-0.036044
-0.091329
0.055285
0.150522
0
0.024181
0.643241
0.055415
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,103
0.33475
2
1,395,558,741
-0.039559
-0.127784
0.088225
0.142404
0
0.038276
0.539427
0.036147
1,024
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
605
0.704553
3
717,681,537
-0.00745
-0.334519
0.327069
0.220203
0.000001
0.021215
0.639168
0.049901
512
40
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.577186
3
95,793,685
-0.018943
-0.008283
-0.01066
0.382989
0
0.017484
0.402006
0.081459
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,103
0.466754
2
973,404,345
-0.048018
-5.476602
5.428584
0.035353
0
0.067664
0.639975
0.0641
1,024
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,103
0.589379
2
2,064,021,794
-0.060783
-0.092803
0.03202
0.163176
0
0.055648
0.475238
0.114441
1,024
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,114
0.184614
1
891,569,815
-0.056175
-0.874653
0.818479
0.034916
0
0.060926
0.559407
0.132061
2,048
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.440278
2
1,544,142,404
-0.011451
-1.498574
1.487123
0.10154
0
0.018936
0.631434
0.114784
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.59739
3
2,132,682,315
-0.03996
-0.015766
-0.024194
0.303085
0
0.016885
0.431574
0.092808
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,140
0.826011
3
392,818,635
-0.078898
-0.183166
0.104268
0.055243
0
0.016711
0.528985
0.078377
2,048
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,140
0.507095
3
77,733,338
-0.04282
-0.218308
0.175487
0.081126
0
0.037722
0.47545
0.059203
2,048
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.424546
3
1,664,186,029
-0.025066
-6.376891
6.351825
0.01848
0
0.087537
0.624026
0.114586
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,154
0.16932
4
347,271,121
-0.023001
-0.582069
0.559068
0.324866
0
0.007928
0.596607
0.066343
2,048
53
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,140
0.357446
3
1,258,108,537
-0.043783
-1.144002
1.100219
0.11968
0
0.095067
0.543766
0.151566
2,048
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.606619
2
243,780,282
-0.019326
-7.319474
7.300148
0.032487
0
0.056471
0.58808
0.061904
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,141
0.580165
3
1,129,306,964
-0.014524
-1.021654
1.007129
0.16666
0
0.007599
0.642079
0.079945
2,048
40
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.211214
2
1,311,748,363
-0.020775
-0.067756
0.046981
0.147337
0.000004
0.042557
0.608781
0.044754
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,140
0.863399
3
2,066,397,079
-0.118593
-0.047474
-0.07112
0.070968
0
0.003352
0.473399
0.164231
2,048
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.461745
2
625,279,006
-0.035054
-0.1291
0.094046
0.185871
0
0.007812
0.655496
0.079591
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
617
0.422308
4
2,026,717,618
-0.010567
-0.507002
0.496435
0.468972
0
0.042196
0.404985
0.07977
512
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
617
0.778948
4
1,088,874,151
-0.006686
-3.019684
3.012998
0.139265
0
0.006503
0.744445
0.056532
512
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,090
0.450972
1
1,805,061,632
-0.03399
-1.045112
1.011123
0.161021
0
0.006237
0.503944
0.149728
1,024
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,129
0.771012
4
997,498,792
-0.010704
-1.691278
1.680574
0.109763
0
0.051034
0.734456
0.097593
1,024
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
591
0.42881
2
895,684,923
-0.06602
-0.048305
-0.017715
0.118299
0
0.043844
0.579757
0.061553
512
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,116
0.278194
3
991,784,915
-0.009115
-0.827446
0.818331
0.236872
0
0.024067
0.557082
0.124856
1,024
39
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,114
0.493803
1
1,204,293,041
-0.071901
-2.762371
2.69047
0.092163
0
0.009986
0.665708
0.053935
2,048
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,114
0.348624
1
1,772,970,807
-0.25987
-0.155167
-0.104702
0.111202
0
0.00682
0.554847
0.123305
2,048
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,103
0.106226
2
1,461,763,536
-0.027177
-3.945673
3.918496
0.065879
0
0.055076
0.672583
0.060252
1,024
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.192737
2
1,878,244,791
-0.010273
-4.398612
4.388338
0.022727
0.000001
0.00294
0.54017
0.287583
2,048
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,090
0.306115
1
448,297,003
-0.022082
-0.121983
0.099901
0.082828
0
0.178339
0.562131
0.071826
1,024
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
618
0.522372
4
2,018,259,332
-0.019285
-0.061157
0.041872
0.435686
0
0.101911
0.386339
0.03732
512
53
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,114
0.696585
1
1,263,606,637
-0.048824
-1.500114
1.45129
0.04979
0
0.00621
0.649893
0.102475
2,048
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.413703
2
9,770,694
-0.033852
-0.340711
0.306859
0.086235
0
0.038924
0.614263
0.128345
2,048
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.86323
2
495,615,201
-0.100124
-3.667304
3.56718
0.148623
0
0.005889
0.507618
0.06003
2,048
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,153
0.264354
4
737,475,421
-0.019013
-4.529408
4.510396
0.043144
0
0.044009
0.707315
0.081358
2,048
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.653554
2
543,186,479
-0.05434
-3.1904
3.13606
0.031058
0
0.025314
0.56631
0.082063
2,048
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,090
0.611075
1
961,396,519
-0.036155
-1.634504
1.59835
0.101312
0
0.019412
0.591199
0.101265
1,024
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
512
578
0.871529
1
1,818,119,882
-0.020081
-0.011582
-0.008499
0.204783
0
0.005685
0.543259
0.0867
512
13
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,128
0.328133
2
1,951,196,866
-0.0394
-3.796338
3.756937
0.009724
0
0.035173
0.711557
0.051586
2,048
27
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,153
0.807458
4
888,195,595
-0.025206
-0.14843
0.123225
0.307472
0
0.000553
0.49428
0.197358
2,048
52
8
null
Qwen/Qwen2.5-0.5B-Instruct
1,024
1,103
0.27555
2
247,725,412
-0.016908
-6.355583
6.338676
0.043321
0
0.008537
0.7497
0.074162
1,024
26
8
null
Qwen/Qwen2.5-0.5B-Instruct
2,048
2,127
0.448762
2
30,636,075
-0.034044
-0.080554
0.04651
0.1737
0
0.020003
0.511096
0.165518
2,048
26
8
null
End of preview. Expand in Data Studio

Length Is Cheap, Competition Is Not

Trial-level measurements: attention predicts context rot in retrieval

arXiv HF Paper Code ORCID License MIT

This dataset holds every trial behind the paper Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval. Each row is one forward pass of an open language model on a key-value retrieval prompt. For each trial we store the log-probability of the correct answer under several context conditions and, for the attention files, the attention mass that the model places on the evidence (a*).

197,000 rows · 6 files · 6 models · 512 to 32,768 tokens.

TL;DR

  • Length is cheap. At 32K tokens, neutral filler costs Qwen2.5-1.5B a median of 0.004 nats. Accuracy stays at 0.97 to 1.00.
  • Competition is not. Statements in the evidence format, at the same positions, drop accuracy to 0.11 to 0.21 (8K to 32K tokens). A single statement that gives the queried key a rival value multiplies the loss by 9 to 110.
  • Attention predicts the loss. Across 126,473 trials, log(1/a*) explains 35 to 58% of the variance in loss. Log length explains 2 to 8%.
  • Masking is not a length control. The masked-filler protocol reproduces on MMLU (11 to 18 points lost at 30K tokens). In retrieval, masking costs 46 accuracy points at 32K, while the same filler left visible costs none.

The attention result is predictive, not causal: a* is read in the same forward pass as the loss, and no intervention on attention was run.

Loss against the number of same-key rival statements at 2,048 tokens, five models Variance in loss explained by attention and by length, five models
Rival values carry the loss. Near zero without a rival. Attention beats length. R² 0.35 to 0.58 against 0.02 to 0.08.

Files

Config File Rows Models Lengths Content
c2_attention (default) c2_attention.parquet 126,473 5 512 to 2,048 Loss and attention on evidence, competing filler
c2_attention_long c2_attention_long.parquet 11,433 3 512 to 32,768 Same columns. Qwen2.5-1.5B and Llama-3.2-3B at 8K to 32K, SmolLM2-1.7B at 512 to 8K
c1_retrieval c1_retrieval.parquet 16,327 5 up to 4,096 Four-arm decomposition: short, neutral, studied filler, masked
c1_retrieval_long c1_retrieval_long.parquet 4,574 2 8,192 to 32,768 Same columns. Qwen2.5-0.5B and 1.5B
c2_nconf_sample c2_nconf_sample.parquet 20,193 5 512 to 2,048 Stratified sample of c2_attention with the number of same-key rivals rebuilt from each seed
mmlu_masked mmlu_masked.parquet 18,000 see below 0 to 30,000 masked Masked-filler MMLU replication, one row per question and length

Quick start

from datasets import load_dataset

trials = load_dataset("yliusci/length-is-cheap", "c2_attention", split="train").to_pandas()
print(trials.groupby("model")[["loss", "a_star_mean"]].mean())
import numpy as np
import statsmodels.formula.api as smf

df = trials.assign(log_inv_a=-np.log(trials.a_star_mean.clip(lower=1e-6)), log_L=np.log(trials.L))
for m, g in df.groupby("model"):
    r_att = smf.ols("loss ~ log_inv_a", g).fit().rsquared
    r_len = smf.ols("loss ~ log_L", g).fit().rsquared
    print(f"{m:45s} R2 attention {r_att:.2f}   R2 length {r_len:.2f}")

With pandas only:

import pandas as pd
trials = pd.read_parquet("hf://datasets/yliusci/length-is-cheap/c2_attention.parquet")

Task

Every prompt holds one fact (the evidence) and asks for it back:

You are a careful assistant. Read the document and answer the question.
... filler ... The secret code of the river is 4821. ... filler ...
Question: what is the secret code of the river? Answer: The secret code of the river is
  • The evidence sits at a relative depth between 0 and 1 in the context.
  • The filler fills the rest of the context up to L tokens.
  • The score is the summed log-probability of the value tokens (4821), read with teacher forcing.
  • A trial is correct when every value token is the top-1 prediction.

Fillers

Filler Kind What it is
random_words neutral Random English words. Also the neutral reference arm in c1_*.
repeat_sentence neutral "The weather report for the coastal region was unremarkable." repeated. Used as the control arm.
numbers neutral Random numbers.
near_distractors competing Statements in the evidence template ("The secret code of the X is NNNN."). About 1 in 51 restates the queried key with a different value (a rival). All c2_* trials use this filler.

Schema

c2_attention, c2_attention_long

Column Type Meaning
model string Hugging Face model id
L int Target context length in tokens
L_eff int Actual length after truncation to the model window
depth float Relative position of the evidence (0 = start, 1 = end)
n_distractors int Explicit distractor statements inserted (1 to 4 in c2_*)
seed int Seed that rebuilds the exact context
lp_short float Log-probability of the answer, evidence right before the question
lp_long float Log-probability of the answer in the full context
loss float lp_short - lp_long, in nats. Higher is worse.
a_star_mean float a*: attention mass on the evidence tokens, mean over the 8 selected heads, at the last query token
a_star_min float Minimum of the same over the 8 heads
a_dist_mean float Attention mass on explicit distractor tokens
a_fill_mean float Attention mass on filler tokens
a_sink_mean float Attention mass on the attention-sink position
a_star_short float a* in the short context, on the same heads
n_fill, n_dist int Number of filler and distractor tokens
topk int Number of selected (layer, head) pairs, always 8

The 8 heads are, per trial, the (layer, head) pairs with the highest evidence mass in the short context.

c1_retrieval, c1_retrieval_long

Column Type Meaning
model, L, L_eff, depth, seed, n_distractors As above
filler string Studied filler (see table above)
kind string Sampling mode of the adaptive search: explore, exploit, replicate, or control (studied filler replaced by repeat_sentence)
device string Hardware backend of the run
lp_short float Evidence right before the question
lp_neu float Evidence inside neutral filler (random_words), visible
lp_long float Evidence inside the studied filler, visible
lp_mask float Same as lp_long with the filler masked from attention, positions kept
d_dist float lp_short - lp_neu: cost of distance
d_sim float lp_neu - lp_long: cost of the studied filler against neutral filler (competition cost; the name is historical)
d_gap float lp_neu - lp_mask: cost of masking
d_tot float lp_short - lp_long
acc_short, acc_neu, acc_long, acc_mask bool Top-1 correct in each arm
n_tokens int Prompt length in tokens

c2_nconf_sample

A stratified sample of c2_attention (per model and length). Each row adds the number of same-key rivals inside the kept context, rebuilt from the trial seed by scripts/rival_split.py. This file supports the rival analysis of the paper.

mmlu_masked

Replication of the masked-filler protocol of Du et al. (2025) on 1,000 MMLU test questions, at 0, 3,750, 7,500, 15,000 and 30,000 masked tokens, on Llama-3.2-3B and Qwen2.5-7B-Instruct (Table 5 of the paper). One row per model, question and length. Open the dataset viewer for the exact columns.

Models

Model Window c1 c2 attention MMLU
Qwen/Qwen2.5-0.5B-Instruct 32,768 up to 32K up to 2K
Qwen/Qwen2.5-1.5B-Instruct 32,768 up to 32K up to 32K up to 4K
HuggingFaceTB/SmolLM2-1.7B-Instruct 8,192 up to 4K up to 8K
allenai/OLMo-2-0425-1B-Instruct 4,096 up to 2K up to 2K
meta-llama/Llama-3.2-3B (base) 131,072 up to 4K up to 32K up to 30K
Qwen/Qwen2.5-7B-Instruct 32,768 up to 30K

In c2_attention_long, Llama-3.2-3B appears as unsloth/Llama-3.2-3B, an ungated copy of the same base weights.

Main numbers

Predictors of the loss, c2_attention, L in {512, 1,024, 2,048}:

Model n R²(a*) R²(log(1/a*)) R²(log L) Slope [95% CI]
Qwen2.5-0.5B 32,318 0.23 0.35 0.03 1.40 [1.38, 1.42]
Qwen2.5-1.5B 40,632 0.43 0.58 0.05 2.22 [2.21, 2.24]
SmolLM2-1.7B 9,325 0.30 0.41 0.07 1.68 [1.64, 1.72]
OLMo-2-1B 42,005 0.26 0.35 0.02 3.97 [3.92, 4.02]
Llama-3.2-3B 2,193 0.36 0.45 0.08 2.75 [2.63, 2.88]

From 8K to 32K (c2_attention_long), R²(log(1/a*)) is 0.32 on Qwen2.5-1.5B and 0.33 on Llama-3.2-3B, against 0.02 and 0.03 for log length.

Important: rivals in near_distractors

In near_distractors, filler keys were drawn from 51 words without excluding the queried key. About 1 filler statement in 51 therefore gives the queried key a different value, and the context contradicts itself. This was not designed. It is why the paper speaks of competing statements and rival values, not of similarity in general.

  • Contexts with no rival lose 0.02 to 0.34 nats. Contexts with at least one lose 1.38 to 3.24 nats (L ≤ 2,048, five models).
  • From 4,096 tokens on, every near_distractors context holds at least one rival.
  • Format similarity without rivals is not measured in isolation in this release.

Intended uses

  • Testing theories of long-context failure and attention dilution on real trial-level data.
  • Benchmarking attention-based diagnostics of retrieval failure.
  • Re-analysis of the paper's claims, including alternative predictors and models of the threshold.

Out of scope. These are synthetic prompts. They do not measure retrieval quality on real documents, and they should not be used to rank models.

Limitations

  • Correlational. No intervention on a* was run.
  • The 126,473-trial fit covers 512 to 2,048 tokens. The long-context fit covers three models.
  • In near_distractors, the number of rivals grows with length, so the two are not fully separated.
  • The rival analysis was made after data collection and was not preregistered.
  • a* is read at one query token, on 8 heads, without removing the attention sink.
  • Value tokenization differs across models (5 tokens on Qwen and SmolLM2, 3 on OLMo and Llama). Losses compare within a model, not across models.
  • One synthetic task. Models of at most 3B parameters, except Qwen2.5-7B in the MMLU replication.

Reproduce

Code, attention probe and figure scripts: github.com/yliusci/length-is-cheap. Every row stores its seed, so each context can be rebuilt exactly.

License

The data are released under the MIT License. The models and MMLU keep their own licenses.

Citation

@misc{liu2026length,
  title         = {Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval},
  author        = {Liu, Yinuo},
  year          = {2026},
  eprint        = {2611.04169},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2611.04169}
}

Questions and corrections: open an issue on GitHub or a discussion in the Community tab.

Downloads last month
159

Paper for yliusci/length-is-cheap