<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: wanqiuxu</title>
    <description>The latest articles on DEV Community by wanqiuxu (@wanqiu_7ad7bc3efc7b7).</description>
    <link>https://dev.to/wanqiu_7ad7bc3efc7b7</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4165323%2F5c94db0c-5d95-49e3-b22f-b28f8f1311d5.png</url>
      <title>DEV Community: wanqiuxu</title>
      <link>https://dev.to/wanqiu_7ad7bc3efc7b7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wanqiu_7ad7bc3efc7b7"/>
    <language>en</language>
    <item>
      <title>What a 95% confidence interval actually tells you</title>
      <dc:creator>wanqiuxu</dc:creator>
      <pubDate>Wed, 11 Nov 2026 05:56:20 +0000</pubDate>
      <link>https://dev.to/wanqiu_7ad7bc3efc7b7/what-a-95-confidence-interval-actually-tells-you-18ie</link>
      <guid>https://dev.to/wanqiu_7ad7bc3efc7b7/what-a-95-confidence-interval-actually-tells-you-18ie</guid>
      <description>&lt;p&gt;A scientific paper reports that a mean difference is 1.4, with a 95% confidence interval of 0.6 to 2.2. In the news, and sometimes even in research talks, this is shortened to a more comforting sentence: we can be 95 percent sure the true value lies between 0.6 and 2.2. That sentence is easy to remember. For a frequentist confidence interval, it is also the wrong meaning.&lt;/p&gt;

&lt;p&gt;The core idea is this: &lt;strong&gt;a 95% confidence interval describes the long-run behavior of a method, not the probability that this particular interval covers the true value.&lt;/strong&gt; The number 95% belongs to the procedure. It does not attach itself, as a posterior probability, to the one interval you have just computed.&lt;/p&gt;

&lt;p&gt;Here is what the procedure is supposed to do. You adopt a statistical model, collect a sample, and compute an interval from that sample by a fixed rule. Imagine, as a thought experiment, repeating the whole study many times, each time drawing a new sample from the same process and applying the same rule. If the model is right and the rule is a 95% confidence procedure, then in the long run about 95% of those intervals would contain the unknown parameter. The other 5% would miss it. In any one repetition, the parameter itself is not jumping around. It is treated as fixed but unknown. The interval is what changes. Once you have computed this week's interval, that specific pair of numbers either includes the parameter or it does not. There is no remaining 95% chance attached to the interval, because the randomness that the 95% referred to was in the sampling, not in the already-realized endpoints.&lt;/p&gt;

&lt;p&gt;This distinction is one of the most common misreadings of frequentist intervals. In 2016, Sander Greenland, Stephen Senn, Kenneth Rothman and colleagues published a widely used guide to misinterpretations of tests, P values, confidence intervals, and power in the &lt;em&gt;European Journal of Epidemiology&lt;/em&gt;. Among the points they stress is that a 95% interval should not be read as if it were a 95% probability statement about the parameter, and that values inside the interval are not thereby shown to be equally plausible, or "proven." The interval is a statement of compatibility with a model and a procedure, under assumptions that may themselves be wrong. If the model is badly misspecified, the long-run coverage can fail, and the label "95%" will not rescue it.&lt;/p&gt;

&lt;p&gt;A clearly labeled illustration may help. Suppose some physical quantity has a fixed but unknown value. You measure it on a random sample and, by a standard method, obtain the interval 12.1 to 13.4. These numbers are made up for the example; they are not a result from a real study. The frequentist claim is not "there is a 95% probability that the true value sits between 12.1 and 13.4." It is: "This interval was produced by a method that, in repeated samples, covers the true value about 95% of the time." You cannot see, from the interval alone, whether this particular attempt was one of the successful ones.&lt;/p&gt;

&lt;p&gt;The interval still tells you something useful, which is why it is worth reporting. It shows the precision of the estimate under the model: a narrow interval means that, if the assumptions hold, the estimate is tightly constrained; a wide interval means the data have not pinned the quantity down. It also shows which parameter values are more compatible with the data, in the limited sense used by the method. If a 95% interval for a difference excludes zero, that is closely related to a two-sided test at the 5% level rejecting "no difference," but the interval still carries extra information: it tells you about direction and about how large or small the compatible values can be. A result can be "statistically significant" and still have an interval wide enough to include effects too small to matter, or too large to be ignored. The label 95% itself is a convention, not a law of nature. A 90% interval is narrower and misses more often; a 99% interval is wider and misses less often, if the procedure is well calibrated.&lt;/p&gt;

&lt;p&gt;A confidence interval is also not a range of individual observations, and it is not a prediction interval for the next data point. It is not an automatic judgment of practical importance. Two intervals that overlap can still be consistent with a statistically detectable difference, depending on how they were constructed and what is being compared; overlap is a rough visual check, not a substitute for the actual contrast. And a Bayesian credible interval, which can be given a direct probability reading under a prior, is a different object. It can be a reasonable way to express uncertainty, but it is not what a classical "95% CI" is promising unless the paper has actually taken that route.&lt;/p&gt;

&lt;p&gt;A more careful way to read the sentence in the first paragraph is therefore more modest. The authors estimated a difference of 1.4 by a method that, under their model, would capture the true difference in about 95% of repetitions. The interval from 0.6 to 2.2 is the result of that method on this sample. It is a reason to treat values far outside that range as less compatible with the data, given the model. It is not a 95% bet that the truth lives between those two numbers. The work that remains is the usual work of reading a study: whether the model, the sample, and the measurement deserve the confidence the interval claims.&lt;/p&gt;

