Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
  • Sign in / Register
S
staff-pro
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Issues 43
    • Issues 43
    • 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
  • Aileen Feuerstein
  • staff-pro
  • Issues
  • #7

Closed
Open
Opened Feb 17, 2025 by Aileen Feuerstein@aileenfeuerste
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We've been tracking the explosive increase of DeepSeek R1, which has actually taken the AI world by storm in current weeks. In this session, we dove deep into the advancement of the DeepSeek family - from the early designs 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 just a single design; it's a household of progressively advanced 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 used at reasoning, significantly improving the processing time for each token. It likewise featured multi-head hidden attention to minimize memory footprint.

DeepSeek V3:

This model presented FP8 training methods, which assisted drive down training expenses by over 42.5% compared to previous versions. FP8 is a less exact way to save weights inside the LLMs but can considerably improve the memory footprint. However, training utilizing FP8 can typically be unstable, and it is tough to obtain the wanted training results. Nevertheless, DeepSeek utilizes multiple tricks and attains extremely steady FP8 training. V3 set the phase as a highly effective model that was currently cost-efficient (with claims of being 90% more affordable than some closed-source options).

DeepSeek R1-Zero:

With V3 as the base, the group then presented R1-Zero, the very first reasoning-focused iteration. Here, the focus was on teaching the design not simply to generate responses but to "think" before answering. Using pure reinforcement learning, the model was motivated to generate intermediate reasoning actions, for instance, taking additional time (often 17+ seconds) to overcome a simple problem like "1 +1."

The crucial innovation here was the use of group relative policy optimization (GROP). Instead of counting on a conventional process reward design (which would have required annotating every action of the thinking), GROP compares multiple outputs from the model. By sampling numerous possible answers and scoring them (utilizing rule-based measures like exact match for math or confirming code outputs), the system finds out to prefer thinking that leads to the correct result without the need for specific guidance of every intermediate idea.

DeepSeek R1:

Recognizing that R1-Zero's not being watched approach produced thinking outputs that could be hard to check out or perhaps mix languages, the designers returned to the drawing board. They used the raw outputs from R1-Zero to produce "cold start" information and then by hand curated these examples to filter and improve the quality of the reasoning. This human post-processing was then utilized to fine-tune the original DeepSeek V3 model further-combining both reasoning-oriented reinforcement learning and monitored fine-tuning. The result is DeepSeek R1: a design that now produces readable, meaningful, and reputable thinking 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 established reasoning abilities without explicit guidance of the thinking process. It can be even more enhanced by utilizing cold-start data and supervised support learning to produce understandable reasoning on general jobs. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, enabling researchers and designers to examine and build on its innovations. Its expense performance is a major selling point particularly when compared to closed-source designs (claimed 90% less expensive than OpenAI) that require enormous calculate spending plans.

Novel Training Approach:

Instead of relying exclusively on annotated reasoning (which is both expensive and time-consuming), the design was trained utilizing an outcome-based approach. It began with easily proven jobs, wiki.snooze-hotelsoftware.de such as math problems and coding workouts, where the correctness of the last answer could be easily determined.

By using group relative policy optimization, the training procedure compares multiple generated answers to identify which ones fulfill the wanted output. This relative scoring mechanism permits the design to discover "how to think" even when intermediate thinking is created in a freestyle manner.

Overthinking?

An interesting observation is that DeepSeek R1 often "overthinks" easy issues. For example, when asked "What is 1 +1?" it might invest almost 17 seconds assessing various scenarios-even considering binary representations-before concluding with the correct answer. This self-questioning and verification procedure, although it may appear inefficient initially glance, might prove helpful in complex tasks where deeper thinking is needed.

Prompt Engineering:

Traditional few-shot triggering methods, which have worked well for numerous chat-based models, can actually degrade performance with R1. The developers advise utilizing direct issue declarations with a zero-shot technique that specifies the output format plainly. This ensures that the model isn't led astray by extraneous examples or tips that may interfere with its internal reasoning process.

Starting with R1

For those aiming to experiment:

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


Larger variations (600B) need substantial compute resources


Available through significant cloud suppliers


Can be deployed in your area via Ollama or vLLM


Looking Ahead

We're particularly captivated by several implications:

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


Influence on agent-based AI systems traditionally developed on chat designs


Possibilities for combining with other supervision methods


Implications for enterprise AI implementation


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

Open Questions

How will this affect the advancement of future thinking ?


Can this technique be encompassed less proven domains?


What are the implications for multi-modal AI systems?


We'll be enjoying these advancements closely, especially as the neighborhood starts to try out and construct upon these strategies.

Resources

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


Cloud Providers:

Nvidia


Together.ai


AWS




Q&A

Q1: Which model deserves more attention - DeepSeek or Qwen2.5 Max?

A: While Qwen2.5 is likewise a strong model in the open-source neighborhood, the option eventually depends upon your use case. DeepSeek R1 stresses sophisticated thinking and an unique training method that might be especially important in tasks where verifiable logic is vital.

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

