On-Device AI Smartphones: Hardware Evolution and Engineering Practices

    This article examines how on-device AI competition on smartphones is shifting from raw model parameters to end-to-end system efficiency. It covers four engineering directions: display-sensing integration for under-display 3D face recognition, mechanical variable aperture for computational photography, near-memory packaging and multi-chip modules for breaking the memory wall, and device-cloud collaboration with testing and governance. The discussion focuses on constraints such as latency, power, memory, thermal stability, privacy, and reliability, and it explains how reusable hardware platforms and configurable software stacks can turn hardware capabilities into products that can be delivered, operated, and iterated at scale.

    1. Technical Background: Competition Shifts from Parameter Count to System Efficiency

    The debate over whether AI is a bubble ultimately points to one question: can technology investment translate into stable, scalable, and reusable user value? For mobile devices, the answer cannot rely only on model parameter counts or single-point demos at launch events. It must return to end-to-end metrics: latency for one inference pass, power per watt, peak memory, thermal stability, privacy compliance cost, and whether users are willing to keep using the feature over time. On-device AI is not simply moving a cloud model into a device. It is a systems engineering effort involving displays, sensing, imaging, chips, packaging, operating systems, and algorithms.

    A mobile product line often expands within two to three years into multiple products covering different price bands and form factors. As model numbers increase, hardware platformization and software reuse directly affect R&D cost. If every device uses a completely different display, camera, memory, and thermal design, model adaptation, driver tuning, image calibration, and test matrices will expand rapidly. Therefore, one key to the next stage of on-device AI competition is combining reusable hardware capabilities with a configurable software stack: high-end models validate new form factors and new sensors, mid-range models reuse mature modules, and model quantization, operator pruning, and policy degradation maintain a consistent experience.

    From an architectural perspective, on-device AI usually needs to satisfy four types of constraints at the same time:

    • Real-time behavior: voice wake-up, visual recognition, and image processing require stable low latency and cannot rely entirely on network round trips.
    • Privacy: biometric features, photos, voice, and personal context should be processed locally as much as possible to reduce the transmission of raw data.
    • Energy efficiency: phones are battery-constrained devices, and inference power must be included in the overall thermal budget.
    • Reliability: under offline conditions, weak networks, sensor occlusion, and temperature changes, the system still needs controlled degradation rather than outright failure.

    This article therefore selects four representative directions: display-sensing integration for under-display sensing, mechanical variable aperture and computational photography, near-memory packaging and breaking the memory wall, and device-cloud collaboration with engineering validation. These correspond respectively to the human-computer interaction entry point, the visual data entry point, the compute supply foundation, and the productization loop.

    2. Display and Sensing Integration: From Punch-Hole Designs to Under-Display Face Recognition

    1. Punch-hole screens are a transitional form, not merely an aesthetic choice

    Front cameras and depth sensors need an optical path, so before under-display solutions mature, punch-holes are the most common engineering compromise. A single hole at the upper left or center can reduce the impact on display integrity while preserving light transmission for front-facing capture. But the hole position affects display pixel layout, touch routing, structural strength, and antenna placement, so it cannot be decided by appearance alone. For developers, the more important issue is the system constraints behind the hole: exposure strategy for front capture, calibration data for depth recognition, display brightness zone control, and sensor occlusion detection all need unified system-level management.

    From an evolution path perspective, device makers usually first keep a single front punch-hole, then gradually hide the infrared emitter, receiver, and depth computation modules required for 3D face recognition under the display, and eventually move toward under-display cameras. This process is not simply moving sensors under the screen. It requires coordinated upgrades in display materials, optical design, image restoration algorithms, and security authentication.

    2. Core challenges of under-display 3D face recognition

    Under-display face recognition usually involves infrared imaging, depth projection or structured light, flood illumination, feature extraction, and liveness detection. To hide the module under the screen, the following problems need to be solved:

    • Transmittance and uniformity: the display panel has limited transmittance for infrared light, and different areas vary, which can easily cause uneven image brightness.
    • Diffraction and stray light: pixel arrays and routing introduce diffraction patterns and ghosting, affecting depth map accuracy.
    • Heat and drift: infrared emitters generate heat during operation, which may cause calibration drift and requires online compensation.
    • Liveness and security: risks such as photos, screen replay, and mask attacks require multimodal judgment rather than relying only on 2D texture.
    • Repair and consistency: under-display modules are more tightly coupled with the display panel, raising requirements for after-sales repair and batch consistency.

    A feasible engineering loop is factory calibration plus on-device online calibration, multi-frame fusion, and security policy. The factory stage records the correspondence between sensors and display areas. The device performs lightweight compensation based on temperature, ambient infrared intensity, and historical confidence. During recognition, a low-power near-infrared channel first detects face approach, then high-power depth capture starts. Security judgment combines depth maps, micro-motion features, texture consistency, and feature templates in a trusted execution environment.

    The following interface-agnostic pseudocode illustrates the layered design of the recognition flow:

    1. def secure_unlock_flow(ir_frame, depth_map, ambient_ir):
    2. if not trusted_environment_ready():
    3. return LOCK
    4. frame = denoise_and_compensate(ir_frame, ambient_ir)
    5. face = detect_face(frame, depth_map)
    6. if face is None:
    7. return LOCK
    8. if not liveness_check(frame, depth_map, micro_motion=True):
    9. return LOCK
    10. feature = extract_irreversible_feature(face)
    11. if feature_template_ready() is False:
    12. return LOCK
    13. score = similarity(feature, stored_template)
    14. confidence = depth_confidence(depth_map)
    15. if score > threshold_score and confidence > threshold_depth:
    16. return UNLOCK
    17. return LOCK

    This flow emphasizes three principles. First, raw biometric images should not be stored long term; only irreversible templates should be kept. Second, liveness detection must precede identity matching to avoid the attack window created by matching before judgment. Third, all thresholds and compensation parameters should be configurable by device model, batch, and temperature range rather than hard-coded in a single model.

    3. Balancing under-display cameras and display quality

    As solutions move further toward under-display cameras, the difficulty shifts to visible-light imaging. Display pixels reduce light intake and cause haze, glare, and color shift. Common engineering approaches include optimizing pixel layout, increasing local transmittance, separating driver routing, combining dehazing and color restoration algorithms, and improving signal-to-noise ratio through multi-frame synthesis. But algorithmic compensation cannot be used without limits, or it will introduce artifacts, power consumption, and shutter delay. A more reasonable goal is to define scenario-specific quality metrics: selfies, video calls, code scanning, and face authentication should use different exposure and restoration strategies rather than one unified filter covering all scenarios.

    3. Mechanical Variable Aperture: Giving Computational Photography More Optical Freedom

    1. What problem does variable aperture solve?

    Fixed-aperture phone cameras usually make a one-time hardware trade-off between light intake and depth of field. A mechanical variable aperture makes the lens opening adjustable, providing more optical freedom in different scenes. In a simplified formula, the aperture F-number is approximately focal length divided by effective aperture diameter: a smaller F-number means a larger aperture and more light; a larger F-number means deeper depth of field, while edge image quality and diffraction behavior also change. In a real system, this must be decided together with shutter speed, ISO, multi-frame synthesis, and stabilization.

    The main benefits of a mechanical variable aperture include:

    • Use a larger aperture in low light to increase light intake and reduce high-ISO noise.
    • Stop down appropriately in bright light to reduce overexposure risk and preserve highlight detail for HDR synthesis.
    • Use a larger aperture in portrait scenes for a more natural depth-of-field transition, but combine it with depth algorithms to avoid edge errors.
    • Stop down for landscapes, documents, and group photos to improve depth of field and edge resolution.
    • Balance diffraction, focus travel, and distortion correction in macro and close-up scenes.

    2. Hardware complexity and reliability challenges

    A mechanical aperture is not simply an added moving part. It affects module thickness, driver power, blade lifetime, dust ingress, drop reliability, low-temperature startup, and noise control. For overall device design, camera bump, thermal path, antenna clearance, and waterproof structure all need to be re-evaluated. For software, aperture switching must coordinate with auto exposure, auto focus, stabilization, HDR, and depth estimation; otherwise, users may experience switching lag, exposure jumps, or video breathing.

    A practical strategy is scenario-based hysteresis control: in photo preview, allow slower switching to reduce noise and power; in video recording, keep aperture as stable as possible and use digital exposure compensation for transitions when necessary; in burst shooting and high-dynamic-range scenes, predict exposure requirements in advance to avoid frequent back-and-forth switching.

    1. def choose_aperture(scene, light_level, motion_level, dof_requirement):
    2. if motion_level > motion_threshold:
    3. return large_aperture # Increase shutter speed and suppress motion blur
    4. if light_level < low_light_threshold:
    5. return large_aperture
    6. if dof_requirement == "deep":
    7. return small_aperture
    8. if scene == "portrait" and light_level >= portrait_light_threshold:
    9. return medium_to_large_aperture
    10. return default_aperture

    It is important to emphasize that the value of variable aperture is not a larger hardware specification, but finer coordination between optics and computational photography. If exposure strategy, color consistency, and switching smoothness are not handled well, users may only perceive a thicker camera module and slower startup. Imaging teams should therefore establish a cross-aperture consistency calibration system: white balance, color, sharpness, vignetting, and noise for the same scene at different apertures must all be calibratable and regression-testable.

    3. Sensor dynamic range and algorithm coordination

    The original information mentions that a new generation of sensors aims to capture more light at night while avoiding daytime overexposure. This corresponds to the classic problem of dynamic range and noise management. Engineering approaches commonly improve high-dynamic-range performance through multi-frame exposure synthesis, dual conversion gain, split exposure, or adaptive exposure strategies. But algorithms cannot replace optics: if the sensor is already saturated, highlights cannot be recovered in post-processing; if shadow signal-to-noise ratio is too low, multi-frame synthesis will also produce ghosting and false color. Therefore, on-device AI models are better suited to scene understanding, exposure prediction, noise estimation, and local fusion weight generation rather than blindly brightening everything.

    4. Near-Memory Packaging and Multi-Chip Modules: Breaking the On-Device AI Memory Wall

    1. The real bottleneck for on-device AI is often memory

    In on-device inference, peak compute is not the only metric. Model weights, activations, key-value caches, and image buffers continuously occupy memory; many operators are limited by memory bandwidth rather than compute units. The larger the model, the higher the cost of reading weights; the more concurrent tasks, the more obvious memory contention becomes. For generative models, video understanding, and multimodal interaction, memory capacity, bandwidth, and access energy often determine whether a device can stably run more advanced local AI features.

    A simplified relationship can describe memory pressure:

    1. Total memory requirement ≈ weight usage + activation usage + cache usage + system reserve
    2. Weight usage ≈ parameter count × bytes per parameter
    3. Cache usage ≈ context length × hidden dimension × cache precision × batch size

    Quantization can reduce bytes per parameter, but it cannot eliminate bandwidth pressure. Operator fusion can reduce intermediate activations, but it cannot replace capacity planning. Therefore, improvements at the packaging level are practically meaningful.

    2. Engineering value of wafer-level multi-chip module packaging

    The basic idea of wafer-level multi-chip module packaging is to integrate processors, memory, or other chiplets within the same module at shorter interconnect distances during the packaging stage. It is not equivalent to simple stacking; it involves redistribution layers, interconnect structures, power delivery, thermal design, and test strategy as a system engineering effort. The potential benefits for on-device AI are mainly threefold:

    • Shorter interconnect distance: memory is closer to compute units, reducing access latency.
    • Higher bandwidth density: more parallel channels within a limited package area.
    • Lower energy per bit transferred: short-distance interconnect is usually beneficial for energy efficiency, but it must be evaluated together with power delivery and heat dissipation.

    However, near-memory packaging also introduces new constraints. First, thermal density rises; when processors and memory are closer, local hot spots are harder to spread. Second, packaging yield and test complexity increase, and a problem in any chiplet can affect the whole module. Third, repair and upgrade space becomes smaller, so product planning needs to lock memory capacity earlier. Finally, software must be aware of packaging differences to exploit bandwidth advantages; otherwise, scheduling policy and memory copies can still become bottlenecks.

    3. Hardware-software co-designed model deployment

    Packaging upgrades only provide a better memory foundation. Whether a model runs efficiently also depends on quantization and scheduling. Engineering teams can adopt a layered strategy: keep latency-sensitive models with fewer parameters resident locally; use segmented loading, dynamic precision, and operator fusion for capacity-sensitive large models; use paged caching and capacity caps for long-context scenarios; and define explicit degradation strategies for weak-network or low-battery conditions.

    1. def plan_on_device_inference(model, memory_budget, latency_target):
    2. graph = profile_operators(model)
    3. graph = fuse_supported_operators(graph)
    4. precision = choose_quantization(graph, accuracy_constraint)
    5. memory_plan = estimate_peak_memory(graph, precision)
    6. if memory_plan > memory_budget:
    7. graph = shard_or_offload_cold_layers(graph)
    8. memory_plan = estimate_peak_memory(graph, precision)
    9. if predict_latency(graph, precision) > latency_target:
    10. graph = drop_optional_branches(graph)
    11. return build_runtime_plan(graph, precision, memory_plan)

    The principle behind this pseudocode is profile first, then fuse, then quantize, and finally degrade. Do not replace model precision directly without performance profiling; otherwise, accuracy may drop without latency improvement. Do not look only at average latency. Pay attention to P95 latency, peak memory, frequency drop after temperature rises, and long-running stability.

    5. Device-Cloud Collaboration, Testing, and Governance: Turning Hardware Capabilities into Usable Products

    1. Device-first with cloud fallback

    On-device AI does not mean completely rejecting the cloud. A more reasonable architecture is layered processing: high-frequency, low-latency, and privacy-sensitive tasks are completed locally; model training, long-tail sample analysis, complex offline processing, cross-device synchronization, and staged rollout policies are placed in the cloud. The device-cloud boundary should be defined by data sensitivity, network conditions, device compute, and user experience.

    In cloud R&D and operations, general-purpose container platforms, object storage, logging services, monitoring and alerting, message queues, and model evaluation pipelines can be used to build a loop from model conversion and compatibility testing to staged release and online observation. For example, general-purpose cloud services from Baidu AI Cloud can be used for log aggregation, metric monitoring, and evaluation task orchestration, but the specific design should still reflect the enterprise’s own compliance, cost, and data-governance requirements. The key is not any single service, but connecting on-device metrics with cloud release processes to form an engineering system that is rollback-capable, explainable, and auditable.

    2. Required metrics and validation matrix

    Testing for on-device AI projects cannot focus only on model accuracy. At minimum, the following dimensions should be covered:

    • Functional correctness: whether recognition, capture, unlock, degradation, and recovery flows behave as expected.
    • Performance: cold start, first-frame latency, P95 inference latency, peak memory, and model loading time.
    • Energy and thermal behavior: energy per inference, temperature rise during continuous operation, and experience consistency after frequency throttling.
    • Stability: low light, occlusion, motion, extreme temperatures, low battery, and insufficient storage.
    • Security and privacy: liveness attacks, template protection, model signing, and sensitive data minimization.
    • Compatibility: different display form factors, sensor batches, memory capacities, system versions, and regional configurations.
    1. release_gate:
    2. accuracy: must_pass_regression_suite
    3. p95_latency: within_model_target
    4. peak_memory: within_budget
    5. thermal_soak: no_unrecoverable_throttle
    6. security: liveness_and_template_checks_passed
    7. privacy: no_raw_biometric_upload
    8. rollback: model_and_config_can_revert

    3. Governance and long-term evolution

    The deeper hardware innovation goes, the more important governance becomes. Under-display biometric recognition involves biometric template protection; by default, it should process locally, store encrypted data, and support secure deletion. Variable aperture and multiple cameras involve differences in user scenarios, so explainable capture strategies and consistent color experience should be provided. As near-memory packaging increases integration, after-sales repair and spare-parts strategies need to be planned in advance. For developers, models and configurations should support capability-tiered delivery by device model, avoiding a one-model-fits-all approach that overloads low-end devices while leaving high-end capabilities idle.

    Returning to the question of whether AI is a bubble: the long-term opportunity for the technology industry does not come from the enthusiasm around a single concept, but from lower unit costs, stronger privacy protection, and sustainable experience gains. The real dividing line for on-device AI is whether it can stably provide features that users are willing to use repeatedly under limited battery and thermal conditions. Under-display sensing makes interaction more natural, variable aperture brings imaging closer to optical fundamentals, near-memory packaging provides a more efficient memory foundation for local models, and device-cloud collaboration and engineering validation turn these capabilities into products that can be delivered, operated, and iterated. Only when hardware and software complete the loop together will on-device AI become more than a parameter race and serve as the next layer of infrastructure for mobile computing platforms.