Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
U
unimi
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 7
    • Issues 7
    • 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
    • CI / CD
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
  • Desmond Landseer
  • unimi
  • Issues
  • #6

Closed
Open
Opened Feb 12, 2025 by Desmond Landseer@desmondlnf8622Maintainer
  • Report abuse
  • New issue
Report abuse New issue

Understanding DeepSeek R1


We have actually been tracking the explosive increase of DeepSeek R1, which has actually taken the AI world by storm in recent 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 likewise checked out the technical developments that make R1 so unique on the planet of open-source AI.

The DeepSeek Ancestral Tree: From V3 to R1

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

DeepSeek V2:

This was the structure design which leveraged a mixture-of-experts architecture, where just a subset of experts are utilized at inference, drastically enhancing the processing time for each token. It also included multi-head hidden attention to reduce memory footprint.

DeepSeek V3:

This model presented FP8 training techniques, which helped drive down training expenses by over 42.5% compared to previous versions. FP8 is a less precise way to store weights inside the LLMs but can significantly improve the memory footprint. However, training utilizing FP8 can normally be unsteady, and it is difficult to obtain the wanted training results. Nevertheless, DeepSeek uses multiple techniques and attains remarkably steady FP8 training. V3 set the stage as an extremely efficient design that was already cost-efficient (with claims of being 90% more affordable than some closed-source alternatives).

DeepSeek R1-Zero:

With V3 as the base, the group then introduced R1-Zero, the very first reasoning-focused model. Here, the focus was on teaching the model not simply to create responses but to "believe" before addressing. Using pure support knowing, the model was motivated to generate intermediate thinking actions, for example, taking extra time (frequently 17+ seconds) to a basic problem like "1 +1."

The crucial development here was using group relative policy optimization (GROP). Instead of depending on a conventional process benefit design (which would have needed annotating every step of the thinking), GROP compares multiple outputs from the design. By tasting several prospective answers and scoring them (utilizing rule-based steps like specific match for mathematics or verifying code outputs), the system discovers to favor thinking that leads to the appropriate result without the need for explicit supervision of every intermediate thought.

DeepSeek R1:

Recognizing that R1-Zero's unsupervised approach produced thinking outputs that might be difficult to read and even blend languages, the developers went back to the drawing board. They used the raw outputs from R1-Zero to generate "cold start" information and after that by hand curated these examples to filter and improve the quality of the reasoning. This human post-processing was then used to fine-tune the original DeepSeek V3 model further-combining both reasoning-oriented support knowing and supervised fine-tuning. The outcome is DeepSeek R1: a model that now produces understandable, 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 (absolutely no) is how it established thinking capabilities without explicit supervision of the reasoning process. It can be further improved by utilizing cold-start information and monitored support discovering to produce understandable thinking on basic tasks. Here's what sets it apart:

Open Source & Efficiency:

R1 is open source, enabling scientists and developers to inspect and construct upon its innovations. Its cost efficiency is a significant selling point particularly when compared to closed-source models (claimed 90% less expensive than OpenAI) that require enormous compute budgets.

Novel Training Approach:

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

By utilizing group relative policy optimization, yewiki.org the training process compares several generated answers to identify which ones fulfill the desired output. This relative scoring mechanism enables the model to discover "how to believe" even when intermediate thinking is generated in a freestyle manner.

Overthinking?

An intriguing observation is that DeepSeek R1 in some cases "overthinks" easy problems. For instance, when asked "What is 1 +1?" it might invest nearly 17 seconds evaluating various scenarios-even considering binary representations-before concluding with the proper response. This self-questioning and confirmation process, wavedream.wiki although it might seem inefficient at first look, might prove advantageous in intricate tasks where much deeper thinking is required.

Prompt Engineering:

Traditional few-shot triggering methods, which have worked well for numerous chat-based designs, can actually deteriorate performance with R1. The designers recommend using direct problem statements with a zero-shot approach that specifies the output format plainly. This ensures that the model isn't led astray by extraneous examples or tips that might hinder its internal thinking process.

Beginning with R1

For those aiming to experiment:

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


Larger variations (600B) need considerable compute resources


Available through major cloud providers


Can be deployed in your area through Ollama or vLLM


Looking Ahead

We're particularly interested by several implications:

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


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


Possibilities for combining with other guidance methods


Implications for enterprise AI implementation


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

Open Questions

How will this affect the development of future reasoning designs?


Can this approach be reached less verifiable domains?


What are the implications for multi-modal AI systems?


We'll be watching these advancements closely, especially as the neighborhood starts to experiment with and build upon these strategies.

Resources

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


Cloud Providers:

Nvidia


Together.ai


AWS




Q&A

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

A: While Qwen2.5 is also a strong model in the open-source community, the option ultimately depends upon your use case. DeepSeek R1 highlights advanced reasoning and an unique training technique that may be particularly valuable in jobs where proven logic is important.

