Back to All Articles
Research2026-06-15•10 min read

Federated Learning, Explained with Real Code

A practical guide to federated learning in client apps: how differential privacy noise works, when to use it, and what the latency tradeoffs are.

MT
Research Team
Aurict Decision Core Team

1. The Server-Side Bottleneck

Traditional marketing automation platforms evaluate targeting rules on central cloud servers. Every user gesture requires an asynchronous HTTP call across public networks to compute the next best offer.

This creates two critical flaws: 50-500ms network roundtrip latency and mandatory transmission of sensitive raw user telemetry to third-party servers. Aurict Decision was engineered to eliminate both.

KEY TAKEAWAYS
  • On-device inference lowers evaluation latency to under 10ms.
  • Zero raw behavioral data leaves the device, guaranteeing native GDPR/KVKK compliance.
  • SHAP explainability vector log ensures every decision is fully deterministic.

2. On-Device Decision Runtime

Powered by WebAssembly and WebCrypto, Aurict Decision SDK runs quantized TFLite & ONNX decision models directly in browser and mobile RAM:

import { MicroTarget } from '@aurict/sdk';

// Initialize lightweight on-device runtime
const mt = new MicroTarget({ projectId: 'proj_live_992' });

// Evaluate intent score in <5ms without network calls
const decision = await mt.session.evaluate({
  context: 'cart_checkout_page',
  cartValue: 145.50,
  idleTimeMs: 1400
});

console.log(decision);
// Output: { action: "offer_free_shipping", confidence: 0.94, latencyMs: 3.2 }

3. Conclusion & Outlook

As privacy regulations tighten globally and client hardware accelerates, edge-first decisioning is evolving from a competitive edge into an industry imperative.

← All ArticlesTry Decision Engine