A: We must keep in mind upfront that they do use RL at least in the kind of RLHF. It is really likely that designs from significant suppliers that have reasoning abilities currently use something similar 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 preferred monitored fine-tuning due to its stability and the all set availability of large annotated datasets. Reinforcement learning, although effective, can be less predictable and harder to manage. DeepSeek's technique innovates by applying RL in a reasoning-oriented manner, making it possible for the model to learn efficient internal thinking with only very little process annotation - a technique that has actually proven promising regardless of its intricacy.

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

A: DeepSeek R1's design emphasizes performance by leveraging strategies such as the mixture-of-experts technique, which activates only a subset of parameters, to reduce compute throughout reasoning. This concentrate on efficiency is main to its expense benefits.

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

A: R1-Zero is the initial design that learns reasoning entirely through reinforcement learning without explicit procedure guidance. It produces intermediate thinking steps that, while often raw or combined in language, function as the structure for learning. DeepSeek R1, on the other hand, improves these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero supplies the without supervision "trigger," and R1 is the refined, more meaningful variation.

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

A: Remaining current involves a mix of actively engaging with the research community (like AISC - see link to join slack above), following preprint servers like arXiv, participating in appropriate conferences and webinars, and getting involved in conversation groups and newsletters. Continuous engagement with online communities and collaborative research study projects likewise plays a crucial role in staying up to date with technical developments.

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

A: The short answer is that it's prematurely to inform. DeepSeek R1's strength, nevertheless, depends on its robust thinking capabilities and its efficiency. It is particularly well matched for tasks that require verifiable logic-such as mathematical problem resolving, code generation, and structured decision-making-where intermediate reasoning can be examined and validated. Its open-source nature even more enables for tailored applications in research study and business settings.

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

A: The open-source and affordable design of DeepSeek R1 reduces the entry barrier for releasing advanced language designs. Enterprises and start-ups can leverage its innovative thinking for agentic applications ranging from automated code generation and client support to data analysis. Its flexible implementation options-on consumer hardware for smaller sized models or cloud platforms for larger ones-make it an attractive alternative to exclusive options.

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

A: While DeepSeek R1 has been observed to "overthink" simple problems by checking out numerous reasoning courses, it incorporates stopping requirements and examination mechanisms to prevent infinite loops. The support learning framework encourages convergence towards a verifiable 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 functioned as the structure for later iterations. 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 design stresses efficiency and expense reduction, setting the phase for the reasoning developments seen in R1.

Q10: How does DeepSeek R1 perform on vision jobs?

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

Q11: Can experts in specialized fields (for instance, laboratories working on treatments) apply these approaches to train domain-specific models?

A: Yes. The innovations behind DeepSeek R1-such as its outcome-based thinking training and effective architecture-can be adapted to numerous domains. Researchers in fields like biomedical sciences can tailor these approaches to build designs that address their specific obstacles while gaining from lower calculate costs and robust thinking abilities. It is likely that in deeply specialized fields, however, there will still be a need for monitored fine-tuning to get reliable outcomes.

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

A: The discussion suggested that the annotators mainly concentrated on domains where correctness is quickly verifiable-such as math and coding. This recommends that proficiency in technical fields was certainly leveraged to make sure the accuracy and clarity of the reasoning information.

Q13: Could the model get things incorrect if it depends on its own outputs for learning?

A: While the model is designed to optimize for proper responses through reinforcement knowing, there is always a danger of errors-especially in uncertain situations. However, by evaluating multiple prospect outputs and reinforcing those that cause verifiable results, the training process minimizes the possibility of propagating inaccurate thinking.

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

A: Making use of rule-based, verifiable jobs (such as math and coding) assists anchor the design's reasoning. By comparing numerous outputs and using group relative policy optimization to reinforce just those that yield the appropriate outcome, the design is directed away from producing unfounded or hallucinated details.

Q15: Does the design rely on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are essential to the execution of mixture-of-experts and attention mechanisms in DeepSeek R1. However, the main focus is on using these strategies to enable effective reasoning instead of showcasing mathematical intricacy for its own sake.

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

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

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

A: For local screening, a medium-sized model-typically in the series of 7B to 8B parameters-is suggested. Larger designs (for example, those with hundreds of billions of criteria) need considerably more computational resources and are much better suited for cloud-based deployment.

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

A: DeepSeek R1 is provided with open weights, implying that its design criteria are publicly available. This lines up with the overall open-source approach, enabling researchers and designers to more check out and build upon its innovations.

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

A: The current method enables the design to first explore and produce its own reasoning patterns through unsupervised RL, and after that refine these patterns with monitored approaches. Reversing the order may constrain the model's ability to find diverse reasoning courses, potentially restricting its overall efficiency in jobs that gain from autonomous idea.

Thanks for checking out Deep Random Thoughts! Subscribe totally free 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: aileenfeuerste/staff-pro#7