ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generation
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
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 815
- 2023StarCoder: may the source be with you!cited by 799
- 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
38 more
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 656
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 239
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 230
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
- 2023Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMscited by 178
- 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolutioncited by 134
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 96
- 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
- 2020Improved Code Summarization via a Graph Neural Networkcited by 79
- 2024Evaluating Language Models for Efficient Code Generationcited by 73
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
- 2024Prompt Compression for Large Language Models: A Surveycited by 67
- 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2020Common Sense or World Knowledge? Investigating Adapter-Based Knowledge Injection into Pretrained Transformerscited by 57
- 2024VPTQ: Extreme Low-bit Vector Post-Training Quantization for Large Language Modelscited by 57
- 2024Learning to Compress Prompt in Natural Language Formatscited by 55
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 50
- 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
- 2024500xCompressor: Generalized Prompt Compression for Large Language Modelscited by 47
- 2022A Survey on Model Compression and Acceleration for Pretrained Language Modelscited by 45
- 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
- 2024A Survey on Evaluating Large Language Models in Code Generation Taskscited by 44
- 2023Large Language Model-Aware In-Context Learning for Code Generationcited by 43
- 2023Discrete Prompt Compression with Reinforcement Learningcited by 42
- 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
- 2023SkCoder: A Sketch-based Approach for Automatic Code Generationcited by 40
- 2023Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Modelscited by 38
- 2024A Comprehensive Study on Quantization Techniques for Large Language Modelscited by 36
- 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 34
50 most cited of 87 All 87 (JSON)
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generation
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2026Compressed code: the hidden effects of quantization and distillation on programming tokens
- 2024Low-Cost Language Models: Survey and Performance Evaluation on Python Code Generation
- 2026From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMs
- 2025Prompt engineering and framework: implementation to increase code reliability based guideline for LLMs
- 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification
- 2026Exploring different approaches to customize language models for domain-specific text-to-code generation