Character-Based Models for Adversarial Phone Extraction: Preventing Human Sex Trafficking
Paper · 2019 · Nathanael Chambers, Timothy Forman, Catherine Griswold et al.
Summary
A phone number in an online advertisement can be readable to a person and still escape an automatic extractor. A digit may be written as a word, a letter may stand in for a digit because the two look alike, and unrelated text may separate parts of the number. Chambers and colleagues study how to recover the intended digits when these changes occur together. Their examples come from escort advertisements, where phone numbers had been used to connect related postings. Recovering a number is a text extraction task. Whether an advertisement is evidence of trafficking is a separate question.
The authors train their extractors on artificially obscured numbers and evaluate them on a collection assembled from difficult advertisements and examples written by volunteers. They compare systems that predict the digits of the complete number directly with a conditional random field, which labels each character in the input. Those labels mark the start and continuation of a digit’s written form and identify characters that should be skipped. On the held-out test set, the character-labeling system recovered a complete number exactly in 48.2% of cases, compared with 43.5% for the strongest recurrent variant on that measure. The collection was designed around cases that defeated an existing rule-based extractor.
A second experiment asks what happens when a character has never appeared in training. The authors replace character identity with an image of the printed glyph and train a convolutional network to represent it. They vary the training images so that the network sees different renderings of the same character. On a challenge version of the test set, where 10% of the characters were replaced with unseen Unicode lookalikes, the visual character-labeling system with image augmentation recovered 33.3% of numbers exactly. The corresponding system using character identities reached 17.6%. On the test set before those substitutions, the visual input did not improve exact recovery. Its benefit showed up under the conditions for which it was designed.
Most experiments began with a short span already known to contain the number. In a separate pilot, the authors inserted artificially obscured numbers into real advertisements and asked the extractor to find and read them. Training with surrounding advertisement text improved its ability to locate the relevant span. The pilot leaves open how well the same approach would work across complete advertisements containing naturally obscured numbers.
Deep dive: Character-Based Models for Adversarial Phone Extraction: Preventing Human Sex Trafficking
How character images and sequence tagging help recover deliberately obscured phone numbers, and what the study found on ads and unseen Unicode. · about 33 minutes to read
The problem and its context
A contact detail can survive a change in spelling
An advertisement that invites contact has to give a reader enough information to reconstruct the number. It can do that without presenting the number as a familiar run of digits. People can switch between reading a character as a letter, a digit, or part of a word. They can also treat otherwise meaningful words as interruptions in a contact detail. An extractor has to make those judgments from the text. It has to decide which characters belong together, what each group represents, and which material can be discarded.
For an ordinary phone number, it is natural to look for a run of digits in a familiar format, with allowances for punctuation and spaces. Once a single digit occupies several characters, the correspondence between an input position and an output position changes. A short spelling can expand into a word. A letter that looks like a digit can belong to that word, or it can represent a digit by itself. In the authors’ examples, even a character printed as a digit can be part of the spelling of another digit. Its appearance alone does not settle what role it plays.
There is a similar problem with separators. Punctuation between groups of digits can frequently be ignored. The authors also describe cases with ordinary words between the groups and cases in which the material to be ignored itself resembles a number. The extractor has to distinguish the digits to keep from intervening digits that serve as decoration. That decision depends on the sequence as a whole. It cannot always be made from the character at a single position.
The paper describes several sources of noise that demand different kinds of evidence. A digit name can appear as a word with unusual capitalization. A sound-alike may need to be recognized by its pronunciation. An ASCII letter or a Unicode glyph can be interpreted through its shape. Some examples require the reader to perform an operation or follow an instruction before a digit can be recovered. These can all make a contact number harder to extract, but a visual recognizer addresses only the cases where appearance carries relevant evidence. It does not supply the pronunciation of a spelling or the result of an instruction.
Some of the hardest cases combine changes that would be easy to handle in isolation. An extractor could recognize a written digit name through a dictionary and separately recognize a letter that looks like a digit. If the substitution also changes how the digit name itself is written, the dictionary may no longer recognize it. Putting a longer separator next to that spelling makes it harder to tell where it begins and ends. The authors use such combinations to motivate learning from character sequences instead of treating every possible combination as a separate pattern.
Why earlier research relied on phone numbers
Earlier work in the domain used several different units of analysis. Some researchers classified whole advertisements. Others built knowledge graphs or worked on normalizing attributes such as locations. Phone numbers appeared both as inputs to those systems and as a way to establish connections among advertisements or entities. The authors also cite research that found phone numbers relatively stable as links to entities. That stability made a recovered number useful across documents whose wording or other details varied.
For those applications, extraction takes place upstream. A system can only compare contact numbers it has recovered. A number missed at that stage can remove a connection from the material available to a later system. A wrong digit can also make the extracted string unusable for an exact match. This explains why the paper gives special attention to recovering every digit correctly, even while it reports measures that give partial credit.
As Chambers and colleagues describe it, most earlier work treated correct extraction as an assumption. The extraction procedure was sometimes left unspecified, and the authors understood the available systems to rely on rules. Their main point of comparison is TJBatchExtractor, a substantial collection of regular expressions that already accommodates some variation, including digit names and letter substitutions. A regular expression describes patterns that a program can recognize in text. It is a sensible choice where the range of spellings and delimiters is sufficiently predictable. The question here is how much can be recovered from the subset where the rules return nothing.
The authors narrow the task accordingly. They study the conversion of an obscured stretch of text into the intended phone number. Most of their comparison starts after someone has already identified the stretch. This makes it possible to assess decoding when the extractor is given the relevant text. A pilot later asks how the extraction procedure behaves when it has to choose the stretch from a longer advertisement as well.
Character identity and written shape
An ordinary character-level system receives an identifier for each character. During training it can learn that particular character identities occur in particular contexts. If a new character was absent from training, the system lacks an individually learned representation for it. Giving all unfamiliar characters a common representation preserves the fact that something unknown occurred. It discards distinctions in what the unfamiliar characters look like.
A glyph image preserves some of those distinctions. Two characters can have different identities and still make similar marks on the page. A visual representation gives the extractor a way to use that resemblance before it assigns a label. The paper presents this as a particularly important distinction for deliberate visual substitutions, where the replacement is chosen precisely because a reader can see a relationship between the original and the altered form.
The authors draw on earlier work that used convolutional networks to process written characters in Asian-language classification. They describe that work as using visual form to capture information carried by the characters themselves. In their phone extraction task, the same kind of input serves a different purpose. Shape can reveal a relationship between an unfamiliar character and a familiar one even when their character identities do not provide that relationship. The paper also draws on data augmentation, the practice of making altered training inputs that retain the intended answer. Here it is used to help the network recognize a shape in spite of differences in its rendering.
The method, step by step
Preparing natural and artificial examples
The study uses manually interpreted examples to evaluate extraction and artificial examples to train it. Finding a sufficient number of difficult advertisements to annotate was a practical obstacle. The authors therefore start from known phone numbers when producing training text. They already know the digits an extractor should return after the text has been changed. This lets them train on many more examples than they had manually recovered from advertisements.
For the advertisement component, the starting collection was a 250k crawl of the escort sections of Backpage and Craigslist. The authors removed 180k one-line advertisements that contained a standard number and lacked a written description. They ran TJBatchExtractor on the remaining advertisements and kept those for which it produced no result. A failed extraction could mean that the advertisement had no number or that a number was present in a form the rules missed. Volunteers read the retained material, discarded advertisements without numbers, and marked short spans covering the obscured numbers they found. This yielded approximately 200 advertisements with obscured numbers and annotated spans.
The authors added about 200 examples obtained by inviting undergraduate volunteers to write numbers that TJBatchExtractor would miss. These examples reflect choices made by people asked to defeat a particular extractor. The advertisements, by comparison, show choices made in the original posting context. After combining the sources, the authors report 390 examples, with 140 for development and 250 for the final test. The development portion guided choices about the extractor and its settings. The held-out portion was reserved for reporting final performance.
To produce training data, the authors begin with random 10-digit strings under US numbering constraints, using a dictionary of area codes. They then apply randomly selected alterations in sequence. Some operations change the representation of a digit, such as replacing it with a digit name or a lookalike. Others change the case or the appearance of characters already introduced by an earlier operation. The generator can express adjacent digits as a single number word, and it can add punctuation or ordinary text between pieces of the number. Its replacement vocabulary includes English and Spanish as well as some sound-alike forms.
The order of operations matters to the data. Once a digit has been written as a word, the letters of that word can be changed by a subsequent operation. The resulting appearance can depart much further from a conventional spelling than any single alteration would. A training set with these interactions asks the extractor to recover the source number across several forms of uncertainty at once. The authors produced 100k artificial examples and used 90k for training and 10k to judge convergence, meaning whether additional training was still improving performance. The manually interpreted development examples served a different purpose. They guided choices about which configurations to take forward to the final evaluation.
Establishing a recurrent baseline
The baseline neural extractor reads a sequence of characters and produces 10 digit predictions. It uses a bidirectional long short-term memory network, or LSTM. This is a recurrent network whose hidden states carry information along a sequence. Reading in both directions gives it access to context on each side of an input position. Characters enter as embeddings, which are vectors attached to their identities. The vectors begin with randomly assigned values and are learned during training.
The baseline uses the final bidirectional representation as the input to a separate prediction layer for each digit position. Each layer produces scores for the possible digits. A softmax converts those scores into a distribution, giving the system a basis for choosing a digit. This output design always produces a number the intended length. It leaves the prediction layers to find the evidence for their respective positions in a shared vector representing the whole span.
The difficulty is clearest for digits in the middle. The beginning and end of the input provide reference points for starting and ending digits. In the middle, a spelled-out digit or a long interruption can shift the rest of the phone number to the right. The character offset of a given digit then varies across examples, even though its position in the output has stayed the same. The authors observed that the baseline learned the outer positions more readily than the inner ones. They tried a different kind of recurrent unit, the gated recurrent unit, and reported no significant change in performance.
For the recurrent comparisons, the input length was set to 70 characters. Shorter inputs were padded. Rare examples that exceeded 70 characters were cropped. The experiments describe a character embedding size of 100 and an internal LSTM dimensionality of 200, selected using development performance. The authors also report a preferred setting of 200 for the CRF under their reused dimensional notation. They used dropout of 0.2 for the LSTMs and 0.5 for the CRF. Dropout reduces reliance on particular internal activations by randomly suppressing some of them during training. The length cap is a separate setting from the dimensions of the representations the extractor learns.
Giving each output digit its own view of the input
The authors’ first change is positional attention. Rather than giving every digit predictor the same final representation, they form a context vector for each digit position from a weighted combination of the LSTM’s hidden states. The prediction layer for an early digit can give more weight to states near the beginning. The layer for a later digit can learn a different distribution of weights. Each gets its own view of a sequence that the recurrent network has already processed.
Wᵢ = ∑ⱼ₌₀ᴺ αᵢⱼ × Vⱼ
Here Wᵢ is the context vector used to predict the digit at output position i. The sum runs over input positions j, beginning at 0 and ending at N in the paper’s notation, where N denotes the LSTM sequence length. Vⱼ is the hidden-state vector at position j. αᵢⱼ is the learned weight that output position i assigns to that state. Multiplying by the weight scales the state’s contribution. The sum combines those contributions into the vector that the prediction layer for position i receives.
The weights are positional. The paper tests a separate attention vector for each output position and a single vector shared by all positions. It reports the individual version because it performed better. A shared vector asks every prediction layer to use the same relative emphasis on the sequence. Separate vectors can assign different emphasis for the early, middle, and late positions. The representation at each position still depends on the characters in the input, because the weighted vectors come from the LSTM. The weights themselves provide a learned preference over positions.
This helps distribute the evidence, but it does not give an explicit boundary for the material representing each digit. The relevant material can still move when the spelling of an earlier digit changes. Two adjacent output layers can consequently draw on overlapping input evidence. The authors observed cases in which this led to repeating a digit and skipping the next one. To address that failure, they forward the previous digit’s softmax distribution to the current digit predictor. The extra input allows a prediction to depend on what the preceding layer was inclined to read. It is a way of helping adjacent predictions use the text consistently, even though the identity of a digit generally supplies little reason to expect a particular next digit.
Labeling every character
The conditional random field, or CRF, changes what the extractor predicts. It assigns a label to each character in the input, then turns the resulting sequence of labels into digits. The authors put the CRF on top of the recurrent character encoder. The encoder supplies contextual information about individual positions, and the CRF considers how the labels at successive positions fit together. This follows earlier work on sequence tagging. The authors used a Keras implementation inspired by the bidirectional LSTM–CRF work of Huang and colleagues and also point to related work by Ma and Hovy. Bidirectional LSTM-CRF sequence tagging · End-to-end sequence labeling with a bidirectional LSTM, CNN and CRF
The labels encode both a role and, where applicable, a digit identity. B marks the start of the text representing a digit. I marks a character inside or at the end of that representation. The digit attached to either marker says which digit the text represents. O marks material outside the number’s digit expressions. An ordinary digit can receive a beginning label without a continuation. A digit spelled as a word can occupy a beginning label followed by several continuation labels. A separator can be skipped entirely when the labels are converted into the phone number.
This distinction matters even when the same digit appears repeatedly. Two neighboring beginning labels can represent two instances of the same digit. A beginning label followed by continuation labels for that digit represents a single instance written across several characters. The decoder can therefore preserve repetitions that are actually in the number without treating every character of a written digit name as a separate output. It also has a specific category for material that does not contribute a digit.
The CRF scores sequences of labels using the evidence for individual positions and transitions between labels. The Viterbi procedure finds a highest-scoring path through those choices. A character can thus receive a different label than it would if the system considered each position independently, because the sequence containing its locally preferred label may fit the rest of the input less well. The CRF is trained with a loss on the character labels. At evaluation time, its output is converted deterministically into a digit string and assessed against the same reference numbers as the recurrent alternatives.
The change also removes the fixed output length imposed by the direct predictors. There is a label for each input character, but the number of decoded digits depends on how many beginnings the extractor identifies. It can produce an extra digit or omit one. This makes some errors easier to localize conceptually, since a mistaken beginning or a missed span can correspond to an insertion or deletion in the decoded number. It also changes how positional digit accuracy responds to an error, which is why the authors compare the extractors using several metrics.
Representing a character through an image
To let the extractor use the appearance of an unfamiliar Unicode character, the authors replace the embedding lookup with a visual encoder. They use a resource developed by BBVA Next Security Lab containing images for 65k Unicode characters. An input character is represented by a 34x34 image. A convolutional neural network, or CNN, turns that image into a vector. A convolution applies learned filters across nearby image pixels. Using the same filter at many locations lets the network respond to a feature even when it occurs at different points in the image.
The paper illustrates the visual encoder with two 3x3 convolutional layers using 4 and 8 filters, respectively. Each convolutional layer is followed by a rectified linear activation and batch normalization. The activation determines which filter responses continue through the network, and normalization helps regulate the scale of intermediate values. Max pooling retains strong responses over local regions. The pooled output is flattened into a vector, and a dense layer with a softmax reduces it to the representation passed to the recurrent encoder. The authors experimented with up to 3 convolutional layers and up to 32 filters, as well as different sizes for the dense layer. The illustrated architecture gives the detail of the chosen arrangement without supplying a separate performance estimate for every such setting.
The flow below shows the visual variant that ends in character tagging. The recurrent digit predictors can also receive vectors from the same kind of visual encoder. The difference is at the output, where they predict digits by position rather than assigning a label to each input character.
Reading a phone number from character images
The steps in order.
With glyph images, an unfamiliar character can still generate a vector through the same learned filters used for familiar characters. An identity lookup would have to assign it an unknown representation or provide a learned entry it did not have. Image processing makes visual similarity available to the extractor. Whether it learns to use that similarity depends on how the images are presented during training.
Augmenting the glyph images
Using images on its own leaves an easy route to memorization. Each occurrence of a familiar character can produce the same bitmap. If the network learns to identify that particular image, it can succeed on training examples without learning how the appearance of the character varies. A visually similar glyph that differs in stroke position or proportions can then produce an unhelpful representation in spite of being easy for a person to interpret.
The authors vary the images during training while retaining the intended label. They shift the glyph vertically or horizontally, adjust its brightness, change its proportions, or rotate it by up to 20 degrees. With those changes, a training character can reach the network in multiple versions. Recognizing one fixed bitmap is less useful when its placement, shape, and intensity change from one presentation to another. Features that recur across the versions become more useful.
This is a different kind of augmentation from the generation of artificial phone snippets. The artificial snippets vary how the intended digits appear in a character sequence, including where words or separators intervene. Glyph augmentation changes how a character is drawn inside that sequence. That distinction helps explain why the study can train on familiar character identities while testing on lookalikes absent from training. The extractor can learn from visual variation without receiving those test characters as labeled examples.
Extending extraction from a span to an advertisement
A separate pilot uses the confidence of the position-by-position predictor to choose among text windows. Starting with a longer advertisement, the authors consider candidate spans and ask which yields the most confident number prediction. The confidence is calculated by taking the highest digit probability for each output position and multiplying those probabilities together.
P(phone | span) = ∏ᵢ₌₀⁹ maxⱼ P(dᵢ = j | span)
Here P is the probability assigned by the extractor. The vertical bar means that the probability is conditional on the input span. The expression phone denotes the best digit string for that span under the displayed scoring rule. The product sign multiplies the contributions from the output positions, indexed by i from 0 to 9. The variable dᵢ is the predicted digit at position i. The index j ranges over the possible digit values, and maxⱼ selects the largest probability among them. Each factor is therefore the confidence of the strongest digit prediction at the corresponding position.
best = maxₛₚₐₙ P(phone | span)
In this expression, best is the highest score across candidate windows. The subscript span on max indicates that the comparison varies the input window. P(phone | span) is the score defined above. The procedure retains the window associated with the maximum and returns the number predicted from that window. The formula gives the score of the winning window. Using it for extraction also requires keeping track of which window produced the score.
For the pilot, the authors insert an artificial number into an actual advertisement that did not contain a phone number. They therefore know the intended digits and where the inserted material lies. This changes the input the extractor sees. A precise training snippet may begin or end at the number, whereas a candidate window can contain unrelated advertising language around it. To give the extractor experience with that setting, the authors replace null padding on short training snippets with randomly selected text from advertisements. They keep the extraction architecture fixed and vary how the training inputs are padded.
Experiments and results
What the evaluation sets contain
The headline span experiments ask how well a system trained on artificial text can read deliberately difficult examples interpreted by people. The development set contains 140 numbers and the test set contains 250. The authors call the combined material real-world evaluation data. It includes both examples found in advertisements and examples written by volunteers. This matters when interpreting the test as evidence about naturally occurring obfuscation. The paper reports the final span results as averages of 4 training and testing runs of the same configuration.
TJBatchExtractor is the rule-based comparison. The simplest learned comparison is the bidirectional LSTM that predicts the complete number from its final representation. Other recurrent variants add positional attention, supply the previous digit prediction, combine those changes, or stack recurrent layers. The CRF comparison uses the recurrent encoder but predicts character labels. A separate comparison asks whether the visual encoder helps the recurrent predictors and the CRF, with and without image augmentation.
The Unicode challenge uses the held-out text as its starting point. The authors use a hand-built table of visually similar characters to replace 10% of the characters with randomly selected Unicode lookalikes that never appeared in the training data. The intended numbers stay the same, so the challenge keeps the original extraction problem and alters part of its visual presentation. This provides a controlled stress test. It also gives the authors a setting where a character identity lookup and an image encoder are presented with different kinds of evidence about the same unfamiliar glyph.
How number recovery is scored
Digit accuracy compares the predicted and reference digits at corresponding positions. The score divides the number of correct positions by 10. When a CRF output exceeds the normal length, the comparison uses only its first 10 digits. This measure is easy to interpret when a prediction of the expected length has a wrong digit at an otherwise correctly aligned position. It is much less informative when an extra digit shifts the subsequent positions or when a digit is missing.
The paper illustrates the problem with a prediction that inserts a single digit into an otherwise correct number. The result receives digit accuracy of 0.2 because many later positions are shifted. Removing the extra character would make the prediction match. The example shows why a positional mismatch across several places can arise from a single local decoding error rather than several independent failures to recognize digits.
The Levenshtein measure aligns the strings through the minimum number of insertions, deletions, and substitutions needed to make them agree. The paper normalizes this edit count to a score for which higher values are better.
score = 1.0 − edits / 10
Here score is the normalized Levenshtein similarity. The term edits counts the smallest number of single-digit editing operations needed to turn the prediction into the reference. The divisor 10 is the reference phone number length, and 1.0 is the score for a perfect match before any edit penalty. For the single-insertion example, the paper gives a similarity score of 0.9. Its tables display this normalized measure on a percentage scale under the column label Lev.
Perfect accuracy counts complete matches and divides them by the number of evaluated examples. A prediction with a single incorrect digit and a prediction with several errors both fail that test. It is therefore stricter than the other measures and directly answers whether the whole contact number was recovered. The normalized edit score answers a complementary question about how close the failures were. The paper reports positional digit accuracy alongside those measures for the nonvisual comparison.
Held-out spans before Unicode injection
TJBatchExtractor scores 0.0 on digit accuracy, normalized Levenshtein similarity, and perfect accuracy for both development and test in the nonvisual comparison. The collection procedure explains why this result is expected. Ads were selected after the rules failed to return a number, and volunteer examples were solicited for their ability to defeat the same system. This establishes that the neural extractors can recover material from a subset the rules miss. The comparison does not estimate their relative performance over all advertisements.
The baseline LSTM reached 74.4 in digit accuracy, 78.2 in normalized Levenshtein similarity, and 40.3 in perfect accuracy on the held-out test set, with the values reported on the paper’s percentage scale. Adding positional attention brought the corresponding scores to 76.6, 78.9, and 43.5. Passing the previous prediction forward without attention yielded 76.5, 79.5, and 39.8. Combining attention and conditioning yielded 77.2, 79.8, and 42.3. The rankings depend on the measure. The combined variant performed best among these recurrent variants on positional digit accuracy and edit similarity, while attention alone performed best on whole-number recovery.
Exact phone recovery on the held-out obscured-span test set
Character tagging recovers complete numbers more often than any of the direct digit predictors.
The numbers
| System or setting | perfect accuracy % |
|---|---|
| TJBatchExtractor | 0.0 |
| Recurrent baseline | 40.3 |
| Stacked recurrent layers | 40.6 |
| Positional attention | 43.5 |
| Conditioned prediction | 39.8 |
| Attention with conditioning | 42.3 |
| CRF with recurrent encoder (this paper) | 48.2 |
The CRF achieved 48.2 perfect accuracy and 83.4 normalized Levenshtein similarity on this test set. Its positional digit accuracy was 67.7. For comparison, the attention-only variant obtained 43.5 perfect accuracy, 78.9 normalized Levenshtein similarity, and 76.6 digit accuracy. The stronger exact and edit scores show that the CRF’s lower positional score cannot by itself be taken as evidence of worse recovery. Any analysis of the difference has to account for the variable-length output and the possibility of shifts. The reported scores do not give a count of how many such shifts each system produced.
On development, the CRF reached 58.1 in perfect accuracy and 84.0 in normalized Levenshtein similarity in the nonvisual comparison. The recurrent baseline reached 48.1 and 79.7 on those measures. The CRF’s advantage on these metrics appears in both splits, although its exact recovery is lower on the held-out split. The paper describes the test exact-match result as an 11% relative gain over the best recurrent configuration. That statement concerns whole-number recovery in this comparison.
When characters were absent from training
The visual comparison separates the effect of replacing character embeddings with image vectors from the effect of augmenting the images. On the Unicode challenge, the strongest nonvisual LSTM in that comparison obtained 22.1 in perfect accuracy and 72.9 in normalized Levenshtein similarity. The CNN–LSTM without augmentation scored 15.6 and 65.5. Adding augmentation brought it to 27.3 in perfect accuracy and 75.2 in normalized Levenshtein similarity. Within this set of experiments, using images without varying them during training performed worse on both measures than keeping the character lookup.
The CRF comparison shows a similar pattern. The best CRF without a CNN reached 17.6 in perfect accuracy and 74.9 in normalized Levenshtein similarity on the challenge. Adding a CNN without augmentation yielded 14.6 and 73.4. The augmented CNN–CRF reached 33.3 and 79.7. The paper reports the exact-match change from 17.6% to 33.3% as an 89% relative gain. That comparison is between a nonvisual CRF and the CRF with the augmented visual encoder. It includes both the switch to image input and the training treatment that makes image input effective in this experiment.
Exact phone recovery on the unseen-Unicode challenge set
Both visual extractors benefit from augmentation, and the augmented CRF recovers the most complete numbers.
The numbers
| System or setting | perfect accuracy % |
|---|---|
| Best nonvisual LSTM | 22.1 |
| CNN–LSTM | 15.6 |
| CNN–LSTM with augmentation | 27.3 |
| Best nonvisual CRF | 17.6 |
| CNN–CRF | 14.6 |
| CNN–CRF with augmentation (this paper) | 33.3 |
The unmodified test columns in the visual comparison tell a different story. In that comparison, perfect accuracy is 48.3 for the best nonvisual LSTM, 42.1 for the CNN–LSTM, and 39.8 for the augmented CNN–LSTM. For the CRF family it is 58.1 without the CNN, 54.2 with the CNN, and 56.1 with the augmented CNN. The nonvisual reference values in this comparison differ from the corresponding held-out values in the earlier table. The paper gives no reconciliation of those entries, so each comparison needs to be read using the reference values in its own table. Within the visual comparison, neither augmented visual variant beats its nonvisual counterpart on exact recovery before the Unicode substitutions.
The authors also varied the amount of injected Unicode and plotted phone accuracy against the level of substitution. They report that the visual systems outperform the alternatives in that comparison. The result supports the interpretation that visual representations help when unfamiliar glyphs are used to replace readable characters. The challenge table gives the detailed comparison at the specified 10% replacement level. It does not make the unmodified test and Unicode challenge interchangeable as estimates of practical performance.
Finding a number in a complete advertisement
The pilot separates locating the inserted number from decoding it. For location, a full hit means the chosen window contains the entire number. The broader metric awards credit even when a match is only partial. On average, a partial match included seven to eight of the ten digits. The authors trained with padding text from each ad source separately and evaluated the window choices on Backpage advertisements.
Full-number window identification on Backpage advertisements with inserted numbers
Training with real advertisement padding helps the extractor select a window that contains the entire number.
The numbers
| System or setting | full window accuracy % |
|---|---|
| Zero padding | 70.3% |
| Backpage advertisement padding | 98.0% |
| Craigslist advertisement padding (this paper) | 99.3% |
When partial matches also count, the reported window identification rates are 92.1% for zero padding, 99.6% for Backpage padding, and 99.7% for Craigslist padding. The high window scores concern localization of known insertions. A window can contain every necessary character and still lead to an incorrect digit string.
For the subsequent extraction step, the authors report 80% accuracy on complete numbers in the full-ad pilot. They compare that with 98% when both training and testing use artificial phone snippets without the surrounding ad text. The pilot combines real background text with artificial phone numbers. Its high localization scores and lower exact extraction score address different parts of the task, and neither replaces the held-out results on the original obscured spans.
What the ablations show
Where sequence information helps
The recurrent comparisons test several ways of giving the predictor access to the order of the input. Stacking recurrent layers changes the depth of the encoder while leaving the basic requirement to predict from a shared representation. It yielded little improvement. In the held-out results, its perfect accuracy was 40.6 next to 40.3 for the baseline, while its normalized Levenshtein similarity was 77.6 next to 78.2. Increasing depth did not produce a consistent improvement across the measures. The paper similarly reports no significant change when replacing the LSTM units with gated recurrent units, without giving a separate numerical breakdown for that comparison.
Positional attention addresses a more specific difficulty. It changes which recurrent states contribute to each digit’s prediction. The individual attention vectors outperformed the shared vector in the authors’ experiments, although they give no numerical scores for shared attention. A plausible reading is that the useful regions of a span differ too much across output positions for a shared weighting to serve them equally well. This does not mean that each output position has a stable location. The same paper documents how spelling and separator length cause positions to shift. Separate attention gives each predictor a different starting preference while the contextual states continue to reflect the actual input.
Conditioning changes the information available between output positions. The authors describe examples in which supplying the previous prediction reduced repetitions. The aggregate metrics show where the improvement does and does not carry through. On the test split, conditioning alone raises the normalized Levenshtein score from 78.2 for the baseline to 79.5, while perfect accuracy goes from 40.3 to 39.8. The combined attention and conditioning variant obtains 79.8 in edit similarity and 42.3 in perfect accuracy. Attention alone obtains 78.9 and 43.5. Conditioning therefore helps some aspects of reconstruction in these runs, while the strongest whole-number performance among these variants comes from attention alone. The examples of prevented repetition suggest a reason for particular successes. The study does not tabulate all errors by type.
The CRF changes the output problem as well as the way predictions interact. Its comparison with direct digit prediction simultaneously introduces per-character supervision, a way to mark separators, scoring over label sequences, and variable-length decoding. Higher exact match and edit similarity show that this package works better on the reported spans. The experiment cannot assign the gain to any one of those changes. For example, there is no reported comparison between the CRF and an independent character tagger using the same beginning, inside, and outside labels. That comparison would be needed to separate the value of local tagging from the value of jointly selecting its labels.
Why ordinary images and augmented images behave differently
The comparison with and without augmentation is the most direct test of the mechanism proposed for unseen Unicode. In each architecture family, the visual encoder without augmentation is weaker than the corresponding identity-based system on the challenge. Once the training images vary, the visual variant overtakes its nonvisual reference. The pattern occurs both for the direct recurrent output and for character tagging. It is therefore observable with either way of decoding the phone number.
This is consistent with the authors’ account of memorization. If a familiar character always has the same image, success on that image does little to establish that the encoder has learned features shared with a different Unicode lookalike. Image perturbations make it useful to retain features even when the glyph has moved, tilted, or changed proportions. The challenge then asks whether some of that tolerance transfers to unfamiliar characters. The result establishes that the augmentation package helped under the challenge conditions. It leaves open which image changes contributed most, since translation, brightness changes, changes in proportions, and rotation were not evaluated separately.
There are two comparisons worth keeping distinct. The 89% relative gain reported by the authors compares the augmented CNN–CRF with the best nonvisual CRF on whole-number challenge accuracy. To see what augmentation adds when both systems already use images, the relevant entries are 14.6 for the plain CNN–CRF and 33.3 for the augmented CNN–CRF, in the same challenge columns. Those entries show that the decision to use images and the decision to vary training images have different consequences. Images make visual evidence available. Their practical value depends on what the extractor learns from it.
The ordinary test comparison also constrains the explanation. If the image encoder were simply a more effective representation for every character in the corpus, its advantage should be visible before the challenge substitutions. The exact scores reported for those conditions favor the identity-based configurations within their respective families. Visual generalization helps when that generalization is needed. Other properties of the text, including how the intended digits are distributed among words and separators, still have to be handled by the sequence extractor.
What changes when the padding contains real text
The padding comparison holds the extractor architecture fixed and varies its training context. Zero padding gives the extractor a clear boundary between the snippet and the filler. An arbitrary window in a full ad may contain meaningful words on either side of the number. In that case, some of the evidence about which material is relevant has to come from the character sequence itself. Padding with real ad text gives the system practice reading a phone snippet under that condition.
The full-window scores improve when the training padding comes from either advertisement source. The result with Craigslist padding is especially informative about the setup, because evaluation took place on Backpage. Improvement in that direction shows that the benefit was not confined to exact agreement between the source of the padding and the source of the test background. The experiment covers that particular transfer, with the same artificial insertion procedure. It does not report a comparison across several unmodified advertisement collections.
The broader full-or-partial metric is already high with zero padding. The strict full-window metric changes more visibly across the conditions because it asks whether the entire number fits inside the selected span. A window that misses part of the number can get credit under the broader rule but cannot provide all the evidence needed for exact extraction from that span. The strict and broad results together show where the padding matters most in the pilot. They also show why span selection and final decoding need separate measurements.
Limitations
Limits the authors identify
The authors set aside obscuration that requires pronunciation or reasoning as a general capability. The artificial generator contains some sound-alike replacements, but the extractor has no dedicated phoneme component. Seeing particular spellings in training can support recognition of those forms. It does not establish that the system can sound out an unfamiliar spelling and infer the intended digit. For examples that ask a reader to perform arithmetic or follow instructions, the paper argues that sequence classification would need to be supplemented by a different approach.
The paper also treats full-document extraction as preliminary. Its main experiments assume a number is present in the supplied snippet. The pilot uses real surroundings and artificially inserted numbers so the authors can measure whether a selected window contains the insertion. They explicitly identify full-document testing with naturally occurring numbers as future work. The extraction gap between artificial snippets and inserted numbers within ads shows that surrounding text complicates recovery even in that controlled setting.
The supply of annotated examples shapes the method. The authors could assemble only a small amount of manually interpreted difficult material compared with the artificial training collection. They report that the data for training and evaluation were made available, and they describe releasing the generator code. In the discussion, they consider using a generative adversarial approach to produce examples but point out that the scarcity of suitable training material would complicate a straightforward application. The reported study uses the rule-driven generator and training procedure it evaluates. Generative Adversarial Nets
Limits visible in the design
The reported rates apply to a deliberately selected subset. Filtering on TJBatchExtractor failure makes the baseline useful as a way to define the difficult problem, but its zero scores in that subset are not evidence that the rules generally fail on advertisements. Conversely, the gains from the learned extractors are gains on the hard cases the procedure kept. The study does not compare systems over a representative mix of ordinary numbers, difficult numbers, and advertisements that contain no number. Such a mix would pose a different measurement problem because an extractor would have to avoid reporting a number when none was present.
The manually interpreted collection combines two sources whose selection pressures differ. Advertisers had their own reasons for presenting contact information in particular ways. Volunteers were explicitly asked to defeat a given extractor. The paper does not give separate performance breakdowns for those groups. The pooled scores establish recovery on the combined material, while leaving open how much of that result comes from performance on naturally occurring advertisements or from performance on intentionally designed volunteer examples.
Similarly, the Unicode challenge is controlled through a hand-built list of lookalikes and an imposed substitution rate. It establishes that a visual system trained with image variation can handle unfamiliar glyphs under those choices. It does not characterize the distribution of glyphs used in new advertisements, and the image resource covers 65k Unicode characters rather than the 138k Unicode possibilities discussed in the paper. For a glyph to contribute visual information, the extractor needs an image it can process. The reported results do not measure what happens across all unsupported characters or across different sources of glyph imagery.
The visual component also has to work with the context it receives. Similarity between a glyph and a familiar character supplies evidence about its appearance. It does not determine whether that character is part of a digit expression, part of a separator, or unrelated text. An ambiguous glyph can be close in appearance to more than one useful character, and the study does not report separate results for each kind of glyph. The exact challenge score shows the performance of the complete extraction pipeline, including the cases in which other parts of the pipeline can undo or compound a character recognition mistake.
The recurrent system is configured around 10-digit US phone numbers. The data generator uses US area codes and numbering constraints. The direct digit predictors and the pilot’s product score adopt the same length. The CRF can return a different number of digits, but that flexibility is an output property within an experiment whose reference numbers have the stated format. It does not establish support for other numbering plans or extensions. The 70-character cap similarly limits what can be read from one span. Cropping a longer span could remove a necessary part of the number, and the paper gives no separate result for cropped examples.
The probability product in the full-ad pilot ranks windows by how confidently the digit predictors can read a phone number from them. It does not supply a measured probability that any number is present in the advertisement. The pilot implants a number in every evaluated document, so there is always a relevant window to choose. On a document with no number, a maximum window score would still exist. The paper does not evaluate rejection of such documents or report a separate test of selecting among several numbers in the same advertisement.
The numerical comparisons are averages across reported runs, without accompanying dispersion estimates. Small score differences among the recurrent variants can therefore be described as observed differences, but the size of their run-to-run variability is unknown. The unreconciled nonvisual scores in the two test tables also prevent treating them as a single set of baselines. The largest comparisons are interpretable within each table, where the conditions and metric are stated. Precision about which comparison is being made matters especially for the relative improvement attributed to the visual approach.
Finally, the paper evaluates the recovery of text and a pilot for locating it. It does not measure whether adding recovered numbers improves linkage decisions, identifies trafficking cases, or changes investigative outcomes. The earlier work explains why a phone number is a valuable attribute to recover. Establishing a downstream outcome would require measuring that outcome after extraction, with evidence about the reliability of the connections formed from the recovered text.
What came after
The paper’s discussion ends with research directions for improving training and moving beyond preselected snippets. It identifies complete advertisements with naturally obscured numbers as the next setting for document-level evaluation. The pilot had established that ad text used as padding could help locate a known insertion. An evaluation on naturally occurring numbers would ask whether that gain survives when the position, wording, and surrounding context come from the advertisement itself.
The authors also raise adversarial generation as a possible way to make training examples and identify scarce starting data as an obstacle. That suggestion concerns how another extractor might acquire its training material. It is separate from the result with image augmentation, which the authors actually measured. The paper records these directions as open questions. There are no documented later studies to establish how subsequent work pursued them.
Cite
Cite as Nathanael Chambers, Timothy Forman, Catherine Griswold, Kevin Lu, Yogaish Khastgir and Stephen Steckler. 2019. Character-Based Models for Adversarial Phone Extraction: Preventing Human Sex Trafficking. Proceedings of the 5th Workshop on Noisy User-generated Text (W-NUT 2019).
@inproceedings{chambers2019character,
title = {{Character-Based Models for Adversarial Phone Extraction: Preventing Human Sex Trafficking}},
author = {Nathanael Chambers, Timothy Forman, Catherine Griswold, Kevin Lu, Yogaish Khastgir and Stephen Steckler},
booktitle = {Proceedings of the 5th Workshop on Noisy User-generated Text (W-NUT 2019)},
year = {2019},
doi = {10.18653/v1/d19-5507},
url = {https://doi.org/10.18653/v1/d19-5507}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chambers-2019-character-based-models-adversarial-phone/