AIToday
Autonomous DrivingQiita 機械学習Published: Nov 9, 2026, 16:00 JST

Network Isolation Mask restores accuracy in batch road-network inference

Send on LINE
Network Isolation Mask restores accuracy in batch road-network inference

3 Key Points

  1. What happened

    Combining the 浅間下 (122 nodes, 1464 tokens) and Kawasaki (126 nodes, 1512 tokens) sequences into 2976 tokens degraded accuracy—MAE rose from 2.931 to 3.141 for 浅間下 and from 3.013 to 3.481 for Kawasaki—until a Network Isolation Mask was added.

  2. Why it matters

    Without the mask, linking the sequences let tokens from one road network attend to the other, hurting predictions; blocking that attention brought error back to individual-inference levels, suggesting one model can serve multiple networks without separate copies.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

This experiment builds on a series of posts that first built a traffic flow dataset from OpenStreetMap and UXsim, then trained a Graph Embedding and Transformer model, and later tested transfer learning to a road network with a different number of nodes. In the fifth installment, a Shared Transformer was co-trained on data from the 浅間下 intersection area (122 nodes) and the Kawasaki Municipal Sachi High School area (126 nodes). Inference in that earlier work was run separately for each network, calling the same Shared Transformer twice.

The new step borrows an idea from EdgeLoRA's Batch LoRA Inference, where multiple LoRA adapters share a single base model to process requests together. Here, the two networks' token sequences—1464 and 1512 tokens—are concatenated into a 2976-token input. But naive concatenation lets tokens from one network attend to the other. The Network Isolation Mask blocks those cross-network links, and after separation the outputs go through each network's own Fully layer. With the mask, batch inference matched individual inference almost exactly; without it, error metrics rose noticeably.

The author positions this as evidence that a single Shared Transformer can handle multiple road networks simultaneously, potentially scaling by adding Network Adapters rather than duplicating the Transformer for each network.

FAQ
What was the effect of simply concatenating tokens from two road networks?
Accuracy worsened: MAE rose from 2.931 to 3.141 for 浅間下 and from 3.013 to 3.481 for Kawasaki, compared with individual inference.
How close were the batch and individual results after the mask?
The maximum absolute difference between outputs was about 5.96 × 10^-7, effectively identical.
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articlePhysical Superintelligence AI proves Aaronson-Ambainis conjecture