Home Technology peripherals AI The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

Mar 15, 2024 pm 12:07 PM
project

Synthetic data continues to unlock the mathematical reasoning potential of large models!

Mathematical problem-solving ability has always been regarded as an important indicator of the intelligence level of language models. Usually only very large models or models that have undergone extensive mathematical pre-training have a chance to perform well on mathematical problems.

Recently, a research work created by the Swin-Transformer team and completed by scholars from Xi'an Jiaotong University, University of Science and Technology of China, Tsinghua University and Microsoft Research Asia Xwin overturned this perception and revealed that the 7B (i.e. 7 billion parameters) scale language model (LLaMA-2-7B) under general pre-training has shown strong potential in solving mathematical problems and can be used based on synthesis The supervised fine-tuning method of data enables the model to stimulate mathematical capabilities more and more stably.

The study was published on arXiv, titled "Common 7B Language Models Already Possess Strong Math Capabilities."

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

  • Paper link: https://arxiv.org/pdf/2403.04706.pdf
  • Code Link: https://github.com/Xwin-LM/Xwin-LM

The research team first used only 7.5K data to perform LLaMA- 2-7B Model instructions are fine-tuned to evaluate the performance of the model in GSM8K and MATH. Experimental results show that when selecting the best answer from 256 generated answers for each question in the test set, the test accuracy can be as high as 97.7% and 72.0% respectively. This result shows that even under general pre-training, the 7B level The discovery that even small models have the potential to generate high-quality answers challenges the previous view that the potential for powerful mathematical reasoning is not limited to large-scale and mathematically related pre-trained models.

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

However, research also points out that although it has strong mathematical reasoning potential, the main problem of current language models is that it is difficult to consistently stimulate its inherent mathematical capabilities. For example, if only one generated answer per question was considered in the previous experiment, the accuracy on the GSM8K and MATH benchmarks would drop to 49.5% and 7.9%, respectively. This reflects the instability of the model's mathematical capabilities. To solve this problem, the research team adopted the method of expanding the supervised fine-tuning (SFT) data set and found that with the increase in SFT data, the reliability of the model in generating correct answers was significantly improved.

The study also mentioned that by using synthetic data, the SFT data set can be effectively enlarged, and this method is almost as effective as real data. The research team used the GPT-4 Turbo API to generate synthetic mathematical questions and problem-solving processes, and ensured the quality of the questions through simple verification of prompt words. Through this method, the team successfully expanded the SFT data set from 7.5K to about one million samples, achieving a near-perfect scaling law. The resulting Xwin-Math-7B model achieved an accuracy of 82.6% and 40.6% on GSM8K and MATH respectively, significantly surpassing previous SOTA models and even surpassing some 70B models, achieving a leapfrog improvement. The Xwin-Math-70B model achieved a result of 52.8% on the MATH evaluation set, significantly surpassing the early version of GPT-4. This is the first time that research based on the LLaMA series of basic models has surpassed GPT-4 on MATH.

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

The researchers also defined the Pass@N and PassRatio@N evaluation indicators, intending to evaluate whether the model can output the correct answer in the N outputs (indicating the potential of the model). mathematical ability), and the proportion of correct answers (indicating the stability of the model’s mathematical ability). When the amount of SFT data is small, the Pass@256 of the model is already very high. After further expanding the scale of SFT data, the Pass@256 of the model increases very little, while the PassRatio@256 increases significantly. This shows that supervised fine-tuning based on synthetic data is an effective way to improve the stability of the mathematical capabilities of the model.

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

Additionally, the study provides insights into scaling behavior under different reasoning complexities and error types. For example, as the size of the SFT dataset increases, the model's accuracy in solving mathematical problems follows a power-law relationship with the number of inference steps. By increasing the proportion of long inference steps in the training samples, the accuracy of the model in solving difficult problems can be significantly improved. At the same time, the study also found that calculation errors are easier to mitigate than reasoning errors.

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

In the Hungarian high school mathematics test that reflects the model’s mathematical reasoning generalization ability, Xwin-Math also scored 65%. Second only to GPT-4. This shows that the way the data was synthesized in the study did not significantly overfit to the evaluation set and showed good generalization ability.

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data

This research not only demonstrates the effectiveness of synthetic data in extending SFT data, but also provides a new perspective on the research of large language models in mathematical reasoning capabilities. The research team stated that their work laid the foundation for future exploration and progress in this field, and looked forward to promoting artificial intelligence to achieve greater breakthroughs in solving mathematical problems. As artificial intelligence technology continues to advance, we have reason to expect that AI will perform even better in the field of mathematics and provide more help to humans in solving complex mathematical problems.

The article also covers the results of ablation experiments and other evaluation indicators of the data synthesis method. Please refer to the full text for details.

The above is the detailed content of The upper limit of LLaMA-2-7B math ability has reached 97.7%? Xwin-Math unlocks potential with synthetic data. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

