Invisible to humans, visible to machines: a preregistered audit of Unicode fidelity across four biomedical bibliographic APIs

summary

The gist

Biomedical text mining, scientometric analysis, and the building of training corpora for biomedical large language models (LLMs) all rest on one rarely tested assumption…

In short

The study audited four public biomedical APIs using PubMed Central data to test if returned abstracts faithfully reproduce published versions. Findings show character-level fidelity varies by API, with systematic losses in PubMed and OpenAlex due to character substitution and whitespace removal. This means stylistic signals are source-dependent, affecting machine processing like text hashing.

Key concepts

Character-level fidelity
This refers to whether the exact characters in a retrieved abstract (like specific punctuation or symbols) match the original published abstract. The study found this varies significantly across different APIs, meaning what looks correct to a human might be altered by machine processes.
Systematic losses
These are predictable errors that occur consistently within a specific API's pipeline. The research identified two such losses: character substitution in PubMed and special whitespace removal in OpenAlex. These are not random errors but result from the API's internal structure.
Source-dependent signal
This concept means that a stylistic feature, like the presence of an em-dash, is only reliable when considering the specific database or API used to retrieve it. The fidelity of this signal depends entirely on which source you query, not just the literature itself.
Programmatic operations
These are tasks performed by software that operate on text at a technical level, such as tokenization, regular expression matching, or text-hash deduplication. The study found that even seemingly minor character changes (like an en-dash) can break these automated operations.

Terminology used across episodes

This episode discusses

The paper

Invisible to humans, visible to machines: a preregistered audit of Unicode fidelity across four biomedical bibliographic APIs · Read on arXiv

Przemłszak Czuma

To develop a reusable, preregistered method for auditing the character-level fidelity of bibliographic application programming interfaces (APIs), and to apply it to four public APIs used to build biomedical text corpora. Preregistered audit (OSF osf.io/zjevr). From the 2024 PubMed Central (PMC) Open Access subset, a simple random sample of 4,000 English-language research articles was drawn. Abstracts returned by the PubMed E-utilities, Crossref, OpenAlex and Semantic Scholar were compared with the PMC Journal Article Tag Suite (JATS) XML abstract for 51 registered code points, 34 of them in four primary classes: typographic punctuation, mathematical/scientific symbols, Greek letters and special whitespace. A cell (API x class) was classified as systematic loss when the upper 95% Wilson bound of conditional preservation was below 5%, and as faithful when the lower bound exceeded 90%. The mechanism of each loss was examined in the aligned text and the raw API responses. Two of 16 cells met the loss criterion. PubMed preserved typographic punctuation in 0.6% of eligible abstracts (12/2,113; 95% CI 0.3-1.0%), replacing it with ASCII equivalents. OpenAlex preserved special whitespace in 0.0% (0/1,085; 95% CI 0.0-0.4%), which its inverted-index format cannot store. Mathematical symbols and Greek letters were preserved by all four APIs (95.2-99.7%). Crossref returned an abstract for 75.4% of papers (95% CI 74.1-76.7%) and for none published by Elsevier (0/360) or the American Chemical Society (0/105). The same published abstract reaches text-mining pipelines with different characters depending on the API that serves it. Studies that analyze characters, including character-level markers of writing assisted by large language models, should take text from a source shown to preserve those characters, or normalize all sources identically, and report the API and retrieval date.

Transcript

Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.

Tom: We're looking at the paper: "Invisible to humans, visible to machines".

Title and authors: Tom: So we're looking at this paper called "Invisible to humans, visible to machines: a preregistered audit of Unicode fidelity across four biomedical bibliographic APIs." It’s basically testing that assumption that the abstract text returned by these different databases actually matches what the publisher actually wrote.

Jane: That sounds like it could be really interesting for anyone trying to build training data for those big language models, especially in biology where accuracy matters. So, what exactly is this paper testing?

