“On-device AI” sounds simple enough. Take a large language model, shrink it, quantize the weights, and squeeze it into a smartphone. No cloud costs, no network latency, and better privacy. Problem solved.

If only it were that easy. My fellow engineers and I would have considerably more hair left on our heads.

While building Galaxy AI, I’ve helped bring AI capabilities to hundreds of millions of mobile devices. One thing I’ve learned is that getting a model to run on a phone is very different from making it work reliably for millions of users.

A model that performs beautifully in a lab can become a disaster when deployed to real phones, competing with other apps for memory, battling thermal limits, and running on dozens of hardware configurations.

Here are eight lessons I’ve learned from bringing on-device AI into production.

1. On-Device Doesn’t Automatically Mean Faster

One of the biggest selling points of on-device AI is speed. No network calls should mean lower latency, right?

Not necessarily.

Modern networks are surprisingly fast. On a good 5G or Wi-Fi connection, network round-trip latency can be measured in tens of milliseconds, although actual latency varies significantly with network conditions and server location.

Meanwhile, smartphones have a fraction of the memory bandwidth and computational capacity of cloud GPU servers.

Consider a language model that takes two seconds to generate its first token on a phone. Even after eliminating network latency, it may feel slower than a cloud model that responds in a fraction of that time.

Of course, this depends on the workload. Small, specialized models can be extremely fast on-device, especially when they avoid unnecessary network requests.

The lesson: Optimize end-to-end user latency, not just network latency.

A model running locally isn’t automatically a faster product.

2. Users Don’t Care About Your Technical Constraints

Imagine an engineer proudly announcing:

“We managed to fit a 3-billion-parameter model into less than 2GB of memory using 4-bit quantization!”

Among AI engineers, that’s an impressive achievement.

To an ordinary smartphone user? Nobody cares.

Users don’t distinguish between a small model running on their phone and a massive model running in the cloud. They see an AI feature. If it works well, they’re happy. If it produces nonsense, it’s broken.

You can’t tell users, “Please lower your expectations. I’m only a tiny on-device model.”

Unfortunately, cloud AI has already established a high standard for what users expect.

To close the quality gap, we rely on techniques such as knowledge distillation, task-specific training, quantization-aware optimization, and careful post-training. Instead of making one small model answer every question imaginable, we can optimize compact models for specific tasks like translation, summarization, or writing assistance.

But model architecture is only part of the solution. Product design matters just as much. A well-defined task can often deliver a better experience than an overly ambitious general-purpose assistant.

The lesson: Users judge the experience, not the model’s size.

The real goal isn’t to build the smartest small model. It’s to deliver an AI feature that feels intelligent within the constraints of the device.

3. Getting the Model to Run Is Just the Starting Line

The first time a language model generates text on a smartphone is exciting.

Unfortunately, that’s usually when the real engineering work begins.

On-device AI forces engineers to make trade-offs that rarely appear in cloud model benchmarks.

Performance vs. Temperature

Push the processor harder, and the phone heats up. After sustained workloads, thermal throttling can reduce performance significantly.

Your AI might respond quickly to the first question but become noticeably slower after several consecutive requests.

Responsiveness vs. Memory

Keeping a model loaded in RAM reduces cold-start latency. But that memory isn’t reserved exclusively for AI.

The camera, browser, messaging apps, and operating system all need their share.

If your AI model occupies several gigabytes of RAM, the operating system may kill background applications to free memory.

Imagine asking AI to summarize an email, only to discover that the email app itself has been killed.

Congratulations. You’ve optimized the AI feature and ruined the user experience.

Quality vs. Battery Life

More computation can improve model quality, but it also consumes energy. Users won’t appreciate a slightly better summary if their battery drains noticeably faster.

These trade-offs make system-level engineering as important as model quality.

The lesson: A successful on-device model must coexist with the rest of the phone.

Making a model fit into memory is an achievement. Making sure everything else still works while it runs is the real challenge.

4. Deployment Is Harder Than You Think

Cloud AI has an enormous operational advantage: centralized control.

When a model needs updating, engineers can deploy a new version through a managed rollout, monitor its behavior, and roll back if necessary.

On-device AI is different.

Once a model is deployed, copies of it live on millions of devices outside your direct control.

Suppose you discover that your translation model consistently mishandles a particular expression. You fix the problem and produce a better model.

Now comes the difficult part: getting that model onto users’ phones.

Traditional approaches rely on application or firmware updates. But users may disable automatic updates, lack storage space, or delay downloading large files.

The result is version fragmentation.

Different users run different models, sometimes for months or even years.

This complicates debugging, quality assurance, and compatibility testing. A bug affecting one model version on one chipset might not reproduce anywhere else.

And unlike a cloud deployment, you can’t assume everyone will receive your fix immediately.

The lesson: Model deployment is a long-term lifecycle problem, not a one-time release.

You need to plan for version management, compatibility, rollback strategies, and devices that never update.

5. Ironically, You Still Need the Cloud

Here’s one of my favorite paradoxes about on-device AI.

To make on-device AI easier to maintain, you often end up building more cloud infrastructure.

Consider the update problem.

Instead of waiting for a full application or firmware update, why not download new model files independently?

Good idea. But now you need infrastructure to manage those updates.

