mlsanityData to 7 Oct 2026

SemRep: Generative Code Representation Learning with Code Transformations

arXiv 2603.13640 ↗First posted 13 Mar 2026cs.LG cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Code transformation is a foundational capability in the software development process, where its effectiveness relies on constructing a high-quality code representation to characterize the input code semantics and guide the transformation. Existing approaches treat code transformation as an end-to-end learning task, leaving the construction of the representation needed for semantic reasoning implicit in model weights or relying on rigid compiler-level abstractions. We present SemRep, a framework that improves code transformation through generative code representation learning. Our key insight is to employ the semantics-preserving transformations as the intermediate representation, which serves as both a generative mid-training task and the guidance for subsequent instruction-specific code transformations. Across general code editing and optimization tasks (e.g., GPU kernel optimization), SemRep outperforms the extensively finetuned baselines with strictly the same training budget by 6.9% in correctness, 1.1x in performance, 13.9% in generalization, and 6.7% in robustness. With the improved exploration of diverse code transformations, SemRep is particularly amenable to evolutionary search. Combined with an evolutionary coding agent, SemRep finds optimizations that 685B larger-weight baselines fail to discover while achieving the same performance with 25% less inference compute.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 49 of its 63 references that are in the map. First posted on arXiv 13 Mar 2026.

Builds on

49 of 63 references.

References · 49

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  2. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  4. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
  5. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  6. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  7. 2023Teaching Large Language Models to Self-Debugcited by 963
  8. 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 763
  9. 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
  10. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  11. 2023Self-collaboration Code Generation via ChatGPTcited by 255
  12. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
37 more
  1. 2017Learning to Represent Programs with Graphscited by 219
  2. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
  3. 2025ShinkaEvolve: Towards Open-Ended And Sample-Efficient Program Evolutioncited by 146
  4. 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
  5. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
  6. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 120
  7. 2023InferFix: End-to-End Program Repair with LLMscited by 113
  8. 2023Learning Performance-Improving Code Editscited by 103
  9. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 100
  10. 2025CWM: An Open-Weights LLM for Research on Code Generation with World Modelscited by 87
  11. 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 73
  12. 2021NL-Augmenter: A Framework for Task-Sensitive Natural Language Augmentationcited by 72
  13. 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 60
  14. 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
  15. 2024Code Repair with LLMs gives an Exploration-Exploitation Tradeoffcited by 50
  16. 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 48
  17. 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
  18. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
  19. 2025Reinforcement Pre-Trainingcited by 40
  20. 2024LLM4Decompile: Decompiling Binary Code with Large Language Modelscited by 38
  21. 2024Towards Translating Real-World Code with LLMs: A Study of Translating to Rustcited by 35
  22. 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
  23. 2023Code Execution with Pre-trained Language Modelscited by 33
  24. 2025SWE-Perf: Can Language Models Optimize Code Performance on Real-World Repositories?cited by 33
  25. 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
  26. 2025AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?cited by 24
  27. 2025RLP: Reinforcement as a Pretraining Objectivecited by 23
  28. 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
  29. 2024Learning Code Preference via Synthetic Evolutioncited by 19
  30. 2024EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuningcited by 15
  31. 2025SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?cited by 15
  32. 2025Migrating Code At Scale With LLMs At Googlecited by 14
  33. 2025EDIT-Bench: Evaluating LLM Abilities to Perform Real-World Instructed Code Editscited by 13
  34. 2024Scalable, Validated Code Translation of Entire Projects using Large Language Modelscited by 12
  35. 2025MigrationBench: Repository-Level Code Migration Benchmark from Java 8cited by 11
  36. 2023Exploiting Code Symmetries for Learning Program Semanticscited by 9
  37. 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generation
  2. 2026CodeAlchemy: Synthetic Code Rewriting at Scale
  3. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
  4. 2026From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMs
  5. 2025Towards A Generalist Code Embedding Model Based On Massive Data Synthesis
  6. 2025Functional Consistency of LLM Code Embeddings: A Self-Evolving Data Synthesis Framework for Benchmarking
  7. 2024Case2Code: Scalable Synthetic Data for Code Generation
  8. 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification