Archive of AI

Source Snapshot / 2024-11-28-qwen2-5-coder-qwq-preview-1

QwQ: Reflect Deeply on the Boundaries of the Unknown

Linked event: 2024-11-28 · Alibaba Qwen Open-Sources Full Qwen2.5-Coder Suite and First Reasoning Preview Model QwQ-32B-Preview

Publisher
Qwen Official Blog
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 6c244a2f58d1bb8b
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

We have a new blog!View this page at qwen.ai.

This page will automatically redirect in 5 seconds.

If you are not redirected automatically, please click the button below.

QwQ: Reflect Deeply on the Boundaries of the Unknown

November 28, 2024 · 22 min · 4496 words · Qwen Team | Translations:

HUGGING FACE

Note: This is the pronunciation of QwQ: /kwju:/ , similar to the word “quill”.

What does it mean to think, to question, to understand? These are the deep waters that QwQ (Qwen with Questions) wades into. Like an eternal student of wisdom, it approaches every problem - be it mathematics, code, or knowledge of our world - with genuine wonder and doubt. QwQ embodies that ancient philosophical spirit: it knows that it knows nothing, and that’s precisely what drives its curiosity. Before settling on any answer, it turns inward, questioning its own assumptions, exploring different paths of thought, always seeking deeper truth. Yet, like all seekers of wisdom, QwQ has its limitations. This version is but an early step on a longer journey - a student still learning to walk the path of reasoning. Its thoughts sometimes wander, its answers aren’t always complete, and its wisdom is still growing. But isn’t that the beauty of true learning? To be both capable and humble, knowledgeable yet always questioning? We invite you to explore alongside QwQ, embracing both its insights and its imperfections as part of the endless quest for understanding.

Limitations#

QwQ-32B-Preview is an experimental research model developed by the Qwen Team, focused on advancing AI reasoning capabilities. As a preview release, it demonstrates promising analytical abilities while having several important limitations:

Language Mixing and Code-Switching: The model may mix languages or switch between them unexpectedly, affecting response clarity.

Recursive Reasoning Loops: The model may enter circular reasoning patterns, leading to lengthy responses without a conclusive answer.

Safety and Ethical Considerations: The model requires enhanced safety measures to ensure reliable and secure performance, and users should exercise caution when deploying it.

Performance and Benchmark Limitations: The model excels in math and coding but has room for improvement in other areas, such as common sense reasoning and nuanced language understanding.

Performance#

Through deep exploration and countless trials, we discovered something profound: when given time to ponder, to question, and to reflect, the model’s understanding of mathematics and programming blossoms like a flower opening to the sun. Just as a student grows wiser by carefully examining their work and learning from mistakes, our model achieves deeper insight through patient, thoughtful analysis. This process of careful reflection and self-questioning leads to remarkable breakthroughs in solving complex problems. Our journey of discovery revealed the model’s exceptional ability to tackle some of the most challenging problems in mathematics and programming, including:

GPQA: A Graduate-Level Google-Proof Q&A Benchmark, a challenging benchmark for evaluating scientific problem-solving abilities through grade school level questions.

AIME: American Invitation Mathematics Evaluation, which tests mathematical problem solving with arithmetic, algebra, counting, geometry, number theory, and probability and other secondary school math topics.

MATH-500: The 500 test cases of the MATH benchmark, a comprehensive dataset testing mathematical problem-solving.

LiveCodeBench: A challenging benchmark for evaluating code generation and problem solving abilities in real-world programming scenarios.

Specifically, QwQ demonstrates remarkable performance across these benchmarks, achieving impressive scores of 65.2% on GPQA, showcasing its graduate-level scientific reasoning capabilities; 50.0% on AIME, highlighting its strong mathematical problem-solving skills; 90.6% on MATH-500, demonstrating exceptional mathematical comprehension across diverse topics; and 50.0% on LiveCodeBench, validating its robust programming abilities in real-world scenarios. These results underscore QwQ’s significant advancement in analytical and problem-solving capabilities, particularly in technical domains requiring deep reasoning.

