MentorPulse: Refreshing Cross-Model Latent Guidance for Long-Form Generation
Organizations: King Abdullah University of Science and Technology (KAUST)
Abstract
Cross-model latent guidance lets a frozen large mentor encode an input once and a frozen small student generate from the resulting signal. Existing methods keep this signal fixed, assuming it stays useful as the output grows; we show this fails in long-form generation. On multi-turn instruction following, static guidance pushes a 4B student's constraint satisfaction 2.5 points below its no-guidance baseline; a training-free refresh every 16 tokens changes only the memory content and restores a 2.0-point gain over that baseline. We propose MentorPulse to keep guidance fresh at practical cost: it compresses mentor states into a capped slot memory, incrementally processes newly generated tokens, and updates the memory that the student reads through gated cross-attention without resetting the student's KV cache. Windowed Refresh Training exposes the bridge to prefix-conditioned memory. Across thirteen datasets, MentorPulse closes 52.2% of the mentor-student gap on macro average, outperforming C2C, T2T, and equal-budget LoRA, with the largest gains on long outputs. It performs best on all eleven mentor-student pairs from three model families, with margins that narrow as the capability gap grows, and a lightweight read-pattern check predicts the gain before deployment. Measured costs identify refresh intervals that dominate text guidance on long outputs.
Figures & tables
| # | Ablation | G | K | A | J | Rec. |
| 1 | Full system ( ) | 88.9 | 82.9 | 36.7 | 81.3 | — |
| Refresh mechanism | ||||||
| 2 | No refresh ( ) | 79.4 | 77.6 | 36.7 | 81.3 | |
| 3 | Refresh w/o WRT | 80.6 | 79.8 | 36.7 | 81.3 | |
| 4 | Full re-prefill | 88.6 | 83.0 | 36.7 | 81.3 | |
| Memory content | ||||||
| Pair | T2T | C2C | LoRA | MP | |
|---|---|---|---|---|---|
| A1 (27B 9B) | 3.0 | 25.3 | 9.2 | 16.3 | 54.0 |
| A2 (27B 4B) | 6.8 | 26.9 | 10.9 | 17.5 | 52.2 |
| A3 (27B 2B) | 13.5 | 18.9 | 8.7 | 11.8 | 35.7 |
| B1 (31B 12B) | 2.6 | 18.8 | 7.1 | 16.9 | 42.1 |
| C1 (32B 8B) | 4.0 | 25.5 | 11.9 | 14.9 | 54.6 |
| C2 (32B 4B) | 8.2 | 22.4 | 11.4 | 16.0 | 45.8 |
Appendix figures & tables29 assets
Supplementary material from the paper’s appendix.
Appendix
| Code | Dataset | Metric | Eval. subset | Long-gen. suite |
|---|---|---|---|---|
| A | MMLU-Pro | accuracy | 2,000 (stratified) | — |
| B | GPQA | accuracy (diamond) | 198 | — |
| C | AGIEval-MCQ | accuracy | 2,000 (stratified) | — |
| D | MATH-500 | exact-match accuracy | 500 | ✓ |
| E | OlympiadBench | exact-match accuracy (OE-TO-maths-en) | 675 | ✓ |
| F | LiveCodeBench | pass@1 | 400 (post 2025-07) | — |
| Code | Dataset | Input med. | Output med. | med. |
|---|---|---|---|---|
| A | MMLU-Pro | 410 | 6 | 130 |
| B | GPQA | 540 | 92 | — |
| C | AGIEval-MCQ | 320 | 5 | — |
| D | MATH-500 | 140 | 430 | — |
| E | OlympiadBench | 280 | 570 | — |
| F | LiveCodeBench | 470 | 520 | — |
| Condition | Definition | Role | Mentor decodes |
|---|---|---|---|
| S-only | student alone, no bridge, no memory | floor | — |
| M-only | mentor answers alone | ceiling | yes |
| T2T | one-shot mentor guidance text ( ) prepended to the student prompt | text-interface route | yes (once) |
| rT2T@ | T2T guide refreshed every tokens; replace-style rebuild, delimiter-stripped | text refresh cell (Appendix C.2 ) | yes (every refresh) |
| C2C | mentor layer-wise KV fused into the student cache once before decoding | static-latent route | no |
| LoRA | equal-budget low-rank finetuning, no memory | parameter route | — |
| Property | L2S | C2C | LGR | SpecDec | MP |
|---|---|---|---|---|---|
| Mentor frozen | ✓ | ✓ | ✗ | ✓ | ✓ |
| Explicit state-count cap | ✗ | ✗ | ✓ | — | ✓ |
| Prefix-conditioned refresh | ✗ | ✗ | ✗ | — | ✓ |
| Matches mentor distribution | ✗ | ✗ | ✗ | ✓ | ✗ |
| Item | Value |
|---|---|
| Long-target prompts / kept labels | 26,997 / 20,408 |
| Quality-gate filter rate | 5–15% per gate, 24.4% total |
| Mixed training rows (fuse_v3) | 51,908 |
| Long / short-answer mix | 20,408 / 31,500 (39% / 61%) |
| Mentor state store (27B, bf16) | TB |
| Max label length | 768 tokens |
| Code | Dataset | M-only | S-only | T2T | C2C | LoRA | MP@16 |
|---|---|---|---|---|---|---|---|
| A | MMLU-Pro | 49.5 0.1 | 24.1 0.2 | 31.6 0.7 | 37.0 0.1 | 28.9 0.2 | 36.7 0.8 |
| B | GPQA | 47.9 0.2 | 20.2 0.2 | 28.3 0.8 | 32.0 0.8 | 25.8 0.7 | 34.7 0.4 |
| C | AGIEval-MCQ | 61.1 0.1 | 40.4 0.0 | 46.2 0.7 | 49.8 0.2 | 44.1 0.9 | 51.0 0.4 |
| D | MATH-500 | 64.5 0.1 | 56.7 0.1 | 59.4 0.4 | 59.3 0.3 | 57.7 0.4 | 60.2 0.3 |
| E | OlympiadBench | 26.5 0.1 | 20.2 0.1 | 21.9 0.6 | 22.0 0.6 | 21.2 0.7 | 23.7 1.1 |
| F | LiveCodeBench | 61.3 0.2 | 36.3 0.2 | 38.0 1.2 | 36.8 1.4 | 37.6 0.5 | 37.0 1.2 |
| # | Condition | G | K | A | J | Runs |
| 1 | MP (full system, ) | 88.9 0.4 | 82.9 1.3 | 36.7 0.8 | 81.3 0.6 | reused ( MP@16, Tab. 8 ) |
| Refresh mechanism | ||||||
| 2 | MP refresh ( ) | 79.4 0.2 | 77.6 0.9 | 36.7 0.8 | 81.3 0.6 | retrained |
| 3 | MP WRT (zero-training swap) | 80.6 0.5 | 79.8 0.9 | 36.7 0.8 | 81.3 0.6 | inference only |
| 4 | MP full (full re-prefill) | 88.6 0.2 | 83.0 0.9 | 36.7 0.8 | 81.3 0.6 | inference only |
| Memory content | ||||||
| M-only | S-only | T2T | C2C | LoRA | MP@16 | |
| A1 : Qwen3.5-27B Qwen3.5-9B ( ) | ||||||
| A | 49.5 0.1 | 27.4 0.1 | 34.7 0.6 | 39.0 0.3 | 31.4 0.2 | 39.6 0.2 |
| B | 47.9 0.2 | 27.9 0.0 | 33.1 0.7 | 38.3 0.6 | 31.9 0.9 | 40.0 0.9 |
| C | 61.1 0.1 | 47.4 0.1 | 52.1 0.5 | 54.1 0.5 | 50.1 0.4 | 55.2 0.4 |
| D | 64.5 0.1 | 58.3 0.0 | 59.4 0.8 | 59.6 0.3 | 59.4 0.9 | 60.9 0.9 |
| E | 26.5 0.1 | 21.7 0.0 | 23.1 0.8 | 22.5 1.2 | 23.0 0.7 | 24.5 1.4 |
| M-only | S-only | T2T | C2C | LoRA | MP@16 | |
| B1 : Gemma-4-31B Gemma-4-12B ( ) | ||||||
| A | 65.6 0.1 | 44.3 0.0 | 50.4 0.4 | 54.0 0.4 | 48.2 0.3 | 54.3 0.3 |
| B | 51.5 0.2 | 42.4 0.0 | 45.4 1.0 | 46.4 0.4 | 44.5 0.8 | 47.5 0.8 |
| C | 68.0 0.0 | 51.3 0.2 | 56.3 0.1 | 58.4 0.1 | 54.2 0.5 | 59.3 0.7 |
| D | 54.2 0.0 | 10.1 0.2 | 11.9 0.9 | 10.6 0.6 | 13.1 0.2 | 12.2 1.2 |
| E | 31.5 0.1 | 2.1 0.0 | 3.9 0.3 | 1.9 0.3 | 3.8 0.4 | 3.1 0.7 |
| M-only | S-only | T2T | C2C | LoRA | MP@16 | |
| C2 : Qwen3-32B Qwen3-4B ( ) | ||||||
| A | 20.4 0.0 | 13.0 0.2 | 14.6 0.4 | 16.1 0.1 | 14.1 0.3 | 15.9 0.5 |
| B | 24.9 0.1 | 17.8 0.0 | 20.3 1.7 | 20.4 0.6 | 18.3 0.6 | 21.7 0.8 |
| C | 25.1 0.1 | 14.7 0.0 | 17.4 0.3 | 19.2 0.9 | 16.6 0.1 | 19.7 0.8 |
| D | 69.7 0.2 | 60.1 0.1 | 62.5 0.8 | 63.0 0.9 | 62.2 0.7 | 64.3 0.3 |
| E | 34.0 0.0 | 24.8 0.1 | 27.2 1.1 | 26.4 0.7 | 25.8 1.2 | 29.0 1.5 |
| M-only | S-only | T2T | C2C | LoRA | MP@16 | |
| D1 : Qwen3-14B Qwen3-8B ( ) | ||||||
| A | 20.2 0.1 | 6.1 0.1 | 11.1 0.3 | 13.9 0.5 | 8.7 0.4 | 13.5 0.4 |
| B | 20.6 0.1 | 13.5 0.2 | 15.6 1.0 | 16.6 1.1 | 14.5 1.8 | 18.4 0.7 |
| C | 18.6 0.1 | 12.0 0.0 | 14.1 0.9 | 15.3 0.3 | 13.3 0.8 | 15.4 0.5 |
| D | 68.4 0.0 | 63.5 0.0 | 64.9 0.6 | 66.0 0.3 | 64.7 0.8 | 66.6 0.8 |
| E | 32.8 0.2 | 28.6 0.1 | 29.6 1.0 | 29.4 1.2 | 28.7 0.6 | 30.8 1.2 |
| M-only | S-only | T2T | C2C | LoRA | MP@16 | |
| D3 : Qwen3-14B Qwen3-1.7B ( ) | ||||||
| A | 20.2 0.1 | 9.5 0.1 | 11.0 0.5 | 12.7 0.7 | 10.5 0.3 | 12.3 0.5 |
| B | 20.6 0.1 | 9.7 0.2 | 12.6 1.1 | 12.4 0.5 | 10.1 1.1 | 12.9 0.3 |
| C | 18.6 0.1 | 10.2 0.1 | 11.8 0.9 | 12.6 0.4 | 11.1 0.3 | 12.3 0.6 |
| D | 68.4 0.0 | 56.6 0.1 | 59.0 0.5 | 58.6 0.3 | 57.8 0.2 | 60.1 0.4 |
| E | 32.8 0.2 | 20.7 0.1 | 22.9 0.7 | 23.2 1.6 | 23.2 1.5 | 24.5 0.6 |
| A | 36.5 0.2 | 36.5 0.3 | 36.7 0.7 | 36.7 0.8 ∗ | 36.7 0.8 ∗ | 36.7 0.8 ∗ | 36.7 0.8 ∗ |
| B | 34.8 0.5 | 35.2 0.4 | 34.7 1.5 | 34.9 0.4 | 34.7 0.4 | 33.9 1.4 | 34.0 1.5 |
| C | 51.0 0.8 | 51.1 0.7 | 50.9 0.6 | 51.0 0.4 ∗ | 51.0 0.4 ∗ | 51.0 0.4 ∗ | 51.0 0.4 ∗ |
| D | 60.2 0.6 | 60.5 0.3 | 60.3 0.5 | 60.0 0.5 | 60.2 0.3 | 59.7 0.3 | 57.9 0.8 |
| E | 24.2 1.1 | 23.8 0.4 | 23.8 0.5 | 23.9 1.1 | 23.7 1.1 | 22.7 1.2 | 21.5 0.6 |
| F | 37.4 0.9 | 37.1 0.8 | 36.7 0.4 | 37.2 0.6 | 37.0 1.2 | 37.1 0.9 | 36.6 0.4 |
| Pair | |||||||
|---|---|---|---|---|---|---|---|
| A1 | 56.8 | 56.4 | 56.6 | 55.4 | 54.0 | 44.6 | 29.7 |
| A2 † | 57.1 | 56.8 | 55.3 | 55.0 | 52.2 | 43.1 | 29.4 |
| A3 | 37.9 | 37.5 | 37.5 | 36.8 | 35.7 | 29.2 | 23.8 |
| B1 | 45.1 | 44.3 | 43.9 | 44.2 | 42.1 | 35.3 | 28.0 |
| C1 | 57.5 | 56.9 | 57.6 | 56.6 | 54.6 | 43.5 | 31.3 |
| C2 | 48.8 | 48.2 | 47.9 | 47.6 | 45.8 | 37.2 | 29.7 |
| Task | T2T ( ) | MP@16 | ||||
|---|---|---|---|---|---|---|
| B GPQA | 64 | 31.4 0.9 | 31.6 0.6 | 31.2 0.7 | 28.3 0.8 | 34.7 0.4 |
| 128 | 32.0 0.5 | 31.9 1.2 | 31.5 0.5 | 28.3 0.8 | 34.7 0.4 | |
| D MATH-500 | 64 | 59.9 0.9 | 59.7 0.6 | 59.9 0.2 | 59.4 0.4 | 60.2 0.3 |
| 128 | 60.2 0.6 | 59.9 0.4 | 59.6 0.2 | 59.4 0.4 | 60.2 0.3 | |
| E OlympiadBench | 64 | 23.1 1.0 | 22.7 0.6 | 22.4 0.3 | 21.9 0.6 | 23.7 1.1 |
| 128 | 22.8 1.1 | 23.0 0.4 | 22.5 1.0 | 21.9 0.6 | 23.7 1.1 |
| Pair | ( ) | (nats) | MP macro rec. (%) |
|---|---|---|---|
| A1 | 3.03 0.19 | 4.40 0.07 | 54.0 |
| A2 | 3.26 0.05 | 4.26 0.04 | 52.2 |
| A3 | 2.38 0.36 | 4.54 0.06 | 35.7 |
| B1 | 2.73 0.20 | 4.44 0.10 | 42.1 |
| C1 | 3.10 0.06 | 4.23 0.03 | 54.6 |
| C2 | 2.42 0.08 | 4.58 0.11 | 45.8 |
| Code | Dataset (role) | Metric | Size | In. med. | Out. med. |
|---|---|---|---|---|---|
| D-IF | Multi-IF (primary: sign flip, PosQ) | constraint satisfaction | 400 | 120 | 610 |
| D-SUM | QMSum (long-in/long-out positive) | LLM-judge mean 10 | 200 | 8200 | 640 |
| D-WR | HelloBench (long writing) (open-ended positive) | LLM-judge mean 10 | 150 | 190 | 1150 |
| D-CODE | BigCodeBench (capability-limited negative) | pass@1 | 300 | 380 | 450 |
| D-MCQ | ARC-Challenge (non-triggering negative) | accuracy | 1170 | 460 | 9 |
| Condition | D-IF | D-SUM | D-WR | D-CODE | D-MCQ |
|---|---|---|---|---|---|
| M-only (ceiling) | 73.2 0.2 | 68.9 0.9 | 71.3 0.5 | 47.6 0.1 | 92.8 0.1 |
| S-only (floor) | 58.7 0.0 | 59.4 0.7 | 62.7 0.6 | 30.8 0.1 | 85.8 0.1 |
| OneShot (static bridge) | 56.2 0.3 | 58.9 0.4 | 61.5 0.5 | 30.5 0.2 | 87.9 0.6 |
| OracleSwap @16 | 60.7 0.5 | 61.6 0.3 | 64.6 0.2 | 31.1 0.5 | 87.9 0.6 |
| OracleSwap-mis @16 | 55.5 0.8 | 58.7 0.2 | 61.0 0.5 | 30.2 0.9 | 87.9 0.6 |
| OneShot -mismatch | — | — | — | — | 82.5 0.4 |
| Condition | First 1/3 | Middle 1/3 | Last 1/3 | Aggregate |
|---|---|---|---|---|
| S-only | 59.0 0.3 | 58.6 0.3 | 58.3 0.4 | 58.7 |
| OneShot | 59.8 0.3 | 56.4 0.3 | 52.6 0.8 | 56.2 |
| OracleSwap @16 | 59.7 0.8 | 60.5 1.1 | 61.8 0.6 | 60.7 |
| 0 | 64 | 128 | 256 | 384 | 512 | |
|---|---|---|---|---|---|---|
| stale | 0.79 | 0.73 | 0.69 | 0.58 | 0.53 | 0.47 |
| fresh | 0.79 | 0.80 | 0.78 | 0.77 | 0.76 | 0.78 |
| 0.00 | 0.07 | 0.09 | 0.19 | 0.23 | 0.31 |
| Layers | Transfer | (w/ RTT) | |
|---|---|---|---|
| 8 | 1.33 MB | 71 ms | 89 ms |
| 16 (main) | 2.66 MB | 142 ms | 160 ms |
| 32 | 5.32 MB | 284 ms | 302 ms |
| Initial memory ( , ) | 13.1 MB | ||
| Full fused KV (C2C, 2K input) | MB | ||
| Model | Hardware | |||
|---|---|---|---|---|
| Qwen3.5-27B (mentor) | H100 80GB | 8,600 | 54 | — |
| Qwen3.5-4B (student) | RTX 4090 24GB | 23,500 | 121 | 104 |
| Hardware | $/h | Source | Quoted |
|---|---|---|---|
| H100 80GB (mentor) | 2.79 | Lambda on-demand | 2026-07-10 |
| RTX 4090 (student) | 0.44 | RunPod community | 2026-07-10 |
| Task | T2T | MP@1 | MP@2 | MP@4 | MP@8 | MP@16 | MP@32 | MP@64 | MP@ |
|---|---|---|---|---|---|---|---|---|---|
| A | 1.91 | 0.15 | 0.09 | 0.07 | 0.05 | 0.05 | 0.05 | 0.05 | 0.05 |
| J | 3.44 | 0.59 | 0.53 | 0.51 | 0.49 | 0.49 | 0.49 | 0.49 | 0.49 |
| H | 4.55 | 20.14 | 10.66 | 5.92 | 3.56 | 2.37 | 1.79 | 1.49 | 1.20 |
| K | 5.89 | 15.81 | 8.72 | 5.17 | 3.39 | 2.50 | 2.06 | 1.84 | 1.62 |
| Task | T2T | MP@16 | |||||||
|---|---|---|---|---|---|---|---|---|---|
| H WritingBench | 64 | 254.8 | 129.7 | 66.7 | 35.6 | 19.6 | T2T | 4.55 | 2.37 |
| 128 | 503.7 | 254.2 | 128.3 | 66.5 | 34.5 | T2T | 4.55 | 2.37 | |
| K GovReport | 64 | 200.8 | 103.4 | 54.7 | 30.3 | 18.1 | T2T | 5.89 | 2.50 |
| 128 | 388.0 | 197.0 | 101.5 | 53.7 | 29.8 | T2T | 5.89 | 2.50 |
Memory-Augmented Language Models
Memory-augmented language models combine persistent or temporary memory with neural computation to retain, retrieve, and use information beyond the active context.
See all 291 papers