Preprint · 2026

CodeHOI

Code with Agents for Physically Plausible 4D Hand-Object Interaction

Seonghwan ParkInho ChangMin-Gyu Park

Korea Electronics Technology Institute (KETI)

Paper Code soon BibTeX

TL;DR. CodeHOI writes physically plausible 4D hand-object interaction as a program. Agents build each object with its own physics, specify the hands by their contacts, simulate each kind of matter with an established physics solver and verify the result against physical laws. One framework thus covers both reconstruction and generation across rigid, deformable, co-dimensional and flowing matter.

4D Hand-Object InteractionCoding AgentsPhysics Simulation

Input

Evaluator Agent

    Program

    Program excerpts and reviews are verbatim from each run.

    Method

    Three agents write, run and check one program

    Each stage is a closed loop of writing, evaluation and revision that ends when a round is accepted or the revision budget is spent.

    Overview of CodeHOI on one run. From a photograph and the instruction to lift a mug by its handle, the Object Agent builds the mug with named parts, the HOI Agent assigns roles to the parts, plans keypoints and poses the MANO hand, and the Evaluator Agent returns round 0 because the index finger penetrates the handle and accepts the revised round 1.
    1

    Object Agent

    Builds each object at real size with named parts, joints and its own physics.

    2

    HOI Agent

    Specifies each hand by its contacts, fits MANO to them and simulates how each object responds.

    3

    Evaluator Agent

    Checks each result by measurement and from its renders, then accepts it or returns a review.

    An established solver for each kind of matter

    Rigid objects follow the grasping hand or rigid-body dynamics, and non-rigid matter runs on the solver of its regime. All solvers share one scene and the same hands, so a single program can mix kinds of matter.

    MPMPlastic and granular matter

    Dough, slime and grains that lose their rest shape.

    FEMElastic solids

    Soft bodies that recover their rest shape.

    XPBDCo-dimensional matter

    Cloth, rope and paper, thinner than a grid cell.

    FLIPLiquids

    Thin, incompressible liquids such as water.

    4D HOI Reconstruction

    From a single RGB video

    CodeHOI recovers the hands, the objects and the state of the matter in every frame.

    4D HOI Generation

    From an image, a 3D scene or text

    CodeHOI writes an interaction that follows an instruction, where success hinges on how the matter responds.

    Transfer to Simulation

    To dexterous robot hands in another physics engine

    Robot hands in Genesis follow the hand motion without a learned policy, and the engine simulates each object with the physics it carries.

    Reference: the CodeHOI result. Tracking: SharpaWave hands on Franka arms in Genesis.

    CodeHOI-Bench

    100 tasks across four kinds of matter

    CodeHOI-Bench comprises 20 real-world reconstruction clips and 80 generation tasks, balanced across the four kinds of matter.

    Clips and tasks per inputOne square per clip or task, one row per kind of matter.

    RigidDeformableCo-dimensionalFlowing

    Generation with each backbone

    Full table

    Four frontier models serve as the backbone under identical instructions and tools. A task is solved only if all of its hidden success conditions hold without a physical violation.

    Citation

    BibTeX

    @article{park2026codehoi,
      title   = {CodeHOI: Code with Agents for Physically Plausible 4D Hand-Object Interaction},
      author  = {Park, Seonghwan and Chang, Inho and Park, Min-Gyu},
      journal = {arXiv preprint arXiv:2611.31976},
      year    = {2026}
    }