Home Tech & ScienceArtificial Intelligence (AI)How Federated Analytics Can Find New Words Without Collecting Everyone’s Messages

How Federated Analytics Can Find New Words Without Collecting Everyone’s Messages

by Delarno
0 comments
Discovering new words with confidential federated analytics

Imagine that your phone’s keyboard keeps correcting the name of a dance move you learned last week. Thousands of people have started using the same word, but the keyboard’s dictionary has yet to catch up. A development team has a reason to find the new term. The team has much less reason to receive the messages in which people used it.

Federated analytics starts from that difference. Individual devices do some of the work where the data already reside, and the system combines limited contributions to answer a question about a group. The result might be a list of emerging terms for a language team to review. How much privacy the system offers depends on what the devices contribute, who can see those contributions, and what the combined result allows someone to learn. Follow a hypothetical keyboard project through those decisions and you can see why the details matter far more than the label on the technology.

Decide which words the product needs to find

Start with a threshold for a useful editorial decision. A keyboard team may want to identify unfamiliar terms that many people in a language community are already using. It may need enough evidence to decide which candidates a native speaker should review. That is a narrower goal than producing a reliable list of everything typed in a region, and it allows a more limited collection design.

Frequency can have several meanings. Suppose one person repeats a made-up word 400 times in a set of test messages. Another term appears once each on 200 devices. The first term has the higher raw count, and the second has broader support across devices. If the team cares about broad use, it might count a distinct device’s support for a candidate during a given period. If the team cares about people, it must also consider whether a person can contribute from more than one device. The metric should describe what the system actually measures.

banner

Counting a known list is an easier problem

If a language team has a list of 50 spellings to evaluate, it can define a position in a count vector for each spelling. Every participant works with the same list, so positions have the same meaning when combined. A device may register whether it observed each term, subject to the project’s participation and eligibility rules. The analysis can then ask which items on the list have broad support.

Discovery starts before that list exists. Enumerating every possible combination of letters would make the list impractical. Giving a server every distinct locally observed word would undo much of the reason to keep activity local. Research on federated heavy hitters addresses this gap. A heavy hitter is an item with enough frequency or support to stand out in a data stream or population. Zhu and colleagues describe one method for discovering such items across distributed user data in their paper on federated heavy hitters and differential privacy.

Imagine a toy example limited to short made-up terms. A hypothetical service learns that many participating devices support a candidate beginning with “ve.” That result can justify investigating longer continuations of that prefix. A prefix with little support can be dropped before the next round. If the measurement supports a complete term, the system may pass it to the review stage.

Real implementations have to specify how candidates enter the search, what evidence justifies extending them, how a word ends, and which details are visible at each stage. Choices such as sampling and thresholding can be part of a privacy analysis for a particular protocol. The toy example describes why narrowing the search can work. It gives no guarantee about the privacy of any implementation, including one that publishes interim prefixes.

Keep raw text out of the analytics collection

A useful first diagram for the project would show three places where data exist. First comes the device, where the software evaluates eligible events. Next comes the service that accepts or combines contributions. Last comes the approved output that product staff can inspect. Ask what information exists in each place and for how long.

In the keyboard example, a narrow design could focus on selected unfamiliar tokens rather than full phrases, with exclusions for sensitive input contexts and rules about who participates. Locally derived data remain sensitive if they can reveal a person’s activity. A single unusual token may be somebody’s address fragment, a private nickname, or an account identifier. Limiting a contribution to one word reduces the amount of information sent, but the system still needs a reason to ask for that word and a way to protect it.

Design the client to collect less from the outset

Decide how the team will handle numbers, punctuation, scripts, and spelling. A filter that rejects digits may avoid some identifiers and also exclude legitimate words or phrases where digits matter. A minimum token length can reduce some noise while dropping useful short terms. Define these choices according to the product’s purpose and check them with people who understand the language.

Keep participation rules as concrete as the word rules. Does the product share analytics only when a user has enabled a particular setting? What happens when the setting changes? Can the analysis run without knowing a person’s name? Review which logs are written when a request fails, since debugging machinery can accidentally retain information that the main design intended to avoid collecting. A data-flow review should include both the successful path and the failures.

Use secure aggregation to limit who sees individual reports

Secure aggregation allows multiple parties to contribute values while a designated recipient obtains a combined result under the protocol’s assumptions. In a simplified example, several devices each hold a number for whether they observed a candidate in a known list. The service needs the group total. A protocol can enable that calculation without giving the service a readable list of which device reported each individual value. The work by Bonawitz and colleagues on practical secure aggregation explains the approach for user-held data, including why communication costs and device dropouts matter.

The combined result still conveys information. If the service runs the calculation on a group whose size or membership makes the answer revealing, a protected channel for individual contributions solves only one problem. The team also has to consider group size, result access, and the relationship between one analysis and the next. Those design choices affect whether a group result reveals something about individual behavior.

Examine what happens when devices fail to finish

