Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in / Register
K
knightcomputers
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 57
    • Issues 57
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
  • Adriana Wimmer
  • knightcomputers
  • Issues
  • #29

Closed
Open
Opened Apr 06, 2025 by Adriana Wimmer@adrianayit0282
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've been tracking the explosive rise of DeepSeek R1, which has taken the AI world by storm in recent weeks. In this session, we dove deep into the development of the DeepSeek household - from the early designs through DeepSeek V3 to the advancement R1. We likewise checked out the technical developments that make R1 so unique worldwide of open-source AI.

The DeepSeek Family Tree: From V3 to R1

DeepSeek isn't simply a single design; it's a family of progressively advanced AI systems. The development goes something like this:

DeepSeek V2:

This was the foundation design which leveraged a mixture-of-experts architecture, where just a subset of specialists are utilized at reasoning, dramatically enhancing the processing time for each token. It likewise included multi-head hidden attention to lower memory footprint.

DeepSeek V3:

This model introduced FP8 training strategies, which assisted drive down training expenses by over 42.5% compared to previous versions. FP8 is a less precise way to store weights inside the LLMs however can greatly enhance the memory footprint. However, training using FP8 can typically be unsteady, and it is difficult to obtain the wanted training results. Nevertheless, DeepSeek uses multiple tricks and attains remarkably steady FP8 training. V3 set the stage as an extremely effective model that was currently economical (with claims of being 90% less expensive than some closed-source options).

DeepSeek R1-Zero:

With V3 as the base, the team then introduced R1-Zero, the first reasoning-focused version. Here, the focus was on teaching the model not simply to produce answers but to "think" before answering. Using pure support learning, the model was motivated to create intermediate thinking actions, for example, taking extra time (typically 17+ seconds) to resolve an easy issue like "1 +1."

The crucial innovation here was using group relative policy optimization (GROP). Instead of depending on a traditional procedure benefit model (which would have required annotating every action of the thinking), GROP compares multiple outputs from the model. By sampling several prospective answers and scoring them (using rule-based procedures like precise match for mathematics or validating code outputs), the system finds out to prefer reasoning that leads to the right result without the requirement for specific supervision of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's not being watched approach produced thinking outputs that might be difficult to check out or even blend languages, the developers returned to the drawing board. They used the raw outputs from R1-Zero to produce "cold start" data and after that manually curated these examples to filter and enhance the quality of the reasoning. This human post-processing was then used to tweak the original DeepSeek V3 model further-combining both reasoning-oriented reinforcement knowing and supervised fine-tuning. The outcome is DeepSeek R1: a model that now produces legible, coherent, and dependable reasoning while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most fascinating element of R1 (no) is how it established thinking abilities without specific supervision of the reasoning procedure. It can be further enhanced by utilizing cold-start information and monitored reinforcement discovering to produce understandable thinking on basic tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, allowing researchers and designers to examine and build on its developments. Its expense effectiveness is a significant selling point particularly when compared to closed-source designs (claimed 90% more affordable than OpenAI) that require enormous compute spending plans.

Novel Training Approach:

Instead of relying exclusively on annotated reasoning (which is both costly and time-consuming), the model was trained using an outcome-based technique. It began with easily verifiable tasks, such as mathematics problems and coding workouts, where the correctness of the final answer might be quickly determined.

By utilizing group relative policy optimization, the training process compares numerous generated answers to identify which ones fulfill the wanted output. This relative scoring system enables the model to find out "how to think" even when intermediate thinking is generated in a freestyle manner.

Overthinking?

An interesting observation is that DeepSeek R1 in some cases "overthinks" simple issues. For example, when asked "What is 1 +1?" it might spend almost 17 seconds examining different scenarios-even considering binary representations-before concluding with the proper response. This self-questioning and verification procedure, although it might appear ineffective at very first glance, could prove advantageous in complicated jobs where deeper reasoning is needed.

Prompt Engineering:

Traditional few-shot prompting methods, which have actually worked well for many chat-based models, can really break down efficiency with R1. The developers recommend utilizing direct problem statements with a zero-shot approach that defines the output format plainly. This guarantees that the design isn't led astray by extraneous examples or hints that may disrupt its internal thinking process.

Beginning with R1

For those aiming to experiment:

Smaller variations (7B-8B) can operate on customer GPUs and even only CPUs


Larger variations (600B) need considerable compute resources


Available through significant cloud providers


Can be released in your area by means of Ollama or vLLM


Looking Ahead

We're particularly interested by several implications:

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


Impact on agent-based AI systems typically developed on chat designs


Possibilities for integrating with other supervision techniques


Implications for business AI deployment


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

Open Questions

How will this affect the advancement of future reasoning designs?


Can this approach be reached less proven domains?


What are the implications for multi-modal AI systems?


We'll be enjoying these developments closely, especially as the neighborhood begins to try out and build on these techniques.

Resources

Join our Slack neighborhood for ongoing discussions and updates about DeepSeek and other AI developments. We're seeing interesting applications currently emerging from our bootcamp participants working with these models.

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 should have more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong design in the open-source community, the choice ultimately depends on your use case. DeepSeek R1 stresses innovative thinking and an unique training technique that might be specifically valuable in tasks where proven logic is vital.

Q2: Why did significant providers like OpenAI choose supervised fine-tuning rather than support learning (RL) like DeepSeek?

