Journals / Case study

How Dropbox finds the date hidden in a file name

In September 2023 three Dropbox engineers described the model behind one checkbox, "Replace with existing dates detected in filenames". Rules could not keep up with the ways people write dates, so they tagged each token of a name as year, month, day or nothing. Dropbox says it renamed 40% more files than the rules did, with no accuracy figures. The feature is still documented in 2026; we found nothing later on the model.

26 NOV 202617 min readNamed entity recognition · Document management · Small transformers · Data labelling Based on: Dropbox, 2023
Our diagram titled Find the date inside a file name, in three bands. Names in many shapes: the order differs, MM/DD/YYYY, DD/MM/YYYY or YYYY-MM-DD depending on who or what named the file; words and acronyms, Jan for January, FY2023 for a fiscal year; no separators, survey20230601, where the date is glued to a word. Tag every token, not the whole date: SentencePiece cuts the name into subword tokens with each digit its own token, DistilRoBERTa, a small transformer encoder, reads each token in the context of the whole name, and a classifier gives one tag per token, B or I of year, month or day, or O for outside, so hello 2022-04-01! becomes year 2022, month 04, day 01. Make it fast, then rename: more than one second per name was too slow, so Dropbox dropped the last two of six encoder layers and moved from float32 to float16, with pruning alone cutting latency by more than 30 percent, and the folder rule then reuses the found date in place of the upload date. A note says that, as reported by Dropbox with no accuracy figures, the model renamed 40 percent more files than the rule-based baseline in testing, and more than one million files were renamed in the first few weeks after the August 2022 launch.
Diagram: MORARI. Source: Dropbox

Every office drive has them: Laporan 17 Okt 2022.xlsx, notulen_03-04-2024.docx, survey20230601.pdf, FY2023 budget final v2.pptx. The date is right there in the name, written the way one person thought of it that day. Sorting, filing or renaming those files by date means reading that date back out, and people write dates in more ways than anyone would guess.

Dropbox, the San Francisco file storage and sharing company, described how it does this in Is this a date? Using ML to identify date formats in file names, a post on its engineering blog by Mingming Liu, Win Suen and Ermo Wei, dated September 26, 2023. The text is the same in a 2023 archive copy and on the live page in 2026; the only addition is a site-wide promotion box. The page carries no licence line, so every diagram here is our own. Every result is Dropbox's own; there is no outside evaluation, code or data.

The problem: a date in someone else's format

The model serves a feature called naming conventions. In the post's words: "With this feature, users can set rules around how files should be named, and files uploaded to a specific folder will automatically be renamed to match the preferred convention." A rule might put a date and a keyword at the front of every file dropped into a folder.

Usually that date is the upload date. But the feature offers more: "Naming conventions can also detect whether a file name already contains a date, and use that date when renaming the file." A scan uploaded today of a contract signed in 2021 should keep 2021. That is the job of the model.

The post lists what makes it hard. "Different individuals or systems may use various date formats, such as MM/DD/YYYY, DD/MM/YYYY, or YYYY-MM-DD." Names use words and acronyms: "File names sometimes contain abbreviation or acronym-based date representations, such as Jan for January or FY2023 for the fiscal year 2023." And some dates are glued to the words around them: "In some cases, dates in file names are not separated by any identifier characters or separators, such as survey20230601."

Dropbox started with rules and gave up on them: "At first, we tried a rule-based approach to date identification. However, we quickly learned that while these conventions may be familiar to the creator of the file, it was hard for a rule-based approach to automatically recognize them without prior knowledge." The post does not describe the rules or say how well they did, apart from the one comparison below.

One thing the post does not claim, so we will not either: it lists both MM/DD and DD/MM as formats people use, but never says how the model decides which one a name like 03-04-2024 means. There is no section on day-month order, locale or ambiguous dates.

The timeline matters for reading the results: "We began work on the model in early 2022, and released a new, ML-powered version of naming conventions for Dropbox users in August 2022." The post came out more than a year after launch.

The design: three choices that matter

1. Find the parts, not the date

A model could look for "a date" as one thing and hand back a span of text. Dropbox chose to find the year, the month and the day separately. The reason is what the rename does with them: "Flexibility and granularity were critical for our use case since most of naming convention’s downstream tasks are interested in the individual components of dates. For example, this lets us manipulate the month separately from date."

