Scaling-Aware Adapter for Structure-Grounded LLM Reasoning
Zihao Jing, Qiuhao Zeng, Ruiyi Fang, Yan Yi Li, Yan Sun, Boyu Wang, Pingzhao Hu
TL;DR
Cuttlefish tackles the problem of faithful, scalable structure-grounded reasoning in all-atom LLMs by introducing Scaling-Aware Patching to adapt the query-token budget to structural complexity and a Geometry Grounding Adapter to inject geometry-aware tokens into the LLM. The architecture uses an SE(3)-equivariant EGNN encoder, an instruction-conditioned anchor-patching scheme, and cross-attention-based grounding to produce modality tokens that are fused into the LLM, mitigating geometry hallucinations. Trained on GEO-AT with multimodal all-atom data, and evaluated against general LLMs and modality-specific baselines across molecules, proteins, and nucleic acids, Cuttlefish achieves consistent, across-the-board gains in structure-grounded reasoning and token efficiency. The work provides a unified, scalable framework for atom-level reasoning and releases GEO-AT and code to spur further development in all-atom grounded LLMs.
Abstract
Large language models (LLMs) are enabling reasoning over biomolecular structures, yet existing methods remain modality-specific and typically compress structural inputs through sequence-based tokenization or fixed-length query connectors. Such architectures either omit the geometric groundings requisite for mitigating structural hallucinations or impose inflexible modality fusion bottlenecks that concurrently over-compress and suboptimally allocate structural tokens, thereby impeding the realization of generalized all-atom reasoning. We introduce Cuttlefish, a unified all-atom LLM that grounds language reasoning in geometric cues while scaling modality tokens with structural complexity. First, Scaling-Aware Patching leverages an instruction-conditioned gating mechanism to generate variable-size patches over structural graphs, adaptively scaling the query token budget with structural complexity to mitigate fixed-length connector bottlenecks. Second, Geometry Grounding Adapter refines these adaptive tokens via cross-attention to modality embeddings and injects the resulting modality tokens into the LLM, exposing explicit geometric cues to reduce structural hallucination. Experiments across diverse all-atom benchmarks demonstrate that Cuttlefish achieves superior performance in heterogeneous structure-grounded reasoning. Code is available at the project repository.