&lt;p&gt;More research explainers: &lt;a href="https://www.crushsci.com" rel="noopener noreferrer"&gt;https://www.crushsci.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>statistics</category>
      <category>science</category>
      <category>datascience</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What a preprint is — and what it isn't</title>
      <dc:creator>wanqiuxu</dc:creator>
      <pubDate>Wed, 11 Nov 2026 03:01:11 +0000</pubDate>
      <link>https://dev.to/wanqiu_7ad7bc3efc7b7/what-a-preprint-is-and-what-it-isnt-nmn</link>
      <guid>https://dev.to/wanqiu_7ad7bc3efc7b7/what-a-preprint-is-and-what-it-isnt-nmn</guid>
      <description>&lt;p&gt;A link appears in a group chat or a news story: researchers have posted a new study on arXiv, bioRxiv, or medRxiv. The PDF looks like a paper. It has a title, a methods section, figures, and a date. It may already be written up as if the finding were established. For a reader who is not inside the field, the most useful first question is not "Is this true?" It is "What kind of document is this?"&lt;/p&gt;

&lt;p&gt;The core idea is simple: &lt;strong&gt;a preprint is a manuscript that the authors have posted publicly before formal peer review. The posting makes the work citable and time-stamped. It does not, by itself, certify that the results have been checked and endorsed by independent reviewers.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That practice is older than the current platforms, but the modern, centralized version has a clear starting point. On 14 August 1991, the physicist Paul Ginsparg launched an automated repository for electronic preprints at Los Alamos National Laboratory, originally as an email archive for high-energy theory papers at &lt;a href="mailto:hep-th@xxx.lanl.gov"&gt;hep-th@xxx.lanl.gov&lt;/a&gt;. It later became arXiv and moved to Cornell University. Ginsparg has described this history in his own later writing, including a 2011 account. In 2013, Cold Spring Harbor Laboratory launched bioRxiv, a preprint server for the biological sciences, developed by John Inglis and Richard Sever. In 2019, medRxiv followed for the health sciences, as a collaboration involving Cold Spring Harbor Laboratory, Yale University, and BMJ. Other fields now have their own servers, but these three are the ones general readers are most likely to meet.&lt;/p&gt;

&lt;p&gt;What you are usually looking at, then, is a complete draft that the authors chose to make public. Many servers assign a persistent identifier, keep a timestamp, and allow the authors to post later versions. That is part of the point: colleagues can read the work quickly, build on it, or criticize it, without waiting for the slower cycle of formal review and journal publication. Some preprints are later published in a journal, sometimes after substantial revision. Some remain preprints. Some are withdrawn. The document in front of you is one version, at one date. If the server shows v3, you are not necessarily reading the same text that first appeared as v1.&lt;/p&gt;

&lt;p&gt;What the label does not do is equally important. A preprint has not automatically passed the kind of formal peer review that a journal organizes, in which editors invite outside readers to comment and an editorial decision is recorded. It has not been certified as reproducible. It has not been guaranteed free of errors in the analysis or the data. Readers may post comments, and specialists may notice problems quickly — that public scrutiny is one of the system's strengths — but informal comments are not the same as a structured review, and many preprints receive little public discussion at all. During periods of intense attention, such as the early COVID-19 pandemic, preprints made results available at high speed; they also made it easier for unverified claims to travel before any formal check had occurred. Speed and scrutiny do not rise automatically together.&lt;/p&gt;

&lt;p&gt;Servers also differ in what they screen. A typical preprint platform may check that a submission is a scholarly manuscript and, in some fields, that it is not obvious nonsense or a dangerous medical prescription; that is not the same as judging whether the analysis is correct. Policies vary by server and have changed over time, so it is safer to read the platform's own description than to assume a uniform standard. The important constant is the one already stated: public posting is not, on its own, formal peer review.&lt;/p&gt;

&lt;p&gt;For a careful reader, a few practical habits follow. Check the date and the version number, and look at whether the authors have posted a later revision or a withdrawal notice. Read the methods with the same attention you would give any other paper: a polished PDF is still only as strong as its design, sample, and analysis. If the work later appears in a journal, that later version may have changed, and it is the later text that should be quoted if you need the revised claims. None of this requires treating preprints as worthless. In several fields they are now a normal way to share work, and many important results first reached readers in that form. It only requires not confusing a public posting with a certificate.&lt;/p&gt;

&lt;p&gt;A sentence that stays close to the facts would sound like this: the authors have released a dated manuscript that has not necessarily been formally reviewed yet. That is already useful information. It tells you to read the argument, not the badge, and to leave room for correction if a later version, or a later review, changes what the first posting seemed to show. In that sense a preprint is a claim placed on the public record, not a verdict on the claim.&lt;/p&gt;

&lt;p&gt;More research explainers: &lt;a href="https://www.crushsci.com" rel="noopener noreferrer"&gt;https://www.crushsci.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>science</category>
      <category>research</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What "peer reviewed" actually guarantees, and what it doesn't</title>
      <dc:creator>wanqiuxu</dc:creator>
      <pubDate>Tue, 10 Nov 2026 15:36:12 +0000</pubDate>
      <link>https://dev.to/wanqiu_7ad7bc3efc7b7/what-peer-reviewed-actually-guarantees-and-what-it-doesnt-2i36</link>
      <guid>https://dev.to/wanqiu_7ad7bc3efc7b7/what-peer-reviewed-actually-guarantees-and-what-it-doesnt-2i36</guid>
      <description>&lt;p&gt;In news stories, grant applications, and everyday arguments, "peer reviewed" is often treated as a stamp: if a paper has passed that test, the finding can be treated as settled. The phrase does real work. It also promises more than the process can deliver. The useful habit is to ask what peer review actually is, before treating the label as a verdict on the world.&lt;/p&gt;

