← Lab /Software

FlowArk cuts API cost of batch Android data-flow analysis by 26.8% while keeping quality

FlowArk reduces end-to-end API cost of batch agentic data-flow analysis by 26.83% without degrading analysis quality

Software arXiv 13 Jul 2026 Method Prototype evidence

Published as “FlowArk: Boosting Agentic Data-flow Analysis for Android Apps via Context-Aware Knowledge Reuse”

Why it matters

Reducing token and API consumption lets security analysts run many more agentic data-flow analyses within a fixed budget, improving scalability of automated Android app vetting.

Summary

FlowArk reduces end-to-end LLM API cost by 26.83% on a batch of 4,685 source-to-sink data-flow analysis tasks from 50 Android apps, increasing the number of tasks completed under a $100 budget from 776 to 1,060 (a 36.66% throughput gain). The paper reports consistent savings across all apps (4.59%-46.34% per app) and comparable analysis quality to the baseline. The evaluation does not include a full wall-clock time measurement or absolute precision/recall numbers.

What they found 3

  1. FlowArk reduces end-to-end LLM API cost by 26.83% compared with standard OpenCode.

    “FlowArk-enabled OpenCode reduces end-to-end LLM API cost by 26.83%.”

  2. Under a $100 budget, FlowArk completes 1,060 tasks versus 776 for the baseline, a 36.66% throughput increase.

    “under a USD 100 budget, FlowArk completes 1,060 data-flow analysis tasks, compared with 776 tasks for standard OpenCode.”

  3. Knowledge management adds $44.00 cost but the analysis-side saving exceeds it.

    “FlowArk lowers the OpenCode analysis cost from $603.49 to $397.59 and adds $44.00 for knowledge management.”

Caveats 1

  • The knowledge-management component incurs an additional $44.00 cost, partially offsetting the savings.

What’s new here 4

  • Introduces runtime-context-triggered, rule-based matching of reusable analysis knowledge instead of agent-initiated memory queries.
  • Implements Selective Knowledge Distillation that extracts evidence-backed, bounded, actionable knowledge candidates from completed analysis histories.
  • Packages candidates with explicit matching rules and downstream-code hints to enable precise injection.
  • Provides Context-Aware Runtime Knowledge Injection that injects compact knowledge blocks before re-analysis, reducing token and API usage.