Tom: They’re auditing four APIs: PubMed E-utilities, Crossref, OpenAlex, and Semantic Scholar. They’re using the JATS XML files from PubMed Central as the ground truth to see if those abstracts match up across all four systems.

Lu: The core idea is that character-level fidelity between these APIs is totally dependent on which API you use, and it hasn't been documented before. This study found two specific, systematic losses that met their pre-registered criteria.

Meng: Two losses? Like what kind of things are they losing? Are we talking about major scientific terms getting mangled or just minor formatting stuff? I need to know if this is something that actually breaks a model when we try to feed it real abstracts.

Jane: It’s focused on specific characters: typographic punctuation, mathematical symbols, Greek letters, and special whitespace. The paper found that most of the symbols and Greek letters were preserved faithfully across all four APIs.

Tom: But they did find two losses that are deterministic and attributable to specific steps in the pipeline. One loss is happening in PubMed because it seems to replace typographic punctuation in almost every abstract it returns, even if those characters were there originally on the page of the journal article.

Lu: And another systematic loss is coming from OpenAlex, where they remove every special whitespace variant as a direct consequence of how that API stores abstracts structurally. The paper says these changes create different surface signatures depending on which API serves it, and these patterns are not documented by the providers.

Meng: So it’s not just a general mess; there are specific rules in place within the pipelines of PubMed and OpenAlex that cause this loss, right? What does that mean for us when we try to scrape data at scale?

Title and authors: Jane: Well, they ran a blinded audit to confirm these losses are deterministic, meaning they happen every time under those conditions. The paper notes that this makes the changes invisible to a human reader but very visible to machine text-reading pipelines.

Tom: Exactly, it means the signal we get isn't perfectly faithful. They found that these transformations are largely invisible to people but they matter for tools that rely on exact character matching, like tokenization systems or text hashing deduplication.

Lu: The paper points out that this leads to things like the em-dash and Unicode hyphen breaking regular expressions, which can break how some programs try to match ranges or compounds in text. This is where the invisible losses become consequential for programmatic operations.

Meng: That's a big concern for deployment. If our ingestion pipeline relies on finding a specific pattern, and that pattern gets altered by API normalization, we have to account for it explicitly when we build the system.

Jane: The paper does suggest that while these losses are deterministic, they aren't necessarily harmful in every context. They point out that the em-dash is lost in about one percent of eligible PubMed abstracts, which means measuring its frequency actually measures NCBI’s policy as much as the authors’ actual writing style.

Tom: It sounds like the paper is saying that character-level bibliometrics—measuring things at the letter level—is really source dependent. The signal you get depends on the API you query.

Lu: That’s the big conclusion: without checking every single API, a measured stylistic signal might just be a property of the metadata pipeline itself, not actually a property of the literature being studied.

Jane: So what are they suggesting we do next? The paper talks about how these systematic losses differ in where they come from and what would fix them.

Tom: For instance, the typographic substitution loss in PubMed seems to be a field-specific editorial policy that’s deterministic and, in principle, reversible. It’s not a random error; it's a rule.

Lu: And the whitespace removal in OpenAlex is treated as a structural property of its format itself, which means fixing it would require changing how that API stores the text fundamentally.

Meng: So if we wanted to fix this for our training corpus, would we be fighting against publisher policies or against the fundamental design of a database? That sounds like a tough trade-off.

Jane: It suggests that the Crossref gap, which they treat as something different—a result of publisher nondeposition—can be quantified separately from these character normalization losses. They are separating structural issues from simple character shifts.

Title and authors: Tom: And the byte-level divergence between APIs is certain, which affects things like deduplication because the exact sequence of bytes matters for some tools but not for others.

Lu: The paper also notes that a language model operating on code points rather than rendered glyphs is actually the appropriate tool for auditing these issues, because those are the characters that get lost in translation.

Meng: That shifts our focus from looking at the final output to looking at the raw data representation, which makes sense when you're building a robust system.

