Open-Source LLM Cross-Modal Testing: Financial Report Analysis and Game Recreation

    This article explores the cross-modal capabilities of open-source Large Language Models (LLMs) through two practical tests: analyzing financial report screenshots and recreating mini-game mechanics from video footage. It details the workflows, data masking requirements, prompt engineering strategies, and a 6-step video-to-code pipeline, highlighting model performance, common failure modes, and verification standards for reliable implementation.

    Part 1: Financial Report Screenshot Analysis: Multi-Table Alignment and Reasoning

    Financial analysis is an excellent scenario for testing the practical utility of multi-modal models. A company’s operational status is typically spread across balance sheets, income statements, and cash flow statements, requiring manual page-turning and item-by-item cross-referencing. We inputted a set of financial report screenshots into an open-source LLM to observe whether it could accomplish three tasks: extract key figures, establish cross-table associations, and provide business-level judgments.

    Data masking is a prerequisite before testing. Company names, bank accounts, customer, and supplier information in the screenshots should be masked or deleted, retaining only the accounts and amounts necessary for analysis. Uploading unmasked financial data to external models poses a data leakage risk, which should be prioritized over the model’s capability itself.

    From the results, the model’s performance varied across three aspects:

    1. Multi-chart data alignment: The model identified the major accounts in each table and matched the values of the same metric across different reports, such as net profit and net cash flow from operating activities. However, the extraction phase still experienced digit misalignment, missing decimal points, or unit confusion. Therefore, every figure must be verified against the original table.
    2. Causal logic reasoning: The model performed basic arithmetic and year-over-year (YoY) or month-over-month (MoM) calculations, comparing profit, cash flow, and shareholder structures. In this sample, it pointed out an inconsistency between the growth shown in the income statement and the cash flow status. Such insights are valuable for reference, but the basis for these conclusions requires manual tracing back to specific accounts.
    3. Business insight generation: The model output a qualitative analysis linking profit growth, changes in net profit attributable to parent company shareholders, and cash flow pressure. This type of text is suitable as an analysis draft but should not be used directly as a basis for investment or operational decisions.

    To illustrate the division of labor between the model and other tools, the table below compares three approaches.

    Approach Typical Input Typical Output Common Failure Modes Manual Review Points
    Traditional Vision-Language Model Single image Image description, simple recognition results Weak cross-image association, easily misses items in complex tables Every recognition result
    Dedicated Table OCR Scanned files or PDFs Structured table data Field alignment errors with large layout variations Headers and total rows
    Next-Gen Open-Source LLM Multiple screenshots + prompts Data alignment and reasoning text Digit misalignment, reasoning leaps, hallucinated explanations Digit sources and causal chains

    For prompt design, it is recommended to split the task into two steps. Step 1 only requires extracting numbers and outputting them in a table. Step 2 performs the analysis based on the confirmed table. By separating these two steps, errors become easier to locate.

    Part 2: Video-to-Code: Mini-Game Mechanism Recreation

    The financial report scenario tests the model’s understanding of static images. Game recreation, on the other hand, requires the model to understand temporal changes from a video and write them into runnable code. The test material was a screen recording of a mini-game. Before use, the video’s copyright and licensing status must be confirmed; unauthorized materials should not be input into external models.

    The original test did not fully disclose the frame extraction parameters, model version, and headless browser dependencies. Therefore, the workflow below provides suggested starting settings. During actual execution, every value used should be recorded to ensure reproducibility.

    Suggested starting settings are as follows: frame extraction rate of 1 to 2 frames per second, resolution kept just high enough to read the interface text; code output limited to a single-file HTML, using Canvas2D or Three.js for graphics rendering; headless browser using Playwright or Puppeteer with a fixed version number.

    A minimum reproducible workflow includes six steps, each with acceptance criteria:

    1. Frame extraction: Key state changes (clicks, upgrades, unlocks, pop-ups) should all have corresponding frames. Acceptance criteria: manual spot check to confirm no missing frames at key moments.
    2. Mechanism abstraction: The model outputs a mechanism list, including the core loop, numerical rules, and win/lose conditions. Acceptance criteria: each mechanism can be mapped to a specific time segment in the video.
    3. Code generation: Output a single-file HTML. Acceptance criteria: the page loads normally without uncaught console errors.
    4. Headless browser screenshots: Automatically operate the page and take screenshots. Acceptance criteria: screenshots cover every item in the mechanism list, and input operations trigger expected changes.
    5. Fix: Modify code based on screenshots and console logs, recording the reasons and changes for each round of fixes. Acceptance criteria: the issue list is closed item by item without introducing new errors.
    6. Delivery: Submit code, screenshot sequences, and test logs. Acceptance criteria: others can re-run the test based on the documentation.

    In this sample, the model completed the closed loop from frame extraction to delivery. It summarized the mechanics from the video: clicking to produce coins, upgrading passive income, building shops, recruiting staff, and unlocking higher-level buildings.