mlsanityData to 14 Oct 2026

CODEBLOCK: Learning to Supervise Code at the Right Granularity

arXiv 2606.18286 ↗First posted 10 Jun 2026cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Supervised fine-tuning of code LLMs typically applies uniform cross-entropy loss to all response tokens, implicitly assuming that every token provides equally useful learning signals. Recent token-level selection methods challenge this assumption in natural-language SFT by supervising only high-value tokens. However, such pointwise selection can fragment the syntactic structures and program dependencies of code, leaving supervision scattered across incomplete code units. In experiments on 30K code instruction-response pairs, under the same 10% token budget, supervising complete coding blocks improves average performance by 11.7 points over prior approaches that supervise isolated tokens. Motivated by this observation, we propose CodeBlock, a structure-aware sparse supervision framework that uses complete, parser-aligned coding items as the basic units of supervision. CodeBlock constructs coding items from high-quality code instruction data, estimates their supervision utility using GCE, which is more robust to low-probability tokens, and further adjusts their supervision priority using data-flow reach and bridge signals. During training, the full response is retained as context, while loss is applied only to the selected supervision units. Experiments show that partial supervision over only about 6.9% of response tokens consistently outperforms full-token SFT across all five model settings, suggesting that effective code SFT depends not only on identifying high-value supervision, but also on allocating it at the appropriate structural granularity.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 31 of its 37 references that are in the map. First posted on arXiv 10 Jun 2026.

Builds on

31 of 37 references.

References · 31

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2021Program Synthesis with Large Language Modelscited by 3,637
  3. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  4. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  5. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  6. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  7. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
  8. 2023What Makes Good Data for Alignment? A Comprehensive Study of Automatic Data Selection in Instruction Tuningcited by 364
  9. 2023From Quantity to Quality: Boosting LLM Performance with Self-Guided Data Selection for Instruction Tuningcited by 307
  10. 2017Learning to Represent Programs with Graphscited by 220
  11. 2024Rho-1: Not All Tokens Are What You Needcited by 133
  12. 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 130
19 more
  1. 2024Critical Tokens Matter: Token-Level Contrastive Estimation Enhances LLM's Reasoning Capabilitycited by 83
  2. 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
  3. 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 60
  4. 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 49
  5. 2025Token Cleaning: Fine-Grained Data Selection for LLM Supervised Fine-Tuningcited by 39
  6. 2024Improving Data Efficiency via Curating LLM-Driven Rating Systemscited by 29
  7. 2025Measuring Data Diversity for Instruction Tuning: A Systematic Analysis and A Reliable Metriccited by 24
  8. 2025D3: Diversity, Difficulty, and Dependability-Aware Data Selection for Sample-Efficient LLM Instruction Tuningcited by 21
  9. 2024Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruningcited by 20
  10. 2025T-SHIRT: Token-Selective Hierarchical Data Selection for Instruction Tuningcited by 13
  11. 2025MIG: Automatic Data Selection for Instruction Tuning by Maximizing Information Gain in Semantic Spacecited by 12
  12. 2024ROSE: A Reward-Oriented Data Selection Framework for LLM Task-Specific Instruction Tuningcited by 10
  13. 2025MSL: Not All Tokens Are What You Need for Tuning LLM as a Recommendercited by 10
  14. 2024SCAR: Data Selection via Style Consistency-Aware Response Ranking for Efficient Instruction-Tuning of Large Language Modelscited by 6
  15. 2024Co-Learning: Code Learning for Multi-Agent Reinforcement Collaborative Framework with Conversational Natural Language Interfacescited by 5
  16. 2025ssToken: Self-modulated and Semantic-aware Token Selection for LLM Fine-tuningcited by 3
  17. 2025LM-mixup: Text Data Augmentation via Language Model based Mixupcited by 3
  18. 2026Token-level Data Selection for Safe LLM Fine-tuningcited by 3
  19. 2025Efficient Code LLM Training via Distribution-Consistent and Diversity-Aware Data Selectioncited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.