&lt;p&gt;The core idea is this: &lt;strong&gt;peer review is a limited reading of a submitted manuscript by a small number of other researchers. It can catch some problems and improve a paper. It does not certify that the results are true, complete, or reproducible.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the common journal workflow, an editor sends a manuscript to one or more outside reviewers in a related field. Those reviewers read what the authors have written — the argument, the methods as described, the tables and figures, the claims in the discussion. They may recommend publication, revision, or rejection, and they often ask for clarifications or further analysis. The editor then decides. None of this is trivial. A careful review can expose a muddled comparison, an overstated conclusion, a missing control, or a gap between the abstract and the results. There is also evidence that papers can become clearer between submission and publication, in part because authors have to answer criticisms. For a reader, "peer reviewed" usually means at least this: the work was not merely posted by its authors; someone with relevant training was asked to look at the manuscript and comment.&lt;/p&gt;

&lt;p&gt;That is already a meaningful filter. It is not, however, the same thing as a re-run of the experiment. Reviewers typically do not receive the raw data, do not visit the laboratory, and do not repeat the measurements. They work, as the former &lt;em&gt;BMJ&lt;/em&gt; editor Richard Smith has put it, largely on trust. They can ask whether the design as described makes sense. They cannot, in the ordinary process, confirm that every number in a table came from the patients or samples the authors claim. Fraud and serious data problems are sometimes noticed by a reviewer, but they are more often found later, when others try to reuse the data, repeat the analysis, or simply fail to reproduce the result. Treating "peer reviewed" as a fraud detector will systematically over-trust the literature.&lt;/p&gt;

&lt;p&gt;Even as a check on honest errors, peer review is uneven. In 2008, Sara Schroter and colleagues reported a study of 607 &lt;em&gt;BMJ&lt;/em&gt; reviewers who were sent three test manuscripts, each seeded with nine major and five minor methodological errors. On average, reviewers found about 2.6 to 3.1 of the nine major errors, depending on the paper. A short training package produced only small improvements. The authors' conclusion was blunt: editors should not assume that reviewers will detect most major errors. Other work has made a similar point. The process can help. It does not reliably empty a manuscript of important flaws.&lt;/p&gt;

&lt;p&gt;Reviewers also do not speak with one voice. In 2010, Lutz Bornmann, Rüdiger Mutz, and Hans-Dieter Daniel published a meta-analysis in &lt;em&gt;PLOS One&lt;/em&gt; of inter-rater reliability in journal peer review: 48 studies, more than 19,000 manuscripts. They found that agreement among reviewers was low, reporting a mean intra-class or Pearson coefficient of 0.34 and a mean Cohen's kappa of 0.17. Disagreement in science is not in itself a scandal; fields advance by arguing. But it does undercut the idea that a published paper has been certified by "the field." It has usually been read by a few people, who may reasonably differ, and then accepted by an editor who has to weigh those differences. A second set of reviewers might have asked different questions.&lt;/p&gt;

&lt;p&gt;So what should the label be used for? It is fair to treat peer-reviewed publication as a sign that a manuscript has passed a formal, if imperfect, scrutiny of its internal argument. It is a reason to take the paper seriously enough to read the methods, not a reason to skip them. It is not a guarantee that the sample was adequate, that the statistical choices were the best ones, that competing explanations were ruled out, or that another team will see the same effect. Those questions are answered, when they are answered at all, after publication: by replication, by re-analysis, by letters, by data sharing, and by the slow accumulation of related studies.&lt;/p&gt;

&lt;p&gt;None of this means that an unreviewed draft and a reviewed paper are interchangeable. Informal comments from colleagues, preprint discussions, and journal review all belong on a spectrum of scrutiny, and formal review is usually more structured than an unsolicited comment online. The mistake is not in valuing that scrutiny. The mistake is in collapsing it into a binary: reviewed, therefore established; not yet reviewed, therefore worthless. Plenty of important work has been improved by review. Plenty of reviewed work has later been corrected, limited, or overturned. Both can be true at once.&lt;/p&gt;

&lt;p&gt;A more precise way to talk about a paper is therefore also more modest. Instead of "It is peer reviewed, so it is true," it is better to say what the reviewers could actually have seen: a written account of a study, judged by a few colleagues to be clear enough, plausible enough, and relevant enough to enter the public record. The record remains open to correction. That is not a dismissal of peer review. It is a description of what the process is for — and of the work that still belongs to readers after the stamp has been applied.&lt;/p&gt;

&lt;p&gt;More research explainers: &lt;a href="https://www.crushsci.com" rel="noopener noreferrer"&gt;https://www.crushsci.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>science</category>
      <category>research</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>Reproducing a paper in Python: a random seed is only the first step</title>
      <dc:creator>wanqiuxu</dc:creator>
      <pubDate>Tue, 10 Nov 2026 14:35:41 +0000</pubDate>
      <link>https://dev.to/wanqiu_7ad7bc3efc7b7/reproducing-a-paper-in-python-a-random-seed-is-only-the-first-step-34mf</link>
      <guid>https://dev.to/wanqiu_7ad7bc3efc7b7/reproducing-a-paper-in-python-a-random-seed-is-only-the-first-step-34mf</guid>
      <description>&lt;p&gt;You follow a machine learning or experimental paper, run the code, and the loss curve or the reported metric doesn't match. You move the same script to another machine, and the numbers move again. The first guess is almost always: I forgot to set a random seed. So you add &lt;code&gt;torch.manual_seed(0)&lt;/code&gt;, and the problem is still there. A seed is necessary. It is usually the first link in the chain, not the whole chain.&lt;/p&gt;

