arXiv ScienceSearch

arXiv subjects

Zimu Xu

Publications and source records attributed to Zimu Xu.

3 recordsLinked to original sources

Long-Lived Characters, Local Inference: Incremental Memory Maintenance for Game NPCs

A game character should not have to reread its entire life before every conversation. For locally deployed language-model characters, however, revising a few memories can invalidate a long reusable prefix. The resulting preparation cost competes with both foreground dialogue and the maintenance of other characters. This matters especially when dialogue feeds game-defined actions and value judgments: a fluent but incorrect account of who owns an item, or whether a transfer has already happened, can corrupt the input to otherwise deterministic rules. We study incremental memory maintenance for long-lived game NPCs in a quantized Qwen hybrid recurrent-attention model. Our runtime removes superseded attention KV entries, computes replacement records at the true sequence tail, and preserves the continuing recurrent state and unchanged KV. Existing local experiments combine multi-update dialogue replays, fixed-input placement ablations, and attention diagnostics. Independent block composition weakens query-conditioned memory selection without a uniform chunk-initial attention collapse. True-tail updates preserve important current-state and historical bindings across eight scripted maintenance rounds; a placement case recovers the full-refill quantity in three reconstructions, while slot-preserving alternatives repeat a double-subtraction error. Attention-distribution proximity alone does not explain these semantic differences. The results motivate treating a character's inference state as a maintained, history-dependent resource, rather than only a disposable encoding of its latest memory text.

cs.CL

A Ring Topology-based Communication-Efficient Scheme for D2D Wireless Federated Learning

Federated learning (FL) is an emerging technique aiming at improving communication efficiency in distributed networks, where many clients often request to transmit their calculated parameters to an FL server simultaneously. However, in wireless networks, the above mechanism may lead to prolonged transmission time due to unreliable wireless transmission and limited bandwidth. This paper proposes a communication scheme to minimize the uplink transmission time for FL in wireless networks. The proposed approach consists of two major elements, namely a modified Ring All-reduce (MRAR) architecture that integrates D2D wireless communications to facilitate the communication process in FL, and a modified Ant Colony Optimization algorithm to identify the optimal composition of the MRAR architecture. Numerical results show that our proposed approach is robust and can significantly reduce the transmission time compared to the conventional star topology. Notably, the reduction in uplink transmission time compared to baseline policies can be substantial in scenarios applicable to large-scale FL, where client devices are densely distributed.

math.OC

Sequence Q-Learning Algorithm for Optimal Mobility-Aware User Association

We consider a wireless network scenario applicable to metropolitan areas with developed public transport networks and high commute demands, where the mobile user equipments (UEs) move along fixed and predetermined trajectories and request to associate with millimeter-wave (mmWave) base stations (BSs). An effective and efficient algorithm, called the Sequence Q-learning Algorithm (SQA), is proposed to maximize the long-run average transmission rate of the network, which is an NP-hard problem. Furthermore, the SQA tackles the complexity issue by only allowing possible re-associations (handover of a UE from one BS to another) at a discrete set of decision epochs and has polynomial time complexity. This feature of the SQA also restricts too frequent handovers, which are considered highly undesirable in mmWave networks. Moreover, we demonstrate by extensive numerical results that the SQA can significantly outperform the benchmark algorithms proposed in existing research by taking all UEs' future trajectories and possible decisions into account at every decision epoch.

math.OC