A: We ought to keep in mind upfront that they do utilize RL at the very least in the form of RLHF. It is most likely that designs from major suppliers that have reasoning abilities already use something similar to what DeepSeek has done here, but we can't make certain. It is also most likely that due to access to more resources, they preferred monitored fine-tuning due to its stability and the ready availability of big annotated datasets. Reinforcement knowing, although effective, can be less foreseeable and more difficult to control. DeepSeek's method innovates by applying RL in a reasoning-oriented way, enabling the model to find out reliable internal reasoning with only minimal process annotation - a technique that has actually proven promising in spite of its intricacy.

Q3: Did DeepSeek utilize test-time compute techniques comparable to those of OpenAI?

A: DeepSeek R1's style stresses efficiency by leveraging techniques such as the mixture-of-experts approach, which triggers just a subset of parameters, to minimize compute throughout inference. This concentrate on performance is main to its cost benefits.

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

A: R1-Zero is the initial design that discovers thinking solely through reinforcement learning without specific process supervision. It generates intermediate thinking steps that, while sometimes raw or combined in language, function as the structure for knowing. DeepSeek R1, on the other hand, fine-tunes these outputs through human post-processing and monitored fine-tuning. In essence, R1-Zero offers the not being watched "stimulate," and R1 is the sleek, more coherent variation.

Q5: How can one remain updated with in-depth, engel-und-waisen.de technical research while handling a busy schedule?

A: Remaining current includes a combination of actively engaging with the research neighborhood (like AISC - see link to join slack above), following preprint servers like arXiv, attending relevant conferences and webinars, and taking part in discussion groups and newsletters. Continuous engagement with online communities and collective research study projects likewise plays a key function in keeping up with technical improvements.

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

A: The short response is that it's prematurely to tell. DeepSeek R1's strength, however, lies in its robust thinking abilities and its performance. It is particularly well matched for tasks that require verifiable logic-such as mathematical issue solving, code generation, and structured decision-making-where intermediate reasoning can be examined and validated. Its open-source nature further permits tailored applications in research and business settings.

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

A: The open-source and cost-efficient style of DeepSeek R1 lowers the entry barrier for releasing innovative language models. Enterprises and start-ups can take advantage of its sophisticated thinking for agentic applications varying from automated code generation and consumer support to information analysis. Its flexible release options-on consumer hardware for smaller designs or cloud platforms for larger ones-make it an appealing alternative to proprietary services.

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

A: While DeepSeek R1 has actually been observed to "overthink" basic issues by exploring several thinking paths, it includes stopping requirements and evaluation mechanisms to avoid infinite loops. The support learning structure encourages convergence toward a verifiable output, even in uncertain cases.

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

A: Yes, DeepSeek V3 is open source and acted as the foundation for later models. It is built on its own set of innovations-including the mixture-of-experts method and FP8 training-and is not based upon the Qwen architecture. Its style highlights performance and expense decrease, setting the stage for the reasoning innovations seen in R1.

Q10: How does DeepSeek R1 perform on vision jobs?

A: DeepSeek R1 is a text-based model and does not include vision abilities. Its style and training focus exclusively on language processing and thinking.

Q11: Can experts in specialized fields (for example, laboratories working on cures) apply these approaches to train domain-specific designs?

A: Yes. The innovations behind DeepSeek R1-such as its outcome-based reasoning training and effective architecture-can be adjusted to numerous domains. Researchers in fields like biomedical sciences can tailor these techniques to construct designs that resolve their specific obstacles while gaining from lower compute expenses and robust reasoning capabilities. It is most likely that in deeply specialized fields, however, there will still be a need for monitored fine-tuning to get trustworthy results.

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

A: The discussion suggested that the annotators mainly focused on domains where accuracy is easily verifiable-such as math and coding. This recommends that know-how in technical fields was certainly leveraged to guarantee the precision and clarity of the thinking information.

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

A: While the model is developed to enhance for correct responses through support learning, there is constantly a risk of errors-especially in uncertain scenarios. However, by evaluating numerous candidate outputs and strengthening those that cause verifiable outcomes, the training process minimizes the probability of propagating incorrect thinking.

Q14: How are hallucinations decreased in the design provided its iterative thinking loops?

A: Using rule-based, verifiable jobs (such as math and coding) assists anchor the design's thinking. By comparing multiple outputs and using group relative policy optimization to reinforce only those that yield the correct result, the model is assisted far from generating unproven or hallucinated details.

Q15: Does the model depend on mathematics?

A: Yes, advanced techniques-including complex vector math-are essential to the application of mixture-of-experts and attention systems in DeepSeek R1. However, the main focus is on utilizing these methods to make it possible for reliable reasoning instead of showcasing mathematical complexity for its own sake.

Q16: Some stress that the model's "thinking" might not be as refined as human reasoning. Is that a valid concern?

A: Early versions like R1-Zero did produce raw and often hard-to-read reasoning. However, the subsequent improvement process-where human experts curated and improved the thinking data-has substantially improved the clarity and reliability of DeepSeek R1's internal thought procedure. While it remains an evolving system, iterative training and feedback have resulted in significant improvements.

Q17: Which design variants are ideal for regional release on a laptop with 32GB of RAM?

A: For local testing, 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 criteria) require substantially more computational resources and are better matched for cloud-based release.

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

A: DeepSeek R1 is provided with open weights, meaning that its model specifications are openly available. This aligns with the total open-source philosophy, permitting researchers and developers to more check out and construct upon its developments.

Q19: What would take place if the order of training were reversed-starting with supervised fine-tuning before not being watched support knowing?

A: The current technique allows the model to initially explore and generate its own thinking patterns through without supervision RL, and after that improve these patterns with supervised techniques. Reversing the order may constrain the model's capability to discover varied thinking courses, potentially limiting its overall efficiency in tasks that gain from autonomous idea.

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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: adrianayit0282/knightcomputers#29