&lt;p&gt;A more accurate reading is this: &lt;strong&gt;the mismatch often isn't "you forgot the seed." There is more than one source of randomness, and more than one runtime environment.&lt;/strong&gt; PyTorch's official documentation is blunt about it: completely reproducible results are not guaranteed across PyTorch releases, individual commits, or different platforms. Even with identical seeds, results may differ between CPU and GPU.&lt;/p&gt;

&lt;h2&gt;
  
  
  More than one generator
&lt;/h2&gt;

&lt;p&gt;Start by taking "random" apart. A training script can easily be using several independent generators at once. Python's built-in &lt;code&gt;random&lt;/code&gt;, NumPy's RNG, and PyTorch's CPU and CUDA generators do not share a single switch by default. If you pin only one of them, data augmentation, weight initialization, and shuffle order can still draw from somewhere else. Mix in scikit-learn or another library, and you usually pick up yet another random state. The Python interpreter also hash-randomizes some things, which can change preprocessing that depends on the order of a set or a dict. Variables such as &lt;code&gt;PYTHONHASHSEED&lt;/code&gt; generally need to be set before the process starts. Putting them in the middle of a script is often already too late.&lt;/p&gt;

&lt;p&gt;Data loading is another common hole. Once &lt;code&gt;DataLoader&lt;/code&gt; uses multiple workers, each worker has its own random state. Seeding the main process does not automatically seed &lt;code&gt;numpy&lt;/code&gt; or &lt;code&gt;random&lt;/code&gt; inside every child. The docs recommend a &lt;code&gt;worker_init_fn&lt;/code&gt; and a fixed &lt;code&gt;Generator&lt;/code&gt; for sampling. Skip that, and you get a familiar bug: it matches with a single process, then drifts as soon as you set &lt;code&gt;num_workers&lt;/code&gt;. Dropout, random crops, and shuffling will also pull two runs apart if they live on different random streams.&lt;/p&gt;

&lt;h2&gt;
  
  
  GPUs, versions, and what you should check first
&lt;/h2&gt;

&lt;p&gt;On the GPU, algorithm selection can change the result. CUDA convolutions often have several implementations. If &lt;code&gt;cudnn.benchmark&lt;/code&gt; is on, the runtime may try a few and keep whichever looks fastest at that moment. If the machine is under a different load, it may pick a different implementation, and the numbers can shift slightly. Turning benchmark off makes the choice more stable, but the chosen algorithm can still be nondeterministic. If you also set &lt;code&gt;torch.use_deterministic_algorithms(True)&lt;/code&gt;, the framework will prefer deterministic implementations when they exist. When they don't, some ops raise an error, and some need extra environment variables. The deterministic path is usually slower. You're trading speed for repeatability.&lt;/p&gt;

&lt;p&gt;Even with those switches on, versions and hardware can still move the last decimals. CUDA, cuDNN, the driver, minor library versions, and the order of floating-point adds all matter. Swap a GPU, or move from GPU to CPU, and you should not expect bit-for-bit agreement.&lt;/p&gt;

&lt;p&gt;So when you try to reproduce a paper, check these first: is the data split the same, is the preprocessing the same, are the pretrained weights the same file, and are the key dependency versions pinned in an environment file? Plenty of "reproduction failures" are really a different data slice, or a different pretrained checkpoint. A seed matters, but it cannot police an undocumented dataset or an unfrozen environment. Locking &lt;code&gt;requirements.txt&lt;/code&gt; or a conda environment, and recording the CUDA version, is often more effective than tweaking the seed again.&lt;/p&gt;

&lt;p&gt;Here is a minimal setup that gets you closer to a repeatable run. It reduces common sources of randomness. Per the official docs, it still does not promise a perfect match across versions or devices:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;torch&lt;/span&gt;

&lt;span class="c1"&gt;# PYTHONHASHSEED should be set before Python starts, for example:&lt;/span&gt;
&lt;span class="c1"&gt;# PYTHONHASHSEED=0 python train.py&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;seed_everything&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;torch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;manual_seed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;torch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cuda&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;manual_seed_all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;torch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;backends&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cudnn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;benchmark&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;
    &lt;span class="n"&gt;torch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;use_deterministic_algorithms&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;seed_worker&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_worker_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;torch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;initial_seed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;32&lt;/span&gt;
    &lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;seed_everything&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;loader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;torch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;utils&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataLoader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# a dataset you have already prepared&lt;/span&gt;
    &lt;span class="n"&gt;num_workers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;worker_init_fn&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;seed_worker&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;generator&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;torch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Generator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;manual_seed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before you start, a short checklist helps: the same data, the same split, the same weights, a locked dependency file, and whether the authors reported variation across multiple runs. If any of those is missing, a mismatch should not surprise you. Some papers average several random seeds in the table. If you run once and compare against that average, you are not comparing the same thing.&lt;/p&gt;

&lt;p&gt;The more useful bar is also not "every decimal in the paper's table." Recovering the same direction, a similar magnitude, and the main conclusion within a reasonable range usually matters more than chasing a floating-point ghost. If you release code yourself, write down the seed, dependency versions, data split, git commit, and hardware. Then the next person can tell whether a mismatch belongs to the environment — or to the method.&lt;/p&gt;

