論文解説
Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss
LLM API間の会話保持テスト:静かな情報損失を検出するルールベースのオラクル
- 課題 変換されたLLM APIのリクエストは、スキーマを通過しても、役割、ツール呼び出しのエラー状態、生成制御といった会話情報を静かに失うことがあります。
- 手法 元のペイロードと変換後のペイロードを共通の中間表現ConvIRに変換し、27個の保持ルールで情報損失を分類します。
変換後も会話情報が残るかを問う理由
LLMアプリケーションでは、複数の提供元のAPIを、バンドルされた変換器、ローカルのプロキシ、共有ゲートウェイを経由して呼び出すケースが増えています。この場合、変換後のリクエストが対象APIのスキーマを通り、成功の応答が返ってきても、呼び出し元が伝えようとした役割、ツール呼び出し結果のエラー状態、生成制御といった情報が、静かに失われることがあります。たとえば、AnthropicのTODO_is_errorフラグがGeminiへ移される際に抜け落ちると、ペイロードは正常でも、モデルはツールが失敗したことを受け取れません。スキーマ検証と構造比較だけでは、こうした損失と正当な表現の違いを区別しにくいです。
この論文では、変換の前後で会話情報が保たれているかを、参照変換や追加のモデル呼び出しを使わずに、決定的に検査する問題を扱っています。
islossのConvIR比較と保持ルール
islossは、元のペイロードと変換後のペイロードを、それぞれ共通の中間表現ConvIRに変換します。ConvIRは、順序付きの会話イベントのリストと、呼び出し元が指定した生成制御から構成されます。各イベントには、話者、内容の種類、ペイロード、is_errorなどのフラグが記録されます。この表現の上で27個の保持ルールを適用し、2つの表現の保護対象の属性を比較します。違反はT1の潜在的な欠陥、対象APIの制限による劣化やシステムからユーザーへの役割の降格はT2、許容される表現の変更はT3に分類されます。重要な点は、表現の違いを情報損失として扱わないよう、比較の前に許容される変換を先に適用することです。
検査の対象は、ConvIRに明示的に表された会話情報に限られ、完全な意味的同等性を主張するものではありません。

Table 1 :Terms used to interpret the results.Rule definitions and detailed counting conventions appear in Secs. 3–5 and Appendix A.1.
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの4ページ目から図の部分を抽出しています。
Table 9 :How the three APIs encode the tested constructs.† marks vendor documentation that is silent or self-contradictory.‡ marks a construct without a native representation in that format; carrying it requires another encoding, declaring a loss, or refusing the input.
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの32ページ目から図の部分を抽出しています。
Table 10 :Documented mapping conventions and request-side violation dimensions. L01–L08 describe permitted mappings or explicit degradation allowances;V01–V10 identify protected dimensions. A documented degradation is not equivalent to preservation. Each row identifies its vendor source, with the quoted text retained in the replication archive. This reference table supports, rather than exhausts, the executable isloss catalogue.
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの33ページ目から図の部分を抽出しています。欠陥注入による評価と誤検知
主な検証は、ルールを固定したうえで、仕様に基づいて作成された6つのブラインドバッチで行いました。有効な計画上の欠陥125件のうち95件を検出し、再現率は76.0%でした。許容される表現の変化100件のうち2件を誤って指摘し、誤検知率は2.0%でした。再現率と誤検知率は分母が異なるため、両方を合わせて読む必要があります。この比較は、著者らが測定したheld-out集合に関するものです。

Table 3 :Detection accuracy of isloss and comparison with alternative judges.The primary held-out evaluation pools six specification-based blind batches authored after the checking rules were fixed; the extended evaluation adds four later blind batches (batch map: Appendix A.3). Intervals are Wilson 95% CIs; J is recall minus false-alarm rate, with the strictly cross-dialect value in parentheses. Without a reference translation, isloss has the highest observedJ among the tested judges. With a target-dialect reference, normalised diff and two Gemini judges score higher. Full results: Table 12 and Table 13.
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。
Table 12 :Detailed assessment of checker accuracy.The main-text summary appears in Table 3; additional judge comparisons appear in Table 13. “Before the run” means that the protocol was written before execution and committed with the results. “Killed” means that a mutant produces a finding absent from the unmodified translator. Final isloss detection counts useT1 findings; exploratory results with other scoring criteria are identified separately. For allowed-change controls, “packed” denotes pairs as constructed, five of which carry a packing-script placeholder signature; “filled” denotes the post-hoc restoration of those signatures. These controls should not be conflated with the untouched primary held-out set.
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの37ページ目から図の部分を抽出しています。合成リクエストスイートの主な結果
主なリクエスト実験では、Anthropicのリクエストから作成した51個の静的に有効なリクエストの形を、14個の変換経路に適用し、685件の完了した変換を得ました。そのうち127件(18.5%)が静的なターゲット検査を通過しながら、prompt、role、toolの情報に回避可能な変化を静かに持ち込みました。この割合は合成スイート内での測定であり、実際のトラフィックにおける損失の頻度を推定した値ではありません。主な発見は、ひとつの発見が静的検査、静かさ、回避可能性、対象の情報カテゴリをすべて満たした場合に数えられるため、T1の発見があるというだけでは含まれません。

