mlsanityData to 7 Oct 2026

Crystal: Illuminating LLM Abilities on Language and Code

arXiv 2411.04156 ↗First posted 6 Nov 2024cs.SE cs.AI cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) specializing in code generation (which are also often referred to as code LLMs), e.g., StarCoder and Code Llama, play increasingly critical roles in various software development scenarios. It is also crucial for code LLMs to possess both code generation and natural language abilities for many specific applications, such as code snippet retrieval using natural language or code explanations. The intricate interaction between acquiring language and coding skills complicates the development of strong code LLMs. Furthermore, there is a lack of thorough prior studies on the LLM pretraining strategy that mixes code and natural language. In this work, we propose a pretraining strategy to enhance the integration of natural language and coding capabilities within a single LLM. Specifically, it includes two phases of training with appropriately adjusted code/language ratios. The resulting model, Crystal, demonstrates remarkable capabilities in both domains. Specifically, it has natural language and coding performance comparable to that of Llama 2 and Code Llama, respectively. Crystal exhibits better data efficiency, using 1.4 trillion tokens compared to the more than 2 trillion tokens used by Llama 2 and Code Llama. We verify our pretraining strategy by analyzing the training process and observe consistent improvements in most benchmarks. We also adopted a typical application adaptation phase with a code-centric data mixture, only to find that it did not lead to enhanced performance or training efficiency, underlining the importance of a carefully designed data recipe. To foster research within the community, we commit to open-sourcing every detail of the pretraining, including our training datasets, code, loggings and 136 checkpoints throughout the training.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 42 of its 59 references that are in the map. First posted on arXiv 6 Nov 2024.

Builds on

42 of 59 references.

References · 42

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2021Program Synthesis with Large Language Modelscited by 3,509
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  10. 2023Qwen Technical Reportcited by 3,273
  11. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  12. 2023Mistral 7Bcited by 3,065
30 more
  1. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  2. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  3. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  4. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  6. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  7. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  9. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  10. 2021Measuring Coding Challenge Competence With APPScited by 879
  11. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  12. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
  13. 2023StarCoder: may the source be with you!cited by 790
  14. 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
  15. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  16. 2018CoQA: A Conversational Question Answering Challengecited by 674
  17. 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 621
  18. 2024OLMo: Accelerating the Science of Language Modelscited by 599
  19. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  20. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  21. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  22. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  23. 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
  24. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  25. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
  26. 2023LLM360: Towards Fully Transparent Open-Source LLMscited by 100
  27. 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
  28. 2024RepoAgent: An LLM-Powered Open-Source Framework for Repository-level Code Documentation Generationcited by 69
  29. 2023BTLM-3B-8K: 7B Parameter Performance in a 3B Parameter Modelcited by 19
  30. 2024Towards Tracing Trustworthiness Dynamics: Revisiting Pre-training Period of Large Language Modelscited by 18

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 4.

5 papers.