&lt;p&gt;More research explainers: &lt;a href="https://www.crushsci.com" rel="noopener noreferrer"&gt;https://www.crushsci.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>pytorch</category>
      <category>machinelearning</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Paper Q&amp;A tools aren't remembering the literature. They're doing RAG.</title>
      <dc:creator>wanqiuxu</dc:creator>
      <pubDate>Tue, 10 Nov 2026 14:23:25 +0000</pubDate>
      <link>https://dev.to/wanqiu_7ad7bc3efc7b7/paper-qa-tools-arent-remembering-the-literature-theyre-doing-rag-57f8</link>
      <guid>https://dev.to/wanqiu_7ad7bc3efc7b7/paper-qa-tools-arent-remembering-the-literature-theyre-doing-rag-57f8</guid>
      <description>&lt;p&gt;A lot of paper-reading and literature Q&amp;amp;A tools now feel like chatting with an assistant that has already read the field. You ask a question, it answers in complete sentences, and it sometimes even points to sources. It's easy to walk away thinking the model has the whole library in its head.&lt;/p&gt;

&lt;p&gt;Usually, that isn't what's happening. The important piece is a pattern called retrieval-augmented generation, or RAG, introduced by Lewis and colleagues in 2020. The core idea is simple: &lt;strong&gt;first find the passages that might matter, then let the model write an answer from those passages.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Think of it as an open-book exam, not a closed-book recitation. In the closed-book case, the model can only continue text from patterns it saw in training. Once the details get specific, or the paper is newer than the training cutoff, it starts inventing — including citations that look official and aren't. In the open-book case, the system pulls a few pages from the stacks, then lets the model write while looking at those pages. The model is still generating sentences. The raw material, though, comes from retrieval rather than from memory alone.&lt;/p&gt;

&lt;p&gt;Literature tools need this especially badly. The corpus is huge, new papers appear every day, and no training cutoff can keep up. Stuffing every full text into one context window isn't realistic either.&lt;/p&gt;

&lt;h2&gt;
  
  
  A typical pipeline
&lt;/h2&gt;

&lt;p&gt;A common literature RAG path looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User question
    ↓
Turn the question into a search request (keywords, vectors, or both)
    ↓
Retrieve a handful of passages from the paper collection
    ↓
Optionally rerank them and drop the obvious misses
    ↓
Send the passages and the question to the model
    ↓
Generate an answer with sources
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In practice, papers are first split into chunks. A full article is too long to embed as a single unit, and too long to drop into the prompt every time. Teams usually cut by paragraph or by a fixed length, with a little overlap so a sentence isn't chopped in half. Scientific papers also have a structure of their own: introduction, methods, results, and discussion live in different sections. If you slice only by character count, a methods setup and the numbers that belong with it can end up in different chunks. Retrieval then finds half the meaning and misses the rest.&lt;/p&gt;

&lt;p&gt;After chunking, an embedding model turns each passage into a vector and stores it in a vector database. You can also keep a keyword index, such as BM25. The two methods catch different things. Keyword search is good at proper names, gene symbols, and method acronyms. Vector search is better when the same idea is phrased differently. Someone may ask "how to stabilize fine-tuning," while the paper says "training with a smaller learning rate." The wording doesn't match; the meaning might. Many production systems blend both, then optionally rerank with a heavier model. "Semantically similar" is not the same thing as "this is the evidence you need."&lt;/p&gt;

&lt;p&gt;When a user asks a question, that question is also embedded, and the system fetches the nearest chunks. Those chunks are then packed into a prompt along the lines of: answer from the passages below, cite your sources, and don't invent anything that isn't there.&lt;/p&gt;

&lt;p&gt;The snippet below is the retrieve-then-generate path — not "ask the model to answer from memory":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Pseudocode: the retrieve-then-generate path in a literature Q&amp;amp;A tool&lt;/span&gt;
&lt;span class="n"&gt;q_vec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;embed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;q_vec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;# fetch the nearest passages first&lt;/span&gt;
&lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"\n\n"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{h.text}\n(Source: {h.paper_id})"&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;prompt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"Answer the question using only the passages below. "&lt;/span&gt;
    &lt;span class="s2"&gt;"If the passages do not contain enough evidence, say you don't know.\n\n"&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{context}\n\nQuestion: {question}"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;answer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;llm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;generate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What RAG does not guarantee
&lt;/h2&gt;

&lt;p&gt;Once you see this path, the limits are easier to spot. RAG reduces the chance that the model will fabricate from memory. It does not guarantee a correct answer. If the chunks are bad, retrieval may return only a fragment of the idea. If the system pulls a loosely related commentary passage and misses the actual experimental details, the model can still write a fluent answer on the wrong material. Even when the passages are right, the model can skip a sentence, mix two papers together, or misstate a number. Figures, equations, and supplementary files are often harder to index than body text. If the index is stale, the tool cannot "know" work that was published after the last update. And only a limited number of passages fit in the prompt; evidence that ranks just outside that window might as well not exist.&lt;/p&gt;

&lt;p&gt;So when you evaluate a tool like this, don't start with "has it read every paper?" Ask more engineering questions: did it retrieve the passages you would actually want to read? Can each claim in the answer be traced to a source? When you open that source, does it really say that? If you're building something similar, split the evaluation too. Whether retrieval found the right passages, and whether the final answer sounds polished, are two different questions. If you only score fluency, a failed retrieval can look like a successful generation.&lt;/p&gt;

&lt;p&gt;Ask those three questions and you're checking the system the way you'd check an open-book exam — not treating it as a literature engine that can't be wrong.&lt;/p&gt;

