WDF*IDF for Baidu: Complete Is Not the Same as Better
How term analysis works for Chinese content, why word segmentation changes the results, and why matching the top 10 only gets your page to average.
Using every word a WDF*IDF tool recommends will make your page complete. It will also make it average, because every competitor who runs the same tool ends up with the same list. The skill is in the second step: finding what you can add that no other page on the topic has.
WDF*IDF is a method for finding out which words a page on a given topic is expected to contain. Western SEO teams have used it since around 2012. For Baidu it is harder and more interesting, because Chinese text has no spaces to tell software where one word ends and the next begins. We recently built an internal tool so our SEO specialists can apply the method to Baidu, and this article explains the thinking behind it.
- what WDF*IDF measures, explained without maths
- why it helps rankings even though it is not how search engines rank
- why Chinese changes the problem
- what our Baidu data says, and why its averages stop working at topic level
- why matching the top 10 is not enough, and what to do instead
The Idea in Plain English
WDF*IDF scores a word by asking two questions: how prominent is it on this page, and how rare is it across everything else?
Think of a recipe. Salt appears in almost every dish, so finding salt in a recipe tells you nothing about what it is. Saffron appears in very few, so finding saffron tells you a lot: probably paella or risotto. WDF*IDF is a way of giving saffron a high score and salt a score of nearly zero.
The two halves have names. WDF (within document frequency) measures how often a word appears on the page, relative to all the other words, with a logarithm applied so that one heavily repeated word cannot dominate (IONOS explains the German-SEO variant). IDF (inverse document frequency) measures rarity: the fewer documents contain a word, the higher its score. This idea goes back to Karen Spärck Jones, who described it in 1972 as term specificity (Wikipedia). Multiply the two and you get the weight.
Example: A Page About Electric Kettles
A made-up page in a collection of 10,000 pages.
- the
- 6% of words on the page · on 9,990 of 10,000 pages · rarity score (IDF) 0.0004 · weight (×1,000) 0.03
- kettle
- 1.5% of words on the page · on 500 of 10,000 pages · rarity score (IDF) 1.30 · weight (×1,000) 19.5
- descaling
- 0.4% of words on the page · on 20 of 10,000 pages · rarity score (IDF) 2.70 · weight (×1,000) 10.8
The numbers are illustrative, and the rarity score is the logarithm (base 10) of total pages divided by pages containing the word. "The" is on nearly every page, so it scores almost nothing. "Kettle" is the topic, so it scores highest. "Descaling" makes up less than half a percent of the words, yet it earns more than half of the weight of "kettle", because so few pages mention it. Real tools use a logarithmic WDF and far larger samples, but the logic is the same.
From Formula to SEO Tool
In SEO, WDF*IDF becomes a competitor comparison: the tool takes the pages that already rank for your keyword and shows which terms they use that your page does not.
The scientific version compares a page with a huge collection of documents. SEO tools shrink that collection to the top search results for one query, so the output is an approximation. It is still useful, and the report reads simply: "the ranking pages mention this term often, and yours never does."
The term WDF was used in information science in the early 1990s (again per IONOS). SEO practitioners have promoted the formula since around 2012 as a smarter replacement for keyword density, which only counts how often one keyword appears (Holistic SEO, Textbroker). Today's content-optimization platforms follow the same pattern: they scrape the top-ranking pages and grade your draft against them (Clearscope, Surfer vs Clearscope). Whatever the brand name, the input is the same: what is already ranking.
Why It Works Even Though It Is Not How Search Engines Rank
Google has downplayed TF-IDF as a ranking tool, and term-gap analysis still improves pages, because it measures something search engines do care about: topical completeness.
Google's John Mueller has called TF-IDF a fairly old metric and said Google uses many information-retrieval techniques, not just this one. He pointed out that outsiders cannot reproduce it, because it depends on statistics from the entire web, and advised focusing on the website and its users instead (Search Engine Journal). We know of no comparable public statement from Baidu either way.
Three things explain why the method helps anyway:
- It is a proxy for coverage. Modern ranking systems try to judge whether a page covers what a searcher expects. The pages that already rank are the ones the engine judged to do that well, so their vocabulary is a fingerprint of good coverage. You cannot see the marking scheme, but the top answers show what the markers reward.
- It corrects the author's blind spots. Experts skip basics that readers need. Beginners miss the specialist terms that signal depth. A gap report works as a checklist of subtopics you forgot.
- It replaced repetition with range. Keyword density rewarded saying one phrase again and again. Term weighting rewards covering the topic in natural, varied language.
The evidence for the size of the effect is modest. Comparison articles quote correlations between tool scores and rankings of about 26% for Surfer and 17.5% for Clearscope, and note that neither guarantees rankings (Genesys Growth). We have not verified how those figures were produced, but the pattern fits: term coverage helps, and it does not decide.
Baidu is not a word counter either. As we noted in our Baidu ranking factors study, Baidu's investment in its ERNIE language model suggests that it analyses content with far more than word frequencies.
The Baidu Twist: What Counts as a Word?
Before a Chinese page can be scored, software has to decide where the words are, and different decisions produce different scores.
In English, spaces do most of the work. German glues words together ("Kaffeemaschine" is one word for coffee machine), so tools need to split them. Chinese goes further: there are no spaces at all, and no obvious marks between characters showing where a word ends (PMC). Researchers name three core difficulties: vague word boundaries with no authoritative standard, ambiguous words, and unknown words. This is one reason why tools built for spaced languages cannot simply be pointed at Chinese pages.
One String, Two Meanings: 南京市长江大桥
A well-known textbook example: the same string of characters splits two ways, with very different meanings.
- 南京市 / 长江大桥
- Nanjing City / Yangtze River Bridge
- 南京 / 市长 / 江大桥
- Nanjing / mayor / Jiang Daqiao (a person's name)
Specialist vocabulary is even less forgiving. In research on quality-management texts, a segmenter built for everyday language split the product term 大直径钢制管法兰 into three parts: 大直径 (large diameter), 钢制 (steel) and 管法兰 (pipe flanges). The split fails to express what an engineer means, which is one product (PMC). In the same study's test on Chinese flange standards, the popular segmenter jieba got only 5 of 184 long technical terms (five characters or more) right (PMC). Segmenters like jieba are dictionary-based: they scan a dictionary for known words and use a statistical model to guess unknown ones (arXiv). So the dictionary decides which words exist.
For WDF*IDF this has three practical consequences:
- Terms are choices. A Chinese term report is only as good as the segmentation behind it.
- Industry vocabulary needs its own dictionary. Otherwise the exact phrases your buyers search for get cut into pieces and never appear in the report.
- Nobody outside Baidu knows how Baidu segments. A practical safeguard is to run the analysis with two different segmenters. Recommendations that survive both are robust. Recommendations that flip are weak, and should not be treated as instructions.
What Our Baidu Data Says, and Where Averages Break
In our Baidu SEO Ranking Factors Correlation Study, the pages that ranked were text-rich, image-heavy and light on repeated keywords, but the averages hide a lot. We analysed the results for 10,000 Chinese keywords, looking at the top 20 positions of each, with data collected in 2023 (summary on Search Engine Journal, full study).
Top-Ranking Pages on Baidu (2023 Data)
- Content length
- average 4,929 characters, median 3,147
- Share of text in Chinese characters
- about 85%
- Exact-match keyword in the body
- 49% of pages (57% mid-tail, 66% short-head keywords)
- Keyword density
- under 1% on average
- First appearance of the keyword
- usually within the first 18% of the content
- Pages with images
- over 94%, averaging 27.5 images
- Pages with bulleted lists
- 86.5%, averaging 10.8 lists per page
These are useful for sanity-checking a draft. They are poor instructions for a specific page, and the study itself shows why:
- The average is not the typical page. The mean length is roughly 57% higher than the median. A minority of very long pages pulls the average up, so more than half of the ranking pages are shorter than the average.
- The "normal" page depends on the type of query. The exact keyword appears in the title of 54.4% of top pages for short-head keywords, 41.7% for mid-tail and 18.6% for long-tail keywords. Across all keywords the figure is 36%, and its correlation with rank is weak (between −0.02 and −0.17). One overall figure fits none of those groups closely.
- The top 10 is not always made of competitors. In 2023, Baidu's own services such as Baike, Zhidao and Wenku took 34.91% of top-10 results and 60.13% of first positions. On a query where those platforms fill the page, a term analysis of "the top 10" describes Baidu's platforms, not the page you should write.
The lesson for term analysis: run it per query, on the results that actually rank for that query, and read the output as a description of that one search result page. Averages tell you the neighbourhood, and your topic decides the street.
The Averageness Trap
A page that uses every recommended term is complete, and it is also a close relative of the pages that already rank.
Every team running a tool draws from the same source, the current top results. Follow the report and you converge on the middle of the results page: similar headings, similar terms, similar depth. Tool vendors describe it this way themselves. One comparison explains that if the top results for a query average a certain length, heading count and set of semantic terms, the tool steers your content towards those metrics (Stackmatix).
One SEO agency frames the same idea geometrically: coverage tools pull a page towards the cluster of existing results, while differentiation moves it away from that cluster, and a winning page needs both (Searchbloom).
Completeness is the entry ticket, not the prize. To a searcher, and to an AI-generated answer, an eleventh page that repeats the first ten adds nothing. Being average takes away the reasons to choose you: nothing new to cite, nothing to click for, nothing to link to.
Completeness vs. Added Value
A term report can move a page from incomplete to complete. Only original material adds value.
- Incomplete, nothing new
- A thin page: misses what searchers expect and offers nothing else
- Complete, nothing new
- An average page: covers the topic, but is interchangeable with the ten already ranking
- Incomplete, something new
- An original page with gaps: worth reading, but misses subtopics searchers expect
- Complete, something new
- The page worth ranking, clicking and citing
The formula also cannot see quality. It counts words. It does not know whether a claim is true, whether the author has done the work, or whether the page loads. Practitioners point out that even a perfectly formula-driven text will not make up for weak content, bad backlinks or a page that is not mobile-friendly (Ben Moll).
The extreme case shows where following the numbers ends. A 2017 Chinese SEO article proposed taking an article on the benefits of ginseng, replacing the herb's name with Chinese yam, and raising the frequency of the new term, so that the text would count as unique for that keyword (Alibaba Cloud Developer Community). That is the formula used as a hack: statistically tidy, with nothing new to say. We mention it as a warning, not a method. Agency guides report that Baidu can detect plagiarism and content spinning (Elite Asia).
How to Use It: Complete First, Then Different
Treat the term report as the floor of the page, and spend the effort it saves on what only you can add.
Pass 1: Completeness
- Step 1
- Pick the query and check who actually ranks. Note whether Baidu's own platforms fill the results.
- Step 2
- Segment the text with a dictionary that knows your industry, and run the analysis with two segmenters.
- Step 3
- Read the gap report as a list of subtopics, not a quota. Cover the missing subtopics that matter to your reader. Skip terms that have nothing to do with what you offer.
Pass 2: Difference
Ask what would make someone choose your page over the ten already there. A few sources of difference:
- Original data
- Your own test results, survey or benchmark
- First-hand experience
- A real project, with the numbers and the mistakes
- China-specific detail
- What a foreign company actually has to do, from hosting to platform rules, told by people who have done it
- Something readers can use
- A checklist, template or calculator
- A well-evidenced disagreement
- Where the common advice fails, and the proof
Western SEO often calls this idea information gain, after a Google patent about scoring how much new information a page adds. We treat it as a framework, not a proven signal. One analysis reads the patent as a session-level mechanism that scores new information against what one user has already seen, not as a global ranking signal, and notes that it may not be a confirmed ranking signal in Google's documentation (Searchbloom). We know of nothing showing that Baidu uses it. The logic holds without the patent: a page that only repeats what is already there gives a reader no reason to stay.
Before Publishing, Ask
- Which query and which results did we analyse, and are Baidu's own platforms among them?
- Did the recommendations hold up with a second segmenter?
- Which missing subtopics did we cover, and which did we skip on purpose?
- What is on this page that none of the top 10 has?
- Could a reader, or an AI-generated answer, cite us for it?
- Is that unique element visible near the top, not buried?
What We Know, What We Infer, and What Nobody Outside Baidu Knows
Term analysis is a useful approximation, and it helps to be clear about how solid each piece of the argument is.
How Solid Is Each Claim?
- Google treats TF-IDF as one old technique among many and advises against optimising for it
- Stated — John Mueller, via Search Engine Journal
- Term-coverage scores correlate modestly with rankings
- Reported, not verified by us — vendor-quoted figures in comparison articles
- Baidu uses WDF*IDF as a ranking formula
- Unknown — we know of no public statement
- Baidu analyses content with language models such as ERNIE
- Inferred — our study write-up
- How Baidu splits Chinese text into words
- Unknown — not public
- Information gain is a Baidu ranking signal
- Not shown — no evidence we know of
- The averages in our study apply to your query
- Not necessarily — our own data shows large differences between query types
What we can say about adoption. Chinese-language SEO writing has discussed TF-IDF together with word segmentation for years (Alibaba Cloud Developer Community, 2017), and large Chinese tool platforms such as 5118 offer keyword and word-frequency features, including high-frequency word extraction and competitor analysis. What we could not find is a public tool that compares a page against the terms of the pages currently ranking on Baidu, the way Western content tools do for Google. That is the gap our internal tool fills for our team.
Where We Come In
Our SEO specialists now use an internal tool to run this analysis for Baidu, query by query. The tool gives us the floor of the page. The part that decides whether the page is worth ranking is still human: what we know, have measured or have seen that the other ten pages have not.
[Editor's note, delete before publishing: add two sentences on what the tool shows, a screenshot with anonymised data, and a link to the contact page.]
Related reading: our step-by-step guide to Baidu SEO, the Baidu ranking factors study, and our guide to Chinese GEO on how AI assistants choose which pages to cite. For hands-on help, see our Baidu SEO services.
Frequently Asked Questions
-
WDF*IDF is a term-weighting method that scores a word by how prominent it is on a page (within document frequency) and how rare it is across other documents (inverse document frequency). SEO tools use it to compare a page with the pages that already rank for a keyword.
-
Nobody outside Baidu knows. There is no public statement, and Baidu's investment in language models such as ERNIE suggests it analyses content with far more than word frequencies.
-
Chinese text has no spaces between words, so software must segment it first. Different segmenters split the same text differently, and general dictionaries often cut industry terms into pieces, which changes the results.
-
No. It makes a page complete, but also similar to the pages already ranking. To rank and be cited, a page also needs something the others lack, such as original data, first-hand experience or China-specific detail.
-
In Jademond Digital's study of 10,000 Chinese keywords (2023 data), top-ranking pages averaged 4,929 characters with a median of 3,147 — so more than half were shorter than the average.