High-Quality Math Data vs. High-Bandwidth Memory: The Two Sides of LLM Reasoning
This article examines a widely debated question in LLM reasoning: does the gap between models on hard tasks like mathematical proofs and logical deduction come from the quality of training data or from inference-time hardware throughput, especially high-bandwidth memory (HBM). Using the simple model P = 1 − (1−p)^N, it separates single-attempt quality (p) from the number of attempts (N), explains what expert-curated data actually improves, what HBM capacity and bandwidth actually improve, and concludes that the two are not competing but multiplicative factors—data raises the floor, compute scales the ceiling.
Background: Two Paths to Better Reasoning
Over the past two years, the performance of large models on demanding tasks such as mathematical proofs and logical deduction has sparked a broad debate: does the reasoning gap between models come from the “quality density” of their training data (for example, professional papers and rigorous derivations cleaned and annotated by math experts), or from hardware-level “throughput” during inference (especially high-bandwidth memory, HBM)?
This question deserves serious attention because it points to two entirely different paths for building capability:
- Path 1: Data-driven. Bring in experts with mathematical literacy to systematically clean, annotate, and steer professional papers, theorem proofs, and chains of logical reasoning, so the model “sees high-quality thinking processes” during training.
- Path 2: Compute-driven. With pretraining fixed, use large-scale reinforcement learning to let the model reflect and self-correct, then rely on massive parallel sampling during inference to “stumble onto” the correct answer. Here, inference throughput (HBM bandwidth and memory capacity) directly determines how many explorations can be completed per unit of time.
A common industry example is that some teams hire professional mathematicians to clean and annotate paper corpora, and even have human experts point the model toward initial exploration directions when it tackles world-class math problems. This shows that the “absence of experts” is not a step that can be simply replaced. On the other hand, there are also practices that apply large-scale reinforcement learning directly on a base model, showing that without large-scale supervised fine-tuning, a model can still exhibit reflective, self-checking reasoning behavior. The coexistence of both phenomena suggests the answer is not either/or, but requires a more precise framework for analysis.
A Simple Analytical Framework: P = 1 − (1−p)^N
If we abstract solving a math problem as a single independent trial: assume each independent generation has a correctness rate of p, and that a sufficiently reliable verifier can identify the correct answer (or at least filter out obviously wrong ones), then the probability of getting at least one correct solution across N generations is:
P(at least one correct) = 1 − (1 − p)^N
Though simple, this formula cleanly separates two kinds of factors that are easily confused in the discussion:
- p: the “quality density” of a single inference. It is determined by the model’s own reasoning ability, which is in turn deeply influenced by pretraining data quality, reinforcement learning strategy, and expert-annotated corpora.
- N: the number of explorations under a given time and cost budget. It is determined by the throughput of the inference hardware, where HBM plays a particularly critical role—during the decoding stage of large models, a great deal of time is spent reading from and writing to memory, so higher bandwidth and appropriate capacity allow more inference replicas to be maintained in parallel per unit of time, making N larger.
A simple sensitivity analysis of the formula reveals the difference in leverage between the two. When p is very small (say 0.01), doubling p to 0.02 roughly halves the number of samples required—a multiplicative gain. But when N is already large, continuing to pile on N yields diminishing marginal returns, because once (1−p)^N has dropped to a certain magnitude, further reductions contribute almost nothing. Conversely, if p is close to zero, no matter how large N is, the success probability still approaches zero. This is the mathematical intuition behind “high-quality data and high-throughput compute are both indispensable”: data raises the floor, compute scales the ceiling.
What Does High-Quality Data Actually Affect?
First, a common misconception needs clearing up: the worry that pretraining corpora get “polluted” by low-quality content, dragging down the single-inference correctness rate. In practice, mainstream pretraining pipelines generally include strict deduplication, quality filtering, and in-domain weighting, so low-quality content does not occupy too high a proportion. But this does not mean expert data is unimportant; its value shows up at three finer levels:
- The demonstrative role of complete proof chains. For proof tasks, feedback with only “right/wrong” states is insufficient—samples where the conclusion happens to be correct but the argument has flaws are extremely hard to identify using outcome rewards alone. Data constructed with expert involvement often carries rigorous intermediate derivation steps, providing a supervision signal for training a “verifier.” There is already industry practice of training dedicated verification models to assess the completeness and rigor of proofs, which is precisely where mathematician annotation holds potential value.
- Proof-style feedback vs. outcome-style feedback. The N generated solutions must ultimately be filtered by a verifier. If the verifier itself cannot recognize “pseudo-correct” derivations, then enlarging N only amplifies false positives. Expert annotation and verifier training complement each other, jointly ensuring that the improvement in p is “real” rather than “lucky.”
- The value of directional guidance. When handling open-ended hard problems that have no ready-made solution, human experts pointing the model toward an initial direction and delineating a reasonable exploration space can significantly raise the probability that the first attempt lands in a promising region—which is essentially also raising the effective p.
What Does HBM Actually Affect?
Now look at N in the formula. In autoregressive decoding, generating each token requires moving model weights and the KV cache from memory to the compute units, so memory-access pressure far exceeds compute pressure—a typical bandwidth-bound workload. The significance of HBM therefore shows up in two aspects:
- Capacity ceiling: Only with more ample memory can longer contexts and larger KV caches be held, supporting longer reasoning chains, more complex verification processes, and running multiple inference instances in parallel on the same device.
- Bandwidth ceiling: Higher bandwidth means more memory accesses per second, directly increasing the decoding speed of a single inference replica and the total number of concurrent replicas. Together, the two determine the total amount of compute executable under a fixed budget.
It is worth emphasizing that HBM makes the “trial-and-error path” execute more efficiently; it does not directly raise the correctness rate of each path. The following illustrative pseudocode describes this “generate–verify–select” inference paradigm:
best = Nonefor i in range(N): # N is determined by hardware throughputsol = model.generate(problem, temperature=t)if verifier.check(sol): # verifier quality determines filtering reliabilitybest = solbreak
Each generate consumes memory bandwidth, and each verifier.check is likewise a forward pass of a model. The multiplicative effect of N and p ultimately lands within real time and cost constraints.
Conclusion: Not Either/Or, but a Multiplicative Combination of Two Variables
Returning to the original debate, we can give a more rigorous answer:
- Expert-annotated, high-quality corpora do matter, but their main scope is the training side—raising the single-inference correctness rate p, especially through complete derivation data and verifier supervision, avoiding “luck-based” correctness. Guiding the exploration direction of open-ended hard problems is also a value experts cannot replace.
- Hardware factors like HBM matter just as much, but their scope is the inference side—raising the number of samples N and the sustainable parallelism executable under a given time and cost, scaling the value of p into an actually usable success rate.
- The two are not in competition but act on different factors of the same multiplicative structure. Of course, this division is not absolute: data quality also affects search efficiency (better reasoning styles make verification easier), and the hardware environment in turn affects the model scale and number of reinforcement learning rounds that training can support. But for understanding “where the gap really lies,” mapping the factors onto the two variables p and N is far more precise than vaguely saying “data matters” or “compute matters”—what truly determines the outcome has always been the product of the two factors under real constraints.