&lt;p&gt;More research explainers: &lt;a href="https://www.crushsci.com" rel="noopener noreferrer"&gt;https://www.crushsci.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>rag</category>
      <category>python</category>
    </item>
    <item>
      <title>How to Turn Per-Spectrum Fitting Into NumPy Batch Fitting — SoftwareX Accepted It in 17 Days</title>
      <dc:creator>wanqiuxu</dc:creator>
      <pubDate>Thu, 05 Nov 2026 03:48:42 +0000</pubDate>
      <link>https://dev.to/wanqiu_7ad7bc3efc7b7/how-to-turn-per-spectrum-fitting-into-numpy-batch-fitting-softwarex-accepted-it-in-17-days-18pl</link>
      <guid>https://dev.to/wanqiu_7ad7bc3efc7b7/how-to-turn-per-spectrum-fitting-into-numpy-batch-fitting-softwarex-accepted-it-in-17-days-18pl</guid>
      <description>&lt;p&gt;Lab code that fits spectra one by one in a Python loop gets slow once you have thousands of curves. SPECTROview, an open-source Python desktop app for spectroscopic processing and fitting, replaces that loop with a vectorized batch fitting (VBF) engine built on NumPy. On an Intel Core i5-8365U laptop with 16 GB of RAM, the authors report 16×–62× speedups versus lmfit one-by-one fitting, depending on dataset size and model complexity. The largest test used 16,384 spectra, with peak memory of 845 MB for under a second before returning to about 80 MB after convergence. The SoftwareX paper that describes the software was received 2026-06-17, accepted 2026-07-04, and published 2026-07-08 — a 17-day path from receipt to acceptance in CrushSCI’s SoftwareX records.&lt;/p&gt;

&lt;h2&gt;
  
  
  What SoftwareX is
&lt;/h2&gt;

&lt;p&gt;SoftwareX is published by Elsevier (ISSN 2352-7110) as an open-access (OA) journal. CrushSCI labels for the journal include: SCIE, OA, 2026 Rising Star Zone 3, 2025 CAS Zone 4, 2026 JCR Q3, with 479 articles published in 2025.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scope
&lt;/h2&gt;

&lt;p&gt;Per the journal’s Aims and Scope, SoftwareX is meant to give research software academic recognition: peer-reviewed software that can be cited, inspected, and reused, with credit for developers. It is multidisciplinary — mathematics and physics, environment, medicine and biology, humanities and social sciences — and also takes software in areas such as citizen science, cybersecurity, the digital economy, and energy. Domain-independent building blocks are welcome: math libraries, image-processing libraries, visualization tools, data-management tools, and similar.&lt;/p&gt;

&lt;p&gt;A submission has two parts: a short descriptive paper of at most 4,000 words, plus an open-source software release with supporting materials. The paper is framed as documentation for software readers and potential users. Article types include Original software publication and Software update.&lt;/p&gt;

&lt;p&gt;For developers, that means the code must be open, installable, and usable; the paper should explain what problem the software solves, how it is designed, and how others can use it — not a long algorithm-theory treatise.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 17-day paper
&lt;/h2&gt;

&lt;p&gt;In CrushSCI’s SoftwareX records, the shortest review cycle is 17 days:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Received: 2026-06-17&lt;/li&gt;
&lt;li&gt;Accepted: 2026-07-04&lt;/li&gt;
&lt;li&gt;Published: 2026-07-08&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those dates match the paper PDF: Received 17 June 2026, Received in revised form 28 June 2026, Accepted 4 July 2026, Available online 8 July 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the paper covers
&lt;/h2&gt;

&lt;p&gt;Title: &lt;em&gt;SPECTROview: An open-source application for interactive spectroscopic data processing, fitting, and visualization&lt;/em&gt;. Sole author: Van Hoan Le (CEA / LETI, Grenoble). Published in SoftwareX volume 35, article 102862.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problem.&lt;/strong&gt; Raman, photoluminescence, and similar experiments produce large numbers of spectra — a 2D scan or wafer map can hold tens of thousands. A common Python approach is lmfit curve fitting inside a per-spectrum loop. That becomes slow at scale, and Python’s GIL limits CPU-bound parallelism.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Software.&lt;/strong&gt; SPECTROview is Python with a PySide6 UI and three workspaces: Spectra (single spectrum), Maps (2D maps), Graphs (statistical plots). The pipeline covers import from multiple instrument formats, baseline correction, multi-peak fitting, and export of publication-ready figures. It is GPL-3.0 on GitHub and installable with &lt;code&gt;pip install spectroview&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method: vectorized batch fitting (VBF).&lt;/strong&gt; Instead of fitting spectra one by one, the engine stacks N spectra into an N×M matrix (M = points per spectrum), builds the Levenberg–Marquardt Jacobian as an N×M×K tensor (K = number of fit parameters), and solves all equations in one vectorized LAPACK call. Two further choices: closed-form analytic Jacobians for each peak shape (not numerical differences), and a convergence mask that drops already-converged spectra from later iterations.&lt;/p&gt;

