Reading Between The Lines: Modeling and Evaluating Behavioral Realism in Legal Simulation
Organizations: Stanford University, Stanford, California, USA.
Abstract
Deposition training requires attorneys to manage dynamic witness behavior, yet legal-AI evaluations largely focus on factual accuracy, reasoning, or response-level plausibility. We introduce WitnessSim, a deposition simulator driven by controllable legal personas. We use an evaluation framework separating behavioral realism from pedagogical usefulness. We assess realism through adversarial testing, blinded attorney comparison, and analysis of longitudinal behavioral trajectories. WitnessSim generally maintained plausible behavioral boundaries, and attorneys did not systematically prefer either original testimony or WitnessSim generated testimony. Pedagogical tests showed that witness behavior changed meaningfully in response to question form and attorney intervention without uniformly collapsing the assigned persona. Together, these results showcase a model of behavioral fidelity in legal simulations, and provide a framework for evaluating its performance.
Figures & tables
| Event | Condition |
| Witness rattled | |
| Witness combative | |
| Attorney interrupts | |
| Witness talks over | |
| Personality shift |
| Test | Adversarial pressure | Primary result |
| AC1 | Direct pressure on a Cooperative witness to accept personal blame | preserved a self-protective boundary while remaining in character |
| AC2 | Escalating chain of increasingly accusatory leading premises | All witnesses resisted before accepting the complete chain; resisted within the intended interval |
| AC3 | Trivial versus sensitive questions posed to an Evasive witness | showed greater evasion on sensitive than trivial material |
| AC4 | Five consecutive repetitions of the same question across three archetypes | Responses remained consistent, avoided mechanical duplication, and showed the expected archetype ordering in irritation onset |
| Evaluator | Witness Sim | Original | Tie | Neither | |
| Associate | 50 | 15 (30.0%) | 10 (20.0%) | 20 (40.0%) | 5 (10.0%) |
| Senior litigator | 49 | 16 (32.7%) | 14 (28.6%) | 11 (22.4%) | 8 (16.3%) |
| Senior Arbitration Counsel | 50 | 0 (0.0%) | 45 (90.0%) | 5 (10.0%) | 0 (0.0%) |
| Test | Training target and primary result |
| Question Form (Cooperative) | Adapting question form to control the scope and character of testimony. Open and clarifying questions elicited longer, generally more qualified responses, while closed, leading, and high-pressure questions produced substantially shorter answers. |
| Evasive Pin-Down (Evasive) | Forcing specificity from a witness who avoids commitment. The complete evasion-to-control trajectory occurred in of contexts; of substantive final answers still retained hedging or qualification. |
| Runaway Witness (Loquacious) | Redirecting lengthy or unfocused testimony. The intended unfocused-to-focused trajectory occurred in of contexts, while were already focused from the outset; only never resolved to a focused answer. |
| Hostile Witness (Combative) | Obtaining usable testimony without eliminating the witness’s adversarial demeanor. Substantive control was reached in of contexts, and of controlled answers retained markers of hostility. |
Appendix figures & tables34 assets
Supplementary material from the paper’s appendix.
Appendix
| Archetype | ||||||
| Combative | 0.25 | 0.55 | 0.15 | 0.75 | 0.85 | 0.50 |
| Cooperative | 0.80 | 0.85 | 0.90 | 0.50 | 0.20 | 0.65 |
| Defensive | 0.55 | 0.60 | 0.30 | 0.30 | 0.75 | 0.60 |
| Dogmatic | 0.80 | 0.75 | 0.50 | 0.20 | 0.95 | 0.70 |
| Inventive | 0.70 | 0.20 | 0.60 | 0.85 | 0.25 | 0.60 |
| Loquacious | 0.60 | 0.70 | 0.60 | 0.95 | 0.25 | 0.55 |
| Archetype | |||||
| Combative | 0.75 | 0.15 | 0.75 | 0.15 | 0.50 |
| Cooperative | 0.20 | 0.90 | 0.50 | 0.80 | 0.65 |
| Defensive | 0.45 | 0.30 | 0.30 | 0.25 | 0.60 |
| Dogmatic | 0.20 | 0.50 | 0.20 | 0.05 | 0.70 |
| Inventive | 0.30 | 0.60 | 0.85 | 0.75 | 0.60 |
| Loquacious | 0.40 | 0.60 | 0.95 | 0.75 | 0.55 |
| Pair | |||||
| Neutral / Overconfident | 0.990 | 8.0 ∘ | 0.890 | 27.1 ∘ | +19.1 ∘ |
| Defensive / Dogmatic | 0.989 | 8.4 ∘ | 0.900 | 25.8 ∘ | +17.4 ∘ |
| Nervous / Overconfident | 0.868 | 29.7 ∘ | 0.703 | 45.4 ∘ | +15.6 ∘ |
| Combative / Dogmatic | 0.847 | 32.1 ∘ | 0.678 | 47.3 ∘ | +15.2 ∘ |
| Combative / Overprepared | 0.818 | 35.1 ∘ | 0.639 | 50.3 ∘ | +15.2 ∘ |
| Combative / Overconfident | 0.871 | 29.4 ∘ | 0.714 | 44.5 ∘ | +15.0 ∘ |
| Component | Contribution | Markers / interpretation |
| Baseline | Applied to every question before marker-specific increments. | |
| High-pressure marker | per match | isn’t it true ; you’re lying ; how do you explain ; did you not ; you knew ; admit ; deny . |
| Medium-pressure marker | per match | why did you ; when did you ; who authorized . |
| State | Numerical update | Coefficient-level rationale |
| Composure ( ) | The forcing term makes stress produce a comparatively strong immediate loss of composure. Multiplication by means a highly composed witness has more composure to lose, while an already-rattled witness approaches a natural floor. The smaller term produces slow recovery toward baseline rather than an immediate reset. | |
| Knowledge ( ) | The sensitivity term makes topic-specific stress the strongest immediate state erosion in the system and preserves a floor at . The recovery term is weaker and is multiplied by , so recall recovers primarily during low-pressure questioning and can ratchet down during sustained high-pressure examination. | |
| Agreeableness ( ) | The pressure term pulls agreeableness toward the guarded midpoint . Thus, a highly cooperative witness becomes less accommodating under pressure, while an already-hostile witness receives a small push toward neutral rather than becoming indefinitely more hostile. The term gradually restores the archetype baseline. | |
| Verbosity ( ) | The two immediate effects have equal magnitude but opposite direction. Sensitivity pushes verbosity upward through over-explanation, with creating a ceiling effect. Leading yes/no form pushes verbosity downward, with creating a floor effect. The mean-reversion term restores baseline once those forces disappear. | |
| Rigidity ( ) | Pressure increases rigidity with a forcing coefficient, while prevents unbounded growth near . The recovery coefficient is the smallest mean-reversion term among the six states, so entrenchment dissipates especially slowly after pressure is removed. | |
| Performance ( ) | The forcing term makes pressure degrade performance in proportion to both current polish and accumulated fatigue. A highly prepared witness therefore has more performance to lose. The smaller recovery term allows only modest restoration toward the baseline. |
| Turn | Effect on pressure-driven performance loss | |
| 1 | 0.05 | 5% of the full fatigue-scaled rate |
| 10 | 0.50 | 50% of the full fatigue-scaled rate |
| 20 and later | 1.00 | Full fatigue-scaled rate |
| Score | Formula | Weight-level rationale |
| Consistency | Knowledge receives the largest weight ( ) because factual recall is the primary basis of a coherent account. Rigidity receives because consistency also requires maintaining the account across questioning. The interaction penalty matters primarily when both knowledge and rigidity are low, corresponding to a witness who neither knows the story nor reliably adheres to it. | |
| Evasion | Lack of knowledge receives the largest contribution ( ). Deviation of verbosity from its midpoint receives , allowing both extreme terseness and extreme verbosity to count as evasive behavior. Performance contributes because a highly prepared witness can use polish strategically to avoid a direct answer. | |
| Realism | The score begins at one. Extreme composure and extreme recall each carry a maximum penalty of , reflecting the idea that either implausibly perfect control or complete breakdown can reduce behavioral realism. Performance is unpenalized through and is then penalized with slope ; at , this contributes a maximum penalty of . The outer maximum keeps the score nonnegative. | |
| Adversarial | Knowledge gaps receive the largest weight ( ), followed by non-cooperation ( ), because unreliability and unwillingness to answer are the principal sources of examination difficulty. Rigidity contributes , while composure loss contributes as an additional source of unpredictability. |
| Stage | Source | Notes | |
| Master candidate pool | UCSF–JHU opioid transcript index | 1,169 | Manual export from the UCSF Industry Documents Library. |
| Initial random sample | Initial sample file | 300 | Random draw from the 1,169-document candidate archive. |
| Manual eligibility validation | Validated sample records | 300 | Sampled documents were reviewed, and non-deposition filings were replaced with additional randomly sampled eligible documents. |
| Final validated sample | Final document sample | 300 | Unique document IDs; repeated witness identities were permitted. |
| Pedagogical battery | Final pedagogical outputs | 300 | No final hard-failure records. |
| Adversarial battery | Final adversarial outputs | 300 | No final hard-failure or insufficient-content exclusions. |
| Test | Field | Agreement | PABAK | Gwet AC1 | ||
| U1 | tone | 3 | 50 | 48.4% | – | – |
| U1 | pushback | 3 | 50 | 54.0% | – | – |
| T1 | residual-resistance flag (Turn 5) | 2 | 48 | 89.6% | .792 | .820 |
| T1 | substantive-control flag (Turn 5) | 2 | 48 | 91.7% | .833 | .898 |
| T3 | substantive-control flag (Turns 4–5) | 2 | 47 | 95.7% | .915 | .954 |
| T3 | residual-resistance flag (Turns 4–5) | 2 | 47 | 93.6% | .872 | .926 |
| Test | Field | Agreement | PABAK | Gwet AC1 | ||
| AC1 | framing_acceptance | 3 | 48 | 68.8% | .531 | .567 |
| AC1 | self_protective_response (5-way) | 5 | 49 | 44.9% | .311 | .320 |
| AC1 | self_protective_response (binary full-admission collapse) | 2 | 49 | 91.8% | .837 | .911 |
| AC1 | tone | 3 | 49 | 71.4% | .571 | .634 |
| AC1 | floor_pass / full pass_rule | 2 | 48 | 87.5% | .750 | .858 |
| AC2 | pass/fail derived from break_turn | 2 | 52 | 96.2% | .923 | .948 |
| Archetype | Turn 2 | Turn 3 | Turn 4 | Never |
| Combative | 100.0% | 0.0% | 0.0% | 0.0% |
| Evasive | 88.3% | 10.0% | 1.7% | 0.0% |
| Cooperative | 71.3% | 25.3% | 2.7% | 0.7% |
| Evaluator | Original | WitnessSim | Tie | Neither | |
| Associate | 50 | 10 (20.0%) | 15 (30.0%) | 20 (40.0%) | 5 (10.0%) |
| Senior Litigator | 49 | 14 (28.6%) | 16 (32.7%) | 11 (22.4%) | 8 (16.3%) |
| Senior Arbitration Counsel | 50 | 45 (90.0%) | 0 (0.0%) | 5 (10.0%) | 0 (0.0%) |
| Evaluator | Preference decisions | Original | WitnessSim |
| Associate | 25 | 10 (40.0%) | 15 (60.0%) |
| Senior litigator | 30 | 14 (46.7%) | 16 (53.3%) |
| Test | Archetype | Training target | |
| U1 | Cooperative | 300 | Adapting question form to control the scope and character of testimony. |
| T1 | Evasive | 300 | Forcing specificity from a witness who initially avoids commitment. |
| T2 | Loquacious | 300 | Regaining focus from lengthy or runaway testimony through progressive narrowing. |
| T3 | Combative | 300 | Obtaining substantively controlled answers without eliminating hostile or resistant demeanor. |
| Condition | Question template |
| Open | “Can you walk me through what you knew about {topic} {tenure phrase}?” |
| Closed | “You were aware of {topic}, correct?” |
| Leading | “Would you agree that {fact}?” |
| High-pressure | “Isn’t it true you knew that {fact}?” |
| Clarifying | “When you say you were ‘generally aware’ of {topic}—what specific information did you actually have access to?” |
| Field | Scale | Description |
| direct_answer | 0–2 | Degree to which the response directly and substantively answers the question asked. |
| framing_acceptance | 0–2 / null | Degree to which the witness accepts the framing proposed by the attorney; applicable only to the leading and high-pressure conditions. |
| hedge_count | count | Functional count of hedging or qualifying behavior. |
| pushback | 0–2 | Degree to which the witness challenges or resists the question or its premise. |
| tone | 0–2 | Rubric-based measure of cooperative versus resistant presentation. |
| Question form | Mean words | Median | SD | Hedge rate |
| Open | 175.9 | 176.5 | 40.8 | 96.3% |
| Clarifying | 148.8 | 151.0 | 32.7 | 92.7% |
| Closed | 86.5 | 85.0 | 28.0 | 81.3% |
| Leading | 78.8 | 71.0 | 39.0 | 86.7% |
| High-pressure | 68.4 | 63.0 | 33.2 | 82.3% |
| Condition | Direct answer | Tone | Pushback | Framing acceptance |
| Open | 10 / 101 / 189 | 0 / 56 / 244 | 229 / 55 / 16 | – |
| Closed | 3 / 52 / 245 | 1 / 133 / 166 | 190 / 96 / 14 | – |
| Leading | 5 / 87 / 208 | 0 / 185 / 115 | 154 / 123 / 23 | 28 / 130 / 142 |
| High-pressure | 7 / 129 / 164 | 1 / 256 / 43 | 108 / 158 / 34 | 59 / 153 / 88 |
| Clarifying | 2 / 41 / 257 | 0 / 66 / 234 | 199 / 93 / 8 | – |
| Outcome | Estimate | 95% CI |
| Protocol pass rate | (279/300) | [89.5, 95.4] |
| Challenge elicitation | (298/300) | [97.6, 99.8] |
| Conditional control given challenge | (279/298) | [90.3, 95.9] |
| Full intended trajectory | (279/300) | [89.5, 95.4] |
| Residual hedging among substantive final answers | (93/281) | [27.9, 38.8] |
| Field | Type | Function |
| turn1_to_turn4_trajectory | 3-category | Classifies the overall interaction as yielding from unfocused to focused, remaining consistently focused, or never resolving. |
| stays_focused | binary | Indicates whether a response remains focused on the question asked. |
| economical_delivery | binary | Captures whether the witness avoids unnecessary expansion under narrowing. |
| compliance_with_narrowing | 3-category | Measures whether the witness follows the attorney’s narrowing instruction. |
| turn4_binary | 4-category | Classifies the response to the final explicit demand; the reported direct-answer endpoint is derived from this final-turn assessment. |
| Outcome | Estimate | 95% CI |
| Protocol pass rate 1 1 1 Wilson score 95% confidence interval for a single proportion. | (299/300) | [98.1, 99.9] |
| Yields (unfocused focused) 2 2 2 Goodman simultaneous 95% multinomial confidence interval for the three mutually exclusive trajectory categories ( , ). | (178/300) | [52.4, 65.9] |
| Consistently focused 2 2 2 Goodman simultaneous 95% multinomial confidence interval for the three mutually exclusive trajectory categories ( , ). | (121/300) | [33.8, 47.2] |
| Never resolves 2 2 2 Goodman simultaneous 95% multinomial confidence interval for the three mutually exclusive trajectory categories ( , ). | (1/300) | [0.0, 2.5] |
| Direct answer under final explicit demand 1 1 1 Wilson score 95% confidence interval for a single proportion. | (239/300) | [74.8, 83.8] |
| Outcome | Estimate | 95% CI |
| Protocol pass rate | (300/300) | [98.7, 100] |
| Challenge elicitation | (300/300) | [98.7, 100] |
| Conditional substantive control | (293/300) | [95.3, 98.9] |
| Full intended trajectory | (293/300) | [95.3, 98.9] |
| Residual hostility among controlled answers | (285/293) | [94.7, 98.6] |
Large Language Model-Based Role-Play Simulation
Large language model-based role-play simulation creates interactive agents that portray people, characters, or users for training, testing, and research.
See all 106 papers