Jane: The authors are cautious about claiming that this normalization doesn't degrade foundation models or break plagiarism detection, but they do state their limitations clearly. They admit that the JATS XML files serve as a ceiling for what they can fully analyze in terms of manuscript structure.

Tom: So the final implication is that character-level bibliometrics is highly source dependent because you need API-level validation to know if you’re measuring the literature or just the pipeline delivering it.

Lu: They advocate for future work focusing on temporal stability and how we can translate this representational divergence—how one API's output differs from another's—into measurable differences that are actually useful.

Meng: It sounds like they’re pushing for a way to quantify these differences, not just to point out that they exist. That’s the engineering path forward.

Jane: That brings us to the end of this audit of "Invisible to humans, visible to machines: a preregistered audit of Unicode fidelity across four biomedical bibliographic APIs." It’s clear that while character-level signals are useful, we have to be very careful about where that signal actually comes from when building our systems.

Tom: Right. We need to treat API normalization as a major variable in any work involving text mining for biomedical AI.

Lu: Exactly. The paper shows us that the quality of the input data is tied directly to the source system, not just the content itself.

Meng: So for anyone building a pipeline right now, you need to know which API you’re hitting and what normalization they apply before you start building your fidelity checks.

Jane: That’s the main thing we should take away from this paper: character-level bibliometrics is source dependent, and that source dependency needs to be mapped out.

The paper's summary: Tom: So we’re looking at how this audit works: they took four major public APIs—PubMed E-utilities, Crossref, OpenAlex, and Semantic Scholar—and compared their abstract texts against a single source of truth: the JATS XML files from PubMed Central.

Jane: It’s about checking that basic assumption we talked about earlier—that when you ask these databases for an abstract, you get exactly what the publisher wrote.

Tom: Well, they found that this isn't consistent across all four systems; it’s totally API dependent and undocumented. They found two specific losses that matched their pre-registration criteria.

Lu: The key finding is that character-level fidelity varies by API, and these transformations are mostly invisible to a human reader but they are very visible to machine text processing tools.

Jane: So what did they actually find? They pinpointed two systematic issues. One loss is specific to PubMed because it seems to substitute certain typographic punctuation characters every time.

Tom: That means if you’re measuring something based on the letter-by-letter content, that loss is real and deterministic. It’s a policy thing from the publisher, not a random glitch.

Lu: And the second loss comes from OpenAlex where they remove all special whitespace as part of their structural formatting process. That loss is also deterministic and tied to how that specific API stores data.

Jane: So for someone just listening, what does this mean? It means you can’t trust a character-level signal equally across different databases without knowing which database you are using.

Tom: Exactly. The paper shows that the quality of the input data for training biomedical models isn't uniform because the source pipeline is introducing these specific, predictable changes.

Lu: This impacts how we build those training corpora for large language models, because if the signal you feed into a model is systematically altered by its source, that alters what it actually learns.

Jane: They also made a point about what stays the same—things like mathematical symbols and Greek letters are preserved faithfully across all four APIs. That’s good news for those elements.

Tom: But then they look at the real consequences of the losses. It turns out that these small character shifts, like an en-dash or a Unicode hyphen breaking regular expressions, actually mess with text hashing and deduplication tools.

Lu: So it's not just a cosmetic issue for humans; it’s a technical problem for any pipeline that uses those characters for matching or searching.

Jane: They suggest that you need to map out these API policies explicitly if you want your character-level bibliometrics to actually represent the literature accurately.

Tom: The final implication is that the signal you get from a database isn't just about what's in the paper, it’s about what the database pipeline does to it.

Lu: And they suggest future work should focus on how we can translate this technical divergence between APIs into measurable differences that matter for science.

The paper's improvements: Tom: We’re looking at how they suggest fixing these character fidelity issues: they identified exactly where the losses come from and what would need to change in each specific API pipeline.