Q2: Why did major service providers like OpenAI select supervised fine-tuning instead of support learning (RL) like DeepSeek?

A: We need to note upfront that they do use RL at least in the kind of RLHF. It is likely that models from major companies that have thinking abilities currently utilize something similar to what DeepSeek has 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 ready availability of big annotated datasets. Reinforcement knowing, although effective, can be less foreseeable and trademarketclassifieds.com harder to control. DeepSeek's method innovates by using RL in a reasoning-oriented way, enabling the design to find out reliable internal reasoning with only minimal procedure annotation - a method that has proven appealing regardless of its intricacy.

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

A: DeepSeek R1's design emphasizes performance by leveraging methods such as the mixture-of-experts method, which activates only a subset of specifications, to minimize compute throughout reasoning. This concentrate on efficiency is main to its cost benefits.

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

A: R1-Zero is the preliminary model that finds out reasoning exclusively through support learning without specific procedure supervision. It produces intermediate reasoning steps that, while sometimes raw or mixed in language, work as the foundation 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 "spark," and R1 is the refined, more meaningful variation.

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

A: garagesale.es 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, participating in pertinent conferences and webinars, and taking part in conversation groups and newsletters. Continuous engagement with online neighborhoods and collective research study tasks also plays a key role in keeping up with technical advancements.

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

A: The brief answer is that it's too early to tell. DeepSeek R1's strength, nevertheless, depends on its robust reasoning abilities and its efficiency. It is particularly well matched for jobs that require verifiable logic-such as mathematical problem resolving, code generation, and hb9lc.org structured decision-making-where intermediate reasoning can be reviewed and verified. Its open-source nature even more 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 affordable style of DeepSeek R1 lowers the entry barrier for deploying advanced language models. Enterprises and start-ups can leverage its sophisticated reasoning for agentic applications varying from automated code generation and consumer support to data analysis. Its flexible deployment options-on customer hardware for smaller sized designs or cloud platforms for larger ones-make it an attractive alternative to proprietary solutions.

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

A: While DeepSeek R1 has actually been observed to "overthink" simple issues by checking out several thinking courses, it integrates stopping criteria and assessment systems to prevent infinite loops. The reinforcement discovering framework motivates merging towards 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 functioned as the foundation for later versions. It is constructed on its own set of innovations-including the mixture-of-experts technique and FP8 training-and is not based on the Qwen architecture. Its style stresses effectiveness and expense reduction, setting the phase 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 incorporate vision capabilities. Its design and training focus entirely on language processing and thinking.

Q11: Can specialists in specialized fields (for instance, labs dealing with cures) use these techniques 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 approaches to construct models that resolve their specific difficulties while gaining from lower compute expenses and robust thinking abilities. It is likely that in deeply specialized fields, nevertheless, there will still be a need for supervised fine-tuning to get dependable outcomes.

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

A: The discussion indicated that the annotators mainly focused on domains where correctness is easily verifiable-such as mathematics and coding. This suggests that competence in technical fields was certainly leveraged to guarantee the precision and clearness of the thinking data.

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

A: While the design is created to optimize for correct responses via support knowing, there is constantly a threat of errors-especially in uncertain situations. However, by assessing several prospect outputs and reinforcing those that lead to proven outcomes, the training process decreases the likelihood of propagating incorrect reasoning.

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

A: Making use of rule-based, proven tasks (such as math and coding) assists anchor the design's thinking. By comparing numerous outputs and utilizing group relative policy optimization to enhance only those that yield the correct result, the design is assisted far from creating unfounded or hallucinated details.

Q15: Does the design depend on complex vector mathematics?

A: Yes, advanced techniques-including complex vector math-are essential to the application of mixture-of-experts and ratemywifey.com attention systems in DeepSeek R1. However, the main focus is on using these methods to enable effective thinking 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 legitimate concern?

A: Early versions like R1-Zero did produce raw and often hard-to-read thinking. However, the subsequent refinement process-where human specialists curated and improved the thinking data-has significantly improved the clarity and dependability of DeepSeek R1's internal thought process. While it remains a developing system, iterative training and feedback have resulted in significant improvements.

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

A: For regional screening, a medium-sized model-typically in the variety of 7B to 8B parameters-is suggested. Larger models (for instance, those with hundreds of billions of specifications) need substantially more computational resources and are much better suited 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, indicating that its model parameters are openly available. This aligns with the overall open-source philosophy, allowing researchers and designers to further explore and build on its developments.

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

A: The existing approach enables the design to initially check out and create its own reasoning patterns through unsupervised RL, and after that fine-tune these patterns with supervised approaches. Reversing the order may constrain the model's ability to discover diverse reasoning paths, possibly restricting its total performance in jobs that gain from autonomous idea.

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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: desmondlnf8622/unimi#6