A phone can lose its connection, run out of power, or leave conditions where the app is allowed to perform background work. A design that assumes every invited device will participate until the final step can be difficult to operate. A privacy review should ask what the service sees when the round ends early and under what conditions the system releases nothing.

Operational dashboards can show how often a round completes without displaying individual reports. A team needs enough information to improve reliability while preserving the boundaries it has set. Ask whether support logs or performance diagnostics create a separate collection path. It is common for reviews to focus on the main result while a second set of records receives much less scrutiny.

Use differential privacy to evaluate what the output can reveal

Differential privacy is a mathematical framework for limiting what a released result reveals about the inclusion of a person’s data, or another defined unit, in the analysis. A meaningful claim describes what can differ between the compared datasets. If the unit is one typed event, that is a different guarantee from protecting a person’s eligible contributions across a set of releases. The NIST guidelines for evaluating differential privacy explain why the unit, parameters, implementation, and assumptions all matter.

Consider a keyboard where one person can type on a tablet and a phone. A per-device contribution rule helps control how much each device adds. A guarantee stated per device may still leave a reader with a question about how it applies to the same person across both devices. The team can make a precise statement about the unit it chose and assess whether that protection matches the promise it wants to make.

Plan for the full schedule of releases

If a weekly list is useful, a daily list may seem more useful. More reporting creates more output to account for. People may also request independent reports for languages, regions, app versions, or combinations of those attributes. Each new release changes which questions can be answered from the set of outputs. The design needs rules for what can be produced and how repeated releases affect the overall guarantee.

A useful internal policy specifies the planned reports, who can request changes, which analyses share data, and what happens if a request falls outside the approved plan. Put the actual controls into the system where possible. A written instruction to avoid certain comparisons is weaker than an analytics interface that can produce only reviewed outputs.

Test usefulness as well as the privacy claim

Strong privacy protections and limited collection can make rare trends hard to detect. A broadly used spelling may appear reliably. A useful term in a smaller language community might take longer to meet the same evidence criteria. This is a practical product trade-off. Be clear about who is represented in the available results and what the team is doing when the evidence is too sparse to support a decision.

Try an evaluation on public, licensed, or synthetic inputs before a broader rollout. Make a known set of terms emerge at different rates in different groups. Check how often the analysis finds them and how often it surfaces terms that have little real support. Include misspellings, shared prefixes, and mixed writing systems. These tests can explain which failures are likely before the team draws conclusions from real-world reports.

Give a language team the final decision about the dictionary

A frequent term can still be unsuitable for automatic suggestions. It might be a slur, a short-lived spelling joke, a fragment the tokenizer misunderstood, or a name with different meanings in different communities. A collaborator familiar with the language can decide whether the term belongs in the dictionary, should be recognized without being suggested, or should be left out altogether. A published count alone does not make that decision.

Keep the review material limited to what the decision requires. An editor may need the candidate, the relevant language, and a description of the kind of evidence behind the result. Examples can be drawn from public or otherwise approved sources. Collecting private messages to provide context would change the purpose and scope of the project. Record the decision separately and test the effect on the keyboard before rolling out changes to a wider audience.

The measures of success should connect back to the original problem. For example, a team may want fewer corrections of legitimate new words without creating a wave of poor suggestions. The rate at which a system generates candidates says little about that outcome. A smaller list of better candidates can be more useful than a large list that people rarely accept.

Frequently asked questions

Is federated analytics the same as federated learning?

Federated analytics typically uses distributed data to compute a statistic or other measurement about a population. Federated learning typically uses distributed contributions to train a model. A keyboard team can use federated analytics to discover candidates, then make an editorial change that requires no new model training. Another project could use a distributed learning method to improve a model without producing a list of words for language staff.

Can an organization call data private because its system uses encryption?

Encryption can protect a communication channel or help implement a protocol with a particular trust model. To evaluate a privacy claim, ask separately what is collected, who can read it, and what the outputs reveal. A system can encrypt data in transit and still decrypt every individual report on arrival. A well-specified guarantee describes what is protected at each step and under which assumptions.

Will a threshold guarantee that no personal term ever appears?

A threshold can limit which candidates become visible, but its effect depends on how support is measured and what other outputs exist. Words can be shared by several people while still being sensitive. A threshold may be one part of a privacy analysis. To evaluate it, look at contribution limits, the reporting schedule, the number of groups, and who receives the candidate list. Product review also matters when deciding which terms can become public suggestions.

What should users look for in a keyboard’s description?

Look for a clear explanation of which activity is eligible for analysis, what leaves the device, and how to control participation. If privacy controls depend on operating system settings or a particular product mode, check how the controls apply to the version you use. A claim that processing happens locally may refer to one feature while other features have different data flows.

Begin with the smallest result the team can act on

The keyboard team can start by defining which dictionary decision it needs help making and which aggregate evidence would support that decision. Limit what each device contributes, review what the server can see, and explain who can access the output. Then check whether the language team can do useful work with the candidates it receives. The aim is to learn enough about how a language is changing to improve a product while keeping private conversations outside the analytics collection.

You may also like

Leave a Comment