In the following examples, we invite you to witness the profound depths of QwQ-32B-Preview’s contemplative abilities. Like a seeker of wisdom on an endless journey of discovery, the model demonstrates its capacity for deep introspection - questioning its own assumptions, engaging in thoughtful self-dialogue, and carefully examining each step of its reasoning process. Through these cases, you’ll observe how QwQ embodies the timeless understanding that true knowledge emerges not from hasty conclusions, but from patient inquiry and the courage to challenge one’s own certainties in the eternal pursuit of truth.

Example: Logical Reasoning

Please add a pair of parentheses to the incorrect equation: 1 + 2 * 3 + 4 * 5 + 6 * 7 + 8 * 9 = 479, to make the equation true.

QwQ-32B-Preview

Let’s tackle this problem step by step. The equation given is:

1 + 2 * 3 + 4 * 5 + 6 * 7 + 8 * 9 = 479

But it’s incorrect, and I need to add a pair of parentheses to make it true. Okay, first things first, I should understand what the current value of the left side is without any parentheses.

Let’s recall the order of operations: PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). So, multiplication comes before addition.

So, calculating step by step:

Now, plugging these back into the equation:

1 + 6 + 20 + 42 + 72

Adding these up:

27 + 42 = 69

69 + 72 = 141

So, without any parentheses, the left side equals 141, but it should be 479. That’s quite a difference. So, I need to add a pair of parentheses to make it equal to 479.

I need to think about where to place the parentheses to alter the order of operations to achieve the desired result.

Let me consider different possibilities:

Parenthesizing individual terms:

For example, (1 + 2) * 3 + 4 * 5 + 6 * 7 + 8 * 9

Calculate inside the parentheses first:

Then, 3 * 3 = 9

Now, the equation becomes:

9 + 4 * 5 + 6 * 7 + 8 * 9

Following order of operations:

So, 9 + 20 + 42 + 72 = 143

Still not 479.

Parenthesizing more terms:

What if I do (1 + 2 * 3) + 4 * 5 + 6 * 7 + 8 * 9

First, calculate inside the parentheses:

Here, multiplication comes before addition, so 2 * 3 = 6, then 1 + 6 = 7

So, the equation becomes:

7 + 4 * 5 + 6 * 7 + 8 * 9

Again, following order of operations:

So, 7 + 20 + 42 + 72 = 141

Same as before.

Let’s try (1 + 2) * (3 + 4) * 5 + 6 * 7 + 8 * 9

So, 3 * 7 * 5 = 105

105 + 6 * 7 + 8 * 9

So, 105 + 42 + 72 = 219

Maybe trying to group more terms:

(1 + 2 * 3 + 4) * 5 + 6 * 7 + 8 * 9

1 + 2 * 3 + 4

Multiplication first: 2 * 3 = 6

Then, 1 + 6 + 4 = 11

So, 11 * 5 = 55

55 + 6 * 7 + 8 * 9

So, 55 + 42 + 72 = 169

Getting closer, but still not 479.

Let’s try a different approach. Maybe grouping the additions together:

1 + (2 * 3 + 4 * 5 + 6 * 7 + 8 * 9)

So, 6 + 20 + 42 + 72 = 140

Then, 1 + 140 = 141

Perhaps grouping two multiplications together:

1 + 2 * (3 + 4) * 5 + 6 * 7 + 8 * 9

So, 2 * 7 * 5 = 70

1 + 70 + 6 * 7 + 8 * 9

So, 1 + 70 + 42 + 72 = 185

Maybe grouping more multiplications:

1 + 2 * 3 + 4 * (5 + 6) * 7 + 8 * 9

(5 + 6) = 11

So, 4 * 11 * 7 = 308

1 + 2 * 3 + 308 + 8 * 9

So, 1 + 6 + 308 + 72 = 387

Closer, but still not 479.

Let’s try grouping the last terms:

1 + 2 * 3 + 4 * 5 + 6 * (7 + 8) * 9

(7 + 8) = 15

So, 6 * 15 * 9 = 810

1 + 2 * 3 + 4 * 5 + 810

So, 1 + 6 + 20 + 810 = 837

Now that’s way over 479.

Maybe I need to group terms in a way that subtraction is implied, but since there are no subtractions in the original equation, perhaps I need to consider that.

Wait, maybe the problem allows for adding parentheses to change the operations indirectly.

[...内容已截断,完整版请查看原文或 Wayback 快照]