Putting LLMs to Work in Software Engineering: From Process Speedups to Evidence-Based Validation

    This article argues that the value of large language models in real development is measured not by how strong a model is, but by whether engineering tasks actually get solved within an evidence-driven, bounded workflow. It proposes four evaluation criteria—problem localization, solution quality, verification, and delivery—and demonstrates them through two general scenarios: optimizing the workflow of a mobile spatial-measurement tool and validating game balance and rendering. It shows how to build an end-to-end time ledger, review optimizations alongside business constraints, require every recommendation to be falsifiable, organize models into a solution-review-verification pipeline, rely on batch simulation rather than intuition for game numbers, and establish unified acceptance and rollback mechanisms before release. The core takeaway is an evidence loop: adopt changes that are supported by real data, tested against counterexamples, and safe to ship and roll back.

    1. Reframe “How Strong Is the Model?” as “Was the Task Actually Solved?”

    A common way to evaluate large language models is to give the same problem to different models and compare the completeness and quality of their answers. But in real development, producing a recommendation that looks professional is only the starting point of the work.

    The problems developers actually need to solve usually include: why users take too long to complete a task, whether a performance optimization introduced data errors, whether an interaction change breaks the payment and trial rules, and whether a set of game parameters stays stable across a large number of matches. None of these can be reliably concluded from language alone.

    So the more meaningful object of evaluation is not the model itself, but the “engineering workflow with the model involved.” The criteria can be summarized in four points:

    • Problem localization: Does it find the real problem based on code, logs, and business rules?
    • Solution quality: Does it explain constraints, trade-offs, risks, and applicable conditions?
    • Verification: Does it propose executable experiments and correctly interpret the results?
    • Delivery: Does it produce changes that can be reviewed, tested, and rolled back?

    This article focuses on two general scenarios: workflow optimization for a mobile spatial-measurement tool, and numerical and rendering validation for a small game. The point is not to rank a particular product, but to show how to bring a large model into a working system that has evidence and boundaries.

    2. Case One: A Spatial-Measurement Tool—Break Down the Workflow Before Talking About Speed

    Imagine a mobile spatial-measurement tool: users collect room information with a device that has depth-sensing capability, and the app then generates a 2D floor plan and a 3D structure. Users can adjust wall dimensions, link on-site photos, and export a report.

    For larger homes, the team wants to shorten whole-house processing time while keeping the underlying recognition capability unchanged. This need looks clear, but it first requires answering a question: what does “faster” actually mean?

    It could mean:

    1. Less time from starting collection to seeing the first drawing.
    2. Less time from entering the app to exporting the complete report.
    3. Fewer steps, with less repeated confirmation.
    4. More rooms completed in the same amount of time.
    5. Fewer stalls and failures during long-running sessions.

    These goals are not equivalent. A fast first drawing that then requires a lot of correction may not improve on-site efficiency. A drop in background processing time does not mean the user’s total time drops accordingly.

    2.1 Build an End-to-End Time Ledger

    The first step is not to have the model change code immediately, but to break down the business chain:

    Enter task → permissions and device check → room collection → data organization → graphics generation → manual correction → photo linking → report export.

    Each stage should record start, end, result status, and any necessary context—for example, the number of rooms, whether collection was interrupted, whether a retry occurred, and whether the final report was generated successfully. Logs should avoid writing sensitive information such as home addresses or photo content directly.

    For a roughly serial workflow, total time can be expressed as:

    Total time = processing time of each stage + user operation time + waiting time.

    If the workflow includes parallel tasks, you cannot simply add up the time of each task; instead, you should analyze the critical path that determines the completion time.

    This step matters: if graphics post-processing accounts for only a small portion of total time, then even significantly speeding it up may yield limited benefit for the whole-house task. What may be more worth checking is the repeated confirmation between rooms, the waiting caused by synchronous saving, and the low-value operations that must be completed before report export.

    You should not extrapolate a single observation into a conclusion for all apps. Different devices, house structures, and algorithm implementations all change where the bottleneck is, and this must be confirmed with real data.

    2.2 Observe Machine Time and User Time Together

    Performance diagnosis often focuses only on processor usage, memory, and execution time, while ignoring the cost of user actions.

    For example, on-site staff may have to exit the collection screen, enter a list, name the room, and then start the next collection for every room they measure. These actions may take longer than the post-processing itself. A large model is well suited to help the team connect UI states, operation paths, and logs to find repeated labor in the workflow.

    But the model can only analyze based on the information provided. Without UI state, event logs, or user observation records, its “reduce operations” suggestions are only hypotheses to be verified, not facts already discovered.

    3. Requirements Optimization Must Be Reviewed Together With Business Constraints

    A technically feasible solution is not necessarily ready to ship.

    Take “automatically generate and export a report after collection” as an example. It may reduce the number of clicks, but it also changes the semantics of report preview, payment confirmation, export-count statistics, and failure retries. So the material submitted to the model cannot be source code alone; it should also include business constraints.

    It helps to put together a constraints list:

    • Which features can be adjusted, and which underlying behaviors must be preserved.
    • When users can preview, and when they can officially export.
    • Which operations affect usage counts or entitlement status.
    • How to recover after interruption, cancellation, and failure.
    • Who is responsible for saving local data versus remote data.
    • Which information must not enter an external analysis environment.

    On this basis, three types of optimization can be prioritized.

    3.1 Reduce Repeated Operations, Not Necessary Validation

    Information that can be inferred from the current task context can be pre-filled by default and allowed to be edited. Non-critical fields can be filled in later. But operations that affect measurement results, file ownership, or entitlement status must not be silently skipped just to save a step.

    3.2 Shorten Blocking Waits, Not Hide Failures

    If some tasks do not need to block the next operation, background execution can be evaluated. The prerequisite is that there is no data dependency between tasks that must be completed immediately, and that the app can clearly present pending, failed, and retry states.

    3.3 Separate Preview From the Final Deliverable

    When business rules allow, you can first show a preview sufficient to support on-site judgment, then complete the subsequent processing. It must be clear that the preview is not the final result, and unfinished structure or dimension information must not be disguised as confirmed data.

    4. The Focus of Performance Optimization: Make Every Recommendation Falsifiable

    “Switch to async,” “add a cache,” and “reduce refresh frequency” are common suggestions, but they are not inherently correct answers.

    For each optimization, the model should be required to give a complete chain of reasoning:

    Symptom → Evidence → Hypothesis → Change → Expected Result → Verification Method → Rollback Condition.

    For example, UI jank may be related to too much work on the main thread, but it could also come from frequent graphics rebuilding, oversized temporary objects, or repeated refreshes. Without an execution trace and resource records, you cannot directly assert that the problem comes from thread arrangement.

    You can use a task description like the following to constrain the analysis:

    First distinguish observed facts from speculation. Based on the logs and code, list possible bottlenecks and state what evidence is still missing. Propose only small-scope changes that can be independently verified, and list correctness risks, test methods, and rollback conditions. Do not describe tests that were not run as having passed.

    This requirement is more likely to produce reviewable results than “help me make the app faster.”

    4.1 Typical Hidden Risks of Going Async

    Async tasks may improve responsiveness, but they can also introduce state confusion. For example, after a user switches rooms, the previous room’s result comes back; if the callback still writes to the current screen, cross-task contamination occurs.

    During review, at minimum check:

    • Does the returned result carry a task identifier and version information?
    • Is it confirmed that the task is still valid before the result is written?
    • Can a result still be submitted after the user cancels?
    • Do multiple triggers cause duplicate saves?
    • Is failure retry idempotent?
    • Does the screen still hold unnecessary resources after being destroyed?

    These questions show that performance optimization and correctness verification cannot be treated as two unrelated tasks. Saving waiting time while occasionally writing data to the wrong place is usually not an effective optimization.

    5. Organize Large Models Into a “Solution–Review–Verification” Pipeline

    Large models may perform differently in requirements analysis and code review, but it is unwise to harden this difference into a permanent trait of a certain class of models. A more robust approach is to assign different responsibilities within the workflow.

    5.1 The Solution Role: Propose Executable Changes

    Provide the business goal, constraints, key code, and desensitized logs, and require output of:

    • Problem breakdown.
    • Confirmed facts and hypotheses to be verified.
    • Alternative solutions and their trade-offs.
    • Minimum change scope.
    • Acceptance metrics.

    5.2 The Review Role: Find Counterexamples and Omissions

    The reviewer should not merely judge a solution as “reasonable,” but should raise counterexamples for scenarios such as cancellation, retry, concurrency, weak networks, permission changes, and abnormal exits.

    The review can be handled by another model session, or driven by an independent prompt on the same model. But this role separation does not mean the conclusions are independently reliable: different outputs may still share the same wrong assumption, so human review and real testing must be retained.

    5.3 The Verification Role: Organize Experiments and Assemble Evidence

    The verification stage requires a real execution environment. A model can report run results only after it has been granted the corresponding tool access and has actually executed the tasks. Without these conditions, it can write a test plan and analyze existing output, but it cannot claim to have completed a build, on-device testing, or batch simulation.

    It is recommended that reports clearly distinguish:

    • Tests that were executed and produced results.
    • Tests that were generated but not yet run.
    • Items that cannot be verified due to environment limitations.

    This avoids mistaking “text that looks like a test report” for engineering evidence.

    6. Case Two: Game Numbers—Rely on Batch Simulation, Not Intuition

    In a small game, a large model can help organize damage, cooldowns, resource acquisition, and win/loss rules, and can assist in designing simulation experiments. But whether “a certain character is too strong” cannot be judged from the skill description alone.

    First, define the evaluation question: is it that the two sides’ win rates are imbalanced, or that a certain strategy is overly dominant? Is it that the average match is too long, or that a small number of extreme matches cannot end?

    Second, establish repeatable experimental conditions:

    • Fix the rules version.
    • Save the parameter configuration.
    • Record the random seed.
    • Cover different initial states and strategy combinations.
    • Preserve the event trace of abnormal matches.

    Evaluation metrics can include win rate, match-duration distribution, resource consumption, and the proportion of abnormal endings. The number of matches alone is not a guarantee of sufficiency; you must also account for result variance and the size of the difference you expect to detect.

    In particular, guard against one misconception: a flawed simulation strategy being explained as a game-rule problem. For example, if the automated match logic does not use a certain skill reasonably, that skill performing weakly in simulation does not prove it is also weak when real players use it.

    Therefore, numerical simulation should complement manual playtesting. Simulation is responsible for expanding coverage and finding anomalies; manual playtesting is responsible for checking strategy realism, understandability, and the experience.

    Rendering performance should be verified separately. Normal logic simulation does not mean smooth visuals on real devices. You need to watch frame-time distribution, resource peaks, object counts, and scene switching, and avoid using average frame rate alone to mask short-term stutters.

    7. Establish a Unified Acceptance and Rollback Mechanism Before Release

    Whether it is a measurement tool or a small game, the final standard should be consistent.

    Functional correctness: Can the original critical paths still be completed, and are cancellation, recovery, and retry reliable?

    User efficiency: Have end-to-end time and operation counts improved, rather than just one function being faster?

    Resource behavior: Is there any regression in memory, battery, heat, and long-running state?

    Data consistency: Do duplicate submissions, async returns, and abnormal exits cause loss or overwriting?

    Observability: After release, can anomalies be detected and located to a version, stage, and scenario?

    Rollback capability: Can the new flow be turned off and the old logic restored; when data structures change, is compatibility considered?

    Verification samples should cover different device capabilities, task scales, and abnormal conditions, while keeping test inputs, versions, and execution methods as consistent as possible. When reporting results externally, state the sample scope and limitations, and do not package a local improvement as a universal gain.

    8. Conclusion: The Core of Real Application Is an Evidence Loop

    The most practical value of a large model is not to declare “which solution is best” on behalf of developers, but to help the team complete problem breakdown, solution comparison, risk discovery, and experiment organization faster.

    In workflow optimization, it should put technical time and user operations into the same time ledger; in engineering review, it should actively look for counterexamples around async, concurrency, and business boundaries; in simulation experiments, it should clearly distinguish rule behavior, strategy flaws, and statistical uncertainty.

    Ultimately, what is worth adopting is not the most confident-sounding answer, but the change that is supported by real data, tested against counterexamples, and safe to ship and roll back. Build this loop, and a large model can go from “being able to discuss technology” to “helping deliver engineering results.”