Jane: So, if we can see the problem, what's the actual fix? Is it a simple patch or is it a total redesign of how these APIs handle text?

Tom: For PubMed, they say that this character substitution loss is a field-specific editorial policy that’s deterministic and reversible. It means you could potentially reintroduce the original characters if you knew which rule to undo.

Lu: That’s important because it separates the problem into something we can track. It's not just noise; it's a known rule from that specific publisher, which gives us a handle on how to fix it.

Jane: And for OpenAlex, they treat the special whitespace removal as a structural property of the format itself. That means you can’t easily turn that off; you have to change how that database is built from the ground up.

Tom: So for deployment, this tells us some fixes are policy adjustments and others are fundamental database changes. That’s a huge difference for an engineer trying to implement a solution at scale.

Meng: I’m interested in the structural stuff then because it tells me what breaks when we try to build our own data pipelines on top of these public APIs. If the format itself is causing the issue, we need to think about how we handle those formats from day one.

Lu: They also point out that they treated the Crossref gap as a separate issue altogether, calling it a structural phenomenon caused by publisher nondeposition. This allows researchers to quantify that gap differently than they quantify character normalization errors.

Jane: So, for someone just listening, this means we can stop looking at one big mess and start separating the problems into policy issues versus fundamental design choices.

Tom: Exactly. They also suggest that a language model operating on code points instead of rendered glyphs is the right tool for auditing these things because it lets you see exactly what's being lost in translation.

Lu: And they admit their method has a limit too; the JATS XML files are just a ceiling for what they can analyze regarding manuscript structure. So, we have to be careful that our audit doesn't overstate what the JATS format itself can reveal.

Jane: So, while this paper shows us the sources of the problem and how to approach fixes, it also sets a boundary on how deep their analysis can go into the source data itself.

Tom: The real implication is that character-level bibliometrics are source dependent; you need API validation before you can trust those numbers for anything serious.

Lu: And they suggest future work needs to focus on temporal stability—how these differences change over time—and how we translate this representational divergence into actual, measurable differences.

Conclusion: Tom: So we’ve covered the details of "Invisible to humans, visible to machines: a preregistered audit of Unicode fidelity across four biomedical bibliographic APIs." Basically, they showed that character fidelity isn't uniform across databases and it depends entirely on which one you pick.

Jane: It means if you're building training data for biomedical AI, you can’t just assume the text is identical everywhere; you have to know the source API.

Lu: They also showed how these specific losses are deterministic—meaning they happen every single time under certain conditions—and how those changes break things like text hashing.

Meng: From an engineering standpoint, that's a warning because if we rely on exact character matching for deduplication or indexing, we need to know which API is serving the data first.

Lalam: I’m confident in this finding; the paper is very sure that the signal you get from a database isn't just about what's in the paper, it’s about what the database pipeline does to it.

Tom: It turns out character-level bibliometrics is really source dependent, and that source dependency needs to be mapped out explicitly if you want those numbers to actually mean something.

Jane: It’s a practical step for anyone building an AI system in this field; you need that validation layer before you start training models on it.

Lu: They also pointed out that the Crossref gap is a separate structural problem, distinct from the character normalization issues we talked about earlier. That helps us quantify those different types of problems separately.

Meng: I like that separation because it lets us tackle the fundamental database structure issues differently than we would just try to fix some text characters in a model layer.

Lalam: The authors are clear: this isn't a total breakdown of foundation models, but it shows us exactly where the input data quality is compromised by the delivery system.

Tom: So, for anyone who wants to build reliable tools on top of this literature, treating API normalization as a major variable is the most important thing they’re telling us.

Jane: That’s a solid conclusion: don't trust the character signal blindly across different sources.

Lu: They do suggest future work should focus on temporal stability—how these differences change over time—and how we can translate this representational divergence into actual, measurable differences that matter for science.

More episodes

← Home