News for hackers. Stuff that matters.
Re:Traffic Prediction with Advanced Graph Neural Networks by 2bitencryption on Saturday September 05, 2020 @05:43PM (#24387089)
Google Map's traffic prediction has always led me to a very curious question:

Clearly Google Maps has the ability to turn into a feedback loop. Traffic exists -> people use Google Maps to find better routes -> traffic is modified due to people taking alternate routes -> new traffic emerges.

So my question is: what is Google Maps traffic optimizing for? The best traffic experience for User 3982274, or the best traffic experience for the conglomerate of all cars on the road?

Should Google Maps route several cars through a suboptimal route, if it results in traffic as a whole becoming better?

If Google Maps is "greedy" for every driver, can that make a traffic problem worse?

In reality, I guess this problem is more hypothetical than real, at least today. But imagine this: in 30 years, if all cars are self-driving and self-navigating via systems like Google Maps, what is the system optimizing for?

edit: there's also Braess's paradox. I'm not sure if it applies here, but perhaps it does -- could "sending some users down a new route during heavy traffic" be identical to "adding a road to a network", which can therefore result in the paradox (worse network conditions for everyone)?

https://en.wikipedia.org/wiki/Braess%27s_paradox

Re:Traffic Prediction with Advanced Graph Neural Networks by adanto6840 on Saturday September 05, 2020 @06:08PM (#24387239)
It's a good question, even if it's likely not applicable practically yet. In a game my company created, we implemented cooperative realtime pathfinding using WHCA* -- an algorithm that David Silver published [0] (he's now working at DeepMind last I looked).

WHCA* turned out to be a bit too suboptimal for our use-case, people generally expected "perfectly optimal" routes to be used for aircraft, and they weren't even overly happy with most-optimal "for-all" paths either. We eventually implemented a relatively simple "AStar-3D", essentially just A* against a space-time graph, and it's greedy/FIFO -- meaning it's optimal for each aircraft at the time the aircraft runs it's path. That made people happy -- aircraft no longer did seemingly stupid things like "oscillate", or get "temp. stuck" for overly long periods, etc.

I had no idea cooperative path-planning was so damn difficult -- I remember estimating it as a 1-week mini-project initially. Wow, such naivety, and that's when you even have perfect information! Such a cool domain, tons of respect for the work that's being done here, even if there are some tricky/ethical aspects that are going to come into play eventually, inevitably. :)

0 - https://www.aaai.org/Papers/AIIDE/2005/AIIDE05-020.pdf

Re:Traffic Prediction with Advanced Graph Neural Networks by hackingthenews on Sunday September 06, 2020 @05:40AM (#24390171)
I can see how solving for perfect cooperation can leave people irritated. That's why most algorithms used in OSs takes latency, fairness etc. into account.

Algorithms in between might work better in real life, e.g. people routes can be adjusted slightly to make paths better overall, but no adjustment (away from greedy) is made that the average pilot would find overly unfair or unpractical.

Re:Traffic Prediction with Advanced Graph Neural Networks by paxys on Saturday September 05, 2020 @05:51PM (#24387130)
When User 3982274 is on a busy road using the app, Google optimizes for that user's experience. If every user on that road is using the app at the same time, these algorithms should theoretically result in the optimal condition you described above.

For example, if there are two roads leading up to the destination, one at 100% capacity and the other at 0%. The app will start routing people from road 1 to road 2. When the two balance out and the app will stop the suggestion. Even though it helped only some individual users, the end result is a 50/50 split, so good for everyone.

Re:Traffic Prediction with Advanced Graph Neural Networks by frogblast on Saturday September 05, 2020 @08:21PM (#24387892)
I live in an area strongly impacted by Google making ‘individually optimal’ decisions for each driver, and actually leaving those drivers in a dramatically worse situation.

I live in a rural area, between a major population center and a major resort area, with one major highway and a few small back roads that provide alternate paths for part of the highways route. Every summer weekend the highway becomes highly congested.

Google quickly starts routing people down the back roads because of a 30 minute delay on the highway. A sudden crush of cars hits these back roads, and they end up gridlocked for 3-4 hours. Google then realizes traffic is literally stopped on these roads, and stops sending new traffic down those routes. But the people already on them are still stuck for hours.

It gets smelly when a bunch of drivers take a shit on the side of the road because they can’t go anywhere else, and leave it there.

All because Google simultaneously made an ‘individually optimal’ decision for a whole bunch of individual drivers at once.

——

Another example in the same area actually causes a backup on the highway itself. Google started suggesting one back road that required an unprotected left turn across oncoming traffic on the highway, to avoid a 10-15 minute delay further on the highway. Drivers dutifully followed directions by getting into the left turn lane.

The drain rate of the left turn rate is slow because oncoming traffic is also high. The left turn lane fills up, and one driver with directions to turn then stops in the traffic lanes to wait for room to get into the turn lane. And suddenly the highway is now encountering 2-3 hour delays that don’t clear for most of the day.

Re:Traffic Prediction with Advanced Graph Neural Networks by HALtheWise on Sunday September 06, 2020 @12:41AM (#24389023)
In theory, the learning based approach in this blog post could solve this without any architectural changes. They mention predictions spilling to nearby roads, learning the pattern that "if the highway is backed up now, the little road will be too in a few minutes". Once that is baked into the model, Google Maps won't direct (as many) people onto the site road because they would get stuck in the predicted traffic there. The nice thing about this is it also handles the case where other mapping applications direct drivers there, and the "smartest" mapping application will still get you there fastest.
Re:Traffic Prediction with Advanced Graph Neural Networks by bumby on Saturday September 05, 2020 @08:35PM (#24387955)
I wonder if this will be improved with more realistic cost functions that adequately model those localized effects.

Probably impossible at a global level but I wonder if it’s possible to eventually model and update those cost functions periodically to represent local maps

Re:Traffic Prediction with Advanced Graph Neural Networks by mc32 on Saturday September 05, 2020 @11:01PM (#24388624)
This happens sometimes on I80 in the Winter (usually btwn Auburn and Tahoe). Snow conditions can wreak havoc on weekends. People are routed to backroads --but not everyone has chains on (so they may have to fumble and get them on while on a road without wide shoulders to pull over), or clearance that will enable to take the back roads --so they get stuck in even bigger snarl.

It's evident they (G) need to work with Traffic Engineers and not cowboy it.

Re:Traffic Prediction with Advanced Graph Neural Networks by abra529 on Saturday September 05, 2020 @06:09PM (#24387240)
Surprisingly, it isn't always the case that each driver optimizing their own route will lead to a global optimum - see Braess's paradox. "If every driver takes the path that looks most favourable to them, the resultant running times need not be minimal." [0]

[0] https://en.wikipedia.org/wiki/Braess's_paradox

Re:Traffic Prediction with Advanced Graph Neural Networks by layoutIfNeeded on Saturday September 05, 2020 @07:04PM (#24387563)
That's definitely not how it works. Traffic is a nonlinear dynamical system with all sorts of non-intuitive coupling between various components.
Re:Traffic Prediction with Advanced Graph Neural Networks by CyberDildonics on Saturday September 05, 2020 @07:30PM (#24387682)
What's the difference between a dynamic system and a dynamical system?
Re:Traffic Prediction with Advanced Graph Neural Networks by layoutIfNeeded on Sunday September 06, 2020 @10:24AM (#24391518)
A dynamical system (https://en.wikipedia.org/wiki/Dynamical_system) is basically a bunch of (continuous / discrete) variables whose evolution is governed by a set of (differential / difference) equations. E.g. a pendulum is a dynamical system whose state can be described with a single variable 𝜃 (the angle of the pendulum), governed by the differential equation:

𝘥²𝜃/𝘥t² + g/l sin(𝜃) = 0

(where g is the gravitational acceleration and l is the length of the pendulum)

Dynamical systems whose behaviour is linear are kinda well-behaving and easy to analyse. (linear in this context means that the system's response to a linear combination of inputs will be the same as the linear combination of its responses to the individual inputs) Non-linear systems on the other hand behave chaotically, producing wildly different responses to slight differences in their inputs.

I'm not sure what a "dynamic system" is though.

Re:Traffic Prediction with Advanced Graph Neural Networks by cik2e on Saturday September 05, 2020 @07:25PM (#24387657)
In some cases that’s exactly how it works. There’s a four way stop on a major commuter route where I live. Most of the traffic passes through it in a straight line and there is a major build up, like 20-30 min long during rush hour. In one direction there is a side road that loops around off the main road for about 2 miles in a big U and joins back up again at that 4-way stop. Before Waze became popular you could shoot around this bypass and be the only car on that side of the stop sign. Now there is a pretty significant amount of traffic there every rush hour thanks to the GPS apps. Lowell road and Barnes Hill road in Concord, MA for anyone curious.
Re:Traffic Prediction with Advanced Graph Neural Networks by filleokus on Saturday September 05, 2020 @06:46PM (#24387451)
I think that modelling is to simplistic. Travel time is often times dependent on traffic load, with a stark discontinuity reaching 100% (stop and go traffic).

Consider a contrived example of two similar bridges gapping some body of water. Bridge A is fed by a major highway, Bridge B is downstream a couple of miles and connected to the highway on both sides. For most drivers, if there are no other cars on the road, the preferred route is Bridge A.

The global optimum would be to divert some percentage of highway traffic to Bridge B, _before_ we saturate Bridge A. But for each individual on the highway this would mean a detour and would prefer someone else to take Bridge B.

Re:Traffic Prediction with Advanced Graph Neural Networks by cgriswald on Saturday September 05, 2020 @06:04PM (#24387217)
That's how it theoretically works as a free service where all users are equal. It's not difficult to image a tiered subscription model which finds a sub-optimal 70/30 split more profitable. It's also important to note it's optimizing for time, not fuel usage (a shorter path may require expensive elevation changes, for instance), traffic noise for neighborhoods, safety, services access, etc.
Re:Traffic Prediction with Advanced Graph Neural Networks by IAmGraydon on Saturday September 05, 2020 @08:55PM (#24388061)
This is the correct answer. Optimizing for the user is optimizing for the conglomerate. By giving each user the path of least resistance, the highest systemic throughput is achieved.
Re:Traffic Prediction with Advanced Graph Neural Networks by Areading314 on Sunday September 06, 2020 @02:05AM (#24389343)
This is correct. The optimal routing that improves transit time for individual travelers would also minimize global transit time. However, it is true that there could be externalities to this behavior, like cars being routed through neighborhoods with higher likelihood of accidents.
Re:Traffic Prediction with Advanced Graph Neural Networks by ocdtrekkie on Saturday September 05, 2020 @05:50PM (#24387124)
There's been a lot of anger in some neighborhoods when mapping apps start directing people through their small streets. This isn't really hypothetical.

In theory, if Google Maps starts directing some portion of traffic through an alternate route, it's because it's less congested. As it does so, the main route also becomes less congested. In theory, it should reach a point where roughly, cars are being assigned to both routes, as both routes have roughly equalized in performance. In theory.

Re:Traffic Prediction with Advanced Graph Neural Networks by wardrop on Saturday September 05, 2020 @06:10PM (#24387254)
Indeed, the central hypothesis of most of the traffic simulation tools is what’s known as a Wardrop Equilibrium, in which users choose selfishly optimal routes until the traffic is evenly spread and no user has an incentive to deviate to an alternative route. Of course this is an instance of the more general and well known notion of Nash equilibrium.

https://en.m.wikipedia.org/wiki/Route_assignment#Equilibrium...

Re:Traffic Prediction with Advanced Graph Neural Networks by mwc on Sunday September 06, 2020 @08:05AM (#24390782)
This is how Uber matches trips[0]. Optimising not for the fastest pick up for any one rider, but to reduce the total time of arrival in the whole network.

[0] http://blogs.cornell.edu/info2040/2019/10/23/uber-ride-shari...

Re:Traffic Prediction with Advanced Graph Neural Networks by scythe on Saturday September 05, 2020 @11:47PM (#24388816)
It might as well be noted that Braess's paradox is a phenomenon observed in a world of (mostly) predictionless navigating, i.e. before Google Maps. When fluids flow, phonons communicate "traffic information" at the speed of sound and the resulting flow is usually efficient. You can get Braess's paradox in physics, but you need quantum mechanics:

https://ui.adsabs.harvard.edu/abs/2012PhRvL.108g6802P/abstra...

However, Google Maps updates its traffic predictions much more slowly than the "speed of sound" by any useful definition of the way disturbances propagate in traffic. As 'frogblast noted, far more cars may be suddenly directed down a side road than it can carry, and the recommendation stops being broadcast too late.

Re:Traffic Prediction with Advanced Graph Neural Networks by Recursing on Sunday September 06, 2020 @05:43AM (#24390189)
Fun short fiction story on how predictive systems whose predictions influence what they might predict might evolve: https://www.lesswrong.com/posts/SwcyMEgLyd4C3Dern/the-parabl...

In this very theoretical scenario, left to its own (with its objective function "minimizing prediction error") Google Maps could end up making predictions that make traffic more predictable, without anybody being able to notice anything is going wrong.

A similar concept could be applied to the infamous "Youtube algorithm" for predicting user interests, might end up just showing videos that make users more predictable

Re:Traffic Prediction with Advanced Graph Neural Networks by nur0n on Saturday September 05, 2020 @11:32PM (#24388757)
People seem to focus on the volume of cars. But traffic is not just a matter of volume but of friction between cars. Reducing the friction (naively) appears to be a simpler problem. You wouldn't even need full self driving, only enough tech for cars to merge/switch lanes without slowing down.

Not requiring a central point of control is an additional benefit. The reduction of traffic would be an "emergent" behavior.

Re:Traffic Prediction with Advanced Graph Neural Networks by namelosw on Saturday September 05, 2020 @11:23PM (#24388713)
> in 30 years, if all cars are self-driving and self-navigating via systems like Google Maps, what is the system optimizing for?

If most users are connected to the same system, an obvious direction would be optimizing globally - if there are two routes to go, just load balance them.

I live in Beijing and the traffic is horrible sometimes. The Uber counterpart Didi mandates the routes, and sometimes counterintuitively nice - it seems to be a detour in a narrow valley but it's faster because there is no traffic jam there.

I'm not sure Uber or Didi is doing this already. At the end of the day, if most vehicles' GPS is connected to a single system, while the system is recommending routes to most users. Then it would be possible for the system to optimize for the whole population, rather than being greedy for individuals and create traffic problems.

Re:Traffic Prediction with Advanced Graph Neural Networks by rkagerer on Saturday September 05, 2020 @05:52PM (#24387140)
If drivers discovered Google Maps was intentionally sending them down sub-optimal routes, they'd quickly switch to a different navigator. (Even if the Google way was better for the network overall).
Re:Traffic Prediction with Advanced Graph Neural Networks by goodside on Saturday September 05, 2020 @07:50PM (#24387756)
Not if the sub-optimal routes happen only intermittently and the extent to which they’re sub-optimal (or whether they’re sub-optimal at all) is difficult to determine. If you take the same route every day you’ll notice when it changes, but who are you to say a one-time detour wasn’t the right decision given what you don’t know about traffic conditions?
Re:Traffic Prediction with Advanced Graph Neural Networks by SergeAx on Sunday September 06, 2020 @03:58AM (#24389799)
Yandex, Google's Russian rival, is doing just this from time to time. I am taking a taxi from home to office every day and it sends a driver via longer routes when traffic is heavier.

I beleive that greater mileage contributes only to car's service frequency, and it's pennies when amortized to years of duty. Driver's and passenger's time is much more valuable.

Re:Traffic Prediction with Advanced Graph Neural Networks by dqpb on Saturday September 05, 2020 @10:17PM (#24388467)
I assume at some point Google will just start offering me a list of Pareto efficient activities that maximize the global action-value function, economic nirvana will be achieved for all of humanity, Sergey Brin will ascend beyond the physical plane, and then maybe, hopefully, they can stop serving me ads.
Re:Traffic Prediction with Advanced Graph Neural Networks by lr4444lr on Sunday September 06, 2020 @09:09AM (#24391063)
Doesn't that already happen as a corollary of a greedy per user optimization? Each marginal car on the best course slows down the traffic, ergo weighting it slightly lower vs. alternatives. Isn't GMaps just filling out the best routes first?
Re:Traffic Prediction with Advanced Graph Neural Networks by nurettin on Sunday September 06, 2020 @02:31AM (#24389443)
> Clearly Google Maps has the ability to turn into a feedback loop.

Google and yandex average traffic by hour, they don't factor in their own users. That would be double counting and assuming that they are the only service.

Re:Traffic Prediction with Advanced Graph Neural Networks by cmehdy on Saturday September 05, 2020 @07:48PM (#24387745)
There's a likely future for someone boarding self-driving equipment: higher-quality (of car, traffic conditions, wait, etc) depending on price. And public transit with dedicated/prioritized lanes (by law).