Table 4 :Units and denominators for the main results.Acellis one request or reply tested on one translation path. Each row identifies the unit, denominator, subjects, and location of a result. The full map, including the corpus and supporting live or human evidence, is Table 15 (Appendix B.1).
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの12ページ目から図の部分を抽出しています。
Table 5 :Meaning changes in the main request census.All 51 source shapes pass static checks; 13 are accepted live byclaude-sonnet-4-6. T1/judged counts cells with undeclared changes before target-validity filtering; Static counts those passing offline target checks.Cand. gives pre-review candidate counts; the reviewed catalogue is reported in Section 6.1. ForLiteLLM->OpenAI, the pre-serialisation dictionary has 37 T1 cells that fail the target checks: all 37 retainthinking_blocks, and 12 also retaintop_k. At the serialisedhosted_vllmbody, which stripsthinking_blocks, 25/37 pass.
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの15ページ目から図の部分を抽出しています。
Table 17 :Sensitivity of the main census to validity and counting choices.N is the number of judged cells andK the number of request-shape clusters; variants(a)–(g) change the assumptions specified in each row.
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの43ページ目から図の部分を抽出しています。
Table 18 :Request counts under static checks, endpoint acceptance, and mechanism coverage. Stratum 1 is the main suite; Strata 2a–2c are acceptance subsets rather than a nested sequence. Static T1 counts meaning changes whose translated bodies pass static target checks; it does not establish live acceptance or the absence of a warning. The primary column requires one finding to satisfy all criteria.†Removing the LLM-Rosetta-to Gemini list-valued tool-result re-encoding candidate changes the cell-level conjunction to 140/685 (101/532 after deduplication) but leaves the primary counts 127/685 and 88/532 unchanged. ‡Both-end acceptance covers eight target paths, four Anthropic and four Gemini; OpenAI targets are checked offline only.§The mechanism-coverage row uses the original 685-cell suite: 240/685 cells carry at least one of nine mechanisms with a live-probe effect, not 240 individually live-tested translations. Its percentages use the corresponding Stratum 1 column totals. Finding-aligned coverage of the primary findings is 116/127 (91.34%); counting a mechanism merely present elsewhere in the same cell would instead give 120/127 and is not the reported primary-coverage definition.
出典 · CC BY 4.0 · Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang · Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss · 論文の図を引用 · 元のPDFの44ページ目から図の部分を抽出しています。振る舞いへの影響と適用範囲の限界
行動実験は、選ばれたメカニズムとタスク、そして複数のモデルで測定しました。検出された損失の一部では、モデルの目標タスクの結果が変わりましたが、タスクレベルのGSM8K統制実験では、統計的に検出可能な精度の低下は見られませんでした。そのため、すべての情報損失がモデルの振る舞いを変えると結論づけることはしていません。また、islossが検査するのは、ConvIRに明示された情報と保持ルールが扱う属性だけです。リアルタイムエンドポイントの受け入れの可否や、ベンチマークスコアの変化は別の問題として残ります。著者らは、ベンチマークスコアやリーダーボードの順位への影響は直接測定していないと述べています。
論文情報
- 著者
- Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang
- 学会・ジャーナル
- arXiv · プレプリント
- 公開日
- 2026年11月11日
- 登録日
- 2026年11月13日
- 更新日
- 2026年11月11日
- バージョン
- v1
- arXiv
- 2611.15543
- カテゴリ
- cs.SE · cs.AI
- ライセンス
- CC BY 4.0
- 掲載内容
- 論文情報・解説・論文の図
この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。
アブストラクト
LLM applications increasingly rely on translators and compatibility layers to move conversations across APIs. Yet a translated request can be accepted by the target API while silently losing information about instruction roles, tool interactions, error states, or generation controls. We introduce isloss, a deterministic oracle for testing conversation-information preservation across LLM API translations. It maps source and translated requests and replies to a shared intermediate representation, ConvIR, and applies explicit rules to distinguish legitimate representation changes from information loss. Unlike schema validation or reference-based differential testing, isloss requires neither a reference translation nor additional model calls. It also distinguishes avoidable loss from degradation caused by target API limitations. We evaluate isloss using specification-based fault injection, human review, and experiments on translators, gateways, and client libraries. On held-out tests, it detects 95/125 planted faults (76.0%) with 2/100 false alarms (2.0%). Across a synthetic request suite spanning six configurations of five translator codebases, 127/685 completed translations (18.5%) pass static target checks while silently changing prompt, role, or tool information in ways the target API could have preserved. In translated replies, 203/558 streams (36.4%) cause exceptions or silent corruption in at least one tested official OpenAI SDK. Targeted experiments across six models show that translation-induced changes can alter model behaviour when tasks depend on the affected information. These results establish conversation preservation as a distinct correctness requirement for reliable LLM interoperability, agent execution, and model evaluation.
この論文を引用
Xin Liu, Xu Han, Yuxin Wang, Haoran Song, Mingjian Zhao, Lei Wang (2026). Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss. arXiv:2611.15543v1. https://arxiv.org/abs/2611.15543v1
BibTeX
@misc{liu2026testing,
title = {{Testing Conversation Preservation Across LLM APIs: A Rule-Based Oracle for Detecting Silent Information Loss}},
author = {Xin Liu and Xu Han and Yuxin Wang and Haoran Song and Mingjian Zhao and Lei Wang},
year = {2026},
eprint = {2611.15543},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.15543v1}
}