mlsanityData to 14 Oct 2026

ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generation

arXiv 2601.09703 ↗First posted 14 Jan 2026cs.SE cs.AI cs.CLcited by 3

On the map: Efficient LLM inference and serving → Speculative decoding

Abstract (arXiv)

Code generation tasks aim to automate the conversion of user requirements into executable code, significantly reducing manual development efforts and enhancing software productivity. The emergence of large language models (LLMs) has significantly advanced code generation, though their efficiency is still impacted by certain inherent architectural constraints. Each token generation necessitates a complete inference pass, requiring persistent retention of contextual information in memory and escalating resource consumption. While existing research prioritizes inference-phase optimizations such as prompt compression and model quantization, the generation phase remains underexplored. To tackle these challenges, we propose a knowledge-infused framework named ShortCoder, which optimizes code generation efficiency while preserving semantic equivalence and readability. In particular, we introduce: (1) ten syntax-level simplification rules for Python, derived from AST-preserving transformations, achieving 18.1% token reduction without functional compromise; (2) a hybrid data synthesis pipeline integrating rule-based rewriting with LLM-guided refinement, producing ShorterCodeBench, a corpus of validated tuples of original code and simplified code with semantic consistency; (3) a fine-tuning strategy that injects conciseness awareness into the base LLMs. Extensive experimental results demonstrate that ShortCoder consistently outperforms state-of-the-art methods on HumanEval, achieving an improvement of 18.1%-37.8% in generation efficiency over previous methods while ensuring the performance of code generation.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 87 of its 105 references that are in the map. First posted on arXiv 14 Jan 2026.

Builds on

87 of 105 references.

References · 87

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2021Program Synthesis with Large Language Modelscited by 3,637
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  7. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
  8. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  9. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  10. 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 815
  11. 2023StarCoder: may the source be with you!cited by 799
  12. 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
38 more
  1. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 656
  2. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  3. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
  4. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  5. 2023Learning to Compress Prompts with Gist Tokenscited by 390
  6. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
  7. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
  8. 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 230
  9. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
  10. 2023Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMscited by 178
  11. 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolutioncited by 134
  12. 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 96
  13. 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
  14. 2020Improved Code Summarization via a Graph Neural Networkcited by 79
  15. 2024Evaluating Language Models for Efficient Code Generationcited by 73
  16. 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
  17. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
  18. 2024Prompt Compression for Large Language Models: A Surveycited by 67
  19. 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
  20. 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
  21. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  22. 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
  23. 2020Common Sense or World Knowledge? Investigating Adapter-Based Knowledge Injection into Pretrained Transformerscited by 57
  24. 2024VPTQ: Extreme Low-bit Vector Post-Training Quantization for Large Language Modelscited by 57
  25. 2024Learning to Compress Prompt in Natural Language Formatscited by 55
  26. 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 50
  27. 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
  28. 2024500xCompressor: Generalized Prompt Compression for Large Language Modelscited by 47
  29. 2022A Survey on Model Compression and Acceleration for Pretrained Language Modelscited by 45
  30. 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
  31. 2024A Survey on Evaluating Large Language Models in Code Generation Taskscited by 44
  32. 2023Large Language Model-Aware In-Context Learning for Code Generationcited by 43
  33. 2023Discrete Prompt Compression with Reinforcement Learningcited by 42
  34. 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
  35. 2023SkCoder: A Sketch-based Approach for Automatic Code Generationcited by 40
  36. 2023Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Modelscited by 38
  37. 2024A Comprehensive Study on Quantization Techniques for Large Language Modelscited by 36
  38. 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 34

50 most cited of 87 All 87 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generation
  2. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
  3. 2026Compressed code: the hidden effects of quantization and distillation on programming tokens
  4. 2024Low-Cost Language Models: Survey and Performance Evaluation on Python Code Generation
  5. 2026From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMs
  6. 2025Prompt engineering and framework: implementation to increase code reliability based guideline for LLMs
  7. 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification
  8. 2026Exploring different approaches to customize language models for domain-specific text-to-code generation