Dataset Viewer
Auto-converted to Parquet Duplicate
sample_id
int64
stage_index
int64
stage_seq_len
int64
text
string
embedding
list
orig_embedding
list
pca_coefficients_to_save
null
initialization_embedding
list
final_loss
float64
final_convergence
float64
num_input_tokens
int64
num_compression_tokens
int64
hidden_size
int64
loss_type
string
dtype
string
model_checkpoint
string
max_optimization_steps_per_sample
int64
convergence_threshold
float64
steps_taken
int64
information_gain_bits
float64
0
0
1
[[0.10980450361967087,0.07829578965902328,-0.051359426230192184,0.017744947224855423,0.0566898100078(...TRUNCATED)
[[0.10980450361967087,0.07829578965902328,-0.051359426230192184,0.017744947224855423,0.0566898100078(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
2.328125
1
1
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
27
0
0
1
2
Page
[[0.2258712500333786,-0.13410672545433044,-0.09251649677753448,0.13743752241134644,0.059761177748441(...TRUNCATED)
[[0.2258712500333786,-0.13410672545433044,-0.09251649677753448,0.13743752241134644,0.059761177748441(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
1.25
1
2
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
33
10.910381
0
2
3
Page SOME
[[0.2917860448360443,-0.1388140171766281,-0.08559439331293106,0.32445985078811646,0.0527094006538391(...TRUNCATED)
[[0.2917860448360443,-0.1388140171766281,-0.08559439331293106,0.32445985078811646,0.0527094006538391(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
0.472656
1
3
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
8
36.814083
0
3
4
Page SOME AN
[[0.2917284369468689,-0.15099798142910004,-0.10232453793287277,0.5660262703895569,0.0286869741976261(...TRUNCATED)
[[0.2917284369468689,-0.15099798142910004,-0.10232453793287277,0.5660262703895569,0.0286869741976261(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
0.558594
1
4
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
7
44.283975
0
4
5
Page SOME ANIMAL
[[0.26538097858428955,-0.17206983268260956,-0.11389824002981186,0.6393293142318726,0.012363060377538(...TRUNCATED)
[[0.26538097858428955,-0.17206983268260956,-0.11389824002981186,0.6393293142318726,0.012363060377538(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
0.357422
1
5
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
2
46.329672
0
5
6
Page SOME ANIMAL PROP
[[0.16885258257389069,-0.1919126957654953,-0.1486426144838333,0.8242118954658508,-0.0293816737830638(...TRUNCATED)
[[0.16885258257389069,-0.1919126957654953,-0.1486426144838333,0.8242118954658508,-0.0293816737830638(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
0.263672
1
6
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
8
58.75601
0
6
7
Page SOME ANIMAL PROPENS
[[0.08273951709270477,-0.19625510275363922,-0.13516655564308167,0.904280424118042,-0.007765809539705(...TRUNCATED)
[[0.08273951709270477,-0.19625510275363922,-0.13516655564308167,0.904280424118042,-0.007765809539705(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
0.144531
1
7
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
5
65.555274
0
7
8
Page SOME ANIMAL PROPENSITIES
[[0.06308601051568985,-0.20433253049850464,-0.1303243190050125,0.9295762777328491,0.0016847626538947(...TRUNCATED)
[[0.06308601051568985,-0.20433253049850464,-0.1303243190050125,0.9295762777328491,0.0016847626538947(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
0.091309
1
8
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
1
65.490465
0
8
9
Page SOME ANIMAL PROPENSITIES.
[[0.03559147194027901,-0.16190241277217865,-0.1330408900976181,1.046126365661621,0.03729900717735290(...TRUNCATED)
[[0.03559147194027901,-0.16190241277217865,-0.1330408900976181,1.046126365661621,0.03729900717735290(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
0.047119
1
9
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
4
69.908719
0
9
10
Page SOME ANIMAL PROPENSITIES.
[[0.03630224987864494,-0.12336353212594986,-0.143097385764122,1.127145767211914,0.03931036219000816,(...TRUNCATED)
[[0.03630224987864494,-0.12336353212594986,-0.143097385764122,1.127145767211914,0.03931036219000816,(...TRUNCATED)
null
[[0.007808964233845472,0.01201790664345026,0.0051314495503902435,0.015872826799750328,0.018815428018(...TRUNCATED)
0.080566
1
10
1
4,096
cross_entropy
bf16
unsloth/Meta-Llama-3.1-8B
10,000
1
2
73.416835
End of preview. Expand in Data Studio

Progressive Cramming Trajectories

Code & method: github.com/FusionBrainLab/progressive_cramming — reference implementation of progressive cramming (the public repo).

Per-stage progressive cramming trajectories for four pretrained LLM families. This dataset backs the tab:progressive_modifications table of the paper: it records, for each document, the full sequence of converged soft-prompt ("memory") embeddings produced as the compressed context is progressively grown one stage at a time.

Each row is one converged cramming stage — a single point on a document's optimization trajectory. To reconstruct a document's trajectory, take all rows with the same sample_id and sort by (stage_index, stage_seq_len).

Source documents: 50 held-out PG19 passages (pg19_1k), sequence length 4096.

Layout

One config per model family, two splits per config:

Config (config_name) baseline arm lowdim arm
Llama-3.1-8B full-dim per-sample embedding, lr=0.1 low-dim projection, dim=256, lr=0.1
pythia-1.4b full-dim per-sample embedding, lr=0.5 low-dim projection, dim=256, lr=0.5
SmolLM2-1.7B full-dim per-sample embedding, lr=0.1 low-dim projection, dim=256, lr=0.1
gemma-3-4b-pt full-dim per-sample embedding, lr=0.1 low-dim projection, dim=32, lr=0.1
  • baseline — the embedding is optimized directly in the model's full hidden space.
  • lowdim — the embedding is parametrized by a low-dimensional projection (over-parametrised per-sample embedding), which yields more compressed tokens per document and a much longer trajectory.

Usage

from datasets import load_dataset

# one model family, one arm
ds = load_dataset("mrsndmn/progressive_cramming_trajectories", "SmolLM2-1.7B", split="baseline")

# reconstruct sample 0's trajectory (ordered list of converged stages)
traj = ds.filter(lambda r: r["sample_id"] == 0).sort(["stage_index", "stage_seq_len"])

The embedding columns are float64 lists of shape [num_compression_tokens, hidden_size] and are large; use .select_columns([...]) / streaming to avoid materialising them all.

Columns

Column Meaning
sample_id Document index (0–49).
stage_index Progressive stage number (trajectory step).
stage_seq_len Number of source tokens crammed at this stage.
text The crammed text.
embedding Converged compression-token embedding at this stage — shape [num_compression_tokens, hidden_size]. The trajectory point.
orig_embedding Back-compat duplicate of embedding (kept identical for legacy eval scripts).
pca_coefficients_to_save Low-dim coefficients in newer runs; null in these runs.
initialization_embedding Embedding used to initialize this stage's optimization.
final_loss Final cross-entropy loss at convergence for this stage.
final_convergence Final token-recovery accuracy at convergence.
num_input_tokens Number of input tokens for the stage.
num_compression_tokens Number of compression ("memory") tokens.
hidden_size Model hidden dimension.
loss_type, dtype, model_checkpoint Run metadata.
max_optimization_steps_per_sample, convergence_threshold Optimization config.
steps_taken Optimization steps taken to converge this stage.
information_gain_bits Information gain (bits) attributed to this stage.

Known caveat: saved-embedding off-by-one

These artifacts were generated before the ProgressiveCrammingTrainer off-by-one fix. The trainer stepped the optimizer once more after the converged forward pass, so the saved embedding (and orig_embedding, information_gain_bits) are one optimization step past the converged state E_t whose final_loss / final_convergence were recorded. When reconstructing prefixes from embedding, expect occasional large-margin mismatches against the reported final_convergence (≈1.0). The scalar metrics (final_loss, final_convergence, steps_taken) are unaffected.

Provenance

Generated by progressive-cramming runs and published from the project's research codebase. A lean, self-contained reference implementation of the method (full / progressive / low-dim cramming) is in the public repository: github.com/FusionBrainLab/progressive_cramming. The arm/run definitions mirror the paper's progressive_modifications table.

Downloads last month
36