From RLHF to DPO to TDPO, large model alignment algorithms are already 'token-level' From RLHF to DPO to TDPO, large model alignment algorithms are already 'token-level' Jun 24, 2024 pm 03:04 PM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com In the development process of artificial intelligence, the control and guidance of large language models (LLM) has always been one of the core challenges, aiming to ensure that these models are both powerful and safe serve human society. Early efforts focused on reinforcement learning methods through human feedback (RL

The author of ControlNet has another hit! The whole process of generating a painting from a picture, earning 1.4k stars in two days The author of ControlNet has another hit! The whole process of generating a painting from a picture, earning 1.4k stars in two days Jul 17, 2024 am 01:56 AM

It is also a Tusheng video, but PaintsUndo has taken a different route. ControlNet author LvminZhang started to live again! This time I aim at the field of painting. The new project PaintsUndo has received 1.4kstar (still rising crazily) not long after it was launched. Project address: https://github.com/lllyasviel/Paints-UNDO Through this project, the user inputs a static image, and PaintsUndo can automatically help you generate a video of the entire painting process, from line draft to finished product. follow. During the drawing process, the line changes are amazing. The final video result is very similar to the original image: Let’s take a look at a complete drawing.

Posthumous work of the OpenAI Super Alignment Team: Two large models play a game, and the output becomes more understandable Posthumous work of the OpenAI Super Alignment Team: Two large models play a game, and the output becomes more understandable Jul 19, 2024 am 01:29 AM

If the answer given by the AI ​​model is incomprehensible at all, would you dare to use it? As machine learning systems are used in more important areas, it becomes increasingly important to demonstrate why we can trust their output, and when not to trust them. One possible way to gain trust in the output of a complex system is to require the system to produce an interpretation of its output that is readable to a human or another trusted system, that is, fully understandable to the point that any possible errors can be found. For example, to build trust in the judicial system, we require courts to provide clear and readable written opinions that explain and support their decisions. For large language models, we can also adopt a similar approach. However, when taking this approach, ensure that the language model generates

Topping the list of open source AI software engineers, UIUC's agent-less solution easily solves SWE-bench real programming problems Topping the list of open source AI software engineers, UIUC's agent-less solution easily solves SWE-bench real programming problems Jul 17, 2024 pm 10:02 PM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com The authors of this paper are all from the team of teacher Zhang Lingming at the University of Illinois at Urbana-Champaign (UIUC), including: Steven Code repair; Deng Yinlin, fourth-year doctoral student, researcher

arXiv papers can be posted as 'barrage', Stanford alphaXiv discussion platform is online, LeCun likes it arXiv papers can be posted as 'barrage', Stanford alphaXiv discussion platform is online, LeCun likes it Aug 01, 2024 pm 05:18 PM

cheers! What is it like when a paper discussion is down to words? Recently, students at Stanford University created alphaXiv, an open discussion forum for arXiv papers that allows questions and comments to be posted directly on any arXiv paper. Website link: https://alphaxiv.org/ In fact, there is no need to visit this website specifically. Just change arXiv in any URL to alphaXiv to directly open the corresponding paper on the alphaXiv forum: you can accurately locate the paragraphs in the paper, Sentence: In the discussion area on the right, users can post questions to ask the author about the ideas and details of the paper. For example, they can also comment on the content of the paper, such as: "Given to

Unlimited video generation, planning and decision-making, diffusion forced integration of next token prediction and full sequence diffusion Unlimited video generation, planning and decision-making, diffusion forced integration of next token prediction and full sequence diffusion Jul 23, 2024 pm 02:05 PM

Currently, autoregressive large-scale language models using the next token prediction paradigm have become popular all over the world. At the same time, a large number of synthetic images and videos on the Internet have already shown us the power of diffusion models. Recently, a research team at MITCSAIL (one of whom is Chen Boyuan, a PhD student at MIT) successfully integrated the powerful capabilities of the full sequence diffusion model and the next token model, and proposed a training and sampling paradigm: Diffusion Forcing (DF). Paper title: DiffusionForcing:Next-tokenPredictionMeetsFull-SequenceDiffusion Paper address: https:/

A significant breakthrough in the Riemann Hypothesis! Tao Zhexuan strongly recommends new papers from MIT and Oxford, and the 37-year-old Fields Medal winner participated A significant breakthrough in the Riemann Hypothesis! Tao Zhexuan strongly recommends new papers from MIT and Oxford, and the 37-year-old Fields Medal winner participated Aug 05, 2024 pm 03:32 PM

Recently, the Riemann Hypothesis, known as one of the seven major problems of the millennium, has achieved a new breakthrough. The Riemann Hypothesis is a very important unsolved problem in mathematics, related to the precise properties of the distribution of prime numbers (primes are those numbers that are only divisible by 1 and themselves, and they play a fundamental role in number theory). In today's mathematical literature, there are more than a thousand mathematical propositions based on the establishment of the Riemann Hypothesis (or its generalized form). In other words, once the Riemann Hypothesis and its generalized form are proven, these more than a thousand propositions will be established as theorems, which will have a profound impact on the field of mathematics; and if the Riemann Hypothesis is proven wrong, then among these propositions part of it will also lose its effectiveness. New breakthrough comes from MIT mathematics professor Larry Guth and Oxford University

Axiomatic training allows LLM to learn causal reasoning: the 67 million parameter model is comparable to the trillion parameter level GPT-4 Axiomatic training allows LLM to learn causal reasoning: the 67 million parameter model is comparable to the trillion parameter level GPT-4 Jul 17, 2024 am 10:14 AM

Show the causal chain to LLM and it learns the axioms. AI is already helping mathematicians and scientists conduct research. For example, the famous mathematician Terence Tao has repeatedly shared his research and exploration experience with the help of AI tools such as GPT. For AI to compete in these fields, strong and reliable causal reasoning capabilities are essential. The research to be introduced in this article found that a Transformer model trained on the demonstration of the causal transitivity axiom on small graphs can generalize to the transitive axiom on large graphs. In other words, if the Transformer learns to perform simple causal reasoning, it may be used for more complex causal reasoning. The axiomatic training framework proposed by the team is a new paradigm for learning causal reasoning based on passive data, with only demonstrations

See all articles