Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
U ujaen
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • Antoinette Rettig
  • ujaen
  • Issues
  • #30

Closed
Open
Created Apr 03, 2025 by Antoinette Rettig@antoinetterettMaintainer

Understanding DeepSeek R1


We have actually been tracking the explosive increase of DeepSeek R1, which has taken the AI world by storm in current weeks. In this session, we dove deep into the evolution of the DeepSeek household - from the early designs through DeepSeek V3 to the development R1. We likewise checked out the technical developments that make R1 so special worldwide of open-source AI.

The DeepSeek Ancestral Tree: From V3 to R1

DeepSeek isn't just a single design; it's a household of increasingly sophisticated AI systems. The development goes something like this:

DeepSeek V2:

This was the structure design which leveraged a mixture-of-experts architecture, where only a subset of specialists are utilized at reasoning, dramatically improving the processing time for each token. It likewise featured multi-head hidden attention to reduce memory footprint.

DeepSeek V3:

This model presented FP8 training methods, which assisted drive down training expenses by over 42.5% compared to previous models. FP8 is a less precise way to keep weights inside the LLMs however can significantly enhance the memory footprint. However, training utilizing FP8 can normally be unstable, and it is hard to obtain the desired training outcomes. Nevertheless, DeepSeek utilizes several techniques and attains remarkably steady FP8 training. V3 set the stage as a highly efficient model that was currently cost-effective (with claims of being 90% more affordable than some closed-source alternatives).

DeepSeek R1-Zero:

With V3 as the base, the team then presented R1-Zero, the very first reasoning-focused model. Here, the focus was on teaching the model not just to produce responses however to "think" before addressing. Using pure support knowing, the design was encouraged to generate intermediate reasoning steps, for instance, taking extra time (often 17+ seconds) to overcome an easy issue like "1 +1."

The crucial innovation here was the use of group relative policy optimization (GROP). Instead of counting on a traditional procedure reward model (which would have required annotating every action of the reasoning), GROP compares numerous outputs from the model. By sampling several prospective responses and scoring them (utilizing rule-based procedures like exact match for math or confirming code outputs), the system learns to favor thinking that causes the proper outcome without the need for specific supervision of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's not being watched method produced reasoning outputs that could be hard to check out or perhaps mix languages, the developers returned to the drawing board. They utilized the raw outputs from R1-Zero to produce "cold start" information and after that by hand curated these examples to filter and enhance the quality of the reasoning. This human post-processing was then used to tweak the initial DeepSeek V3 model further-combining both reasoning-oriented reinforcement learning and supervised fine-tuning. The outcome is DeepSeek R1: a design that now produces readable, meaningful, and dependable reasoning while still maintaining the performance and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most remarkable aspect of R1 (zero) is how it developed thinking capabilities without explicit guidance of the reasoning process. It can be further improved by utilizing cold-start data and supervised support learning to produce readable thinking on basic jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, enabling researchers and developers to examine and construct upon its innovations. Its expense performance is a major selling point specifically when compared to closed-source models (claimed 90% more affordable than OpenAI) that require enormous compute budget plans.

Novel Training Approach:

Instead of relying entirely on annotated reasoning (which is both expensive and time-consuming), disgaeawiki.info the model was trained utilizing an outcome-based technique. It started with easily proven tasks, such as mathematics issues and coding workouts, where the accuracy of the last answer could be easily measured.

By using group relative policy optimization, the training process compares numerous generated responses to identify which ones fulfill the wanted output. This relative scoring system allows the design to discover "how to think" even when intermediate reasoning is produced in a freestyle manner.

Overthinking?

A fascinating observation is that DeepSeek R1 often "overthinks" simple issues. For instance, when asked "What is 1 +1?" it may invest nearly 17 seconds assessing different scenarios-even considering binary representations-before concluding with the proper response. This self-questioning and verification process, although it might appear ineffective in the beginning glance, could show helpful in complex tasks where deeper thinking is essential.

Prompt Engineering:

Traditional few-shot prompting techniques, which have worked well for numerous chat-based designs, can in fact break down efficiency with R1. The designers advise using direct problem statements with a zero-shot technique that specifies the output format plainly. This makes sure that the model isn't led astray by extraneous examples or hints that may hinder its internal reasoning process.