&lt;p&gt;The paper also states why the authors did not reuse batch LM implementations from PyTorch or TensorFlow: those rely on autodiff aimed at neural-net training, not closed-form peak shapes such as Gaussians and Lorentzians, and they do not conveniently handle spectra that converge on different iteration steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Results.&lt;/strong&gt; On an Intel Core i5-8365U, 16 GB laptop, four representative datasets were run 10 times each. Versus lmfit one-by-one fitting, VBF speedups were between 16× and 62×, depending on data scale and model complexity. The largest dataset had 16,384 spectra; peak memory was 845 MB for under a second, then about 80 MB after convergence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits.&lt;/strong&gt; The authors note that VBF uses one fit model for every spectrum in a batch; with many overlapping peaks (for example more than 20–30), results grow more sensitive to initial parameters and constraints. For inhomogeneous data such as composites or layered structures, the user must define a single model that covers every peak that may appear. Speedups were measured on one laptop against lmfit one-by-one fitting only. Full vectorization trades memory for speed: memory grows linearly with N×M×K.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Takeaway for developers.&lt;/strong&gt; The contribution is not a new mathematical method; it is rewriting a common slow path (nonlinear fitting in a Python loop) as batched tensor work, then shipping it as an installable tool with a UI and documentation — the kind of research software SoftwareX’s scope describes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Source
&lt;/h2&gt;

&lt;p&gt;Receipt, acceptance, and publication dates above come from CrushSCI’s paper records for SoftwareX and were checked against the Received / Accepted / Available online dates on the paper PDF. SoftwareX on CrushSCI: &lt;a href="https://www.crushsci.com/journal/26" rel="noopener noreferrer"&gt;https://www.crushsci.com/journal/26&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>research</category>
      <category>datascience</category>
    </item>
    <item>
      <title>VM Placement Is a Moving Target: Reading the IDEAL SDN Paper</title>
      <dc:creator>wanqiuxu</dc:creator>
      <pubDate>Tue, 06 Oct 2026 04:31:24 +0000</pubDate>
      <link>https://dev.to/wanqiu_7ad7bc3efc7b7/vm-placement-is-a-moving-target-reading-the-ideal-sdn-paper-14jn</link>
      <guid>https://dev.to/wanqiu_7ad7bc3efc7b7/vm-placement-is-a-moving-target-reading-the-ideal-sdn-paper-14jn</guid>
      <description>&lt;p&gt;A VM scheduler changes the system it is trying to optimize. Place one workload, and the remaining CPU capacity, host utilization, and available network paths all change. The next placement decision now has a different input.&lt;/p&gt;

&lt;p&gt;That feedback loop is the central idea in &lt;strong&gt;IDEAL: Impact-Aware Virtual Data Center Embedding With Incremental Analysis for SDN-Controlled Networks&lt;/strong&gt;, by N. Preetham, Sourav Kanti Addya, T. G. Keerthan Kumar, and Saumya Hegde. The paper appears in &lt;a href="https://ieeeaccess.ieee.org/" rel="noopener noreferrer"&gt;IEEE Access&lt;/a&gt;; its &lt;a href="https://doi.org/10.1109/ACCESS.2026.3711709" rel="noopener noreferrer"&gt;DOI record&lt;/a&gt; identifies the published article. The authors' &lt;a href="https://www.researchgate.net/publication/408680095_IDEAL_Impact-Aware_Virtual_Data_Center_Embedding_With_Incremental_Analysis_for_SDN-Controlled_Networks" rel="noopener noreferrer"&gt;public manuscript&lt;/a&gt; provides the algorithm, experimental setup, and results discussed here.&lt;/p&gt;

&lt;h2&gt;
  
  
  The request includes a network
&lt;/h2&gt;

&lt;p&gt;Virtual Data Center Embedding, or VDCE, allocates both compute and communication resources.&lt;/p&gt;

&lt;p&gt;A request contains virtual machines plus virtual links between them. Each VM needs compute capacity. Each virtual link needs bandwidth along a physical route. A placement is successful when the infrastructure can satisfy both sets of demands.&lt;/p&gt;

&lt;p&gt;This coupling matters. Two hosts can have enough spare compute capacity while the path between them lacks the bandwidth required by the application. A compute-only placement decision can therefore leave an otherwise promising request impossible to complete.&lt;/p&gt;

&lt;p&gt;The paper represents compute demand using Computational Resource Blocks, or CRBs. In its model, one CRB corresponds to one CPU core and 512 MB of memory. Virtual links carry explicit bandwidth demands in Mbps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Evaluate the change caused by a placement
&lt;/h2&gt;

&lt;p&gt;IDEAL evaluates candidate hosts using two quantities:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Marginal energy increment:&lt;/strong&gt; the additional host-side energy associated with placing the next VM on a candidate host.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incremental load-balance distortion:&lt;/strong&gt; the change in the distribution of residual resources across active hosts after that tentative placement.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The second quantity helps explain why maximizing consolidation alone can produce poor allocations. Concentrating workloads can reduce host activation, while leaving an uneven distribution of spare capacity for later requests. Spreading workloads widely can improve balance while increasing the number of active hosts.&lt;/p&gt;

&lt;p&gt;Consider a hypothetical choice between an already active host and an idle host. The active host has enough capacity for the next VM, but little capacity would remain afterward. The idle host offers more room but adds activation overhead. The scheduler needs to compare the consequences of both choices against the current infrastructure state.&lt;/p&gt;

&lt;p&gt;IDEAL uses the Analytic Hierarchy Process, or AHP, to weight its criteria and VIKOR to rank the candidate hosts. These are decision-support tools. The repeated calculation of placement impact, followed by immediate state updates, gives the ranking its current meaning.&lt;/p&gt;

&lt;p&gt;After a placement, the scheduler evaluates the candidates again for the next VM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat admission as a transaction
&lt;/h2&gt;

&lt;p&gt;The embedding procedure has two stages: place the VMs, then map their virtual links onto physical paths.&lt;/p&gt;