That turns the task into tagging. Each piece of the file name gets a label in the IOB scheme common in text processing: B for the beginning of a part, I for inside it, O for outside any date, each with a type, YEAR, MONTH or DAY. The post's example is the name hello 2022-04-01!. The word hello and the space are O; the four digits of 2022 are B-YEAR then three I-YEAR; the hyphens are O; 0 and 4 are B-MONTH and I-MONTH; 0 and 1 are B-DAY and I-DAY; the exclamation mark is O. Rebuilding the date is then just reading off the tagged runs.

Our diagram titled One tag per token, using the post's own example, hello 2022-04-01!, as the model is trained to label it. A row of thirteen tokens: hello, a space, the digits 2, 0, 2, 2, a hyphen, the digits 0 and 4, a hyphen, the digits 0 and 1, and an exclamation mark. The word, the space, the hyphens and the exclamation mark are tagged O. The four year digits are tagged B-YEAR then I-YEAR three times, the month digits B-MONTH and I-MONTH, the day digits B-DAY and I-DAY. An arrow leads to three boxes: year 2022, month 04, day 01. A note says B starts a part, I continues it and O is everything else; because each part is found on its own, the rename can keep, move or reformat the month separately from the day; and where the training data lacked a format, such as MM_DD_YYYY, Dropbox generated synthetic names in that format and added them.
The tagging scheme from the post. Each digit is its own token, so a date glued to a word can still be split out. Diagram: MORARI. Source: Dropbox

The classifier is described as "supervised learning for multi-class classification": one prediction per token, from a fixed set of tags.

2. A few thousand names, and synthetic ones for the gaps

The training data came from inside the company: "To train our model, we used file names sampled from Dropbox employees." People labelled them by hand in an open-source tool: "We used Doccano, an open source annotation tool, to conduct annotations on the sampled file names. Dropbox employees reviewed each data instance to determine the date elements, such as year, month, and day." The post says labelling took several rounds, because some names are subjective.

Hand labels alone could not cover every format, so the team built a generator: "Because it would be difficult to cover enough cases through human annotations alone, we built a tool to generate synthesized data." The post's example shows how the loop worked. Underscored dates were missing: "For instance, the date format MM_DD_YYYY was not captured in our training data, which meant the model was not able to predict any date components from file names containing this format." They labelled a few samples in that format, generated many more and mixed them with the human-labelled names "to reduce overfitting risks."

The total is small: "Overall, we have a few thousand training samples." That is only workable because the model starts from a pretrained one, as the next section shows. The post does not give the split between real and synthetic names, or the languages in the sample. Employee file names at an American company are likely mostly English; the post does not say.

3. A small pretrained transformer, cut down to fit

Two parts do the work.

The tokenizer cuts the name into pieces. Words alone would need a huge vocabulary; single characters lose meaning. Dropbox chose subwords: "We chose the SentencePiece tokenizer, which is a subword tokenizer and based on the BPE and Unigram algorithms." Its key property here is what it does with numbers: "By default, it treats digits as separate tokens, similar to characters or words." That is what lets the model split survey20230601 into a word and eight digits it can tag one by one.

The encoder reads the tokens in context. The post explains why it did not use a simple bag-of-words classifier, which "discards the word order and ignores the context." Instead: "In our classification task, the transformer-based model DistilRoberta is our backbone for predicting IOB tags." DistilRoBERTa is a public, smaller version of a well-known language model, already trained on a large amount of text, so a few thousand labelled names are enough to fine-tune it. Context is the point: in FY2023 Q1 or invoice 20230601 v2, the words around the digits help decide what the digits are.

Serving: under one second was the first problem

A rename happens while a user waits, and the first version was too slow: "With high real-time latency of more than one second, we knew the resulting user experience would be poor."

Two standard fixes followed. "Model pruning removed unnecessary parameters or layers from the model, while model quantization converted the model to a lower precision format (e.g., from float32 to float16)." Pruning did most of the work: "DistilRoberta has six layers of encoders and 88 million parameters, which yield a model size of about 300 MB. With model pruning, we were able to remove the last two encoding layers without compromising performance, resulting in a latency reduction of more than 30%."

That 30% is pruning alone. The post gives no final latency in milliseconds, no hardware and no total for both steps; it says only that latency came down "to an acceptable level." It also does not say where the model runs. The feature lives on the Dropbox website, so a server is the likely reading, but the post does not state it.

One small mismatch: the public model card for DistilRoBERTa says "6 layers, 768 dimension and 12 heads, totalizing 82M parameters". The post says 88 million. The tagging head or a different way of counting could explain it; nothing we found says which.

How they measured it