Getting Started with R1

For those aiming to experiment:

Smaller variations (7B-8B) can run on consumer GPUs and even only CPUs


Larger versions (600B) require considerable calculate resources


Available through major cloud suppliers


Can be deployed locally via Ollama or vLLM


Looking Ahead

We're particularly captivated by numerous ramifications:

The potential for this approach to be used to other reasoning domains


Influence on agent-based AI systems generally built on chat designs


Possibilities for combining with other supervision methods


Implications for enterprise AI release


Thanks for reading Deep Random Thoughts! Subscribe totally free to receive brand-new posts and support my work.

Open Questions

How will this impact the advancement of future reasoning designs?


Can this technique be extended to less verifiable domains?


What are the ramifications for multi-modal AI systems?


We'll be enjoying these developments closely, particularly as the neighborhood starts to experiment with and build upon these techniques.

Resources

Join our Slack neighborhood for ongoing conversations and updates about DeepSeek and other AI developments. We're seeing interesting applications already emerging from our bootcamp individuals working with these designs.

Chat with DeepSeek:


https://www.deepseek.com/

Papers:

DeepSeek LLM


DeepSeek-V2


DeepSeek-V3


DeepSeek-R1


Blog Posts:

The Illustrated DeepSeek-R1


DeepSeek-R1 Paper Explained


DeepSeek R1 - a brief summary


Cloud Providers:

Nvidia


Together.ai


AWS




Q&A

Q1: Which design is worthy of more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong design in the open-source community, the choice eventually depends upon your use case. DeepSeek R1 stresses sophisticated thinking and an unique training method that might be specifically valuable in jobs where verifiable reasoning is important.

Q2: Why did major companies like OpenAI choose monitored fine-tuning rather than support knowing (RL) like DeepSeek?

A: We should note upfront that they do use RL at the minimum in the kind of RLHF. It is likely that designs from significant service providers that have reasoning capabilities already utilize something similar to what DeepSeek has actually done here, however we can't make certain. It is also likely that due to access to more resources, they favored supervised fine-tuning due to its stability and the prepared availability of big annotated datasets. Reinforcement learning, although powerful, can be less foreseeable and harder to control. DeepSeek's approach innovates by applying RL in a reasoning-oriented way, enabling the model to learn efficient internal thinking with only very little procedure annotation - a technique that has shown appealing regardless of its complexity.

Q3: Did DeepSeek use test-time compute strategies comparable to those of OpenAI?

A: DeepSeek R1's design emphasizes efficiency by leveraging methods such as the mixture-of-experts method, which triggers only a subset of specifications, to decrease calculate throughout reasoning. This concentrate on effectiveness is main to its expense benefits.

Q4: What is the difference in between R1-Zero and R1?

A: R1-Zero is the preliminary model that finds out reasoning solely through reinforcement learning without specific process guidance. It generates intermediate reasoning actions that, while often raw or combined in language, serve as the foundation for learning. DeepSeek R1, on the other hand, refines these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero offers the not being watched "spark," and R1 is the polished, more coherent version.

Q5: How can one remain updated with thorough, technical research study while managing a hectic schedule?

A: Remaining current includes a mix of actively engaging with the research community (like AISC - see link to sign up with slack above), following preprint servers like arXiv, participating in pertinent conferences and webinars, and participating in discussion groups and newsletters. Continuous engagement with online communities and collaborative research tasks likewise plays a crucial function in staying up to date with technical improvements.

Q6: In what use-cases does DeepSeek surpass models like O1?

A: The brief response is that it's too early to tell. DeepSeek R1's strength, nevertheless, depends on its robust reasoning capabilities and its effectiveness. It is especially well fit for jobs that need verifiable logic-such as mathematical problem solving, code generation, and structured decision-making-where intermediate thinking can be reviewed and validated. Its open-source nature further enables tailored applications in research and enterprise settings.

Q7: What are the ramifications of DeepSeek R1 for enterprises and start-ups?

A: The open-source and cost-efficient design of DeepSeek R1 lowers the entry barrier for releasing innovative language models. Enterprises and start-ups can leverage its innovative thinking for agentic applications varying from automated code generation and customer assistance to data analysis. Its versatile implementation options-on customer hardware for smaller sized models or cloud platforms for bigger ones-make it an attractive alternative to proprietary solutions.

