On-Device vs. Server-Side Liveness Detection

Compare where liveness capture, inference and decision happen, and what each architecture means for latency, updates and image handling.

Table of contents

“Runs on the phone” might mean the camera opens there. It might also mean a model scores the sample there and sends a result somewhere else. The difference matters if your team is deciding where images may travel, how quickly it can update the model and what it can trust when a result comes back.

Put three labels on the data flow: capture, inference and decision. Under each, write where it runs and which inputs and outputs cross the boundary. Do it for the normal path and for the fallback. That is a more useful comparison than sorting vendor slides into two columns.

1. Map capture, inference and decision separately

Stage Where it can run What to confirm
Capture Browser, mobile app or hosted client Permissions, supported devices, session setup and integrity of input
Quality assessment Device, server or both Guidance during capture and which conditions cause a retry
Liveness inference Device, server or split across stages Which model runs and what data is processed or transmitted
Policy decision Your backend, provider or a defined combination Who authorizes the action and how a result is bound to a session
Record and review Restricted vendor or customer systems Evidence access, retention and handling of exceptions

Ask what happens at every stage. A capture SDK that checks image quality on the phone does not establish that the liveness model runs there. A server result can still rely on a provider-built client to capture the sample. A system can perform inference locally while sending the score or device metadata to a server. Product terminology can collapse these distinctions, so compare the workflow rather than the label.

The Amazon Rekognition Face Liveness workflow describes capture and server-side sessions and results for that service. The Microsoft face liveness integration tutorial also specifies client and server responsibilities for its design. Use these to frame the diagram you ask each vendor to draw. They are examples of particular deployments, not evidence that a different product transfers or retains the same data.

If your team plans to run the biometric server itself, the FaceTec SDK review shows what that model means for capture, storage and the cost of operating the service.

2. Check what really happens on the device

On-device inference can be attractive when upload bandwidth is limited, you want immediate guidance, or your policy aims to limit transfers of raw evidence. Confirm whether the liveness model and decision really run without uploading photos or video. Ask what the component still sends, including scores, telemetry, device signals, diagnostic material or evidence for review. Inspect actual behavior in an approved test environment.

Check performance on supported hardware. Ask about CPU and memory use, startup time, model size, compatibility, battery impact and what happens if the device is under load. A local flow still might require a connection for authorization, retrieval of a challenge or attestation, updating a model or applying the final decision. Ask the provider to demonstrate the states that work without a network and the states that wait for it.

Find out how updates reach the device. An SDK update may depend on a new app release and adoption by users. A downloadable model may have its own update and rollback rules. Ask how unsupported versions are detected, how long old releases are accepted, and how your backend treats a result from a version your policy no longer trusts. An architecture that looks straightforward in a fresh install still needs a plan for users on older apps.

3. Measure what the server path needs to receive

A server deployment can make model upgrades and decision configuration easier to control centrally. You may be able to support several client environments using the same processing service. Ask whether the supplier can trace the model version used for a decision, maintain version continuity during changes, and provide the specific evidence your operations team needs.

The trade-off depends on media flow. Determine what the client sends, when transmission begins, how it is protected and whether it goes through your infrastructure. Ask whether uploads are streamed or sent in batches, how the system handles interruption, and what the user can do when the service cannot return a result. Record which systems can retain or retrieve media and which roles can access it.

Measure end-to-end time, not model inference time alone. The applicant may wait for SDK load, camera permissions, capture, upload, processing, result retrieval and your application to apply the decision. A small model time does not guarantee a quick journey on slower devices. Compare the same task across your device and network mix. The low-end phone and slow-network test guide describes how to instrument those stages.

4. Treat the hybrid path as its own deployment

A hybrid might give local capture instructions and quality feedback, then send selected evidence for remote liveness inference. Another design could process locally for a supported population and use a separately approved server route for exceptions. Ask which evidence crosses the boundary in normal operation and which crosses it when the user requests a retry, the device cannot run the model or the case enters review.

Avoid assuming that a fallback inherits the same privacy and security properties. If the default path keeps media on the device and a fallback uploads it, explain the difference to the responsible team and applicant where required. Check whether the same threshold and attack protections apply. An alternative route needs its own evidence and test cases.

Decide how to correlate results across paths. A service might open a local attempt and later start a server-assisted one. Keep them connected to the same product session while giving each a distinct attempt reference. An old result should not satisfy a new request. Confirm that the backend can identify the path used and which version generated the result.

Check the route users take when the device cannot run the model

Ask a supplier to demonstrate a supported phone and then a phone that cannot run the proposed local model. Capture both authorized test flows. In the alternate flow, ask whether raw media now crosses the boundary, where the person is told, and which decision policy applies. Confirm that the transition preserves the application and closes or supersedes the earlier attempt safely.

Take the two diagrams to your privacy and security reviewers. A team may approve the local path for one group and require a separate decision for the fallback. If the provider’s answer depends on a product setting, record the exact configuration and how the operations team will detect a change.

5. Verify who can trust the result and how support recovers it

A client can report progress to your interface. Access to a restricted action should depend on evidence your backend can validate under the product’s trust model. Ask how a result is authenticated and bound to the original session, what the server can learn about the client and version, and how the architecture handles expired or repeated results. Different platforms and threat models call for different controls.

Ask for separate evidence against physical presentation and manipulated digital input. The NIST identity proofing guidelines can frame the remote proofing discussion, and our comparison of presentation and injection attacks explains why the capture path matters. A location on the architecture diagram cannot substitute for evidence about the exact client and version.

Map what happens when assurance cannot be established. A poor capture may merit a retry. A device that cannot run the required protection may need an alternative. An unresolved security signal may require review. Assign the policy decision to the appropriate team, and make sure the user does not receive a successful access decision solely because capture finished.

Compare the evidence available to support

Run one approved test in which capture begins normally and the check fails before a final decision. Ask a support user to identify where it stopped using the permitted tools and references. With local inference, the device may hold information your server never received. With remote inference, a supplier may have processing information that your product does not expose. Check which signals exist and whether the service can distinguish a client startup problem from a remote failure.

Repeat the exercise after switching to an alternate route. Confirm that support can identify the current attempt and that an old result does not change it. Ask which data is kept automatically for troubleshooting and how long it remains accessible. A minimal diagnostic trail can record the client version, route, stage and broad failure category without keeping raw capture media. Agree who can access more detailed evidence when a specific investigation justifies it.

Bring the result into the deployment decision. An architecture that performs well for successful sessions still needs enough operational visibility to help legitimate applicants finish when something fails.

Run a comparable pilot and pick the operational fit

Ask for the data flow, the supported platform list, version update policy, scope of security evidence and the exact media retention settings. Run tests for cold startup, slower devices, weak networks, permission denial and supported fallbacks. Record elapsed time by stage and whether the result was trustworthy and usable, as well as what data was transferred. Ask support to explain an unsuccessful session from a permitted reference.

Compare constraints before averages. If your audience relies on older devices, confirm the local path can run within the hardware and OS range you support. If your use case has limited bandwidth, measure the remote path under that limitation. If governance requires consistent evidence across versions, check that the provider can report and control those versions. If raw media cannot leave a boundary, verify the full handling of primary and fallback routes before selecting a design.

Document the selected architecture with owners for capture, inference, decision, logging and updates. Record assumptions and unanswered questions by channel. Use the liveness provider directory to identify products with the right deployment options, and the liveness evidence guide to read the proof each vendor supplies. The decision should be tied to your actual workflow, not to where a single advertised processing step runs.