potentialpaper

LongFocus: Focusing on Key Tokens for Efficient Long-Context Mid-Training

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:38 UTC · f166b33690a6 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "zKexmF31Cy"
- }
- ],
- "title": "LongFocus: Focusing on Key Tokens for Efficient Long-Context Mid-Training",
- "authors": [],
- "abstract": "Despite extensive progress in data selection for long-context mid-training, the objective typically remains a uniform token-averaged cross-entropy.\nSince only a small fraction of tokens substantially benefit from distant context, uniform averaging can dilute long-range supervision even within dependency-rich documents.\nExisting token-reweighting approaches address this mismatch, but their fine-grained token dependency scoring method introduces substantial training overhead.\nWe therefore investigate whether a coarse context contrast can suffice when coupled with appropriate preprocessing.\nWe propose **LongFocus**, an online objective that combines an inexpensive non-overlapping segmented reference with eligibility filtering and bounded rank-percentile upweighting for long-context mid-training.\nSpecifically,LongFocus computes an inexpensive online dependency score, *SegRatio*, by measuring each token's relative loss increase from the full-context view to a coarse segmented view with no cross-segment attention. \n*PreSelect* restricts additional weighting by document length\nand full-view loss, while *Reweight* assigns bounded weights\naccording to rank percentiles within the eligible set.\nWe evaluate LongFocus on Llama-3-8B-Instruct, MoE-16B-A3B, and MoE-125B-A10B using a two-stage 64K-to-512K mid-training recipe, with evaluations before and after SFT.\nLongFocus improves Long-Avg over Vanilla CE in all matched model-stage comparisons.\nOn MoE-125B-A10B, the post-SFT gains are 7.28 points (13.80\\% relative improvement) after 64K mid-training and 5.48 points (10.24\\% relative improvement) after the subsequent 512K stage.\nOn Llama-3-8B-Instruct, it outperforms LongCE in Long-Avg at both post-SFT endpoints, with gains of up to 2.0 points (3.29\\% relative improvement), while reducing per-step training time and peak memory usage by up to 20.2\\% and 31.0\\%, respectively.\nCode is available at https://anonymous.4open.science/r/LongFocus-vsfnhyta.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "f6f4336c-2680-4fae-8382-12bbd37503ba"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "LongFocus: Focusing on Key Tokens for Efficient Long-Context Mid-Training",
+ "authors": [],
+ "abstract": "Despite extensive progress in data selection for long-context mid-training, the objective typically remains a uniform token-averaged cross-entropy.\nSince only a small fraction of tokens substantially benefit from distant context, uniform averaging can dilute long-range supervision even within dependency-rich documents.\nExisting token-reweighting approaches address this mismatch, but their fine-grained token dependency scoring method introduces substantial training overhead.\nWe therefore investigate whether a coarse context contrast can suffice when coupled with appropriate preprocessing.\nWe propose **LongFocus**, an online objective that combines an inexpensive non-overlapping segmented reference with eligibility filtering and bounded rank-percentile upweighting for long-context mid-training.\nSpecifically,LongFocus computes an inexpensive online dependency score, *SegRatio*, by measuring each token's relative loss increase from the full-context view to a coarse segmented view with no cross-segment attention. \n*PreSelect* restricts additional weighting by document length\nand full-view loss, while *Reweight* assigns bounded weights\naccording to rank percentiles within the eligible set.\nWe evaluate LongFocus on Llama-3-8B-Instruct, MoE-16B-A3B, and MoE-125B-A10B using a two-stage 64K-to-512K mid-training recipe, with evaluations before and after SFT.\nLongFocus improves Long-Avg over Vanilla CE in all matched model-stage comparisons.\nOn MoE-125B-A10B, the post-SFT gains are 7.28 points (13.80\\% relative improvement) after 64K mid-training and 5.48 points (10.24\\% relative improvement) after the subsequent 512K stage.\nOn Llama-3-8B-Instruct, it outperforms LongCE in Long-Avg at both post-SFT endpoints, with gains of up to 2.0 points (3.29\\% relative improvement), while reducing per-step training time and peak memory usage by up to 20.2\\% and 31.0\\%, respectively.\nCode is available at https://anonymous.4open.science/r/LongFocus-vsfnhyta.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}