Q8: Will the model get stuck in a loop of "overthinking" if no appropriate answer is found?

A: While DeepSeek R1 has been observed to "overthink" basic issues by checking out multiple thinking courses, it integrates stopping criteria and evaluation mechanisms to prevent infinite loops. The reinforcement finding out structure motivates convergence towards a proven output, even in uncertain cases.

Q9: Is DeepSeek V3 entirely open source, and is it based on the Qwen architecture?

A: Yes, DeepSeek V3 is open source and functioned as the foundation for later models. It is constructed on its own set of innovations-including the mixture-of-experts method and FP8 training-and is not based on the Qwen architecture. Its style emphasizes effectiveness and cost decrease, setting the phase for the reasoning innovations seen in R1.

Q10: How does DeepSeek R1 perform on vision tasks?

A: DeepSeek R1 is a text-based model and does not incorporate vision capabilities. Its style and training focus entirely on language processing and thinking.

Q11: Can professionals in specialized fields (for instance, laboratories dealing with remedies) use these techniques to train domain-specific designs?

A: Yes. The innovations behind DeepSeek R1-such as its outcome-based thinking training and efficient architecture-can be adjusted to various domains. Researchers in fields like biomedical sciences can tailor these methods to develop designs that address their specific challenges while gaining from lower compute expenses and robust thinking capabilities. It is most likely that in deeply specialized fields, however, there will still be a need for monitored fine-tuning to get trustworthy outcomes.

Q12: Were the annotators for the human post-processing experts in technical fields like computer technology or mathematics?

A: The conversation indicated that the annotators mainly focused on domains where correctness is easily verifiable-such as math and coding. This recommends that proficiency in technical fields was certainly leveraged to ensure the accuracy and clarity of the thinking data.

Q13: Could the design get things incorrect if it relies on its own outputs for discovering?

A: While the design is designed to enhance for correct answers by means of reinforcement knowing, there is constantly a danger of errors-especially in uncertain situations. However, by assessing multiple candidate outputs and enhancing those that result in proven outcomes, the training process minimizes the possibility of propagating inaccurate thinking.

Q14: How are hallucinations minimized in the model offered its iterative thinking loops?

A: The use of rule-based, proven jobs (such as math and coding) assists anchor the design's thinking. By comparing multiple outputs and using group relative policy optimization to strengthen just those that yield the correct result, the design is assisted away from generating unfounded or hallucinated details.

Q15: Does the model count on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are integral to the application of mixture-of-experts and attention mechanisms in DeepSeek R1. However, the main focus is on using these methods to make it possible for reliable reasoning rather than showcasing mathematical intricacy for its own sake.

Q16: Some worry that the model's "thinking" may not be as improved as human reasoning. Is that a legitimate concern?

A: Early models like R1-Zero did produce raw and in some cases hard-to-read reasoning. However, the subsequent human specialists curated and enhanced the reasoning data-has substantially improved the clarity and dependability of DeepSeek R1's internal thought procedure. While it remains a progressing system, iterative training and feedback have actually caused meaningful improvements.

Q17: Which model variants appropriate for regional deployment on a laptop with 32GB of RAM?

A: For regional screening, a medium-sized model-typically in the variety of 7B to 8B parameters-is advised. Larger designs (for instance, those with hundreds of billions of parameters) need considerably more computational resources and are much better matched for cloud-based deployment.

Q18: Is DeepSeek R1 "open source" or does it offer just open weights?

A: DeepSeek R1 is provided with open weights, implying that its design parameters are openly available. This aligns with the overall open-source viewpoint, allowing researchers and developers to further check out and build on its developments.

Q19: What would happen if the order of training were reversed-starting with monitored fine-tuning before unsupervised reinforcement knowing?

A: The existing technique enables the model to first explore and generate its own thinking patterns through unsupervised RL, and after that refine these patterns with supervised approaches. Reversing the order may constrain the design's capability to discover varied thinking paths, potentially restricting its overall efficiency in jobs that gain from self-governing idea.

Thanks for checking out Deep Random Thoughts! Subscribe for totally free to get brand-new posts and support my work.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking