免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

标题: Understanding DeepSeek R1 [打印本页]

作者: ChasLyttle    时间: 2025-4-7 00:45     标题: Understanding DeepSeek R1

We've 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 evolution of the DeepSeek household - from the early models through DeepSeek V3 to the breakthrough R1. We also explored the technical innovations that make R1 so unique in the world of open-source AI.


The DeepSeek Family Tree: From V3 to R1


DeepSeek isn't just a single design; it's a household of significantly advanced AI systems. The advancement goes something like this:


DeepSeek V2:


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


DeepSeek V3:


This model presented FP8 training strategies, which assisted drive down training costs by over 42.5% compared to previous versions. FP8 is a less accurate way to keep weights inside the LLMs but can significantly enhance the memory footprint. However, training utilizing FP8 can normally be unstable, and it is hard to obtain the wanted training results. Nevertheless, DeepSeek utilizes multiple tricks and attains extremely stable FP8 training. V3 set the phase as an extremely effective design that was currently affordable (with claims of being 90% cheaper than some closed-source options).


DeepSeek R1-Zero:


With V3 as the base, the team then presented R1-Zero, the first reasoning-focused iteration. Here, the focus was on teaching the model not simply to produce responses but to "believe" before responding to. Using pure reinforcement learning, the model was motivated to produce intermediate thinking steps, for instance, taking extra time (frequently 17+ seconds) to overcome a simple issue like "1 +1."


The essential development here was the use of group relative policy optimization (GROP). Instead of counting on a traditional procedure benefit design (which would have needed annotating every action of the thinking), GROP compares multiple outputs from the design. By sampling several potential responses and scoring them (utilizing rule-based measures like exact match for math or validating code outputs), the system finds out to favor reasoning that results in the appropriate result without the need for specific guidance of every intermediate idea.


DeepSeek R1:


Recognizing that R1-Zero's without supervision method produced thinking outputs that might be hard to check out and even mix languages, the developers returned to the drawing board. They utilized the raw outputs from R1-Zero to generate "cold start" data and after that by hand curated these examples to filter and improve the quality of the thinking. This human post-processing was then utilized to fine-tune the initial DeepSeek V3 design further-combining both reasoning-oriented support learning and supervised fine-tuning. The result is DeepSeek R1: a model that now produces legible, meaningful, and trusted reasoning while still maintaining the performance and cost-effectiveness of its predecessors.


What Makes R1 Series Special?


The most remarkable aspect of R1 (absolutely no) is how it developed thinking capabilities without specific guidance of the thinking procedure. It can be even more improved by utilizing cold-start information and supervised support learning to produce readable thinking on basic tasks. Here's what sets it apart:


Open Source & Efficiency:


R1 is open source, enabling researchers and developers to inspect and build on its developments. Its cost performance is a significant selling point specifically when compared to closed-source models (claimed 90% cheaper than OpenAI) that need huge calculate budget plans.


Novel Training Approach:


Instead of relying exclusively on annotated reasoning (which is both pricey and lengthy), the design was trained utilizing an outcome-based method. It started with easily proven jobs, such as math issues and coding workouts, where the accuracy of the last response could be quickly measured.


By utilizing group relative policy optimization, the training procedure compares several created responses to determine which ones meet the desired output. This relative scoring system allows the design to find out "how to believe" even when intermediate reasoning is created in a freestyle manner.


Overthinking?


An interesting observation is that DeepSeek R1 often "overthinks" simple issues. For example, when asked "What is 1 +1?" it might invest nearly 17 seconds examining various scenarios-even thinking about binary representations-before concluding with the proper response. This self-questioning and confirmation process, although it might appear inefficient in the beginning glimpse, might prove useful in intricate tasks where deeper thinking is essential.


Prompt Engineering:


Traditional few-shot prompting strategies, which have actually worked well for lots of chat-based models, can really degrade performance with R1. The developers suggest using direct issue statements with a zero-shot method that specifies the output format plainly. This ensures that the design isn't led astray by extraneous examples or tips that might interfere with its internal thinking process.


Getting Going with R1


For those aiming to experiment:


Smaller versions (7B-8B) can operate on consumer GPUs and even only CPUs



Larger variations (600B) need significant compute resources



Available through significant cloud service providers



Can be deployed locally through Ollama or vLLM




Looking Ahead


We're particularly fascinated by numerous ramifications:


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



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



Possibilities for combining with other guidance techniques



Implications for enterprise AI deployment



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


Open Questions


How will this impact the development of future thinking models?



Can this method be reached less proven domains?



What are the ramifications for multi-modal AI systems?




We'll be watching these advancements closely, especially as the community starts to try out and build on these techniques.


Resources


Join our Slack community for continuous discussions and updates about DeepSeek and other AI developments. We're seeing remarkable applications already 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 model deserves more attention - DeepSeek or Qwen2.5 Max?


A: While Qwen2.5 is likewise a strong design in the open-source neighborhood, the option eventually depends upon your use case. DeepSeek R1 stresses innovative reasoning and a novel training approach that may be especially important in tasks where verifiable reasoning is important.


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


A: We must note upfront that they do utilize RL at the very least in the kind of RLHF. It is likely that designs from significant companies that have thinking abilities currently utilize something comparable to what DeepSeek has actually done here, but we can't make certain. It is also likely that due to access to more resources, they preferred supervised fine-tuning due to its stability and the ready availability of big annotated datasets. Reinforcement knowing, although powerful, can be less foreseeable and harder to control. DeepSeek's technique innovates by applying RL in a reasoning-oriented way, making it possible for the design to learn reliable internal thinking with only very little procedure annotation - a strategy that has proven promising in spite of its intricacy.


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


A: DeepSeek R1's design emphasizes effectiveness by leveraging techniques such as the mixture-of-experts method, which activates just a subset of parameters, to reduce compute throughout inference. This focus on effectiveness is main to its cost advantages.


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


A: R1-Zero is the initial design that discovers reasoning entirely through support knowing without specific process supervision. It produces intermediate reasoning actions that, while in some cases raw or combined in language, serve as the foundation for learning. DeepSeek R1, on the other hand, refines these outputs through human post-processing and supervised fine-tuning. In essence, R1-Zero supplies the without supervision "trigger," and R1 is the polished, more meaningful version.


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


A: Remaining present includes a mix of actively engaging with the research community (like AISC - see link to sign up with slack above), following preprint servers like arXiv, attending pertinent conferences and webinars, and participating in discussion groups and newsletters. Continuous engagement with online neighborhoods and collaborative research projects likewise plays a crucial role in staying up to date with technical advancements.


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


A: The brief response is that it's prematurely to inform. DeepSeek R1's strength, nevertheless, lies in its robust reasoning capabilities and its effectiveness. It is particularly well matched for jobs that require proven logic-such as mathematical issue fixing, code generation, and structured decision-making-where intermediate reasoning can be evaluated and confirmed. Its open-source nature even more enables tailored applications in research study and enterprise settings.


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


A: The open-source and affordable style of DeepSeek R1 lowers the entry barrier for releasing sophisticated language designs. Enterprises and start-ups can utilize its innovative reasoning for agentic applications ranging from automated code generation and client support to data analysis. Its versatile implementation options-on consumer hardware for smaller sized models or cloud platforms for bigger ones-make it an attractive option to proprietary services.


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


A: While DeepSeek R1 has actually been observed to "overthink" simple issues by exploring multiple reasoning paths, it integrates stopping requirements and evaluation systems to avoid unlimited loops. The support learning framework motivates merging toward a verifiable output, even in uncertain cases.


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


A: Yes, DeepSeek V3 is open source and acted as the foundation for later models. It is developed on its own set of innovations-including the mixture-of-experts approach and FP8 training-and is not based on the Qwen architecture. Its design emphasizes effectiveness and expense reduction, setting the stage for the thinking developments seen in R1.


Q10: How does DeepSeek R1 carry out on vision jobs?


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


Q11: Can professionals in specialized fields (for example, labs working on remedies) apply these techniques to train domain-specific models?


A: Yes. The developments behind DeepSeek R1-such as its outcome-based thinking training and effective architecture-can be adjusted to numerous domains. Researchers in fields like biomedical sciences can tailor these techniques to build models that resolve their particular challenges while gaining from lower compute costs and robust reasoning capabilities. It is most likely that in deeply specialized fields, nevertheless, there will still be a requirement for supervised fine-tuning to get reputable outcomes.


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


A: The conversation indicated that the annotators mainly focused on domains where accuracy is quickly verifiable-such as math and coding. This recommends that proficiency in technical fields was certainly leveraged to ensure the precision and clearness of the reasoning data.


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


A: While the model is developed to enhance for appropriate responses by means of reinforcement knowing, there is constantly a danger of errors-especially in uncertain situations. However, by examining multiple prospect outputs and reinforcing those that result in verifiable results, the training process minimizes the probability of propagating incorrect reasoning.


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


A: Making use of rule-based, verifiable tasks (such as mathematics and coding) helps anchor the model's reasoning. By comparing numerous outputs and using group relative policy optimization to enhance just those that yield the proper outcome, the model is guided far from producing unproven or hallucinated details.


Q15: Does the model 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 utilizing these methods to enable effective reasoning rather than showcasing mathematical complexity for its own sake.


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


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


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


A: For local testing, a medium-sized model-typically in the series of 7B to 8B parameters-is advised. Larger models (for instance, those with hundreds of billions of specifications) need considerably more computational resources and are much better fit for cloud-based release.


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


A: DeepSeek R1 is offered with open weights, indicating that its model specifications are publicly available. This aligns with the overall open-source viewpoint, permitting researchers and designers to further check out and construct upon its developments.


Q19: What would take place if the order of training were reversed-starting with monitored fine-tuning before without supervision reinforcement knowing?


A: The current method enables the model to initially explore and create its own reasoning patterns through without supervision RL, and after that fine-tune these patterns with monitored methods. Reversing the order might constrain the model's ability to find diverse thinking paths, potentially restricting its total efficiency in jobs that gain from autonomous idea.


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




欢迎光临 炸弹超人 (http://zhadanchaoren.dhlog.com/) Powered by Discuz! 7.2