&lt;p&gt;Its control flow can be read as a resource transaction:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identify feasible hosts for the next VM.&lt;/li&gt;
&lt;li&gt;Estimate each candidate's energy and balance impact using the current state.&lt;/li&gt;
&lt;li&gt;Rank the candidates, place the VM, and reserve its compute resources.&lt;/li&gt;
&lt;li&gt;Repeat the evaluation for the next VM using the updated state.&lt;/li&gt;
&lt;li&gt;Map the virtual links using bandwidth-feasible paths and reserve their bandwidth.&lt;/li&gt;
&lt;li&gt;Accept the complete request, or release its reservations if any VM or link fails to map.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For link mapping, physical links with insufficient residual bandwidth are excluded from the candidate graph. The implementation uses a Dijkstra-based K-shortest-path search with &lt;strong&gt;K = 5&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The rollback behavior is especially useful to examine as an engineer. A failed request should leave the infrastructure state as it was before the admission attempt. IDEAL keeps a request-level reservation log covering placed VMs and reserved physical links, then restores those resources on failure.&lt;/p&gt;

&lt;p&gt;That makes the bookkeeping part of the algorithm. A good ranking function still needs correct reservation and release behavior to produce reliable subsequent decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the experiment actually measures
&lt;/h2&gt;

&lt;p&gt;The authors evaluate IDEAL in a Mininet and Ryu SDN emulation environment using Python and OpenFlow. The physical network has &lt;strong&gt;54 hosts and 222 physical links&lt;/strong&gt;, arranged as three spine switches, six leaf switches per spine, and three hosts per leaf.&lt;/p&gt;

&lt;p&gt;Each virtual data center request contains 2-10 VMs. Five workload scenarios contain 200, 400, 600, 800, and 1,000 requests, with ten runs per scenario.&lt;/p&gt;

&lt;p&gt;The comparison uses five heuristic baselines: CEVNE, DROI, SCA-R, LitE, and First-Fit. The authors report an average &lt;strong&gt;48.70% reduction in active-host energy consumption&lt;/strong&gt; across those baseline comparisons.&lt;/p&gt;

&lt;p&gt;The accounting boundary matters here. The manuscript reports a much smaller reduction, around &lt;strong&gt;3-4%&lt;/strong&gt;, for total physical-network host energy, because that calculation includes the baseline power consumed by idle hosts. Consolidating workloads changes active-host energy more dramatically than it changes the modeled energy of the whole host fleet.&lt;/p&gt;

&lt;p&gt;For infrastructure work, both measurements are useful: one describes the placement policy's effect on the active set, and the other describes its effect on all modeled hosts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ablation shows the trade-off
&lt;/h2&gt;

&lt;p&gt;Table 6 of the manuscript compares energy-only selection, balance-only selection, and the full framework. The following values are reported means and standard deviations across the evaluated load scenarios:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;IDEAL-E: energy only&lt;/th&gt;
&lt;th&gt;IDEAL-B: balance only&lt;/th&gt;
&lt;th&gt;Full IDEAL&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Active-host energy, Wh&lt;/td&gt;
&lt;td&gt;3,180 ± 126&lt;/td&gt;
&lt;td&gt;4,875 ± 184&lt;/td&gt;
&lt;td&gt;2,605 ± 96&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total physical-network host energy, Wh&lt;/td&gt;
&lt;td&gt;9,038 ± 142&lt;/td&gt;
&lt;td&gt;9,526 ± 168&lt;/td&gt;
&lt;td&gt;8,790 ± 121&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosts used&lt;/td&gt;
&lt;td&gt;23.6 ± 1.4&lt;/td&gt;
&lt;td&gt;31.4 ± 1.8&lt;/td&gt;
&lt;td&gt;13.8 ± 0.9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Load-balancing efficiency&lt;/td&gt;
&lt;td&gt;0.41 ± 0.03&lt;/td&gt;
&lt;td&gt;0.68 ± 0.04&lt;/td&gt;
&lt;td&gt;0.73 ± 0.03&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Energy-only selection consumes less active-host energy than balance-only selection, but its load-balancing score is lower. The full framework combines the two criteria and achieves better values on both metrics in this experiment.&lt;/p&gt;

&lt;p&gt;The evaluation covers a 54-host topology with synthetic arrivals and heuristic baselines. Testing the approach on a larger or production-oriented workload means measuring the repeated ranking cost, routing cost, and resulting allocations under that workload.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to carry into a scheduler design
&lt;/h2&gt;

&lt;p&gt;Three engineering ideas are particularly useful beyond this paper:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Re-evaluate after reservation.&lt;/strong&gt; An accepted placement changes the inputs to the next decision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep compute and network feasibility connected.&lt;/strong&gt; Host capacity and path bandwidth belong to the same admission decision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make resource changes reversible.&lt;/strong&gt; A reservation log supports complete rollback when a multi-resource request fails.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These ideas also suggest practical checks: a host's rank should be allowed to change after a reservation; a bandwidth failure should release the request's compute allocations; and an energy comparison should state whether idle hosts are included.&lt;/p&gt;

&lt;p&gt;For the publication trail, the &lt;a href="https://www.crushsci.com/en/journal/8" rel="noopener noreferrer"&gt;IEEE Access paper records on CrushSCI&lt;/a&gt; include this title and its DOI and publisher links, alongside the recorded receipt and acceptance dates. I maintain CrushSCI; the technical discussion here is based on the authors' manuscript.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This research explainer was prepared with AI assistance. Numerical results are attributed to the authors' experiments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>networking</category>
      <category>computerscience</category>
      <category>algorithms</category>
    </item>
  </channel>
</rss>