You may need:

  • A global content delivery network for distributing model files.
  • Device-aware rollout policies for different hardware configurations.
  • Reliable downloads with interruption recovery and integrity checks.
  • Version management, staged rollouts, and rollback mechanisms.
  • Monitoring to detect failures across the installed device population.

At hundreds of millions of devices, even distributing model files becomes a significant engineering challenge.

And there’s another complication.

On-device models can’t handle every possible request. Some tasks require more capable cloud models, current information, or resources unavailable on the phone.

That leads naturally to hybrid AI, where the system decides whether to process a request locally or send it to the cloud.

Now you’re maintaining both environments, along with the routing logic between them.

The lesson: On-device AI doesn’t eliminate cloud engineering. It changes what the cloud is responsible for.

For many large-scale products, the cloud evolves from handling every inference request to supporting model distribution, lifecycle management, and selective inference.

6. Welcome to the Wild West of NPUs

If you want efficient on-device AI, the Neural Processing Unit (NPU) sounds like the perfect solution.

It’s designed to accelerate AI workloads while consuming less power than general-purpose processors.

Simple enough.

Until you actually try deploying models across different mobile chipsets.

Unlike the relatively standardized CUDA ecosystem used by much of cloud AI, mobile hardware is fragmented.

Qualcomm, Samsung, MediaTek, and Apple have different accelerator architectures, software stacks, supported operators, and optimization requirements.

A model that runs efficiently on one chipset might behave very differently on another.

Unsupported Operators

Suppose your model uses an attention operation that works perfectly on one NPU.

On another chipset, the compiler might reject it or fall back to CPU execution.

Moving operations between processors can introduce synchronization and memory-transfer overhead, sometimes eliminating the expected performance benefit.

Quantization Differences

Different NPUs support different numerical formats and have different performance characteristics for INT8, INT4, FP16, and other precisions.

A quantization strategy that works well on one device might produce different performance or accuracy results on another.

Hardware-Specific Optimization

You may need different compiled artifacts, execution backends, quantization strategies, or even model variants for different chipsets and device generations.

And once you’ve created those variants, you need to test and distribute them correctly.

Which brings us right back to deployment and version management.

The lesson: NPU acceleration isn’t a free performance upgrade. It’s an additional engineering discipline.

Hardware-aware model design, compiler compatibility, and cross-device validation can determine whether an on-device AI feature succeeds.

7. On-Device Doesn’t Automatically Guarantee Privacy

Privacy is one of the strongest arguments for on-device AI.

If sensitive user data never leaves the phone, the exposure associated with sending that data to external servers can be reduced substantially.

But there’s an important distinction:

Local inference isn’t the same as end-to-end privacy.

A commercial AI feature consists of much more than the model itself.

Consider what happens before and after inference.

Temporary Data

Preprocessing and postprocessing components might create caches or temporary files containing sensitive information. Those files still need appropriate protection.

Logging and Telemetry

Engineers need diagnostic information to investigate crashes, monitor performance, and improve reliability.

But what if a crash report accidentally includes part of a user’s prompt or model output?

Your inference happened entirely on-device, yet sensitive information still left the phone.

Hybrid AI

If some requests are routed to the cloud, users need clear privacy guarantees about what data is transmitted and when.

Building trustworthy on-device AI requires security throughout the pipeline: data minimization, access controls, secure storage, careful logging policies, and explicit boundaries around cloud communication.

Hardware-backed security and privacy-preserving analytics can help in appropriate scenarios, but neither replaces comprehensive security engineering.

The lesson: Privacy is a property of the entire system, not the location of the model.

Running inference locally creates an opportunity for better privacy. Good engineering is what makes that promise credible.

8. Despite Everything, On-Device AI Is Worth It

After seven lessons about performance limitations, memory problems, deployment headaches, and hardware fragmentation, you might reasonably ask:

Why bother?

Why not just use a cloud API?

Because when on-device AI works well, it enables experiences that are difficult to achieve with cloud-only systems.

Privacy

Personal messages, confidential documents, and sensitive conversations can be processed locally without sending their contents to external inference servers.

Offline Availability

Translation, summarization, and other AI features can remain useful on airplanes, underground trains, and in places without reliable connectivity.

Cost Efficiency

At the scale of hundreds of millions of devices, cloud inference costs can become enormous.

Moving suitable workloads onto hardware users already own can significantly reduce marginal server-side inference costs, even after accounting for model development and delivery infrastructure.

Product Integration

Perhaps most importantly, on-device AI allows intelligence to become a more deeply integrated part of the device itself.

Instead of treating AI as a remote service that users occasionally invoke, we can build features that are responsive, available, and integrated into everyday workflows.

And from an engineering perspective, there’s something deeply satisfying about solving problems under extreme constraints.

You optimize a model, tune its execution, squeeze out unnecessary memory usage, and eventually watch something that once seemed impossible run smoothly on a phone.

That’s a special kind of engineering achievement.

Final Thoughts

On-device AI isn’t just a smaller version of cloud AI.

It’s a systems engineering challenge that spans model optimization, runtime performance, memory management, hardware acceleration, deployment infrastructure, and security.

And the most difficult problems often appear only after the model is already working.

Building a smaller model that runs on a phone is impressive.

Building an AI experience that works reliably for millions of people, across different devices, without compromising the rest of their smartphone experience — that’s the real challenge of on-device AI.