The whole result is two sentences. "In testing, our ML model saw a 40% increase in renamed files over our baseline rule-based model." And after launch: "Following the rollout of the ML model to users in August 2022, we also saw an increase in both the feature’s weekly active users and the number of renamed files. Notably, naming conventions were applied to more than one million files during the feature’s first few weeks of availability alone."

Read the metric carefully. "Renamed files" counts how often the feature found a date it could use. It is not accuracy. A model that finds dates more often but sometimes finds the wrong one would also rename more files. The one-million figure covers the whole feature, including renames that never used a detected date.

The post also reports a product finding from user research: some people did not want to set up rules by hand, so Dropbox "started to automatically suggest potential naming conventions based on the naming conventions of existing files already in a folder."

What the post does not show

  • No accuracy. No precision, recall or error rate for the tags, no test set size, no error analysis. The only number is a relative count of renamed files.
  • No baseline detail. The rules it beat are not described, so "40% more" has nothing to anchor it.
  • Nothing on day-month order. The post names the MM/DD versus DD/MM problem but never says how, or whether, the model settles it. Context inside one name rarely helps with 03-04-2024.
  • No languages. Month words appear only in English (Jan). Nothing says how it handles other languages' month names or abbreviations.
  • No serving facts. Final latency, hardware and where it runs are all missing.
  • No privacy method. Training on employees' file names is mentioned without saying how that data was handled. A sister post on Dropbox's file-moving model, from October 2023, does: "Because filenames are sensitive information, Dropbox engineers cannot manually review these records for developing hypotheses about organization."
  • No code or model. Nothing is released.

What has changed since

Nothing further on the model that we could find. We checked the blog's tag pages for naming conventions and date formats, which list only this post, its recent feed and the later posts below. No later post, talk, paper or code describes the date model. Absence is not proof; we can only say we found none.

The feature is still there, and documented in Indonesian. Dropbox's help page, marked "Updated Aug 14, 2026", says: "This feature is available to all Dropbox users on dropbox.com." It describes the checkbox as a way "to use any date detected in the filename in place of the file’s upload or capture date." The Indonesian version of the same page exists, which shows the feature is offered here. Neither page names the model or says how well it reads Indonesian names, and we cannot tell whether the 2022 model still runs behind the checkbox.

Dropbox moved to agents that read the contents. In November 2026 Dropbox described a new experience in which the assistant can, in its engineering post's words, "rename files based on their contents, or combine documents into a PDF, and it shows a plan you can review and edit before approving." The company's announcement says: "The new Dropbox experience has already rolled out to more than 70,000 teams." It adds that "The initial rollout focuses on eligible Standard and Advanced teams in the US, UK, and Australia, starting in English, with broader availability planned for 2027." So the newest renaming tools read what is inside a file and ask the user to approve a plan, and they are not yet offered in Indonesia. The 2023 post itself pointed this way: "in the future, we envision leveraging more sophisticated models, such as large language models, to identify more types of entities."

Open-source date parsers caught up on Indonesian. The Python library dateparser has supported Indonesian for years; its changelog shows "Improved date parsing for Indonesian (#1134)" in early 2023. Release 1.5.0, on 4 November 2026, added "Indonesian: add old-style month abbreviations, such as “Djan” or “Peb”" and a stricter setting for date order. But its default for an ambiguous date is month first. Its settings page says the order "defaults to MDY", and its documentation warns: "Ordering is not locale-based". An Indonesian 03-04-2024 comes out as 4 March unless you say otherwise. Two other well-known parsers, Meta's Duckling and Microsoft's Recognizers-Text, list no Indonesian support on their pages as of November 2026.

Large language models arrived, but nobody has measured them on this. Research on reading and normalising dates with language models is active, but we found no published test on dates inside file names. We make no claim that an LLM beats a small tagger here.

Why it matters for your business

Indonesian file names are harder than the post's examples, in three specific ways.

First, the order. Indonesian official writing puts the day first. The tata naskah dinas regulation of the ministry for state administration, Permen PANRB 21/2021, closes with "Ditetapkan di Jakarta pada tanggal 10 Mei 2021": day, month as a word, year. The same habit carries into numbers, so 03-04-2024 on an Indonesian drive usually means 3 April. Most tools assume 4 March. A wrong guess here is silent: the file gets a plausible date that is a month off.

Second, the month words. Indonesian abbreviations are not the English ones. The Library of Congress abbreviation table lists the Indonesian forms as Jan., Peb., Mrt., Apr., Mei, Juni, Juli, Ag., Sept., Okt., Nop. and Des. Several of those differ from the English forms, and offices also type their own variants such as Agt, Agu or Ags. A table built for English misses 17Okt2022 and 3 Agt 2023. Some forms, like Apr or Jun, look the same in both languages, so the month word alone does not tell you which convention the writer used.

