mlsanityData to 7 Oct 2026

MoTCoder: Elevating Large Language Models with Modular of Thought for Challenging Programming Tasks

arXiv 2312.15960 ↗First posted 26 Dec 2023cs.LG cs.PL cs.SEcited by 9

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Large Language Models (LLMs) have showcased impressive capabilities in handling straightforward programming tasks. However, their performance tends to falter when confronted with more challenging programming problems. We observe that conventional models often generate solutions as monolithic code blocks, restricting their effectiveness in tackling intricate questions. To overcome this limitation, we present Module-of-Thought Coder (MoTCoder). We introduce a framework for MoT instruction tuning, designed to promote the decomposition of tasks into logical sub-tasks and sub-modules. Our investigations reveal that, through the cultivation and utilization of sub-modules, MoTCoder significantly improves both the modularity and correctness of the generated solutions, leading to substantial pass@1 improvements of 5.9% on APPS and 5.8% on CodeContests. MoTCoder also achieved significant improvements in self-correction capabilities, surpassing the current SOTA by 3.3%. Additionally, we provide an analysis of between problem complexity and optimal module decomposition and evaluate the maintainability index, confirming that the code generated by MoTCoder is easier to understand and modify, which can be beneficial for long-term code maintenance and evolution. Our codes are available at https://github.com/dvlab-research/MoTCoder.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 30 of its 78 references that are in the map. First posted on arXiv 26 Dec 2023.

Builds on

30 of 78 references.

Closest ancestors · 1

Same direction, newest first

  1. 2022Competition-Level Code Generation with AlphaCode8 Feb

Other references · 29

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2021Program Synthesis with Large Language Modelscited by 3,509
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  6. 2023Qwen Technical Reportcited by 3,273
  7. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  8. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  9. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  10. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  11. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  12. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
17 more
  1. 2023PaLM 2 Technical Reportcited by 1,154
  2. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
  3. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
  4. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
  5. 2023StarCoder: may the source be with you!cited by 790
  6. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  7. 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 618
  8. 2023Textbooks Are All You Needcited by 561
  9. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  10. 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
  11. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  12. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  13. 2022UL2: Unifying Language Learning Paradigmscited by 292
  14. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
  15. 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
  16. 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
  17. 2022Referee: Reference-Free Sentence Summarization with Sharper Controllability through Symbolic Knowledge Distillationcited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 2; 2026: 1.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025MoT: Modularization-of-Thought Prompting for Effective Code Generation
  2. 2023CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Models
  3. 2025Chain of Execution Supervision Promotes General Reasoning in Large Language Models
  4. 2025Hierarchical Evaluation of Software Design Capabilities of Large Language Models of Code
  5. 2026EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languages
  6. 2026Narrowing the Complexity Gap in the Evaluation of Large Language Models ↗
  7. 2024Assessing Code Generation with Intermediate Languages
  8. 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models