Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P
picp
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 54
    • Issues 54
    • 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
  • Alina Madrigal
  • picp
  • Issues
  • #52

Closed
Open
Opened Jun 01, 2025 by Alina Madrigal@alinamadrigal
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've 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 innovations that make R1 so special on the planet of open-source AI.

The DeepSeek Ancestral Tree: From V3 to R1

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

DeepSeek V2:

This was the foundation model which leveraged a mixture-of-experts architecture, where only a subset of experts are utilized at inference, drastically enhancing the processing time for each token. It also featured multi-head hidden attention to decrease 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 save weights inside the LLMs however can greatly enhance the memory footprint. However, training utilizing FP8 can generally be unsteady, and it is difficult to obtain the wanted training outcomes. Nevertheless, DeepSeek uses multiple tricks and attains remarkably steady FP8 training. V3 set the stage as a highly efficient model that was currently cost-efficient (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 first reasoning-focused version. Here, the focus was on teaching the design not simply to create answers but to "think" before answering. Using pure support knowing, the design was encouraged to produce intermediate thinking steps, for instance, taking additional time (typically 17+ seconds) to overcome an easy issue like "1 +1."

The crucial development here was using group relative policy optimization (GROP). Instead of counting on a standard process reward design (which would have needed annotating every action of the reasoning), GROP compares numerous outputs from the design. By tasting several possible responses and scoring them (utilizing rule-based steps like exact match for engel-und-waisen.de mathematics or confirming code outputs), the system learns to prefer reasoning that leads to the proper result without the requirement for explicit supervision of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's not being watched approach produced thinking outputs that could be difficult to read or even blend languages, the designers returned to the drawing board. They used the raw outputs from R1-Zero to generate "cold start" data and after that by hand curated these examples to filter and enhance the quality of the thinking. This human post-processing was then utilized to tweak the initial DeepSeek V3 design further-combining both reasoning-oriented reinforcement learning and supervised fine-tuning. The result is DeepSeek R1: a model that now produces legible, meaningful, and trusted thinking while still maintaining the efficiency and cost-effectiveness of its predecessors.

What Makes R1 Series Special?

The most fascinating aspect of R1 (zero) is how it developed reasoning capabilities without explicit supervision of the reasoning procedure. It can be further improved by utilizing cold-start information and monitored reinforcement learning to produce legible reasoning on basic jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, allowing scientists and designers to examine and build upon its innovations. Its cost effectiveness is a significant selling point particularly when compared to closed-source designs (claimed 90% cheaper than OpenAI) that need huge compute budget plans.

Novel Training Approach:

Instead of relying entirely on annotated reasoning (which is both costly and time-consuming), the model was trained utilizing an outcome-based technique. It started with easily verifiable tasks, such as mathematics problems and coding exercises, where the accuracy of the last answer could be quickly measured.

By utilizing group relative policy optimization, the training process compares several generated answers to figure out which ones satisfy the wanted output. This relative scoring mechanism enables the model to find out "how to think" even when intermediate thinking is produced in a freestyle way.

Overthinking?

An intriguing observation is that DeepSeek R1 in some cases "overthinks" easy problems. For instance, when asked "What is 1 +1?" it may invest almost 17 seconds evaluating different scenarios-even thinking about binary representations-before concluding with the correct response. This self-questioning and verification process, although it may appear inefficient at very first look, could prove beneficial in intricate tasks where deeper reasoning is needed.

Prompt Engineering:

Traditional few-shot triggering techniques, which have worked well for many chat-based designs, can actually degrade performance with R1. The designers recommend using direct issue statements with a zero-shot method that specifies the output format plainly. This guarantees that the model isn't led astray by extraneous examples or hints that might hinder its internal thinking procedure.

Getting Going with R1

For those aiming to experiment:

Smaller versions (7B-8B) can work on customer GPUs or even only CPUs


Larger versions (600B) require considerable calculate resources


Available through major cloud providers


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


Looking Ahead

We're particularly captivated by numerous implications:

The potential for this method to be applied to other reasoning domains


Effect on agent-based AI systems traditionally built on chat designs


Possibilities for integrating with other supervision strategies


Implications for business AI release


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

Open Questions

How will this impact the development of future thinking designs?


Can this approach be extended to less proven domains?


What are the ramifications for multi-modal AI systems?


We'll be viewing these developments carefully, especially as the neighborhood begins to explore and build on these methods.

Resources

Join our Slack neighborhood for ongoing conversations and updates about DeepSeek and other AI advancements. We're seeing fascinating applications currently emerging from our bootcamp participants 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 should have more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is also a strong design in the open-source community, the option eventually depends upon your usage case. DeepSeek R1 highlights sophisticated reasoning and a novel training technique that might be particularly important in tasks where verifiable logic is crucial.

Q2: Why did significant companies like OpenAI go with supervised fine-tuning instead of support learning (RL) like DeepSeek?

A: We ought to note in advance that they do utilize RL at the very least in the kind of RLHF. It is likely that models from major providers that have thinking abilities currently use something similar to what DeepSeek has done here, but we can't make certain. It is likewise likely that due to access to more resources, they preferred supervised fine-tuning due to its stability and the ready availability of large annotated datasets. Reinforcement learning, although powerful, can be less predictable and more difficult to control. DeepSeek's approach innovates by applying RL in a reasoning-oriented manner, making it possible for the model to find out efficient internal reasoning with only minimal procedure annotation - a strategy that has actually proven appealing regardless of its complexity.

Q3: Did DeepSeek use test-time calculate methods comparable to those of OpenAI?

A: DeepSeek R1's design stresses performance by leveraging methods such as the mixture-of-experts method, which activates only a subset of parameters, to lower calculate throughout reasoning. This concentrate on effectiveness is main to its expense benefits.

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

A: R1-Zero is the preliminary design that finds out reasoning solely through support knowing without specific process supervision. It generates intermediate thinking actions that, while in some cases raw or combined in language, work as the foundation for learning. DeepSeek R1, on the other hand, fine-tunes these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero provides the unsupervised "stimulate," and R1 is the sleek, more coherent variation.

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

A: Remaining existing involves a combination of actively engaging with the research neighborhood (like AISC - see link to sign up with slack above), following preprint servers like arXiv, going to relevant conferences and webinars, and participating in conversation groups and newsletters. Continuous engagement with online communities and collective research projects likewise plays a key role in keeping up with technical developments.

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

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

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

A: The open-source and affordable style of DeepSeek R1 reduces the entry barrier for releasing sophisticated language designs. Enterprises and start-ups can utilize its advanced reasoning for agentic applications varying from automated code generation and client support to information analysis. Its versatile deployment options-on customer hardware for smaller sized models or cloud platforms for bigger ones-make it an attractive alternative to exclusive services.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple issues by checking out multiple thinking courses, it integrates stopping requirements and examination systems to avoid unlimited loops. The support learning structure encourages merging towards a proven output, even in uncertain cases.

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

A: Yes, DeepSeek V3 is open source and worked as the structure for later versions. It is built on its own set of innovations-including the mixture-of-experts technique and FP8 training-and is not based upon the Qwen architecture. Its design emphasizes performance and expense 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 abilities. Its style and training focus solely on language processing and thinking.

Q11: Can professionals in specialized fields (for instance, labs working on treatments) apply these methods 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 different domains. Researchers in fields like biomedical sciences can tailor these methods to build designs that address their particular difficulties while gaining from lower calculate expenses and robust reasoning abilities. It is likely that in deeply specialized fields, nevertheless, there will still be a need for supervised fine-tuning to get reliable outcomes.

Q12: Were the annotators for the human post-processing specialists in technical fields like computer system science or mathematics?

A: The conversation showed that the annotators mainly concentrated on domains where correctness is quickly verifiable-such as math and coding. This suggests that expertise in technical fields was certainly leveraged to guarantee the accuracy and clarity of the thinking information.

Q13: Could the design get things wrong if it depends on its own outputs for finding out?

A: While the design is created to optimize for appropriate responses through support knowing, there is always a danger of errors-especially in uncertain scenarios. However, by assessing multiple prospect outputs and reinforcing those that result in proven results, the training procedure lessens the probability of propagating inaccurate thinking.

Q14: How are hallucinations lessened in the model provided its iterative thinking loops?

A: Using rule-based, verifiable tasks (such as mathematics and coding) helps anchor the design's thinking. By comparing multiple outputs and utilizing group relative policy optimization to strengthen just those that yield the correct outcome, the model is assisted away from producing unproven or hallucinated details.

Q15: Does the design depend 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 techniques to allow reliable thinking rather than showcasing mathematical intricacy for its own sake.

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

A: Early iterations like R1-Zero did produce raw and in some cases hard-to-read reasoning. However, the subsequent improvement process-where human specialists curated and improved the reasoning data-has substantially improved the clarity and dependability of DeepSeek R1's internal thought process. While it remains an evolving system, iterative training and feedback have actually caused significant improvements.

Q17: Which model versions are ideal for local release on a laptop computer with 32GB of RAM?

A: For local testing, a medium-sized model-typically in the variety of 7B to 8B parameters-is advised. Larger models (for instance, those with numerous billions of criteria) need considerably more computational resources and are better matched for cloud-based implementation.

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

A: DeepSeek R1 is offered with open weights, suggesting that its design parameters are publicly available. This lines up with the total open-source approach, permitting scientists and developers to additional explore and build on its innovations.

Q19: What would happen if the order of training were reversed-starting with monitored fine-tuning before not being watched support learning?

A: The existing technique permits the design to first explore and produce its own reasoning patterns through unsupervised RL, and then improve these patterns with monitored techniques. Reversing the order may the model's capability to discover varied reasoning courses, potentially limiting its overall efficiency in jobs that gain from self-governing 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
None
0
Labels
None
Assign labels
  • View project labels
Reference: alinamadrigal/picp#52