Third, two languages in one drive. The same team names one file Laporan Maret 2024 and the next Report March 2024. A model trained only on English names, as Dropbox's probably was, has seen half of that.

Data law applies, because file names often carry people's names. UU 27/2022 (UU PDP) defines personal data as "data tentang orang perseorangan yang teridentifikasi atau dapat diidentifikasi secara tersendiri atau dikombinasi dengan informasi lainnya", and its list of general personal data includes a full name. A contract file named after the employee who signed it is personal data. The law exempts only personal and household use: "Undang-Undang ini tidak berlaku untuk pemrosesan Data Pribadi oleh orang perseorangan dalam kegiatan pribadi atau rumah tangga." A company drive is neither. Scanning every name is processing, and the controller must process "secara terbatas dan spesifik, sah secara hukum, dan transparan", keep to the purpose, and "melakukan perekaman terhadap seluruh kegiatan pemrosesan Data Pribadi." Our reading, not legal advice: state the purpose (organising documents by date), log the job, keep extraction inside your own systems where you can, and check the data-processing terms before sending file names to any outside model. Take counsel's view on whether an impact assessment is needed.

How we would build it today

Our diagram titled Patterns first, a model last, for reading dates from file names on an Indonesian company drive in two languages, in three bands. Keep the name, store the date: never rewrite the original, the found date is metadata next to the file, not a new name; keep the evidence, the matched text, the rule that fired and a confidence, so a wrong guess can be undone. Cheap rules settle the easy names: year-first forms such as 2023-03-01, 20230301 and 2023_03_01 are nearly unambiguous; two month tables, Indonesian and English, with the forms staff actually type, such as Peb, Mrt, Agt, Okt, Nop and Des; day first by default for a name like 03-04-2024, unless the same folder shows a number above 12 in the second slot. Abstain, measure, then train: leave the date unset when the order is still unclear, or the name holds a period like Q3 2023 or two dates; a labelled sample of a few hundred names, with accuracy per pattern and the abstain rate; a small tagger like Dropbox's, on your own names, only if rules fall short. A note says file names often hold a person's name, which makes them personal data under UU PDP, so scan them for one stated purpose, log the job, and check where the data goes before sending names to an outside model.
Dropbox's model is the last step, not the first. Most Indonesian file names can be settled by rules that know the local order and months. Diagram: MORARI. Source: Dropbox

Picture an Indonesian company with a shared drive or document system: a few hundred thousand files, named by staff in Indonesian and English over many years, and a request to sort, file or report on them by date.

  1. Keep the original name. Never rename on a guess. Store the found date as metadata beside the file, with the matched text, the rule or model that found it and a confidence. A wrong date can then be fixed without losing anything.
  2. Settle the year-first names with patterns. 2023-03-01, 20230301 and 2023_03_01 are nearly unambiguous and cheap to match. Do them first and count how many files they cover.
  3. Build the month table from your own files. Start with Indonesian and English full names and the standard short forms, then pull a sample of a few thousand names and add every variant that shows up: Peb, Agt, Agu, Okt, Nop, Des, Sept. Your staff's habits matter more than any reference table.
  4. Set the order on purpose. For two-number forms like 03-04-2024, assume day first, then let evidence override it: if other names in the same folder or by the same author have a number above 12 in the second slot, that folder writes month first. If you use dateparser, set the order explicitly; its default is month first.
  5. Allow "don't know". When the order is still unclear, or the name holds a period (Q3 2023, FY2024), a version number or two dates (an invoice date and a due date), leave the date empty or send it to review. Decide which date counts for each kind of document and write the rule down.
  6. Measure before you trust it. Label a few hundred names by hand, spread across the patterns you found. Report accuracy per pattern and how often it abstains. Dropbox published no accuracy, so its 40% tells you nothing about your files.
  7. Train a tagger only if the rules fall short. If a real share of names is still unsettled, fine-tune a small model the way Dropbox did, on your own labelled names, with synthetic names for the formats you are missing. Keep the rules in front of it.
  8. Use a large model for the leftovers, if at all. Send it only what the rules and the tagger cannot settle, check where the data goes first, and log the call.
  9. Treat names as personal data. One stated purpose, a log of each run, access limited to the people who need the results, and no file names in outside tools without checked terms.

A first version, the patterns, the two month tables, the day-first rule with folder evidence, the abstain path and a labelled test sample, is about two weeks for one developer. A trained tagger is a second phase, and many drives will never need it.