Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
  • Sign in / Register
M
mimeld
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 1
    • Issues 1
    • 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
  • Joel Hagelthorn
  • mimeld
  • Issues
  • #1

Closed
Open
Opened May 30, 2025 by Joel Hagelthorn@joelhagelthorn
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We have actually been tracking the explosive rise of DeepSeek R1, which has actually taken the AI world by storm in recent weeks. In this session, we dove deep into the development of the DeepSeek family - from the early models through DeepSeek V3 to the development R1. We also checked out the technical innovations that make R1 so special on the planet of open-source AI.

The DeepSeek Ancestral Tree: From V3 to R1

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

DeepSeek V2:

This was the structure model which leveraged a mixture-of-experts architecture, where only a subset of specialists are used at reasoning, dramatically enhancing the processing time for each token. It also featured multi-head latent attention to lower memory footprint.

DeepSeek V3:

This model introduced FP8 training methods, which assisted drive down training costs by over 42.5% compared to previous models. FP8 is a less precise method to store weights inside the LLMs but can greatly enhance the memory footprint. However, training using FP8 can typically be unsteady, and it is difficult to obtain the preferred training outcomes. Nevertheless, DeepSeek uses several techniques and attains extremely stable FP8 training. V3 set the phase as a highly effective model that was already cost-effective (with claims of being 90% cheaper 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 answers however to "believe" before addressing. Using pure reinforcement learning, the model was motivated to generate intermediate thinking steps, for instance, taking additional time (typically 17+ seconds) to resolve an easy issue like "1 +1."

The key here was making use of group relative policy optimization (GROP). Instead of relying on a conventional procedure benefit design (which would have needed annotating every action of the reasoning), GROP compares numerous outputs from the model. By sampling several prospective answers and scoring them (utilizing rule-based procedures like exact match for mathematics or verifying code outputs), the system finds out to favor reasoning that causes the right result without the need for specific guidance of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's not being watched approach produced thinking outputs that could be difficult to check out or perhaps blend languages, the designers returned to the drawing board. They used the raw outputs from R1-Zero to produce "cold start" data and after that by hand curated these examples to filter and enhance the quality of the reasoning. This human post-processing was then utilized to tweak the original DeepSeek V3 design further-combining both reasoning-oriented reinforcement knowing and monitored fine-tuning. The result is DeepSeek R1: a design that now produces legible, coherent, and trusted reasoning while still maintaining the efficiency 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 supervision of the reasoning process. It can be further improved by utilizing cold-start data and monitored support finding out 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 inspect and construct upon its developments. Its cost effectiveness is a significant selling point particularly when compared to closed-source models (claimed 90% more affordable than OpenAI) that need enormous compute spending plans.

Novel Training Approach:

Instead of relying solely on annotated reasoning (which is both expensive and lengthy), the design was trained utilizing an outcome-based technique. It began with easily verifiable jobs, such as mathematics issues and coding workouts, where the correctness of the final response could be quickly measured.

By utilizing group relative policy optimization, the training procedure compares several generated answers to identify which ones satisfy the wanted output. This relative scoring mechanism enables the design to discover "how to think" even when intermediate reasoning is generated in a freestyle manner.

Overthinking?

An interesting observation is that DeepSeek R1 in some cases "overthinks" easy problems. For instance, when asked "What is 1 +1?" it may invest nearly 17 seconds evaluating various scenarios-even thinking about binary representations-before concluding with the appropriate answer. This self-questioning and verification process, although it may appear inefficient at first look, could prove helpful in complex jobs where much deeper reasoning is necessary.

Prompt Engineering:

Traditional few-shot prompting techniques, which have actually worked well for many chat-based models, can really degrade performance with R1. The developers recommend using direct problem statements with a zero-shot method that defines the output format plainly. This ensures that the design isn't led astray by extraneous examples or hints that may interfere with its internal reasoning process.

Starting with R1

For those aiming to experiment:

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


Larger variations (600B) need substantial calculate resources


Available through significant cloud service providers


Can be released in your area through Ollama or vLLM


Looking Ahead

We're particularly interested by a number of implications:

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


Effect on agent-based AI systems generally built on chat models


Possibilities for integrating with other guidance strategies


Implications for enterprise AI release


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 development of future thinking models?


Can this method be encompassed less verifiable domains?


What are the implications for multi-modal AI systems?


We'll be enjoying these advancements closely, particularly as the community starts to experiment with and build upon these strategies.

Resources

Join our Slack community for continuous conversations and updates about DeepSeek and other AI developments. We're seeing interesting applications currently emerging from our bootcamp participants dealing 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 short summary


Cloud Providers:

Nvidia


Together.ai


AWS




Q&A

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

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

Q2: Why did significant providers like OpenAI opt for supervised fine-tuning instead of reinforcement knowing (RL) like DeepSeek?

A: We must note upfront that they do use RL at the really least in the type of RLHF. It is most likely that models from major service providers that have reasoning capabilities currently utilize something comparable to what DeepSeek has done here, but we can't make certain. It is likewise most likely that due to access to more resources, they favored monitored fine-tuning due to its stability and the prepared availability of large annotated datasets. Reinforcement learning, although effective, can be less predictable and harder to manage. DeepSeek's approach innovates by using RL in a reasoning-oriented manner, enabling the design to discover effective internal thinking with only minimal process annotation - a technique that has proven promising regardless of its complexity.

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

A: DeepSeek R1's design stresses efficiency by leveraging methods such as the mixture-of-experts approach, which triggers just a subset of parameters, to minimize calculate during reasoning. This focus on effectiveness is main to its expense advantages.

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

A: R1-Zero is the initial design that finds out reasoning solely through reinforcement knowing without explicit process supervision. It produces intermediate thinking steps that, while often raw or combined in language, act as the structure for learning. DeepSeek R1, on the other hand, refines these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero provides the unsupervised "spark," and R1 is the polished, more coherent version.

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

A: Remaining current involves a mix of actively engaging with the research neighborhood (like AISC - see link to join slack above), following preprint servers like arXiv, attending appropriate conferences and webinars, wiki.snooze-hotelsoftware.de and taking part in discussion groups and newsletters. Continuous engagement with online neighborhoods and collaborative research jobs likewise plays a key role in staying up to date with technical improvements.

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

A: The brief answer is that it's too early to tell. DeepSeek R1's strength, however, depends on its robust reasoning capabilities and its efficiency. It is particularly well suited for jobs that require verifiable logic-such as mathematical issue resolving, code generation, and structured decision-making-where intermediate thinking can be reviewed and confirmed. Its open-source nature further allows for tailored applications in research study and business settings.

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

A: The open-source and affordable design of DeepSeek R1 lowers the entry barrier for deploying advanced language designs. Enterprises and start-ups can utilize its advanced thinking for agentic applications varying from automated code generation and customer assistance to data analysis. Its flexible implementation options-on customer hardware for smaller designs or cloud platforms for bigger ones-make it an appealing alternative to exclusive options.

Q8: Will the model get stuck in a loop of "overthinking" if no right response is discovered?

A: While DeepSeek R1 has actually been observed to "overthink" easy issues by exploring numerous reasoning courses, it integrates stopping criteria and examination systems to prevent infinite loops. The support discovering framework motivates merging toward a verifiable output, even in uncertain cases.

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

A: Yes, DeepSeek V3 is open source and worked as the foundation for later versions. It is constructed on its own set of innovations-including the mixture-of-experts approach and FP8 training-and is not based on the Qwen architecture. Its style stresses performance and cost reduction, setting the stage 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 include vision capabilities. Its style and training focus entirely on language processing and reasoning.

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

A: Yes. The developments 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 techniques to develop designs that resolve their specific obstacles while gaining from lower compute costs 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 trusted outcomes.

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

A: The conversation showed that the annotators mainly focused on domains where accuracy is quickly verifiable-such as mathematics and coding. This suggests that proficiency in technical fields was certainly leveraged to make sure the precision and clearness of the thinking data.

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

A: While the model is designed to optimize for correct responses through support learning, there is always a danger of errors-especially in uncertain scenarios. However, by evaluating numerous candidate outputs and reinforcing those that lead to proven outcomes, the training procedure lessens the possibility of propagating inaccurate thinking.

Q14: How are hallucinations reduced in the design provided its iterative reasoning loops?

A: Making use of rule-based, verifiable jobs (such as mathematics and coding) helps anchor the design's reasoning. By comparing several outputs and using group relative policy optimization to strengthen just those that yield the correct result, the design is directed far from creating unproven or hallucinated details.

Q15: Does the design rely on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are important to the execution of mixture-of-experts and attention systems in DeepSeek R1. However, the main focus is on using these techniques to allow reliable reasoning rather than showcasing mathematical intricacy for its own sake.

Q16: Some fret that the model's "thinking" may not be as fine-tuned as human thinking. Is that a legitimate issue?

A: Early versions like R1-Zero did produce raw and often hard-to-read thinking. However, the subsequent refinement process-where human experts curated and improved the thinking data-has substantially boosted the clarity and reliability of DeepSeek R1's internal idea process. While it remains an evolving system, iterative training and feedback have caused meaningful enhancements.

Q17: Which design variations appropriate for regional deployment on a laptop computer with 32GB of RAM?

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

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

A: DeepSeek R1 is supplied with open weights, suggesting that its model criteria are openly available. This lines up with the general open-source viewpoint, permitting researchers and developers to additional check out and build on its innovations.

Q19: What would occur if the order of training were reversed-starting with supervised fine-tuning before not being watched reinforcement learning?

A: The present technique permits the model to initially explore and create its own reasoning patterns through unsupervised RL, and after that improve these patterns with supervised methods. Reversing the order may constrain the model's capability to find varied reasoning paths, potentially limiting its overall efficiency in jobs that gain from self-governing thought.

Thanks for checking out Deep Random Thoughts! Subscribe free of charge to receive new posts and support my work.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: joelhagelthorn/mimeld#1